/* ===== リセット ===== */
html, body {
    margin: 0;
    padding: 0;
    background-color: #ffffff;
} 

* {
    box-sizing: border-box;
}
/* スプラッシュ画面 */
#splash {
    opacity: 0;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #589eff; 
    display: flex;
    justify-content: center;
    align-items: center;
   z-index: 9999;  /*最前面に  */
}
#splash.show {
    opacity: 1;
}

.splash-text {
    text-align: center;
    font-size: 6vw;
    color: #333;
    opacity: 0;
    animation: fadeInOut 3s ease forwards;
}

 /* フェードイン→表示→フェードアウト  */
@keyframes fadeInOut {
    0%   { opacity: 0; transform: translateY(20px); }
    20%  { opacity: 1; transform: translateY(0); }
    80%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(-20px); }
}

/* 本サイトは最初非表示にしておく  */
#main-content {
    opacity: 1;
    transition: opacity 1s ease;
}
#main-content.show {
    opacity: 1;
    display: block;
}

.main-content{
    flex: 1;
    display: flex;
    position: relative;
    flex-direction: column;
    min-height: 100vh; /* ビューポートの高さに合わせる */
}

a:hover, button:hover {
    color: #004080;
    transition: 0.3s ease;
}

/* ===== ヘッダー全体 ===== */
header {
    background-color: #ffffff; /* 白背景 */
    font-family: "Helvetica Neue", Arial, sans-serif;
    height: 1000px;
    width: 100%;
    top: 0;
    z-index: 999;
}

/* ===== 上段エリア ===== */
header {
    background-color: #ffffff; /* 明るめのグレー背景 */
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.p-fv{
    width: 100%;
    height: 1000px;
    background-image: url(img/group.webp);
    background-color:rgba(255,255,255,0.4);
    background-blend-mode:lighten;
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    align-items: center;
    justify-content: center;
}

.p-fv::before {
    content: "";
    width: 100%;
    height: 925px;
    background-color: rgba(0, 0, 0, .5);
    position: absolute;
    top: 75px;
    left: 0;
}

/*=====本文・共通 div=====*/

.main{
    background-color: white;
    max-width: 1500px;
    width: 99%;
    margin: 0 auto;
    padding: 0 20px;
    padding-top: 5px;
    padding-bottom: 5px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}


.wtitle{
    height: 57px;
    width: auto;
    display: flex;    
    padding-top: 10px;
    margin-left: 10px;
    margin-bottom: 15px;
    color: #000000;
}

.ctitle {
    font-size: 43px;
    margin-top: -9px;
}

.wtitle .new {
    /* 画像のような赤色の角丸バッジスタイル */
    display: inline-block;
    background-color: #e74c3c; /* 赤色 */
    color: white;
    font-size: 0.4em; /* タイトルより少し小さく */
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px; /* 角丸 */
    line-height: 1; /* 文字の高さ調整 */
    margin-left: 10px; /* タイトルとの間隔 */
    vertical-align: super;
    transform: translateY(-2px); /* わずかに上に持ち上げて、視覚的な中央揃えを調整 */
}


/* ===== 新着情報 ===== */
.wrapper1{
    background-color: white;
    margin-top: 10px;
    padding-top: 15px;
    padding-bottom: 5px;
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.22);
}

#act-news-container {
    /* 最新3件のカードを横に並べるためのFlexbox設定 */
    display: flex;
    justify-content: space-around; /* カード間に均等なスペース */
    flex-wrap: wrap; /* 画面幅が狭い場合に折り返す */
    gap: 20px; /* カード間の隙間 */
    margin-top: 20px;
}

/* ==========================================================================
    スライドインアニメーション
   ========================================================================== */

.post-card.is-visible {
    opacity: 1;
    transform: translateX(0); /* 定位置へ移動 */
}

/* ==========================================================================
    post-card スタイル (tag.cssから移植)
   ========================================================================== */

.post-card {
    background-color: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    padding: 16px;
    width: 312px;        /* 横幅を固定 */
    height: 336px;       /* 高さも固定 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    /* Intersection Observer用アニメーション初期状態 */
    opacity: 0;
    transform: translateX(100px); /* 画面外から少し内側で待機 */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.2s ease; /* アニメーション用のtransitionを追加 */
    cursor: pointer; /* クリック可能であることを示す */
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.post-image {
    width: auto;
    height: 50%;
    object-fit: cover;
    border-radius: 8px; /* 角丸を適用 */
}

.post-content {
    padding: 14px 5px;
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    flex-grow: 1;
}

/* タイトル・日付・タグ */
.post-card h3 {
    margin: 0;
    font-size: 1.1em;
    color: #333;
}

.post-card p {
    margin: 5px 0;
    font-size: 0.9em;
    color: #666;
}

.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.post-tag {
    background-color: #cde7f8;
    color: #00334d;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    display: flex;
    align-items: center; /* 垂直方向の中央揃え */
}

/* 一覧はこちら のスタイル調整 */
.navtoact {
    text-align: right;
    margin: 0 20px 0 auto; 
    width: fit-content;
}

.navtoact a{
    width: fit-content;
    text-decoration: none;
    display: inline-block;
    background-color: #064daa; 
    color: white;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 0 15px 15px 0; /* 角丸 */
    line-height: 1; /* 文字の高さ調整 */
    margin-left: 10px; /* タイトルとの間隔 */
    vertical-align: super;
}

/* ===== 概要 ===== */

.wrapper2{
    background-color: white;
    margin-top: 15px;
    margin-bottom: 15px;
    padding-top: 15px;
    padding-bottom: 5px;
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.22);
}

.plot{
    max-width: 1000px;
    padding: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
    margin-left: auto;
    margin-right: auto;
    font-size: larger;
    line-height: 2;
    font-weight: bold;
    text-align: center;
}

.spring-robocon{
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    line-height: 3;
}

.summer-robocons{
    display: flex;
    justify-content: center;
    gap: 5%;
}

.summer-robocon{
    width: 50%;
    margin-top: 50px;
    margin-bottom: 30px;
    text-align: center;
    line-height: 3;
}

.roboconimg-1{
    width: 50%;
    height: auto;
}

.roboconimg-2{
    width: 80%;
    height: auto;
}

.roboconimg-3{
    width: 80%;
    height: auto;
}

/* ===== 実績 ===== */

.wrapper3{
    background-color: white;
    padding-top: 15px;
    padding-bottom: 25px;
    margin-bottom: 10px;
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.22);
}

.ach_contents{
    justify-content: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 10px;
}

.ach-plot {
    margin: 0 auto;
    text-align: center;
    margin-bottom: 50px;
}

.ach-plot span{
    background: linear-gradient(transparent 80%, #ff99cc 0%);
}

.ach-plot a{
    width: fit-content;
    text-decoration: none;
    color: #004080;
}

.ach-plot a{
    position: relative;
    display: inline-block; /* ←文字幅だけ下線 */
}

.ach-plot a::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 100%;
    background: #004080;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.ach-plot:hover a::after{
    transform: scaleX(1);
}

.video-container {
    width: 100%;
    margin: 0 auto ;
    position: relative;
    padding-top: 56.25%; /* 16:9 アスペクト比 */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== スポンサー ===== */

.wrapper4 {
    padding-top: 15px;
    padding-bottom: 25px;
    margin-bottom: 10px;
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.22);
}

.sponsorship-section{
    margin: 0 auto;
}

/* 1. Blue Header */
.sponsorship-header {
    background: linear-gradient(90deg, #1c88dccd, #00538a);
    color: white;
    padding: 20px 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.sponsorship-header h2 {
    margin: 0;
    font-size: 1.5em;
}
/* スポンサー見出し内のロゴ画像サイズ調整 */
.sponsorship-header .jom1 {
    height: 2.5em;        /* h2文字と同じ高さ */
    width: auto;        /* 縦横比維持 */
    flex-shrink: 0;     /* flexで潰れないように */
}

/* 2. Checkmark List */
.sponsorship-benefits {
    width: fit-content;
    margin: 0 auto;
    list-style: none;
    padding: 20px 30px;
}

.sponsorship-benefits li {
    position: relative;
    padding:0 10px;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 1.1em;
    text-align: center;
}

.sponsorship-benefits li::before {
    content: '✓'; /* チェックマーク */
    color: #3498db; /* 青色 */
    font-weight: bold;
    margin-right: 20px;
    left: 0;
    top: 0;
    font-size: 1.2em;
}

/* 3. Feature Cards */
.sponsorship-features {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 30px;
    padding-top: 10px;
}

.feature-card {
    flex: 1;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s;
}

.feature-card:hover {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: #ecf0f1;
    border-radius: 8px;
    margin: 0 auto 15px auto;
    position: relative;
}

.feature-icon::before {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: #3498db;
}

/* アイコンの具体的な表現 (絵文字で代用) */
.icon-site::before { content: '💻'; }
.icon-robot::before { content: '🤖'; }
.icon-support::before { content: '📝'; }

.feature-card h3 {
    margin-top: 0;
    font-size: 1.2em;
    color: #333;
}

.feature-card p {
    font-size: 0.9em;
    color: #666;
}

/* 4. Contact Button */
.sponsorship-contact {
    text-align: center;
    padding: 20px 30px 30px;
}

.contact-button {
    display: inline-block;
    background: linear-gradient(90deg, #3498db, #2980b9);
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background 0.3s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.contact-button:hover {
    background: linear-gradient(90deg, #2980b9, #3498db);
}

.contact-detail {
    margin-top: 10px;
    font-size: 0.9em;
    color: #999;
}

/* ===== 各種リンク ===== */

.wrapper5{
    background-color: white;
    padding-top: 15px;
    padding-bottom: 50px;
    margin-bottom: 10px;
    box-shadow: 1px 3px 6px rgba(0, 0, 0, 0.22);
}

.link-nav{
    font-size: 20px;
}

.QR{
    width: 80%;
    display: flex;
    height: auto;
    margin: 0 auto;
    justify-content: space-around;
}

.X-QR{
    width: 33%;
    text-align: center;
}

.img-QR-X{
    width: 100%;
    height: auto;
    margin-bottom: 5px;
    border-radius: 12px;
}

.img-QR-X:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.Insta-QR{
    width: 33%;
    text-align: center;
}

.img-QR-Instagram{
    width: 100%;
    height: auto;
    margin-bottom: 5px;
    border-radius: 12px;
}

.img-QR-Instagram:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.YouTube-QR{
    width: 30%;
    text-align: center;
}

.img-QR-YouTube{
    width: 95%;
    height: auto;
    margin: 5px 0;
    padding-top: 2%;
    border-radius: 12px;
}

.img-QR-YouTube:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ===== 小画面対応 =====*/
@media (max-width: 1000px) {
    .footer_content{
        flex-direction: column;
    }

    .footer_plot{
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);  /* 2カラム */
        justify-items: center;
        gap: 30px 40px; 
    }

    .sponsorship-features{
        flex-direction: column;
        width: 80%;
        margin: 0 auto;
    }
    
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {

    .summer-robocons {
        display: flex;
        flex-direction: column;
        align-items: center;   /* ← 横方向の中央寄せ */
        margin: 0 auto;
    }

    .summer-robocon{
        width: 100%;
        justify-content: center;
    }

    .roboconimg-1{
        width: 85%;
    }

    .roboconimg-2{
        width: 85%;
    }

    .roboconimg-3{
        width: 85%;
    }

    .QR p{
        font-size: small;
    }
}
.br-another-650 {
    display: none;
}
@media (max-width: 650px) {

    header .fadein .p-fv_copy{
    text-align: center;
    }

    .br-another-650 {
        display: block;
    }

}
