:root {
  --paper: #f2efe8;
  --paper-2: #e9e5dc;
  --ink: #161513;
  --mute: #5d584f;
  --rule: rgba(22, 21, 19, 0.14);
  --rule-soft: rgba(22, 21, 19, 0.06);
  --signal: #cf3f1c;
  --signal-tint: rgba(207, 63, 28, 0.1);
  --cell-w: 96px;
  --cell-h: 32px;
  --pad: clamp(16px, 4vw, 56px);
  --serif: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #141311;
    --paper-2: #1c1b18;
    --ink: #ece8df;
    --mute: #9a948a;
    --rule: rgba(236, 232, 223, 0.16);
    --rule-soft: rgba(236, 232, 223, 0.06);
    --signal: #ff6a3d;
    --signal-tint: rgba(255, 106, 61, 0.14);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; scroll-padding-bottom: 48px; }
body {
  margin: 0;
  background-color: var(--paper);
  /* 方眼（スプレッドシートのセル） */
  background-image:
    linear-gradient(var(--rule-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--rule-soft) 1px, transparent 1px);
  background-size: var(--cell-w) var(--cell-h);
  background-position: -1px -1px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.85;
  font-feature-settings: "palt" 0;
  word-break: auto-phrase;
  overflow-x: hidden;
}
::selection { background: var(--signal); color: var(--paper); }
a { color: inherit; }
.mono { font-family: var(--mono); font-feature-settings: "zero" 1; letter-spacing: 0; }
h1, h2, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }

.skip {
  position: absolute; left: 8px; top: -48px; z-index: 50;
  background: var(--ink); color: var(--paper); padding: 8px 12px; text-decoration: none;
}
.skip:focus { top: 8px; }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

/* ---------- 上の帯（名前ボックス風） ---------- */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: 56px 22px; align-items: center; column-gap: 24px;
  padding: 0 var(--pad);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--rule);
}
.bar__mark { font-family: var(--serif); font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: 0.04em; }
.bar__cell {
  min-width: 64px; text-align: center; font-size: 12px; padding: 3px 10px;
  border: 1px solid var(--rule); background: var(--paper);
  font-variant-numeric: tabular-nums;
}

/* 列の記号・行番号・選択セル */
.colhead {
  grid-column: 1 / -1; align-self: stretch; position: relative;
  margin: 0 calc(var(--pad) * -1); border-top: 1px solid var(--rule); overflow: hidden;
}
.colhead span, .rowhead span {
  position: absolute; display: grid; place-items: center; font-size: 10px; color: var(--mute);
  transition: color 0.15s, background-color 0.15s;
}
.colhead span { top: 0; bottom: 0; width: var(--cell-w); border-right: 1px solid var(--rule-soft); }
.rowhead { position: absolute; left: 0; top: 0; width: 40px; z-index: 5; pointer-events: none; display: none; }
.rowhead span { left: 0; width: 40px; height: var(--cell-h); border-bottom: 1px solid var(--rule-soft); }
.colhead span.is-on, .rowhead span.is-on { color: var(--signal); background: var(--signal-tint); }
.cursor {
  position: absolute; left: 0; top: 0; width: calc(var(--cell-w) + 1px); height: calc(var(--cell-h) + 1px);
  border: 2px solid var(--signal); pointer-events: none; z-index: 15; opacity: 0;
  transition: transform 0.09s linear, opacity 0.2s;
}
.cursor.is-on { opacity: 1; }
.cursor::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 6px; height: 6px; background: var(--signal); border: 1px solid var(--paper); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }
@media (min-width: 1100px) {
  :root { --pad: 88px; }
  .rowhead { display: block; }
}

/* ---------- 最初の画面 ---------- */
.hero {
  min-height: calc(100svh - 78px - 38px);
  display: grid; grid-template-rows: auto auto 1fr auto; row-gap: clamp(24px, 4vh, 48px);
  padding: clamp(40px, 8vh, 96px) var(--pad) 32px;
}
.hero__kicker { font-size: 12px; color: var(--mute); letter-spacing: 0.08em; }
.hero__title {
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(46px, 8.6vw, 168px);
  line-height: 1.04; letter-spacing: -0.035em;
  font-feature-settings: "palt" 1;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.12s; }
@keyframes rise { to { transform: none; } }

.hero__body {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 96px);
  align-items: end;
}
.hero__lead { font-size: clamp(16px, 1.35vw, 20px); max-width: 28em; color: var(--ink); line-height: 1.8; }
.hero__lead p + p { margin-top: 1em; }
.hero__sub { font-size: 0.82em; color: var(--mute); }
@keyframes fade { to { opacity: 1; } }
.hero__left { display: grid; gap: clamp(24px, 4vh, 40px); }
.toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--rule); }
.toc li:nth-child(2n) { border-right: 0; }
.toc li:nth-child(2n) a { padding-left: 14px; }
.toc li { border-right: 1px solid var(--rule); }
.toc li:last-child { border-right: 0; }
.toc a {
  display: flex; gap: 10px; align-items: baseline; padding: 11px 14px 11px 0; text-decoration: none; font-size: 15px;
  position: relative; transition: color 0.25s;
}
.toc a .mono { font-size: 11px; color: var(--signal); }
.toc a::after {
  content: "↓"; margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--mute);
  transition: transform 0.35s var(--ease), color 0.25s;
}
.toc a:hover { color: var(--signal); }
.toc a:hover::after { transform: translateY(3px); color: var(--signal); }

/* ---------- シート見出し（下のタブ） ---------- */
.tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; height: 38px;
  display: flex; align-items: stretch;
  background: var(--paper-2); border-top: 1px solid var(--ink);
}
.tabs__arrows { display: grid; place-items: center; padding: 0 14px; white-space: nowrap; font-size: 9px; color: var(--mute); border-right: 1px solid var(--rule); letter-spacing: 0.3em; }
.tabs__list { display: flex; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__list a {
  flex: none; display: grid; place-items: center; padding: 0 18px; font-size: 13px; text-decoration: none; color: var(--mute);
  border-right: 1px solid var(--rule); position: relative; transition: color 0.2s, background-color 0.2s;
}
.tabs__list a:hover { color: var(--ink); background: var(--paper); }
.tabs__list a[aria-current="true"] { color: var(--ink); background: var(--paper); font-weight: 700; margin-top: -1px; }
.tabs__list a[aria-current="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--signal); }
body { padding-bottom: 38px; }

/* 再現用の表 */
.sheet { border: 1px solid var(--ink); background: var(--paper); opacity: 0; animation: fade 0.9s 0.7s var(--ease) forwards; }
.sheet__cap {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--ink); background: var(--paper-2);
}
.sheet__replay {
  font: inherit; color: var(--mute); background: none; border: 0; padding: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
}
.sheet__replay:hover { color: var(--ink); }
.sheet__row {
  display: grid; grid-template-columns: 36px 1.1fr 1fr 1.4fr 0.9fr;
  font-size: clamp(12px, 1vw, 14px); border-bottom: 1px solid var(--rule);
  transition: background-color 0.4s, opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.sheet__row > span { padding: 8px 10px; border-right: 1px solid var(--rule); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__row > span:last-child { border-right: 0; }
.sheet__row--head { font-size: 11px; color: var(--mute); background: var(--paper-2); }
.sheet__row .idx { color: var(--mute); text-align: center; background: var(--paper-2); }
.js .sheet__row[data-row] { opacity: 0; transform: translateY(6px); }
.js .sheet__row[data-row].is-in { opacity: 1; transform: none; }
.sheet__row.is-dup { background: var(--signal-tint); box-shadow: inset 3px 0 0 var(--signal); }
.sheet__row.is-dup [data-dup-status] { color: var(--signal); font-weight: 700; }
.sheet__row.is-fixed > span:not(.idx) { text-decoration: line-through; text-decoration-color: var(--signal); color: var(--mute); }
.sheet__row.is-fixed { background: transparent; box-shadow: inset 3px 0 0 var(--rule); }
.sheet__note { font-size: 13px; padding: 10px; min-height: calc(3.2em + 20px); line-height: 1.6; }
@media (max-width: 480px) { .sheet__note { min-height: calc(4.8em + 20px); } }
.sheet__note b { color: var(--signal); font-weight: 700; }

/* ---------- 見出し ---------- */
section:not(.hero) { padding: clamp(80px, 14vh, 160px) var(--pad) 0; }
.sec-head {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); gap: 24px; align-items: end;
  padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 0;
}
.sec-head__no { font-size: 13px; color: var(--signal); }
.sec-head__title { font-family: var(--serif); font-weight: 800; font-size: clamp(36px, 5vw, 72px); line-height: 1.1; letter-spacing: -0.02em; }
.sec-head__note { font-size: 14px; color: var(--mute); justify-self: end; max-width: 26em; text-align: right; }

/* ---------- 記録 ---------- */
.inc { border-bottom: 1px solid var(--rule); }
.inc__head {
  width: 100%; display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 8fr) minmax(0, 2fr); gap: 24px; align-items: baseline;
  padding: 26px 0; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; font: inherit;
  position: relative;
}
.inc__head::before {
  content: ""; position: absolute; inset: 0 calc(var(--pad) * -1); background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform 0.45s var(--ease); z-index: -1;
}
.inc { position: relative; z-index: 0; }
.inc__no { font-size: 13px; color: var(--mute); transition: color 0.3s; }
.inc__title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2.4vw, 34px); line-height: 1.35; letter-spacing: -0.01em;
  transition: color 0.3s, transform 0.45s var(--ease);
}
.inc__tag { justify-self: end; font-size: 12px; color: var(--mute); border: 1px solid var(--rule); padding: 2px 8px; transition: color 0.3s, border-color 0.3s; }
@media (hover: hover) {
  .inc__head:hover::before { transform: scaleY(1); }
  .inc__head:hover .inc__title { color: var(--paper); transform: translateX(12px); }
  .inc__head:hover .inc__no { color: var(--signal); }
  .inc__head:hover .inc__tag { color: var(--paper); border-color: color-mix(in srgb, var(--paper) 40%, transparent); }
}
.inc__head[aria-expanded="true"] .inc__no { color: var(--signal); }

.inc__body { display: grid; grid-template-rows: 1fr; }
.js .inc__body { grid-template-rows: 0fr; transition: grid-template-rows 0.55s var(--ease); }
.js .inc.is-open .inc__body { grid-template-rows: 1fr; }
.inc__cols {
  min-height: 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
  padding-left: calc((100% - 48px) / 12 * 2 + 24px);
}
.inc__cols > div { padding: 4px 0 32px; border-top: 1px solid var(--rule); padding-top: 14px; }
.inc__cols dt { font-size: 11px; color: var(--mute); letter-spacing: 0.06em; margin-bottom: 6px; }
.inc__cols > div:last-child dt { color: var(--signal); }
.inc__cols dd { font-size: 15px; line-height: 1.85; }


/* ---------- 進め方 ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
.step { padding: 28px 24px 36px 0; border-right: 1px solid var(--rule); }
.step + .step { padding-left: 24px; }
.step:last-child { border-right: 0; }
.step__col { font-size: 12px; color: var(--signal); letter-spacing: 0.06em; margin-bottom: 18px; }
.step__title { font-family: var(--serif); font-weight: 800; font-size: clamp(24px, 2.4vw, 36px); line-height: 1.3; margin: 0 0 14px; letter-spacing: -0.01em; }
.step p:last-child { font-size: 15px; }
.case { margin-top: clamp(56px, 8vh, 96px); margin-left: calc((100% - 48px) / 12 * 2 + 24px); border: 1px solid var(--ink); background: var(--paper); }
.case__label { font-size: 12px; padding: 6px 12px; border-bottom: 1px solid var(--ink); background: var(--paper-2); color: var(--mute); }
.case__title { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.35; margin: 0; padding: 20px 20px 18px; border-bottom: 1px solid var(--rule); }
.case__rows { margin: 0; }
.case__rows > div { display: grid; grid-template-columns: 9em 1fr; border-bottom: 1px solid var(--rule); }
.case__rows > div:last-child { border-bottom: 0; }
.case__rows dt { font-size: 12px; color: var(--mute); padding: 14px 12px; border-right: 1px solid var(--rule); background: var(--paper-2); }
.case__rows > div:last-child dt { color: var(--signal); }
.case__rows dd { padding: 12px 20px; font-size: 15px; }

/* ---------- 頼めること ---------- */
.svc {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr); gap: 8px 24px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--rule);
}
.svc__no { font-size: 13px; color: var(--mute); grid-row: span 2; }
.svc__name { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.4vw, 34px); line-height: 1.3; margin: 0; grid-row: span 2; letter-spacing: -0.01em; }
.svc__what { font-size: 16px; }
.svc__give { font-size: 14px; color: var(--mute); }
.svc__give .mono { font-size: 11px; color: var(--signal); margin-right: 12px; letter-spacing: 0.06em; }
.tools { font-size: 12px; color: var(--mute); padding: 20px 0 0; margin-left: calc((100% - 48px) / 12 * 2 + 24px); line-height: 2; }


/* ---------- 料金の目安 ---------- */
.price { margin-top: clamp(48px, 7vh, 80px); }
.price__title { font-family: var(--serif); font-weight: 800; font-size: clamp(22px, 2.2vw, 32px); line-height: 1.35; margin: 0 0 10px; }
.price__lead { font-size: 15px; color: var(--mute); max-width: 44em; margin-bottom: 24px; }
.price__sheet { display: grid; gap: 0; }
.price__sheet .ptable { margin-bottom: 28px; }
.ptable { width: 100%; border-collapse: collapse; border: 1px solid var(--ink); background: var(--paper); font-size: 14px; }
.ptable__cap { font-size: 12px; color: var(--mute); padding: 0 0 8px; margin: 0; }
.ptable th, .ptable td { padding: 10px 12px; border-bottom: 1px solid var(--rule); border-right: 1px solid var(--rule); text-align: left; vertical-align: top; line-height: 1.6; }
.ptable th:last-child, .ptable td:last-child { border-right: 0; }
.ptable thead th { font-size: 11px; font-weight: 400; color: var(--mute); background: var(--paper-2); border-bottom: 1px solid var(--ink); }
.ptable tbody th { font-weight: 500; width: 34%; }
.ptable td.mono { white-space: nowrap; width: 9em; }
.ptable__sum th, .ptable__sum td { border-top: 1px solid var(--ink); font-weight: 700; }
.ptable__sum td.mono { color: var(--signal); }
.price__note { font-size: 13px; color: var(--mute); margin-top: 16px; max-width: 48em; }
@media (max-width: 860px) {
  .price { margin-left: 0; }
  .ptable, .ptable thead, .ptable tbody, .ptable tr, .ptable th, .ptable td { display: block; width: auto; }
  .ptable thead { display: none; }
  .ptable tr { border-bottom: 1px solid var(--rule); padding: 8px 0; }
  .ptable th, .ptable td { border: 0; padding: 2px 12px; }
  .ptable tbody th { width: auto; }
  .ptable td.mono { width: auto; color: var(--signal); }
  .ptable__sum th, .ptable__sum td { border-top: 0; }
}

/* 頼めること → 下のページへのリンク */
.svc__link { text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%; transition: background-size 0.4s var(--ease), color 0.25s; }
.svc__link:hover { background-size: 100% 1px; color: var(--signal); }
.svc__more { grid-column: 3; font-size: 14px; }
.svc__more a { color: var(--signal); text-underline-offset: 3px; }

/* Web 制作のページ */
.doc--wide .price, .doc--wide .web__points, .doc--wide .web__cta { margin-left: calc((100% - 48px) / 12 * 2 + 24px); }
.crumb { font-size: 12px; color: var(--mute); margin-bottom: 28px; }
.crumb a { color: inherit; }
.web__points { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 32px; }
.web__points li { border-top: 2px solid var(--ink); padding-top: 14px; font-size: 15px; }
.web__k { font-size: 11px; color: var(--signal); letter-spacing: 0.08em; margin-bottom: 8px; }
.web__cta { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink); max-width: 44em; }
@media (max-width: 860px) {
  .doc--wide .price, .doc--wide .web__points, .doc--wide .web__cta { margin-left: 0; }
  .web__points { grid-template-columns: 1fr 1fr; }
  .svc__more { grid-column: 1; }
}

/* ---------- AI ---------- */
.ai__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; counter-reset: ai; margin-left: calc((100% - 48px) / 12 * 2 + 24px); padding-top: 32px; }
.ai__list li { counter-increment: ai; border-top: 2px solid var(--ink); padding-top: 18px; }
.ai__list li::before { content: "0" counter(ai); font-family: var(--mono); font-size: 12px; color: var(--signal); display: block; margin-bottom: 14px; }
.ai__title { font-family: var(--serif); font-weight: 800; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.4; margin: 0 0 12px; }
.ai__list p { font-size: 15px; }

/* ---------- 経歴 ---------- */
.about__facts { grid-column: 2 / 4; margin: 8px 0 24px; border-top: 1px solid var(--ink); }
.about__facts > div { display: grid; grid-template-columns: 6em 1fr; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.about__facts dt { font-size: 12px; color: var(--mute); padding-top: 4px; }
.about__facts dd { font-size: 16px; }
.about__note { grid-column: 2 / 3; font-size: 14px; color: var(--mute); }

/* ---------- 受け付けていること ---------- */
.open__list li {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 4fr) minmax(0, 6fr); gap: 24px; align-items: baseline;
  padding: 22px 0; border-bottom: 1px solid var(--rule);
}
.open__state { justify-self: start; font-size: 11px; color: var(--signal); border: 1px solid currentColor; padding: 2px 8px; letter-spacing: 0.06em; }
.open__name { font-size: clamp(18px, 1.7vw, 24px); font-weight: 700; }
.open__detail { color: var(--mute); font-size: 15px; }

/* ---------- 書いている人 ---------- */
.about__body {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 4fr); gap: 24px; padding-top: 32px;
}
.about__big {
  grid-column: 2 / 4; font-family: var(--serif); font-weight: 700;
  font-size: clamp(26px, 3.4vw, 52px); line-height: 1.45; letter-spacing: -0.01em; margin-bottom: 24px;
  text-wrap: pretty;
}


/* ---------- 連絡 ---------- */
.open { padding-bottom: clamp(80px, 14vh, 160px); }
.contact__lead { padding: 32px 0 24px; margin-left: calc((100% - 48px) / 12 * 2 + 24px); }
.contact__link {
  display: grid; grid-template-columns: calc((100% - 48px) / 12 * 2) 1fr auto; gap: 24px; align-items: center;
  text-decoration: none; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 16px 0;
}
.contact__link .mono { font-size: 13px; color: var(--mute); }
.contact__handle { font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 9vw, 150px); line-height: 1.05; letter-spacing: -0.03em; }
.contact__arrow { justify-self: end; font-size: clamp(36px, 6vw, 96px); line-height: 1; transition: transform 0.5s var(--ease); }
.contact__link:hover .contact__arrow { transform: translateX(-16px); color: var(--signal); }
.contact__link:hover .contact__handle { color: var(--signal); }

.hero--404 { min-height: 100svh; }

.contact__mail { color: var(--signal); text-underline-offset: 3px; word-break: keep-all; }

/* ---------- 文書のページ（プライバシーポリシー） ---------- */
.doc { padding: clamp(48px, 10vh, 120px) var(--pad) clamp(80px, 14vh, 160px); }
.doc__body { max-width: 40em; margin-left: calc((100% - 48px) / 12 * 2 + 24px); padding-top: 32px; }
.doc__body p, .doc__body li { font-size: 16px; }
.doc__body ul { list-style: disc; padding-left: 1.4em; margin: 0 0 1em; }
.doc__body li + li { margin-top: 0.4em; }
.doc__h { font-family: var(--serif); font-weight: 700; font-size: clamp(20px, 2vw, 26px); margin: 2.2em 0 0.6em; padding-top: 14px; border-top: 1px solid var(--rule); }
.doc__back { margin-top: 3em; }
.foot a { color: inherit; }
@media (max-width: 860px) { .doc__body { margin-left: 0; } }

/* 日本語の見出しは、文節の途中で折り返さない */
.nw { display: inline-block; }
/* 狭い画面の大見出しは、書体の読み込み前後で行数が変わらないよう3行に固定する */
@media (max-width: 560px) { .hero__title .nw { display: block; } }

/* ---------- 下 ---------- */
.foot {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 20px var(--pad); border-top: 1px solid var(--rule); font-size: 12px; color: var(--mute);
}

/* ---------- スクロールで出す ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- 狭い画面 ---------- */
@media (max-width: 860px) {
  .hero__body { grid-template-columns: 1fr; }
  .sec-head { grid-template-columns: 1fr; gap: 8px; }
  .sec-head__note { justify-self: start; text-align: left; }
  .inc__head { grid-template-columns: 1fr auto; gap: 4px 16px; padding: 20px 0; }
  .inc__no { grid-column: 1; }
  .inc__tag { grid-column: 2; grid-row: 1; }
  .inc__title { grid-column: 1 / -1; }
  .inc__cols { grid-template-columns: 1fr; gap: 0; padding-left: 0; }
  .inc__cols > div { padding-bottom: 16px; }
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 22px 0 26px; border-right: 0; border-top: 1px solid var(--rule); }
  .case, .tools, .ai__list { margin-left: 0; }
  .case__rows > div { grid-template-columns: 1fr; }
  .case__rows dt { border-right: 0; padding: 8px 12px; }
  .case__rows dd { padding: 10px 12px 14px; }
  .svc { grid-template-columns: 1fr; gap: 6px; }
  .svc__no, .svc__name { grid-row: auto; }
  .ai__list { grid-template-columns: 1fr; gap: 32px; }
  .about__facts, .about__note { grid-column: 1; }
  .about__facts > div { grid-template-columns: 1fr; gap: 2px; }
  .open__list li { grid-template-columns: 1fr; gap: 6px; }
  .about__body { grid-template-columns: 1fr; }
  .about__big, .about__body p:not(.about__big) { grid-column: 1; }
  .contact__lead { margin-left: 0; }
  .contact__link { grid-template-columns: 1fr auto; }
  .contact__link .mono { display: none; }
  .sheet__row { grid-template-columns: 28px 1fr 0.9fr 1.3fr 0.8fr; }
  .sheet__row > span { padding: 7px 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
