@charset "UTF-8";
/* ==========================================================================
   きたの税理士事務所 ／ デジリスタ 制作デモ
   ※ 他4サイトとの差別化：
     - 料金プラン比較カードと、対応業務のマトリクス表が主役（数字と表で見せる）
     - 藍色 × 山吹、角丸8px、面とシャドウで構成
   ========================================================================== */

/* ---------- 1. トークン ---------- */
:root {
  --bg:        #f6f8fa;
  --bg-2:      #e9eef3;
  --bg-3:      #d8e2ea;
  --paper:     #ffffff;
  --ink:       #22303a;
  --ink-2:     #5a6b78;
  --ink-3:     #8d9ba6;
  --brand:     #1f5f8b;   /* 藍 */
  --brand-2:   #2b76a8;
  --brand-pale:#e4eef5;
  --accent:    #e8a33d;   /* 山吹 */
  --accent-2:  #f2b95d;
  --line:      #d7e0e7;
  --line-2:    #e8eef2;
  --ok:        #2e8b6b;
  --ng:        #b8c2ca;

  --radius:    8px;
  --radius-lg: 12px;
  --shadow:    0 1px 2px rgba(20,45,65,.05), 0 6px 22px rgba(20,45,65,.07);
  --shadow-lg: 0 2px 8px rgba(20,45,65,.07), 0 20px 48px rgba(20,45,65,.12);

  --wrap:      1160px;
  --wrap-nr:   800px;
  --gap:       clamp(16px, 2.4vw, 26px);
  --sec:       clamp(58px, 9vw, 116px);

  --sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --num:  "Roboto Condensed", "Arial Narrow", var(--sans);

  --hd-h: 76px;
}

/* ---------- 2. ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 18px); }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.95;
  letter-spacing: .03em; font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
p { margin: 0 0 1.5em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.5em; padding-left: 1.4em; }
li + li { margin-top: .45em; }
h1, h2, h3, h4 { font-weight: 700; line-height: 1.55; letter-spacing: .03em; margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- 3. レイアウト ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.wrap--nr { width: min(100% - 40px, var(--wrap-nr)); margin-inline: auto; }
.sec { padding-block: var(--sec); }
.sec--tint { background: var(--bg-2); }
.sec--paper { background: var(--paper); }

/* 見出し：左に太い縦罫（他4サイトのどれとも違う型） */
.shead { margin-bottom: clamp(30px, 4.5vw, 54px); padding-left: 20px; border-left: 6px solid var(--brand); }
.shead__en { display: block; font-family: var(--num); font-size: 12px; letter-spacing: .26em; color: var(--accent); text-transform: uppercase; font-weight: 700; margin-bottom: 8px; }
.shead__ja { font-size: clamp(22px, 3.2vw, 32px); }
.shead__lead { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.shead--center { text-align: center; padding-left: 0; border-left: 0; }
.shead--center .shead__ja::after { content: ""; display: block; width: 44px; height: 4px; background: var(--accent); border-radius: 2px; margin: 18px auto 0; }

.hd2 { font-size: clamp(19px, 2.6vw, 25px); margin: 0 0 22px; padding-left: 16px; border-left: 5px solid var(--brand); }
.hd3 { font-size: 17px; margin: 36px 0 14px; color: var(--brand); }

/* ---------- 4. パーツ ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: 16px 34px; background: var(--brand); color: #fff; border: 2px solid var(--brand);
  border-radius: var(--radius); font-size: 15px; font-weight: 700; letter-spacing: .06em;
  box-shadow: 0 6px 18px rgba(31,95,139,.2);
  transition: background .2s, border-color .2s, transform .18s, box-shadow .2s;
}
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; transform: translateY(-2px); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #3d2a08; box-shadow: 0 6px 18px rgba(232,163,61,.28); }
.btn--accent:hover { background: var(--accent-2); border-color: var(--accent-2); color: #3d2a08; }
.btn--ghost { background: transparent; color: var(--brand); box-shadow: none; }
.btn--ghost:hover { background: var(--brand); color: #fff; }
.btn--sm { padding: 11px 22px; font-size: 13.5px; }
.btn--wide { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 14px; }
.btns--center { justify-content: center; }

/* 料金プラン比較カード（このサイトの主役 1） */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); align-items: start; }
.plan { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.plan--rec { border: 2px solid var(--accent); box-shadow: var(--shadow-lg); }
.plan__badge { position: absolute; top: 0; right: 0; background: var(--accent); color: #3d2a08; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; padding: 6px 14px; border-radius: 0 0 0 var(--radius); }
.plan__h { padding: 28px 24px 22px; text-align: center; border-bottom: 1px solid var(--line-2); }
.plan--rec .plan__h { background: #fdf6ea; }
.plan__n { font-size: 18px; font-weight: 700; color: var(--brand); margin-bottom: 6px; }
.plan__for { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; }
.plan__p { font-family: var(--num); font-size: 38px; font-weight: 700; color: var(--ink); line-height: 1; letter-spacing: .01em; }
.plan__p small { font-size: .38em; font-family: var(--sans); font-weight: 500; color: var(--ink-2); margin-left: .3em; }
.plan__pn { font-size: 12px; color: var(--ink-3); margin-top: 8px; }
.plan__b { padding: 22px 24px 26px; }
.plan__list { list-style: none; margin: 0 0 22px; padding: 0; font-size: 14px; }
.plan__list li { margin: 0; padding: 9px 0 9px 26px; position: relative; color: var(--ink-2); border-bottom: 1px dashed var(--line-2); }
.plan__list li:last-child { border-bottom: 0; }
.plan__list li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 12px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.plan__list li.is-no { color: var(--ink-3); }
.plan__list li.is-no::before { content: "—"; border: 0; transform: none; left: 4px; top: 8px; width: auto; height: auto; color: var(--ng); font-weight: 700; }

/* 対応業務マトリクス（このサイトの主役 2） */
.mtx-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.mtx { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14.5px; background: var(--paper); }
.mtx th, .mtx td { padding: 14px 12px; border: 1px solid var(--line); text-align: center; }
.mtx thead th { background: var(--brand); color: #fff; font-weight: 700; font-size: 13.5px; letter-spacing: .04em; }
.mtx thead th.is-rec { background: var(--accent); color: #3d2a08; }
.mtx tbody th { background: var(--bg-2); text-align: left; font-weight: 500; color: var(--ink); white-space: nowrap; }
.mtx tbody tr:nth-child(even) td { background: #fbfcfd; }
.mtx .o { color: var(--ok); font-weight: 700; font-size: 17px; }
.mtx .t { color: var(--accent); font-weight: 700; font-size: 17px; }
.mtx .x { color: var(--ng); font-weight: 700; font-size: 16px; }
.mtx__note { font-size: 12.5px; color: var(--ink-3); margin: 12px 0 0; }

/* 料金表 */
.fee { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--paper); }
.fee caption { text-align: left; font-size: 17px; font-weight: 700; padding: 0 0 14px; color: var(--brand); }
.fee th, .fee td { padding: 15px 14px; border: 1px solid var(--line); vertical-align: top; }
.fee thead th { background: var(--brand); color: #fff; font-weight: 700; text-align: center; font-size: 14px; }
.fee tbody th { background: var(--bg-2); text-align: left; font-weight: 700; white-space: nowrap; }
.fee td { color: var(--ink-2); }
.fee td strong { color: var(--ink); font-family: var(--num); font-size: 18px; }
.fee td small { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 4px; line-height: 1.8; }
.fee + .fee { margin-top: clamp(32px, 4.5vw, 50px); }

/* 数値カード */
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); border-radius: var(--radius); overflow: hidden; }
.nums__i { background: var(--paper); padding: 26px 14px; text-align: center; }
.nums__n { font-family: var(--num); font-size: clamp(28px, 4.4vw, 42px); font-weight: 700; line-height: 1.05; color: var(--brand); }
.nums__n small { font-size: .38em; margin-left: .2em; font-weight: 500; color: var(--ink-2); font-family: var(--sans); }
.nums__l { font-size: 12.5px; color: var(--ink-2); margin-top: 10px; line-height: 1.7; }

/* カード */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.card__ico { width: 48px; height: 48px; color: var(--brand); margin-bottom: 16px; }
.card__t { font-size: 18px; margin-bottom: 12px; }
.card__d { font-size: 14.5px; color: var(--ink-2); line-height: 1.9; margin: 0; }

/* 月次の流れ（横並びタイムライン） */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.timeline__i { background: var(--paper); border-top: 4px solid var(--brand); padding: 24px 20px 26px; position: relative; }
.timeline__i:nth-child(2) { border-top-color: #3d7fa8; }
.timeline__i:nth-child(3) { border-top-color: #5b9dc0; }
.timeline__i:nth-child(4) { border-top-color: var(--accent); }
.timeline__w { font-family: var(--num); font-size: 12px; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.timeline__t { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.timeline__d { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.85; }

/* ステップ */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 14px; }
.steps li { background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); padding: 22px 24px 22px 74px; position: relative; box-shadow: var(--shadow); }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 22px; top: 22px;
  width: 34px; height: 34px; border-radius: var(--radius);
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--num); font-weight: 700; font-size: 16px;
}
.steps__t { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.steps__d { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.9; }

/* テーブル */
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th, .tbl td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { width: 9em; font-weight: 700; color: var(--brand); white-space: nowrap; }
.tbl td { color: var(--ink-2); }

/* 注記 */
.note { background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 22px 24px; font-size: 13.5px; color: var(--ink-2); line-height: 1.9; }
.note > :last-child { margin-bottom: 0; }
.note--brand { border-left-color: var(--brand); }

.capbox { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; }
.capbox__t { background: var(--brand); color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .06em; padding: 13px 20px; margin: 0; }
.capbox__b { padding: 24px 22px; font-size: 14.5px; color: var(--ink-2); }
.capbox__b > :last-child { margin-bottom: 0; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq__i { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.faq__q { display: flex; align-items: flex-start; gap: 14px; padding: 20px 48px 20px 22px; position: relative; font-size: 16px; font-weight: 700; cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before { content: "Q"; font-family: var(--num); font-size: 18px; color: var(--accent); flex: none; }
.faq__q::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .25s; }
.faq__i[open] .faq__q::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__a { display: flex; gap: 14px; padding: 0 48px 22px 22px; font-size: 14.5px; color: var(--ink-2); line-height: 1.9; }
.faq__a::before { content: "A"; font-family: var(--num); font-size: 18px; color: var(--brand); flex: none; }
.faq__a > :last-child { margin-bottom: 0; }

/* ---------- 5. ヘッダー / フッター ---------- */
.demobar { background: #16242e; color: #d9e4ec; font-size: 12.5px; line-height: 1.75; padding: 9px 20px; text-align: center; }
.demobar p { margin: 0; display: inline; }
.demobar strong { color: #f2c274; font-weight: 700; }
.demobar a { color: #f2c274; text-decoration: underline; text-underline-offset: 3px; margin-left: .6em; white-space: nowrap; }
.demobar a:hover { color: #fff; }
.demobar__ex { display: block; font-size: 11.5px; color: #9aaebc; margin-top: 3px; }

.hd { position: sticky; top: 0; z-index: 80; background: rgba(246,248,250,.96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd__in { width: min(100% - 32px, 1250px); margin-inline: auto; height: var(--hd-h); display: flex; align-items: center; gap: 18px; }
.hd__logo { display: flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ink); }
.hd__mark { width: 42px; height: 42px; flex: none; }
.hd__name { font-size: 18px; font-weight: 700; letter-spacing: .06em; line-height: 1.25; display: block; }
.hd__sub { font-size: 10px; letter-spacing: .16em; color: var(--ink-3); display: block; margin-top: 4px; }

.gnav ul { display: flex; gap: 21px; list-style: none; margin: 0; padding: 0; }
.gnav li { margin: 0; }
.gnav a { font-size: 14px; font-weight: 500; color: var(--ink); position: relative; padding-block: 8px; }
.gnav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.gnav a:hover::after, .gnav a[aria-current="page"]::after { transform: scaleX(1); }
.gnav a[aria-current="page"] { color: var(--brand); }

.hd__cta { display: flex; align-items: center; gap: 12px; }
.hd__tel { text-align: right; line-height: 1.2; }
.hd__tel a { font-family: var(--num); font-size: 22px; font-weight: 700; color: var(--brand); letter-spacing: .02em; }
.hd__tel small { display: block; font-size: 10.5px; color: var(--ink-3); }

.burger { display: none; width: 44px; height: 44px; padding: 0; background: none; border: 0; cursor: pointer; position: relative; flex: none; }
.burger span { position: absolute; left: 11px; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .2s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.drawer { position: fixed; inset: 0; z-index: 70; background: var(--bg); padding: 26px 28px 40px; transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); overflow-y: auto; visibility: hidden; }
.drawer[data-open="true"] { transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 0 0 28px; padding: 0; }
.drawer li { border-bottom: 1px solid var(--line); margin: 0; }
.drawer li a { display: flex; align-items: baseline; gap: 14px; padding: 18px 4px; font-size: 17px; font-weight: 700; color: var(--ink); }
.drawer li a small { font-size: 10.5px; letter-spacing: .16em; color: var(--ink-3); font-weight: 400; }
.drawer__info { font-size: 13.5px; color: var(--ink-2); line-height: 2; margin-top: 26px; }

.crumb { font-size: 12.5px; color: var(--ink-3); padding: 16px 0; }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.crumb li { margin: 0; }
.crumb li + li::before { content: ">"; margin-right: 8px; color: var(--line); }
.crumb a { color: var(--ink-2); }

.phead { background: var(--brand); color: #fff; padding-block: clamp(42px, 6vw, 74px); }
.phead__en { display: block; font-family: var(--num); font-size: 12px; letter-spacing: .28em; color: var(--accent-2); margin-bottom: 10px; font-weight: 700; }
.phead__ja { font-size: clamp(25px, 4vw, 37px); color: #fff; }
.phead__lead { margin-top: 18px; color: #b9d1e2; font-size: 15px; }

.ft { background: #16242e; color: #9aaebc; padding-block: clamp(46px, 7vw, 72px) 0; font-size: 14px; }
.ft a { color: #c9d8e3; }
.ft a:hover { color: #f2c274; }
.ft__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(28px, 5vw, 54px); }
.ft__name { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: .06em; margin-bottom: 6px; }
.ft__sub { font-size: 11px; letter-spacing: .18em; color: #708796; margin-bottom: 20px; }
.ft__addr { font-size: 13.5px; line-height: 2.1; margin: 0; }
.ft__h { font-size: 14px; font-weight: 700; color: #fff; letter-spacing: .08em; margin-bottom: 16px; }
.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin: 0 0 11px; font-size: 13.5px; }
.ft__bar { margin-top: clamp(32px, 5vw, 50px); border-top: 1px solid #2a3b47; padding-block: 22px 26px; font-size: 12px; color: #708796; display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; }
.ft__credit a { text-decoration: underline; text-underline-offset: 3px; }

.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; grid-template-columns: 1fr 1fr; background: var(--paper); border-top: 1px solid var(--line); }
.mbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 11px 4px 13px; font-size: 11.5px; font-weight: 700; color: var(--ink); }
.mbar a + a { background: var(--accent); color: #3d2a08; }
.mbar svg { width: 19px; height: 19px; }

.totop { position: fixed; right: 18px; bottom: 18px; z-index: 50; width: 46px; height: 46px; border-radius: var(--radius); background: var(--brand); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .3s, transform .3s, visibility .3s, background .2s; }
.totop[data-show="true"] { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--accent); color: #3d2a08; }
.totop svg { width: 17px; height: 17px; }

/* ---------- 6. ページ個別 ---------- */
.hero { background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%); padding-block: clamp(40px, 6vw, 72px) 0; }
.hero__in { width: min(100% - 40px, var(--wrap)); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero__t { font-size: clamp(25px, 4.2vw, 43px); line-height: 1.45; }
.hero__t em { font-style: normal; color: var(--brand); }
.hero__d { margin: 22px 0 0; font-size: clamp(14px, 1.7vw, 16px); color: var(--ink-2); max-width: 30em; }
.hero__btns { margin-top: 30px; }
.hero__pts { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 26px; font-size: 13px; color: var(--ink-2); }
.hero__pts span { display: flex; align-items: center; gap: 8px; }
.hero__pts svg { width: 17px; height: 17px; color: var(--brand); }
.hero__fig { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-3); }

.media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 62px); align-items: center; }
.media + .media { margin-top: clamp(48px, 7vw, 86px); }
.media--rev .media__fig { order: 2; }
.media__fig { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--bg-3); }
.media__en { display: block; font-family: var(--num); font-size: 12px; letter-spacing: .24em; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.media__t { font-size: clamp(20px, 2.7vw, 27px); margin-bottom: 18px; }
.media__d { color: var(--ink-2); font-size: 15px; }

.info { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4.5vw, 54px); align-items: start; }
.info__map { margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--paper); }

.cta { background: var(--brand); color: #c9dcea; text-align: center; padding-block: clamp(50px, 8vw, 90px); }
.cta__t { color: #fff; font-size: clamp(21px, 3.2vw, 31px); margin-bottom: 16px; }
.cta__d { color: #b0cbdd; font-size: 15px; max-width: 36em; margin-inline: auto; margin-bottom: 30px; }
.cta .btn { background: var(--accent); border-color: var(--accent); color: #3d2a08; }
.cta .btn:hover { background: #fff; border-color: #fff; color: var(--brand); }
.cta .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); box-shadow: none; }
.cta .btn--ghost:hover { background: #fff; color: var(--brand); border-color: #fff; }
.cta__tel { display: block; margin-top: 28px; }
.cta__tel a { color: #fff; font-family: var(--num); font-size: clamp(27px, 4.4vw, 37px); font-weight: 700; letter-spacing: .03em; }
.cta__tel small { display: block; font-size: 12.5px; color: #b0cbdd; letter-spacing: .08em; margin-top: 4px; }

/* フォーム */
.form { display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field__l { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.field__req { font-size: 10.5px; letter-spacing: .1em; background: var(--brand); color: #fff; padding: 3px 9px; border-radius: 3px; }
.field__opt { font-size: 10.5px; letter-spacing: .1em; background: var(--bg-3); color: var(--ink-2); padding: 3px 9px; border-radius: 3px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 15px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 165px; resize: vertical; line-height: 1.9; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(31,95,139,.14); }
.field__help { font-size: 12.5px; color: var(--ink-3); margin: 0; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-2); }
.check input { width: 17px; height: 17px; margin-top: 5px; flex: none; accent-color: var(--brand); }

/* ---------- 7. 動き ---------- */
.rv { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s cubic-bezier(.22,.9,.28,1); }
.rv.is-in { opacity: 1; transform: none; }
.rv--d1 { transition-delay: .1s; }
.rv--d2 { transition-delay: .2s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ---------- 8. レスポンシブ ---------- */
@media (max-width: 1120px) { .hd__tel { display: none; } }
@media (max-width: 1000px) {
  .plans { grid-template-columns: 1fr; }
  .plan--rec { order: -1; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .hero__in { grid-template-columns: 1fr; }
  .hero__fig { order: -1; }
  .ft__top { grid-template-columns: 1fr 1fr; }
  .ft__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) { .nums { grid-template-columns: repeat(2, 1fr); } .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 782px) {
  :root { --hd-h: 62px; }
  .gnav { display: none; }
  .burger { display: block; }
  .cards, .media, .info { grid-template-columns: 1fr; }
  .media--rev .media__fig { order: 0; }
  .mbar { display: grid; }
  body { padding-bottom: 62px; }
  .totop { bottom: 74px; right: 14px; }
  .demobar { font-size: 11.5px; text-align: left; }
  .demobar a { display: inline-block; margin-left: 0; }
  .ft__top { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .fee th, .fee td { padding: 12px 10px; font-size: 14px; }
}
@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .wrap, .wrap--nr { width: calc(100% - 32px); }
  .btn { padding: 15px 24px; }
  .btns .btn { width: 100%; }
  .steps li { padding: 20px 20px 20px 64px; }
  .steps li::before { left: 18px; top: 20px; }
  .card { padding: 24px 20px; }
}
/* ---------- スマホ：料金マトリクスを横スクロールさせない ----------
   `.mtx` に min-width:640px、`.mtx tbody th` に white-space:nowrap が入っていたため、
   375px の画面では「セルフ」より右の2プランが完全に隠れていた（スクロールできる印も無い）。
   比較表は全部が一度に見えて初めて意味があるので、収まるように縮める。 */
@media (max-width: 560px) {
  .mtx { min-width: 0; table-layout: fixed; font-size: 12.5px; }
  .mtx th, .mtx td { padding: 10px 3px; }
  .mtx thead th { font-size: 11px; letter-spacing: 0; line-height: 1.45; }
  .mtx thead th:first-child { width: 40%; text-align: left; }
  .mtx tbody th { white-space: normal; padding-inline: 8px; font-size: 12px; line-height: 1.5; }
  .mtx .o, .mtx .t, .mtx .x { font-size: 15px; }
}

@media print {
  .demobar, .hd, .mbar, .totop, .cta, .drawer { display: none !important; }
  body { background: #fff; padding: 0; }
  .rv { opacity: 1; transform: none; }
  .mtx-wrap { overflow: visible; }
}
