/* ==========================================================================
   NEXUS College — 共通「会員登録・ログイン」ボタン ＋ join.html（プラン選択）
   --------------------------------------------------------------------------
   ■ サイト内の登録・ログイン導線は、すべて .btn-join の1種類に統一。
     遷移先は join.html のみ。
   ■ ここで使う色は「冬」のパレット（深いネイビー＋深緑＋ゴールド）。
   ■ 画像ファイルは使っていません（CSSのみ）。
   ========================================================================== */

:root {
    --winter-navy: #0F2A44;
    --winter-navy-deep: #081A2C;
    --winter-green: #14532D;
    --winter-green-deep: #0B3D2E;
    --winter-gold: #C9A227;
    --winter-gold-light: #F2E3A6;
    --winter-ice: #E8F1F8;

    /* --- 秋 → 冬のパレット差し替え -------------------------------------------
       css/autumn-theme.css は「--autumn-gradient-*」を各所の background に
       使っています（.header / .hero / .btn-cta / inline の var() など）。
       このファイルは autumn-theme.css の“後”に読み込まれるため、ここで同じ変数を
       冬色に再定義すると、既存の秋グラデーションが一括で冬色になります。
       変数名は既存コードとの互換のために「autumn」のまま残しています。
       ---------------------------------------------------------------------- */
    --autumn-gradient-warm: linear-gradient(160deg, #081A2C 0%, #0F2A44 45%, #14532D 100%);
    --autumn-gradient-sunset: linear-gradient(135deg, #14532D 0%, #0B3D2E 100%);
    --autumn-gradient-forest: linear-gradient(135deg, #081A2C 0%, #0B3D2E 100%);
    --autumn-gradient-golden: linear-gradient(135deg, #C9A227 0%, #E8C766 100%);
}

/* --------------------------------------------------------------------------
   0. 冬テーマ（秋デザインの置き換え）
      - 紅葉（.hero::before / .hero::after の🍁🍂）を非表示
      - 背景の赤〜オレンジのグラデーションを深いネイビー＋深緑へ
      - 「NEXUS College」のタイトルをゴールドにして背景から浮かせる
   -------------------------------------------------------------------------- */

/* ヘッダー：深いネイビー → 深緑（金の細いボーダー付き） */
.header {
    background: linear-gradient(135deg, var(--winter-navy-deep) 0%, var(--winter-green-deep) 100%) !important;
    border-bottom: 2px solid rgba(201, 162, 39, 0.55) !important;
    box-shadow: 0 4px 24px rgba(3, 12, 22, 0.55) !important;
}

.header .logo {
    color: #FFFFFF !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.header .logo i {
    color: var(--winter-gold-light) !important;
}

/* ヒーロー：冬の夜空〜深緑 */
.hero {
    background: linear-gradient(160deg, var(--winter-navy-deep) 0%, var(--winter-navy) 45%, var(--winter-green-deep) 100%) !important;
}

/* 紅葉のイラスト（絵文字）を消す */
.hero::before,
.hero::after {
    content: none !important;
    display: none !important;
}

/* タイトル「NEXUS College」＝ゴールド（背景に溶けない） */
.hero-title {
    color: var(--winter-gold-light) !important;
    text-shadow: 0 3px 14px rgba(0, 0, 0, 0.6) !important;
}

.hero-title .title-main,
.title-main {
    color: var(--winter-gold-light) !important;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65), 0 0 32px rgba(242, 227, 166, 0.28) !important;
}

.hero-subtitle {
    color: var(--winter-ice) !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55) !important;
}

/* 秋の装飾要素（落ち葉・雲）は使わない */
.autumn-leaf-decoration,
.autumn-cloud {
    display: none !important;
}

/* 冬の光（静的な雪あかり。index.html の .winter-snow-glow 用） */
.winter-snow-glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(232, 241, 248, 0.20) 0%, rgba(232, 241, 248, 0) 70%);
}

.winter-snow-glow-1 {
    top: -80px;
    right: -60px;
    width: 380px;
    height: 380px;
}

.winter-snow-glow-2 {
    bottom: -100px;
    left: -80px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(242, 227, 166, 0.16) 0%, rgba(242, 227, 166, 0) 70%);
}

/* 秋色が残っていた小物も冬色に（accent 系） */
.badge,
.plan-badge-premium,
.plan-badge-vip {
    background: linear-gradient(135deg, var(--winter-gold) 0%, #E8C766 100%) !important;
    color: #1B1405 !important;
}

.progress-bar {
    background: linear-gradient(135deg, var(--winter-navy) 0%, var(--winter-green) 100%) !important;
}

/* --------------------------------------------------------------------------
   1. 統一ボタン（ヘッダー・トップ・各ページ共通）
   -------------------------------------------------------------------------- */
.btn-join {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    background: linear-gradient(135deg, var(--winter-navy) 0%, var(--winter-green) 100%);
    border: 2px solid var(--winter-gold);
    box-shadow: 0 4px 14px rgba(8, 26, 44, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    white-space: nowrap;
}

.btn-join:hover,
.btn-join:focus {
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(8, 26, 44, 0.45);
    filter: brightness(1.12);
}

.btn-join:focus-visible {
    outline: 3px solid var(--winter-gold-light);
    outline-offset: 3px;
}

.btn-join i {
    font-size: 1rem;
}

/* 大きめ表示（トップのヒーロー・各ページの主要CTA用） */
.btn-join.btn-join-lg {
    padding: 16px 42px;
    font-size: 1.1rem;
}

/* 中央寄せ用のラッパー */
.btn-join-wrap {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* --------------------------------------------------------------------------
   2. join.html ページ本体
   -------------------------------------------------------------------------- */
.join-page {
    background: linear-gradient(180deg, var(--winter-navy-deep) 0%, #10243B 45%, #0D2033 100%);
    min-height: 100vh;
    padding-bottom: 60px;
}

.join-hero {
    text-align: center;
    padding: 56px 20px 20px;
    color: #FFFFFF;
}

.join-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1.5;
    margin: 0 0 14px;
    color: #FFFFFF;
    letter-spacing: 0.02em;
}

.join-hero h1 .join-hero-accent {
    color: var(--winter-gold-light);
}

.join-hero p {
    margin: 0 auto;
    max-width: 620px;
    font-size: 1rem;
    line-height: 1.9;
    color: #D6E4F0;
}

/* 3枚のカード */
.join-plans {
    max-width: 1120px;
    margin: 34px auto 0;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.join-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border-radius: 18px;
    padding: 30px 24px 24px;
    box-shadow: 0 12px 34px rgba(3, 12, 22, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.14);
}

/* 無料会員＝おすすめ（いちばん目立たせる） */
.join-card.is-recommended {
    border: 3px solid var(--winter-gold);
    box-shadow: 0 18px 44px rgba(201, 162, 39, 0.42), 0 0 0 4px rgba(201, 162, 39, 0.16);
    transform: translateY(-6px);
}

.join-badge {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 20px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--winter-gold) 0%, #E8C766 100%);
    color: #1B1405;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(201, 162, 39, 0.45);
}

.join-card-name {
    margin: 6px 0 4px;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--winter-navy);
    text-align: center;
}

.join-card-price {
    margin: 0 0 4px;
    text-align: center;
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--winter-green-deep);
    line-height: 1.3;
}

.join-card-price .join-price-note {
    display: block;
    margin-top: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #45607A;
    line-height: 1.6;
}

.join-card-desc {
    margin: 12px 0 18px;
    font-size: 0.9rem;
    line-height: 1.85;
    color: #3E5568;
    text-align: center;
    flex: 1 1 auto;
}

.join-card-action {
    display: block;
}

.join-plan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.5;
    text-align: center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.join-plan-btn:hover,
.join-plan-btn:focus {
    transform: translateY(-2px);
    filter: brightness(1.06);
}

.join-plan-btn:focus-visible {
    outline: 3px solid var(--winter-gold);
    outline-offset: 3px;
}

/* 無料＝最も目立つ（ゴールド） */
.join-plan-btn.is-free {
    background: linear-gradient(135deg, var(--winter-gold) 0%, #E8C766 100%);
    color: #1B1405;
    box-shadow: 0 6px 18px rgba(201, 162, 39, 0.5);
}

/* プレミアム＝深緑 */
.join-plan-btn.is-premium {
    background: linear-gradient(135deg, var(--winter-green) 0%, var(--winter-green-deep) 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(20, 83, 45, 0.4);
}

/* VIP＝深いネイビー */
.join-plan-btn.is-vip {
    background: linear-gradient(135deg, var(--winter-navy) 0%, var(--winter-navy-deep) 100%);
    color: #FFFFFF;
    box-shadow: 0 6px 18px rgba(8, 26, 44, 0.45);
}

/* 各カード下の「すでに会員の方はこちら（ログイン）」 */
.join-login-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    line-height: 1.6;
    color: #1F4E79;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.join-login-link:hover,
.join-login-link:focus {
    color: var(--winter-green-deep);
}

/* ページ下部の注記 */
.join-note {
    max-width: 800px;
    margin: 34px auto 0;
    padding: 0 20px;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.9;
    color: #C7D6E4;
}

.join-note i {
    color: var(--winter-gold-light);
    margin-right: 6px;
}

/* --------------------------------------------------------------------------
   3. join.html のヘッダー（冬色・他ページと同じ見た目）
   -------------------------------------------------------------------------- */
.join-page .header {
    background: linear-gradient(135deg, var(--winter-navy-deep) 0%, var(--winter-green-deep) 100%) !important;
    box-shadow: 0 4px 20px rgba(3, 12, 22, 0.5) !important;
    border-bottom: 2px solid rgba(201, 162, 39, 0.55) !important;
}

.join-page .header .logo {
    color: #FFFFFF !important;
}

.join-page .header .logo i {
    color: var(--winter-gold-light) !important;
}

/* フッター */
.join-footer {
    margin-top: 40px;
    padding: 24px 20px;
    text-align: center;
    font-size: 0.8rem;
    color: #AFC2D4;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.join-footer a {
    color: #D6E4F0;
    text-decoration: underline;
    margin: 0 8px;
}

/* --------------------------------------------------------------------------
   3.5 隠し入口（LUNA'S TAROT 講座生専用ルーム／2026-11-16 追加）
     ・文字なし・三日月マークのみ
     ・金色・透明度30%で、ぱっと見では気づかないくらい控えめ
     ・マウスを乗せたときだけ「ふわっと」明るくなる
   -------------------------------------------------------------------------- */
.join-secret-entry {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 注記との間隔を確保し、指で押しやすい余白を持たせる */
    margin: 30px auto 8px;
    padding: 0 20px;
}

.join-secret-moon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /* 24px 程度のマーク。タップ領域は 44px 以上を確保 */
    width: 44px;
    height: 44px;
    font-size: 24px;
    line-height: 1;
    /* ※ autumn-theme.css の「a { color: ... !important }」に勝つため !important が必要 */
    color: var(--winter-gold) !important;
    opacity: 0.3;
    text-decoration: none;
    border-radius: 50%;
    transition: opacity 0.5s ease, color 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

/* マウスを乗せたとき・キーボードで選んだときだけ明るく */
.join-secret-moon:hover,
.join-secret-moon:focus {
    opacity: 1;
    color: var(--winter-gold-light) !important;
    transform: scale(1.08);
    filter: drop-shadow(0 0 10px rgba(242, 227, 166, 0.75));
    text-decoration: none;
}

.join-secret-moon:focus-visible {
    outline: 2px solid var(--winter-gold-light);
    outline-offset: 4px;
    opacity: 1;
}

.join-secret-moon i {
    pointer-events: none;
}

/* --------------------------------------------------------------------------
   4. レスポンシブ（スマホでは縦に並べる）
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
    .join-plans {
        grid-template-columns: 1fr;
        max-width: 520px;
        gap: 26px;
    }

    .join-card.is-recommended {
        transform: none; /* 縦並びでは浮かせない（重なり防止） */
    }
}

@media (max-width: 768px) {
    .btn-join {
        padding: 11px 18px;
        font-size: 0.86rem;
    }

    .btn-join.btn-join-lg {
        padding: 15px 28px;
        font-size: 1rem;
        width: 100%;
    }

    .btn-join-wrap {
        width: 100%;
    }

    .join-hero {
        padding: 40px 16px 12px;
    }

    .join-hero h1 {
        font-size: 1.6rem;
    }

    .join-hero p {
        font-size: 0.92rem;
    }

    .join-card {
        padding: 28px 20px 22px;
    }

    .join-card-price {
        font-size: 1.7rem;
    }

    .join-note {
        font-size: 0.78rem;
    }
}

/* 動きを減らす設定のユーザー向け */
@media (prefers-reduced-motion: reduce) {
    .btn-join,
    .join-plan-btn {
        transition: none;
    }

    .btn-join:hover,
    .join-plan-btn:hover {
        transform: none;
    }
}
