/* ============================================================
   日本承継成長研究所 ── 複数ページ用の追加スタイル
   base.css（承継サイトから抽出）の上に載せる。
   ============================================================ */

/* ---- ヘッダーの現在地 ---- */
.bar nav a[aria-current="page"] { color: var(--ai-mid); font-weight: 700; }

/* ---- ヒーロー（下層ページ用の浅い版） ---- */
.hero.inner { padding-block: clamp(3rem, 6vw, 4.6rem); }
.hero.inner h1 { font-size: clamp(1.9rem, 4.6vw, 3.05rem); }
.hero.inner .sub { margin-top: 1.3rem; }
.hero .en {
  margin-top: 1.1rem; font-size: .82rem; letter-spacing: .12em; color: #8FA9C2;
  font-family: "Zen Old Mincho", serif;
}
.crumbs { font-size: .76rem; letter-spacing: .1em; color: #7E96AC; margin-bottom: 1.1rem; }
.crumbs a { color: #A8C6E4; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---- 目的（子孫の永い繁栄） ---- */
.creed { background: var(--panel-tsu); }
.creed .inner { max-width: 46rem; margin-inline: auto; text-align: center; }
.creed .eyebrow { text-align: center; }
.creed h2 {
  font-size: clamp(1.7rem, 3.8vw, 2.7rem); line-height: 1.6;
}
.creed .lead { margin-inline: auto; text-align: left; }
.creed .quote {
  margin: 2.6rem auto 0; padding: 2.2rem 1.5rem;
  border-top: 1px solid var(--kincha); border-bottom: 1px solid var(--kincha);
  max-width: 34rem;
}
.creed .quote b {
  display: block; font-family: "Zen Old Mincho", serif; color: var(--ink);
  font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.85; letter-spacing: .04em; font-weight: 700;
}
.creed .quote span { display: block; margin-top: 1.1rem; font-size: .78rem; color: var(--muted); letter-spacing: .1em; }
.creed .after { margin-top: 2.4rem; text-align: left; }
.creed .after .card { background: var(--panel); }

/* ---- 三つの入口 ---- */
.entrances { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 900px) { .entrances { grid-template-columns: 1fr; } }
.entrance {
  display: flex; flex-direction: column; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  padding: 1.7rem 1.6rem 1.5rem;
  transition: border-color .18s ease, background .18s ease;
}
.entrance:hover { border-color: var(--ai); background: var(--panel-gray); }
.entrance .who { font-size: .72rem; letter-spacing: .16em; color: var(--kincha); margin-bottom: .8rem; }
.entrance h3 {
  font-family: "Zen Old Mincho", serif; color: var(--ink);
  font-size: 1.22rem; line-height: 1.55; margin-bottom: .6rem;
}
.entrance p { font-size: .9rem; line-height: 1.85; color: var(--body); }
.entrance .go { margin-top: 1.2rem; font-size: .84rem; font-weight: 700; color: var(--ai-mid); }
.entrance .go::after { content: " →" / ""; }
.entrance.soon { opacity: .72; pointer-events: none; }
.entrance.soon .go { color: var(--muted); }
.entrance.soon .go::after { content: "" / ""; }

/* ---- 研究ノートの目次と記事 ---- */
.toc { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.toc a {
  text-decoration: none; font-size: .84rem; color: var(--body);
  border: 1px solid var(--line); border-radius: 2px; padding: .45rem 1rem;
  background: var(--panel);
}
.toc a:hover { border-color: var(--ai-soft); color: var(--ai-mid); }
.note { border-top: 1px solid var(--line); padding-top: 2.2rem; margin-top: 3.2rem; }
.note:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.note .meta { font-size: .74rem; letter-spacing: .14em; color: var(--kincha); margin-bottom: .9rem; }
.note h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); }
.note > p { margin-top: 1rem; max-width: 46rem; }

/* ---- 定義表 ---- */
.deftable { width: 100%; border-collapse: collapse; font-size: .9rem; }
.deftable th, .deftable td {
  text-align: left; vertical-align: top; padding: .95rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.deftable th { width: 12rem; color: var(--ink); font-weight: 700; white-space: nowrap; }
@media (max-width: 620px) {
  .deftable th, .deftable td { display: block; width: auto; border-bottom: 0; padding: .3rem 0; }
  .deftable tr { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line-soft); }
}

/* ---- 注記ボックス ---- */
.notice {
  border-left: 2px solid var(--kincha); background: var(--panel-tsu);
  padding: 1.2rem 1.4rem;
  font-size: .88rem; line-height: 1.85;
}
.notice b { color: var(--ink); }

/* ---- 箇条書き ---- */
.marks li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; font-size: .92rem; line-height: 1.85; }
.marks li::before {
  content: ""; position: absolute; left: .25rem; top: .78rem;
  width: 6px; height: 6px; border-radius: 50%; background: var(--kincha);
}
.marks li b { color: var(--ink); }

/* ---- 番号つきの流れ ---- */
.flowlist { counter-reset: f; display: block; }
.flowlist li {
  counter-increment: f; position: relative; padding: 1.3rem 0 1.3rem 3.4rem;
  border-top: 1px solid var(--line);
  font-size: .92rem; line-height: 1.85;
}
.flowlist li:last-child { border-bottom: 1px solid var(--line); }
.flowlist li::before {
  content: counter(f) / ""; position: absolute; left: .6rem; top: 1.35rem;
  width: 1.6rem; height: 1.6rem; border-radius: 2px; background: var(--ai); color: #fff;
  display: grid; place-items: center; font-size: .78rem; font-weight: 700;
  font-family: "Zen Old Mincho", serif;
}
:root[data-theme="dark"] .flowlist li::before { color: var(--slab); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .flowlist li::before { color: var(--slab); } }
.flowlist li b { display: block; color: var(--ink); font-family: "Zen Old Mincho", serif; margin-bottom: .3rem; }

/* ---- フォーム ---- */
.formcard {
  background: var(--panel); border: 1px solid var(--line); border-radius: 2px;
  padding: 1.8rem 1.7rem;
}
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: .84rem; color: var(--ink); font-weight: 700; margin-bottom: .45rem; }
.field .req { color: var(--warn); font-size: .74rem; margin-left: .4rem; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: .92rem; color: var(--ink);
  background: var(--panel-gray); border: 1px solid var(--line); border-radius: 2px;
  padding: .75rem .9rem;
}
.field textarea { min-height: 9rem; resize: vertical; }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: .4rem; }
button.btn { border: 0; cursor: pointer; font-family: inherit; }
.formnote { font-size: .8rem; color: var(--muted); line-height: 1.85; margin-top: 1rem; }

/* ---- 本文（規程類） ---- */
.prose h3 { font-size: 1.08rem; margin: 2.2rem 0 .7rem; }
.prose h3:first-child { margin-top: 0; }
.prose p, .prose li { font-size: .92rem; line-height: 1.95; }
.prose ol { counter-reset: p; }
.prose ol > li { position: relative; padding-left: 1.5rem; margin-bottom: .5rem; counter-increment: p; }
.prose ol > li::before { content: counter(p) "." / ""; position: absolute; left: 0; color: var(--muted); }
.prose ul > li { position: relative; padding-left: 1.2rem; margin-bottom: .4rem; }
.prose ul > li::before { content: "・" / ""; position: absolute; left: 0; color: var(--muted); }

/* ---- フッター ---- */
footer.site { padding: 3rem 0 2.4rem; }
footer.site .ffoot {
  display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: flex-start;
  padding-bottom: 2rem; border-bottom: 1px solid var(--slab-line);
}
footer.site .fbrand {
  font-family: "Zen Old Mincho", serif; color: var(--slab-ink);
  font-size: 1.05rem; letter-spacing: .06em;
}
footer.site .fen { font-size: .74rem; letter-spacing: .12em; color: #7E96AC; margin-top: .3rem; }
footer.site .ftag { font-size: .82rem; color: var(--slab-gold); margin-top: .8rem; }
footer.site .fnav { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin-left: auto; max-width: 30rem; }
footer.site .fnav a { color: #A9BDCF; text-decoration: none; font-size: .82rem; }
footer.site .fnav a:hover { color: #fff; }
footer.site .fbottom {
  display: flex; flex-wrap: wrap; gap: .5rem 2rem; align-items: baseline;
  padding-top: 1.4rem; font-size: .76rem;
}
footer.site .fbottom p:last-child { margin-left: auto; }
@media (max-width: 720px) {
  footer.site .fnav { margin-left: 0; }
  footer.site .fbottom p:last-child { margin-left: 0; }
}


/* ---- 図表（白書の作法：図番号を左に置く） ---- */
.figtable { width: 100%; border-collapse: collapse; font-size: .92rem; }
.figtable th, .figtable td { text-align: left; vertical-align: top; padding: 1.2rem 1.2rem 1.2rem 0; }
.figtable thead th {
  font-size: .7rem; letter-spacing: .16em; color: var(--muted); font-weight: 700;
  border-bottom: 1px solid var(--ink); padding-bottom: .7rem;
}
.figtable tbody tr { border-bottom: 1px solid var(--line); }
.figtable .val {
  font-family: "Zen Old Mincho", serif; color: var(--ai); font-weight: 700;
  font-size: clamp(1.05rem, 2.2vw, 1.4rem); white-space: nowrap; width: 12rem;
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.figtable .say { color: var(--body); line-height: 1.9; }
.figtable .say b { color: var(--ink); }
.figtable .fig { color: var(--muted); font-size: .76rem; line-height: 1.7; width: 15rem; }
@media (max-width: 780px) {
  .figtable, .figtable tbody, .figtable tr, .figtable td { display: block; width: auto; }
  .figtable thead { display: none; }
  .figtable tbody tr { padding: 1.2rem 0; }
  .figtable td { padding: .2rem 0; }
  .figtable .val { font-size: 1.25rem; }
}

/* ---- 本文中のリンクは下線で（ボタンを増やさない） ---- */
.inlink {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--kincha); padding-bottom: 2px; font-weight: 700;
}
.inlink:hover { color: var(--ai-mid); border-color: var(--ai-mid); }
.inlink::after { content: " →" / ""; color: var(--kincha); }

/* ---- 記録写真（学会登壇など） ---- */
.shot { margin: 0; }
.shot img {
  width: 100%; height: auto; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--panel-gray);
}
.shot figcaption {
  margin-top: .7rem; font-size: .78rem; line-height: 1.8; color: var(--muted);
}
