/* ============================================================
   ベルファヴール LP 専用CSS
   色・フォントはリニューアル中サイト（web-renewal2026/prototype2/css/style.css）に合わせる
   ============================================================ */

:root {
    --color-bg: #ffffff;
    --color-tint: #faf8f5;        /* 生成り（リニューアルサイトと同じ） */
    --color-circle: #efe6dc;
    --color-text: #2b2622;
    --color-text-soft: #6b6259;
    --color-accent: #8a7250;      /* 金茶（リニューアルサイトと同じ） */
    --color-bordeaux: #5b1d24;    /* ボトルの色 */
    --color-dark: #1f1714;
    --color-line: #e6ded3;
    --font-serif: 'Noto Serif JP', serif;
    --font-latin: 'Cormorant Garamond', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.9;
    -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) {
    body { font-size: 17px; }
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.sp-only { display: inline; }
.pc-only { display: none; }
@media (min-width: 768px) {
    .sp-only { display: none; }
    .pc-only { display: inline; }
}

/* ---------- 共通パーツ ---------- */

.eyebrow {
    font-family: var(--font-latin);
    font-style: italic;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}
.eyebrow--center { text-align: center; }

.section { padding: 72px 0; }
.section--tint { background: var(--color-tint); }
.section--dark { background: var(--color-dark); color: #f3ede6; }
@media (min-width: 768px) { .section { padding: 112px 0; } }

.section-title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
    text-align: center;
    margin-bottom: 2rem;
}
.section-title--left { text-align: left; }
@media (min-width: 768px) { .section-title { font-size: 2rem; margin-bottom: 2.5rem; } }

.section-lead {
    text-align: center;
    color: var(--color-text-soft);
    margin: -1rem 0 2.5rem;
}
.section--dark .section-lead { color: #cfc4b8; }

.note { font-size: 0.8rem; color: var(--color-text-soft); margin-top: 1rem; line-height: 1.7; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 28px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.button--primary { background: var(--color-bordeaux); color: #fff; border: 1px solid var(--color-bordeaux); }
.button--primary:hover { background: #461419; }
.button--ghost { border: 1px solid var(--color-text); color: var(--color-text); background: transparent; }
.button--ghost:hover { background: var(--color-text); color: #fff; }
.button--ghost-dark { border: 1px solid var(--color-text); color: var(--color-text); background: #fff; }
.button--small { min-height: 38px; padding: 0 18px; font-size: 0.85rem; background: var(--color-bordeaux); color: #fff; }
.button--block { display: flex; width: 100%; }
.button:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }

/* ---------- ヘッダー ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-line);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-header__logo {
    font-family: var(--font-latin);
    font-size: 1.4rem;
    text-decoration: none;
    line-height: 1.1;
}
.site-header__logo span {
    display: block;
    font-family: var(--font-sans);
    font-size: 0.65rem;
    color: var(--color-text-soft);
    letter-spacing: 0.05em;
}

/* ---------- 1. ヒーロー ---------- */

/* 背景（AI画像から作ったループ動画）の上に本物のボトル写真を重ねる。
   --img-h＝背景画像の表示上の高さ。--px／--py＝背景画像の中でボトルを立てる位置（左から／上からの割合）。
   背景を替えるときは --px・--py だけを合わせる（現在は案A：大理石の洗面台） */
.hero {
    position: relative;
    background: var(--color-tint);
    overflow: hidden;
    container-type: inline-size;
    --img-h: 75cqw;
    --px: 0.70;
    --py: 0.80;
}
.hero__stage {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
/* スマホ：画像の右75%を表示（object-position 100%）。ボトルの横位置はそれに合わせて換算 */
.hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 100% calc(var(--py) * 100%);
}
.hero__bottle {
    position: absolute;
    left: calc((var(--px) - 0.25) / 0.75 * 100%);
    bottom: calc((1 - var(--py)) * 100% - var(--img-h) * 0.13);
    height: calc(var(--img-h) * 0.65);
    width: auto;
    max-width: none;
    transform: translateX(-50%);
}
.hero__copy-area { padding-top: 28px; }
.hero__sub { padding-top: 32px; padding-bottom: 56px; }
.hero__title {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.75rem;
    line-height: 1.6;
    letter-spacing: 0.04em;
    margin-bottom: 1.25rem;
}
.hero__lead { color: var(--color-text-soft); margin-bottom: 1.25rem; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; }
.hero__badges li {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-bordeaux);
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: 4px;
    padding: 2px 10px;
}
.hero__price { margin-bottom: 1.75rem; }
.hero__price strong { font-family: var(--font-serif); font-size: 1.5rem; margin-left: 0.4em; }
.hero__price small { font-size: 0.8rem; color: var(--color-text-soft); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .button { flex: 1 1 200px; }
.hero__salon { margin-top: 1rem; font-size: 0.9rem; }
.hero__salon a { color: var(--color-bordeaux); font-weight: 700; }
.hero__salon a::after { content: " →"; }

.hero__sub .note { margin-top: 0; }

/* タブレット：背景画像を切らずに全体を見せる */
@media (min-width: 600px) {
    .hero { --img-h: 56.28cqw; }
    .hero__stage { aspect-ratio: 1672 / 941; }
    .hero__bg { object-position: 50% calc(var(--py) * 100%); }
    .hero__bottle { left: calc(var(--px) * 100%); }
    .hero__actions .button { flex: 0 0 auto; }
}

/* PC：文字を画像の左側に重ねる */
@media (min-width: 960px) {
    .hero__stage { aspect-ratio: auto; height: min(56.28cqw, 860px); }
    .hero__stage::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(250, 248, 245, 0.8) 0%, rgba(250, 248, 245, 0.45) 32%, rgba(250, 248, 245, 0) 55%);
    }
    .hero__copy-area {
        position: absolute;
        inset: 0 0 auto 0;
        height: min(56.28cqw, 860px);
        display: flex;
        align-items: center;
        padding-top: 0;
    }
    .hero__copy { width: min(520px, 44cqw); }
    .hero__title { font-size: clamp(2rem, 2.6cqw, 2.6rem); }
    .hero__actions .button--ghost { background: rgba(255, 255, 255, 0.75); }
    .hero__actions .button--ghost:hover { background: var(--color-text); }
    .hero__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; padding-top: 40px; padding-bottom: 72px; }
    .hero__sub .hero__lead { flex: 1 1 520px; margin-bottom: 0; }
    .hero__sub .hero__badges { margin-bottom: 0; }
    .hero__sub .note { flex-basis: 100%; }
}

/* ---------- 2. こんな方に ---------- */

.nayami { width: 100%; border-radius: 8px; margin-bottom: 2rem; }

.checklist {
    display: grid;
    gap: 12px;
    background: var(--color-tint);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 2.5rem;
}
.checklist li { position: relative; padding-left: 32px; font-weight: 700; }
.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 18px;
    height: 18px;
    border: 1px solid var(--color-accent);
    border-radius: 3px;
}
.checklist li::after {
    content: "";
    position: absolute;
    left: 6px;
    top: calc(0.45em + 3px);
    width: 6px;
    height: 10px;
    border: solid var(--color-bordeaux);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
@media (min-width: 768px) { .checklist { padding: 32px 40px; } }

sup { font-size: 0.65em; }
.note--center { text-align: center; }

/* ---------- 3. 開発ストーリー ---------- */

.story p + p { margin-top: 1.25em; }
.story p:last-child {
    font-family: var(--font-serif);
    font-weight: 700;
    text-align: center;
    margin-top: 2em;
}

/* ---------- 3. 写真帯（写真の上にHTMLの文字） ---------- */

.photo-band { position: relative; color: #fff; background: var(--color-dark); }
.photo-band img { width: 100%; height: 300px; object-fit: cover; }
.photo-band::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 12, 8, 0.72) 0%, rgba(20, 12, 8, 0.25) 70%);
}
.photo-band__copy {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 24px;
    max-width: 1120px;
    margin: 0 auto;
}
.photo-band__main {
    font-family: var(--font-serif);
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.6;
    letter-spacing: 0.05em;
}
.photo-band__sub { font-size: 0.85rem; margin-top: 0.75rem; opacity: 0.85; letter-spacing: 0.1em; }
@media (min-width: 768px) {
    .photo-band img { height: 420px; }
    .photo-band__copy { padding: 0 32px; }
    .photo-band__main { font-size: 2rem; }
}

/* ---------- 4. 特長 ---------- */

.features { display: grid; gap: 16px; }
.feature {
    background: var(--color-tint);
    padding: 28px 24px;
}
.feature { border-top: 2px solid var(--color-bordeaux); }
.feature__title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}
.feature p { color: var(--color-text-soft); font-size: 0.95rem; }
@media (min-width: 768px) {
    .features { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- 5. 成分 ---------- */

.ingredients { border-top: 1px solid var(--color-line); }
.ingredient {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
}
.ingredient img { width: 64px; height: 64px; flex-shrink: 0; }
.ingredient > div { min-width: 0; }
.ingredient__name { font-weight: 700; line-height: 1.6; }
.ingredient__desc { font-size: 0.85rem; color: var(--color-text-soft); line-height: 1.6; }
.ingredient__desc span {
    display: inline-block;
    margin-left: 0.6em;
    padding: 0 8px;
    border: 1px solid var(--color-accent);
    border-radius: 999px;
    color: var(--color-accent);
    font-size: 0.75rem;
    line-height: 1.6;
}
@media (min-width: 768px) {
    .ingredient { gap: 24px; }
    .ingredient img { width: 76px; height: 76px; }
}

.free-of { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 2rem 0; }
.free-of span {
    border: 1px solid var(--color-accent);
    color: var(--color-accent);
    border-radius: 999px;
    padding: 2px 14px;
    font-size: 0.85rem;
}

.all-ingredients summary,
.faq summary {
    cursor: pointer;
    font-weight: 700;
    list-style: none;
    position: relative;
    padding-right: 28px;
}
.all-ingredients summary::-webkit-details-marker,
.faq summary::-webkit-details-marker { display: none; }
.all-ingredients summary::after,
.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 0;
    color: var(--color-accent);
    font-weight: 400;
    font-size: 1.2rem;
}
.all-ingredients[open] summary::after,
.faq details[open] summary::after { content: "−"; }
.all-ingredients { text-align: center; }
.all-ingredients summary { display: inline-block; color: var(--color-accent); font-size: 0.9rem; }
.all-ingredients p { text-align: left; font-size: 0.85rem; color: var(--color-text-soft); margin-top: 1rem; }

/* 化粧品の養毛料だから選べた成分 */
.cosmetic-box {
    background: #fff;
    border-left: 3px solid var(--color-bordeaux);
    padding: 24px;
    margin-bottom: 2.5rem;
}
.cosmetic-box__title { font-family: var(--font-serif); font-size: 1.1rem; margin-bottom: 0.75rem; }
.cosmetic-box p { color: var(--color-text-soft); font-size: 0.95rem; }
@media (min-width: 768px) { .cosmetic-box { padding: 32px 40px; } }

/* ---------- 6. 使い方 ---------- */

.steps { display: grid; gap: 32px; counter-reset: step; }
.step { text-align: center; }
.step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid var(--color-accent);
    font-family: var(--font-latin);
    font-size: 1.6rem;
    color: #d9c3a0;
}
.step__title { font-family: var(--font-serif); font-size: 1.1rem; margin: 1rem 0 0.5rem; }
.step p { color: #cfc4b8; font-size: 0.95rem; max-width: 300px; margin: 0 auto; }
@media (min-width: 768px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- 7. お客様の声 ---------- */

.placeholder-note {
    text-align: center;
    font-size: 0.85rem;
    color: #b3261e;
    margin-bottom: 1.5rem;
}
.voices { display: grid; gap: 16px; }
.voice {
    border: 1px solid var(--color-line);
    border-radius: 8px;
    padding: 24px;
}
.voice p { margin-bottom: 0.75rem; }
.voice span { font-size: 0.85rem; color: var(--color-text-soft); }
.voice .voice__stars { display: block; color: var(--color-accent); letter-spacing: 0.1em; margin-bottom: 2px; }
.voices + .note { text-align: right; }
@media (min-width: 768px) {
    .voices { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ---------- 8. サロン ---------- */

.salon { display: grid; gap: 32px; align-items: center; }
.salon__image img { border-radius: 8px; width: 100%; }
.salon__copy p { color: var(--color-text-soft); margin-bottom: 1rem; }
.salon__copy .eyebrow { color: var(--color-accent); margin-bottom: 0.5rem; }
.salon__shops { font-size: 0.9rem; }
.salon__copy .button { margin-top: 0.5rem; }
@media (min-width: 768px) {
    .salon { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ---------- 9. 購入 ---------- */

.buy {
    display: grid;
    gap: 24px;
    align-items: center;
    border: 1px solid var(--color-line);
    border-radius: 12px;
    padding: 32px 24px;
}
.buy__image { width: 120px; margin: 0 auto; }
.buy__name { font-family: var(--font-serif); font-size: 1.6rem; }
.buy__type { color: var(--color-text-soft); font-size: 0.9rem; }
.buy__price { margin: 1rem 0 0.25rem; }
.buy__price strong { font-family: var(--font-serif); font-size: 1.8rem; margin-left: 0.4em; }
.buy__price small { font-size: 0.8rem; color: var(--color-text-soft); }
.buy__amount { font-size: 0.9rem; color: var(--color-text-soft); margin-bottom: 1.5rem; }
.buy__actions { display: grid; gap: 10px; }
@media (min-width: 768px) {
    .buy { grid-template-columns: 200px 1fr; gap: 48px; padding: 48px; }
    .buy__image { width: 160px; }
}

/* ---------- 10. FAQ ---------- */

.faq details { background: #fff; border-radius: 8px; padding: 20px 24px; }
.faq details + details { margin-top: 12px; }
.faq details p { color: var(--color-text-soft); margin-top: 0.75rem; font-size: 0.95rem; }

/* ---------- フッター ---------- */

.site-footer {
    background: var(--color-dark);
    color: #cfc4b8;
    font-size: 0.85rem;
    padding: 56px 0 120px;   /* スマホは固定ボタンの分だけ下を空ける */
    text-align: center;
}
.site-footer__logo { font-family: var(--font-latin); font-size: 1.6rem; color: #fff; margin-bottom: 0.75rem; }
.site-footer__links { display: flex; justify-content: center; gap: 24px; margin: 1.5rem 0; }
.site-footer__copy { font-size: 0.75rem; opacity: 0.7; }
@media (min-width: 768px) { .site-footer { padding-bottom: 56px; } }

/* ---------- スマホ下部の固定ボタン ---------- */

.sticky-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid var(--color-line);
}
.sticky-bar .button { min-height: 46px; padding: 0 12px; }
@media (min-width: 768px) { .sticky-bar { display: none; } }
