/* トリルトレーニング 紹介ページ専用スタイル

   組みは FUYOTORE 紹介ページ（/apps/fuyotore/css/fuyotore.css）と同じ。
   ヘッダー / フッターはサイト共通の白のまま、その間の .page-main だけを
   アプリのパレット（ダークネイビー #090c14 + ミント #00e5cc）に差し替えている。

   ミントは白地に文字として置くと 1.6:1 しかないため、文字・ボタンには
   WCAG AA (4.5:1) を満たす濃さ（#00766b = 白地で 5.5:1）に寄せ、
   #00c2ad は塗りと罫線の装飾用に --brand として別に持つ。
   濃色の帯（.band--dark）の上ではアプリ本来の #00e5cc をそのまま使う。 */

.trill-page .page-main {
    --bg: #ffffff;
    --bg-soft: #f2f7f9;     /* 淡いブルーグレー: 差し色の帯 */
    --bg-brand: #e0f5f2;    /* CTA帯。ミント寄りに一段濃い */
    --surface: #ffffff;
    --surface-strong: #ffffff;
    --line: #dfe7ec;
    --text: #3b4a5e;
    --muted: #56667a;
    --accent: #00766b;      /* リンク */
    --accent-strong: #005a52;
    --brand: #00c2ad;       /* 装飾用。文字色には使わない */
    --brand-fill: #00766b;  /* 明るい地の上でブランド色を文字・塗りに使うとき */
    --heading: #0f1622;
    --btn-bg: #00766b;
    --btn-bg-hover: #005a52;
    --btn-fg: #ffffff;
    --font-brand: "Space Grotesk", "Noto Sans JP", "Noto Sans KR", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

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

/* 見出しとキャッチコピーの折り返し制御。
   テンプレート側が入れた <wbr>（site-data の「|」由来）の位置だけで改行させる。 */
.trill-page .band-inner > h2,
.trill-page .fv-copy {
    word-break: keep-all;
    overflow-wrap: anywhere;
}

/* --- アプリバナー（SPのみ） ---
   初期状態は HTML 側で hidden。JS が「閉じた記録がない」と判断したときだけ出す。 */

.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: #090c14;
    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: #00e5cc;
    color: #090c14;
    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);
}

/* 濃色の帯。ここだけパレットを反転させる。
   #090c14 を地として: 本文 16.5:1 / 補助 7.9:1 / ミント 12.1:1 / ボタン文字 12.1:1 */
.band--dark {
    --bg: #090c14;
    --text: #dff0ff;
    --muted: #8ea3c2;
    --heading: #ffffff;
    --line: #1a2a40;
    --brand: #00e5cc;
    --brand-fill: #00e5cc;
    --btn-bg: #00e5cc;
    --btn-bg-hover: #00ffdd;
    --btn-fg: #090c14;
    background: var(--bg);
    color: var(--text);
}

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

.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;
    }
}

/* --- ファーストビュー ---
   ストア用スクリーンショットと同じく、上からミントがにじむグラデーションを敷く。 */

.fv {
    padding: 3.5rem 0 3.25rem;
    background:
        radial-gradient(900px 520px at 50% 0%, rgba(0, 229, 204, 0.22), transparent 70%),
        var(--bg);
}

.fv-inner {
    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);
}

.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;
}

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

.fv-copy {
    margin: 0 0 0.9rem;
    color: var(--heading);
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.4;
}

.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;
}

/* 濃色の地の上では共通の store-chip が沈むので、罫と文字色だけ合わせる */
.band--dark .store-chip {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.fv-shot {
    flex: 0 0 auto;
    /* 1440x900 でファーストビューが1画面に収まる上限 */
    width: clamp(240px, 24vw, 330px);
}

/* --- 端末フレーム ---
   画像は使わず CSS だけで作る。素材はストア用スクリーンショットから画面部分だけを
   切り出したもの（680x1453 = 0.468。ステータスバーは含まない）。 */

.device {
    position: relative;
    padding: 11px;
    border-radius: 44px;
    background: #1f2a3d;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.16),
        0 18px 40px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(0, 229, 204, 0.12);
}

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

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

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

.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;
    }

    .fv-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 2rem;
    }

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

/* --- 画面紹介 ---
   ストア用スクリーンショット（見出しつき）を横スクロールで並べる。
   本文幅(760px)には収まらないので、帯の全幅を使って端までスクロールさせる。 */

.lp-shots {
    display: flex;
    gap: 1rem;
    margin: 0;
    padding: 0.25rem max(1.25rem, calc((100% - 1280px) / 2)) 0.75rem;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-left: max(1.25rem, calc((100% - 1280px) / 2));
    -webkit-overflow-scrolling: touch;
}

.lp-shots li {
    flex: 0 0 auto;
    width: clamp(180px, 42vw, 230px);
    scroll-snap-align: start;
}

.lp-shots img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--line);
}

/* 6枚が収まる幅では中央に寄せる（スクロールさせない） */
@media (min-width: 1480px) {
    .lp-shots {
        justify-content: center;
    }
}

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

.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 ではなく濃い方を使う */
    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: 1.25rem;
}

.lp-fit-col {
    flex: 1 1 18rem;
    min-width: 0;
    padding: 1.25rem 1.4rem;
    border: 1px solid var(--line);
    background: var(--surface);
}

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

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

.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);
}

/* --- 表 --- */

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

.band--tint .support-table thead th {
    background: var(--surface);
}
