/* HealthyBody demo — 13_Web構成.md「5. デザイン方針」準拠 */
:root {
  --base: #F7F5F1;          /* ベース */
  --navy: #1F2A44;          /* アクセント */
  --gold: #B89B5E;          /* 線・ネイビー上の数字 */
  --gold-text: #7E6636;     /* 明るい背景上の文字（#8E7440 から明度のみ下げ、区切り面上でも 4.5:1 を確保） */
  --ink: #2B2B2B;           /* 本文 */
  --ink-sub: #5E5A52;
  --surface: #EDE9E1;       /* 区切り面 */
  --line: #D8D2C6;
  --white: #FFFFFF;

  --f-head: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-body: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-num: "Cormorant Garamond", "Times New Roman", serif;

  --header-h: 80px;
  --header-h-small: 60px;
  --section-y: 120px;
  --container: 1120px;
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h-small) + 16px); }
body {
  margin: 0;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
  background: var(--base);
  color: var(--ink);
  font-family: var(--f-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.9;
  word-break: normal;
  overflow-wrap: anywhere;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.5;
  margin: 0;
  text-wrap: balance;
  letter-spacing: 0.04em;
}
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.nb { display: inline-block; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 40px; }
.section { padding: var(--section-y) 0; }
.section--surface { background: var(--surface); }
.measure { max-width: 40em; }

/* 見出しまわり（全ページ共通の間隔） */
.eyebrow {
  font-family: var(--f-num);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.2em;
  color: var(--gold-text);
  margin-bottom: 12px;
}
.section-head { margin-bottom: 56px; }
.section-head h2 { font-size: 32px; }
.section-head p { margin-top: 20px; max-width: 40em; }
.section-head--center { text-align: center; }
.section-head--center p { margin-left: auto; margin-right: auto; }

.note { font-size: 13px; color: var(--ink-sub); line-height: 1.7; margin-top: 12px; }
.img-note { font-size: 12px; color: var(--ink-sub); margin-top: 8px; line-height: 1.6; }
.on-navy .img-note, .on-navy .note { color: #CFC9BD; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 32px;
  font-family: var(--f-body); font-weight: 500; font-size: 15px; letter-spacing: 0.06em;
  text-decoration: none; white-space: nowrap;
  border-radius: var(--radius); border: 1px solid var(--navy);
  cursor: pointer;
}
.btn--primary { background: var(--navy); color: var(--white); }
.btn--outline { background: transparent; color: var(--navy); }
.btn--outline-light { background: transparent; color: var(--white); border-color: var(--gold); }
.btn--gold { background: var(--base); color: var(--navy); border-color: var(--base); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }

/* 本文中のテキストリンク：下線が左→右（200ms） */
.text-link {
  color: var(--navy); font-weight: 500; text-decoration: none;
  background-image: linear-gradient(var(--gold), var(--gold));
  background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px;
  transition: background-size 200ms ease-out;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: var(--base);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); transition: height 200ms ease-out; }
.site-header.is-small .container { height: var(--header-h-small); }
.logo { font-family: var(--f-num); font-weight: 600; font-size: 28px; letter-spacing: 0.04em; color: var(--navy); text-decoration: none; white-space: nowrap; }
.gnav { display: flex; align-items: center; gap: 32px; }
.gnav ul { display: flex; gap: 28px; }
.gnav a:not(.btn) { font-size: 14px; font-weight: 500; text-decoration: none; color: var(--navy); white-space: nowrap; padding: 6px 0; }
.gnav a[aria-current="page"] { border-bottom: 1px solid var(--gold); }
.header-right { display: flex; align-items: center; gap: 32px; }
.header-cta { min-height: 44px; padding: 0 22px; font-size: 14px; }
.menu-toggle { display: none; }
main { padding-top: var(--header-h); }

/* ---------- S1 ファーストビュー ---------- */
.hero { padding: 0; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; min-height: calc(100vh - var(--header-h)); max-width: none; padding: 0; }
.hero-text { padding: 80px 48px 80px max(40px, calc((100vw - var(--container)) / 2 + 40px)); display: flex; flex-direction: column; justify-content: center; }
.hero h1 { font-size: 38px; line-height: 1.55; margin-bottom: 28px; }
.hero .lead { max-width: 30em; margin-bottom: 36px; }
.hero-stats { display: flex; flex-wrap: wrap; margin-bottom: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats li { padding: 16px 20px; font-size: 14px; font-weight: 500; color: var(--navy); line-height: 1.5; }
.hero-stats li:first-child { padding-left: 0; }
.hero-stats li + li { border-left: 1px solid var(--gold); }
.hero-stats .num { font-family: var(--f-num); font-weight: 600; font-size: 26px; color: var(--gold-text); margin: 0 2px; }
.hero-photo { margin: 0; position: relative; display: flex; flex-direction: column; }
.hero-photo img { flex: 1; width: 100%; object-fit: cover; object-position: 40% center; min-height: 0; }
.hero-photo .img-note { padding: 0 16px 8px; }

/* ---------- S2 実績の証明（主役層） ---------- */
/* 背景写真の金線が文字と重ならないよう、布の質感部分だけを使う */
.proof { position: relative; background: var(--navy) url("../images/section-bg-numbers.jpg") center bottom / auto 210% no-repeat; color: var(--white); }
.proof::before { content: ""; position: absolute; inset: 0; background: rgba(31, 42, 68, .45); }
.proof-inner { position: relative; padding: var(--section-y) 0; }
.proof h2 { color: var(--white); font-size: 32px; text-align: center; }
.proof .eyebrow { color: var(--gold); text-align: center; }
.proof-stage { display: grid; gap: 64px; margin: 64px auto 0; max-width: 760px; }
.stat { text-align: center; }
.stat-num { font-family: var(--f-num); font-weight: 600; color: var(--gold); line-height: 1; display: flex; justify-content: center; align-items: baseline; gap: 8px; }
.stat-num .count { font-size: 140px; font-feature-settings: "lnum" 1; }
.stat-num .unit { font-family: var(--f-head); font-size: 32px; color: var(--gold); }
.stat-patent { flex-direction: column; align-items: center; gap: 20px; }
.patent-line { display: block; width: 320px; height: 1px; background: var(--gold); transform-origin: left center; }
.patent-word { font-family: var(--f-head); font-size: 64px; letter-spacing: 0.12em; color: var(--gold); line-height: 1.2; }
.stat-text { margin-top: 24px; font-size: 17px; color: #E9E5DC; }
.proof-summary { margin-top: 80px; }
.summary-row { display: none; }
.proof-summary h3 { color: var(--white); font-size: 28px; text-align: center; margin-bottom: 40px; }
.entry-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; max-width: 880px; margin: 0 auto; }
.entry-card { background: var(--base); color: var(--ink); padding: 36px 36px 32px; border-radius: var(--radius); border-top: 2px solid var(--gold); display: flex; flex-direction: column; }
.entry-card .label { font-family: var(--f-head); font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.entry-card p { margin-bottom: 28px; flex: 1; }
.entry-card .btn { align-self: flex-start; }

/* デスクトップでピン留めする時の配置（JSが .is-pinned を付ける） */
.proof.is-pinned .proof-inner { height: 100vh; padding: calc(var(--header-h-small) + 40px) 0 40px; display: flex; flex-direction: column; }
.proof.is-pinned .proof-body { position: relative; flex: 1; }
.proof.is-pinned .proof-stage { position: absolute; inset: 0; margin: 0 auto; max-width: none; display: block; }
.proof.is-pinned .stat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.proof.is-pinned .proof-summary { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; justify-content: center; }
.proof.is-pinned .summary-row { display: flex; justify-content: center; margin: 0 auto 28px; border-bottom: 1px solid rgba(184,155,94,.6); padding-bottom: 20px; }
.summary-row li { padding: 0 28px; font-size: 14px; color: #E9E5DC; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.summary-row li + li { border-left: 1px solid var(--gold); }
.summary-row strong { font-family: var(--f-num); font-size: 34px; font-weight: 600; color: var(--gold); line-height: 1; }
.summary-row .ja { font-family: var(--f-head); font-size: 18px; color: var(--gold); }
.proof.is-pinned .proof-summary h3 { margin-bottom: 28px; }

/* ---------- カード（S3・S4） ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; align-items: stretch; }
.card-grid > li { display: flex; }
.card {
  display: flex; flex-direction: column; width: 100%;
  background: var(--base); border: 1px solid var(--line); border-radius: var(--radius);
  text-decoration: none; color: var(--ink);
}
.section--surface .card { background: var(--base); }
.pain-card { padding: 36px 32px 32px; }
.pain-card img { width: 64px; height: 64px; margin-bottom: 24px; }
.pain-card .quote { font-family: var(--f-head); font-size: 20px; color: var(--navy); line-height: 1.6; margin-bottom: 24px; flex: 1; }
.pain-card .to { border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pain-card .to span:first-child { color: var(--ink-sub); font-size: 12px; display: block; }
.pain-card .to strong { color: var(--navy); font-weight: 500; }
.arrow { width: 28px; height: 28px; flex: none; }

.photo-frame { overflow: hidden; margin: 0; }
.photo-frame img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-card figure { margin: 0; }
.service-card .img-note { padding: 0 24px; }
.service-card .body { padding: 20px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { font-size: 22px; margin-bottom: 12px; }
.service-card p { flex: 1; margin-bottom: 20px; }
.service-card .more { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 500; font-size: 14px; }

/* ---------- S5 塗るプロ ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split h2 { font-size: 32px; margin-bottom: 24px; }
.split p { margin-bottom: 20px; }
.split .btn { margin-top: 16px; }

/* ---------- S6 流れ ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.steps li { padding: 0 32px 0 0; position: relative; }
.step-no { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.step-no span { width: 52px; height: 52px; border: 1px solid var(--navy); border-radius: 50%; display: grid; place-items: center; font-family: var(--f-num); font-weight: 600; font-size: 22px; color: var(--navy); background: var(--base); flex: none; }
.step-no::after { content: ""; flex: 1; height: 1px; background: var(--gold); }
.steps li:last-child .step-no::after { display: none; }
.steps h3 { font-size: 20px; margin-bottom: 8px; }
.flow-meta { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.flow-meta .item { display: flex; align-items: center; gap: 10px; font-weight: 500; color: var(--navy); }
.flow-meta img { width: 28px; height: 28px; }

/* ---------- CTA帯 ---------- */
.cta-band { background: var(--surface) url("../images/section-bg-cta.jpg") center / cover no-repeat; padding: var(--section-y) 0; text-align: center; position: relative; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: rgba(247,245,241,.55); }
.cta-band .container { position: relative; }
.cta-band h2 { font-size: 30px; margin-bottom: 40px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- 下層ページ見出し ---------- */
.page-header { background: var(--surface) url("../images/page-header.jpg") center / cover no-repeat; padding: 96px 0; border-bottom: 1px solid var(--line); }
.page-header--nurupro { background-image: url("../images/nurupro-bg.jpg"); }
.page-header h1 { font-size: 40px; }
.page-header .lead { margin-top: 16px; max-width: 32em; }

/* ---------- 下層共通パーツ ---------- */
.block + .block { margin-top: 96px; }
.media-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.media-row h2 { font-size: 30px; margin-bottom: 24px; }
.media-row p + p { margin-top: 16px; }
.spec-list { margin-top: 28px; border-top: 1px solid var(--line); }
.spec-list div { display: flex; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { width: 7em; flex: none; color: var(--ink-sub); font-size: 14px; }
.spec-list dd { margin: 0; font-weight: 500; color: var(--navy); }
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-pair figure, .media-row figure { margin: 0; }
.pain-table { border-top: 1px solid var(--line); }
.pain-table li { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.pain-table .q { font-family: var(--f-head); font-size: 18px; color: var(--navy); }

.price-table { width: 100%; border-collapse: collapse; background: var(--base); }
.price-table th, .price-table td { padding: 18px 24px; border-bottom: 1px solid var(--line); text-align: left; }
.price-table thead th { background: var(--navy); color: var(--white); font-weight: 500; font-size: 14px; }
.price-table tbody th { font-weight: 500; color: var(--navy); }
.price-table td { font-family: var(--f-body); }
.price-table th, .price-table td { white-space: nowrap; }
.price-table tbody th { white-space: normal; }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left; font-family: var(--f-head); font-size: 18px; color: var(--navy); min-height: 44px; }
.faq-q .mark { width: 16px; height: 16px; position: relative; flex: none; }
.faq-q .mark::before, .faq-q .mark::after { content: ""; position: absolute; left: 0; top: 50%; width: 16px; height: 1px; background: var(--gold-text); }
.faq-q .mark::after { transform: rotate(90deg); }
.faq-q[aria-expanded="true"] .mark::after { transform: rotate(0deg); }
.faq-a { overflow: hidden; }
.faq-a > div { padding: 0 4px 24px; }

.stat-static { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.stat-static li { background: var(--navy); color: var(--white); padding: 48px 32px; text-align: center; border-radius: var(--radius); }
.stat-static .big { font-family: var(--f-num); font-weight: 600; font-size: 88px; line-height: 1; color: var(--gold); }
.stat-static .big small { font-family: var(--f-head); font-size: 22px; margin-left: 6px; }
.stat-static .big.ja { font-family: var(--f-head); font-size: 44px; line-height: 88px; letter-spacing: .1em; }
.stat-static p { margin-top: 20px; color: #E9E5DC; font-size: 15px; }

.voice-frame { border: 1px dashed var(--line); padding: 64px 32px; text-align: center; color: var(--ink-sub); background: var(--base); }

.check-list li { position: relative; padding: 12px 0 12px 40px; border-bottom: 1px solid var(--line); }
.check-list li img { position: absolute; left: 0; top: 14px; width: 26px; height: 26px; }

.area-list { display: flex; gap: 32px; margin-top: 16px; }
.area-list li { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 22px; color: var(--navy); }
.area-list img { width: 32px; height: 32px; }

/* ---------- フォーム ---------- */
.form { max-width: 720px; }
.field { margin-bottom: 28px; }
.field > label, .field legend { display: block; font-weight: 500; color: var(--navy); margin-bottom: 8px; padding: 0; }
.field fieldset { border: 0; margin: 0; padding: 0; }
.req, .opt { font-size: 12px; margin-left: 8px; padding: 1px 8px; border: 1px solid currentColor; border-radius: var(--radius); font-weight: 500; }
.req { color: var(--navy); }
.opt { color: var(--ink-sub); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.field textarea { min-height: 180px; resize: vertical; }
.choices { display: flex; flex-wrap: wrap; gap: 12px 28px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.choices input { width: 18px; height: 18px; accent-color: var(--navy); }
.form .btn { min-width: 280px; }
.form-done { text-align: center; padding: 64px 32px; border: 1px solid var(--line); background: var(--white); max-width: 720px; }
.form-done .check-anim { width: 120px; height: 120px; margin: 0 auto 24px; }
.form-done h2 { font-size: 24px; }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding: 160px 0; }
.notfound .code { font-family: var(--f-num); font-weight: 600; font-size: 96px; color: var(--gold-text); line-height: 1; margin-bottom: 24px; }
.notfound h1 { font-size: 30px; margin-bottom: 20px; }
.notfound .btn-row { justify-content: center; margin-top: 40px; }

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #E9E5DC; padding: 80px 0 40px; font-size: 14px; }
.site-footer .logo { color: var(--white); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 40px; border-bottom: 1px solid rgba(184,155,94,.5); }
.footer-grid p { margin-top: 12px; }
.footer-nav { display: grid; grid-template-columns: repeat(3, auto); gap: 12px 40px; justify-content: start; align-content: start; }
.footer-nav a { text-decoration: none; color: #E9E5DC; }
.footer-nav a:hover { color: var(--white); text-decoration: underline; text-decoration-color: var(--gold); }
.demo-note { margin-top: 32px; font-size: 12px; line-height: 1.8; color: #CFC9BD; max-width: 60em; }
.copy { margin-top: 16px; font-size: 12px; color: #A9A395; font-family: var(--f-num); letter-spacing: .08em; }

/* ---------- レスポンシブ（768px未満） ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 34px; }
  .gnav ul { gap: 18px; }
  .gnav { gap: 20px; }
}
@media (max-width: 767px) {
  :root { --section-y: 80px; --header-h: 64px; --header-h-small: 56px; }
  .container { padding: 0 20px; }
  .logo { font-size: 24px; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; padding: 0 10px; white-space: nowrap; height: 44px; background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--navy); font-size: 12px; cursor: pointer; }
  .gnav { position: absolute; top: 100%; left: 0; right: 0; background: var(--base); border-bottom: 1px solid var(--line); padding: 16px 20px 24px; display: none; flex-direction: column; align-items: stretch; gap: 12px; }
  .gnav.is-open { display: flex; }
  .gnav ul { flex-direction: column; gap: 0; }
  .gnav ul a { display: block; padding: 12px 0 !important; border-bottom: 1px solid var(--line); }
  .header-right { gap: 10px; }
  .header-cta { min-height: 44px; padding: 0 14px; font-size: 13px; }
  .hero-grid, .split, .media-row, .photo-pair { grid-template-columns: 1fr; }
  .hero-grid { min-height: 0; }
  .hero-text { padding: 48px 20px; order: 2; }
  .hero-photo { order: 1; }
  .hero h1 { font-size: 24px; }
  .hero-stats li { padding: 12px 12px; }
  .card-grid, .steps, .stat-static, .entry-cards { grid-template-columns: 1fr; }
  .steps { gap: 32px; }
  .step-no::after { display: none; }
  .stat-num .count { font-size: 96px; }
  .patent-word { font-size: 44px; }
  .patent-line { width: 200px; }
  .section-head h2, .split h2, .proof h2, .page-header h1, .media-row h2 { font-size: 24px; }
  .pain-table li { grid-template-columns: 1fr; gap: 8px; }
  .price-table th, .price-table td { padding: 14px 10px; font-size: 14px; }
  .cta-band h2 { font-size: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: repeat(2, auto); }
  .form .btn { width: 100%; min-width: 0; }
  .btn { padding: 0 24px; }
}

/* ---------- 動きを減らす設定 ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
