/* ==========================================================================
   LightDoor 社外資料 共通スタイル
   社内資料サイト assets/site.css（lightdoor.jp から実測・2026-08-11）に準拠。

   ページ上部の斜め帯は【淡色1色 #F0F7F8】。グラデーションや2本目の帯を足さないこと。
   面（丸・カードなど塗りつぶす形）は1色。グラデーションは3px程度の細い線にだけ使う。
   ========================================================================== */

:root {
  --navy:        #233F89;
  --navy-deep:   #16295C;
  --blue-mid:    #3D87C8;
  --sky:         #52C6FF;
  --sky-pale:    #ADE9F1;
  --band:        #F0F7F8;
  --wash:        #D4F1F5;
  --wash-soft:   #E2F7F8;

  --ground:      #FFFFFF;
  --surface:     #F5FAFC;
  --surface-2:   #E9F4F8;
  --line:        #DCE8EF;
  --line-soft:   #EAF2F6;

  --ink:         #14203F;
  --body:        #384357;
  --muted:       #6A7789;

  --on-navy:     #FFFFFF;
  --accent-weak: #EAF4FE;
  --answer:      #2C6FA8;   /* 問答の「A.」。白地で読める濃さにした青 */

  --warn:        #8A5A00;
  --warn-weak:   #FFF7E6;

  --grad: linear-gradient(100deg, var(--navy) 0%, var(--blue-mid) 52%, var(--sky) 100%);

  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "Hiragino Kaku Gothic ProN", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;

  --t-1: .8rem;
  --t0:  1rem;
  --t1:  1.09rem;
  --t2:  1.32rem;
  --t3:  1.66rem;
  --t4:  2.35rem;

  --shadow: 0 1px 2px rgba(35, 63, 137, .05), 0 16px 38px -26px rgba(35, 63, 137, .40);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --navy:        #7FA6F0;
    --navy-deep:   #0A1124;
    --blue-mid:    #4E90D6;
    --sky:         #52C6FF;
    --sky-pale:    #1D3A56;
    --band:        #141D35;
    --wash:        #101B33;
    --wash-soft:   #0C1426;

    --ground:      #0A1124;
    --surface:     #111A31;
    --surface-2:   #17223D;
    --line:        #26324F;
    --line-soft:   #1C263F;

    --ink:         #E9EFFB;
    --body:        #BFC9DD;
    --muted:       #8794AC;

    --on-navy:     #0A1124;
    --accent-weak: #14203C;
    --answer:      #7FC6FF;

    --warn:        #E8B95F;
    --warn-weak:   #241D0E;

    --shadow: 0 1px 2px rgba(0, 0, 0, .34), 0 16px 38px -26px rgba(0, 0, 0, .8);
  }
}

:root[data-theme="dark"] {
  --navy:        #7FA6F0;
  --navy-deep:   #0A1124;
  --blue-mid:    #4E90D6;
  --sky:         #52C6FF;
  --sky-pale:    #1D3A56;
  --band:        #141D35;
  --wash:        #101B33;
  --wash-soft:   #0C1426;

  --ground:      #0A1124;
  --surface:     #111A31;
  --surface-2:   #17223D;
  --line:        #26324F;
  --line-soft:   #1C263F;

  --ink:         #E9EFFB;
  --body:        #BFC9DD;
  --muted:       #8794AC;

  --on-navy:     #0A1124;
  --accent-weak: #14203C;
  --answer:      #7FC6FF;

  --warn:        #E8B95F;
  --warn-weak:   #241D0E;

  --shadow: 0 1px 2px rgba(0, 0, 0, .34), 0 16px 38px -26px rgba(0, 0, 0, .8);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--body);
  font-family: var(--sans);
  font-size: var(--t0);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;

  /* 日本語の折り返し。既定では文字単位で切れて読点や助詞が行頭に来る。
     auto-phrase は文節の切れ目で折り返す（要 lang="ja"。未対応ブラウザは normal に落ちる）。
     pretty は行末の1文字残りを減らす。 */
  word-break: auto-phrase;
  text-wrap: pretty;
}

/* ---------- ブランドの斜め帯 ---------- */

.hero {
  position: relative;
  background: var(--band);
  padding-bottom: 2.8rem;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 2.8rem), 0 100%);
}

.hero > .inner { position: relative; z-index: 1; }

/* ---------- ロゴ ---------- */

.brand { display: inline-block; line-height: 0; text-decoration: none; }

.brand-logo {
  display: block;
  width: 11.9rem;
  height: 1.97rem;
  background-image: url("/assets/logo.png");
  background-repeat: no-repeat;
  background-position: left center;
  background-size: contain;
}

@media (max-width: 560px) {
  .brand-logo { width: 9.7rem; height: 1.6rem; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .brand-logo { background-image: url("/assets/logo-dark.png"); }
}

:root[data-theme="dark"] .brand-logo { background-image: url("/assets/logo-dark.png"); }

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

.eyebrow {
  font-family: var(--mono);
  font-size: var(--t-1);
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* ---------- 版面 ---------- */

.hero .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(2.4rem, 6vw, 3.6rem) clamp(1.1rem, 4vw, 2.6rem) clamp(2rem, 5vw, 2.8rem);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
}

.hero h1 {
  font-size: var(--t4);
  line-height: 1.34;
  font-weight: 700;
  letter-spacing: .01em;
  color: var(--ink);
  margin: 0;
  max-width: 22ch;
  text-wrap: balance;
}

.hero .lede { max-width: 62ch; margin: 0; color: var(--muted); }

.page { max-width: 1180px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.6rem); }

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.5rem;
  font-family: var(--mono);
  font-size: var(--t-1);
  color: var(--muted);
  letter-spacing: .04em;
}

/* ---------- 本体＋目次 ---------- */

.shell { display: grid; grid-template-columns: 1fr; gap: 2.6rem; padding: 2.8rem 0 5rem; }

@media (min-width: 1000px) {
  .shell { grid-template-columns: 216px minmax(0, 1fr); gap: 4.2rem; align-items: start; }
}

.toc { font-size: var(--t-1); line-height: 1.65; }

.toc h2 {
  font-family: var(--mono);
  font-size: var(--t-1);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 .9rem;
  padding-bottom: .65rem;
  border-bottom: 1px solid var(--line);
}

.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }

.toc a {
  display: block;
  padding: .44rem .5rem .44rem .8rem;
  text-decoration: none;
  color: var(--muted);
  border-left: 2px solid transparent;
  transition: color .15s, border-color .15s;
}

.toc a:hover { color: var(--ink); }
.toc a[aria-current="true"] { color: var(--navy); border-left-color: var(--sky); font-weight: 700; }
.toc a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

.toc-toggle { display: none; }

@media (min-width: 1000px) {
  .toc { position: sticky; top: 1.4rem; }
}

@media (max-width: 999px) {
  .toc {
    position: sticky;
    top: 0;
    z-index: 20;
    margin: 0 calc(clamp(1.1rem, 4vw, 2.6rem) * -1);
    padding: 0 clamp(1.1rem, 4vw, 2.6rem);
    background: var(--ground);
    border-bottom: 1px solid var(--line);
  }

  .toc h2 { display: none; }

  .toc-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    width: 100%;
    padding: .85rem 0;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--sans);
    font-size: var(--t-1);
    font-weight: 700;
    color: var(--ink);
    text-align: left;
    line-height: 1.5;
  }

  .toc-toggle:focus-visible { outline: 2px solid var(--sky); outline-offset: -2px; border-radius: 4px; }

  .toc-toggle-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .toc-caret {
    flex: none;
    width: .5rem; height: .5rem;
    border-right: 2px solid var(--navy);
    border-bottom: 2px solid var(--navy);
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .18s;
  }

  .toc[data-open="true"] .toc-caret { transform: rotate(-135deg) translate(-3px, -3px); }

  .toc ul {
    display: none;
    padding-bottom: .8rem;
    border-top: 1px solid var(--line-soft);
    padding-top: .5rem;
  }

  .toc[data-open="true"] ul { display: flex; }

  .toc a { padding: .6rem .5rem .6rem .8rem; }

  section { scroll-margin-top: 4rem; }
}

main { min-width: 0; counter-reset: sec; }

section { scroll-margin-top: 1.4rem; padding-bottom: clamp(2.6rem, 6vw, 4rem); }
section + section { border-top: 1px solid var(--line); padding-top: clamp(2.4rem, 5vw, 3.4rem); }

/* ---------- 見出し ----------
   3段の差を、装飾の種類そのもので作る。
     大見出し … 通し番号（CSSの自動採番）＋下の罫線
     小見出し … 左の縦棒
     その下   … 先頭の短い横棒
   番号を本文に書かないので、節を入れ替えても番号がずれない。 */

h2.sec-title {
  counter-increment: sec;
  display: flex;
  align-items: baseline;
  gap: .75rem;
  font-size: var(--t3);
  line-height: 1.42;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: .01em;
  text-wrap: balance;
  position: relative;
  margin: 0 0 1.1rem;
  padding: 0 0 .8rem;
  border-bottom: 1px solid var(--line);
}

h2.sec-title::before {
  content: counter(sec, decimal-leading-zero);
  flex: none;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.85rem;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy);
}

/* 罫線の左端だけをブランドの3px線にする。面は増やさない */
h2.sec-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.4rem;
  height: 3px;
  border-radius: 2px;
  background: var(--grad);
}

@media (max-width: 480px) {
  h2.sec-title { gap: .55rem; }
  h2.sec-title::before { font-size: 1.45rem; }
}

.sec-lede { font-size: var(--t1); color: var(--ink); margin: 0 0 1.9rem; max-width: 58ch; font-weight: 500; }

h3 {
  font-size: var(--t2);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.5;
  margin: 2.6rem 0 .9rem;
  padding-left: .8rem;
  border-left: 4px solid var(--navy);
  text-wrap: balance;
}

h3:first-child { margin-top: 0; }

h4 {
  font-size: var(--t1);
  font-weight: 700;
  color: var(--ink);
  margin: 1.9rem 0 .55rem;
  display: flex;
  align-items: baseline;
  gap: .5rem;
}

h4::before {
  content: "";
  flex: none;
  width: .95rem;
  height: 2px;
  border-radius: 1px;
  background: var(--sky);
  transform: translateY(-.28em);
}

/* カード・囲みの中の小見出しは、枠そのものが区切りになっているので装飾を足さない */
.card h4, .callout h4 { display: block; }
.card h4::before, .callout h4::before { content: none; }

p { margin: 0 0 1.05rem; max-width: 66ch; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-underline-offset: .2em; }
a:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; border-radius: 2px; }

strong { color: var(--ink); font-weight: 700; }

ul.plain { list-style: none; margin: 0 0 1.05rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
ul.plain li { display: flex; gap: .7rem; align-items: flex-start; }
ul.plain li::before {
  content: "";
  width: .4rem; height: .4rem;
  border-radius: 1px;
  background: var(--sky);
  flex: none;
  margin-top: .82em;
  transform: rotate(45deg);
}

/* ---------- 表 ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin: 0 0 1.2rem; }

table { width: 100%; border-collapse: collapse; font-size: var(--t-1); line-height: 1.75; min-width: 33rem; }

thead th {
  background: var(--surface-2);
  color: var(--ink);
  text-align: left;
  font-weight: 700;
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--line);
}

tbody td, tbody th {
  padding: .7rem .95rem;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  text-align: left;
}

tbody th { font-weight: 700; color: var(--ink); }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }

td.num, th.num { font-variant-numeric: tabular-nums; font-family: var(--mono); white-space: nowrap; }

tfoot td, tfoot th {
  padding: .8rem .95rem;
  border-top: 2px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

/* ---------- 手順（順序に意味があるときだけ） ---------- */

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: flex; flex-direction: column; }

ol.steps > li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 2.1rem minmax(0, 1fr);
  gap: 0 .95rem;
  padding: 1rem 0;
  align-items: start;
}

ol.steps > li + li { border-top: 1px solid var(--line-soft); }

ol.steps > li::before {
  content: counter(s);
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t-1);
  color: var(--on-navy);
  background: var(--navy);
  width: 1.7rem; height: 1.7rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: .2rem;
}

ol.steps .t { font-weight: 700; color: var(--ink); line-height: 1.6; }
ol.steps .d { color: var(--muted); font-size: var(--t-1); line-height: 1.78; grid-column: 2; }

/* ---------- カード ---------- */

.cards { display: grid; grid-template-columns: 1fr; gap: 1rem; margin-bottom: 1.2rem; }

@media (min-width: 760px) { .cards.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 620px) { .cards.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: var(--grad);
}

.card .k { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .08em; color: var(--navy); }
.card h4 { margin: 0; }
.card p { margin: 0; font-size: var(--t-1); line-height: 1.78; color: var(--muted); max-width: none; }

/* ---------- 数字で見る ----------
   面は1色。値だけを濃紺にして、単位と説明は本文色に落とす。 */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin: 0 0 1.4rem;
}

@media (min-width: 760px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stats.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* 2つだけ並べるとき */
}

.stats > div {
  background: var(--surface);
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.stats .v {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t3);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  letter-spacing: -.01em;
}

.stats .v .u { font-size: var(--t1); margin-left: .1rem; }
.stats .d { font-size: var(--t-1); color: var(--muted); line-height: 1.65; }

/* ---------- 囲み ---------- */

.callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--sky);
  border-radius: 8px;
  padding: 1.15rem 1.35rem;
  background: var(--accent-weak);
  margin: 1.4rem 0;
}

.callout > .label {
  font-family: var(--mono);
  font-size: var(--t-1);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 .45rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* ---------- 囲みの見出しアイコン ----------
   線画をマスクとして敷き、色は currentColor に追従させる。
   これで通常の囲みは濃紺、注意の囲みは警告色のアイコンになる（塗り分けを二重に持たない）。 */

.callout > .label::before {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}

.callout > .label:not([class*="ic-"])::before { display: none; }   /* 指定が無ければ出さない */

.ic-info   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11.5v4.5'/%3E%3Cpath d='M12 7.8v.01'/%3E%3C/svg%3E"); }

.ic-alert  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5 22 20.5H2Z'/%3E%3Cpath d='M12 10v4'/%3E%3Cpath d='M12 17.4v.01'/%3E%3C/svg%3E"); }

.ic-bulb   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 18h5'/%3E%3Cpath d='M10.5 21h3'/%3E%3Cpath d='M12 3a6 6 0 0 0-3.7 10.7c.7.6 1.1 1.4 1.2 2.3h5c.1-.9.5-1.7 1.2-2.3A6 6 0 0 0 12 3Z'/%3E%3C/svg%3E"); }

.ic-check  { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12.4 2.8 2.8L16.2 9'/%3E%3C/svg%3E"); }

.ic-target { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Ccircle cx='12' cy='12' r='4.6'/%3E%3Cpath d='M12 11.9v.01'/%3E%3C/svg%3E"); }

.ic-tool   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 5.5h14'/%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M5 18.5h14'/%3E%3Ccircle cx='9' cy='5.5' r='2.1'/%3E%3Ccircle cx='15' cy='12' r='2.1'/%3E%3Ccircle cx='9' cy='18.5' r='2.1'/%3E%3C/svg%3E"); }

.ic-lock   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='10.2' width='16' height='10.3' rx='2'/%3E%3Cpath d='M8 10.2V7.6a4 4 0 0 1 8 0v2.6'/%3E%3C/svg%3E"); }

.ic-mail   { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2.5' y='5' width='19' height='14' rx='2'/%3E%3Cpath d='m2.9 6.6 9.1 6.2 9.1-6.2'/%3E%3C/svg%3E"); }

.callout h4 { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

.callout.warn { border-left-color: var(--warn); background: var(--warn-weak); }
.callout.warn > .label { color: var(--warn); }

/* ---------- 料金 ---------- */

.price {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface);
  margin: 0 0 1.4rem;
}

.price-head {
  padding: 1.4rem 1.5rem;
  background: var(--wash);
  border-bottom: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .4rem .9rem;
}

.price-head .plan { font-weight: 700; color: var(--ink); font-size: var(--t1); }
.price-head .term { font-size: var(--t-1); color: var(--muted); font-family: var(--mono); letter-spacing: .05em; }

.price-rows { display: flex; flex-direction: column; }

.price-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .3rem 1.2rem;
  padding: 1rem 1.5rem;
}

.price-row + .price-row { border-top: 1px solid var(--line-soft); }

.price-row .name { font-weight: 700; color: var(--ink); }
.price-row .note { font-size: var(--t-1); color: var(--muted); flex-basis: 100%; line-height: 1.7; }

.price-row .amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t2);
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

.price-row .amt .unit { font-size: var(--t-1); font-weight: 400; color: var(--muted); margin-left: .25rem; }

.price-total {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .3rem 1.2rem;
  padding: 1.15rem 1.5rem;
  border-top: 2px solid var(--line);
  background: var(--surface-2);
}

.price-total .name { font-weight: 700; color: var(--ink); }

.price-total .amt {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: var(--t3);
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.price-total .amt .unit { font-size: var(--t-1); font-weight: 400; color: var(--muted); margin-left: .25rem; }

/* ---------- 流れ ---------- */

.flow { display: flex; flex-direction: column; gap: .5rem; margin: 0 0 1.2rem; }

.flow .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: .25rem .95rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .85rem 1.05rem;
  background: var(--surface);
}

@media (min-width: 700px) { .flow .row { grid-template-columns: 13rem minmax(0, 1fr); align-items: baseline; } }

.flow .row .who { font-weight: 700; color: var(--ink); font-size: var(--t-1); }
.flow .row .what { color: var(--muted); font-size: var(--t-1); line-height: 1.72; }
.flow .arrow { text-align: center; color: var(--sky); font-size: .95rem; line-height: 1; }

/* ---------- 問答 ----------
   1問1答をカードにし、質問は淡色の面、回答は白地に置いて上下で切り替える。
   記号は Q. が濃紺、A. が青。面は1色のまま（グラデーションは足さない）。 */

.qa { display: flex; flex-direction: column; gap: .85rem; }

.qa > div {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--ground);
}

.qa .q,
.qa .a {
  display: grid;
  grid-template-columns: 1.85rem minmax(0, 1fr);
  margin: 0;
  max-width: none;
}

.qa .q::before,
.qa .a::before {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: inherit;
}

.qa .q {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  padding: .95rem 1.2rem;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.75;
}

.qa .q::before { content: "Q."; color: var(--navy); }

.qa .a {
  padding: 1.05rem 1.2rem 1.15rem;
  color: var(--body);
}

.qa .a::before { content: "A."; color: var(--answer); }

/* 回答が2段落以上にわたるとき、2つ目以降に「A.」を繰り返さない。
   記号の欄は残すため、本文の左端は揃ったままになる。 */
.qa .a:has(+ .a) { padding-bottom: .5rem; }
.qa .a + .a { padding-top: 0; }
.qa .a + .a::before { content: ""; }

@media (max-width: 480px) {
  .qa .q, .qa .a { grid-template-columns: 1.6rem minmax(0, 1fr); }
  .qa .q { padding: .85rem 1rem; }
  .qa .a { padding: .95rem 1rem 1.05rem; }
}

/* ---------- 末尾 ---------- */

.colophon {
  margin-top: 2.6rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
  font-size: var(--t-1);
  color: var(--muted);
}

.colophon strong { color: var(--ink); }

/* 会社の1行紹介。本文の 66ch 制限を外し、画面幅いっぱいに1行で置く
   （画面が狭いときだけ折り返す）。 */
.colophon p { max-width: none; }

.sitefoot {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.6rem 0 2.2rem;
  font-size: var(--t-1);
  color: var(--muted);
}

.sitefoot .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(1.1rem, 4vw, 2.6rem);
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.4rem;
  justify-content: space-between;
  align-items: center;
}

.skip { position: absolute; left: -9999px; }

.skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: var(--ground);
  color: var(--navy);
  padding: .5rem .9rem;
  border: 1px solid var(--sky);
  border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

html { scroll-behavior: smooth; }

/* ---------- 資料一覧（トップページ） ---------- */

.doclist { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 700px) { .doclist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

a.doc {
  display: flex;
  flex-direction: column;
  gap: .4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.3rem 1.35rem;
  background: var(--ground);
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}

a.doc::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--grad);
}

a.doc:hover { border-color: var(--sky); transform: translateY(-1px); box-shadow: var(--shadow); }
a.doc:focus-visible { outline: 2px solid var(--sky); outline-offset: 2px; }

a.doc .cat { font-family: var(--mono); font-size: var(--t-1); letter-spacing: .1em; color: var(--navy); }
a.doc .ttl { font-size: var(--t1); font-weight: 700; color: var(--ink); line-height: 1.5; }
a.doc .sum { font-size: var(--t-1); color: var(--muted); line-height: 1.75; }

a.doc.soon { pointer-events: none; opacity: .55; }
a.doc.soon::before { background: var(--line); }

/* トップページは目次を持たないため、本文を中央寄せの1カラムにする */
.shell.solo { display: block; }
.shell.solo main { max-width: 62rem; margin: 0 auto; }
