/* トップページ（brand.css のあとに読み込む） */

/* ヒーロー：写真を使わず、文字と色で強く */
.top-hero {
    background: var(--paper-strong);
    border-bottom: var(--border-bold);
    padding: 56px 0 48px;
}
.top-hero .container,
.top-coaches .container {
    max-width: 1040px;
}
.top-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--paper-strong);
    background: var(--ink);
    padding: 6px 12px;
    border-radius: 4px;
    margin: 0 0 22px;
}
.body-light .top-title {
    color: var(--ink);
    font-weight: 900;
    font-size: clamp(2.3rem, 6.4vw, 4.6rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}
.top-title-hl {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    padding: 0 0.18em;
    margin-top: 0.08em;
    box-shadow: var(--shadow-hard-lg);
    transform: rotate(-1deg);
}
.top-lead {
    color: var(--ink-sub);
    font-size: 1.05rem;
    line-height: 1.8;
    margin: 0 0 32px;
    max-width: 36em;
}

/* 検索：ここはミニマルに（太枠と影だけブランドに合わせる） */
.top-search {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    background: var(--surface);
    border: var(--border-bold);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard-lg);
    padding: 8px;
}
.top-search-field {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 16px;
    min-width: 0;
}
.top-search-field + .top-search-field {
    border-left: 1px solid var(--line);
}
.top-search-field span {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--ink-sub);
}
.top-search-field select {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    padding: 2px 0;
    width: 100%;
    cursor: pointer;
}
.top-search-field select:disabled {
    color: #b3a89e;
    cursor: default;
}
.top-search-field select:focus {
    outline: none;
}
.top-search-field:focus-within {
    background: var(--paper-strong);
    border-radius: 10px;
}
.top-search-btn {
    font-size: 1.05rem;
    padding: 0 28px;
}

.top-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
}
.top-chips[hidden] {
    display: none;
}
.top-chips-label {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--ink-sub);
    margin-right: 2px;
}
.top-coach-link {
    margin: 24px 0 0;
    font-size: 0.9rem;
    color: var(--ink-sub);
}
.top-coach-link a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* 注目のコーチ */
.top-coaches {
    padding: 56px 0 24px;
}
.top-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.top-section-head h2 {
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    margin: 0;
}
.top-section-head a {
    color: var(--ink);
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}
.top-section-head a:hover {
    color: var(--accent-strong);
}
.top-coach-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.top-coach {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.15s;
}
.top-coach:hover {
    border-color: var(--ink);
    transform: translateY(-2px);
    color: var(--ink);
}
/* 写真は同じ比率・同じ地色でそろえる */
.top-coach-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #EDE4D8;
}
.top-coach-media > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-coach-avatar {
    position: absolute;
    left: 16px;
    bottom: -24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    background: var(--ink);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 1.2rem;
    overflow: hidden;
}
.top-coach-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.top-coach-body {
    padding: 32px 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}
.top-coach-name {
    font-weight: 900;
    font-size: 1.1rem;
    margin: 0;
}
.top-coach-headline {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-strong);
    margin: 0;
}
.top-coach-meta {
    font-size: 0.8rem;
    color: var(--ink-sub);
    margin: 0;
}
.top-coach-lesson {
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.top-coach-tags {
    margin-top: 10px;
}
.top-coach-price {
    margin: auto 0 0;
    padding-top: 10px;
    font-weight: 900;
    font-size: 1.1rem;
}

/* 残すセクションは落ち着いたトーンに */
.title-light h2 {
    display: inline;
    font-weight: 900;
    font-size: clamp(1.6rem, 3.2vw, 2.2rem);
    letter-spacing: -0.01em;
    box-shadow: inset 0 -0.32em 0 var(--accent-soft);
}
.title-light p {
    color: var(--ink-sub);
    margin-top: 12px;
}
.section-tone {
    background: #FFF5E8;
    border-color: var(--line);
}
.steps-light-list li,
.card-light {
    border: 1px solid var(--line);
    box-shadow: none;
    border-radius: var(--radius);
    background: var(--surface);
}
.card-light:hover {
    transform: none;
    box-shadow: none;
}
.card-light h3 {
    border-left: none;
    padding-left: 0;
    font-weight: 900;
}
.step-num {
    border: var(--border-bold);
    color: var(--ink);
    background: var(--surface);
    border-radius: var(--radius-sm);
    box-shadow: 3px 3px 0 var(--accent);
    font-weight: 900;
}
/* アンバサダー（濃紺の帯のまま。見出しは白、ボタンはブランドのオレンジ） */
.body-light .ambassador-banner h2 {
    color: #fff;
}
.ambassador-link {
    background: var(--accent-strong);
    border-radius: 10px;
}
.ambassador-link:hover {
    background: var(--accent-deep);
}
.faq-light-container details {
    border-radius: 12px;
}
.faq-light-container summary {
    font-weight: 700;
    color: var(--ink);
}
.cta-light {
    background: var(--accent);
    border: none;
}
.body-light .cta-light h2 {
    color: #fff;
}
/* オレンジの帯の中のボタンは温かい黒にする（同じ色に溶けないように） */
.cta-light .hero-primary-cta {
    background: var(--ink);
    border-radius: 10px;
    font-weight: 800;
}
.cta-light .hero-primary-cta:hover {
    background: #000;
    opacity: 1;
}

@media (max-width: 768px) {
    .top-hero {
        padding: 40px 0 36px;
    }
    .top-search {
        grid-template-columns: 1fr;
        padding: 6px;
    }
    .top-search-field + .top-search-field {
        border-left: 0;
        border-top: 1px solid var(--line);
    }
    .top-search-btn {
        padding: 14px;
        margin-top: 6px;
    }
    /* 人気のチップは1列にして横にスワイプ（縦に積むと1画面を取ってしまう） */
    .top-chips {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin: 18px -20px 0;
        padding: 2px 20px 6px;
        scrollbar-width: none;
    }
    .top-chips::-webkit-scrollbar {
        display: none;
    }
    .top-chips .chip,
    .top-chips-label {
        flex-shrink: 0;
        white-space: nowrap;
    }
    /* スマホは横にスワイプ */
    .top-coach-grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: 72%;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 20px;
        margin: 0 -20px;
        padding: 0 20px 8px;
        scrollbar-width: none;
    }
    .top-coach-grid::-webkit-scrollbar {
        display: none;
    }
    .top-coach {
        scroll-snap-align: start;
    }
    .top-coach-body {
        padding: 28px 12px 14px;
    }
    .top-coach-avatar {
        width: 44px;
        height: 44px;
        left: 12px;
        bottom: -20px;
    }
}
