/* ===================================
   天才適所診断 LP - CSS
   =================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: #1a1a2e;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    /* ===== 文節改行・1文字落ち防止 ===== */
    word-break: auto-phrase;        /* Chrome 119+ / 文節単位で折り返し */
    overflow-wrap: break-word;      /* フォールバック */
    text-wrap: pretty;             /* Chrome 117+：末尾1語落ちを防ぐ */
}

/* ---- Colors ---- */
:root {
    --navy:       #0d1b2a;
    --navy-mid:   #122136;
    --blue-gray:  #eef1f6;
    --gold:       #c9a227;
    --gold-light: #e8c84a;
    --white:      #ffffff;
    --text-dark:  #1a1a2e;
    --text-mid:   #4a5568;
    --fw-color:   #e85d04;
    --mf-color:   #0077b6;
    --df-color:   #2d6a4f;
    --coach-color:#6b3fa0;
}

/* ---- Typography ---- */
.section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1.25rem, 3.5vw, 2rem);
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.45;
    text-wrap: pretty;
    word-break: auto-phrase;
}
.section-subtitle {
    font-size: clamp(0.92rem, 2vw, 1.05rem);
    font-style: italic;
    color: var(--text-mid);
    margin-bottom: 1.5rem;
    text-wrap: pretty;
    word-break: auto-phrase;
}
.section-lead {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 600;
    line-height: 1.75;
    margin-bottom: 1.5rem;
    color: var(--navy);
    text-wrap: pretty;
    word-break: auto-phrase;
}
.body-text {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-mid);
    margin-bottom: 1.2rem;
    line-height: 1.9;
    text-wrap: pretty;
    word-break: auto-phrase;
}
.body-text br { content: ""; display: block; margin-bottom: 0.2em; }

/* ---- Layout ---- */
.section { padding: 80px 20px; }
.container {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}
.section-white  { background: var(--white); }
.section-bluegray { background: var(--blue-gray); }
.section-navy   { background: var(--navy); color: white; }
.section-navy .section-title { color: var(--gold); }
.section-navy .body-text { color: rgba(255,255,255,0.85); }

/* ---- CTA Buttons ---- */
.cta-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 1.05rem;
    font-weight: 700;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 6px 24px rgba(201,162,39,0.35);
    letter-spacing: 0.04em;
    text-wrap: pretty;
    word-break: auto-phrase;
    text-align: center;
    line-height: 1.5;
}
.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(201,162,39,0.5);
}
.cta-note { font-size: 0.82rem; color: rgba(255,255,255,0.6); margin-top: 12px; }

/* ==========================================
   HERO
   ========================================== */
.hero {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(160deg, #0a1628 0%, #0d1b2a 40%, #1a1a3e 100%);
    display: flex;
    align-items: flex-start;
    overflow: hidden;
    padding: 60px 20px 40px;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 70% 30%, rgba(201,162,39,0.06) 0%, transparent 70%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,119,182,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}
.hero-eyebrow {
    font-size: clamp(0.75rem, 1.8vw, 0.85rem);
    letter-spacing: 0.15em;
    color: var(--gold);
    margin-bottom: 16px;
    text-transform: uppercase;
}
.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(2.2rem, 7vw, 5rem);
    font-weight: 900;
    color: white;
    line-height: 1.15;
    margin-bottom: 20px;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    text-wrap: pretty;
    word-break: auto-phrase;
}
.hero-subtitle {
    font-size: clamp(0.9rem, 2.2vw, 1.2rem);
    color: #8fa4bf;
    line-height: 1.8;
    margin-bottom: 40px;
    text-wrap: pretty;
    word-break: auto-phrase;
}
.accent-text {
    color: var(--gold-light);
    font-weight: 700;
    font-size: 1.1em;
}
.hero-cta { margin-bottom: 10px; }
.hero-cta-note {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    margin-top: 8px;
    margin-bottom: 0;
    text-wrap: pretty;
    word-break: auto-phrase;
}
/* スマホで不要な <br class="sp-hide"> を非表示 */
@media (max-width: 600px) {
    .sp-hide { display: none; }
}

/* ==========================================
   SOCCER FIELD (HERO TOP) — Photo Background
   ========================================== */
.field-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto 44px;
    /* perspective は不要（画像自体が透視投影済み） */
}

/* ---- フィールド本体 ---- */
.soccer-field {
    position: relative;
    width: 100%;
    /* 背景画像のアスペクト比に合わせて高さを確保 */
    padding-bottom: 60%;
    background-image: url('../images/field-bg.jpg?v=4');
    background-size: cover;
    background-position: center center;
    border-radius: 16px;
    overflow: visible;
    /* 上部に暗い遮光で文字が映えるよう、薄いオーバーレイ */
    box-shadow: 0 28px 80px rgba(0,0,0,0.65);
}

/* フィールドに薄い暗幕をかけてカードを浮き立たせる */
.soccer-field::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.30) 0%,
        rgba(0,0,0,0.10) 50%,
        rgba(0,0,0,0.35) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* ---- カード共通：白の半透明 ---- */
.pos-card {
    position: absolute;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 14px;
    padding: 20px 24px 22px;
    cursor: default;
    box-shadow:
        0 4px 20px rgba(0,0,0,0.25),
        inset 0 1px 0 rgba(255,255,255,0.45);
    /* 登場アニメ用の初期状態 */
    opacity: 0;
    transform-origin: center bottom;
    z-index: 10;
    overflow: hidden;   /* はみ出し防止 */
    /* ホバーのみtransitionを残す */
    transition:
        transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
        box-shadow 0.3s,
        border-color 0.3s,
        background 0.3s;
}

/* 登場後の通常状態（JSで付与） */
.pos-card.appeared {
    opacity: 1;
}

/* ホバー */
.pos-card:hover {
    background: rgba(255,255,255,0.30);
    border-color: rgba(255,255,255,0.85);
    box-shadow:
        0 12px 36px rgba(0,0,0,0.40),
        0 0 0 1px rgba(255,255,255,0.3),
        inset 0 1px 0 rgba(255,255,255,0.6);
    z-index: 50 !important;
}

/* ---- モバイル: 説明文デフォルト非表示・タップで開く ---- */
@media (max-width: 768px) {
    .pos-desc {
        display: none;
    }
    .pos-card.desc-open .pos-desc {
        display: block;
    }
    /* タップ可能であることを示すカーソル */
    .pos-card { cursor: pointer; }
    /* 説明文が開いたとき z-index を上げる */
    .pos-card.desc-open { z-index: 50 !important; }
}

/* ヘッダー行 */
.pos-header-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}
.pos-badge {
    display: inline-block;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: white;
    padding: 2px 9px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}
.pos-role {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}
@media (max-width: 768px) {
    .pos-role { white-space: normal; word-break: auto-phrase; }
}
.pos2-role {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.88rem; font-weight: 700; color: white;
    line-height: 1.2;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .pos2-role { white-space: normal; word-break: auto-phrase; }
}
.pos-desc {
    color: rgba(255,255,255,0.90);
    line-height: 1.55;
    text-wrap: pretty;
    word-break: auto-phrase;
    text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* ====================================================
   各カード配置
   画像は手前に向かって広がる透視投影のフィールド
   → 下 = 手前、上 = 奥 に配置

   1列目(FW)   : 下・中央・最大・最手前  z24
   1.5列目(MF) : 下1/3・右寄り          z18
   2列目(DF)   : 上1/3・左寄り          z14
   3列目(監督) : 最上・中央・最小・最奥  z12
==================================================== */

/* 1列目(FW) */
.pos-fw {
    top: 65%;
    left: 40%;
    transform: translateX(-50%) translateY(0);
    min-width: 380px;
    font-size: 1rem;
    z-index: 24;
}
.pos-fw .pos-badge { background: rgba(210,70,0,0.85); }
.pos-fw .pos-role  { font-size: 0.92rem; white-space: nowrap; }
.pos-fw .pos-desc  { font-size: 0.76rem; }
.pos-fw:hover {
    transform: translateX(-50%) translateY(-14px) scale(1.04);
    z-index: 50 !important;
}

/* 1.5列目(MF)：MFをより手前（下）に出す */
.pos-mf {
    top: 50%;
    right: 10%;
    min-width: 360px;
    font-size: 0.94rem;
    z-index: 20;
}
.pos-mf .pos-badge { background: rgba(0,80,170,0.85); }
.pos-mf .pos-role  { font-size: 0.86rem; white-space: nowrap; }
.pos-mf .pos-desc  { font-size: 0.72rem; }
.pos-mf:hover {
    transform: translateY(-12px) scale(1.03);
    z-index: 50 !important;
}

/* 2列目(DF) */
.pos-df {
    top: 35%;
    left: 15%;
    min-width: 360px;
    font-size: 0.90rem;
    z-index: 14;
}
.pos-df .pos-badge { background: rgba(15,90,50,0.85); }
.pos-df .pos-role  { font-size: 0.82rem; }
.pos-df .pos-desc  { font-size: 0.68rem; }
.pos-df:hover {
    transform: translateY(-12px) scale(1.03);
    z-index: 50 !important;
}

/* 3列目(監督)：右寄り・フィールド内（ピッチ上部右エリア）*/
.pos-coach {
    top: 20%;
    right: 10%;
    min-width: 320px;
    font-size: 0.86rem;
    z-index: 10;
}
.pos-coach .pos-badge { background: rgba(80,30,150,0.85); }
.pos-coach .pos-role  { font-size: 0.78rem; white-space: nowrap; }
.pos-coach .pos-desc  { font-size: 0.65rem; }
.pos-coach:hover {
    transform: translateY(-10px) scale(1.03);
    z-index: 50 !important;
}


.three-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.ability-card {
    background: white;
    border-radius: 14px;
    padding: 28px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
    /*
      PC レイアウト：
      行1: [ローマ数字（縦中央）| タイトル（縦中央）]
      行2: [サブタイトル（全幅・中央揃え）         ]
      行3: [本文（全幅・左揃え）                   ]
    */
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 16px;
    row-gap: 0;
    align-items: start;
    transition: transform 0.3s, box-shadow 0.3s;
}
.ability-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 32px rgba(0,0,0,0.12);
}
.card-ability { border-top-color: #6c757d; }
.card-talent  { border-top-color: #0077b6; }
.card-genius  { border-top-color: var(--gold); }

/* PC版: ローマ数字 — 行1のみ、縦中央揃え */
.card-roman {
    grid-column: 1;
    grid-row: 1;           /* タイトルと同じ行 */
    font-size: 3.2rem;
    font-weight: 900;
    line-height: 1;
    opacity: 0.28;
    font-family: 'Noto Serif JP', Georgia, serif;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;   /* タイトルと縦中央で揃える */
    margin-bottom: 0;
    padding-bottom: 14px;  /* タイトル行の下余白に合わせる */
}
.card-ability .card-roman { color: #6c757d; }
.card-talent  .card-roman { color: #0077b6; }
.card-genius  .card-roman { color: var(--gold); }

/* タイトル：行1・右カラム、縦中央揃え */
.card-title {
    grid-column: 2;
    grid-row: 1;
    font-family: 'Noto Serif JP', serif;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 14px;   /* サブタイトルとの間隔 */
    display: flex;
    align-items: center;   /* ローマ数字と縦中央で揃える */
    min-height: 3.2rem;    /* ローマ数字の高さに合わせる */
}

/* サブタイトル：全幅（col 1〜2）・中央揃え */
.card-label {
    grid-column: 1 / -1;  /* 全列スパン */
    grid-row: 2;
    font-size: 0.95rem;
    color: var(--text-mid);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
    text-align: center;    /* カード中央配置 */
}

/* 本文：全幅（col 1〜2）・左揃え・中央寄せ */
.card-body {
    grid-column: 1 / -1;  /* 全列スパン */
    grid-row: 3;
    font-size: 0.92rem;
    color: var(--text-mid);
    line-height: 1.7;
    text-wrap: pretty;
    word-break: auto-phrase;
    text-align: left;      /* 左揃え */
}

/* ==== モバイル：3つの力カード ====
   構造（画像準拠）:
   ┌──────────────────────────────────┐
   │ [Ⅰ大きく左]  タイトル（右・中央縦）│  行1
   │ ─────────────────────────────── │
   │          サブタイトル（中央）      │  行2
   │ 本文（左揃え）                    │  行3
   └──────────────────────────────────┘
   Ⅱのみローマ数字が右、タイトルが左
==== */
@media (max-width: 768px) {
    .three-cards {
        grid-template-columns: 1fr;
        gap: 16px;   /* カード間に余白 */
    }
    .ability-card {
        /* グリッドをリセットしてflexに切り替え */
        display: flex;
        flex-direction: column;
        border-top: 4px solid transparent;
        border-radius: 14px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.07);
        padding: 24px 22px 22px;
        position: relative;
        overflow: hidden;
        background: white;
    }
    .card-ability { border-top-color: #6c757d; }
    .card-talent  { border-top-color: #0077b6; }
    .card-genius  { border-top-color: var(--gold); }

    /* 行1：ローマ数字＋タイトルの横並び行 */
    .ability-card .card-roman {
        position: absolute;     /* 装飾として背景に配置 */
        top: 10px;
        left: 12px;
        font-size: 5.5rem;
        opacity: 0.12;
        line-height: 1;
        margin: 0;
        padding: 0;
        pointer-events: none;
        display: block;
        min-height: auto;
        padding-bottom: 0;
    }
   /* Ⅰ・Ⅱ・Ⅲ すべて右配置に統一 */
    .card-ability .card-roman,
    .card-genius .card-roman,
    .card-talent .card-roman {
        left: auto !important;
        right: 12px !important;
    }
   /* タイトル：中央配置に変更（ローマ数字に被ってもOK） */
    .ability-card .card-title {
        font-size: 1.15rem;
        font-weight: 700;
        margin-bottom: 10px;
        min-height: 3.5rem;
        display: flex;
        align-items: center;
        justify-content: center; /* ←【追加】フレックスボックスでド真ん中に配置 */
        text-align: center;      /* ←【変更】左寄せから中央寄せへ */
        padding-left: 0;         /* ←【変更】ローマ数字避けの余白をリセット */
        padding-right: 0;        /* ←【変更】ローマ数字避けの余白をリセット */
        grid-column: unset;
        grid-row: unset;
    }
    /* Ⅱ（Talent）の個別指定も上書きして余白をゼロにする */
    .card-talent .card-title {
        padding-left: 0;
        padding-right: 0;
    }

    /* サブタイトル：中央揃え・太字強調 */
    .ability-card .card-label {
        font-size: 0.95rem;
        font-weight: 700;
        text-align: center;
        color: var(--text-dark);
        margin-bottom: 12px;
        margin-top: 2px;
        grid-column: unset;
        grid-row: unset;
    }

    /* 本文：左揃え */
    .ability-card .card-body {
        font-size: 0.9rem;
        text-align: left;
        grid-column: unset;
        grid-row: unset;
    }

    /* Talent カード：グリッド上書きをリセット */
    .card-talent {
        grid-template-columns: unset;
    }
    .card-talent .card-roman  { grid-column: unset; grid-row: unset; }
    .card-talent .card-label  { grid-column: unset; grid-row: unset; }
    .card-talent .card-body   { grid-column: unset; grid-row: unset; }
}

/* ==========================================
   PARADIGM SHIFT (SECTION 3)
   ========================================== */
.paradigm-shift {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 36px;
    flex-wrap: wrap;
}
.paradigm-before, .paradigm-after {
    flex: 1;
    min-width: 180px;
    background: var(--blue-gray);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}
.paradigm-after { background: linear-gradient(135deg, #fff8e1, #fff3c4); border: 2px solid var(--gold); }
.paradigm-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    margin-bottom: 8px;
}
.paradigm-before p, .paradigm-after p {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--text-dark);
}
.paradigm-arrow {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 900;
}

/* ==========================================
   REASONS (SECTION 4)
   ========================================== */
.reasons-list { margin-top: 36px; display: flex; flex-direction: column; gap: 28px; }
.reason-item {
    display: flex;
    gap: 20px;
    background: white;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.reason-num {
    flex-shrink: 0;
    width: 48px; height: 48px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
    font-size: 1.3rem;
    font-weight: 900;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
}
.reason-body h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
    text-wrap: pretty;
    word-break: auto-phrase;
}
.reason-body p {
    font-size: 0.93rem;
    color: var(--text-mid);
    line-height: 1.85;
    margin-bottom: 8px;
    text-wrap: pretty;
    word-break: auto-phrase;
}
.reason-body p:last-child { margin-bottom: 0; }

/* ==========================================
   FIELD 2 (SECTION 5) — Green Pitch
   ========================================== */
.field2-wrapper {
    max-width: 860px;
    margin: 36px auto;
    perspective: 800px;
}
.soccer-field2 {
    position: relative;
    width: 100%;
    /* カード1.5倍になった分、高さを増やす */
    padding-bottom: 78%;
    background:
        repeating-linear-gradient(
            0deg,
            rgba(0,0,0,0.04) 0px, rgba(0,0,0,0.04) 36px,
            transparent 36px, transparent 72px
        ),
        linear-gradient(180deg, #176228 0%, #1e7e33 50%, #22923b 100%);
    border-radius: 12px;
    transform: rotateX(20deg);
    box-shadow: 0 24px 60px rgba(0,0,0,0.65);
    overflow: visible;
    border: 1px solid rgba(255,255,255,0.08);
    /* 3列目ピッチ外用に上部余白 */
    margin-top: 24px;
}
.field2-lines { position: absolute; inset: 0; }
.field2-center-line {
    position: absolute;
    top: 50%; left: 5%; right: 5%; height: 2px;
    background: rgba(255,255,255,0.28); transform: translateY(-50%);
}
.field2-center-circle {
    position: absolute; top: 50%; left: 50%;
    width: 20%; padding-bottom: 20%;
    border: 2px solid rgba(255,255,255,0.22); border-radius: 50%;
    transform: translate(-50%,-50%);
}
.field2-penalty-top {
    position: absolute; top: 3%; left: 30%; right: 30%; height: 14%;
    border: 1.5px solid rgba(255,255,255,0.18); border-top: none;
}
.field2-penalty-bottom {
    position: absolute; bottom: 3%; left: 30%; right: 30%; height: 14%;
    border: 1.5px solid rgba(255,255,255,0.18); border-bottom: none;
}

/* ---- カード共通（1.5倍サイズ） ---- */
/* PC版: 150%サイズ（旧width:45%→67.5%相当 padding/font比例拡大） */
.pos-card2 {
    position: absolute;
    background: rgba(8,18,36,0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(255,255,255,0.25);
    border-radius: 14px;
    padding: 15px 21px 18px;
    min-width: 300px;
    max-width: 400px;
    width: 42%;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s;
    cursor: default;
}
.pos-card2:hover {
    border-color: var(--gold);
    transform: translateY(-10px);
}

/* ヘッダー行 */
.pos2-header-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 5px;
}
.pos2-badge {
    font-size: 0.70rem; font-weight: 700; letter-spacing: 0.1em;
    color: white; padding: 3px 11px; border-radius: 20px;
    white-space: nowrap; flex-shrink: 0;
    background: rgba(255,255,255,0.28);
}
.pos2-role {
    font-family: 'Noto Serif JP', serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: white;
    line-height: 1.3;
    white-space: normal;
    word-break: auto-phrase;
    flex: 1;
    min-width: 0;
}
.pos2-desc {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.80);
    line-height: 1.55;
    text-wrap: pretty;
    word-break: auto-phrase;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* ---- 各配置：初期状態は寝かせる。ホバーで正面(-20度)に起き上がる ---- */
    .pos-card2 {
        transform-origin: center bottom; /* 足元を固定して起き上がるようにする */
        transition: transform 0.3s cubic-bezier(0.34,1.56,0.64,1), border-color 0.3s, box-shadow 0.3s;
    }

    .pos2-fw {
        bottom: 8%;
        left: 50%; transform: translateX(-50%); /* 角度なし（寝かせる） */
        z-index: 20;
    }
    .pos2-fw:hover { 
        transform: translateX(-50%) translateY(-10px) rotateX(-20deg) scale(1.05); 
        z-index: 50; 
    }

    .pos2-mf {
        top: 50%;
        left: 2%;
        transform: none; /* 角度なし（寝かせる） */
        z-index: 16;
    }
    .pos2-mf:hover { transform: translateY(-10px) rotateX(-20deg) scale(1.05); z-index: 50; }

    .pos2-df {
        top: 22%;
        right: 2%;
        transform: none; /* 角度なし（寝かせる） */
        z-index: 16;
    }
    .pos2-df:hover { transform: translateY(-10px) rotateX(-20deg) scale(1.05); z-index: 50; }

    .pos2-coach {
        top: -4%;
        right: 1%;
        transform: none; /* 元々あった-18度を削除して寝かせる */
        z-index: 12;
    }
    .pos2-coach:hover { transform: translateY(-10px) rotateX(-20deg) scale(1.05); z-index: 50; }

/* ==========================================
   VOICE LETTER PLAYER  (v4 — 新レイアウト)
   上段: [写真＋名前＋タイトル] ＋ [再生ボタン]
   下段: [スキップ＋速度]       ＋ [横長波形]
   ========================================== */
.voice-letter-wrap {
    display: flex;
    justify-content: center;
    margin-top: 44px;
}
.voice-player-card {
    width: 100%;
    max-width: 860px;
    background: rgba(255,255,255,0.07);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1.5px solid rgba(201,162,39,0.3);
    border-radius: 22px;
    padding: 36px 38px 28px;
    box-shadow: 0 8px 40px rgba(0,0,0,0.45);
    transition: border-color 0.3s, box-shadow 0.3s;
}
.voice-player-card.playing {
    border-color: rgba(201,162,39,0.65);
    box-shadow: 0 8px 40px rgba(0,0,0,0.5), 0 0 30px rgba(201,162,39,0.18);
}

/* 上段：[アバター＋テキスト] ＋ [再生ボタン] */
.voice-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}
.voice-header-row {
    display: flex;
    align-items: center;
    gap: 26px;
    flex: 1;
    min-width: 0;
}
.voice-avatar {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(201,162,39,0.55);
    box-shadow: 0 0 22px rgba(201,162,39,0.32);
}
.voice-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.voice-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}
.voice-sender-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.55rem;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.06em;
}
.voice-card-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.1rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.04em;
    line-height: 1.35;
    text-wrap: pretty;
    word-break: auto-phrase;
}

/* 再生ボタン（右側） */
.voice-big-play {
    flex-shrink: 0;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
    transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), filter 0.25s;
    filter: drop-shadow(0 0 12px rgba(201,162,39,0.25));
}
.voice-big-play:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 20px rgba(201,162,39,0.5));
}
.voice-big-play svg { width: 144px; height: 144px; }

/* 下段：[スキップ＋速度] ＋ [横長波形] */
.voice-bottom-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}
.voice-sub-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.voice-ctrl-btn {
    background: rgba(255,255,255,0.09);
    border: 1.5px solid rgba(255,255,255,0.22);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    line-height: 1;
    padding: 0;
    flex-shrink: 0;
}
.voice-ctrl-btn:hover {
    background: rgba(255,255,255,0.18);
    border-color: var(--gold);
    color: white;
    transform: scale(1.1);
}
.voice-ctrl-btn svg { width: 33px; height: 33px; margin-bottom: -2px; }
.ctrl-label { font-size: 0.95rem; font-weight: 700; color: currentColor; line-height: 1; }
.voice-speed-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.18);
    border-radius: 50px;
    padding: 7px 10px;
}
.voice-speed-btn {
    background: transparent;
    border: none;
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.55);
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    line-height: 1.4;
}
.voice-speed-btn:hover { color: white; }
.voice-speed-btn.active {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--navy);
}

/* 横長波形（右側・flex:1で残り幅を使う） */
.voice-waveform-wrap {
    flex: 1;
    min-width: 0;
    height: 84px;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(0,0,0,0.20);
}
.voice-waveform-wrap canvas { width: 100%; height: 100%; display: block; }

/* プログレスバー */
.voice-progress-wrap { margin-bottom: 0; }
.voice-progress-bar {
    position: relative;
    width: 100%;
    height: 5px;
    background: rgba(255,255,255,0.15);
    border-radius: 5px;
    cursor: pointer;
    margin-bottom: 7px;
    overflow: visible;
}
.voice-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 5px;
    pointer-events: none;
}
.voice-progress-thumb {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 13px;
    height: 13px;
    background: var(--gold-light);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 6px rgba(201,162,39,0.7);
    pointer-events: none;
}
.voice-time-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
    color: rgba(255,255,255,0.45);
    font-variant-numeric: tabular-nums;
}

/* レスポンシブ (≤768px) */
@media (max-width: 768px) {
    .voice-player-card { padding: 24px 20px 18px; }
    .voice-avatar { width: 90px; height: 90px; }
    .voice-sender-name { font-size: 1.2rem; }
    .voice-card-title { font-size: 1.55rem; }
    .voice-big-play svg { width: 112px; height: 112px; }
    .voice-ctrl-btn { width: 62px; height: 62px; }
    .voice-ctrl-btn svg { width: 26px; height: 26px; }
    .ctrl-label { font-size: 0.78rem; }
    .voice-speed-btn { padding: 6px 13px; font-size: 1rem; }
    .voice-waveform-wrap { height: 68px; }
}
/* レスポンシブ (≤520px) */
@media (max-width: 520px) {
    .voice-player-card { padding: 18px 14px 14px; }
    .voice-top-row { flex-direction: column; align-items: flex-start; gap: 14px; }
    .voice-big-play { align-self: center; }
    .voice-big-play svg { width: 88px; height: 88px; }
    .voice-card-title { font-size: 1.3rem; }
    .voice-sender-name { font-size: 1.05rem; }
    .voice-avatar { width: 72px; height: 72px; }
    .voice-header-row { gap: 16px; }
    .voice-bottom-row { flex-wrap: wrap; gap: 12px; }
    .voice-sub-controls { gap: 8px; }
    .voice-ctrl-btn { width: 54px; height: 54px; }
    .voice-ctrl-btn svg { width: 22px; height: 22px; }
    .ctrl-label { font-size: 0.68rem; }
    .voice-speed-btn { padding: 6px 10px; font-size: 0.88rem; }
    .voice-waveform-wrap { width: 100%; flex: none; height: 54px; }
}

/* ==========================================
   RESULT CARDS (SECTION 6)
   ========================================== */

/* ==========================================
   RESULT CARDS (SECTION 6)
   ========================================== */
.result-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 32px;
}
.result-card {
    border-radius: 12px;
    padding: 22px 18px;
    border-top: 4px solid transparent;
    background: var(--blue-gray);
    transition: transform 0.3s;
}
.result-card:hover { transform: translateY(-5px); }
.result-num {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
    color: var(--text-mid); margin-bottom: 4px;
}
.result-pos {
    font-family: 'Noto Serif JP', serif;
    font-size: 1rem; font-weight: 700; margin-bottom: 8px;
}
.result-card p { font-size: 0.88rem; color: var(--text-mid); line-height: 1.7;
    text-wrap: pretty; word-break: auto-phrase; }
.result-fw    { border-top-color: var(--fw-color); }
.result-fw .result-pos { color: var(--fw-color); }
.result-mf    { border-top-color: var(--mf-color); }
.result-mf .result-pos { color: var(--mf-color); }
.result-df    { border-top-color: var(--df-color); }
.result-df .result-pos { color: var(--df-color); }
.result-coach { border-top-color: var(--coach-color); }
.result-coach .result-pos { color: var(--coach-color); }

/* 診断結果サンプル画像 */
.result-sample-wrap {
    margin-top: 40px;
    text-align: center;
}
.result-sample-label {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-mid);
    margin-bottom: 14px;
    text-transform: uppercase;
}
.result-sample-img {
    width: 100%;
    max-width: 960px;
    border-radius: 16px;
    box-shadow: 0 8px 36px rgba(0,0,0,0.14);
    border: 1px solid rgba(0,0,0,0.07);
    display: block;
    margin: 0 auto;
}

/* ==========================================
   PROFILE (SECTION 9)
   ========================================== */
.profile-card {
    background: var(--blue-gray);
    border-radius: 16px;
    padding: 36px;
    margin-bottom: 28px;
}
.profile-label {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    color: var(--gold);
    font-weight: 700;
    margin-bottom: 16px;
}
.profile-inner { display: flex; gap: 24px; align-items: flex-start; }
.profile-avatar {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid rgba(201,162,39,0.35);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.profile-avatar svg { width: 100px; height: 100px; }
.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.profile-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
}
.profile-name-en {
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-mid);
    margin-left: 10px;
}
.profile-body { font-size: 0.93rem; color: var(--text-mid); line-height: 1.85;
    text-wrap: pretty; word-break: auto-phrase; }
.trademark {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-mid);
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #ddd;
}

/* ==========================================
   CTA (SECTION 8)
   ========================================== */
.section-8 { text-align: center; padding: 100px 20px; }
.section-8 .section-title { margin-bottom: 36px; }
.cta-main { font-size: 1.1rem; padding: 22px 48px; }

/* ==========================================
   MOBILE STICKY CTA
   ========================================== */
.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 999;
    background: rgba(13,27,42,0.95);
    backdrop-filter: blur(10px);
    padding: 12px 16px;
    border-top: 1px solid rgba(201,162,39,0.3);
    text-align: center;
}
.sticky-cta-btn { padding: 14px 28px; font-size: 0.95rem; width: 100%; max-width: 400px; }

/* ==========================================
   RESPONSIVE — タブレット・スマホ 3段階対応
   ========================================== */

/* ---- タブレット（悪いもの含む ~900px） ---- */
@media (max-width: 900px) {
    .container { max-width: 100%; padding: 0 4px; }
    /* three-cardsは768px以下で別途1列グリッドを適用するため900pxでは維持 */
    .result-cards { grid-template-columns: 1fr 1fr; gap: 16px; }
    .profile-card { padding: 28px 20px; }
}

/* ---- タブレット・スマホ (~768px) ---- */
@media (max-width: 768px) {
    /* ベース */
    .hero  { padding: 48px 16px 36px; }
    .section { padding: 56px 16px; }
    .section-8 { padding: 72px 16px; }
    .container { padding: 0; }

    /* CTAボタン */
    .cta-btn  { font-size: 0.95rem; padding: 16px 28px; letter-spacing: 0.02em; }
    .cta-main { font-size: 0.95rem; padding: 18px 28px; width: 100%; max-width: 420px; display: block; text-align: center; margin: 0 auto; }
    .hero-cta { width: 100%; max-width: 420px; display: block; margin: 0 auto 10px; text-align: center; }

    /* ---- TOPフィールド（背景画像版） ---- */
    .field-wrapper { max-width: 100%; margin-bottom: 28px; }
    .soccer-field  { padding-bottom: 110%; }   /* 縦長：4枚を均等配置できる高さ */

    /* TOPカード共通：横長・バッジ+役職名のみ表示 */
   .pos-card {
        padding: 10px 16px;
        width: fit-content;
        min-width: 220px;
        max-width: 90%;
    }
    .pos-badge { font-size: 0.62rem; }
    .pos-role  { font-size: 0.82rem !important; white-space: nowrap !important;
                 overflow: hidden; text-overflow: ellipsis; }
    .pos-desc  { font-size: 0.65rem; }  /* タップで表示される説明文 */

    /* 1列目(FW)：左寄り・最下部 */
    .pos-fw {
        top: auto; /* ←【追加】これが縦長になるのを防ぐ魔法の1行です！ */
        bottom: 6%;
        left: 50%;
        transform: translateX(-50%);
    }
    .pos-fw:hover { transform: translateX(-50%) translateY(-8px) scale(1.03); }

    /* 1.5列目(MF)：右寄り・下から2番目 */
    .pos-mf {
        top: auto;
        bottom: 26%;    /* FW(6%)から約20%上 */
        right: 4%;
        left: auto;
        transform: translateX(0);
   }
    .pos-mf:hover { transform: translateX(0) translateY(-8px) scale(1.03); }

    /* 2列目(DF)：左寄り・上から2番目 */
    .pos-df {
        top: auto;
        bottom: 54%;
        left: 4%;
        right: auto;
        transform: translateX(0);
   }
    .pos-df:hover { transform: translateX(0) translateY(-8px) scale(1.03); }

    /* ↓【追加】DFのみ文字の折り返しを許可する */
    .pos-df .pos-role {
        white-space: normal !important;
        line-height: 1.4;
    }

    /* 3列目(監督)：右寄り・最上部 */
    .pos-coach {
        top: 8%;
        right: 4%;
        left: auto;
        transform: translateX(0);
   }
    .pos-coach:hover { transform: translateX(0) translateY(-6px) scale(1.03); }

    /* ---- グリーンピッチ（Section 5） ---- */
    .field2-wrapper { max-width: 100%; }
    .soccer-field2  { transform: rotateX(16deg); padding-bottom: 96%; margin-top: 18px; }
    /* 全カード共通：文字に合わせて横長にする */
    .pos-card2 {
        min-width: 200px;
        max-width: 95%;
        width: fit-content !important; /* 横幅の制限を解除 */
        padding: 8px 14px 10px;
        overflow: hidden;}
    .pos2-role   {
        font-size: 0.72rem;
        white-space: nowrap; /* 基本は改行させず1行にする（MFを1行にするため） */
    }
    /* DFのみ折り返しを許可（HTMLの<br>を効かせるため） */
    .pos2-df .pos2-role {
        white-space: normal;
        line-height: 1.4;
    }
    .pos2-badge  { font-size: 0.50rem; }
    .pos2-desc   { font-size: 0.60rem; -webkit-line-clamp: 3; }
 /* Section5カード位置：スマホ版 */
    .pos-card2  { transform-origin: center bottom; }
    
    .pos2-fw    { bottom: 2%; left: 50%; transform: translateX(-50%); }
    .pos2-fw:hover { transform: translateX(-50%) translateY(-8px) rotateX(-16deg) scale(1.05) !important; z-index: 50; }
    
    .pos2-mf    { top: 50%; left: 1%; transform: none; }
    .pos2-mf:hover { transform: translateY(-8px) rotateX(-16deg) scale(1.05) !important; z-index: 50; }

    .pos2-df    { top: 20%; right: 1%; transform: none; }
    .pos2-df:hover { transform: translateY(-8px) rotateX(-16deg) scale(1.05) !important; z-index: 50; }

    .pos2-coach { top: -8%; right: 1%; transform: none; }
    .pos2-coach:hover { transform: translateY(-8px) rotateX(-16deg) scale(1.05) !important; z-index: 50; }

    /* ---- パラダイム (Section 3) ---- */
    .paradigm-shift { flex-direction: column; gap: 16px; }
    .paradigm-arrow { transform: rotate(90deg); align-self: center; }
    .paradigm-before, .paradigm-after { min-width: auto; width: 100%; }

    /* ---- リーズン (Section 4) ---- */
    .reason-item { flex-direction: column; padding: 20px 16px; gap: 14px; }
    .reason-num  { width: 40px; height: 40px; font-size: 1.1rem; }

    /* ---- 3カード (Section 2) ---- */
    /* モバイルでは .three-cards CSS側で1列対応済み。ここでの上書きは不要 */

    /* ---- 結果カード (Section 6) ---- */
    .result-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
    .result-card  { padding: 18px 14px; }

    /* ---- プロフィール (Section 9) ---- */
    .profile-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .profile-card  { padding: 24px 18px; }
    .profile-avatar { width: 80px; height: 80px; }
    .profile-name  { font-size: 1.05rem; }
    .profile-name-en { font-size: 0.72rem; display: block; margin-left: 0; margin-top: 2px; }

    /* ---- ボイスレター ---- */
    .voice-player-card { padding: 18px 16px 14px; }
    .voice-card-title  { font-size: 1.05rem; }
    .voice-main-row    { gap: 12px; }
    .voice-big-play svg { width: 72px; height: 72px; }
    .voice-waveform-wrap { width: 110px; height: 110px; }

    /* スティッキー CTA */
    .mobile-sticky-cta { display: block; }
    body { padding-bottom: 70px; }
}

/* ---- スマホ小 (~480px) ---- */
@media (max-width: 480px) {
    /* ベース */
    .hero   { padding: 40px 14px 32px; }
    .section { padding: 48px 14px; }

    /* ---- TOPカード 480px ---- */
    .soccer-field { padding-bottom: 115%; }
    .pos-card  { padding: 9px 12px 10px; width: 64%; }
    .pos-desc  { font-size: 0.62rem; }
/* 縦位置を480px幅に再調整（ジグザグに均等配置） */
    .pos-card  { padding: 9px 14px; min-width: 200px; width: fit-content; }
    
    .pos-fw    { bottom: 6%;  left: 50%; transform: translateX(-50%); }
    .pos-mf    { bottom: 28%; right: 4%; }
    .pos-df    { bottom: 50%; left: 4%; }
    .pos-coach { top: 6%;     right: 4%; }
    /* Section5 ピッチ */
    .soccer-field2 { padding-bottom: 100%; }
    .pos-card2   { min-width: 180px; max-width: 95%; padding: 8px 12px; width: fit-content !important; }
    .pos2-role   { font-size: 0.72rem; }
    .pos2-desc   { font-size: 0.62rem; }

    /* 結果カード */
    .result-cards { grid-template-columns: 1fr; gap: 12px; }

    /* ボイスレター: コントロールを縦積みに */
    .voice-main-row { flex-direction: column; align-items: stretch; gap: 12px; }
    .voice-waveform-wrap { width: 100%; height: 90px; margin-left: 0; }
    .voice-left-col { align-items: center; }
    .voice-big-play svg { width: 64px; height: 64px; }
    .voice-card-title { font-size: 1rem; }
    .voice-ctrl-btn { width: 46px; height: 46px; }
    .voice-ctrl-btn svg { width: 18px; height: 18px; }

    /* 3カード */
    .three-cards { grid-template-columns: 1fr; gap: 12px; }

    /* CTAボタン */
    .cta-btn { font-size: 0.88rem; padding: 15px 22px; }
    .sticky-cta-btn { font-size: 0.85rem; padding: 13px 20px; }
    .hero-cta-note { font-size: 0.72rem; }
}

/* ---- 極小画面 (~360px) ---- */
@media (max-width: 360px) {
    .hero   { padding: 36px 12px 28px; }
    .section { padding: 40px 12px; }
    .pos-card  { width: 66%; }
    .pos-card2  { min-width: 108px; max-width: 142px; }
    .voice-card-title { font-size: 0.9rem; }
    .voice-big-play svg { width: 56px; height: 56px; }
    .voice-ctrl-btn { width: 40px; height: 40px; }
    .result-cards { grid-template-columns: 1fr; }
    .cta-btn { font-size: 0.82rem; padding: 13px 18px; }
}

/* ==========================================
   SCROLL ANIMATIONS — 削除（ホバー・登場アニメのみ残す）
   ========================================== */

