/* =============================================================
   SilkBridge innovations — 共通スタイル
   方針: 白〜淡いグレーの地、墨色の文字、少量の真鍮色。
         見出しは明朝（Noto Serif JP）、本文はゴシック（Noto Sans JP）。
         カードを並べず、罫線と余白で整理する。
   調整は原則 :root の変数で行う。
   ============================================================= */

:root {
  /* 色 */
  --bg: #fbfbf9;            /* 地 */
  --bg-soft: #f3f3ee;       /* 淡いグレー（冒頭の説明領域・帯） */
  --bg-deep: #e9e9e3;       /* 画像の読込み前の地 */
  --ink: #1f1f1d;           /* 墨 */
  --ink-2: #4d4c47;         /* 補助文 */
  --ink-3: #6f6e68;         /* キャプション等（地に対し 5.3:1） */
  --line: #d9d8d1;          /* 罫線 */
  --line-strong: #b4b3aa;
  --accent: #8c7439;        /* 真鍮（線・大きい要素向け） */
  --accent-deep: #6b5726;   /* 真鍮・濃（小さい文字向け 6.6:1） */
  --accent-soft: #ece6d6;
  --accent-light: #d8bf7a;  /* 墨地の上で使う明るい真鍮 */
  --paper: #fbfbf9;         /* 墨地の上の文字 */
  --paper-2: #c9c8c0;       /* 墨地の上の補助文（9.5:1） */
  --focus: #2f5d8a;

  /* 書体 */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic Medium", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif CJK JP", serif;

  /* 文字サイズ（スマートフォン → PC） */
  --fs-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);     /* 17 → 19px */
  --fs-small: 0.9375rem;                                       /* 15px（補足文） */
  --fs-label: 0.875rem;                                        /* 14px（ラベル） */
  --fs-h1: clamp(2rem, 1.3rem + 2.6vw, 3.625rem);             /* 32 → 58px */
  --fs-h2: clamp(1.625rem, 1.25rem + 1.4vw, 2.375rem);        /* 26 → 38px */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.35vw, 1.5rem);          /* 20 → 24px */
  --lh-body: 1.85;
  --lh-heading: 1.5;

  /* 余白 */
  --space-section: clamp(3rem, 2rem + 4vw, 7rem);              /* 48 → 112px */
  --space-block: clamp(1.75rem, 1.25rem + 2vw, 3rem);          /* 28 → 48px */
  --space-inner: clamp(1rem, 0.75rem + 1vw, 1.75rem);
  --gutter: clamp(1.25rem, 0.75rem + 2.5vw, 3.5rem);           /* 20 → 56px */
  --measure: 36em;                                             /* 本文の最大行長 */
  --content-max: 1180px;

  /* 骨格 */
  --nav-w: 220px;
  --header-h: 60px;
  --radius: 2px;
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 100%;
  line-height: var(--lh-body);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
  line-break: strict;
}

/* 紙の質感: 全面に薄い粒子を重ねる（固定レイヤー、操作に影響しない） */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.14 0 0 0 0 0.13 0 0 0 0 0.11 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--accent); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
small { font-size: var(--fs-small); }

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

/* 見出し */
h1, h2, .serif {
  font-family: var(--font-serif);
  font-weight: 500;
  font-feature-settings: "palt";
  letter-spacing: 0.04em;
  line-height: var(--lh-heading);
  text-wrap: balance;
  word-break: auto-phrase; /* 対応ブラウザでは文節で折り返す */
}
h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; }

/* PCだけで有効な改行 */
.br-pc { display: none; }

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

.skip-link {
  position: absolute; left: 0.75rem; top: -100%;
  z-index: 100;
  padding: 0.6em 1em;
  background: var(--ink); color: #fff;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

/* ---------- 骨格 ---------- */
.site { min-height: 100vh; min-height: 100dvh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0 max(1rem, env(safe-area-inset-right, 0px)) 0 max(1rem, env(safe-area-inset-left, 0px));
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
}
.brand__logo { width: 155px; height: auto; } /* 217×56 の横組みロゴ（マーク＋ワードマーク） */

/* まとまりで折り返す語句（収まらない時だけ内部で折り返す） */
.nowrap { display: inline-block; } /* 収まらない極端な幅では内部で折り返す（はみ出させない） */

/* メニューボタン（スマートフォン） */
.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  min-width: 44px; min-height: 44px;
  padding: 0 0.5rem;
  margin-right: -0.5rem;
  border-radius: var(--radius);
}
.menu-toggle__label { font-size: var(--fs-small); letter-spacing: 0.08em; }
.menu-toggle__icon {
  position: relative;
  display: inline-block;
  width: 22px; height: 14px;
}
.menu-toggle__icon::before,
.menu-toggle__icon::after {
  content: "";
  position: absolute; left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}
.menu-toggle__icon::before { top: 0; }
.menu-toggle__icon::after { bottom: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::before { top: 6px; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__icon::after { bottom: 6px; transform: rotate(-45deg); }
.js .menu-toggle { display: inline-flex; }

/* ナビゲーション */
.site-nav__list { display: flex; flex-direction: column; }
.site-nav__list a {
  display: block;
  padding: 0.85rem 0;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  letter-spacing: 0.1em;
}
.site-nav__list a[aria-current="page"] { color: var(--accent-deep); }
.site-nav__list a[aria-current="page"]::before {
  content: "";
  display: inline-block;
  width: 0.5em; height: 0.5em;
  margin-right: 0.6em;
  background: var(--accent);
  vertical-align: 0.1em;
}
.site-nav__list a:hover { color: var(--accent-deep); }

/* スマートフォン: 開閉パネル */
.site-nav {
  padding: 0.25rem max(1rem, env(safe-area-inset-right, 0px)) 1.25rem max(1rem, env(safe-area-inset-left, 0px));
}
.js .site-nav {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 24px -16px rgba(31, 31, 29, 0.25);
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
}
.js .site-nav:not(.is-open) { display: none; }

/* ---------- 本文領域 ---------- */
.site-main { display: block; }
.container {
  max-width: var(--content-max);
  padding-inline: var(--gutter);
}
.section {
  padding-block: var(--space-section);
  scroll-margin-top: calc(var(--header-h) + 1rem);
}
.section + .section,
.section--ruled { border-top: 1px solid var(--line); }
.section__head { max-width: 40em; margin-bottom: var(--space-block); }
.section__title { font-size: var(--fs-h2); }
.section__label {
  margin-top: 0.75rem;
  font-size: var(--fs-label);
  letter-spacing: 0.08em;
  color: var(--accent-deep);
}
.section__intro { max-width: var(--measure); }
.lead + .section__intro { margin-top: 1rem; font-size: var(--fs-small); color: var(--ink-2); }

/* 見出しのアイコン（public/assets/icons/icons.svg のシンボルを <use> で参照） */
.icon { width: 3rem; height: 3rem; flex: none; color: var(--ink); }
.section__head--icon {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}
.section__head--icon .icon { margin-top: 0.15em; }
.section__head--icon .section__label { margin-top: 0.75rem; }
.section__head--tight { margin-bottom: 0; }
.split__text .section__head--tight + p { margin-top: 1.25rem; }
.page-head .section__head--tight .section__title { font-size: var(--fs-h1); line-height: 1.35; }
.page-head .section__head--icon .icon { width: 3rem; height: 3rem; margin-top: 0.45em; }
/* 狭い画面ではアイコンを見出しの上に置き、見出しの幅を確保する */
@media (max-width: 479px) {
  .section__head--icon { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .section__head--icon .icon { width: 2.5rem; height: 2.5rem; margin-top: 0; }
}
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1em; }
.lead { font-size: calc(var(--fs-body) * 1.06); max-width: var(--measure); }
.lead + .themes,
.section__intro + .themes,
.section__intro + .steps { margin-top: var(--space-block); }
.actions--after-text { margin-top: 1.75rem; }
.page-head__lead { margin-top: 1.5rem; }
.prose--after-head { margin-top: 1.5rem; }
.note {
  margin-top: var(--space-block);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: var(--fs-small);
  color: var(--ink-2);
  max-width: var(--measure);
}

/* ボタン・リンク */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75em 1.6em;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.button:hover { background: var(--ink); color: var(--bg); }
.button--primary { background: var(--ink); color: var(--bg); box-shadow: 4px 4px 0 var(--accent); transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.button--primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--accent); }
.button[disabled], .button:disabled { opacity: 0.45; cursor: not-allowed; }
.button[disabled]:hover, .button:disabled:hover { background: transparent; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; align-items: center; }
.text-link {
  display: inline-block;
  min-height: 44px;
  line-height: 44px;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.3em;
  letter-spacing: 0.06em;
}
.text-link:hover { color: var(--accent-deep); }

/* ---------- 冒頭 ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero__text {
  order: 1;
  background: var(--ink);
  color: var(--paper);
  padding: var(--space-block) var(--gutter);
}
.hero__title {
  font-size: var(--fs-h1);
  line-height: 1.35;
  letter-spacing: 0.06em;
  text-wrap: balance;
  color: var(--paper);
}
/* 文節の途中で折り返さない（横書き時: 文節ごとに inline-block） */
.hero__title > span:first-child { display: inline-block; }
.hero__title > span:last-child { display: inline; }
.hero__title > span:last-child > span { display: inline-block; }
.hero__lead { margin-top: 1.25rem; max-width: var(--measure); color: var(--paper-2); }
.hero__actions { margin-top: 1.75rem; }
.hero .button--primary { background: var(--accent-light); border-color: var(--accent-light); color: var(--ink); box-shadow: 4px 4px 0 var(--accent-deep); }
.hero .button--primary:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); box-shadow: 2px 2px 0 var(--accent-deep); }
.hero .text-link { color: var(--paper); text-decoration-color: var(--accent-light); }
.hero .text-link:hover { color: var(--accent-light); }
.hero :focus-visible { outline-color: var(--accent-light); }
.hero__visual { order: 2; position: relative; background: var(--bg-deep); }
.hero__visual img { width: 100%; height: auto; }
.hero__caption {
  position: absolute; right: 0.75rem; bottom: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--ink-2);
  background: rgba(251, 251, 249, 0.72);
  padding: 0.15em 0.6em;
  border-radius: var(--radius);
}

/* ---------- 相談領域（3列） ---------- */
.themes {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-block) 2.5rem;
}
.theme { position: relative; border-top: 1px solid var(--line-strong); padding-top: 1.25rem; }
.theme[data-tag]::before {
  content: attr(data-tag);
  position: absolute;
  right: 0;
  top: 0.9rem;
  font-family: var(--font-serif);
  font-size: 3.75rem;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--bg-deep);
  pointer-events: none;
}
.theme > * { position: relative; }
.theme__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.75rem; }
.theme__title small { font-size: var(--fs-label); font-weight: 400; letter-spacing: 0.08em; color: var(--accent-deep); }
.theme dl { margin-top: 1rem; }
.theme dt {
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent-deep);
  margin-top: 1.25rem;
}
.theme dt::before { content: "— "; color: var(--accent); font-weight: 400; }
.theme dd { margin-top: 0.35rem; font-size: var(--fs-body); line-height: 1.8; }
.theme__icon { margin-bottom: 0.9rem; }

/* ---------- 写真と文章の左右配置 ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-block) clamp(2rem, 4vw, 4rem);
  align-items: start;
}
.split__visual { position: relative; z-index: 0; background: var(--bg-soft); border: 1px solid var(--line); }
.split__visual::after {
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--accent);
  z-index: -1;
  pointer-events: none;
}
.split__visual img { width: 100%; height: auto; }
.split__caption {
  font-size: var(--fs-label);
  color: var(--ink-3);
  letter-spacing: 0.04em;
  margin-top: 1.5rem; /* ずらした枠（12px）の下に置く */
}
.split__text > * + * { margin-top: 1em; }
.split__text .section__title { margin-bottom: 0.25rem; }
.split__text .section__label { margin-top: 0; }
.split__text .section__head--icon .section__label { margin-top: 0.5rem; }
.split__text .actions { margin-top: 1.75rem; }

/* ---------- 進め方（順序のある3段階） ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.75rem 2.5rem; }
.steps > li { counter-increment: step; border-top: 1px solid var(--line-strong); padding-top: 1rem; }
.steps__no {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 500;
  color: var(--accent-deep);
  line-height: 1;
  letter-spacing: 0.05em;
}
.steps h3 { margin-top: 0.5rem; }
.steps p { margin-top: 0.5rem; line-height: 1.8; }

/* ---------- 帯（準備中の企画など） ---------- */
.band {
  background: var(--bg-soft);
  padding: var(--space-block) var(--gutter);
}
.band__inner { max-width: var(--content-max); }
.band h2 { font-size: var(--fs-h3); font-family: var(--font-sans); font-weight: 700; letter-spacing: 0.02em; }
.band p { margin-top: 0.75rem; max-width: var(--measure); }
.section__body > .prose + .actions { margin-top: 1.75rem; }
.band .status {
  display: inline-block;
  margin-bottom: 0.75rem;
  padding: 0.1em 0.7em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--fs-label);
  letter-spacing: 0.1em;
  color: var(--accent-deep);
}

/* ---------- 事業について（定義リスト） ---------- */
.facts { max-width: 44em; }
.facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.25rem 2rem;
  padding: 1rem 0;
  border-top: 1px solid var(--line);
}
.facts > div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { font-size: var(--fs-small); letter-spacing: 0.08em; color: var(--ink-3); }
.facts dd ul li + li { margin-top: 0.25rem; }

/* ---------- お問い合わせフォーム ---------- */
.form-notice {
  max-width: var(--measure);
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
  margin-top: var(--space-block);
}
.form-notice p + p { margin-top: 0.5rem; }
.form-notice--ready { border-left-color: var(--line-strong); color: var(--ink-2); font-size: var(--fs-small); }
.form { max-width: 36em; margin-top: var(--space-block); }
.form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.form__row + .form__row { margin-top: 1.25rem; }
.form label { display: block; font-size: var(--fs-small); letter-spacing: 0.06em; margin-bottom: 0.4rem; }
.form__req {
  display: inline-block;
  margin-left: 0.5em;
  padding: 0 0.5em;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  font-size: var(--fs-label);
  color: var(--accent-deep);
  letter-spacing: 0.08em;
}
.form input, .form select, .form textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7em 0.9em;
  font: inherit;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}
.form textarea { min-height: 9em; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { border-color: var(--ink); }
.form fieldset:disabled input,
.form fieldset:disabled select,
.form fieldset:disabled textarea {
  background: var(--bg-soft);
  color: var(--ink-3);
  cursor: not-allowed;
}
.form__help { margin-top: 0.4rem; font-size: var(--fs-label); color: var(--ink-3); letter-spacing: 0.04em; }
/* ハニーポット: 人には見えず、支援技術からも隠す（display:none だとボットが無視するため画面外に置く） */
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form__turnstile { margin-top: 1.5rem; min-height: 65px; }
.form__turnstile:empty { min-height: 0; margin-top: 0; }
.form__privacy { margin-top: 1.25rem; font-size: var(--fs-label); line-height: 1.7; color: var(--ink-2); }
.form__actions { margin-top: 1.5rem; }
.form__result {
  max-width: 36em;
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: var(--bg-soft);
}
.form__result.is-error { border-left-color: #a24a3a; }
.form__result[hidden] { display: none; }

/* ---------- 支援実績 ---------- */
.work-list { margin-top: var(--space-block); border-top: 1px solid var(--line-strong); }
.work-list:empty { display: none; }
.work-item { padding: var(--space-block) 0; border-bottom: 1px solid var(--line); }
.work-item__title { font-size: var(--fs-h3); }
.work-item__meta { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--ink-2); display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 0.25rem 1rem; }
.work-item__meta dt { color: var(--ink-3); letter-spacing: 0.06em; }
.work-item__desc { margin-top: 1rem; max-width: var(--measure); }
.work-list__empty {
  margin-top: var(--space-block);
  padding: var(--space-block) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- WEBアプリ集 ---------- */
.page-head { padding-block: var(--space-section) 0; }
.page-head .section__title { font-size: var(--fs-h1); line-height: 1.35; }
.app-list { margin-top: var(--space-block); border-top: 1px solid var(--line-strong); }
.app-list:empty { display: none; }
.app-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem 2.5rem;
  padding: var(--space-block) 0;
  border-bottom: 1px solid var(--line);
}
.app-item__media { position: relative; z-index: 0; background: var(--bg-soft); border: 1px solid var(--line); }
.app-item__media::after {
  content: "";
  position: absolute;
  inset: 10px -10px -10px 10px;
  border: 1px solid var(--accent);
  z-index: -1;
  pointer-events: none;
}
.app-item__media img { width: 100%; height: auto; }
.app-item__name { font-size: var(--fs-h3); }
.app-item__desc { margin-top: 0.5rem; max-width: var(--measure); }
.app-item__meta { margin-top: 0.75rem; font-size: var(--fs-small); color: var(--ink-2); }
.app-item__meta dt { display: inline; }
.app-item__meta dt::after { content: "："; }
.app-item__meta dd { display: inline; margin: 0; }
.app-item__meta dd::after { content: ""; display: block; }
.app-item__action { margin-top: 1.25rem; }
.external-note { font-size: var(--fs-label); letter-spacing: 0.04em; margin-left: 0.25em; }
.app-list__empty {
  margin-top: var(--space-block);
  padding: var(--space-block) 0;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
}

/* ---------- 404 ---------- */
.notfound { padding-block: var(--space-section); }
.notfound__links { margin-top: var(--space-block); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- フッター（墨地） ---------- */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: var(--space-section);
  background: var(--ink);
  color: var(--paper-2);
  padding: var(--space-block) var(--gutter) calc(var(--space-block) + 1rem + env(safe-area-inset-bottom, 0px));
  font-size: var(--fs-body);
}
.site-footer__inner { max-width: var(--content-max); display: grid; gap: 1.25rem; }
.site-footer__wordmark {
  font-family: var(--font-serif);
  font-size: clamp(2.4rem, 7vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: rgba(251, 251, 249, 0.08);
  margin: 0 0 0.5rem -0.04em;
  user-select: none;
}
.site-footer__brand a { display: inline-block; }
.site-footer__logo { width: 160px; height: auto; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer__links a { display: inline-block; min-height: 44px; line-height: 44px; text-decoration: none; letter-spacing: 0.08em; color: var(--paper); }
.site-footer__links a:hover { color: var(--accent-light); }
.site-footer__copy { letter-spacing: 0.04em; color: #9a9990; }
.site-footer :focus-visible { outline-color: var(--accent-light); }

/* ============================================================
   画面幅に応じた再配置
   ============================================================ */

/* スマートフォン: フッター末尾に余裕をもたせる（ブラウザのバーや埋め込み表示で隠れないように） */
@media (max-width: 699px) {
  .site-footer { padding-bottom: calc(var(--space-block) + 2.5rem + env(safe-area-inset-bottom, 0px)); }
  .site-footer__wordmark { font-size: clamp(2.1rem, 11vw, 2.6rem); }
}

/* 中くらいの幅（タブレット〜） */
@media (min-width: 700px) {
  .themes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts > div { grid-template-columns: 10em minmax(0, 1fr); }
  .app-item { grid-template-columns: minmax(200px, 2fr) minmax(0, 3fr); align-items: start; }
  .app-item--no-media { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
  .split--visual-right .split__visual { order: 2; }
  .split--visual-right .split__text { order: 1; }
  .br-pc { display: inline; }
}

/* 広い画面: 左に縦型ナビゲーション */
@media (min-width: 1200px) {
  .site {
    display: grid;
    grid-template-columns: var(--nav-w) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
      "header main"
      "header footer";
  }
  .site-header {
    grid-area: header;
    align-self: start;
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100dvh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    border-bottom: 0;
    border-right: 1px solid var(--line);
    padding: 2.5rem 1.5rem 1.5rem;
  }
  .site-header__bar { min-height: 0; padding: 0; margin-bottom: 2rem; }
  .brand__logo { width: 172px; }
  .js .menu-toggle { display: none; }
  .site-nav,
  .js .site-nav,
  .js .site-nav:not(.is-open) {
    display: block;
    position: static;
    padding: 0;
    border: 0;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .site-nav__list a { padding: 0.75rem 0; font-size: 1rem; }

  .site-main { grid-area: main; min-width: 0; }
  .site-footer { grid-area: footer; }
  .section { scroll-margin-top: 2rem; }

  .hero { grid-template-columns: 11fr 9fr; } /* 文章量に合わせ 55:45 */
  /* 冒頭の見出しは縦書き 2 行（右から読む）。説明は横書き */
  .hero__text {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 3rem);
    align-items: center;
  }
  .hero__title {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: clamp(2.125rem, 1rem + 2vw, 2.875rem);
    line-height: 1.3;
    letter-spacing: 0.14em;
    text-wrap: initial;
    align-self: start;
    margin-top: 0.1em;
  }
  .hero__title > span,
  .hero__title > span:first-child,
  .hero__title > span:last-child { display: block; }
  .hero__title > span:last-child > span { display: inline; }
  .tcy { text-combine-upright: all; }
  .hero__lead { margin-top: 0; }

  /* 見出しを左、本文を右に置く 2 列（右側の余白を使い切る）。3 列の領域や一覧は全幅 */
  .section--cols,
  .page-head--cols {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
  }
  .section--cols > .section__head,
  .page-head--cols > .section__head {
    grid-column: 1;
    margin-bottom: 0;
    position: sticky;
    top: 2rem;
  }
  .section--cols > .section__body,
  .section--cols > .section__foot,
  .page-head--cols > .lead { grid-column: 2; }
  .page-head--cols > .lead { margin-top: 0.5rem; }
  .section--cols > .themes,
  .section--cols > .steps { grid-column: 1 / -1; margin-top: var(--space-block); }
  .section--cols .lead,
  .section--cols .prose,
  .section--cols .section__intro,
  .section--cols .note,
  .section--cols .facts,
  .section--cols .form,
  .section--cols .form-notice,
  .section--cols .form__result { max-width: none; }
  .section--cols .lead { margin-top: 0.35em; }
  .band__inner {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: clamp(2.5rem, 5vw, 6rem);
    align-items: start;
  }
  .band__inner p { margin-top: 0.2em; max-width: none; }

  /* セクションの英語ラベルを左の余白に縦に立てる */
  .section { position: relative; }
  .section > .section__head .section__label,
  .section > .section__head--icon .section__label {
    position: absolute;
    left: calc(-1 * var(--gutter) + 1rem);
    top: calc(var(--space-section) + 0.4em);
    margin: 0;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    font-size: 0.75rem;
    letter-spacing: 0.2em;
  }
  .hero__visual {
    order: 1;
    min-height: 0;
  }
  .hero__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }
  .hero__text {
    order: 2;
    padding: clamp(3rem, 6vw, 5rem) clamp(2rem, 3.5vw, 3.5rem);
  }
}

@media (min-width: 1500px) {
  .hero__text { padding-inline: 4rem; }
}

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

/* 印刷 */
@media print {
  body::before { display: none; }
  .site-header, .site-footer, .skip-link { display: none; }
  .site { display: block; }
  a { text-decoration: none; }
}
