/* =====================================================================
   Kanawa — 設備保全・点検記録クラウド
   トークン: 鉄紺 / 帳票の灰白 / 朱(チェック印のみ)
   書体: BIZ UDPGothic(現場の掲示物で使われるUD書体)一本
   ===================================================================== */

:root {
  --paper: #f1f2ef;        /* 帳票紙の灰白 */
  --sheet: #ffffff;        /* 点検表の白 */
  --sheet-2: #e7e9e5;      /* 薄い帯 */
  --ink: #1b2228;          /* 本文 */
  --ink-2: #4a545c;        /* 補助文 */
  --rule: #c6cbc6;         /* 罫線 */
  --rule-strong: #1b2228;  /* 太罫 */
  --steel: #22415a;        /* 鉄紺(主色) */
  --steel-deep: #16303f;
  --steel-tint: #dfe7ee;
  --shu: #c0331a;          /* 朱(チェック印・要注意) */
  --shu-tint: #f8e4df;
  --ok: #2b6b3f;           /* 正常 */
  --focus: #a85600;        /* フォーカスリング(安全色、紙に対し3:1以上) */
  --shadow: 0 1px 0 rgba(27, 34, 40, .08), 0 12px 32px -20px rgba(27, 34, 40, .35);
  --radius-s: 3px;
  --radius-m: 6px;
  --measure: 38em;
  --header-h: 64px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14191d;
    --sheet: #1d2429;
    --sheet-2: #242c33;
    --ink: #e4e7e4;
    --ink-2: #a8b1b8;
    --rule: #3a444c;
    --rule-strong: #e4e7e4;
    --steel: #9dc0da;
    --steel-deep: #b9d3e6;
    --steel-tint: #24333f;
    --shu: #f07a60;
    --shu-tint: #3a2521;
    --ok: #7fc494;
    --focus: #ffb547;
    --shadow: 0 1px 0 rgba(0, 0, 0, .4), 0 12px 32px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ---------- リセット / ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: "BIZ UDPGothic", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  font-size: 1rem;              /* 16px */
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  font-feature-settings: "palt";
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; font-weight: 700; letter-spacing: .01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--steel); text-underline-offset: .2em; }
a:hover { color: var(--steel-deep); }
strong { font-weight: 700; }
small { font-size: .875rem; }
table { border-collapse: collapse; width: 100%; }

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

.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: 8px; top: -60px;
  background: var(--ink); color: var(--paper);
  padding: .5em 1em; z-index: 100; border-radius: var(--radius-s);
}
.skip-link:focus { top: 8px; }

.wrap {
  width: min(100% - 2.5rem, 1120px);
  margin-inline: auto;
}
@media (min-width: 768px) { .wrap { width: min(100% - 4rem, 1120px); } }

/* ---------- 書体スケール(Elements of Typographic Style に倣った控えめな比率) ---------- */
.t-display { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.25rem); line-height: 1.25; letter-spacing: -.005em; }
.t-h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.125rem); }
.t-h3 { font-size: 1.25rem; }
.t-lead { font-size: 1.125rem; color: var(--ink-2); }
.t-num { font-size: clamp(2.25rem, 1.4rem + 3vw, 3.5rem); line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.measure { max-width: var(--measure); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .6em 1.4em;
  font: inherit; font-weight: 700; line-height: 1.2;
  border: 2px solid var(--steel); border-radius: var(--radius-m);
  background: var(--steel); color: #fff;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--steel-deep); border-color: var(--steel-deep); color: #fff; }
.btn.is-secondary { background: transparent; color: var(--steel); }
.btn.is-secondary:hover { background: var(--steel-tint); color: var(--steel-deep); }
.btn.is-block { width: 100%; }
@media (prefers-color-scheme: dark) {
  .btn { color: #0f1519; }
  .btn:hover { color: #0f1519; }
}

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); gap: 1rem;
}
.brand {
  display: inline-flex; align-items: center; gap: .6rem;
  font-weight: 700; font-size: 1.25rem; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-mark .ring { fill: none; stroke: var(--steel); stroke-width: 4; }
.brand-mark .tick { fill: none; stroke: var(--shu); stroke-width: 4; stroke-linecap: square; }
.brand small { font-weight: 400; color: var(--ink-2); letter-spacing: 0; font-size: .8rem; margin-left: .25rem; white-space: nowrap; }
@media (max-width: 479px) { .brand small { display: none; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; min-width: 44px; padding: 0 .5rem;
  background: none; border: 1px solid var(--rule); border-radius: var(--radius-s);
  color: var(--ink); font: inherit; cursor: pointer; white-space: nowrap;
}
.nav-toggle .bars { width: 22px; height: 16px; position: relative; }
.nav-toggle .bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: currentColor;
  transition: transform .2s, opacity .2s;
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 7px; }
.nav-toggle .bars span:nth-child(3) { top: 14px; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
  box-shadow: var(--shadow);
}
.site-nav[hidden] { display: none; }
.site-nav ul { display: flex; flex-direction: column; padding: .5rem 0; }
.site-nav a {
  display: block; padding: .8rem 1.25rem; text-decoration: none;
  color: var(--ink); font-weight: 700;
  border-left: 4px solid transparent;
}
.site-nav a[aria-current="page"] { border-left-color: var(--shu); background: var(--sheet); }
.site-nav a:hover { background: var(--sheet); }
.site-nav .nav-cta { padding: .75rem 1.25rem 1rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav, .site-nav[hidden] {
    display: block; position: static; background: none; border: 0; box-shadow: none;
  }
  .site-nav ul { flex-direction: row; align-items: center; gap: .25rem; padding: 0; }
  .site-nav a { padding: .5rem .8rem; border-left: 0; border-bottom: 2px solid transparent; font-weight: 400; }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--shu); background: none; font-weight: 700; }
  .site-nav a:hover { background: none; color: var(--steel-deep); }
  .site-nav .nav-cta { padding: 0 0 0 .75rem; }
  .site-nav .nav-cta .btn { min-height: 40px; padding: .4em 1.1em; }
}

/* ---------- セクション骨格(帳票の見出し行) ---------- */
.section { padding-block: clamp(2.5rem, 5vw, 4.5rem); }
.section-head {
  display: grid; gap: .75rem;
  padding-top: 1rem; margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
  border-top: 3px solid var(--rule-strong);
}
.section-head .t-lead { max-width: var(--measure); }
@media (min-width: 768px) {
  .section-head { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.5rem; align-items: start; }
}

.page-title {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2.5rem);
  border-bottom: 1px solid var(--rule);
}
.page-title .t-lead { margin-top: 1rem; max-width: var(--measure); }

/* ---------- ヒーロー ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(2.5rem, 6vw, 4.5rem); }
.hero .wrap { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 3.5rem; }
}
.hero-copy { display: grid; gap: 1.5rem; }
.hero-copy .t-lead { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-note { font-size: .9rem; color: var(--ink-2); }
.hero-note dl { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; }
.hero-note div { display: flex; gap: .5em; }
.hero-note dt { font-weight: 700; color: var(--ink); }
.hero-note dd { margin: 0; }

/* スマホの中の点検表(CSS/SVG のみ) */
.phone {
  --phone-w: 300px;
  width: min(100%, var(--phone-w)); margin-inline: auto;
  background: var(--ink); border-radius: 28px; padding: 12px;
  box-shadow: var(--shadow);
}
@media (prefers-color-scheme: dark) { .phone { background: #05080a; } }
@media (min-width: 900px) { .phone { --phone-w: 340px; margin-inline: auto 0; } }
.phone-screen {
  background: var(--sheet); border-radius: 18px; overflow: hidden;
  color: var(--ink);
}
.sheet-head {
  padding: .9rem 1rem .6rem; border-bottom: 3px double var(--rule-strong);
  display: flex; justify-content: space-between; align-items: end; gap: .5rem;
}
.sheet-head b { font-size: .95rem; line-height: 1.3; }
.sheet-head span { font-size: .75rem; color: var(--ink-2); white-space: nowrap; }
.sheet-rows { padding: .25rem 1rem .5rem; }
.sheet-row {
  display: grid; grid-template-columns: 1.8em 1fr auto 1.6em; gap: .5rem; align-items: center;
  padding: .45rem 0; border-bottom: 1px solid var(--rule);
  font-size: .85rem; line-height: 1.4;
}
.sheet-row:last-child { border-bottom: 0; }
.sheet-row .no { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.sheet-row .val { font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sheet-row.is-warn .val { color: var(--shu); font-weight: 700; }
.sheet-row .tick { width: 22px; height: 22px; }
.sheet-row .tick path { fill: none; stroke: var(--shu); stroke-width: 3; stroke-linecap: square; stroke-linejoin: miter; }
.sheet-row .tick .box { fill: none; stroke: var(--rule); stroke-width: 1.5; }
.sheet-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: .6rem 1rem .9rem; border-top: 3px double var(--rule-strong);
  font-size: .8rem; color: var(--ink-2);
}
.stamp {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--shu); color: var(--shu);
  font-weight: 700; font-size: .95rem; line-height: 1; letter-spacing: .05em;
  transform: rotate(-8deg);
}

/* 読み込み時に一度だけチェックが入る演出 */
@media (prefers-reduced-motion: no-preference) {
  .sheet-row .tick path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick .35s ease-out forwards; }
  .sheet-row:nth-child(1) .tick path { animation-delay: .5s; }
  .sheet-row:nth-child(2) .tick path { animation-delay: .9s; }
  .sheet-row:nth-child(3) .tick path { animation-delay: 1.3s; }
  .sheet-row:nth-child(4) .tick path { animation-delay: 1.7s; }
  .sheet-row:nth-child(5) .tick path { animation-delay: 2.1s; }
  .stamp { opacity: 0; transform: rotate(-8deg) scale(1.4); animation: stamp .25s ease-in 2.7s forwards; }
  @keyframes tick { to { stroke-dashoffset: 0; } }
  @keyframes stamp { to { opacity: 1; transform: rotate(-8deg) scale(1); } }
}

/* ---------- 課題提起(横罫の帳票リスト) ---------- */
.ledger { border-top: 1px solid var(--rule); }
.ledger > li {
  display: grid; gap: .5rem 2rem;
  padding: 1.5rem 0; border-bottom: 1px solid var(--rule);
}
.ledger h3 { font-size: 1.2rem; }
.ledger p { color: var(--ink-2); max-width: var(--measure); }
.ledger .mark {
  width: 34px; height: 34px; flex: none;
  color: var(--shu);
}
@media (min-width: 768px) {
  .ledger > li { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.4fr); align-items: start; }
}

/* ---------- 機能(2列、片側に図解) ---------- */
.features { display: grid; gap: 2.5rem; }
.feature {
  display: grid; gap: 1.25rem; align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m);
}
.feature h3 { font-size: 1.35rem; }
.feature p { color: var(--ink-2); margin-top: .5rem; }
.feature ul { margin-top: 1rem; display: grid; gap: .35rem; }
.feature li { padding-left: 1.4em; position: relative; }
.feature li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: .7em; height: .7em; border: 2px solid var(--steel); border-radius: 2px;
}
.feature-fig { min-width: 0; }
@media (min-width: 768px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem; }
  .feature:nth-child(even) .feature-fig { order: -1; }
}

/* 図解共通(SVG) */
.fig { width: 100%; height: auto; }
.fig .ln { stroke: var(--rule); stroke-width: 1; fill: none; }
.fig .ln-strong { stroke: var(--rule-strong); stroke-width: 1.5; fill: none; }
.fig .steel { stroke: var(--steel); fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.fig .steel-fill { fill: var(--steel); }
.fig .shu { stroke: var(--shu); fill: none; stroke-width: 2.5; stroke-linecap: square; }
.fig .shu-fill { fill: var(--shu); }
.fig .tint { fill: var(--steel-tint); }
.fig .shu-tint { fill: var(--shu-tint); }
.fig .txt { fill: var(--ink); font-size: 11px; font-family: inherit; }
.fig .txt-2 { fill: var(--ink-2); font-size: 10px; font-family: inherit; }
.fig .sheet-bg { fill: var(--sheet); }
.fig .paper-bg { fill: var(--paper); }

/* ---------- 導入効果 ---------- */
.results { background: var(--steel-deep); color: #fff; }
@media (prefers-color-scheme: dark) { .results { background: #0f1c26; color: var(--ink); } }
.results .section-head { border-top-color: currentColor; }
.results .t-lead { color: inherit; opacity: .85; }
.stat-grid { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.stat { border-top: 1px solid rgba(255, 255, 255, .35); padding-top: 1rem; }
.stat .t-num { color: #fff; }
.stat .t-num small { font-size: .5em; margin-left: .1em; font-weight: 400; }
.stat h3 { font-size: 1rem; font-weight: 700; margin-top: .5rem; }
.stat p { font-size: .9rem; opacity: .8; margin-top: .25rem; }
@media (prefers-color-scheme: dark) {
  .stat { border-top-color: var(--rule); }
  .stat .t-num { color: var(--steel); }
}

/* ---------- 事例カード ---------- */
.case-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) and (max-width: 1023px) {
  .case-card { grid-template-rows: none; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr) auto; align-items: center; gap: 1.5rem; }
  .case-card .delta { border-top: 0; border-left: 1px solid var(--rule); padding: 0 0 0 1.25rem; flex-direction: column; gap: 0; }
}
@media (min-width: 1024px) { .case-grid { grid-template-columns: repeat(3, 1fr); } }
.case-card {
  display: grid; grid-template-rows: auto 1fr auto; gap: 1rem;
  padding: 1.5rem; background: var(--sheet);
  border: 1px solid var(--rule); border-top: 4px solid var(--steel); border-radius: var(--radius-s);
  text-decoration: none; color: inherit;
}
.case-card:hover { border-top-color: var(--shu); color: inherit; }
.case-card .who { font-size: .9rem; color: var(--ink-2); }
.case-card .who b { display: block; font-size: 1.1rem; color: var(--ink); }
.case-card .quote { font-size: 1.05rem; line-height: 1.6; }
.case-card .delta { display: flex; align-items: baseline; gap: .5rem; border-top: 1px solid var(--rule); padding-top: .75rem; }
.case-card .delta .t-num { font-size: 2rem; color: var(--shu); }
.case-card .delta span { font-size: .9rem; color: var(--ink-2); }
.section-more { margin-top: 2rem; }

/* ---------- CTA 帯 ---------- */
.cta {
  background: var(--sheet); border-top: 3px solid var(--rule-strong); border-bottom: 1px solid var(--rule);
}
.cta .wrap { display: grid; gap: 1.5rem; padding-block: clamp(2.5rem, 5vw, 4rem); }
@media (min-width: 900px) { .cta .wrap { grid-template-columns: minmax(0, 1.4fr) auto; align-items: center; gap: 3rem; } }
.cta p { color: var(--ink-2); margin-top: .5rem; max-width: var(--measure); }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; }

/* ---------- フッター ---------- */
.site-footer { padding-block: 2.5rem 2rem; color: var(--ink-2); font-size: .9rem; }
.site-footer .wrap { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .site-footer .wrap { grid-template-columns: 1fr auto; align-items: end; } }
.footer-nav { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.footer-nav a { color: inherit; }
.site-footer address { font-style: normal; margin-top: .5rem; }

/* ---------- 料金 ---------- */
.billing-toggle {
  display: inline-flex; align-items: center; gap: .75rem; flex-wrap: wrap;
  margin-bottom: 2rem;
}
.billing-toggle .switch {
  display: inline-flex; border: 1px solid var(--rule); border-radius: var(--radius-m); overflow: hidden;
  background: var(--sheet);
}
.billing-toggle button {
  font: inherit; font-weight: 700; padding: .55em 1.2em; min-height: 44px;
  background: none; border: 0; color: var(--ink-2); cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] { background: var(--steel); color: #fff; }
@media (prefers-color-scheme: dark) { .billing-toggle button[aria-pressed="true"] { color: #0f1519; } }
.billing-toggle .hint { color: var(--shu); font-weight: 700; font-size: .9rem; }

.plans { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; } }
.plan {
  display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 1rem;
  padding: 1.75rem; background: var(--sheet);
  border: 1px solid var(--rule); border-radius: var(--radius-m);
}
.plan.is-featured { border: 2px solid var(--steel); position: relative; }
.plan.is-featured .ribbon {
  position: absolute; top: -.85em; left: 1.5rem;
  background: var(--steel); color: #fff; font-size: .85rem; font-weight: 700;
  padding: .15em .75em; border-radius: var(--radius-s);
}
@media (prefers-color-scheme: dark) { .plan.is-featured .ribbon { color: #0f1519; } }
.plan h3 { font-size: 1.35rem; }
.plan .for { color: var(--ink-2); font-size: .95rem; }
.plan .price { display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap; border-top: 1px solid var(--rule); padding-top: 1rem; }
.plan .price .t-num { font-size: 2.5rem; }
.plan .price .unit { color: var(--ink-2); }
.plan .price .yen { font-size: 1.25rem; font-weight: 700; }
.plan .price-note { font-size: .85rem; color: var(--ink-2); min-height: 1.5em; }
.plan ul { display: grid; gap: .5rem; border-top: 1px solid var(--rule); padding-top: 1rem; }
.plan li { padding-left: 1.5em; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: .05em; top: .5em;
  width: .5em; height: .85em;
  border-right: 2.5px solid var(--shu); border-bottom: 2.5px solid var(--shu);
  transform: rotate(40deg);
}
.plan li.is-no { color: var(--ink-2); }
.plan li.is-no::before { border: 0; width: .7em; height: 0; border-top: 2px solid var(--rule); top: .85em; transform: none; }

.compare { overflow-x: auto; margin-top: 3rem; -webkit-overflow-scrolling: touch; }
.compare-hint { display: none; font-size: .85rem; color: var(--ink-2); margin: 3rem 0 -2.5rem; }
@media (max-width: 767px) { .compare-hint { display: block; } }
.compare table { min-width: 640px; font-size: .95rem; }
.compare th, .compare td { padding: .8rem .75rem; text-align: left; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { border-bottom: 2px solid var(--rule-strong); }
.compare tbody th { font-weight: 400; color: var(--ink-2); width: 30%; }
.compare td { font-variant-numeric: tabular-nums; }
.compare .yes { color: var(--shu); font-weight: 700; }
.compare .no { color: var(--ink-2); }

/* FAQ (details/summary) */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.1rem 0; cursor: pointer; font-weight: 700; font-size: 1.05rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "Q"; flex: none; width: 2em; height: 2em; display: grid; place-items: center;
  border: 2px solid var(--steel); color: var(--steel); border-radius: 50%; font-size: .9rem; margin-top: .05em;
}
.faq summary::after {
  content: ""; margin-left: auto; flex: none; width: .6em; height: .6em; margin-top: .6em;
  border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2);
  transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: .9em; }
.faq .answer { padding: 0 0 1.25rem calc(2em + 1rem + .05em); color: var(--ink-2); max-width: 48em; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* ---------- 導入事例 ---------- */
.case { display: grid; gap: 1.5rem; padding-block: 2.5rem; border-top: 1px solid var(--rule); }
.case:first-of-type { border-top: 0; }
@media (min-width: 900px) { .case { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 3rem; } }
.case-meta { display: grid; gap: 1rem; align-content: start; }
.case-meta h3 { font-size: 1.5rem; }
.case-meta dl { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin: 0; font-size: .95rem; }
.case-meta dt { color: var(--ink-2); }
.case-meta dd { margin: 0; }
.case-plate {
  aspect-ratio: 16 / 9; border-radius: var(--radius-s); overflow: hidden;
  border: 1px solid var(--rule);
}
.case-plate svg { width: 100%; height: 100%; }
.case-body { display: grid; gap: 1.5rem; }
.case-body h4 { font-size: 1.05rem; padding-bottom: .35rem; border-bottom: 2px solid var(--rule-strong); margin-bottom: .6rem; display: inline-block; }
.case-body p { color: var(--ink-2); max-width: 44em; }
.case-results { display: grid; gap: 1rem; }
@media (min-width: 560px) { .case-results { grid-template-columns: repeat(3, 1fr); } }
.case-results li { border-top: 2px solid var(--steel); padding-top: .6rem; }
.case-results .t-num { font-size: 1.9rem; }
.case-results span { display: block; font-size: .9rem; color: var(--ink-2); }
.case-voice {
  border-left: 4px solid var(--shu); padding: .25rem 0 .25rem 1.25rem; margin: 0;
}
.case-voice p { color: var(--ink); }
.case-voice footer { font-size: .9rem; color: var(--ink-2); margin-top: .5rem; }

/* 折れ線グラフ(自前SVG) */
.chart-wrap {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m);
  padding: clamp(1rem, 3vw, 2rem);
}
.chart-wrap figcaption { display: grid; gap: .25rem; margin-bottom: 1.25rem; }
.chart-wrap figcaption b { font-size: 1.15rem; }
.chart-wrap figcaption span { color: var(--ink-2); font-size: .95rem; }
.chart-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.chart { width: 100%; min-width: 560px; height: auto; }
.chart-hint { display: none; font-size: .85rem; color: var(--ink-2); margin-bottom: .5rem; }
@media (max-width: 639px) { .chart-hint { display: block; } }
.chart .grid { stroke: var(--rule); stroke-width: 1; fill: none; }
.chart .axis { stroke: var(--rule-strong); stroke-width: 1.5; fill: none; }
.chart .lbl { fill: var(--ink-2); font-size: 12px; font-family: inherit; }
.chart .lbl-strong { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: inherit; }
.chart .line { fill: none; stroke: var(--steel); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--steel-tint); stroke: none; }
.chart .dot { fill: var(--sheet); stroke: var(--steel); stroke-width: 2.5; }
.chart .dot-shu { fill: var(--shu); stroke: var(--shu); }
.chart .marker { stroke: var(--shu); stroke-width: 1.5; stroke-dasharray: 4 4; fill: none; }
.chart .marker-lbl { fill: var(--shu); font-size: 12px; font-weight: 700; font-family: inherit; }
.chart .val { fill: var(--ink); font-size: 11px; font-family: inherit; font-weight: 700; }
.chart-legend { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; margin-top: 1rem; font-size: .9rem; color: var(--ink-2); }
.chart-legend span::before { content: ""; display: inline-block; width: 1.4em; height: 3px; background: var(--steel); vertical-align: middle; margin-right: .5em; }
.chart-legend span.is-shu::before { background: none; border-top: 2px dashed var(--shu); height: 0; }
.chart-table { margin-top: 1.5rem; overflow-x: auto; }
.chart-table table { font-size: .9rem; min-width: 560px; }
.chart-table th, .chart-table td { padding: .4rem .5rem; border-bottom: 1px solid var(--rule); text-align: right; font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.chart-table summary { cursor: pointer; font-weight: 700; color: var(--steel); padding: .5rem 0; }

/* ---------- 問い合わせ ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: 4rem; align-items: start; } }
.form {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m);
  padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid; gap: 1.5rem;
}
.field { display: grid; gap: .4rem; }
.field label, .field legend { font-weight: 700; }
.field .req { color: var(--shu); font-size: .85rem; margin-left: .4em; font-weight: 700; }
.field .help { font-size: .875rem; color: var(--ink-2); }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: .65em .8em; min-height: 48px;
  background: var(--paper); border: 1px solid var(--ink-2); border-radius: var(--radius-s);
}
.field textarea { min-height: 8em; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 1.2em) 50%, calc(100% - .8em) 50%;
  background-size: .4em .4em; background-repeat: no-repeat; padding-right: 2.5em;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--steel);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--shu); border-width: 2px; }
.field .error { color: var(--shu); font-size: .9rem; font-weight: 700; }
.field .error:empty { display: none; }
.field-check { display: flex; align-items: flex-start; gap: .75rem; }
.field-check input { width: 22px; height: 22px; margin-top: .2em; flex: none; accent-color: var(--steel); }
.field-check label { font-weight: 400; }
.form-row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-summary {
  border: 2px solid var(--shu); background: var(--shu-tint); padding: 1rem 1.25rem; border-radius: var(--radius-s);
  color: var(--ink);
}
.form-summary[hidden] { display: none; }
.form-summary ul { margin-top: .5rem; list-style: disc; padding-left: 1.25em; }
.form-summary a { color: var(--shu); font-weight: 700; }

.form-done {
  background: var(--sheet); border: 1px solid var(--rule); border-radius: var(--radius-m);
  padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; justify-items: start;
}
.form-done[hidden] { display: none; }
.form-done .stamp { width: 72px; height: 72px; font-size: 1.25rem; animation: none; opacity: 1; }
.form-done p { color: var(--ink-2); max-width: var(--measure); }
.form-done dl { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; margin: 0; padding: 1rem; background: var(--paper); border-radius: var(--radius-s); width: 100%; }
.form-done dt { color: var(--ink-2); }
.form-done dd { margin: 0; }

.contact-side { display: grid; gap: 2rem; }
.contact-side h2 { font-size: 1.15rem; padding-bottom: .4rem; border-bottom: 2px solid var(--rule-strong); margin-bottom: .75rem; }
.contact-side ol { counter-reset: step; display: grid; gap: .75rem; }
.contact-side ol li { display: grid; grid-template-columns: 2em 1fr; gap: .5rem; align-items: start; }
.contact-side ol li::before {
  counter-increment: step; content: counter(step);
  width: 1.7em; height: 1.7em; display: grid; place-items: center;
  border: 2px solid var(--steel); border-radius: 50%; color: var(--steel); font-weight: 700; font-size: .85rem; margin-top: .2em;
}
.contact-side p, .contact-side li { color: var(--ink-2); }
.contact-side li b { color: var(--ink); display: block; }
.contact-side address { font-style: normal; color: var(--ink-2); }
