/* Project Regrow — 共通スタイル
   色はロゴ(2023)から抽出。ライト/ダークはロゴの2配色に対応 */
:root {
  --bg: #e9ffe9;
  --surface: #ffffff;
  --ink: #1e342a;
  --ink-soft: #3d5a4b;
  --accent: #2b8a45;      /* ライト地で読める緑(ロゴの #74e777 は背景用) */
  --accent-bright: #74e777;
  --line: #c4e2c6;
  --mark: #1e342a;
  --measure: 38rem;
  --font: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Meiryo", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1e392d; --surface: #193026; --ink: #f2fff2; --ink-soft: #c5dccb;
    --accent: #74e777; --line: #2f5a43; --mark: #74e777; --on-accent: #1e392d; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1e392d; --surface: #193026; --ink: #f2fff2; --ink-soft: #c5dccb;
  --accent: #74e777; --line: #2f5a43; --mark: #74e777; --on-accent: #1e392d; color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.9;
  overflow-x: hidden;
}
a { color: var(--accent); text-underline-offset: 3px; }
img { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 72rem; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 40px; } }

/* ヘッダー */
.site-header { position: relative; z-index: 2; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; flex-wrap: wrap; }
.brand { display: inline-flex; color: var(--ink); }
.brand svg { height: 26px; width: auto; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; font-size: 14px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.nav .lang { color: var(--ink-soft); }

/* ヒーロー(記号を大きく裁ち落とす) */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero .cut { position: absolute; right: -14vw; bottom: -18%; height: 120%; width: auto; color: var(--mark); opacity: .92; pointer-events: none; }
@media (max-width: 719px) { .hero .cut { right: -30vw; height: 70%; bottom: -8%; opacity: .14; } }
.hero .copy { position: relative; max-width: min(34rem, 54vw); }
@media (max-width: 719px) { .hero .copy { max-width: none; } }
.eyebrow { font-size: 13px; letter-spacing: .12em; color: var(--ink-soft); margin: 0 0 12px; }
h1 { font-size: clamp(30px, 5vw, 48px); line-height: 1.35; margin: 0 0 28px; font-weight: 700; }
.definition { font-size: clamp(17px, 1.9vw, 19px); line-height: 1.95; margin: 0; }
.definition strong { color: var(--accent); }

/* 本文 */
main section { padding: 56px 0; border-top: 1px solid var(--line); }
.prose > * { max-width: var(--measure); }
h2 { font-size: clamp(22px, 3vw, 28px); line-height: 1.5; margin: 0 0 24px; font-weight: 700; }
.prose p { margin: 0 0 1.2em; }
.prose strong { font-weight: 700; }
.story { margin: 0 0 1.4em; padding-left: 16px; border-left: 3px solid var(--line); }
.story b { display: block; }

/* 折りたたみ(価値観の構造) */
details { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
summary { cursor: pointer; padding: 14px 0; font-weight: 700; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.layers { margin: 20px 0 24px; }
.layers svg { width: 100%; max-width: 30rem; height: auto; }
.layers .l0 { fill: var(--bg); stroke: var(--line); }
.layers .l1, .layers .l2, .layers .l3 { fill: var(--surface); stroke: var(--line); }
.layers .l3 { fill: var(--accent); fill-opacity: .14; stroke: var(--accent); }
.layers text { fill: var(--ink); font-family: var(--font); font-size: 15px; }
.layers text.sub { fill: var(--ink-soft); font-size: 12px; }
dl.terms dt { font-weight: 700; margin-top: 12px; }
dl.terms dd { margin: 0 0 4px; }

/* 図版 */
figure { margin: 8px 0 28px; }
figure img { border-radius: 12px; border: 1px solid var(--line); }
figcaption { font-size: 13px; color: var(--ink-soft); margin-top: 8px; }

/* 問いのブロック */
.questions { position: relative; overflow: hidden; margin: 36px 0 0; padding: 36px 28px; border-radius: 16px; background: var(--ink); color: var(--bg); max-width: 44rem; }
.questions p { margin: 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 2.1; position: relative; }
.questions .cut { position: absolute; right: -40px; bottom: -50px; height: 180px; width: auto; color: var(--bg); opacity: .12; }

/* 作品一覧 */
.works { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; max-width: 44rem; }
.works li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.works .name { font-weight: 700; }
.works .status { font-size: 12px; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 1px 10px; margin-left: 8px; white-space: nowrap; }
.works p { margin: 4px 0 0; font-size: 15px; color: var(--ink-soft); }

/* フッター */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 13px; color: var(--ink-soft); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); }
.site-footer nav { display: flex; gap: 8px 20px; flex-wrap: wrap; }

/* 本文+図の2カラム */
.split { display: grid; gap: 8px 56px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, var(--measure)) minmax(0, 1fr); } }
.side-figure { margin: 8px auto 0; max-width: 360px; width: 100%; }
@media (max-width: 959px) { .side-figure { max-width: 280px; } }
.side-figure svg { width: 100%; height: auto; display: block; }
.side-figure figcaption { text-align: center; }
.nr-hollow { fill: none; stroke: var(--ink); stroke-width: 1.6px; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: .7; }
.nr-solid { fill: var(--accent); }
.nr-ground { stroke: var(--line); stroke-width: 2; }
.nr-label { fill: var(--ink-soft); font-family: var(--font); font-size: 15px; }
.br-frame { fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }

/* トップ: ロゴの暗色版を帯にして華やかに */
.band {
  --bg: #1e392d; --surface: #193026; --ink: #ffffff; --ink-soft: #c5dccb;
  --accent: #74e777; --line: #2f5a43; --mark: #74e777; --on-accent: #1e392d;
  background: var(--bg); color: var(--ink); position: relative; overflow: hidden;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .band { --bg: #142a20; } }
:root[data-theme="dark"] .band { --bg: #142a20; }
.band .site-header .brand { visibility: hidden; }
.band .cut { position: absolute; right: -10vw; top: -6%; height: 125%; width: auto; color: var(--mark); opacity: .16; pointer-events: none; }
.top-hero { position: relative; padding: 24px 0 88px; }
.top-hero .biglogo { display: block; width: min(560px, 82vw); height: auto; margin: 8px 0 40px; }
.top-hero .biglogo .ic { fill: #74e777; } .top-hero .biglogo .tx { fill: #ffffff; }
.catch { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.45; font-weight: 700; margin: 0 0 24px; letter-spacing: .02em; }
.top-hero .definition { max-width: 36rem; color: var(--ink-soft); }
.btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none; font-size: 15px; }
.btn-primary { background: var(--accent); color: var(--on-accent, #ffffff); }
.btn-ghost { border: 1.5px solid var(--accent); color: var(--accent); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 作品カード */
.feature { display: grid; gap: 24px 40px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; margin-bottom: 16px; }
@media (min-width: 860px) { .feature { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); padding: 28px; } }
.feature img { border-radius: 10px; border: 1px solid var(--line); }
.feature h3 { font-size: 26px; margin: 0 0 4px; }
.feature .sub { margin: 0 0 12px; color: var(--ink-soft); }
.feature .meta { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.more { display: inline-block; margin-top: 20px; }

/* 製品ページ */
.product-hero { padding: 24px 0 64px; }
.product-hero .grid { display: grid; gap: 28px 48px; align-items: center; }
@media (min-width: 900px) { .product-hero .grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.product-hero h1 { margin-bottom: 6px; letter-spacing: .02em; }
.product-hero .sub { font-size: clamp(18px, 2.2vw, 22px); margin: 0 0 16px; color: var(--ink-soft); }
.product-hero img { border-radius: 14px; border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 20px 0 0; font-size: 14px; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 2px 12px; }
.chips .free { background: var(--accent); color: var(--on-accent, #fff); border-color: var(--accent); font-weight: 700; }
.note { font-size: 14px; color: var(--ink-soft); margin: 12px 0 0; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 44rem; }
.steps li { counter-increment: s; position: relative; padding: 14px 18px 14px 60px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--on-accent, #fff); font-weight: 700; display: grid; place-items: center; font-size: 15px; }
.cards { display: grid; gap: 14px; max-width: 56rem; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0 0 8px; font-size: 15px; }
.card .price { font-weight: 700; color: var(--accent); }
.card.paid { border-color: var(--accent); }
.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
table.info { width: 100%; max-width: 56rem; border-collapse: collapse; font-size: 15px; background: var(--surface); border-radius: 12px; overflow: hidden; }
table.info th, table.info td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
table.info th { width: 9.5em; font-weight: 700; white-space: nowrap; }
@media (max-width: 600px) { table.info th, table.info td { display: block; width: auto; } table.info th { border-bottom: 0; padding-bottom: 0; } }
.faq details { margin: 0 0 10px; max-width: 48rem; }
.faq summary { font-weight: 700; }
.faq p { margin: 0 0 14px; }
.operator { font-size: 14px; color: var(--ink-soft); }

/* 法務ページ */
.legal-hero { padding-bottom: 32px; }
.legal h3 { font-size: 17px; margin: 24px 0 6px; }
.legal h2 { margin-top: 40px; }
.legal .prose h2:first-of-type { margin-top: 24px; }
.legal ul { padding-left: 1.3em; margin: 0 0 1.2em; }

/* フォーム */
.form { display: grid; gap: 18px; max-width: 40rem; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.form input, .form select, .form textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.form small { font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.form .req { font-size: 11px; font-weight: 700; color: var(--on-accent, #fff); background: var(--accent); border-radius: 999px; padding: 0 8px; margin-left: 6px; vertical-align: 2px; }
.form .check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.form .check input { width: auto; }
.form button { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* 感想 */
.voices { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 48rem; }
.voices li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.voices p { margin: 0 0 8px; white-space: pre-wrap; }
.voices .who { font-size: 13px; color: var(--ink-soft); }
.form-error { color: #b42318; margin: 0; font-size: 14px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form-error { color: #ff9b8f; } }
.form .lbl { display: block; }
.form button:disabled { opacity: .45; cursor: not-allowed; }
.site-footer small { font-size: 11px; opacity: .85; }

/* メンバー */
.lead { font-size: 19px; }
.timeline { margin: 0; }
.timeline dt { font-weight: 700; margin-top: 22px; }
.timeline dt span { font-weight: 400; color: var(--ink-soft); font-size: 14px; margin-left: 10px; }
.timeline dd { margin: 4px 0 0; padding-left: 14px; border-left: 3px solid var(--line); }
.card ul { margin: 0; padding-left: 1.2em; font-size: 15px; }
.card li { margin-bottom: 6px; }
#books h3 { margin: 28px 0 10px; font-size: 17px; }
.recs { gap: 8px; }
.recs li { padding: 12px 16px; }
.recs p { font-size: 13px; }
.links a { margin: 0 2px; }
@media (min-width: 760px) { #books .recs { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); max-width: 64rem; } }
@media (min-width: 960px) { .cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 64rem; } }
.recs small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 12px; }
.recs p { color: var(--ink); }
.zh-note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; max-width: 40rem; margin: 0 0 16px; }
