/* 佐藤健司公認会計士事務所
   設計: 点(藍の円)・線(罫)・面(余白)だけで組む。
   日本語は明朝、欧文と数字は幾何学サンセリフの小文字。色は白・墨・藍。
   一画面に言うことは一つ。押すところは一つ。多くを語らない。 */

:root {
  --paper: #fcfdfe;
  --mist: #eef4f9;      /* 藍白 */
  --wash: #d9e7f4;      /* 淡い藍の光 */
  --ink: #1a2238;       /* 勝色に寄せた墨 */
  --ink-2: #434d66;
  --ink-3: #5b6880;
  --line: #cdd8e5;
  --ai: #0a4ea0;        /* 藍 */
  --mincho: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --geo: "Jost", "Futura", "Century Gothic", sans-serif;
  --maxw: 1200px;
  --head-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  color-scheme: light;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 8px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--gothic);
  font-size: 16px;
  line-height: 1.95;
  letter-spacing: .04em;
  -webkit-font-smoothing: antialiased;
  text-spacing-trim: trim-start;   /* 行頭の括弧のアキを詰める(対応ブラウザのみ) */
}
::selection { background: var(--wash); color: var(--ink); }
img { max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 1px solid var(--ai); outline-offset: 4px; }
[hidden] { display: none !important; }
/* 見出しは、文節の切れ目で折り返す(対応ブラウザのみ) */
h1, h2, h3, h4, dt, .contact-lead, .cta p, .issues-note, .lede { word-break: auto-phrase; line-break: strict; }
/* 本文も、文節の途中では折らない */
.hero-lead, .picts p, .fact span, .prof-quote, .cv li, .nots p, .rows .what, .sec-lead, .more, .news h3, .news p, .qa p, .notes, .foot dd, .faq dd, .who-box p, .fee-note, .issues li, .steps p, .page-hero .lead, .sheet dd, .sheet li { word-break: auto-phrase; line-break: strict; }
/* 見出しは、かなの字間を詰めて組む(プロポーショナルメトリクス) */
h1, h2, h3, h4, .rows dt, .faq dt, .qa summary, .prof-name, .creed, .contact-lead, .cta p, .prof-quote, .issues-note { font-feature-settings: "palt" 1; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 2px; font-size: 14px; text-decoration: none; transition: top .2s; }
.skip:focus { top: 10px; }
.nb { display: inline-block; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}

/* ---------- ヘッダー ---------- */
.head {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--head-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; color: var(--ink); }
.brand .mark { width: 30px; height: 30px; flex: none; }
.brand span { font-family: var(--mincho); font-weight: 500; font-size: 15px; letter-spacing: .14em; }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); font-size: 13px; }
.nav a { text-decoration: none; color: var(--ink-2); transition: color .3s; white-space: nowrap; }
.nav a:hover { color: var(--ai); }
.nav a[aria-current="true"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ai); }
.nav .ask {
  color: var(--ink); border: 1px solid var(--ink); border-radius: 2px; padding: 5px 20px; line-height: 1.9;
  transition: background .3s, color .3s, border-color .3s;
}
.nav .ask:hover { background: var(--ai); border-color: var(--ai); color: #fff; }
.nav .only-menu { display: none; }
.head-tools { display: none; }
.menu-btn {
  font: inherit; font-size: 13px; letter-spacing: .12em; color: var(--ink); white-space: nowrap;
  background: none; border: 0; padding: 12px 0 12px 4px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
}
.menu-btn i { position: relative; width: 22px; height: 9px; display: block; }
.menu-btn i::before, .menu-btn i::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: currentColor;
  transition: transform .45s var(--ease), top .45s var(--ease);
}
.menu-btn i::before { top: 0; }
.menu-btn i::after { top: 8px; }
.nav-open .menu-btn i::before { top: 4px; transform: rotate(18deg); }
.nav-open .menu-btn i::after { top: 4px; transform: rotate(-18deg); }

/* ---------- 冒頭(トップ) ---------- */
.hero {
  -webkit-tap-highlight-color: transparent;
  position: relative; overflow: hidden; height: clamp(540px, calc(100svh - 210px), 760px); border-bottom: 1px solid var(--ink);
  background: linear-gradient(180deg, var(--paper) 0, var(--mist) 100%);
}
.fan { position: absolute; inset: 0; width: 100%; height: 100%; }
/* 名刺を差し出す場面の部品。場面のとき以外は出さない。
   名刺は、名前と資格だけの面。比率・字の大きさ・色は、印刷前の原本に合わせてある */
.meishi { display: none; }
/* 写真は、上が丸いアーチ形。細い線の縁を、少し離して添える */
.meishi-me { width: clamp(96px, 26vw, 122px); padding: 5px; border: 1px solid rgba(26, 34, 56, .22); border-radius: 999px 999px 3px 3px; will-change: transform, opacity; }
.meishi-me img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 18%; border-radius: 999px 999px 2px 2px; filter: saturate(.72) contrast(1.02) brightness(1.03); }
.meishi-card {
  container-type: inline-size;
  width: min(80vw, 392px); aspect-ratio: 91 / 55; background: #fff;
  border: 1px solid rgba(26, 34, 56, .08);
  box-shadow: 0 26px 50px -30px rgba(26, 34, 56, .36), 0 1px 2px rgba(26, 34, 56, .06);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 3%;
  will-change: transform, opacity;
}
.meishi-name { display: block; font-family: var(--gothic); font-weight: 500; font-size: 22px; font-size: 5.9cqw; line-height: 1; letter-spacing: .5em; margin-right: -.5em; word-spacing: .12em; color: #1e253a; transform: scaleX(.8); white-space: nowrap; }
.meishi-title { display: block; margin-top: 18px; margin-top: 4.9cqw; font-family: var(--mincho); font-weight: 400; font-size: 10.5px; font-size: max(10.5px, 2.5cqw); line-height: 1; letter-spacing: .1em; margin-right: -.1em; color: #3f4a72; }
.meishi-hello { font-family: var(--mincho); font-weight: 500; font-size: 14.5px; letter-spacing: .34em; margin-right: -.34em; color: var(--ink-2); will-change: transform, opacity; }
/* 四隅の十字(見当) */
.hero::after {
  content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: .5;
  --p: linear-gradient(var(--ink), var(--ink));
  background:
    var(--p) 0 5px / 11px 1px no-repeat, var(--p) 5px 0 / 1px 11px no-repeat,
    var(--p) 100% 5px / 11px 1px no-repeat, var(--p) calc(100% - 5px) 0 / 1px 11px no-repeat,
    var(--p) 0 calc(100% - 5px) / 11px 1px no-repeat, var(--p) 5px 100% / 1px 11px no-repeat,
    var(--p) 100% calc(100% - 5px) / 11px 1px no-repeat, var(--p) calc(100% - 5px) 100% / 1px 11px no-repeat;
}
.hero-in {
  position: relative; height: 100%;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto minmax(0, 1fr) auto;
  column-gap: 32px; padding-block: 26px 30px;
}
.eyebrow { grid-column: 1; grid-row: 1; font-size: 14px; letter-spacing: .14em; color: var(--ink); line-height: 1.8; }
.coord { position: absolute; right: max(30px, env(safe-area-inset-right, 0px)); bottom: 26px; font-family: var(--geo); text-transform: lowercase; font-size: 12.5px; letter-spacing: .12em; color: var(--ink-3); line-height: 1; pointer-events: none; }
.fan-space { display: none; }
.hero h1 {
  grid-column: 2; grid-row: 1 / 4; align-self: start;
  writing-mode: vertical-rl; font-family: var(--mincho); font-weight: 400;
  display: flex; flex-direction: column; gap: clamp(14px, 1.8vw, 28px);
}
/* 名前で立つ: 「佐藤健司」を倍の大きさにし、「公認会計士事務所」と高さを揃える */
.h1-main { font-size: clamp(24px, min(3.1vw, 4.5svh), 44px); letter-spacing: .16em; }
.h1-main .ln { display: block; white-space: nowrap; }
.h1-main .name { font-size: 2em; line-height: 1.3; font-weight: 500; }
.h1-main .office { line-height: 2.1; }
/* 名前のふりがな。小さく、静かに添える */
.h1-main ruby { ruby-align: center; }
.h1-main rt { font-family: var(--gothic); font-weight: 400; font-size: 11.5px; letter-spacing: .5em; color: var(--ink-3); }
.h1-sign { font-size: 12.5px; letter-spacing: .4em; color: var(--ink-2); align-self: flex-end; white-space: nowrap; }
.hero-foot { grid-column: 1; grid-row: 3; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.promise { padding-left: 58px; }
.promise .ks { font-family: var(--geo); font-weight: 300; font-size: clamp(22px, 2.9vw, 40px); letter-spacing: .01em; line-height: 1.25; text-wrap: balance; }
.promise .ks b, .ks-big b, .foot-ks b { font-weight: 400; color: var(--ai); }
.promise .jp { margin-top: 10px; font-family: var(--mincho); font-size: clamp(13px, 1.3vw, 15px); letter-spacing: .22em; color: var(--ink-2); line-height: 1.8; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
.btn {
  display: inline-flex; align-items: center; gap: 18px; text-decoration: none;
  font-family: var(--mincho); font-size: 15px; letter-spacing: .2em; color: #fff;
  min-height: 54px; padding: 0 30px 0 34px; border: 1px solid var(--ai); border-radius: 2px;
  background: var(--ai);
  transition: background .35s, border-color .35s;
}
.btn::after { content: ""; width: 28px; height: 1px; background: currentColor; transition: width .35s; }
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn:hover::after { width: 40px; }
.btn-note { font-size: 12.5px; color: var(--ink-2); }

/* ---------- 業務(紋) ---------- */
.block-h { display: flex; align-items: baseline; gap: 16px; padding-top: clamp(40px, 5vw, 64px); }
.block-h h2 { font-family: var(--mincho); font-weight: 500; font-size: 22px; letter-spacing: .2em; line-height: 1.6; }
.block-h span { font-family: var(--geo); text-transform: lowercase; font-size: 14px; letter-spacing: .08em; color: var(--ink-3); }
.picts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(20px, 3vw, 36px); border-top: 1px solid var(--line); }
.picts li { padding: clamp(28px, 3.2vw, 40px) clamp(16px, 2vw, 28px) clamp(34px, 4vw, 52px); border-left: 1px solid var(--line); }
.picts li:first-child { border-left: 0; padding-left: 0; }
.picts svg { display: block; width: 56px; height: 56px; color: var(--ink); background: var(--mist); border-radius: 50%; stroke-dasharray: 1; transition: background .4s; }
.picts li:hover svg { background: var(--wash); }
.picts h3 { margin-top: 20px; font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: .12em; line-height: 1.7; }
.picts .who { margin-top: 4px; font-size: 12px; color: var(--ink-3); line-height: 1.8; }
.picts p { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); line-height: 1.95; }
.picts .more { margin-top: 12px; }
.more { display: inline-block; margin-top: 8px; font-size: 12.5px; color: var(--ai); text-decoration: none; border-bottom: 1px solid rgba(10, 78, 160, .35); line-height: 1.7; }
.more:hover { border-color: var(--ai); }

/* 業務: 一行ずつ、罫で区切って並べる */
#services { padding-bottom: clamp(56px, 8vw, 104px); }
.svc { margin-top: clamp(20px, 3vw, 36px); border-bottom: 1px solid var(--line); }
.svc li { display: grid; grid-template-columns: 44px minmax(0, 1fr) minmax(0, 1.9fr); grid-template-rows: auto 1fr; column-gap: clamp(18px, 3vw, 40px); row-gap: 2px; align-items: start; padding-block: 28px; border-top: 1px solid var(--line); }
.svc svg { grid-column: 1; grid-row: 1 / span 2; width: 44px; height: 44px; color: var(--ink); stroke-dasharray: 1; }
.svc h3 { grid-column: 2; grid-row: 1; font-family: var(--mincho); font-weight: 500; font-size: 19px; letter-spacing: .12em; line-height: 1.8; }
.svc .who { grid-column: 2; grid-row: 2; font-size: 13.5px; color: var(--ink-3); line-height: 1.8; word-break: auto-phrase; }
.svc .desc { grid-column: 3; grid-row: 1 / span 2; font-size: 16px; color: var(--ink); word-break: auto-phrase; line-break: strict; padding-top: 2px; }
.svc .more { margin-top: 10px; }
/* 業務の冒頭に置く一文と、その補足 */
.svc-lead { margin-top: clamp(22px, 3vw, 34px); font-family: var(--mincho); font-weight: 500; font-size: clamp(21px, 2.6vw, 29px); letter-spacing: .12em; line-height: 1.8; text-wrap: balance; word-break: auto-phrase; line-break: strict; font-feature-settings: "palt" 1; }
.svc-sub { margin-top: 12px; max-width: 46em; font-size: 16px; color: var(--ink-2); line-height: 2; word-break: auto-phrase; line-break: strict; }
/* 実務支援の詳細ページ: 中の業務への案内と、末尾の相談ボタン */
.subnav { margin-top: clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; flex-wrap: wrap; gap: 6px 24px; padding-bottom: 14px; font-size: 13.5px; letter-spacing: .06em; }
.subnav a { color: var(--ink-2); text-decoration: none; }
.subnav a:hover { color: var(--ai); }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
.page-hero .lead a { color: var(--ai); text-decoration: none; border-bottom: 1px solid rgba(10, 78, 160, .35); }
/* 社外役員として: 役割ごとの説明(2列)、関わり方、就任相談への案内 */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); margin-top: clamp(28px, 4vw, 44px); }
.role h3 { font-family: var(--mincho); font-weight: 500; font-size: clamp(20px, 2.4vw, 24px); letter-spacing: .14em; line-height: 1.7; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.role .rows { margin-top: 0; }
.role .rows > div { display: grid; grid-template-columns: minmax(0, 1fr); padding-block: 14px; }
.role .rows dt { font-size: 13px; letter-spacing: .1em; color: var(--ai); font-family: inherit; }
.role .rows .what { margin-top: 4px; font-size: 15px; line-height: 1.9; color: var(--ink); }
.role-note { margin-top: clamp(24px, 3vw, 36px); padding: 4px 0 4px 20px; border-left: 2px solid var(--ai); font-size: 14.5px; line-height: 1.9; color: var(--ink-2); word-break: auto-phrase; line-break: strict; }
.stance { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px clamp(28px, 4vw, 56px); margin-top: 4px; }
.stance > div { padding-top: 12px; border-top: 1px solid var(--line); }
.stance dt { font-family: var(--mincho); font-weight: 500; font-size: 16.5px; letter-spacing: .1em; line-height: 1.8; }
.stance dd { margin-top: 4px; font-size: 14.5px; line-height: 1.9; color: var(--ink-2); word-break: auto-phrase; line-break: strict; }
.role-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: clamp(28px, 4vw, 40px); }
.role-acts .more { margin-top: 0; }
/* 略歴の区分 */
.cv2 { margin-top: 30px; border-top: 1px solid var(--line); }
.cv2 > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 20px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.cv2 > div > dt { font-family: var(--mincho); font-weight: 500; font-size: 15px; letter-spacing: .12em; line-height: 1.9; color: var(--ink); }
.cv2 > div > dd { font-size: 14.5px; line-height: 1.9; color: var(--ink-2); word-break: auto-phrase; line-break: strict; }
.cv2 .cv-org { color: var(--ink); }
.cv2 .csg { margin-top: 8px; }
.cv2 .csg > div { padding-block: 5px; }
.cv2 .csg dt { font-size: 12.5px; }
/* ご相談の例の小見出し(社外役員の就任／実務支援) */
.asks-h { margin-top: 26px; font-size: 13px; letter-spacing: .12em; color: var(--ai); }
.asks-h:focus { outline: none; }
.asks-h + .asks { margin-top: 8px; }
.asks + .asks-note { margin-top: 10px; }
/* 事務所案内(回覧用の1枚)の入口。表紙を小さく見せ、線だけで囲む */
.sheet-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); column-gap: clamp(24px, 4vw, 48px); align-items: center; margin-top: clamp(36px, 5vw, 56px); padding: clamp(22px, 3vw, 32px) 0; border-block: 1px solid var(--ink); }
.sheet-thumb { display: block; }
.sheet-thumb img { display: block; width: 150px; height: auto; border: 1px solid var(--line); background: #fff; transition: border-color .3s; }
.sheet-thumb:hover img { border-color: var(--ai); }
.sheet-kicker { font-size: 12.5px; letter-spacing: .12em; color: var(--ai); }
.sheet-card h3 { margin-top: 8px; font-family: var(--mincho); font-weight: 500; font-size: clamp(18px, 2.2vw, 22px); letter-spacing: .1em; line-height: 1.8; word-break: auto-phrase; line-break: strict; }
.sheet-card p + p, .sheet-card h3 + p { margin-top: 8px; font-size: 15px; line-height: 1.9; color: var(--ink-2); word-break: auto-phrase; line-break: strict; }
.sheet-acts { display: flex; flex-wrap: wrap; gap: 10px 12px; margin-top: 16px; }
.sheet-acts .pill { text-decoration: none; }
@media (max-width: 640px) {
  .roles, .stance { grid-template-columns: minmax(0, 1fr); }
  .cv2 > div { grid-template-columns: minmax(0, 1fr); row-gap: 6px; }
  .sheet-card { grid-template-columns: 96px minmax(0, 1fr); column-gap: 18px; align-items: start; }
  .sheet-thumb img { width: 96px; }
  .sheet-acts { grid-column: 1 / -1; }
}
/* 課題 → 支援 → 目指す状態。小さな見出しを左に、内容を右に置く */
.csg > div { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); column-gap: 14px; padding-block: 7px; }
.csg > div + div { border-top: 1px solid var(--line); }
.csg > div:first-child { padding-top: 0; }
.csg dt { font-size: 13.5px; color: var(--ink-3); line-height: 1.95; letter-spacing: .06em; padding-top: 2px; }
.csg dd { font-size: 16px; line-height: 1.95; word-break: auto-phrase; line-break: strict; }
.csg > div:last-child dd { font-family: var(--mincho); font-weight: 500; letter-spacing: .06em; }

/* ---------- 数字 ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px clamp(20px, 3vw, 48px); padding-block: clamp(44px, 6vw, 80px); border-top: 1px solid var(--ink); }
.fact b {
  display: block; font-family: var(--geo); font-weight: 300;
  font-size: clamp(34px, 4.4vw, 60px); letter-spacing: 0; line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; color: var(--ai);
}
.fact b small { font-family: var(--mincho); font-weight: 400; font-size: .32em; letter-spacing: .14em; margin-left: .35em; color: var(--ink); }
.fact span { display: block; margin-top: 14px; font-size: 12.5px; line-height: 1.9; color: var(--ink-2); }

/* ---------- 節(共通) ---------- */
.sec {
  position: relative; display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: clamp(24px, 6vw, 96px);
  padding-block: clamp(64px, 9vw, 128px);
}
.sec::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: var(--ink); transform-origin: left center;
}
.sec.no-rule::before { display: none; }
.sec-h h2 { font-family: var(--mincho); font-weight: 500; font-size: 22px; letter-spacing: .2em; line-height: 1.6; }
.sec-h span { display: none; margin-top: 4px; font-family: var(--geo); text-transform: lowercase; font-size: 14px; letter-spacing: .08em; color: var(--ink-3); }
.sec-b { min-width: 0; }
.sec-lead { font-family: var(--mincho); font-size: 17px; letter-spacing: .1em; line-height: 2.1; margin-bottom: 36px; }

/* 行で並べる一覧 */
.rows > li, .rows > div {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr);
  gap: 8px clamp(20px, 3vw, 44px); align-items: baseline;
  padding-block: 26px; border-bottom: 1px solid var(--line);
}
.rows > :first-child { border-top: 1px solid var(--line); }
.rows h3, .rows h4, .rows dt { font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .12em; line-height: 1.8; }
.rows .what { font-size: 14px; color: var(--ink-2); }
.rows .what a { color: var(--ai); text-decoration: none; border-bottom: 1px solid rgba(10, 78, 160, .35); }
.rows .what a:hover { border-color: var(--ai); }
.group-h { font-family: var(--mincho); font-weight: 500; font-size: 16px; letter-spacing: .16em; color: var(--ai); margin: 64px 0 20px; }
.group-h:first-child { margin-top: 0; }

/* 原則 */
.band { background: var(--mist); border-top: 1px solid var(--ink); }
.band .sec::before { display: none; }
.props li { padding-block: 16px; border-bottom: 1px solid var(--line); }
.props .n { font-family: var(--geo); font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums lining-nums; letter-spacing: .04em; }
.props p { font-family: var(--mincho); font-size: 16.5px; letter-spacing: .08em; line-height: 2; color: var(--ink); word-break: auto-phrase; line-break: strict; }
.props .m { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--line); }
.props .m:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.props .m .n { color: var(--ai); font-size: 17px; }
.props .m p { font-size: clamp(20px, 2.3vw, 25px); color: var(--ink); font-weight: 500; letter-spacing: .12em; }
.ks-big { font-family: var(--geo); font-weight: 300; font-size: clamp(30px, 5.6vw, 76px); letter-spacing: -.005em; line-height: 1.1; text-wrap: balance; }
.ks-sub { margin-top: 18px; font-size: 13px; color: var(--ink-2); }
.ksg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px clamp(28px, 5vw, 72px); margin-top: clamp(44px, 6vw, 72px); }
.ksg h3 { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; margin-bottom: 14px; border-bottom: 1px solid var(--ink); font-family: var(--geo); font-weight: 400; font-size: 19px; letter-spacing: .04em; line-height: 1.5; }
.ksg h3 svg { width: 34px; height: 54px; flex: none; color: var(--ai); stroke-dasharray: 1; overflow: visible; }
.ksg h3 small { display: block; font-family: var(--mincho); font-weight: 500; font-size: 15px; letter-spacing: .16em; color: var(--ink); margin-top: 2px; }
.creed { margin-top: clamp(56px, 7vw, 88px); font-family: var(--mincho); font-weight: 500; font-size: clamp(24px, 3.2vw, 38px); letter-spacing: .16em; line-height: 1.7; }
/* 最後の番号は、空けておく */
.props .open p { position: relative; height: 2em; border-bottom: 1px solid var(--ink-3); max-width: 12em; }
.props .open p::after { content: ""; position: absolute; left: 3px; bottom: 7px; width: 1.5px; height: 1.15em; background: var(--ai); }
.sign { margin-top: 28px; font-family: var(--mincho); font-size: 14px; letter-spacing: .22em; line-height: 2.2; color: var(--ink-2); }
.sign b { display: block; font-weight: 400; font-size: 19px; letter-spacing: .3em; color: var(--ink); }

/* しないこと */
.nots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px clamp(24px, 4vw, 56px); }
.nots h3 { font-family: var(--mincho); font-weight: 500; font-size: 19px; letter-spacing: .1em; line-height: 1.9; margin-bottom: 12px; text-wrap: balance; }
.nots p { font-size: 13.5px; color: var(--ink-2); }

/* 略歴 */
.prof { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.prof img { display: block; width: 100%; filter: saturate(.72) contrast(1.02) brightness(1.03); }
.prof-name { font-family: var(--mincho); font-size: 27px; letter-spacing: .2em; line-height: 1.5; }
.yomi { font-family: var(--gothic); font-size: 12.5px; letter-spacing: .22em; color: var(--ink-3); margin-left: 16px; white-space: nowrap; }
.prof-role { margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.prof-role span { display: inline-block; margin-right: 1.4em; }
.prof-quote { margin-top: 24px; font-family: var(--mincho); font-weight: 500; font-size: 18px; letter-spacing: .08em; line-height: 2.1; max-width: 26em; }
.cv { margin-top: 30px; font-size: 14px; color: var(--ink-2); }
.cv li { padding-block: 13px; border-bottom: 1px solid var(--line); line-height: 1.9; }
.cv li:first-child { border-top: 1px solid var(--line); }

/* 進め方 */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 56px); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 16px; }
.steps li::before { content: counter(s); display: block; font-family: var(--geo); font-weight: 300; font-size: 40px; line-height: 1; color: var(--ai); margin-bottom: 14px; }
.steps h3, .steps h4 { margin-bottom: 8px; font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .12em; line-height: 1.8; }
.steps p { font-size: 13.5px; color: var(--ink-2); }

/* お知らせ */
.news li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 4px 24px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.news li:first-child { border-top: 1px solid var(--line); }
.news time { font-family: var(--geo); font-size: 15px; letter-spacing: .06em; color: var(--ink-2); line-height: 2; font-variant-numeric: tabular-nums lining-nums; }
.news h3 { font-family: var(--gothic); font-weight: 500; font-size: 14.5px; line-height: 1.9; }
.news p { grid-column: 2; font-size: 13.5px; color: var(--ink-2); }

/* ご連絡 */
.contact-lead { font-family: var(--mincho); font-size: clamp(22px, 2.8vw, 30px); letter-spacing: .14em; line-height: 1.9; text-wrap: balance; }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin-top: 40px; padding-block: 26px; border-block: 1px solid var(--ink); }
.mail-addr { font-family: var(--geo); font-weight: 300; font-size: clamp(23px, 3.2vw, 36px); letter-spacing: .02em; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.mail-addr:hover { color: var(--ai); }
.pill { font: inherit; font-size: 12.5px; color: var(--ink); background: none; border: 1px solid var(--ink-3); border-radius: 2px; min-height: 36px; padding: 4px 20px; cursor: pointer; transition: border-color .3s, color .3s, background .3s; }
a.pill { display: inline-flex; align-items: center; text-decoration: none; }
.pill:hover { border-color: var(--ai); color: var(--ai); }
.pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.notes { margin-top: 28px; font-size: 13px; color: var(--ink-2); }
/* ご相談の例。選ぶと、件名の入ったメールの作成画面が開く */
.contact-lead + .group-h { margin-top: 44px; }
/* 守秘義務。藍の線を左に立てて、最初に目に入るようにする */
.pledge { margin-top: 30px; padding: 4px 0 4px 20px; border-left: 2px solid var(--ai); font-size: 15.5px; line-height: 1.9; color: var(--ink); word-break: auto-phrase; line-break: strict; }
.pledge b { display: block; font-family: var(--mincho); font-weight: 500; font-size: 16px; letter-spacing: .16em; color: var(--ai); margin-bottom: 2px; }
.rows .key dt { color: var(--ai); }
.rows .key .what { font-size: 16px; color: var(--ink); }
.sheet dt.key { color: var(--ai); }
.asks { border-top: 1px solid var(--line); }
.asks li { border-bottom: 1px solid var(--line); }
.asks button { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 16px; padding: 15px 0; font: inherit; font-size: 16.5px; line-height: 1.8; letter-spacing: inherit; text-align: left; color: var(--ink); background: none; border: 0; border-radius: 0; cursor: pointer; -webkit-appearance: none; appearance: none; transition: color .3s; }
.asks button::after { content: "フォームに入力"; flex: none; font-size: 12.5px; letter-spacing: .06em; color: var(--ai); }
.asks button:hover { color: var(--ai); }
.asks button[aria-pressed="true"] { color: var(--ai); }
.asks button:focus-visible { outline: 2px solid var(--ai); outline-offset: -2px; }

/* ---------- ご相談フォーム ----------
   文字は16px以上(スマホで拡大されない大きさ)。押す場所は50px以上の高さを取る */
.ask-form { margin-top: 44px; }
.ask-form .group-h { margin: 0 0 4px; }
.ask-form .group-h:focus { outline: none; }
.field { padding-top: 20px; }
.field label { display: flex; align-items: baseline; gap: 12px; font-size: 14.5px; letter-spacing: .06em; color: var(--ink); }
.field .req, .field .opt { font-size: 12px; letter-spacing: .08em; }
.field .req { color: var(--ai); }
.field .opt { color: var(--ink-3); }
.field input, .field textarea {
  display: block; width: 100%; margin-top: 8px; padding: 12px 14px; min-height: 52px;
  font: inherit; font-size: 16px; line-height: 1.7; letter-spacing: .04em; color: var(--ink);
  background: #fff; border: 1px solid var(--ink-3); border-radius: 2px;
  -webkit-appearance: none; appearance: none;
  transition: border-color .25s, box-shadow .25s;
}
.field textarea { min-height: 190px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ai); box-shadow: 0 0 0 3px rgba(10, 78, 160, .14); }
.field [aria-invalid="true"] { border-color: #a4321f; }
.field .hint { margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.field .err { margin-top: 6px; font-size: 13.5px; color: #a4321f; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.privacy { margin-top: 22px; font-size: 13px; line-height: 1.9; color: var(--ink-2); }
.ask-send { margin-top: 22px; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ask-send[disabled] { opacity: .6; cursor: default; }
.ask-send[disabled]:hover { background: var(--ai); border-color: var(--ai); }
.form-msg { margin-top: 14px; min-height: 1.9em; font-size: 14px; line-height: 1.9; color: var(--ink-2); }
.form-msg.ng { color: #a4321f; }
.ask-done { margin-top: 44px; padding-block: 30px; border-block: 1px solid var(--ink); }
.ask-done:focus { outline: none; }
.ask-done p + p { margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.asks-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.mail-lead { margin-top: 40px; font-size: 13px; color: var(--ink-3); }
/* ご相談にあたっての3点(初回無料・返信の目安・電話非対応)。線だけで区切り、見出しは立てない */
.terms { margin-top: 36px; border-top: 1px solid var(--line); }
.terms > div { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); column-gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.9; }
.terms dt { padding-top: 1px; font-size: 13.5px; letter-spacing: .08em; color: var(--ai); }
.terms dd { color: var(--ink); word-break: auto-phrase; line-break: strict; }
.terms dd b { font-weight: 500; }
.mail-lead + .mail { margin-top: 12px; }

/* ---------- 下層ページ ---------- */
.page-hero { border-bottom: 1px solid var(--ink); background: linear-gradient(180deg, var(--paper) 0, var(--mist) 100%); }
.page-hero-in { padding-block: clamp(48px, 8vw, 104px) clamp(44px, 7vw, 88px); }
.crumb { font-size: 12.5px; color: var(--ink-3); }
.crumb a { text-decoration: none; }
.crumb a:hover { color: var(--ai); }
.page-hero h1 { margin-top: 28px; font-family: var(--mincho); font-weight: 400; font-size: clamp(27px, 4.4vw, 46px); letter-spacing: .12em; line-height: 1.7; text-wrap: balance; }
.page-hero .lead { margin-top: 28px; max-width: 38em; color: var(--ink-2); font-size: 15.5px; line-height: 2.3; }
.page-hero + .wrap > .sec:first-child::before { display: none; }

.issues li { position: relative; padding: 16px 0 16px 30px; border-bottom: 1px solid var(--line); line-height: 1.9; }
.issues li:first-child { border-top: 1px solid var(--line); }
.issues li::before { content: ""; position: absolute; left: 2px; top: 1.75em; width: 14px; height: 1px; background: var(--ai); }
.issues-note { margin-top: 32px; font-family: var(--mincho); font-size: 16.5px; letter-spacing: .08em; line-height: 2.3; }

.fee { margin-top: 56px; padding-block: 34px; border-block: 1px solid var(--ink); }
.fee-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 28px; }
.fee-row + .fee-row { margin-top: 10px; }
.fee-row span { font-size: 14px; color: var(--ink-2); min-width: 8em; }
.fee-row b { font-family: var(--mincho); font-weight: 400; font-size: clamp(22px, 3vw, 30px); letter-spacing: .06em; line-height: 1.6; font-variant-numeric: lining-nums; }
.fee-row b small { font-size: .5em; color: var(--ink-2); margin-left: .5em; letter-spacing: .08em; }
.fee-note { margin-top: 18px; font-size: 13px; color: var(--ink-2); }

.faq > div { padding-block: 28px; border-bottom: 1px solid var(--line); }
.faq > div:first-child { border-top: 1px solid var(--line); }
.faq dt { font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .1em; line-height: 1.9; }
.faq dd { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 42em; }

.who-box { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 28px; align-items: start; }
.who-box img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; filter: saturate(.72) contrast(1.02) brightness(1.03); }
.who-box p { font-size: 14px; color: var(--ink-2); line-height: 2.1; }
.who-box .prof-name { font-size: 20px; color: var(--ink); margin-bottom: 8px; }

.cta { text-align: center; padding-block: clamp(64px, 10vw, 120px); border-top: 1px solid var(--ink); }
.cta p { font-family: var(--mincho); font-size: clamp(18px, 2.4vw, 24px); letter-spacing: .14em; line-height: 2; margin-bottom: 36px; text-wrap: balance; }

/* ---------- ページの終わりを流れる線 ---------- */
.flow { -webkit-tap-highlight-color: transparent; display: block; width: 100%; height: clamp(120px, 16vw, 200px); border-top: 1px solid var(--ink); background: linear-gradient(180deg, var(--mist) 0, var(--paper) 100%); }
.flow + .foot { border-top: 0; padding-top: 24px; }

/* よくあるご質問(たたんで置く) */
.qa details { border-bottom: 1px solid var(--line); }
.qa details:first-child { border-top: 1px solid var(--line); }
.qa summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr) 22px; align-items: center; gap: 16px; padding-block: 22px; font-family: var(--mincho); font-weight: 500; font-size: 17.5px; letter-spacing: .1em; line-height: 1.8; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; width: 14px; height: 14px; justify-self: end; background: linear-gradient(var(--ink), var(--ink)) center / 14px 1px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 1px 14px no-repeat; transition: transform .4s var(--ease); }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa p { padding: 0 0 24px; font-size: 16.5px; max-width: 40em; }
/* 開閉を滑らかに(対応ブラウザのみ。非対応でもそのまま開閉できる) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .qa details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .qa details[open]::details-content { block-size: auto; }
}

/* ---------- 回覧用の1枚(印刷・PDF保存) ---------- */
.sheet { max-width: 820px; margin-inline: auto; padding-block: 48px 72px; }
.sheet-h { display: flex; align-items: center; gap: 16px; }
.sheet-h .mark { width: 44px; height: 44px; flex: none; }
.sheet h1 { font-family: var(--mincho); font-weight: 500; font-size: clamp(22px, 3.4vw, 28px); letter-spacing: .14em; line-height: 1.6; overflow-wrap: anywhere; min-width: 0; }
.sheet .ks { margin-top: 12px; font-family: var(--geo); font-weight: 300; font-size: 20px; letter-spacing: .01em; }
.sheet .ks b { font-weight: 400; color: var(--ai); }
.sheet-lead { margin-top: 14px; font-size: 15.5px; line-height: 1.9; color: var(--ink-2); word-break: auto-phrase; line-break: strict; }
.sheet h2 { margin-top: 36px; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--mincho); font-weight: 500; font-size: 17px; letter-spacing: .16em; }
.sheet dl { display: grid; grid-template-columns: 9em minmax(0, 1fr); font-size: 15.5px; line-height: 1.9; }
.sheet dt, .sheet dd { padding-block: 8px; border-bottom: 1px solid var(--line); }
.sheet dt { color: var(--ink-2); }
.sheet li { font-size: 15.5px; line-height: 1.9; padding-block: 8px; border-bottom: 1px solid var(--line); }
.sheet .print { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; font-size: 14px; color: var(--ink-2); }
@media (max-width: 560px) { .sheet dl { grid-template-columns: minmax(0, 1fr); } .sheet dt { border-bottom: 0; padding-bottom: 0; } .sheet dd { padding-top: 0; } }
/* 指で操作する端末では印刷画面が開かないことが多いので、PDFのボタンだけを出す */
@media (hover: none) and (pointer: coarse) { .sheet .print .only-desk { display: none; } }
/* 説明用サンプル(現状診断の成果物)。表は線だけで区切り、優先度は色でなく字で示す */
.sample .sheet-lead b { font-weight: 500; color: var(--ink); }
.sample ul.plain { margin-top: 10px; }
.sample ul.plain li { list-style: none; padding-left: 18px; position: relative; }
.sample ul.plain li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--ai); }
.sample li b, .sample td b { font-weight: 500; }
.tbl { width: 100%; margin-top: 14px; border-collapse: collapse; font-size: 14px; line-height: 1.8; }
.tbl th, .tbl td { padding: 10px 10px 10px 0; vertical-align: top; text-align: left; border-bottom: 1px solid var(--line); }
.tbl th { font-weight: 500; font-size: 12.5px; letter-spacing: .08em; color: var(--ink-2); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.tbl td:nth-child(1) { width: 2.4em; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.tbl td:nth-child(2) { width: 7em; }
.tbl td:nth-child(5) { width: 3.6em; text-align: center; }
.tbl td:nth-child(7) { width: 6.5em; white-space: nowrap; color: var(--ink-2); }
.tbl .p-high { color: var(--ai); }
.tbl .p-mid { color: var(--ink); }
.tbl .p-low { color: var(--ink-3); }
.tbl-note, .sample-note { margin-top: 12px; font-size: 13px; color: var(--ink-3); }
.sample-note { margin-top: 36px; }
@media (max-width: 640px) {
  .tbl thead { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: auto; }
  .tbl tr { padding: 14px 0; border-bottom: 1px solid var(--ink); }
  .tbl td { padding: 4px 0; border-bottom: 0; text-align: left; white-space: normal; }
  .tbl td::before { content: attr(data-th); display: block; font-size: 12px; letter-spacing: .08em; color: var(--ink-3); }
  .tbl td:nth-child(1) { display: none; }
  .tbl td:nth-child(5) { text-align: left; }
}
@media print {
  /* A4の1枚に収める(回覧用の1枚) */
  @page { size: A4; margin: 9mm 14mm; }
  .head, .foot, .flow, .bar, .sheet .print { display: none !important; }
  body { background: #fff; font-size: 9pt; }
  .sheet { max-width: none; padding: 0; }
  .sheet-h .mark { width: 32px; height: 32px; }
  .sheet h1 { font-size: 16.5pt; line-height: 1.35; }
  .sheet .ks { margin-top: 5pt; font-size: 12pt; }
  .sheet-lead { margin-top: 4pt; font-size: 9pt; line-height: 1.45; color: var(--ink); }
  .sheet h2 { margin-top: 7pt; padding-bottom: 2.5pt; font-size: 10.5pt; break-after: avoid; }
  .sheet dl { grid-template-columns: 10.8em minmax(0, 1fr); }
  .sheet dl, .sheet li { font-size: 9pt; line-height: 1.45; }
  .sheet dt, .sheet dd, .sheet li { padding-block: 1.5pt; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
}

/* ---------- フッター ---------- */
.foot { border-top: 1px solid var(--ink); padding-block: 56px 72px; font-size: 12.5px; color: var(--ink-2); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 36px 48px; }
.foot .tag { margin: 10px 0 20px; font-family: var(--mincho); font-size: 14px; letter-spacing: .2em; color: var(--ink); }
.foot dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; line-height: 2.1; }
.foot dt { color: var(--ink-3); }
.foot-ks { font-family: var(--geo); font-weight: 300; font-size: 17px; letter-spacing: .03em; color: var(--ink-2); text-align: right; line-height: 1.7; }
.foot-ks small { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .06em; margin-top: 6px; text-transform: none; }

/* ---------- スマホの相談ボタン(親指の届く位置に固定) ---------- */
.bar { display: none; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-content: center; text-align: center; gap: 28px; padding-block: 80px; }
.lost h1 { font-family: var(--mincho); font-weight: 400; font-size: clamp(22px, 3.4vw, 30px); letter-spacing: .16em; line-height: 2; }
.lost .btn { justify-self: center; }

/* ---------- 読みやすさ(40〜50代の決裁者が、拡大せずに読める大きさ) ---------- */
.nav { font-size: 14px; }
.btn { font-size: 16px; }
.btn-note { font-size: 13.5px; }
.h1-sign { font-size: 14.5px; font-weight: 500; }
.promise .jp { font-size: clamp(14.5px, 1.4vw, 16.5px); font-weight: 500; }
.hero-lead { margin-top: 16px; max-width: 31em; font-size: 16.5px; line-height: 2; color: var(--ink); }
@media (min-width: 761px) { body { font-size: 17px; } }
.picts h3 { font-size: 19px; }
.picts .who { font-size: 13.5px; }
.picts p { font-size: 16px; }
.more { font-size: 14px; }
.fact span { font-size: 14.5px; }
.rows .what { font-size: 16.5px; color: var(--ink); }
.rows h3, .rows h4, .rows dt { font-size: 17.5px; }
.group-h { font-size: 17px; }
.ks-sub { font-size: 14.5px; }
.ksg h3 small { font-size: 16.5px; }
.sign { font-size: 15px; font-weight: 500; }
.props p { font-size: 17.5px; font-weight: 500; }
.nots h3 { font-size: 20px; }
.nots p { font-size: 16px; }
.yomi { font-size: 13.5px; }
.prof-role { font-size: 14.5px; }
.cv { font-size: 16.5px; color: var(--ink); }
.steps p { font-size: 16px; }
.news h3 { font-size: 16px; }
.news p { font-size: 15.5px; }
.notes { font-size: 14.5px; }
.pill { font-size: 14px; min-height: 44px; }
.crumb { font-size: 13.5px; }
.page-hero .lead { font-size: 16.5px; color: var(--ink); }
.fee-row span { font-size: 15px; }
.fee-note { font-size: 14.5px; }
.faq dt { font-size: 18px; }
.faq dd { font-size: 16.5px; color: var(--ink); }
.who-box p { font-size: 16.5px; color: var(--ink); }
.foot { font-size: 14px; }
.foot-ks small { font-size: 13px; }

/* ---------- 画面幅 ---------- */
@media (max-width: 980px) {
  .eb-a { display: none; }   /* 幅が狭いときは、業務名だけを一行で */
  .picts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .picts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .picts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows > li, .rows > div { grid-template-columns: minmax(0, 1fr); }
  .steps, .nots, .ksg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --head-h: 58px; }
  .head-in { gap: 10px; }
  .brand { gap: 9px; }
  .brand .mark { width: 26px; height: 26px; }
  .brand span { font-size: 13.5px; letter-spacing: .08em; }
  .head-tools { display: flex; align-items: center; }
  .nav {
    position: fixed; inset: 0; z-index: -1;
    padding: calc(var(--head-h) + 5vh) max(24px, env(safe-area-inset-right, 0px)) max(40px, env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0;
    background: var(--paper);
    visibility: hidden; opacity: 0; transition: opacity .4s, visibility 0s .4s;
    overflow-y: auto;
  }
  .nav a, .nav .only-menu, .nav .ask { display: block; width: 100%; padding: 17px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; font-family: var(--mincho); font-size: 20px; letter-spacing: .2em; color: var(--ink); line-height: 1.9; background: none; }
  .nav .ask { color: var(--ai); }
  .nav-open .nav { visibility: visible; opacity: 1; transition: opacity .4s; }
  .nav-open .head { background: var(--paper); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-open, .nav-open body { overflow: hidden; }

  .hero { height: auto; }
  .hero-in { height: auto; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto auto; padding-block: 26px 34px; }
  .eyebrow { grid-row: 2; margin-top: 8px; font-size: 13px; letter-spacing: .08em; color: var(--ink); }
  .eb-a { display: none; }
  .coord { display: none; }
  .hero h1 { grid-column: 1; grid-row: 1; writing-mode: horizontal-tb; gap: 14px; }
  .h1-main { font-size: clamp(19px, 6vw, 25px); letter-spacing: .16em; }
  .h1-main .name { line-height: 1.5; }
  .h1-main .office { line-height: 1.9; }
  .h1-sign { align-self: flex-start; letter-spacing: .2em; font-size: 13px; }
  .fan-space { display: block; grid-column: 1; grid-row: 3; height: min(70vw, 300px); }
  .hero-foot { grid-row: 4; gap: 26px; }
  .promise { padding-left: 50px; }
  .promise .ks { font-size: 23px; }
  .promise .ks { font-weight: 400; }
  .promise .jp { font-size: 13px; letter-spacing: .08em; white-space: nowrap; }
  .hero-lead { font-size: 15px; }
  .hero-act { display: none; }
  .btn { min-height: 56px; }

  .svc li { grid-template-columns: 40px minmax(0, 1fr); grid-template-rows: auto auto auto; column-gap: 18px; padding-block: 24px; }
  .svc svg { width: 40px; height: 40px; grid-row: 1 / span 3; }
  .svc .desc { grid-column: 1 / -1; grid-row: 3; padding-top: 14px; font-size: 15.5px; }
  /* スマホでは、小さな見出しを上に、内容をその下に置く(1行を長く取る) */
  .csg > div { grid-template-columns: minmax(0, 1fr); padding-block: 10px; }
  .csg dt { line-height: 1.6; padding-top: 0; }
  .csg dd { font-size: 15.5px; }
  .svc-sub { font-size: 15.5px; }
  .asks button { font-size: 15.5px; }
  .terms > div { grid-template-columns: minmax(0, 1fr); row-gap: 2px; padding: 11px 0; }
  .asks button::after { content: none; }
  .ask-send { width: 100%; justify-content: center; min-height: 56px; }
  .picts { grid-template-columns: minmax(0, 1fr); }
  .picts li, .picts li:first-child, .picts li:nth-child(3) { display: grid; grid-template-columns: 52px minmax(0, 1fr); column-gap: 20px; padding: 26px 0; border-left: 0; border-top: 1px solid var(--line); }
  .picts li:first-child { border-top: 0; }
  .picts li > * { grid-column: 2; }
  .picts li > svg { grid-column: 1; grid-row: 1 / 6; width: 52px; height: 52px; }
  .picts h3 { margin-top: 0; }
  .picts .more { justify-self: start; }

  .sec { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .rows > li, .rows > div { padding-block: 22px; }
  .props p { font-size: 16px; letter-spacing: .06em; }
  .props .m p { font-size: 19px; letter-spacing: .06em; }
  .prof { grid-template-columns: minmax(0, 1fr); }
  .prof img { max-width: 180px; }
  .prof-name { font-size: 24px; }
  .prof-quote { font-size: 17px; }
  .yomi { display: block; margin: 6px 0 0; }
  .news li { grid-template-columns: minmax(0, 1fr); }
  .news p { grid-column: 1; }
  .who-box { grid-template-columns: 72px minmax(0, 1fr); gap: 18px; }
  .who-box img { width: 72px; height: 72px; }
  .foot { padding-bottom: calc(110px + env(safe-area-inset-bottom, 0px)); }
  .foot-in { align-items: flex-start; }
  .foot-ks { text-align: left; }

  html { scroll-padding-bottom: 96px; }   /* 下の固定ボタンの分 */
  .bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-top: 1px solid var(--ink);
    transition: transform .5s var(--ease);
  }
  .bar.hide { transform: translateY(110%); }
  .bar span { font-size: 12.5px; color: var(--ink-2); line-height: 1.6; }
  .bar a {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 30px; border-radius: 2px; background: var(--ai); color: #fff;
    font-family: var(--mincho); font-size: 15px; letter-spacing: .2em; text-decoration: none;
  }
  .nav-open .bar, .typing .bar { transform: translateY(110%); }
  .nav a[aria-current="true"] { box-shadow: none; }
}

/* ---------- 動き ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes appear { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bow { 0%, 100% { transform: none; } 45% { transform: translateY(7px); } }                       /* 小さなお辞儀 */
@keyframes hand { from { opacity: 0; transform: translateY(-40px) scale(.88); } to { opacity: 1; transform: none; } }   /* 手元から相手のほうへ */
@keyframes offer { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes accept { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px); } }
@keyframes writeV { from { clip-path: inset(0 0 100% 0); opacity: 0; } }
@keyframes writeH { from { clip-path: inset(0 100% 0 0); opacity: 0; } }
@keyframes ink { from { stroke-dashoffset: 1; } }
@keyframes ink2 { from { stroke-dashoffset: 1; } }
@keyframes caret { 50% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  /* 名刺を差し出す場面(はじめての訪問のときだけ)。
     顔が静かに現れる → 小さくお辞儀をしながら名刺を差し出す → 「はじめまして。」 → 受け取られて、サイトが始まる。
     跳ねたり回ったりはさせない */
  .card .meishi {
    display: flex; position: absolute; left: 0; right: 0; top: 0; height: min(100%, calc(100svh - 150px)); z-index: 3;
    flex-direction: column; align-items: center; justify-content: center; gap: 22px; pointer-events: none;
  }
  .card .meishi-me, .card .meishi-card, .card .meishi-hello { opacity: 0; }
  .meet .meishi-me { animation: appear 1.3s cubic-bezier(.3, 0, .1, 1) both, bow 1.7s cubic-bezier(.4, 0, .3, 1) 1.3s; }
  .meet .meishi-card { animation: hand 1.7s cubic-bezier(.3, 0, .1, 1) 1.1s both; }
  .meet .meishi-hello { animation: offer 1.3s cubic-bezier(.3, 0, .1, 1) 2.2s both; }
  .met .meishi-me { animation: accept .9s cubic-bezier(.4, 0, .2, 1) both; }
  .met .meishi-card { animation: accept 1s cubic-bezier(.4, 0, .2, 1) both; }
  .met .meishi-hello { animation: accept .7s cubic-bezier(.4, 0, .2, 1) both; }
  .exit-slow.met .meishi-me { animation-duration: 1.2s; }
  .exit-slow.met .meishi-card { animation-duration: 1.3s; }
  .exit-slow.met .meishi-hello { animation-duration: .9s; }

  /* 冒頭の文字は、演出が始まるまでの一瞬だけ伏せておく(.pre は長くても1.6秒で外れる) */
  .pre .hero h1, .pre .hero-foot, .pre .eyebrow, .pre .page-hero-in > * { opacity: 0; }
  /* 冒頭の演出は、画面が実際に描かれているとき(.go)だけ始める */
  .go .h1-main .ln { animation: writeV 2s var(--ease) .5s both; }
  .go .h1-main .ln:nth-child(2) { animation-delay: 1s; }
  .go .h1-sign { animation: rise 1.4s var(--ease) 1.9s both; }
  .go .eyebrow { animation: rise 1.4s var(--ease) .3s both; }
  .go .hero-foot { animation: rise 1.4s var(--ease) 1.5s both; }
  .go .page-hero-in > * { animation: rise 1.2s var(--ease) both; }
  .go .page-hero-in > :nth-child(2) { animation-delay: .12s; }
  .go .page-hero-in > :nth-child(3) { animation-delay: .24s; }

  .sec.in::before { animation: draw 1.6s var(--ease) both; }
  .svc.in svg { animation: ink 1.8s var(--ease) .15s both; }
  .svc.in li:hover svg { animation: ink2 1.1s var(--ease) both; }
  .sec.in .ksg svg { animation: ink 2.4s var(--ease) .2s both; }
  .sec.in .ksg > div:nth-child(2) svg { animation-delay: .6s; }
}
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .go .h1-main .ln { animation-name: writeH; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { transition: none; }
}
