/* =========================================================
   日本データ破壊管理協会 — design system
   Tokens → base → layout → components → page sections
   ========================================================= */

:root {
  --ink: #13233b;        /* 藍墨: headings, primary text */
  --ink-2: #33445c;      /* body text */
  --mute: #5b687a;       /* secondary text (AA on white) */
  --line: #d6dce4;       /* hairlines */
  --line-2: #e8ecf1;
  --bg: #ffffff;
  --bg-alt: #f2f4f7;     /* section band */
  --bg-ink: #13233b;
  --teal: #0c6a5a;       /* action colour */
  --teal-d: #08503f;
  --teal-l: #e5f1ee;
  --seal: #b3261e;       /* 朱肉: certificate seal & required marks only */
  --focus: #e3a008;

  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-lead: 1.0625rem;
  --fs-h4: 1.0625rem;
  --fs-h3: 1.1875rem;
  --fs-h2: clamp(1.375rem, 1.1rem + 1.1vw, 1.875rem);
  --fs-h1: clamp(1.625rem, 1.15rem + 2.2vw, 2.625rem);

  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.5rem; --space-6: 2rem; --space-7: 3rem; --space-8: 4.5rem;
  --radius: 6px;
  --container: 1120px;
  --measure: 42rem;      /* ~40 全角 characters per line */
  --header-h: 64px;
  --bar-h: 0px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (max-width: 68.6875em) { html { scroll-padding-bottom: calc(80px + (1rem - 16px) * 6 + env(safe-area-inset-bottom)); } } /* 文字を大きくした環境では固定バーも高くなるので、その分を足す（既定16pxでは0） */
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font); font-size: var(--fs-base); line-height: 1.85; letter-spacing: .02em;
  font-feature-settings: "palt" 0; overflow-wrap: anywhere; word-break: normal; line-break: strict;
  padding-bottom: var(--bar-h);
}
img, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.45; font-weight: 700; margin: 0; letter-spacing: .03em; }
p { margin: 0 0 1em; }
a { color: var(--teal); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--teal-d); text-decoration-thickness: 2px; }
strong { color: var(--ink); font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; box-shadow: 0 0 0 2px var(--ink); } /* 内側の濃紺の線で白地でも3:1以上 */
.num, .price, .tel-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.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: 8px; transform: translateY(calc(-100% - 16px)); z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { transform: none; color: #fff; } /* 文字を大きくしても上端に見えないよう、高さに関係なく隠す */

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.site-header .container { max-width: max(var(--container), 70rem); } /* 文字を大きくした環境でヘッダーがはみ出さないように（既定16pxでは同じ 1120px） */
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.4em; border-radius: var(--radius);
  font-weight: 700; font-size: 1rem; line-height: 1.3; text-decoration: none; letter-spacing: .04em;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-d); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost-light { color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; flex: none; }
.brand svg { width: 30px; height: 33px; flex: none; }
.brand-name { font-weight: 700; font-size: 1rem; letter-spacing: .06em; line-height: 1.2; }
/* 既定16pxでは320px以上で今までどおり1行。文字を大きくした環境（幅が20em未満）では社名を折り返し、ロゴの幅を縮められるようにする */
@media (min-width: 20em) { .brand-name { white-space: nowrap; } }
@media (max-width: 19.9375em) { .brand { flex: 0 1 auto; } }
.brand-sub { display: block; font-size: .6875rem; color: var(--mute); font-weight: 400; letter-spacing: .04em; }
.global-nav { display: none; }
.global-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.global-nav a { display: block; white-space: nowrap; padding: 8px 10px; color: var(--ink); text-decoration: none; font-size: .9375rem; font-weight: 600; border-radius: 4px; }
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--bg-alt); color: var(--ink); }
.global-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--teal); border-radius: 0; background: none; }
.global-nav a[aria-current="page"]:focus-visible { box-shadow: inset 0 -2px 0 var(--teal), 0 0 0 2px var(--ink); }
.header-tel { display: none; text-decoration: none; color: var(--ink); line-height: 1.2; text-align: right; }
.header-tel .tel-num { display: block; font-weight: 700; font-size: 1.125rem; letter-spacing: .04em; }
.header-tel small { font-size: .6875rem; color: var(--mute); }
.header-cta { display: none; }
.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; margin-right: -8px;
  background: none; border: 0; color: var(--ink); cursor: pointer; border-radius: var(--radius);
}
.nav-toggle svg { width: 26px; height: 26px; }
html:not(.js) .nav-toggle { display: none; } /* JS無効時は開閉できないので出さない（主要リンクはフッターにある） */
.nav-toggle .i-close { display: none; }
.nav-toggle[aria-expanded="true"] .i-open { display: none; }
.nav-toggle[aria-expanded="true"] .i-close { display: block; }
.mobile-nav { border-top: 1px solid var(--line); background: #fff; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { list-style: none; margin: 0; padding: 8px 20px; }
.mobile-nav li + li { border-top: 1px solid var(--line-2); }
.mobile-nav a { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-weight: 600; }
.mobile-nav .mobile-nav-cta { padding: 12px 20px 24px; display: grid; gap: 10px; }
/* ヘッダーの切り替え幅は em（既定16pxで 1100px＝68.75em、1399px＝87.4375em、1280px＝80em）。文字を大きくした環境ではスマホ型のメニューになる */
@media (min-width: 68.75em) {
  .global-nav { display: block; }
  .header-cta { display: inline-flex; min-height: 44px; padding: .55em 1.1em; font-size: .9375rem; }
  .nav-toggle, .mobile-nav { display: none !important; }
  .header-cta { white-space: nowrap; }
}
@media (min-width: 68.75em) and (max-width: 87.4375em) { .site-header .brand-sub { display: none; } .global-nav a { padding: 8px 8px; font-size: .875rem; } .header-inner { gap: 12px; } }
@media (min-width: 80em) { .header-tel { display: block; white-space: nowrap; } }

/* mobile action bar */
.action-bar {
  position: fixed; inset: auto 0 0 0; z-index: 40; display: grid; grid-template-columns: 1fr 1fr;
  background: #fff; border-top: 1px solid var(--line); padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
  gap: 8px;
}
.action-bar .btn { min-height: 48px; padding: .5em .5em; font-size: .9375rem; }
@media (max-width: 359px) {
  .action-bar { gap: 6px; padding-inline: 8px; }
  .action-bar .btn { letter-spacing: 0; gap: .3em; padding-inline: .25em; }
}
body.has-bar { --bar-h: calc(64px + (1rem - 16px) * 6 + env(safe-area-inset-bottom)); }
.action-bar { transition: transform .25s ease, visibility .25s; }
body.bar-hidden .action-bar { transform: translateY(110%); visibility: hidden; }
@media (prefers-reduced-motion: reduce) { .action-bar { transition: none; } }
@media (min-width: 68.75em) { .action-bar { display: none; } body.has-bar { --bar-h: 0px; } }

/* ---------- breadcrumb ---------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--mute); padding-block: 14px; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px 0; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin: 0 .6em; color: var(--line); }
.breadcrumb a { color: var(--mute); }

/* ---------- section scaffolding ---------- */
.band { padding-block: var(--space-7); }
@media (min-width: 768px) { .band { padding-block: var(--space-8); } }
.band-alt { background: var(--bg-alt); }
.band-ink { background: var(--bg-ink); color: #d9e0ea; }
.band-ink h2, .band-ink h3, .band-ink strong { color: #fff; }
.band-ink a:not(.btn) { color: #9fe1d2; }
.band-head { max-width: var(--measure); margin-bottom: var(--space-6); }
.band-head h2 { font-size: var(--fs-h2); margin-bottom: .6em; }
.band-head p { color: var(--mute); margin: 0; }
.band-ink .band-head p { color: #b8c3d1; }
.band-head.center { margin-inline: auto; text-align: center; }

/* ---------- page header (lower pages) ---------- */
.page-head { border-bottom: 1px solid var(--line); background: linear-gradient(var(--bg-alt), var(--bg-alt)) top / 100% 100% no-repeat; }
.page-head .container { padding-top: var(--space-4); padding-bottom: var(--space-6); }
.page-head h1 { font-size: var(--fs-h1); max-width: 22em; }
.page-head .lead { font-size: var(--fs-lead); color: var(--ink-2); max-width: var(--measure); margin: 1em 0 0; }
.page-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 1.1em 0 0; padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--mute); }
.page-meta li { display: inline-flex; align-items: center; gap: 6px; }
.page-meta svg { width: 16px; height: 16px; color: var(--teal); }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--teal-d); background: var(--teal-l); padding: 2px 10px; border-radius: 3px; letter-spacing: .05em; }

/* ---------- article layout ---------- */
.article-layout { display: grid; gap: var(--space-6); padding-block: var(--space-6) var(--space-7); }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; }
}
.article-hero { margin: 0 0 var(--space-6); }
.article-hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); background: var(--bg-alt); }

.toc { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: .9375rem; }
.toc summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--ink); list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 48px; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); margin-top: -4px; }
.toc[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.toc ol { margin: 0; padding: 0 18px 16px 2.4em; }
.toc li { margin: .35em 0; line-height: 1.55; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--teal); text-decoration: underline; }
.toc-mobile { margin-bottom: var(--space-6); }
.sidebar { display: none; }
@media (min-width: 1024px) {
  .toc-mobile { display: none; }
  /* 画面より高いときはサイドバーの中でスクロール。padding/margin はフォーカス枠（3px＋間隔2px）が切れないための余白で、位置は変わらない */
  .sidebar { display: block; position: sticky; top: calc(var(--header-h) + 24px - 6px);
    max-height: calc(100vh - var(--header-h) - 48px + 12px); overflow-y: auto; padding: 6px; margin: -6px; }
  .sidebar .side-cta { margin-top: 20px; }
}
.side-cta { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg-alt); }
.side-cta p { font-size: var(--fs-sm); margin-bottom: .8em; }
.side-cta .tel { display: block; font-weight: 700; font-size: 1.25rem; color: var(--ink); text-decoration: none; margin-bottom: 4px; }
.side-cta .btn { width: 100%; min-height: 44px; font-size: .9375rem; }

/* prose */
.prose { max-width: 46rem; min-width: 0; }
.prose > section { margin-bottom: var(--space-7); }
.prose h2 { font-size: var(--fs-h2); padding-top: .2em; margin: 0 0 .9em; padding-bottom: .5em; border-bottom: 2px solid var(--ink); }
.prose h3 { font-size: var(--fs-h3); margin: 1.8em 0 .6em; }
.prose h4 { font-size: var(--fs-h4); margin: 1.4em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--teal); }
.li-title { display: block; color: var(--ink); }
.prose figure { margin: 1.6em 0; }
.prose figure img { border-radius: var(--radius); width: 100%; }
.prose figcaption { font-size: var(--fs-sm); color: var(--mute); margin-top: .5em; }

.article-intro { border: 1px solid var(--line); border-left: 4px solid var(--ink); border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 20px 6px; margin: 0 0 var(--space-6); background: #fff; }
.article-intro p { margin-bottom: .9em; }

/* tables */
.table-wrap { overflow-x: auto; margin: 1.4em 0 1.8em; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.7; min-width: 560px; }
.table-wrap th, .table-wrap td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); text-align: left; vertical-align: top; }
.table-wrap thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; }
.table-wrap tbody th { background: var(--bg-alt); color: var(--ink); font-weight: 700; min-width: 7em; }
.table-wrap tr:last-child > * { border-bottom: 0; }
.table-wrap.wide table { min-width: 760px; }
.scroll-hint { font-size: .75rem; color: var(--mute); margin: 1.2em 0 -1em; }


/* cards (parallel items only) */
.cards { display: grid; gap: 14px; margin: 1.4em 0 1.8em; }
@media (min-width: 640px) { .cards.cols-2, .cards.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .band .cards.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; background: #fff; }
.card h3 { font-size: 1.0625rem; margin: 0 0 .5em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { font-size: .9375rem; }

/* sequences */
.steps { list-style: none; padding: 0 !important; margin: 1.4em 0 1.8em; counter-reset: step; }
.steps > li { position: relative; padding: 0 0 1.4em 3.25rem; margin: 0; counter-increment: step; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-variant-numeric: tabular-nums; line-height: 1;
}
.steps > li::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.5rem; bottom: .3rem; width: 2px; background: var(--line); }
.steps > li:last-child::after { display: none; }
.steps .step-title { font-size: 1.0625rem; margin: .25em 0 .35em !important; }
.steps p { margin-bottom: .4em; }

/* checklist */
.checklist { list-style: none; padding: 0 !important; margin: 1.4em 0; border: 1px solid var(--line); border-radius: var(--radius); }
.checklist > li { position: relative; padding: 14px 16px 14px 48px; margin: 0 !important; }
.checklist > li + li { border-top: 1px solid var(--line-2); }
.checklist > li::before { content: ""; position: absolute; left: 16px; top: 19px; width: 18px; height: 18px; border: 2px solid var(--teal); border-radius: 3px; }
.checklist > li::after { content: ""; position: absolute; left: 22px; top: 21px; width: 6px; height: 11px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg); }
.checklist p { margin: .2em 0 0; font-size: .9375rem; }

.note { border-left: 4px solid var(--teal); background: var(--teal-l); padding: 14px 18px; margin: 1.4em 0; border-radius: 0 var(--radius) var(--radius) 0; }
.note p:last-child { margin: 0; }
.deflist { display: grid; grid-template-columns: 1fr; margin: 1em 0 1.6em; border-top: 1px solid var(--line); }
.deflist dt { font-weight: 700; color: var(--ink); padding: 12px 0 0; }
.deflist dd { margin: 0; padding: 2px 0 12px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .deflist { grid-template-columns: 11em 1fr; }
  .deflist dt { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
  .deflist dd { padding: 14px 0; }
}

/* links */
.more-links { list-style: none; padding: 0 !important; margin: 1em 0 1.6em; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.more-links a { font-weight: 600; }
.more-links a::before { content: ""; display: inline-block; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); margin: 0 .55em .12em 0; }
.linkcards { list-style: none; padding: 0 !important; margin: 1em 0 1.6em; display: grid; gap: 10px; }
@media (min-width: 640px) { .linkcards { grid-template-columns: repeat(2, 1fr); } }
.linkcards li { margin: 0 !important; }
.linkcard { display: block; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink-2); background: #fff; }
.linkcard:hover { border-color: var(--teal); color: var(--ink-2); }
.lc-title { display: block; color: var(--ink); font-weight: 700; line-height: 1.55; }
.linkcard:hover .lc-title { color: var(--teal); text-decoration: underline; }
.lc-desc { display: block; font-size: .8125rem; color: var(--mute); margin-top: 4px; line-height: 1.6; }
.lc-meta { display: block; font-size: .75rem; color: var(--mute); margin-bottom: 4px; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq-group + .faq-group { margin-top: var(--space-6); }
.faq-group h3 { font-size: 1rem; color: var(--mute); margin: 0 0 .6em; font-weight: 700; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  cursor: pointer; list-style: none; position: relative; padding: 16px 40px 16px 2.2em; font-weight: 700; color: var(--ink); line-height: 1.6;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; position: absolute; left: 0; top: 16px; color: var(--teal); font-weight: 700; }
.faq-item summary::after { content: ""; position: absolute; right: 8px; top: 24px; width: 9px; height: 9px; border-right: 2px solid var(--mute); border-bottom: 2px solid var(--mute); transform: rotate(45deg); }
.faq-item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq-a { padding: 0 0 18px 2.2em; position: relative; }
.faq-a::before { content: "A"; position: absolute; left: 0; top: 0; color: var(--seal); font-weight: 700; }
.faq-a p { margin: 0 0 .6em; }
.faq-a p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: #d9e0ea; padding-block: var(--space-7); }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); margin-bottom: .6em; }
.band-ink strong, .cta-band strong { color: #fff; } /* 濃い帯の太字（.cta-band は .band-ink ではないため個別に指定） */
.cta-band p { max-width: var(--measure); }
.cta-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 900px) { .cta-grid { grid-template-columns: 1.3fr 1fr; gap: var(--space-7); } }
.cta-actions { display: grid; gap: 12px; }
.cta-tel { display: block; text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: var(--radius); padding: 12px 18px; }
.cta-tel:hover { color: #fff; border-color: #fff; }
.cta-tel .tel-num { font-size: 1.75rem; font-weight: 700; letter-spacing: .04em; display: flex; align-items: center; gap: 10px; line-height: 1.3; }
.cta-tel .tel-num svg { width: 26px; height: 26px; }
.cta-tel small { color: #b8c3d1; font-size: .8125rem; }
.cta-points { list-style: none; padding: 0; margin: 1em 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .875rem; color: #c9d2de; }
.cta-points li::before { content: "✓"; color: #7fd3c1; margin-right: .4em; }

/* ---------- forms ---------- */
.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
@media (min-width: 768px) { .form-panel { padding: 32px; } }
.form-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .form-grid .half { grid-column: span 1; } .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field .label { display: block; font-weight: 700; color: var(--ink); font-size: .9375rem; margin-bottom: 6px; }
.req { color: var(--seal); font-size: .75rem; font-weight: 700; margin-left: .5em; }
.opt { color: var(--mute); font-size: .75rem; font-weight: 400; margin-left: .5em; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: #fff; border: 1px solid #9aa6b5; border-radius: 4px; padding: 11px 12px; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 0; border-color: var(--ink); }
.field .hint { font-size: .8125rem; color: var(--mute); margin: 4px 0 0; }
.field .error { font-size: .8125rem; color: var(--seal); margin: 6px 0 0; font-weight: 600; }
.field [aria-invalid="true"] { border-color: var(--seal); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; }
.consent input { width: 22px; height: 22px; margin-top: 3px; flex: none; accent-color: var(--teal); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-weight: 700; }
.form-status.is-error { color: var(--seal); }
.form-foot { font-size: .8125rem; color: var(--mute); margin: 12px 0 0; }

/* ---------- footer ---------- */
.site-footer { background: #0e1a2d; color: #b8c3d1; font-size: .875rem; padding-block: var(--space-7) var(--space-5); }
.site-footer a { color: #d9e0ea; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-top { display: grid; gap: var(--space-6); }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.2fr 2fr; gap: var(--space-7); } }
.footer-brand .brand { color: #fff; margin-bottom: 14px; }
.footer-brand .brand-sub { color: #93a1b4; }
.footer-brand p { margin: 0 0 .4em; }
.footer-brand .tel-num { font-size: 1.375rem; font-weight: 700; color: #fff; }
.footer-cols { display: grid; gap: var(--space-5); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .footer-cols { grid-template-columns: repeat(4, 1fr); } }
.footer-cols h2 { color: #fff; font-size: .875rem; margin-bottom: .8em; letter-spacing: .06em; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { margin: 0 0 .55em; line-height: 1.55; }
.footer-legal { border-top: 1px solid #22324a; margin-top: var(--space-6); padding-top: var(--space-5); display: grid; gap: 10px; font-size: .8125rem; color: #93a1b4; }
@media (min-width: 900px) { .footer-legal { grid-template-columns: 1fr auto; align-items: end; } }
.footer-legal p { margin: 0; }

/* =========================================================
   Home
   ========================================================= */
.hero { position: relative; overflow: hidden; padding-block: 0 48px; border-bottom: 1px solid var(--line); background:
  linear-gradient(90deg, var(--bg-alt) 0 1px, transparent 1px) 0 0 / 28px 28px,
  linear-gradient(var(--bg-alt) 0 1px, #fff 1px) 0 0 / 28px 28px; }
.hero > .container { position: relative; z-index: 2; padding-top: 20px; }
@media (min-width: 640px) { .hero > .container { padding-top: 28px; } }
.hero-grid { display: grid; gap: 40px; align-items: center; }
/* 写真：スマホ・タブレットは文字の上に別ブロックで置き、重ねない */
.hero-media { display: block; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 50%; background: #eef0f2; }
@media (min-width: 640px) { .hero-media img { aspect-ratio: 16 / 9; object-position: 100% 50%; } }
/* PC（1200px以上）：写真を背景いっぱいに敷き、左の文字の下だけ薄い白のグラデーションを入れる。
   写真は高さいっぱいで右寄せにし、人物の表情と破壊機の全体が切れないようにする */
@media (min-width: 1200px) {
  .hero { --hero-x: max(32px, calc((100vw - var(--container)) / 2 + 32px));
    display: flex; align-items: center; min-height: 640px; padding-block: 72px 80px; }
  .hero > .container { padding-top: 0; }
  .hero-media { position: absolute; inset: 0; z-index: 0; }
  .hero-media img { position: absolute; top: 0; right: 0; width: auto; height: 100%; max-width: none; aspect-ratio: auto;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
  .hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(255,255,255,.9) 0, rgba(255,255,255,.9) calc(var(--hero-x) + 400px), rgba(255,255,255,0) calc(var(--hero-x) + 560px)); }
  .hero-grid { grid-template-columns: minmax(0, 540px); }
  /* 「古物商許可取得済」など、写真に重なる下の4項目の読みやすさ（02 D-26）：文字の周りだけを白くぼかす。写真のない白い部分では見た目は変わらない */
  .hero-facts b, .hero-facts span { text-shadow: 0 0 1px #fff, 0 0 3px #fff, 0 0 5px #fff, 0 0 8px #fff, 0 0 12px #fff, 0 0 16px #fff; }
}
.hero-kicker { font-size: .9375rem; color: var(--mute); margin-bottom: 1em; }
.hero h1 { font-size: clamp(1.75rem, 1.1rem + 3vw, 3.125rem); line-height: 1.32; letter-spacing: .04em; }
.hero h1 .line { display: block; white-space: nowrap; }
/* キャッチコピー（2026-11-03）：1行目「HDD・SSDの物理破壊は、」が1行に収まる大きさにし、「HDD・SSDの物理破壊」を色で強調する */
.hero h1 .line { font-size: clamp(1.25rem, calc((100vw - 40px) / 12.5), 2.6875rem); }
.hero h1 .hero-key { font-size: clamp(1rem, calc((100vw - 40px) / 12.5 * .82), 2.2rem); }
.hero h1 .hero-key-em { font-size: 1.22em; color: var(--teal); }
.hero h1 .hero-sub { display: block; font-size: clamp(.9375rem, .85rem + .4vw, 1.0625rem); color: var(--mute); font-weight: 600; letter-spacing: .04em; line-height: 1.6; margin-bottom: .9em; white-space: normal; }
.hero .lead { font-size: 1.0625rem; margin: 1.2em 0 1.6em; max-width: 30em; color: var(--ink-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-width: 220px; }
@media (max-width: 479px) { .hero-actions .btn { width: 100%; } }
.hero-facts { list-style: none; margin: 28px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 20px; }
@media (min-width: 640px) { .hero-facts { grid-template-columns: repeat(4, auto); } }
.hero-facts li { line-height: 1.4; }
.hero-facts b { display: block; color: var(--ink); font-size: 1rem; }
.hero-facts span { font-size: .8125rem; color: var(--mute); }

/* 証明書セクション（HERO直下）：左に説明と実機写真、右に記載見本。スマホは 説明→見本→実機写真 の順 */
.cert-grid { align-items: start; }
.cert-machine { margin: var(--space-5) 0 0; }
.cert-machine img { border-radius: var(--radius); }
.cert-machine figcaption { font-size: .8125rem; color: var(--mute); margin-top: .5em; }
@media (max-width: 899px) {
  .cert-grid > div:first-child { display: contents; }
  .cert-grid .checklist { order: 1; margin: 0; }
  .cert-grid .cert-sample { order: 2; }
  .cert-grid .cert-machine { order: 3; margin: 0; }
}
/* 見本（高さ約470px）が画面に収まる高さのときだけ追従させる */
@media (min-width: 900px) and (min-height: 620px) { .cert-sample { position: sticky; top: calc(var(--header-h) + 24px); } }

/* the certificate ledger — signature element */
.ledger { margin: 0;
  position: relative; background: #fff; border: 1px solid #c9d1dc; border-radius: 4px; padding: 26px 22px 22px;
  box-shadow: 0 1px 0 #c9d1dc, 0 18px 40px -28px rgba(19,35,59,.45);
}
.ledger::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--line-2); border-radius: 2px; pointer-events: none; }
.ledger-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; }
.ledger-title { font-weight: 700; color: var(--ink); font-size: 1.0625rem; letter-spacing: .08em; }
.ledger-sample { font-size: .75rem; color: var(--mute); border: 1px solid var(--line); padding: 0 6px; border-radius: 2px; white-space: nowrap; }
.ledger-meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; font-size: .8125rem; margin: 10px 0 12px; color: var(--ink-2); }
.ledger-meta dt { color: var(--mute); }
.ledger-meta dd { margin: 0; }
.ledger table { width: 100%; border-collapse: collapse; font-size: .8125rem; line-height: 1.5; }
.ledger th { text-align: left; font-weight: 600; color: var(--mute); border-bottom: 1px solid var(--line); padding: 6px 4px; font-size: .75rem; }
.ledger td { padding: 8px 4px; border-bottom: 1px dashed var(--line); color: var(--ink); }
.ledger td.sn { font-family: var(--mono); font-size: .8125rem; letter-spacing: 0; }
.ledger .ok { color: var(--teal-d); font-weight: 700; white-space: nowrap; }
.ledger-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 16px; gap: 12px; }
.ledger-foot p { margin: 0; font-size: .75rem; color: var(--mute); line-height: 1.6; }
.seal {
  flex: none; width: 92px; height: 92px; border-radius: 50%; border: 3px solid var(--seal); color: var(--seal);
  display: grid; place-items: center; text-align: center; font-weight: 700; line-height: 1.15; font-size: .9375rem; letter-spacing: .12em;
  transform: rotate(-12deg); position: relative; margin: -8px 4px 0 0;
}
.seal::before { content: ""; position: absolute; inset: 4px; border: 1px solid var(--seal); border-radius: 50%; }
@media (prefers-reduced-motion: no-preference) {
  .js .seal { animation: stamp .5s cubic-bezier(.2,.9,.3,1.3) .6s both; }
  @keyframes stamp { from { opacity: 0; transform: rotate(-12deg) scale(1.6); } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
}

/* problem list */
.concerns { list-style: none; padding: 0; margin: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .concerns { grid-template-columns: 1fr 1fr; } }
.concerns li { background: #fff; padding: 20px 22px; }
.concerns h3 { font-size: 1.0625rem; margin-bottom: .4em; }
.concerns p { margin: 0; font-size: .9375rem; color: var(--mute); }

/* service rows */
.service-rows { display: grid; gap: 0; border-top: 1px solid var(--line); }
.service-row { display: grid; gap: 8px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .service-row { grid-template-columns: 15em 1fr 14em; align-items: start; } }
.service-row h3 { font-size: 1.25rem; }
.service-row p { margin: 0; }
.service-row ul { list-style: none; margin: 0; padding: 0; font-size: .875rem; color: var(--mute); }
.service-row li::before { content: "—"; color: var(--teal); margin-right: .5em; }
.service-row .price { font-weight: 700; color: var(--ink); }

/* on-site process */
.onsite { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .onsite { grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: start; } }
.band-ink .steps > li::before { background: #fff; color: var(--ink); }
.band-ink .steps > li::after { background: #2f4260; }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; padding: 0; cursor: pointer; border-radius: var(--radius); overflow: hidden; background: #0b1626; color: #fff; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.video-facade .play { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; font-weight: 700; font-size: .9375rem; }
.video-facade .play i { width: 68px; height: 68px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.video-facade .play i::after { content: ""; border-left: 20px solid var(--ink); border-top: 12px solid transparent; border-bottom: 12px solid transparent; margin-left: 5px; }
.video-facade:hover .play i { background: var(--teal-l); }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }
.video-note { font-size: .8125rem; color: #b8c3d1; margin-top: 10px; }

/* price ledger */
.price-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.price-list li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.price-list .item { color: var(--ink); font-weight: 600; }
.price-list .item small { display: block; font-weight: 400; color: var(--mute); font-size: .8125rem; }
.price-list .dots { flex: 1; border-bottom: 2px dotted #b9c3cf; transform: translateY(-.35em); min-width: 1.5em; }
.price-list .price { font-weight: 700; color: var(--ink); white-space: nowrap; font-size: 1.125rem; }
.price-list .price small { font-size: .75rem; font-weight: 400; color: var(--mute); margin-left: 2px; }
.price-notes { font-size: .8125rem; color: var(--mute); margin-top: 14px; }
.price-grid { display: grid; gap: var(--space-6); }
@media (min-width: 1000px) { .price-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-7); } }
.estimate-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; }
.estimate-box h3 { font-size: 1.125rem; margin-bottom: .5em; }

/* areas */
.area-list { display: grid; gap: 14px; }
@media (min-width: 768px) { .area-list { grid-template-columns: 1fr 1fr; } }
.area-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; text-decoration: none; color: var(--ink-2); background: #fff; }
.area-card:hover { border-color: var(--teal); color: var(--ink-2); }
.area-card h3 { font-size: 1.25rem; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.area-card h3 span { font-size: .875rem; color: var(--teal); font-weight: 600; }
.area-card:hover h3 span { text-decoration: underline; }
.area-card p { margin: .5em 0 0; font-size: .9375rem; color: var(--mute); }
.chips { list-style: none; padding: 0 !important; margin: .8em 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { margin: 0 !important; font-size: .8125rem; border: 1px solid var(--line); border-radius: 3px; padding: 1px 8px; color: var(--ink-2); background: #fff; line-height: 1.7; }

.who-grid { display: grid; gap: var(--space-5); }
@media (min-width: 900px) { .who-grid { grid-template-columns: 1fr 1fr; } }
.who-grid h3 { font-size: 1.0625rem; margin-bottom: .6em; }

/* compare */
.compare th:nth-child(2), .compare td:nth-child(2) { background: var(--teal-l); }
.compare thead th:nth-child(2) { background: var(--teal); }

/* guide list */
.guide-cats { display: grid; gap: var(--space-6); }
.guide-cat h2 { font-size: 1.25rem; margin-bottom: .8em; padding-bottom: .4em; border-bottom: 2px solid var(--ink); }

/* sitemap page */
.sitemap-list { columns: 1; }
@media (min-width: 768px) { .sitemap-list { columns: 2; column-gap: 48px; } }
.sitemap-list section { break-inside: avoid; margin-bottom: var(--space-6); }
.sitemap-list h2 { font-size: 1.125rem; margin-bottom: .6em; }
.sitemap-list ul { margin: 0; padding-left: 1.2em; }

/* simple content page */
.page-body { padding-block: var(--space-6) var(--space-7); }

/* 404 / thanks */
.center-msg { text-align: center; padding-block: var(--space-8); }
.center-msg h1 { font-size: var(--fs-h1); margin-bottom: .6em; }
.center-msg p { max-width: 32em; margin-inline: auto; }
.center-msg .hero-actions { justify-content: center; margin-top: var(--space-5); }

/* map */
.map-frame { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .action-bar, .site-footer, .cta-band, .toc, .sidebar { display: none !important; }
  body { padding: 0; }
}

/* 下層ページのタイトル部分に写真を敷く（会社案内・対応エリア一覧・地域別4ページ。2026-11-02 B案）
   PC：写真を背景いっぱいに敷き、左側に濃紺のグラデーション＋白い文字。スマホ：写真を上、文字を下に分けて重ねない */
.page-head--photo { position: relative; overflow: hidden; }
.page-head--photo .ph-media { display: block; margin: 0; }
.page-head--photo .ph-media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--ph-pos, 50% 50%); }
.page-head--photo > .container { position: relative; z-index: 2; padding-top: 12px; }
/* タイトルは意味の切れ目（「・」の後・「（」の前）で折り返す。収まらない幅では区切りの中でも折り返す */
.page-head--photo h1 .ph-line, .page-head--photo h1 .ph-unit { display: inline-block; }
/* 実物と誤解されないよう、画像の隅に「イメージ画像」と表示（読み上げは alt の「（イメージ）」で伝える） */
.page-head--photo .ph-note { position: absolute; top: 8px; right: 8px; z-index: 3; padding: 2px 8px; border-radius: 4px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 12px; line-height: 1.6; letter-spacing: .04em; pointer-events: none; }
@media (min-width: 900px) { .page-head--photo .ph-note { top: auto; bottom: 12px; right: 16px; } }
.ph-company { --ph-pos: 50% 55%; }
.ph-area { --ph-pos: 50% 60%; }
.ph-service-areas { --ph-pos: 50% 80%; }
@media (min-width: 900px) {
  .page-head--photo { --hx: max(32px, calc((100vw - var(--container)) / 2 + 32px));
    display: flex; align-items: center; min-height: 440px; background: var(--bg-ink); border-bottom: 0; }
  .page-head--photo .ph-media { position: absolute; inset: 0; z-index: 0; }
  .page-head--photo .ph-media img { width: 100%; height: 100%; aspect-ratio: auto; }
  .page-head--photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background: linear-gradient(90deg, rgba(19,35,59,.94) 0, rgba(19,35,59,.9) calc(var(--hx) + 640px), rgba(19,35,59,.4) calc(var(--hx) + 960px), rgba(19,35,59,.15) 100%); }
  .page-head--photo > .container { width: 100%; padding-top: 56px; padding-bottom: 64px; }
  .page-head--photo h1 { color: #fff; max-width: none; text-shadow: 0 1px 12px rgba(0,0,0,.25); }
  .page-head--photo h1 .ph-line { display: block; }
  .page-head--photo .lead { color: #dde5ef; max-width: 34em; }
  .page-head--photo .btn-outline { color: #fff; border-color: rgba(255,255,255,.85); background: rgba(19,35,59,.25); }
  .page-head--photo .btn-outline:hover { background: #fff; color: var(--ink); }
}

.page-hero-img img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; border-radius: var(--radius); }
@media (max-width: 639px) { .page-hero-img img { aspect-ratio: 16 / 9; } }

/* ledger on narrow screens */
@media (max-width: 519px) {
  .ledger { padding: 20px 14px 16px; }
  .ledger-title { font-size: .9375rem; letter-spacing: .04em; }
  .ledger th:first-child, .ledger td:first-child { display: none; }
  .ledger td, .ledger th { white-space: nowrap; padding-inline: 3px; }
  .ledger td.sn { font-size: .75rem; }
  .seal { width: 76px; height: 76px; font-size: .8125rem; }
}
.band h3 + .chips { margin-bottom: 0; }
.chips + h3 { margin-top: 1.6em; }
.band .container > h3, .band h3:not(.step-title):not(.card h3) { margin-bottom: .2em; }
