/* =========================================================
   合同会社コトノハ  style.css
   ---------------------------------------------------------
   色・書体・余白はすべて :root のトークンで管理しています。
   ========================================================= */

:root {
  /* 色 */
  --paper: #F6F4EC;      /* オフホワイト（基本背景） */
  --ivory: #EDE8DA;      /* アイボリー（面の切り替え） */
  --sand: #DCD3C0;       /* 淡いベージュ（線・面） */
  --line: #D9D2C1;       /* 罫線 */
  --sage: #95A58C;       /* セージグリーン */
  --sage-deep: #6F8267;  /* セージ（文字用に濃く） */
  --forest: #2E4538;     /* フォレストグリーン（見出し・ボタン） */
  --ink: #2A3530;        /* 本文 */
  --ink-soft: #56625A;   /* 補足文 */
  --gold: #A8925C;       /* くすんだゴールド（ごく少量） */
  --field: #FBFAF5;      /* 入力欄 */
  --bg: var(--paper);

  /* 書体 */
  --serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;

  /* レイアウト */
  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 56px);
  --section: clamp(88px, 11vw, 152px);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.95;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: anywhere;
}

img, svg { max-width: 100%; height: auto; display: block; }

a {
  color: var(--forest);
  text-decoration-thickness: 1px;
  text-underline-offset: .32em;
}
a:hover { color: var(--sage-deep); }

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

h1, h2, h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  color: var(--forest);
  letter-spacing: .08em;
  line-height: 1.6;
}
p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

.wrap {
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  background: var(--forest);
  color: var(--paper);
  padding: 8px 16px;
  border-radius: 4px;
}
.skip:focus { left: 12px; }

/* ---------------------------------------------------------
   ヘッダー
   --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 244, 236, .92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--forest);
  text-decoration: none;
}
.brand:hover { color: var(--forest); }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-text { display: flex; flex-direction: column; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.3rem;
  letter-spacing: .2em;
  line-height: 1.1;
}
.brand-sub {
  font-size: .64rem;
  letter-spacing: .32em;
  color: var(--ink-soft);
  line-height: 1.4;
  margin-top: 3px;
}

.nav ul {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--ink);
  font-size: .9rem;
  text-decoration: none;
}
.nav a:hover { color: var(--sage-deep); }
.nav a[aria-current="page"] { color: var(--forest); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateX(-50%);
}
.nav a.nav-contact {
  padding: 8px 20px;
  border: 1px solid var(--forest);
  border-radius: 999px;
  color: var(--forest);
}
.nav a.nav-contact:hover { background: var(--forest); color: var(--paper); }

.menu-toggle {
  display: none;
  position: relative;
  width: 44px; height: 44px;
  margin-right: -10px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--forest);
}
.menu-toggle .bar {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform .3s, top .3s;
}
.menu-toggle .bar:nth-child(1) { top: 18px; }
.menu-toggle .bar:nth-child(2) { top: 25px; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { top: 21.5px; transform: rotate(35deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { top: 21.5px; transform: rotate(-35deg); }

@media (max-width: 1000px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    padding: 4px var(--gutter) 28px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 24px -16px rgba(46, 69, 56, .25);
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    font-size: .95rem;
  }
  .nav a[aria-current="page"]::after { left: auto; right: 4px; bottom: 50%; transform: translateY(50%); }
  .nav a.nav-contact {
    margin-top: 20px;
    padding: 13px 0;
    text-align: center;
    background: var(--forest);
    color: var(--paper);
    border: 0;
  }
}

/* ---------------------------------------------------------
   ボタン
   --------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 2em;
  border-radius: 999px;
  font-size: .92rem;
  letter-spacing: .12em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.btn-primary {
  background: var(--forest);
  color: var(--paper);
  border: 1px solid var(--forest);
}
.btn-primary:hover { background: #3C5848; color: var(--paper); }
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1px solid var(--forest);
}
.btn-ghost:hover { background: var(--ivory); color: var(--forest); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: .9rem;
  white-space: nowrap;
}
.text-link::after {
  content: "";
  width: 18px; height: 1px;
  background: currentColor;
  transition: width .2s;
}
.text-link:hover::after { width: 26px; }

/* ---------------------------------------------------------
   ファーストビュー
   --------------------------------------------------------- */
.hero { padding-block: clamp(16px, 3vw, 40px) clamp(64px, 8vw, 104px); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 64px);
  min-height: min(calc(100svh - var(--header-h) - 40px), 700px);
}

.hero-canvas-wrap {
  position: relative;
  min-height: 460px;
}
.hero-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-text {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-end;
  gap: clamp(32px, 3.5vw, 56px);
  padding-block: clamp(16px, 3vw, 40px) 8px;
}

.hero-title {
  align-self: flex-start;
  writing-mode: vertical-rl;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 2;
  letter-spacing: .22em;
  white-space: nowrap;
}
.hero-title span { display: block; }
.hero-title span + span { margin-top: 3.2em; }

.hero-body { width: 17em; font-size: .95rem; }
.hero-actions { flex-direction: column; align-items: flex-start; }
.hero-body p { margin-bottom: 2em; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-text {
    order: -1;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding-top: clamp(28px, 6vw, 48px);
  }
  .hero-title {
    writing-mode: horizontal-tb;
    font-size: clamp(26px, 6.4vw, 38px);
    line-height: 1.75;
    letter-spacing: .1em;
    white-space: normal;
  }
  .hero-title span + span { margin-top: 0; }
  .hero-body { width: auto; max-width: 34em; }
  .hero-body p { margin-bottom: 0; }
  .hero-canvas-wrap { min-height: 0; aspect-ratio: 1 / .92; max-height: 620px; }
  .hero-actions { flex-direction: row; margin-top: 4px; }
  .hero-actions .btn { padding: 0 1.6em; }
}

/* ---------------------------------------------------------
   セクション共通
   --------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--ivory { background: var(--ivory); --bg: var(--ivory); }

.section-title { font-size: clamp(1.5rem, 2.5vw, 2.05rem); }
.section-lead { margin-top: 1.2em; color: var(--ink-soft); font-size: .95rem; max-width: 30em; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(32px, 6vw, 96px);
}
.split > * { min-width: 0; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 32px; }
}

/* コトノハについて */
.statement {
  margin: 0 0 2.4em;
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.9vw, 1.5rem);
  line-height: 2.15;
  letter-spacing: .08em;
  color: var(--forest);
}

.facts { margin: 0; border-top: 1px solid var(--line); }
.facts > div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 1.5em;
  padding: 1.4em 0;
  border-bottom: 1px solid var(--line);
}
.facts dt { font-family: var(--serif); color: var(--forest); font-size: 1.05rem; }
.facts dd { margin: 0; }

@media (max-width: 560px) {
  .facts > div { grid-template-columns: 1fr; gap: .3em; }
}

.notice {
  margin-top: 2.2em;
  padding-left: 1.2em;
  border-left: 2px solid var(--sage);
  color: var(--ink-soft);
  font-size: .86rem;
  line-height: 1.9;
}

/* 大切にしていること：枝をのぼるように少しずつずらして配置 */
.values-area { position: relative; margin-top: clamp(48px, 6vw, 80px); }
.values-vine {
  position: absolute;
  inset: -20px 0 -20px 0;
  width: 100%;
  height: calc(100% + 40px);
  pointer-events: none;
}
.values {
  position: relative;
  display: grid;
  gap: clamp(44px, 5.5vw, 80px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.values li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 0 1.2em;
  max-width: 31em;
  padding: 1.4em 1.6em 1.5em 1.2em;
  background: var(--bg);
}
.values li:nth-child(2) { margin-left: clamp(0px, 20vw, 300px); }
.values li:nth-child(3) { margin-left: clamp(0px, 40vw, 600px); }
.values .dot {
  width: 9px; height: 9px;
  margin-top: .75em;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
}
.values h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin-bottom: .5em; }
.values p { grid-column: 2; color: var(--ink); font-size: .95rem; }

@media (max-width: 820px) {
  .values-vine { display: none; }
  .values li { padding: 0; }
  .values li:nth-child(n) { margin-left: 0; }
}

/* 情報のテーマ */
.topics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 clamp(28px, 4vw, 56px);
  margin: 0;
}
.topics > div { padding: 1.5em 0 1.6em; border-top: 1px solid var(--line); }
.topics dt {
  margin-bottom: .35em;
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--forest);
}
.topics dd { margin: 0; color: var(--ink-soft); font-size: .92rem; }

@media (max-width: 600px) {
  .topics { grid-template-columns: 1fr; }
}

/* Webコンテンツ・SNS */
.channel {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.channel + .channel { margin-top: clamp(80px, 10vw, 136px); }
.channel--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.channel--reverse .channel-art { order: -1; }
.channel-art svg { width: 100%; max-width: 460px; margin-inline: auto; }
.channel-text > p { margin-top: 1.4em; }

.formats { margin: 2em 0 0; }
.formats > div {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr);
  gap: 1em;
  padding: .9em 0;
  border-bottom: 1px solid var(--line);
}
.formats > div:first-child { border-top: 1px solid var(--line); }
.formats dt { color: var(--forest); font-weight: 500; }
.formats dd { margin: 0; color: var(--ink-soft); font-size: .92rem; }

.sns-status {
  margin-top: 1.8em;
  padding: 1.1em 1.3em;
  background: var(--ivory);
  border-radius: 6px;
  font-size: .9rem;
}
.section--ivory .sns-status { background: var(--paper); }

@media (max-width: 820px) {
  .channel, .channel--reverse { grid-template-columns: 1fr; }
  .channel--reverse .channel-art { order: 0; }
  .channel-art svg { max-width: 380px; }
}
@media (max-width: 480px) {
  .formats > div { grid-template-columns: 1fr; gap: .1em; }
}

/* 事業のつながり */
.chain {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(40px, 5vw, 64px) 0 clamp(56px, 7vw, 88px);
  padding: 0;
  list-style: none;
}
.chain::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 10%;
  right: 30%;
  height: 1px;
  background: var(--sage);
}
.chain::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 70%;
  right: 10%;
  border-top: 1px dashed var(--gold);
}
.chain li {
  position: relative;
  padding: 36px .7em 0;
  text-align: center;
  font-size: .9rem;
  line-height: 1.75;
}
.chain li::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--forest);
  transform: translateX(-50%);
  z-index: 1;
}
.chain li:first-child::before { background: var(--forest); }
.chain li.is-future::before { border: 1.5px dashed var(--gold); }
.chain .chain-note { display: block; margin-top: .3em; color: var(--gold); font-size: .78rem; letter-spacing: .12em; }

@media (max-width: 820px) {
  .chain { grid-template-columns: 1fr; gap: 22px; }
  .chain::before { top: 10px; bottom: 60px; left: 6px; right: auto; width: 1px; height: auto; }
  .chain::after { top: auto; bottom: 20px; left: 6px; right: auto; height: 40px; border-top: 0; border-left: 1px dashed var(--gold); }
  .chain li { padding: 0 0 0 34px; text-align: left; }
  .chain li::before { left: 0; top: .45em; transform: none; }
  .chain .chain-note { display: inline; margin: 0 0 0 .6em; }
}

/* サービス一覧 */
.services { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service {
  display: grid;
  grid-template-columns: 8.5em minmax(0, 1fr) auto;
  gap: clamp(16px, 3vw, 48px);
  align-items: baseline;
  padding: clamp(28px, 3.5vw, 44px) 0;
  border-bottom: 1px solid var(--line);
}
.service-no {
  font-family: var(--serif);
  font-size: .88rem;
  letter-spacing: .14em;
  color: var(--gold);
}
.service h3 { font-size: clamp(1.2rem, 1.8vw, 1.45rem); margin-bottom: .45em; }
.service p { max-width: 34em; color: var(--ink); font-size: .95rem; }
.service--future .service-no,
.service--future h3 { color: var(--ink-soft); }

@media (max-width: 720px) {
  .service { grid-template-columns: 1fr; gap: 6px; }
  .service .text-link { margin-top: 12px; }
}

/* ご利用の流れ */
.flows {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(48px, 6vw, 96px);
  margin-top: clamp(40px, 5vw, 64px);
}
.flow h3 { font-size: 1.15rem; margin-bottom: 1.5em; }
.flow ol { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.flow li {
  position: relative;
  display: grid;
  grid-template-columns: 2.6em minmax(0, 1fr);
  gap: 1.1em;
  padding-bottom: 1.8em;
  counter-increment: step;
}
.flow li:last-child { padding-bottom: 0; }
.flow li::before {
  content: counter(step);
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.6em; height: 2.6em;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--serif);
  color: var(--forest);
  line-height: 1;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1.3em;
  top: 2.6em;
  bottom: 0;
  width: 1px;
  background: var(--sand);
}
.flow li strong { display: block; font-weight: 500; color: var(--forest); padding-top: .25em; }
.flow li span { display: block; color: var(--ink-soft); font-size: .9rem; }
.flow-note { margin-top: clamp(40px, 5vw, 56px); color: var(--ink-soft); font-size: .88rem; }

@media (max-width: 820px) {
  .flows { grid-template-columns: 1fr; }
}

/* お問い合わせフォーム */
.form { display: grid; gap: 1.7em; }
.field label, .field .label {
  display: flex;
  align-items: center;
  gap: .7em;
  margin-bottom: .55em;
  color: var(--forest);
  font-weight: 500;
  font-size: .92rem;
}
.tag {
  display: inline-block;
  padding: 0 .6em;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 400;
  letter-spacing: .08em;
  line-height: 1.8;
}
.tag--req { background: var(--forest); color: var(--paper); }
.tag--opt { border: 1px solid var(--sand); color: var(--ink-soft); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: .8em 1em;
  border: 1px solid var(--sand);
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: .03em;
  transition: border-color .2s;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--forest); outline: none; box-shadow: 0 0 0 3px rgba(149, 165, 140, .35); }
.field textarea { min-height: 11em; resize: vertical; }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.6em;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%232E4538' stroke-width='1.4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1em center;
}
.field .hint { margin-top: .5em; color: var(--ink-soft); font-size: .82rem; }
.field-error { display: none; margin-top: .45em; color: #8A4B2F; font-size: .84rem; }
.field.is-invalid .field-error { display: block; }
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea { border-color: #B0795D; }

.consent { display: flex; align-items: flex-start; gap: .75em; font-size: .92rem; cursor: pointer; }
.consent input { flex: none; width: 1.15em; height: 1.15em; margin-top: .42em; accent-color: var(--forest); }

.form-submit { margin-top: .6em; }
.form-submit .btn { min-width: 14em; }
.hp { display: none; }

/* 会社概要テーブル */
.info { margin: 0; border-top: 1px solid var(--line); }
.info > div {
  display: grid;
  grid-template-columns: 9em minmax(0, 1fr);
  gap: 1.2em;
  padding: 1.15em 0;
  border-bottom: 1px solid var(--line);
}
.info dt { color: var(--ink-soft); font-size: .92rem; }
.info dd { margin: 0; }
.info ol { margin: 0; padding-left: 1.4em; }
.info ol li + li { margin-top: .25em; }

@media (max-width: 560px) {
  .info > div { grid-template-columns: 1fr; gap: .2em; }
}

.after-link { margin-top: 2.2em; }

/* ---------------------------------------------------------
   下層ページ
   --------------------------------------------------------- */
.page-hero {
  padding-block: clamp(48px, 7vw, 104px) clamp(40px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
}
.breadcrumb { margin-bottom: 1.6em; font-size: .8rem; color: var(--ink-soft); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: .6em; margin: 0; padding: 0; list-style: none; }
.breadcrumb li + li::before { content: "/"; margin-right: .6em; color: var(--sand); }
.breadcrumb a { color: var(--ink-soft); }
.page-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: .12em; }
.page-lead { margin-top: 1.3em; max-width: 36em; }

.detail {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(28px, 6vw, 96px);
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
}
.detail:last-child { border-bottom: 0; }
.detail h2 { font-size: clamp(1.35rem, 2.2vw, 1.8rem); margin-top: .3em; }
.detail-body > p:first-child { margin-bottom: 1.8em; }
.detail-list { margin: 0; padding-left: 1.2em; }
.detail-list li + li { margin-top: .3em; }
.detail--future h2 { color: var(--ink-soft); }

@media (max-width: 820px) {
  .detail { grid-template-columns: 1fr; gap: 20px; }
}

.prose { max-width: 44em; }
.prose h2 {
  margin: 2.6em 0 .8em;
  font-size: 1.2rem;
  letter-spacing: .06em;
}
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li + li { margin-top: .3em; }
.prose .meta { margin-top: 3em; color: var(--ink-soft); font-size: .9rem; }

.thanks { padding-block: clamp(80px, 12vw, 160px); text-align: center; }
.thanks .brand-mark { width: 56px; height: 56px; margin: 0 auto 2em; color: var(--forest); }
.thanks p { max-width: 30em; margin-inline: auto; }
.thanks .actions { justify-content: center; margin-top: 2.6em; }

/* ---------------------------------------------------------
   フッター
   --------------------------------------------------------- */
.site-footer {
  padding-block: clamp(64px, 8vw, 96px) 32px;
  background: var(--forest);
  color: #E4E3D6;
  font-size: .9rem;
}
.site-footer a { color: #E4E3D6; }
.site-footer a:hover { color: #FFFFFF; }
.site-footer .brand, .site-footer .brand:hover { color: var(--paper); }
.site-footer .brand-sub { color: #AEB7A8; }

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
}
.footer-about p { margin-top: 1.6em; max-width: 24em; color: #C9CDBF; }
.footer-h {
  margin-bottom: 1em;
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 400;
  letter-spacing: .16em;
  color: #AEB7A8;
}
.footer-nav ul { margin: 0; padding: 0; list-style: none; }
.footer-nav li + li { margin-top: .55em; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; }
.footer-sns p { color: #C9CDBF; }

.footer-bottom {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: 24px;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  color: #AEB7A8;
  font-size: .8rem;
}
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: rgba(228, 227, 214, .2);
}
.footer-bottom p { margin: 0; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* 同意チェックのラベルは本文と同じ見た目に */
.field label.consent { color: var(--ink); font-weight: 400; margin-bottom: 0; }

/* =========================================================
   記事・セルフチェック（拡張）
   ========================================================= */
.section--tight { padding-block: clamp(40px, 5vw, 64px) var(--section); }
.page-hero--compact { padding-bottom: clamp(32px, 4vw, 48px); }

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: clamp(32px, 4vw, 48px);
}

.btn-small { min-height: 42px; padding: 0 1.3em; font-size: .85rem; letter-spacing: .06em; }
.btn-text {
  background: none;
  border: 0;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: .3em;
  padding-inline: .4em;
}
.btn-text:hover { color: var(--forest); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* 記事カテゴリー（HOME） */
.cats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(24px, 3.5vw, 48px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.cats a {
  display: grid;
  gap: .3em;
  height: 100%;
  padding: 1.5em 0 1.7em;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.cats a:hover .cat-name { color: var(--sage-deep); }
.cat-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  color: var(--forest);
  letter-spacing: .08em;
  transition: color .2s;
}
.cat-desc { font-size: .9rem; color: var(--ink-soft); }
.cat-count { margin-top: .4em; font-size: .8rem; color: var(--gold); letter-spacing: .08em; }

@media (max-width: 820px) { .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .cats { grid-template-columns: 1fr; } }

/* 記事カード */
.posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(40px, 5vw, 64px) clamp(24px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.post[hidden] { display: none; }
.post-link {
  display: flex;
  flex-direction: column;
  color: var(--ink);
  text-decoration: none;
}
.post-thumb {
  display: block;
  overflow: hidden;
  border-radius: 6px;
  aspect-ratio: 16 / 10;
  background: var(--ivory);
}
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-link:hover .post-thumb img { transform: scale(1.03); }
.post-link:hover .post-title { color: var(--sage-deep); }
.post-meta {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-top: 1.1em;
  font-size: .8rem;
  color: var(--ink-soft);
}
.post-cat {
  display: inline-block;
  padding: .1em .8em;
  border: 1px solid var(--sage);
  border-radius: 999px;
  color: var(--sage-deep);
  font-size: .78rem;
  letter-spacing: .08em;
  text-decoration: none;
  line-height: 1.8;
}
a.post-cat:hover { background: var(--sage); color: var(--paper); }
.post-title {
  margin-top: .55em;
  font-family: var(--serif);
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.65;
  letter-spacing: .06em;
  color: var(--forest);
  transition: color .2s;
}
.post-summary {
  display: -webkit-box;
  margin-top: .5em;
  overflow: hidden;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: .88rem;
  line-height: 1.85;
  color: var(--ink-soft);
}
.posts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (prefers-reduced-motion: reduce) { .post-thumb img { transition: none; } }
@media (max-width: 900px) { .posts, .posts--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .posts, .posts--3 { grid-template-columns: 1fr; gap: 40px; }
}

/* 記事検索 */
.finder {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 5vw, 56px);
  padding-bottom: clamp(24px, 3vw, 32px);
  border-bottom: 1px solid var(--line);
}
.finder-search { position: relative; max-width: 560px; }
.finder-search svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px; height: 18px;
  transform: translateY(-50%);
  color: var(--sage-deep);
  pointer-events: none;
}
.finder-search input {
  width: 100%;
  min-height: 52px;
  padding: .7em 1em .7em 46px;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.finder-search input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(149, 165, 140, .35); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  min-height: 40px;
  padding: 0 1.1em;
  border: 1px solid var(--sand);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: .88rem;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: var(--sage); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--paper); }
.chip-count { font-size: .75rem; opacity: .7; }
.finder-status { margin: 0; font-size: .85rem; color: var(--ink-soft); }
.finder-empty { padding: 48px 0; text-align: center; }
.finder-empty p { margin-bottom: 1.4em; color: var(--ink-soft); }

@media (max-width: 560px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; }
}

/* 記事詳細 */
.article-head { padding-top: clamp(32px, 5vw, 64px); }
.article-head > .wrap:first-child { max-width: calc(46rem + var(--gutter) * 2); }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 1.4em;
  font-size: .82rem;
  color: var(--ink-soft);
}
.article-title {
  margin-top: .8em;
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  line-height: 1.6;
  letter-spacing: .08em;
}
.article-lead { margin-top: 1.2em; color: var(--ink-soft); }
.article-eyecatch { max-width: calc(64rem + var(--gutter) * 2); margin-top: clamp(32px, 4vw, 48px); }
.article-eyecatch img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 8px; background: var(--ivory); }
.article-layout {
  max-width: 46rem;
  margin-inline: auto;
  padding-block: clamp(40px, 6vw, 72px) var(--section);
}

.toc {
  margin-bottom: clamp(40px, 5vw, 56px);
  padding: 1.4em 1.6em;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.toc-title { font-family: var(--sans); font-size: .85rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .1em; }
.toc ol { margin: .8em 0 0; padding-left: 1.4em; font-size: .92rem; }
.toc li + li { margin-top: .35em; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

.article-body { max-width: none; font-size: 1.02rem; line-height: 2.05; }
.article-body h2 {
  margin: 2.6em 0 .9em;
  padding-bottom: .5em;
  border-bottom: 1px solid var(--line);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  line-height: 1.6;
}
.article-body h2:first-child { margin-top: 0; }
.article-body h3 {
  position: relative;
  margin: 2em 0 .6em;
  padding-left: 1em;
  font-size: 1.12rem;
}
.article-body h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .75em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.article-body p { margin-bottom: 1.4em; }
.article-body ul, .article-body ol { margin: 0 0 1.5em; padding-left: 1.4em; }
.article-body li + li { margin-top: .4em; }
.article-body strong { font-weight: 500; color: var(--forest); background: linear-gradient(transparent 62%, rgba(168, 146, 92, .22) 62%); }

.article-box {
  margin-top: clamp(40px, 5vw, 56px);
  padding: clamp(24px, 3.5vw, 36px);
  border-radius: 8px;
  background: var(--ivory);
}
.article-box h2 { font-size: 1.2rem; margin-bottom: 1em; }
.article-points ul { margin: 0; padding: 0; list-style: none; }
.article-points li { position: relative; padding-left: 1.6em; }
.article-points li + li { margin-top: .7em; }
.article-points li::before {
  content: "";
  position: absolute;
  left: .2em;
  top: .85em;
  width: 8px; height: 8px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
}
.article-checks { background: transparent; border: 1px solid var(--sand); }
.box-note { font-size: .86rem; color: var(--ink-soft); }
.box-link { margin-top: 1.4em; }

.checklist { margin: 0; padding: 0; list-style: none; }
.checklist li + li { border-top: 1px dashed var(--line); }
.checklist label, .check {
  display: flex;
  align-items: flex-start;
  gap: .8em;
  padding: .75em 0;
  cursor: pointer;
}
.checklist input, .check input {
  flex: none;
  width: 1.2em; height: 1.2em;
  margin-top: .38em;
  accent-color: var(--forest);
}

.article-refs { margin-top: clamp(40px, 5vw, 56px); font-size: .88rem; }
.article-refs h2 { font-family: var(--sans); font-size: .9rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .1em; margin-bottom: .6em; }
.article-refs ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.article-refs li + li { margin-top: .3em; }
.article-notice { margin-top: clamp(32px, 4vw, 48px); }

/* セルフチェック */
.sc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.sc-form { display: grid; gap: clamp(28px, 3.5vw, 40px); }
.sc-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.sc-group legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1em;
  width: 100%;
  padding: 0 0 .6em;
  border-bottom: 1px solid var(--forest);
}
.sc-legend { font-family: var(--serif); font-size: 1.3rem; color: var(--forest); letter-spacing: .08em; }
.sc-count { font-size: .8rem; color: var(--sage-deep); }
.sc-group ul { margin: 0; padding: 0; list-style: none; }
.sc-group li { border-bottom: 1px solid var(--line); }
.sc-group .check { padding: .95em .2em; }
.sc-group .check:hover { background: rgba(237, 232, 218, .6); }
.sc-actions { margin-top: 8px; }

.sc-storage {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 1.6em;
  border-radius: 8px;
  background: var(--ivory);
  font-size: .88rem;
}
.sc-storage h2 { font-size: 1.05rem; margin-bottom: .7em; }
.sc-storage-actions { display: grid; gap: 8px; margin-top: 1.2em; }
.sc-storage-actions .btn { width: 100%; }
.sc-storage-status { margin-top: 1em; color: var(--sage-deep); font-size: .82rem; }

.sc-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(32px, 4vw, 48px);
}
.sc-result { padding: clamp(22px, 3vw, 32px); background: var(--paper); border-radius: 8px; }
.sc-result h3 { font-size: 1.2rem; margin-bottom: .6em; }
.sc-result h4 { margin: 1.1em 0 .4em; font-size: .82rem; font-weight: 500; color: var(--ink-soft); letter-spacing: .1em; }
.sc-result ul { margin: 0; padding: 0; list-style: none; font-size: .92rem; }
.sc-result li + li { margin-top: .6em; }
.sc-kept li { position: relative; padding-left: 1.4em; }
.sc-kept li::before { content: ""; position: absolute; left: 0; top: .8em; width: 7px; height: 7px; border-radius: 50%; background: var(--sage); }
.sc-tip-item { display: block; color: var(--ink-soft); font-size: .85rem; }
.sc-tip { display: block; padding-left: 1em; border-left: 2px solid var(--sand); }
.sc-all { font-size: .92rem; }
.sc-more { margin-top: 1.3em; }
.sc-result--memo { grid-column: 1 / -1; }
.sc-result-section h2:focus { outline: none; }

@media (max-width: 900px) {
  .sc-layout { grid-template-columns: 1fr; }
  .sc-storage { position: static; }
  .sc-results { grid-template-columns: 1fr; }
}

/* フッター（4列） */
.footer-grid--4 { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); }
.footer-contact { color: #C9CDBF; font-size: .85rem; line-height: 1.9; overflow-wrap: anywhere; }
@media (max-width: 960px) { .footer-grid--4 { grid-template-columns: 1fr 1fr; } .footer-grid--4 .footer-about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid--4 { grid-template-columns: 1fr; } }

/* 印刷（セルフチェックの振り返り・記事） */
@media print {
  .site-header, .site-footer, .sc-storage, .sc-actions, .actions, .skip, .toc, .breadcrumb { display: none !important; }
  body { background: #fff; }
  .section, .section--ivory { background: #fff; padding-block: 16px; }
  .sc-result { break-inside: avoid; border: 1px solid #ccc; }
}
