/* ==========================================================
   0. 全体リセット
========================================================== */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    font-family: sans-serif;
}


/* ==========================================================
   1. HEADER（最前面固定メニュー）
========================================================== */
.main-header {
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid #ddd;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100000;
    height: 90px;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu a {
    margin: 0 20px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    font-size: 18px;
}


/* ==========================================================
   2. TOPタイトル
========================================================== */
.top-title-block {
    padding-top: 150px;
    text-align: center;
}

.top-title-block h1 {
    font-size: 48px;
    margin: 0;
}

.top-title-block p {
    font-size: 20px;
    margin-top: 10px;
}


/* ==========================================================
   3. ロゴ動画（16:9）
========================================================== */
#logo-box {
    position: relative;
    width: 60%;
    aspect-ratio: 16 / 9;
    margin: 40px auto 0;
    text-align: center;
}

#intro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.8s ease;
    z-index: 1;
}

#intro-video.fadeout {
    opacity: 0;
}


/* ==========================================================
   4. 推せボタン
========================================================== */
#start-button {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 16px 32px;
    font-size: 26px;
    border-radius: 12px;
    background: #ff4081;
    color: #fff;
    opacity: 0;
    display: none;
    transition: opacity 0.5s ease;
    z-index: 5;
}

#start-button.show {
    display: block;
    opacity: 1;
}


/* ==========================================================
   5. iframe カバー
========================================================== */
#iframe-cover {
    position: absolute;
    inset: 0;
    background: transparent;
    z-index: 2;
    display: none;
}


/* ==========================================================
   6. iframe（エフェクト）
========================================================== */
#effect-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: none;
    z-index: 3;
    background: transparent !important;
}

#effect-frame.show {
    display: block;
}


/* ==========================================================
   7. セクション共通
========================================================== */
.section {
    padding: 120px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.section h2 {
    font-size: 36px;
    margin-bottom: 20px;
}

.section p {
    font-size: 18px;
    color: #555;
}


/* ==========================================================
   8. CREW（縦置き紹介カード）
========================================================== */
.member-card {
    flex: 0 0 260px;
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
    background: #ffe6f2;
    position: relative;
    scroll-snap-align: start;
    cursor: pointer;
    display: flex;
    flex-direction: column; /* ← 縦置きレイアウト */
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.member-img {
    width: 100%;
    height: 80%; /* ← 上に大きく配置 */
    object-fit: contain;
    background: #ffe6f2;
}
.member-name {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translate(-200%, 0); /* ← 左の外に完全退避 */
    padding: 6px 14px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-weight: bold;
    font-size: 18px;
    border-radius: 6px;
    white-space: nowrap; /* ← 名前の幅に合わせる */
    display: inline-block;
    opacity: 0; /* ← 完全に非表示 */
    transition:
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        opacity 0.2s ease;
}

.member-card:hover .member-name {
    transform: translate(-50%, 0); /* ← カード中央にピタッ */
    opacity: 1; /* ← ホバー時だけ表示 */
}




/* ==========================================================
   9. NEWS（カード型）
========================================================== */
.news-section {
    padding: 120px 20px;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.news-section .section-title {
    font-size: 36px;
    margin-bottom: 40px;
    letter-spacing: 4px;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 100%;
}

.news-card {
    background: rgba(0, 40, 80, 0.15);
    border-left: 6px solid #0099ff;
    border-radius: 12px;
    padding: 20px 24px;
    text-align: left;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 150, 255, 0.25);
}

.news-date {
    font-size: 14px;
    color: #0077cc;
    font-weight: bold;
    margin-bottom: 6px;
}

.news-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #003355;
}

.news-text {
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}


/* ==========================================================
   10. 広告隠し帯
========================================================== */
.ad-hide-layer {
    position: absolute;
    top: 413px;
    left: 0;
    width: 100%;
    height: 63px;
    background: rgba(255, 0, 0, 0.15);
    z-index: 99999;
    pointer-events: none;
    transition: opacity 0.2s ease;
}


/* ==========================================================
   11. スマホ対応
========================================================== */
@media (max-width: 768px) {

    .menu {
        display: flex;
        overflow-x: auto;
        white-space: nowrap;
        gap: 20px;
        padding: 10px 0;
    }

    .menu a {
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    .top-title-block {
        padding-top: 120px;
    }

    #logo-box {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    #intro-video {
        width: 100%;
        height: auto;
        max-height: 40vh;
        object-fit: contain;
    }

    #effect-frame {
        width: 100%;
        height: 40vh;
        object-fit: contain;
    }

    #start-button {
        font-size: 1rem;
        padding: 10px 20px;
    }

    .member-card {
        min-width: 180px;
        scroll-snap-align: center;
    }

    .member-name {
        font-size: 1rem;
    }

    .news-card {
        padding: 16px 18px;
    }

    .news-title {
        font-size: 18px;
    }

    .news-text {
        font-size: 14px;
    }
}


/* ==========================================================
   PRESIDENT（黄金比）
========================================================== */
.president-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.president-photo img {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.president-message {
    flex: 1;
    max-width: 360px;
    font-size: 18px;
    line-height: 1.7;
    color: #333;
}

@media (max-width: 768px) {
    .president-box {
        flex-direction: column;
        text-align: center;
    }

    .president-photo img {
        width: 180px;
        height: 180px;
    }

    .president-message {
        max-width: 100%;
    }
}


/* ==========================================================
   CREW：光の帯（軽量版）
========================================================== */
.crew-shine {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent 0%,
        rgba(255,255,255,0.5) 50%,
        transparent 100%
    );
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.crew-shine.run {
    left: 160%;
}


/* ==========================================================
   フェード・ズーム（INTRO と共通）
========================================================== */
.member-img.fade-out {
    opacity: 0;
    transition: opacity 0.1s ease;
}

.member-img.zoom {
    transform: scale(1.02);
    transition: transform 0.15s ease;
}
