/* ============================== */
/* ========== PC STYLE ========== */
/* ============================== */


/* ============================== */
/* ========== COMMON ============ */
/* ============================== */

/* Minimal Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    line-height: 1.5;
}


/* カラーバリエーション */
:root {
    --color-text: #333;

    --color-unite-orange: #FF8A16;
    --color-unite-purple: #7869FF;
    --color-keio-blue: #00377E;
    --color-keio-pink: #C8006B;

    --font-base: "Noto Sans JP", sans-serif;
    --font-heading-en: "Barlow", sans-serif;
}

/* ベース設定 */
html,
body {
    overflow-x: hidden;
    color: var(--color-text);
    font-family: var(--font-base);
    font-weight: 500;
}

.fw900 {
    font-weight: 900;
    font-size: clamp(18px, 2vw, 24px);
}


body {
    margin: 0;
    padding-top: 60px;
}

ul,
ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

section {
    padding: clamp(40px, 6.67vw, 80px) 0;
    padding-left: clamp(24px, 8.33vw, 100px);
    padding-right: clamp(24px, 8.33vw, 100px);
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}


/* セクション見出し */
.section-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 36px;
}

.section-title .en {
    font-family: var(--font-heading-en);
    font-size: clamp(32px, 4.7vw, 56px);
    font-weight: 700;
    line-height: 1;
    color: var(--color-text);
}

.section-title .jp {
    font-family: var(--font-base);
    font-size: clamp(14px, 1.7vw, 20px);
    font-weight: 700;
    color: var(--color-keio-pink);
    line-height: 1.2;
}


/* スラッシュ見出し */
.slash-heading {
    display: inline-flex;
    align-items: center;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 900;
    color: var(--color-keio-blue);
    margin-bottom: clamp(20px, 2.67vw, 32px);
}

/* スラッシュ画像 */
.slash-heading::before {
    content: "";
    display: block;
    width: 1.11em;
    height: 1.08em;
    background: url("img/slash-heading.png") no-repeat center / contain;
}


/* 位置調整用クラス */
.slash-heading.left {
    text-align: left;
    justify-content: flex-start;
}

.slash-heading.center {
    text-align: center;
    justify-content: center;
}



/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(0, 0, 0, 0.9);
    transition: background-color 0.3s;
    z-index: 1000;
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    height: 100%;
    padding: 0 82px 0 16px;
    display: flex;
    align-items: center;
}

/* ===== PC Nav ===== */

/* PCナビ全体を右側に寄せる */
.pc-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    /* メニューとXアイコンの距離 */
    margin-left: auto;
    /* ← 右寄せ */
}

/* メニューの UL */
.pc-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    gap: 0;
}

/* 各メニュー項目 */
.pc-nav li {
    width: 100px;
    text-align: center;
}

/* メニュー文字 */
.pc-nav a {
    display: block;
    width: 100%;
    height: 60px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 60px;
    text-decoration: none;
    transition: background-color 0.3s;
}

/* hover */
.pc-nav a:hover {
    background: var(--color-keio-blue);
    color: #fff;
}


/* ▼ Xアイコンだけ hover を上書き（青背景なし） */
.header-x-icon:hover {
    background: none !important;
    transform: scale(1.05);
    /* ← ふわっと拡大 */
}


/* ===== Xアイコン (PC) ===== */
.header-x-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 10px 0;
}

.header-x-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: 0.2s ease;
}

/* ▼ hover時にオレンジアイコンに差し替え */
.header-x-icon:hover img {
    content: url("img/x-icon-orange.png");
}

/* SPメニュー内 Xアイコン */
.sp-x-icon {
    margin-top: 20px;
    text-align: center;
}

.sp-x-icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.sp-x-icon img:hover {
    content: url("img/x-icon-orange.png");
}




/* ===== Hamburger ===== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    position: relative;
    width: 28px;
    height: 22px;
}

.hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background: #fff;
    transition: 0.3s;
}

/* 初期位置 */
.hamburger span:nth-child(1) {
    top: 0;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

/* X印化 */
.hamburger.active span:nth-child(1) {
    top: 9px;
    transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    top: 9px;
    transform: rotate(-45deg);
}

/* ===== SP Nav ===== */
.sp-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    transition: max-height 0.4s;
}

.sp-nav.open {
    max-height: 600px;
}

.sp-nav ul {
    list-style: none;
    padding: 20px;
    margin: 0;
    text-align: center;
}

.sp-nav li {
    margin-bottom: 16px;
}

.sp-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: inline-block;
}



/* ===== KV ===== */
.kv img {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
}


/* ===== ABOUT ===== */

.bg-about {
    background: url("img/bg-ABOUT.png") no-repeat center top / cover;
}

/* ABOUT テキスト */
.about-text {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 36px;
}

/* 青枠ボックス */
.about-box {
    border: 6px solid var(--color-keio-blue);
    border-radius: 24px;
    padding-top: 36px;
    padding-bottom: 36px;
    padding-left: clamp(24px, 8vw, 100px);
    padding-right: clamp(24px, 6vw, 80px);
    margin: 36px 0 20px;
    background: #fff;
}


/* 行（予選 / 決勝） */
.about-row {
    display: flex;
    gap: clamp(16px, 5vw, 60px);
    margin-bottom: 32px;
    flex-wrap: nowrap;
    align-items: flex-start;
}

.about-row:last-child {
    margin-bottom: 0;
}

/* 左側のラベル */
.about-label {
    background: var(--color-keio-blue);
    color: #fff;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 700;
    line-height: 1;
    padding: 12px 20px;
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    text-align: left;
    white-space: nowrap;
    border-radius: 0;
}



/* 右側の説明 */
.about-info p {
    margin: 0;
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.6;
}

.about-station-info {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-top: 4px;
    line-height: 1.6;
}


/* 主催などのテキスト */
.about-bottom-wrap {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 8vw, 96px);
}

.about-bottom-wrap p {
    font-size: clamp(16px, 2vw, 24px);
    line-height: 1.6;
    margin: 0;
}





/* ===== FLOW ===== */

.bg-flow {
    background: url("img/bg-FLOW.png") no-repeat center top / cover;
}

.flow-img {
    width: 100%;
    height: auto;
    display: block;
}

/* FLOW チャート画像のラップ */
.flow-chart-wrap {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

/* FLOW のチャート画像 */
.flow-chart-img {
    width: 100%;
    height: auto;
}

/* FLOW セクションの「ルールブック」透明リンク領域 */
.flow-rulebook-link {
    position: absolute;

    /* デザイン基準：1000×1600 の座標 → ％に変換した値 */
    left: 39.3%;
    top: 63.3%;
    width: 12%;
    height: 1.3%;

    /* デバッグ用（位置確認後に透明に） */
    /*
    background: rgba(255, 0, 0, 0.25);*/
}


/* ===== 予選 ===== */

.bg-qual {
    background: url("img/bg-QUALIFING.png") no-repeat center top / cover;
}

/* 青枠（参加手順）*/
.qual-flow-box {
    border: 4px solid var(--color-keio-blue);
    border-radius: 0;
    padding-top: clamp(16px, 2.67vw, 32px);
    padding-bottom: clamp(16px, 2.67vw, 32px);
    padding-left: clamp(8px, 3.75vw, 45px);
    padding-right: clamp(8px, 3.75vw, 45px);
    margin-bottom: 48px;
    text-align: center;
}

/* 参加手順の見出し（中央配置） */
.qual-flow-box .slash-heading {
    justify-content: center;
}

/* 中のフロー画像（2倍画像対応） */
.qual-flow-img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 1000px;
    margin: 0 auto;
}

.rulebook-btn {
    text-align: center;
    margin: 8px 0 72px 0;
    /* 上下に余白 */
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.rulebook-btn img {
    max-width: 680px;
    width: 100%;
}

.rulebook-btn:hover {
    transform: translateY(-3px) scale(1.02);
    opacity: 0.9;
}

.rulebook-btn:active {
    transform: translateY(1px) scale(0.98);
    opacity: 0.85;
}


/* ボタン横並び */
.step1-entry {
    display: flex;
    justify-content: center;
    gap: clamp(16px, 4vw, 48px);
    padding-left: clamp(16px, 4.67vw, 56px);
    padding-right: clamp(16px, 4.67vw, 56px);
    gap: clamp(16px, 4vw, 48px);
    margin-bottom: clamp(24px, 4vw, 40px);
}

/* 共通ボタンスタイル */
.entry-btn {
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

/* 画像サイズ（2倍出力対応） */
.entry-btn img {
    width: 100%;
    max-width: 420px;
    /* 画像サイズに合わせて後で調整可 */
    height: auto;
    display: block;
}

/* Hover / Active アクション */
.entry-btn:hover {
    transform: translateY(-3px) scale(1.02);
    opacity: 0.9;
}

.entry-btn:active {
    transform: translateY(1px) scale(0.98);
    opacity: 0.85;
}

/* no-hover ボタンは一切動かない */
.no-hover:hover,
.no-hover:active {
    transform: none !important;
    opacity: 1 !important;
    cursor: default !important;
}

.no-hover {
    pointer-events: none;
    cursor: default;
    opacity: 0.9;
    /* 必要なら */
}



/* 下矢印（可変余白） */
.step-arrow {
    text-align: center;
    margin: clamp(24px, 4vw, 40px) 0;
}

.arrow-down {
    width: clamp(64px, 10.83vw, 130px);
    height: auto;
    display: inline-block;
}

.qual-orange-bar {
    display: block;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    padding: 10px;
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 900;
    background: url("img/orange-bar.png") no-repeat center / 100% auto;
    margin-bottom: clamp(24px, 2.67vw, 32px);
    text-align: center;
}

.discord-btn-wrap {
    text-align: center;
    margin-bottom: clamp(24px, 2.67vw, 40px);
}

.discord-btn {
    width: clamp(240px, 50vw, 600px);
    height: auto;
    display: inline-block;
    transition: transform 0.25s ease, opacity 0.25s ease;
    cursor: pointer;
}

.discord-btn:hover {
    transform: translateY(-3px) scale(1.02);
    opacity: 0.9;
}

.discord-btn:active {
    transform: translateY(1px) scale(0.98);
    opacity: 0.85;
}

/* STEP3 全体 */
.step3-list {
    display: flex;
    flex-direction: column;
    gap: clamp(16px, 2vw, 24px);
}

/* 1 行（左右2カラム） */
.step3-item {
    display: flex;
    max-width: 1000px;
    margin: 0 auto;
    align-items: stretch;
}

/* 左セル（青背景／横並び） */
.step3-left {
    flex: 0 0 clamp(150px, 22vw, 260px);
    background: var(--color-keio-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: clamp(12px, 1.6vw, 18px) 16px;
    white-space: nowrap;

}

.step3-left .num {
    font-size: clamp(18px, 2.4vw, 24px);
    font-weight: 900;
}

.step3-left .title {
    font-size: clamp(16px, 2vw, 24px);
    font-weight: 900;
}

/* 右セル（説明テキスト） */
.step3-right {
    flex: 1 1 auto;

    /* 左右 12px の指定（上下は可変） */
    padding: clamp(12px, 2vw, 20px) 12px;

    border: 1px solid var(--color-text);

    display: flex;
    align-items: center;
    /* ← 上下中央揃え */
    justify-content: flex-start;

    font-size: clamp(14px, 1.5vw, 16px);
    font-weight: 700;
    color: var(--color-text);

    line-height: 1.6;
    text-align: left;
}

/* ▼ セクション余白 */
.schedule-section {
    margin-top: clamp(40px, 6.7vw, 80px);
}

/* ▼ 紫枠（角丸なし） */
.schedule-box {
    border: 6px solid #DDDBFF;
    border-radius: 0;
    /* ← 角丸なし */
    background: #fff;
    width: 100%;
    margin: 0 auto;
    padding-left: clamp(12px, 3vw, 27px);
    padding-right: clamp(12px, 3vw, 27px);
    padding-top: clamp(24px, 4vw, 40px);
    padding-bottom: clamp(24px, 4vw, 40px);
    position: relative;
    text-align: center;
}

/* ▼ スラッシュ見出し（枠内センター配置） */
.schedule-heading {
    margin-bottom: clamp(16px, 3vw, 32px);
}

/* ▼ PC画像 */
.schedule-img-pc {
    width: 100%;
    height: auto;
    display: block;
}

/* ▼ SP画像 */
.schedule-img-sp {
    display: none;
    width: 100%;
    height: auto;
}

/* ▼ 補足文（右寄せ） */
.schedule-note {
    text-align: right;
    font-size: clamp(12px, 1.3vw, 14px);
    font-weight: 700;
    margin-top: 18px;
    color: var(--color-keio-blue);
}


/* ===== 決勝 ===== */

.bg-final {
    background: url("img/bg-FINAL.png") no-repeat center top / cover;
}

/* FINALセクションの仮枠 */
.final-comingsoon {
    width: 100%;
    max-width: 1000px;
    height: clamp(260px, 46.66vw, 560px);
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* カミングスーン画像 */
.comingsoon-img {
    max-width: 100%;
    height: auto;
    margin-top: -36px;
}


/* ===== FAQ ===== */

.bg-faq {
    background: url("img/bg-FAQ.png") no-repeat center top / cover;
}

/* タイトル＋キャラ画像 */
.faq-title-wrap {
    position: relative;
}

.faq-character {
    position: absolute;
    right: clamp(0px, 1.67vw, 20px);
    top: clamp(-5px, 2vw, 18px);

    width: clamp(110px, 15vw, 180px);
    height: auto;

    transform: rotate(9.06deg);
    pointer-events: none;
}

/* 囲み枠（青枠） */
.faq-item {
    border: 2px solid #00377E;
    border-radius: 16px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}


/* FAQリスト */
.faq-list {
    margin-bottom: 48px;
}

/* 質問行全体（左右2カラム） */
.faq-question {
    width: 100%;
    padding: 20px clamp(16px, 3vw, 20px);
    display: flex;
    align-items: center;
    background: transparent;
    border: none;
    cursor: pointer;
    justify-content: space-between;
    /* これは左右分離に必要なので維持 */
}

/* icon共通 */
.q-icon,
.a-icon {
    width: clamp(28px, 4.5vw, 40px);
    height: auto;
    flex-shrink: 0;
}


/* 左側：Qアイコン＋テキスト */
.q-left {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 20px);
    /* 指定通り左右20px */
}

/* Qテキスト */
.q-text {
    font-size: clamp(14px, 1.3vw, 16px);
    font-family: var(--font-base);
    font-weight: 900;
    text-align: left;
}

/* ピンク矢印 */
.faq-arrow {
    width: 28px;
    transition: 0.25s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

/* 回答部分 */
.faq-answer {
    padding: 0 clamp(16px, 3vw, 20px) 20px;
    display: none;
}

/* Aアイコンとテキストを横並び */
.answer-inner {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 20px);
    padding: 12px 0;
}

.answer-text {
    font-size: clamp(14px, 1.3vw, 16px);
    line-height: 1.6;
    text-align: left;
}


.faq-item.open .faq-answer {
    display: block;
}


.discord-link {
    color: var(--color-keio-blue);
    font-weight: 700;
}

.discord-link:hover {
    opacity: 0.8;
}

.faq-rulebook-link {
    color: var(--color-keio-pink);
    font-weight: 700;
    text-decoration: none;
}

.faq-rulebook-link:hover {
    opacity: 0.7;
}




/* ========== FOOTER ========== */
.site-footer {
    background: var(--color-keio-blue);
    color: #fff;
    padding-top: clamp(40px, 8vw, 100px);
    padding-bottom: clamp(40px, 8vw, 100px);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: clamp(24px, 6vw, 80px);
    padding-left: clamp(24px, 3vw, 0px);
    padding-right: clamp(24px, 3vw, 0px);
}

/* --- お問い合わせとXアイコン（横並び） --- */
.footer-contact-row {
    display: flex;
    align-items: center;
    gap: 40px;
}

.footer-contact-link {
    font-size: 16px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
}

.footer-contact-link:hover {
    opacity: 0.75;
}

.footer-contact-note {
    font-size: 12px;
    font-weight: 700;
    margin: 8px 0 40px 0;
    /* 行間のバランス調整 */
    color: #fff;
    opacity: 0.9;
}


.footer-x-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.footer-x-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    transition: 0.2s ease;
}

/* ▼ hover時にオレンジアイコンに差し替え */
.footer-x-link:hover .footer-x-icon {
    content: url("img/x-icon-orange.png");
}

/* --- 主催/共催/運営 --- */
.footer-org p {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 900;
}

.footer-org a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* --- クレジット --- */
.footer-text {
    font-size: 12px;
    font-weight: 900;
    line-height: 1.6;
    margin-top: 20px;
}

/* --- 右側ロゴ領域を縦並びにする --- */
.footer-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 40px;
}

/* ロゴ共通設定（同じ割合で縮む） */
.footer-logo {
    max-width: 200px;
    width: 100%;
    height: auto;
}

/* ロゴリンク（hoverなど追加したい場合に備えて） */
.footer-logo-link {
    display: block;
    transition: opacity 0.25s ease;
}

.footer-logo-link:hover {
    opacity: 0.9;
}


/* ========== ▼ 追従CTAボタン ========== */
.floating-cta {
    position: fixed;
    right: clamp(16px, 3vw, 24px);
    bottom: clamp(60px, 8vw, 80px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 表示時のクラス */
.floating-cta.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

/* 追従CTA画像（通常） */
.floating-cta-img {
    width: 120px;
    height: auto;
    display: block;
    transition: 0.2s ease;
}

/* hover */
.floating-cta:hover .floating-cta-img {
    content: url("img/cta-btn-blue.png");
}





/* ==================================== */
/* ========== RESPONSIVE ============== */
/* ==================================== */
@media (max-width: 768px) {

    /* ===== Header ===== */
    .header-inner {
        padding: 0 12px;
        /* スマホ時はさらに余白を縮める */
    }

    .hamburger {
        display: flex;
        margin-left: auto;
    }

    .pc-nav {
        display: none;
    }

    /*ハンバーガーメニュークリックでHeader分位置を調整*/
    section {
        scroll-margin-top: 60px;
    }


    /* ===== ABOUT ===== */
    .about-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .about-label {
        min-width: auto;
        width: fit-content;
        align-self: flex-start;
    }

    .about-station-info {
        font-size: 12px;
    }

    .about-bottom-wrap {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }

    /* ===== 予選 ===== */

    .qual-flow-box {
        padding-left: 8px;
        padding-right: 8px;
    }

    .rulebook-btn {
        margin: 0 0 32px 0;
    }

    .step1-entry {
        padding-left: 0;
        padding-right: 0;
    }

    .step3-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .step3-left {
        width: 100%;
        flex: none;
        justify-content: center;
        padding: 12px 0;
        text-align: center;
    }

    .step3-right {
        width: 100%;
        padding: 12px;
    }

    .schedule-box {
        padding: 20px 16px 32px;
        border-width: 4px;
    }

    .schedule-img-pc {
        display: none;
    }

    .schedule-img-sp {
        display: block;
    }

    .schedule-note {
        font-size: 12px;
        margin-top: 12px;
    }

    /* ===== FAQ ===== */

    .answer-text {
        word-break: break-word;
        overflow-wrap: break-word;
    }


    /* ===== Footer ===== */

    .footer-inner {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-contact-row {
        justify-content: center;
    }

    .footer-contact-note {
        text-align: center;
    }

    .footer-org p {
        text-align: left;
        font-size: 14px;
    }

    .footer-text {
        font-size: 12px;
        text-align: left;
    }

    .footer-x-icon {
        width: 40px;
        height: 40px;
    }

    .footer-right {
        margin-top: 32px;
    }

    .footer-x-icon:hover {
        content: url("img/x-icon-orange.png");
    }


    /*▼ 追従CTAボタン画像サイズ調整 */
    .floating-cta-img {
        width: 70px;
    }
}