/* SAMBOUひろば LP
   ベース: 提案ドラフト（ひろばアプリ_draft_2600807.pdf）のブランド。
   深緑＋やわらかい余白、丸ゴシックの見出し。装飾は足さず、余白と罫で整える。 */

:root {
  --paper: #fdfdfb;
  --tint: #f1f6ed;
  --card: #ffffff;
  --ink: #26301f;
  --ink-body: #414c3b;
  --ink-soft: #6d776a;
  --rule: #dde5d7;
  --rule-hair: #e9efe4;
  --green: #3f7b45;
  --green-deep: #2f6135;
  --green-ink: #ffffff;
  --green-wash: #e4efdf;
  --sub-line: #b9a15f;

  --font-display: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "Zen Kaku Gothic New", -apple-system, "Hiragino Sans", "Noto Sans JP", sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.8125rem;
  --text-base: 1rem;
  --text-md: clamp(1rem, 0.3vw + 0.95rem, 1.125rem);
  --text-lg: clamp(1.125rem, 0.7vw + 0.95rem, 1.375rem);
  --text-xl: clamp(1.4375rem, 1.8vw + 0.9rem, 2.125rem);
  --text-display: clamp(1.875rem, 3.4vw + 0.8rem, 3rem);
  --text-statement: clamp(1.375rem, 1.6vw + 1rem, 1.875rem);

  --s1: 0.5rem;
  --s2: 0.75rem;
  --s3: 1rem;
  --s4: 1.5rem;
  --s5: 2.5rem;
  --s6: 4rem;
  --s7: 5.5rem;

  --gutter: clamp(1.125rem, 4vw, 3rem);
  --content-max: 70rem;
  --measure: 36rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #171b15;
    --tint: #1d231a;
    --card: #212820;
    --ink: #eef2ea;
    --ink-body: #ccd4c8;
    --ink-soft: #8f9a8c;
    --rule: #39432f;
    --rule-hair: #2a3226;
    --green: #7fb884;
    --green-deep: #9ccca0;
    --green-ink: #171b15;
    --green-wash: #26301f;
    --sub-line: #c9b478;
  }
}

:root[data-theme="dark"] {
  --paper: #171b15;
  --tint: #1d231a;
  --card: #212820;
  --ink: #eef2ea;
  --ink-body: #ccd4c8;
  --ink-soft: #8f9a8c;
  --rule: #39432f;
  --rule-hair: #2a3226;
  --green: #7fb884;
  --green-deep: #9ccca0;
  --green-ink: #171b15;
  --green-wash: #26301f;
  --sub-line: #c9b478;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.5;
  text-wrap: balance;
}
h1 { font-size: var(--text-display); line-height: 1.42; }
.nobr { white-space: nowrap; }
h2 { font-size: var(--text-xl); line-height: 1.48; }
h3 { font-size: var(--text-md); }
h4 { font-size: var(--text-base); }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.shell {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--green);
  margin-bottom: var(--s2);
}

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule-hair);
}
.header-inner { display: flex; align-items: center; gap: var(--s4); min-height: 3.75rem; }
.brand { display: flex; align-items: center; }
.brand img { width: auto; height: 2.25rem; }
.nav { display: flex; gap: var(--s4); margin-inline-start: auto; font-size: var(--text-sm); }
.nav a { color: var(--ink-soft); text-decoration: none; }
.nav a:hover { color: var(--green); }
@media (max-width: 52rem) {
  .nav { display: none; }
  .header-inner .btn { margin-inline-start: auto; }
}

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 140ms ease, color 140ms ease;
}
.btn:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn--sm { padding: 0.45rem 1rem; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn--ghost:hover { background: var(--green-wash); border-color: var(--green); color: var(--ink); }

/* --- hero --- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem) var(--s7); }
.hero-inner {
  display: grid;
  gap: var(--s6);
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 60rem) { .hero-inner { grid-template-columns: 1fr; gap: var(--s5); } }
.hero-copy { container-type: inline-size; }
.hero h1 {
  margin-bottom: var(--s4);
  /* 「ご本人が登録した情報が、」12字が列幅を超えないよう、現行サイズを上限に収める */
  font-size: min(var(--text-display), calc((100cqi - 0.5rem) / 12));
}
.lede { font-size: var(--text-md); max-width: var(--measure); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-block: var(--s5) var(--s3); }
.hero-note { font-size: var(--text-sm); color: var(--ink-soft); }

.statement {
  margin: 0;
  padding: var(--s5);
  background: var(--green-wash);
  border-radius: var(--radius);
}
.statement p {
  font-family: var(--font-display);
  font-size: var(--text-statement);
  font-weight: 700;
  line-height: 1.75;
  color: var(--green-deep);
}

/* --- sections --- */
.section { padding-block: var(--s7); }
.section--tint { background: var(--tint); }
.section h2 { margin-bottom: var(--s5); max-width: var(--measure); }
.footnote {
  margin-top: var(--s4);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 48rem;
}

/* --- cards --- */
.cards { display: grid; gap: var(--s3); }
.cards--2 { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.cards--3 { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.card {
  background: var(--card);
  border: 1px solid var(--rule-hair);
  border-radius: var(--radius);
  padding: var(--s4);
}
.card-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
  background: var(--green);
  color: var(--green-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  margin-bottom: var(--s2);
}
.card h3 { margin-bottom: var(--s1); }

/* --- 課題 / はじめ方 --- */
.split { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 60rem) { .split { grid-template-columns: 1fr; gap: var(--s5); } }
.split-lead h2 { margin-bottom: var(--s3); }
.split-lead > p { color: var(--ink-body); }

.quote { margin: var(--s4) 0 0; }
.quote--plain p { color: var(--ink-body); }
.quote cite {
  display: block;
  margin-top: var(--s1);
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--ink-soft);
}

.issues { list-style: none; margin: 0; padding: 0; counter-reset: issue; }
.issues li {
  counter-increment: issue;
  padding: var(--s4) 0 var(--s4) 3rem;
  border-bottom: 1px solid var(--rule-hair);
  position: relative;
}
.issues li:first-child { padding-top: 0; }
.issues li:last-child { border-bottom: 0; }
.issues li::before {
  content: counter(issue);
  position: absolute;
  inset-inline-start: 0;
  top: var(--s4);
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--green-wash);
  color: var(--green-deep);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
}
.issues li:first-child::before { top: 0; }
.issues h3 { margin-bottom: var(--s1); }
.issues--start { border-top: 1px solid var(--rule-hair); }
.issues--start li:first-child { padding-top: var(--s4); }
.issues--start li:first-child::before { top: var(--s4); }

/* --- steps --- */
.step {
  background: var(--card);
  border: 1px solid var(--rule-hair);
  border-radius: var(--radius);
  padding: var(--s4);
  margin-bottom: var(--s3);
}
.step-head { display: flex; align-items: baseline; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s3); }
.step-no {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.06em;
  color: var(--green-ink);
  background: var(--green);
  border-radius: 999px;
  padding: 0.15rem 0.75rem;
}
.step-body { display: grid; gap: var(--s4); grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.step-body h4 { margin-bottom: var(--s1); color: var(--green-deep); }

/* --- 現場の声 --- */
.voices { display: grid; gap: var(--s3); grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
.voice {
  background: var(--green-wash);
  border-radius: var(--radius);
  padding: var(--s4);
}
.voice .q { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--s1); }
.voice .a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--green-deep);
  line-height: 1.7;
}

/* --- 費用 --- */
.price-block {
  margin-top: var(--s5);
  display: grid;
  gap: var(--s5);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: start;
}
@media (max-width: 60rem) { .price-block { grid-template-columns: 1fr; } }

.price-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
}
.price-table caption {
  text-align: start;
  font-size: var(--text-sm);
  color: var(--ink-soft);
  padding-bottom: var(--s2);
}
.price-table th, .price-table td {
  padding: var(--s2) var(--s3);
  border-bottom: 1px solid var(--rule-hair);
  text-align: end;
  font-size: var(--text-sm);
}
.price-table thead th { color: var(--ink-soft); font-weight: 500; font-family: var(--font-body); }
.price-table th:first-child, .price-table tbody th { text-align: start; color: var(--ink); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table .strong { color: var(--green-deep); font-weight: 700; }

.chart { margin: 0; container-type: inline-size; }
.chart figcaption { font-size: var(--text-sm); color: var(--ink-soft); margin-bottom: var(--s2); }
.chart svg { width: 100%; height: auto; }
.chart .grid line { stroke: var(--rule-hair); stroke-width: 1; }
/* viewBox幅520に対し、縮小後の画面上で13px以上になる。
   段階指定は長さ同士の除算calc()に未対応のブラウザ向けの代替（Chrome 140 / Safari 26 / Firefox 158 より前）。
   対応ブラウザでは最後のcalc()が勝ち、画面上ちょうど13pxになる */
.chart .axis-label text,
.chart .cross-label,
.chart .legend text { font-size: 13px; }
@container (max-width: 519px) {
  .chart .axis-label text,
  .chart .cross-label,
  .chart .legend text { font-size: 17px; }
}
@container (max-width: 419px) {
  .chart .axis-label text,
  .chart .cross-label,
  .chart .legend text { font-size: 19.5px; }
}
@container (max-width: 359px) {
  .chart .axis-label text,
  .chart .cross-label,
  .chart .legend text { font-size: 23px; }
}
.chart .axis-label text,
.chart .cross-label,
.chart .legend text { font-size: calc(0.8125rem * 520 * 1px / 100cqi); }
.chart .axis-label text { fill: var(--ink-soft); font-family: var(--font-body); }
.chart .line-buy { fill: none; stroke: var(--green); stroke-width: 2.5; }
.chart .line-sub { fill: none; stroke: var(--sub-line); stroke-width: 2.5; stroke-dasharray: 5 4; }
.chart .cross { fill: var(--green-deep); }
.chart .cross-label { fill: var(--green-deep); font-family: var(--font-display); font-weight: 700; }
.chart .legend text { fill: var(--ink-soft); font-family: var(--font-body); }
.chart .swatch-buy { fill: var(--green); }
.chart .swatch-sub { fill: var(--sub-line); }

.price-note {
  margin-top: var(--s4);
  font-size: var(--text-sm);
  color: var(--ink-soft);
  max-width: 48rem;
}

/* --- CTA --- */
.cta {
  margin-top: var(--s5);
  padding: var(--s4);
  background: var(--green-wash);
  border-radius: var(--radius);
}
.cta-note { margin-top: var(--s2); font-size: var(--text-sm); color: var(--ink-body); max-width: var(--measure); }

/* --- about --- */
.about { background: var(--tint); padding-block: var(--s7); }
.about-body { display: grid; gap: var(--s3); max-width: 44rem; }
.about-body p { color: var(--ink-body); }
.about-close {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--green-deep);
  line-height: 1.85;
}

/* --- footer --- */
.site-footer { padding-block: var(--s5); font-size: var(--text-sm); color: var(--ink-soft); }
.footer-inner { display: grid; gap: var(--s2); justify-items: start; }
.footer-mark { width: auto; height: 2.75rem; }

@media (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* --- 画面キャプチャ --- */
.shot { margin: var(--s3) 0 0; }
.shot img {
  display: block;
  width: 100%;
  border: 1px solid var(--rule-hair);
  border-radius: 10px;
  background: var(--card);
}
.shot figcaption {
  margin-top: var(--s1);
  font-size: var(--text-xs);
  color: var(--ink-soft);
  line-height: 1.7;
  text-wrap: balance;
}
.shot--photo { margin-top: var(--s4); }
.shot--photo img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; }
.shot-pair {
  display: grid;
  gap: var(--s2);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 40rem) { .shot-pair { grid-template-columns: 1fr; } }

/* --- ドラフト資料から抽出した写真・マーク --- */
.hero-photo {
  margin: var(--s6) auto 0;
  max-width: 1180px;
  padding-inline: var(--s4);
}
.hero-photo img {
  width: 100%;
  height: clamp(180px, 30vw, 340px);
  object-fit: cover;
  object-position: 50% 58%;
  border-radius: 20px;
  border: 1px solid var(--green-wash);
  box-shadow: 0 18px 40px -28px rgba(28, 46, 24, .55);
}

.voice-photo {
  margin: var(--s5) 0 var(--s6);
  max-width: 640px;
}
.voice-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--green-wash);
}

.about-mark {
  display: block;
  width: min(260px, 60%);
  height: auto;
  margin: 0 auto var(--s4);
  mix-blend-mode: multiply;
}
:root[data-theme="dark"] .about-mark { mix-blend-mode: normal; opacity: .9; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .about-mark { mix-blend-mode: normal; opacity: .9; }
}
