/* FUYOTORE 紹介ページ専用スタイル

   ヘッダー / フッターはサイト共通の白のまま。その間の .page-main だけを
   アプリ本体のパレット（DESIGN.md）に差し替えている。共通CSSの色は
   :root の変数を経由しているので、.page-main で変数を再定義すれば
   本文・リンク・表の罫線までまとめて切り替わる。

   アプリの値をそのまま使うと文字のコントラストが足りない箇所があるため、
   テキストとボタンに使う茶色だけ WCAG AA (4.5:1) を満たす濃さに寄せている。
   #C8A882 は塗りと罫線の装飾用に --brand として別に持つ。 */

.fuyotore-page .page-main {
    --bg: #ffffff;          /* 本文は白。クリームは差し色の帯に使う */
    --bg-soft: #fffdf8;     /* warm cream: アプリの背景色 */
    --bg-brand: #f7efe2;    /* CTA帯。クリームより一段濃い */
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --line: #e8e4df;
    --text: #6b6375;        /* グレーパープル */
    --muted: #746b80;
    --accent: #7a5c3a;      /* リンク: #8B7355 を AA まで濃くしたもの */
    --accent-strong: #5f472c;
    --brand: #c8a882;       /* 装飾用。文字色には使わない */
    --brand-fill: #7d6548;  /* 明るい地の上でブランド色を文字に使うとき */
    --heading: #1a1a2e;     /* ダークネイビー */
    --btn-bg: #7d6548;      /* 塗りボタン。地の明暗で反転するので変数で持つ */
    --btn-bg-hover: #5f472c;
    --btn-fg: #ffffff;
    --font-brand: "Fraunces", "Noto Sans JP", "Noto Sans KR", serif;
    background: var(--bg);
    color: var(--text);
}

.fuyotore-page .page-main h1,
.fuyotore-page .page-main h2,
.fuyotore-page .page-main h3 {
    color: var(--heading);
}

.fuyotore-page .page-main h2 {
    font-family: var(--font-brand);
}

/* 見出しとキャッチコピーの折り返し制御。
   keep-all で日本語を任意の位置で折らないようにし、テンプレート側が入れた
   <wbr>（site-data の「|」由来）の位置だけで改行させる。
   どうしても1行に収まらないときのために overflow-wrap を保険に置く。 */
.fuyotore-page .band-inner > h2,
.fuyotore-page .fv-copy {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* --- アプリバナー（SPのみ） ---
   ヒーローのCTAは最初の1画面にしか出ないので、長いページを読み進める人向けに
   スクロールに追従するダウンロード導線を持たせる。PCは常に非表示。

   初期状態は HTML 側で hidden。JS が「閉じた記録がない」と判断したときだけ出す。
   そのため display の指定は :not([hidden]) に付けて、hidden を上書きしない。 */

.app-banner {
    display: none;
}

@media (max-width: 767.98px) {
    .app-banner:not([hidden]) {
        display: flex;
    }
}

.app-banner {
    position: sticky;
    top: 0;
    z-index: 20;
    align-items: center;
    gap: 0.65rem;
    padding: 0.6rem 0.9rem;
    background: #1a1a2e;
    color: #ffffff;
}

.app-banner__close {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    background: none;
    color: rgba(255, 255, 255, 0.72);
    cursor: pointer;
}

.app-banner__close svg {
    width: 16px;
    height: 16px;
}

.app-banner__icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 10px;
}

.app-banner__text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.app-banner__text strong {
    font-size: 0.9rem;
    font-weight: 700;
}

.app-banner__text small {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.72rem;
}

.app-banner__action {
    flex: 0 0 auto;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    background: var(--brand);
    color: #1a1a2e;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

/* --- 帯（フル幅のセクション） ---
   セクションごとに背景を全幅で敷き、内側だけをサイトの本文幅に揃える。
   白が続くところにだけ罫線を入れる（色が変わる境目には不要）。 */

.band {
    padding: 3.25rem 0;
}

.band-inner {
    max-width: var(--measure);
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.band-inner > :last-child {
    margin-bottom: 0;
}

.band--tint {
    background: var(--bg-soft);
}

.band--brand {
    background: var(--bg-brand);
}

/* 濃色の帯。ここだけパレットを反転させる。
   --bg 系を差し替えれば、中の文字・ボタン・端末フレームまで追随する。
   コントラストは #1a1a2e を地として全て AA 以上:
   本文 11.3:1 / 補助 8.4:1 / アプリ名(#c8a882) 7.7:1 / ボタン文字 7.7:1 */
.band--dark {
    --bg: #1a1a2e;
    --text: #d5d0dd;
    --muted: #b9b3c4;
    --heading: #ffffff;
    --line: #35354a;
    --brand-fill: #c8a882;
    --btn-bg: #c8a882;
    --btn-bg-hover: #dcc3a2;
    --btn-fg: #1a1a2e;
    background: var(--bg);
    color: var(--text);
}

.band:not([class*="band--"]) + .band:not([class*="band--"]) {
    border-top: 1px solid var(--line);
}

/* 帯の見出し。中央寄せ＋通常の h2(1.3rem) の150%。
   狭い画面では 1.95rem だと1行に収まらないので clamp で落とす。
   罫は文字幅いっぱいに引かず、短い線を中央に置いて見出しを独立させる。 */
.band-inner > h2 {
    display: block;
    margin-bottom: 1.6rem;
    font-size: clamp(1.6rem, 6.5vw, 1.95rem);
    line-height: 1.45;
    text-align: center;
}

.band-inner > h2::after {
    content: "";
    display: block;
    width: 52px;
    height: 2px;
    margin: 0.85rem auto 0;
    background: var(--brand);
}

.band-inner h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.4rem;
}

@media (max-width: 767.98px) {
    .band {
        padding: 2.5rem 0;
    }
}

/* --- ファーストビュー ---
   ここだけ本文幅(760px)の制約を外して画面いっぱいに使う。
   ただし文字の行長が伸びすぎないよう、テキスト側にだけ measure を持たせる。 */

.fv {
    padding: 3.5rem 0 3.25rem;
}

.fv-inner {
    /* 背景は全幅のまま。中身だけ 1280px で止めて、テキストとスクショの間が
       広がりすぎないようにしている（ビジュアルを大きくできたら緩めてよい）。 */
    max-width: 1280px;
    padding-left: clamp(1.25rem, 5vw, 4rem);
    padding-right: clamp(1.25rem, 5vw, 4rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(2rem, 6vw, 5rem);
}

/* 36rem は、最大サイズ(1.8rem)のキャッチコピーが1行に収まる幅。
   これより狭いと 1440px 表示のときだけ2行に割れる。 */
.fv-text {
    flex: 1 1 auto;
    max-width: 36rem;
    min-width: 0;
}

.fv-kicker {
    display: block;
    margin-bottom: 0.15rem;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

/* .fuyotore-page .page-main h1 より詳細度を上げないと見出し色に負ける */
.fuyotore-page .page-main h1.fv-name {
    margin: 0 0 0.75rem;
    color: var(--brand-fill);
    font-family: var(--font-brand);
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    line-height: 1.2;
}

.fv-copy {
    margin: 0 0 0.9rem;
    color: var(--heading);
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
    font-weight: 700;
    line-height: 1.55;
}


.fv-sub {
    margin: 0 0 1.6rem;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
}

.fv-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
}

.fv-btn {
    display: inline-block;
    padding: 0.7rem 1.6rem;
    border-radius: 6px;
    background: var(--btn-bg);
    color: var(--btn-fg);
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease;
}

.fv-btn:hover,
.fv-btn:focus {
    background: var(--btn-bg-hover);
    color: var(--btn-fg);
}

.fv-note {
    color: var(--muted);
    font-size: 0.85rem;
}

.fv-shot {
    flex: 0 0 auto;
    /* 縦長のスクショなので、幅を広げるほど帯が背高になる。
       1440x900 でファーストビューが1画面に収まる上限が 340px。 */
    width: clamp(240px, 24vw, 340px);
}

/* --- 端末フレーム ---
   画像は使わず CSS だけで作る。素材の動画はステータスバーを含まない
   776x1340 (0.579) なので、実機比率ではなく素材の比率にベゼルを合わせている
   （実機比率にすると上下に帯が出るか、左右が切れる）。 */

/* ベゼルは濃色の地(#1a1a2e)より少し明るくし、内側に1pxのリムを入れて
   背景に溶けないようにしている（真っ黒だと端末の輪郭が消える）。 */
.device {
    position: relative;
    padding: 11px;
    border-radius: 44px;
    background: #2e2e3d;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 18px 40px rgba(0, 0, 0, 0.45);
}

.device-screen {
    position: relative;
    overflow: hidden;
    border-radius: 34px;
    background: #fffdf8;
    line-height: 0;
}

.device-video,
.device-screen img {
    display: block;
    width: 100%;
    height: auto;
}

/* 側面ボタン。左が音量、右が電源 */
.device::before,
.device::after {
    content: "";
    position: absolute;
    width: 2px;
    background: #2e2e3d;
}

.device::before {
    top: 22%;
    left: -2px;
    height: 12%;
}

.device::after {
    top: 26%;
    right: -2px;
    height: 16%;
}

@media (max-width: 767.98px) {
    .fv {
        padding: 2.25rem 0 2rem;
    }

    /* 文字サイズは clamp() の下限が SP 値と同じなので、ここでは組みだけ変える */
    .fv-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

    .fv-shot {
        width: min(230px, 70%);
        margin: 0 auto;
    }
}

/* --- チェックつきリスト（できること / Stats） --- */

.lp-check {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.lp-check li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.9rem;
}

.lp-check li + li {
    border-top: 1px solid var(--line);
}

.lp-check li::before {
    content: "";
    position: absolute;
    top: 1.15em;
    left: 0.35rem;
    width: 0.5rem;
    height: 0.5rem;
    background: var(--brand);
    border-radius: 50%;
}

/* --- 悩みの列挙 --- */

.lp-problem-list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

/* 帯がクリームなので、項目は白いカードにして浮かせる */
.lp-problem-list li {
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-left: 3px solid var(--brand);
    background: var(--surface);
}

.lp-problem-list li + li {
    margin-top: 0.5rem;
}

/* --- 番号つきの要点（ゴール / 特徴 / トレーニング設計） --- */

.lp-points {
    margin: 0 0 1rem;
    padding-left: 0;
    list-style: none;
    counter-reset: lp-point;
}

.lp-points li {
    position: relative;
    margin-bottom: 1.1rem;
    padding-left: 2.75rem;
    counter-increment: lp-point;
}

.lp-points li:last-child {
    margin-bottom: 0;
}

.lp-points li::before {
    content: counter(lp-point);
    position: absolute;
    top: 0.3rem;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 50%;
    /* 白文字を載せるので --brand(#c8a882) では 2.2:1 にしかならない。濃い方を使う */
    background: var(--brand-fill);
    color: #ffffff;
    font-family: var(--font-brand);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
}

.lp-points strong {
    display: block;
    color: var(--heading);
    font-size: 1.05rem;
}

/* --- 向いている / 向いていない --- */

.lp-fit {
    display: flex;
    flex-wrap: wrap;
    gap: 0 2.5rem;
}

.lp-fit-col {
    flex: 1 1 18rem;
    min-width: 0;
}

.lp-fit-col h3:first-child {
    margin-top: 0;
}

/* クリーム帯の上なので、こちらも白いカードにする */
.lp-fit-col {
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

.lp-fit {
    gap: 1.25rem;
}

/* --- ダウンロード導線 --- */

.lp-cta {
    text-align: center;
}

.lp-cta p {
    margin-bottom: 1.5rem;
}

/* --- サポートパートの入口 --- */

.lp-support-head {
    border-top: 3px solid var(--line);
}

/* サポートパートの入口は本編より弱く見せたいので、罫もグレーに落とす */
.lp-support-head .band-inner > h2::after {
    background: var(--line);
}

/* --- 表 --- */

.fuyotore-page .support-table thead th {
    background: var(--bg-soft);
    color: var(--heading);
}

/* クリーム帯の上では見出し行の色が沈むので、白に反転させる */
.band--tint .support-table thead th {
    background: var(--surface);
}
