html {
    /* 上部のオーバースクロール領域とモバイルのステータスバー背後を、
       ヘッダーと同じ黒にする（白が覗くのを防ぐ） */
    background-color: #1c1917;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    color: #404040;
    background-color: #fdfcfa;
    overflow-x: hidden;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.nav-link {
    position: relative;
    font-weight: 700;
    font-size: 0.9rem;
    color: #e7e5e4;
    transition: color 0.2s;
}
.nav-link:hover, .nav-link.current { color: #d4bc8a; }
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #b8975a;
    transition: width 0.25s;
}
.nav-link.current::after, .nav-link:hover::after { width: 100%; }

#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out, visibility 0.3s;
}
#mobile-menu-content {
    transition: transform 0.3s ease-in-out;
    transform: translateX(100%);
}
#mobile-menu-overlay:not(.invisible) {
    opacity: 1;
}
#mobile-menu-overlay:not(.invisible) #mobile-menu-content {
    transform: translateX(0);
}

.card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #eae7e2;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}
/* ホバーの浮き上がりは「実際にクリックできるカード」だけに適用する。
   カード自体がリンク（a.card）か、カード全体がリンクで包まれている場合のみ。
   リンクでないカードに反応があると、押せると誤認させてしまうため。 */
a.card:hover,
a:hover > .card {
    border-color: #b8975a;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(30,30,30,0.05);
}

.faq-filter-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid #eae7e2;
    background: #fff;
    color: #57534e;
    transition: background .2s, color .2s, border-color .2s;
    cursor: pointer;
}
.faq-filter-btn:hover { background: #f9f8f6; }
.faq-filter-btn.active { background: #1e3e50; color: #fff; border-color: #1e3e50; }

@media (prefers-reduced-motion: reduce) {
    .fade-in { animation: none; }
}

/* ヒーロー：対角線で写真パネルを切る */
.hero-photo-panel {
    position: relative;
}
@media (min-width: 768px) {
    .hero-photo-panel {
        clip-path: polygon(12% 0, 100% 0, 100% 100%, 0% 100%);
    }
}

.hero-badge {
    box-shadow: 0 10px 30px rgba(30,30,30,0.18);
}

/* コラム記事本文 */
.blog-article h2 {
    font-size: 1.35rem;
    font-weight: 900;
    color: #292524;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    scroll-margin-top: 5rem;
}
.blog-article h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #292524;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}
.blog-article p {
    color: #44403c;
    line-height: 1.9;
    margin-bottom: 1.25rem;
}
.blog-article ul, .blog-article ol {
    margin: 0 0 1.25rem 1.25rem;
    color: #44403c;
    line-height: 1.9;
}
.blog-article ul { list-style: disc; }
.blog-article ol { list-style: decimal; }
.blog-article li { margin-bottom: 0.4rem; }
.blog-article strong { font-weight: 700; color: #1c1917; }
.blog-article .article-highlight {
    background: #f9f8f6;
    border-left: 4px solid #b8975a;
    border-radius: 0 1rem 1rem 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
}
.blog-article .article-highlight p { margin-bottom: 0; }

/* ファーストビューのイントロローダー */
#intro { display: none; }
html.intro-playing #intro {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 100;
    align-items: center;
    justify-content: center;
    background: #1c1917;
    transition: transform .9s cubic-bezier(.76, 0, .24, 1);
    will-change: transform;
}
html.intro-playing #intro.is-leaving { transform: translateY(-100%); }
html.intro-lock, html.intro-lock body { overflow: hidden; }

/* イントロの書体：Shippori Mincho B1。端正な明朝を字間広めで組む */
#intro p {
    font-family: 'Shippori Mincho B1', serif;
    font-weight: 800;
    letter-spacing: .06em;
}
.intro-line { display: block; opacity: 0; transform: translateY(14px); }
html.intro-playing .intro-line {
    animation: introLineIn .9s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) forwards;
}
@keyframes introLineIn { to { opacity: 1; transform: none; } }

html.intro-playing .hero-item { opacity: 0; transform: translateY(14px); }
html.intro-done .hero-item {
    animation: heroItemIn .7s cubic-bezier(.22, 1, .36, 1) var(--d, 0s) forwards;
}
@keyframes heroItemIn { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
    html.intro-playing #intro { display: none; }
    html.intro-playing .hero-item,
    html.intro-done .hero-item { opacity: 1; transform: none; animation: none; }
    html.intro-lock, html.intro-lock body { overflow: visible; }
}

/* ファーストビュー：3枚クロスフェードのスライドショー */
.fv-slider { position: absolute; inset: 0; overflow: hidden; }
.fv-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: fvFade 21s cubic-bezier(.4, 0, .2, 1) infinite;
}
.fv-slide:nth-child(1) { animation-delay: 0s; }
.fv-slide:nth-child(2) { animation-delay: 7s; }
.fv-slide:nth-child(3) { animation-delay: 14s; }
.fv-slide img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fvFade {
    0%     { opacity: 0; transform: scale(1.08); }
    5%     { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; transform: scale(1); }
    100%   { opacity: 0; transform: scale(1.08); }
}

.fv-dot { position: relative; width: 32px; height: 2px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.fv-dot::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #fff;
    opacity: 0;
    animation: fvDot 21s linear infinite;
}
.fv-dot:nth-child(1)::after { animation-delay: 0s; }
.fv-dot:nth-child(2)::after { animation-delay: 7s; }
.fv-dot:nth-child(3)::after { animation-delay: 14s; }
@keyframes fvDot {
    0%     { opacity: 0; }
    5%     { opacity: 1; }
    33.33% { opacity: 1; }
    38.33% { opacity: 0; }
    100%   { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .fv-slide { animation: none; opacity: 0; transform: none; }
    .fv-slide:first-child { opacity: 1; }
    .fv-dot::after { animation: none; opacity: 0; }
    .fv-dot:first-child::after { opacity: 1; }
}

/* ヘッダー：ファーストビュー上では透過（スクロールで通常の状態に戻る） */
/* 横スライダー（Google口コミ／お客様の声）
   自動で流れつつ、指・トラックパッド・ドラッグで自分で動かせる。
   カード自体はリンクではないため、ホバーの浮き上がりは無効化している。 */
.review-marquee {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.review-marquee::-webkit-scrollbar { display: none; }
.review-marquee.is-dragging { cursor: grabbing; }

.review-marquee-track {
    display: flex;
    align-items: stretch;
    gap: 1.25rem;
    width: max-content;
    padding: 0 1rem;
}

.review-marquee .card { cursor: inherit; }
.review-marquee .card:hover {
    border-color: #eae7e2;
    transform: none;
    box-shadow: none;
}

/* ── 共感〜変化セクション ───────────────────────────── */

/* 黄色いマーカー風のハイライト。サイトのゴールドで表現する */
.marker {
    background: linear-gradient(transparent 62%, rgba(212, 188, 138, .6) 62%);
}

/* チェックリストの✓ */
.check-box {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin-top: .15rem;
    border-radius: .3rem;
    background: #1e3e50;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}
.check-box svg { width: .7rem; height: .7rem; }

/* 現状の数値（円） */
.stat-circle {
    aspect-ratio: 1 / 1;
    border-radius: 9999px;
    border-width: 2px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: .5rem;
}

/* 5つの領域（ドーナツ）。上を起点に72度ずつ5分割する */
.fs-donut {
    background: conic-gradient(from -36deg,
        #c3d2da 0 20%,
        #e7d7b4 20% 40%,
        #aec3cd 40% 60%,
        #dcc9a0 60% 80%,
        #93aebd 80% 100%);
}
.fs-donut-label {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 5.5rem;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.35;
    color: #292524;
}
.fs-donut-icon {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0 auto .25rem;
    color: #1e3e50;
}
@media (min-width: 768px) {
    .fs-donut-label { width: 6.5rem; font-size: 12.5px; }
    .fs-donut-icon { width: 1.5rem; height: 1.5rem; }
}

/* ── 通い方（7:00-21:00 スケジュール） ─────────────── */

/* タブ */
.sched-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    padding: .75rem .5rem;
    border: 1px solid #e7e5e4;
    border-radius: 9999px;
    background: #fff;
    color: #57534e;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    transition: background-color .2s, color .2s, border-color .2s;
}
.sched-tab svg { width: 1.05rem; height: 1.05rem; flex: 0 0 auto; }
.sched-tab:hover { border-color: #b8975a; }
.sched-tab.is-active {
    background: #1e3e50;
    border-color: #1e3e50;
    color: #fff;
}
@media (min-width: 768px) {
    .sched-tab { font-size: 14px; padding: .85rem 1rem; }
    .sched-tab svg { width: 1.2rem; height: 1.2rem; }
}

/* タイムライン */
.timeline {
    position: relative;
    padding-left: 1.6rem;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: .55rem;
    bottom: .55rem;
    width: 1px;
    background: #e7e5e4;
}
.timeline li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
    padding: .55rem 0;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: -1.6rem;
    top: .95rem;
    width: 11px;
    height: 11px;
    border-radius: 9999px;
    background: #fff;
    border: 2px solid #d6d3d1;
}
.timeline li.is-gym::before {
    background: #b8975a;
    border-color: #b8975a;
    box-shadow: 0 0 0 4px rgba(184, 151, 90, .18);
}
.tl-time {
    flex: 0 0 3.4rem;
    font-size: 13px;
    font-weight: 700;
    color: #57534e;
    padding-top: .1rem;
}
.tl-text { font-size: 13.5px; color: #44403c; line-height: 1.6; }
.tl-note { font-size: 11.5px; color: #78716c; line-height: 1.6; }
.timeline li.is-gym {
    background: rgba(184, 151, 90, .1);
    border-radius: .75rem;
    padding: .8rem .9rem;
    margin: .35rem 0 .35rem -.35rem;
}
.timeline li.is-gym .tl-text strong { color: #1e3e50; font-weight: 900; }
@media (min-width: 768px) {
    .tl-time { flex-basis: 4rem; font-size: 14px; }
    .tl-text { font-size: 15px; }
}

@media (max-width: 639px) {
    .sched-tab svg { display: none; }
}

/* お客様の実例：一覧＋スケジュール */
.case-layout {
    display: grid;
    gap: 1rem;
}
@media (min-width: 768px) {
    .case-layout { grid-template-columns: 18rem 1fr; gap: 1.5rem; align-items: start; }
}

.case-list {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .25rem;
    margin: 0 -1rem;
    padding-inline: 1rem;
}
@media (min-width: 768px) {
    .case-list { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
}

.case-card {
    flex: 0 0 min(16rem, 82%);
    scroll-snap-align: start;
    display: block;
    text-align: left;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 1rem 1.1rem;
    color: #78716c;
    transition: border-color .2s, box-shadow .2s;
}
.case-card[hidden] { display: none; }
.case-card:hover { border-color: #d4bc8a; }
.case-card.is-active {
    border-color: #b8975a;
    box-shadow: 0 0 0 1px #b8975a, 0 4px 14px -4px rgba(15,23,42,.08);
    color: #44403c;
}
@media (min-width: 768px) {
    .case-card { flex: none; }
}

.case-head { display: flex; align-items: center; gap: .7rem; }
.case-head > span:last-child { display: block; min-width: 0; }
.case-avatar {
    width: 44px;
    height: 44px;
    border-radius: 9999px;
    overflow: hidden;
    flex: 0 0 auto;
    display: block;
}
.case-avatar img { width: 100%; height: 100%; object-fit: cover; }
.case-avatar--initial {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e3e50;
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}
.case-no { display: block; font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #b8975a; }
.case-name { font-size: 14px; font-weight: 700; color: #292524; }
.case-attr { display: block; font-size: 11px; color: #a8a29e; line-height: 1.4; }
.case-catch { display: block; font-size: 12.5px; font-weight: 700; line-height: 1.6; margin: .7rem 0 .75rem; color: inherit; }
.case-card.is-active .case-catch { color: #1e3e50; }

.case-stats {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    border-top: 1px solid #f0ede9;
    padding-top: .6rem;
    text-align: center;
}
.case-stats > span + span { border-left: 1px solid #f0ede9; }
.case-stat-label { display: block; font-size: 10px; color: #a8a29e; }
.case-stat-val { display: block; font-size: 14px; font-weight: 700; color: #57534e; margin-top: .1rem; white-space: nowrap; }
.case-card.is-active .case-stat-val { color: #1e3e50; }

.case-panel {
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 1rem;
    padding: 1.4rem 1.2rem;
}
@media (min-width: 768px) {
    .case-panel { padding: 2rem 2.25rem; }
    .case-panels { position: sticky; top: 6rem; }
}
.case-panel-title {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .6rem;
    font-size: 15px;
    font-weight: 700;
    color: #292524;
    border-left: 3px solid #b8975a;
    padding-left: .7rem;
    margin-bottom: 1rem;
}
.case-day {
    font-size: 11px;
    font-weight: 700;
    color: #1e3e50;
    background: rgba(30, 62, 80, .08);
    border-radius: 9999px;
    padding: .15rem .65rem;
}
@media (min-width: 768px) {
    .case-panel-title { font-size: 17px; }
}

.case-comment {
    margin-top: 1.4rem;
    background: #fafaf9;
    border-radius: .75rem;
    padding: 1.1rem 1.2rem;
    font-size: 13px;
    line-height: 1.9;
    color: #57534e;
}
.case-voice {
    margin-top: 1.4rem;
    border-left: 3px solid #e7e5e4;
    padding: .2rem 0 .2rem 1rem;
    font-size: 13px;
    line-height: 1.9;
    color: #44403c;
}
.case-voice-link { display: inline-block; margin-top: .5rem; font-size: 13px; font-weight: 700; color: #1e3e50; }
.case-voice-link:hover { text-decoration: underline; }
@media (min-width: 768px) {
    .case-voice { font-size: 14px; }
}

.case-ba {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-top: 1.4rem;
    max-width: 26rem;
}
.case-ba figure { flex: 1; margin: 0; }
.case-ba picture { display: block; aspect-ratio: 3 / 4; border-radius: .75rem; overflow: hidden; }
.case-ba img { width: 100%; height: 100%; object-fit: cover; }
.case-ba figcaption { font-size: 10px; font-weight: 700; letter-spacing: .14em; color: #a8a29e; margin-top: .35rem; }
.case-ba figcaption.is-after { color: #b8975a; }
.case-ba svg { width: 1.5rem; height: 1.5rem; color: #b8975a; flex: 0 0 auto; }

.case-comment-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    color: #b8975a;
    margin-bottom: .4rem;
}
@media (min-width: 768px) {
    .case-comment { font-size: 14px; }
}

/* ── トレーナーページ ───────────────────────────── */

/* 「なぜ、続けられるのか」の後半4項目。
   カードを使わず、細い罫線だけで区切る用語リスト。 */
.fine-list dt {
    font-size: 14.5px;
    font-weight: 900;
    color: #1c1917;
    border-top: 1px solid #e7e5e4;
    padding-top: 1.4rem;
    margin-bottom: .6rem;
}
.fine-list dd {
    font-size: 13px;
    color: #78716c;
    line-height: 2;
    padding-bottom: 1.5rem;
}
.fine-list dd:last-child { padding-bottom: 0; }
