/* =========================================================
   くもま社会保険労務士事務所（制作サンプル） style.css
   - スマホ優先：基本はスマホの見た目。min-width で広げる。
   - 色はブルー・キャメル・白の3色とその濃淡だけ（docs/design-direction.md）。
   - 字体は3種類：見出し Zen Kaku Gothic New／本文 Noto Sans JP／欧文 Inter。
   - 動きは transform・opacity・clip-path が中心。動きを減らす設定では止める。
   ========================================================= */

:root {
  --color-main: #1E5FA8;
  --color-main-deep: #164A85;
  --color-main-soft: #DCEBF8;
  --color-mist: #F3F8FC;
  --color-accent: #A8651F;
  --color-accent-pale: #FBF3E8;
  --color-accent-text: #8F5316;     /* キャメル（文字用・薄い背景の上で 4.5:1 以上） */
  --color-text: #1C2733;
  --color-note: #4A5A6A;
  --color-line: rgba(30, 95, 168, 0.16);
  --color-line-strong: rgba(30, 95, 168, 0.38);
  --color-base: #FFFFFF;

  --font-head: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-body: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-accent: "Inter", "Helvetica Neue", Arial, sans-serif;

  --shadow: 0 8px 24px rgba(30, 95, 168, 0.08);
  --shadow-lg: 0 18px 48px rgba(30, 95, 168, 0.14);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-photo: 20px;

  --fs-body: 1rem;
  --fs-note: 0.875rem;
  --fs-eyebrow: 0.8125rem;
  --fs-lead: 1.0625rem;
  --fs-h1-top: 2rem;
  --fs-h1: 1.75rem;
  --fs-h2: 1.5rem;
  --fs-h3: 1.125rem;
  --fs-btn: 1rem;
  --lh-body: 1.9;
  --measure: 38em;
  --btn-h: 56px;

  --side: 20px;
  --section-y: 64px;
  --h2-gap: 28px;
  --card-pad: 24px;
  --card-gap: 16px;
  --header-h: 64px;
}

@media (min-width: 768px) {
  :root {
    --fs-body: 1.0625rem;
    --fs-lead: 1.1875rem;
    --fs-h1-top: 2.75rem;
    --fs-h1: 2.25rem;
    --fs-h2: 1.875rem;
    --fs-h3: 1.25rem;
    --fs-btn: 1.0625rem;
    --side: 32px;
    --section-y: 96px;
    --h2-gap: 40px;
    --card-pad: 32px;
    --card-gap: 24px;
    --header-h: 80px;
  }
}

@media (min-width: 1024px) {
  :root {
    --side: 40px;
    --section-y: 112px;
    --h2-gap: 48px;
    --fs-h1-top: 3.125rem;
  }
}

/* ---------- リセット・基本 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ページの切り替えをなめらかに（対応ブラウザだけ） */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: var(--lh-body);
  letter-spacing: 0.03em;
  line-break: strict;
  color: var(--color-text);
  background: var(--color-base);
  overflow-x: hidden;
}

body.is-menu-open { overflow: hidden; }

@media (max-width: 767px) {
  body.has-fixed-cta { padding-bottom: 96px; }
  body.has-fixed-cta.is-consult-bar-closed { padding-bottom: 0; }
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }
strong, b { font-weight: 700; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-main); text-underline-offset: 0.2em; }
a:hover { color: var(--color-main-deep); }

a:focus-visible, button:focus-visible, summary:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
  color: var(--color-text);
}

p, li, dd, dt, td, th, summary, figcaption { text-wrap: pretty; }

.phrase-text { overflow-wrap: anywhere; }
.hero__lead.phrase-text, .hero__label.phrase-text { word-break: keep-all; }
.nowrap { white-space: nowrap; }
.num { font-family: var(--font-accent); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

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

.skip-link {
  position: absolute; top: 8px; left: 8px; z-index: 100;
  padding: 12px 18px; background: var(--color-main); color: #fff;
  border-radius: 999px; transform: translateY(-200%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; color: #fff; }

/* ---------- レイアウト ---------- */
.container {
  width: 100%;
  max-width: calc(1120px + var(--side) * 2);
  margin-inline: auto;
  padding-inline: var(--side);
}
.container--narrow { max-width: calc(800px + var(--side) * 2); }

.section { padding-block: var(--section-y); }
.section--mist { background: var(--color-mist); }
.section--soft { background: linear-gradient(180deg, var(--color-mist) 0%, #fff 100%); }

main p { max-width: var(--measure); }
main p + p { margin-top: 1.1em; }

.section-head { margin-bottom: var(--h2-gap); }
.section-head--center { text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head .section-lead { margin-top: 14px; font-size: var(--fs-lead); color: var(--color-note); }

.eyebrow {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-accent);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-main);
}

.note { font-size: var(--fs-note); color: var(--color-note); }
.note--source { margin-top: 18px; }
.note--source a { overflow-wrap: anywhere; }
.lead { font-size: var(--fs-lead); }

.grid { display: grid; gap: var(--card-gap); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--card-pad);
  box-shadow: var(--shadow);
}
.card h3, .card .h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.h3 { font-size: var(--fs-h3); }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-h);
  padding: 12px 28px;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-head);
  font-size: var(--fs-btn);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(.2,.7,.2,1), box-shadow 0.25s, background-color 0.2s, color 0.2s;
}
.btn::after {
  content: "";
  width: 8px; height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s;
  flex: none;
}
.btn--noarrow::after { display: none; }
.btn--primary { background: var(--color-main); color: #fff; box-shadow: 0 8px 20px rgba(30, 95, 168, 0.28); }
.btn--primary:hover { background: var(--color-main-deep); color: #fff; }
.btn--secondary { background: #fff; color: var(--color-main); border-color: var(--color-main); }
.btn--secondary:hover { background: var(--color-mist); color: var(--color-main-deep); }
.btn--ghost { background: transparent; color: var(--color-main); border-color: var(--color-line-strong); }
.btn--ghost:hover { background: #fff; }
.btn--sm { min-height: 48px; padding: 8px 20px; font-size: var(--fs-note); }
.btn--block { width: 100%; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::after { transform: translate(4px, 0) rotate(45deg); }
}
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--color-line);
}
.site-header__inner {
  display: flex; align-items: center; gap: 6px;
  min-height: var(--header-h);
}
.site-logo {
  display: inline-flex; align-items: center; gap: 10px; flex: none;
  min-height: 48px; margin-right: auto;
  text-decoration: none; color: var(--color-text);
}
.site-logo__mark { width: 34px; height: 34px; flex: none; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.2; }
.site-logo__en { font-family: var(--font-accent); font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; color: var(--color-main); }
.site-logo__name { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; letter-spacing: 0.04em; }
.site-logo__sub { display: block; font-family: var(--font-body); font-size: 0.75rem; font-weight: 400; letter-spacing: 0.08em; color: var(--color-note); }
@media (min-width: 480px) {
  .site-logo__name { font-size: 1.125rem; }
  .site-logo__sub { display: inline; margin-left: 6px; font-size: 0.75rem; }
}

.header-icon {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 52px; min-height: 52px; padding: 4px 6px;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--color-main); text-decoration: none; cursor: pointer;
  font-family: var(--font-body);
}
.header-icon__label { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; line-height: 1; white-space: nowrap; }
.header-icon--consult { background: var(--color-main-soft); }
.header-icon:hover { background: var(--color-mist); }
.header-icon--consult:hover { background: var(--color-main-soft); }

.menu-toggle {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 52px; min-height: 52px; padding: 4px 6px;
  border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--color-main); cursor: pointer;
  font-family: var(--font-body);
}
.menu-toggle__bars {
  position: relative; display: block; width: 22px; height: 2px; margin: 8px 0;
  background: currentColor; border-radius: 2px; transition: background 0.2s;
}
.menu-toggle__bars::before, .menu-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 22px; height: 2px;
  background: currentColor; border-radius: 2px; transition: transform 0.25s;
}
.menu-toggle__bars::before { top: -7px; }
.menu-toggle__bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }
.menu-toggle__label { font-size: 0.8125rem; font-weight: 700; line-height: 1; white-space: nowrap; }

.global-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
  display: none; overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  padding: 16px var(--side) 40px;
}
.global-nav.is-open { display: block; }
.global-nav__list li a {
  display: flex; align-items: center; min-height: 56px;
  padding: 8px 4px; border-bottom: 1px solid var(--color-line);
  font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; text-decoration: none; color: var(--color-text);
}
.global-nav__list li a[aria-current="page"] { color: var(--color-main); }
.global-nav__tel { display: none; }
.global-nav__cta { margin-top: 24px; }
.global-nav__cta .btn { width: 100%; }
.header-call-status { font-size: var(--fs-note); color: var(--color-note); padding: 6px var(--side) 10px; max-width: none; }
.header-call-status:empty { display: none; }

@media (min-width: 1024px) {
  .header-icon, .menu-toggle { display: none; }
  .global-nav {
    position: static; display: flex; align-items: center; gap: 8px; inset: auto;
    background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; overflow: visible;
  }
  .global-nav__list { display: flex; align-items: center; gap: 2px; }
  .global-nav__list li a {
    min-height: 48px; padding: 8px 10px; border: 0; font-size: 0.9375rem; position: relative; white-space: nowrap;
  }
  .global-nav__list li a span { position: relative; }
  .global-nav__list li a span::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px;
    background: var(--color-main); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s;
  }
  .global-nav__list li a:hover span::after, .global-nav__list li a[aria-current="page"] span::after { transform: scaleX(1); }
  .global-nav__cta { margin: 0 0 0 8px; }
  .global-nav__cta .btn { width: auto; min-height: 48px; padding: 8px 20px; font-size: 0.9375rem; white-space: nowrap; }
}
@media (min-width: 1360px) {
  .global-nav__tel { display: block; margin-left: 12px; }
  .header-tel { display: flex; flex-direction: column; line-height: 1.25; }
  .header-tel__label { font-size: 0.6875rem; color: var(--color-note); letter-spacing: 0.06em; }
  .header-tel__num { font-family: var(--font-accent); font-weight: 600; font-size: 1.25rem; color: var(--color-text); letter-spacing: 0.02em; white-space: nowrap; }
  .header-tel__hours { font-size: 0.6875rem; color: var(--color-note); }
}

/* ---------- スマホ画面下の相談バー ---------- */
.consult-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 1px solid var(--color-line);
  box-shadow: 0 -8px 24px rgba(30, 95, 168, 0.08);
  transition: transform 0.3s;
}
.consult-bar__inner { display: flex; align-items: stretch; gap: 8px; padding: 8px 10px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.consult-bar__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 56px; padding: 6px 8px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: var(--font-body); text-decoration: none; text-align: center;
}
.consult-bar__btn--tel { background: var(--color-main-soft); color: var(--color-main-deep); }
.consult-bar__btn--reserve { background: var(--color-main); color: #fff; }
.consult-bar__main { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; line-height: 1.2; }
.consult-bar__sub { font-size: 0.75rem; line-height: 1.2; opacity: 0.9; }
.consult-bar__close {
  flex: none; width: 48px; min-height: 56px; border: 1px solid var(--color-line); border-radius: 12px;
  background: #fff; color: var(--color-note); font-size: 1.25rem; cursor: pointer;
}
.consult-bar__status { font-size: var(--fs-note); color: var(--color-note); padding: 0 12px 8px; }
.consult-bar__status:empty { display: none; }
.consult-bar.is-hidden, .consult-bar.is-closed { transform: translateY(110%); }
@media (min-width: 768px) { .consult-bar { display: none; } }

/* ---------- ヒーロー ---------- */
/* 旧（2026-10-10 まで）：左に文字・右に写真（s-hands）を重ねる作り。案1「写真を全面に」へ切り替えたため、下の「最初の画面：写真を全面に」で上書きしている。消さずに残す */
.hero {
  position: relative; overflow: hidden;
  padding-block: 40px 56px;
  background: linear-gradient(180deg, #fff 0%, var(--color-mist) 100%);
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero__blob {
  position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.8;
  background: radial-gradient(circle at 30% 30%, #CFE3F7 0%, rgba(207, 227, 247, 0) 70%);
}
.hero__blob--1 { width: 420px; height: 420px; top: -120px; right: -120px; }
.hero__blob--2 { width: 320px; height: 320px; bottom: -140px; left: -100px; background: radial-gradient(circle at 50% 50%, #FBF3E8 0%, rgba(251, 243, 232, 0) 70%); }
.hero__inner { position: relative; z-index: 1; display: grid; gap: 28px; }
.hero__label { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: var(--fs-note); font-weight: 700; color: var(--color-main); }
.hero__label-sub { font-weight: 400; color: var(--color-note); }
.hero__title { margin-top: 14px; font-size: var(--fs-h1-top); line-height: 1.3; }
.hero__lead { margin-top: 18px; font-size: var(--fs-lead); }
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.hero__badges li {
  display: flex; flex-direction: column; gap: 1px;
  padding: 8px 14px; border-radius: 12px;
  background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow);
}
.hero__badge-main { font-family: var(--font-head); font-weight: 700; font-size: 0.9375rem; color: var(--color-main-deep); line-height: 1.3; }
.hero__badge-sub { font-size: 0.75rem; color: var(--color-note); line-height: 1.3; }
.hero__tel { margin-top: 18px; font-size: var(--fs-note); color: var(--color-note); }
.hero__tel-num { font-family: var(--font-accent); font-weight: 600; font-size: 1.25rem; color: var(--color-text); margin: 0 6px; }
.hero__photo { position: relative; }
.hero__photo img { width: 100%; border-radius: 28px; }
.hero__news { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--color-line); font-size: var(--fs-note); max-width: none; }
.hero__news-tag { font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E6F0FA; color: #123E70; }
.hero__news-date { font-family: var(--font-accent); font-weight: 600; color: var(--color-main); }
.hero__news a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
@media (max-width: 767px) {
  .hero { padding-block: 16px 48px; }
  .hero__inner { gap: 20px; }
  .hero__photo { order: -1; }
  .hero__photo img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 20px; }
  html.js .hero .hero__photo.photo--reveal img { clip-path: inset(8% 8% 8% 8% round 20px); }
  html.js .hero .hero__photo.photo--reveal.is-visible img { clip-path: inset(0 0 0 0 round 20px); }
  .hero__label-sub { display: none; }
  .hero__title { margin-top: 8px; }
  .hero__lead { margin-top: 12px; }
  .hero__badges { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
  .hero__badges li { padding: 8px 10px; }
  .hero__badge-main { font-size: 0.875rem; white-space: nowrap; letter-spacing: 0; }
  .hero__badge-sub { letter-spacing: 0; }
  .hero .btn-group { margin-top: 20px; }
}
@media (min-width: 768px) {
  .hero { padding-block: 56px 80px; }
  .hero__inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 48px; }
  .hero__photo img { aspect-ratio: 4 / 5; object-fit: cover; }
}
@media (min-width: 1024px) {
  .hero { padding-block: 72px 104px; }
  .hero__inner { gap: 64px; }
  .hero__blob--1 { width: 620px; height: 620px; top: -200px; right: -160px; }
}

/* ---------- 最初の画面：写真を全面に「案1 左をうっすら明るく」（2026-10-10 ボス決定） ----------
   写真（s-woman）を最初の画面いっぱいに置き、PC は左を白〜薄いブルーのグラデーションで明るくして濃い文字を載せる。
   スマホは写真を上に置き、下から薄いブルーに溶かして、その上に文字を載せる（人物の頭を文字で隠さない）。
   見出しは2行（各行は折り返さない）。PC 48px・スマホ 34px まで（art-director 2026-10-09：2行目の「い」が髪にかからない大きさ）。
   動き：写真がゆっくり引く 1.03→1・1.2秒・1回（motion-designer 2026-10-09）。CSS だけ。動きを減らす設定では止める。 */
.hero--full { position: relative; overflow: hidden; padding: 0; background: var(--color-mist); }
.hero-full__photo { position: absolute; inset: 0; z-index: 0; margin: 0; overflow: hidden; }
.hero-full__photo img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; border-radius: 0;
  transform-origin: 55% 50%;
  animation: heroSettle 1.2s cubic-bezier(.2,.7,.2,1) both;
}
.hero-full__photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
@keyframes heroSettle { from { transform: scale(1.03); } to { transform: scale(1); } }
.hero--full .hero__inner { position: relative; z-index: 1; display: block; width: 100%; }
.hero--full .hero__title { margin-top: 12px; line-height: 1.25; letter-spacing: 0.02em; }
.hero--full .hero__title span { display: block; white-space: nowrap; }
.hero--full .hero__title span:nth-child(2) { color: var(--color-main); }
.hero--full .hero__lead { margin-top: 16px; }
.hero--full .btn-group { margin-top: 24px; }
.hero--full .hero__badges { margin-top: 22px; }
.hero--full .hero__tel { margin-top: 14px; }
.hero--full .hero__tel-num { white-space: nowrap; } /* スマホで番号がハイフンで折れないように */
/* 法改正のお知らせ（写真の下の細い帯） */
.hero-newsbar { background: #fff; border-bottom: 1px solid var(--color-line); }
.hero-newsbar .hero__news { margin-top: 0; padding: 8px 0; border-top: 0; }
@media (max-width: 767px) {
  .hero--full { padding: 432px 0 24px; }
  .hero-full__photo { inset: 0 0 auto 0; height: 760px; }
  .hero-full__photo::after { background: linear-gradient(180deg, rgba(243,248,252,0) 38%, rgba(243,248,252,.58) 52%, rgba(243,248,252,.92) 68%, #F3F8FC 100%); }
  /* 10字の行が横375の機種でも収まる大きさ（上限 34px） */
  .hero--full .hero__title { font-size: clamp(1.75rem, 8.6vw, 2.125rem); }
  .hero--full .btn-group { margin-top: 18px; }
  .hero--full .hero__badges { margin-top: 18px; }
}
@media (min-width: 768px) {
  .hero--full { display: flex; align-items: center; min-height: 800px; padding-block: 64px; }
  .hero-full__photo img { object-position: 50% 60%; transform-origin: 50% 60%; }
  .hero-full__photo::after { background: linear-gradient(90deg, rgba(243,248,252,.95) 0%, rgba(243,248,252,.88) 30%, rgba(243,248,252,.62) 44%, rgba(243,248,252,.22) 56%, rgba(243,248,252,0) 68%); }
  .hero--full .hero__text { max-width: 600px; }
  /* 2行目（10字）が人物の髪（横47%〜）の左で終わる大きさ（上限 48px） */
  .hero--full .hero__title { font-size: clamp(2.5rem, 3.4vw, 3rem); }
  .hero--full .hero__lead { max-width: 30em; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero--full .hero__text { max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full__photo img { animation: none; }
}

/* 写真（仮の画像・窓から広がって現れる） */
.photo img { border-radius: var(--radius-photo); object-fit: cover; }
.photo__ai-note { margin-top: 8px; font-size: 0.75rem; color: var(--color-note); max-width: none; }
html.js .photo--reveal img { clip-path: inset(12% 12% 12% 12% round var(--radius-photo)); opacity: 0; transition: clip-path 1s cubic-bezier(.2,.7,.2,1), opacity 0.6s; }
html.js .photo--reveal.is-visible img { clip-path: inset(0 0 0 0 round var(--radius-photo)); opacity: 1; }
html.js .hero__photo.photo--reveal img { clip-path: inset(12% 12% 12% 12% round 28px); }
html.js .hero__photo.photo--reveal.is-visible img { clip-path: inset(0 0 0 0 round 28px); }


/* スクロールで現れる */
html.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
html.js .reveal.is-visible { opacity: 1; transform: none; }
html.js .reveal--stagger > * { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.7,.2,1); }
html.js .reveal--stagger.is-visible > * { opacity: 1; transform: none; }
html.js .reveal--stagger.is-visible > :nth-child(2) { transition-delay: 0.08s; }
html.js .reveal--stagger.is-visible > :nth-child(3) { transition-delay: 0.16s; }
html.js .reveal--stagger.is-visible > :nth-child(4) { transition-delay: 0.24s; }
html.js .reveal--stagger.is-visible > :nth-child(5) { transition-delay: 0.32s; }
html.js .reveal--stagger.is-visible > :nth-child(6) { transition-delay: 0.40s; }
html.js .reveal--stagger.is-visible > :nth-child(7) { transition-delay: 0.48s; }
html.js .reveal--stagger.is-visible > :nth-child(8) { transition-delay: 0.56s; }

@media (prefers-reduced-motion: reduce) {
  html.js .reveal, html.js .reveal--stagger > * { opacity: 1; transform: none; transition: none; }
  html.js .photo--reveal img, html.js .hero__photo.photo--reveal img, html.js .hero .hero__photo.photo--reveal img, html.js .office-band__photo.photo--reveal img { clip-path: none; opacity: 1; transition: none; }
  .btn, .btn::after, .menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after, .consult-bar { transition: none; }
  .timeline__line::before, .timeline__dot, .check__bar span, .flow__bar::before { transition: none !important; animation: none !important; }
}

/* ---------- 下層ページのタイトル ---------- */
.page-head {
  position: relative; overflow: hidden;
  padding-block: 36px 44px;
  background: linear-gradient(180deg, #fff 0%, var(--color-mist) 100%);
}
.page-head h1 { font-size: var(--fs-h1); margin-top: 8px; }
.page-head__lead { margin-top: 14px; color: var(--color-note); font-size: var(--fs-lead); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: var(--fs-note); color: var(--color-note); margin-bottom: 14px; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--color-line-strong); }
.breadcrumb li { display: inline-flex; align-items: center; }
@media (min-width: 768px) { .page-head { padding-block: 48px 64px; } }

/* ページ内の目次 */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 8px 16px;
  border-radius: 999px; background: #fff; border: 1px solid var(--color-line);
  font-size: var(--fs-note); font-weight: 700; text-decoration: none; color: var(--color-main-deep);
}
.toc a:hover { background: var(--color-main-soft); }

/* ---------- お知らせ（法改正） ---------- */
.news__inner { display: grid; gap: 20px; }
.news__title { font-size: var(--fs-h3); display: flex; align-items: baseline; gap: 12px; }
.news__list { display: grid; gap: 0; border-top: 1px solid var(--color-line); }
.news__item { display: grid; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--color-line); }
.news__date { font-family: var(--font-accent); font-weight: 600; font-size: 0.875rem; color: var(--color-main); }
.news__tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E6F0FA; color: #123E70; width: max-content; }
.news__text { max-width: none; }
.news__text a { font-weight: 700; }
@media (min-width: 768px) {
  .news__inner { grid-template-columns: 200px 1fr; align-items: start; }
  .news__item { grid-template-columns: 120px 110px 1fr; align-items: center; }
}

/* ---------- 入口を選ぶ ---------- */
.entry-card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--color-text); transition: transform 0.25s, box-shadow 0.25s; }
.entry-card__num { font-family: var(--font-accent); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--color-main); }
.entry-card h3 { margin: 0; }
.entry-card p { color: var(--color-note); font-size: var(--fs-note); }
.entry-card__link { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--color-main); }
.entry-card__link::after { content: " →"; }
@media (hover: hover) { .entry-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); } }

/* ---------- 困りごとカード（details） ---------- */
.cases { display: grid; gap: 12px; }
.case { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.case summary {
  list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 14px;
  padding: 18px 20px; min-height: 56px; font-family: var(--font-head); font-weight: 700;
}
.case summary::-webkit-details-marker { display: none; }
.case__num { font-family: var(--font-accent); font-weight: 600; color: var(--color-main); flex: none; padding-top: 2px; }
.case__mark { margin-left: auto; flex: none; width: 24px; height: 24px; position: relative; }
.case__mark::before, .case__mark::after { content: ""; position: absolute; top: 11px; left: 6px; width: 12px; height: 2px; background: var(--color-main); border-radius: 2px; transition: transform 0.25s; }
.case__mark::after { transform: rotate(90deg); }
.case[open] .case__mark::after { transform: rotate(0); }
.case__body { padding: 0 20px 20px 54px; }
.case__body p { max-width: none; }
.case__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.case__links a { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px; background: var(--color-mist); font-size: var(--fs-note); font-weight: 700; text-decoration: none; }
.case__links a:hover { background: var(--color-main-soft); }
@media (min-width: 768px) { .cases { grid-template-columns: repeat(2, 1fr); } }

/* ---------- 大切にしていること（ベントー） ---------- */
.bento { display: grid; gap: var(--card-gap); }
.bento__tile { position: relative; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow); }
.bento__tile--main { background: var(--color-main); color: #fff; border-color: var(--color-main); overflow: hidden; }
.bento__tile--main::before { content: ""; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255,255,255,0.08); }
@media (max-width: 767px) { .bento__tile--main::before { top: -140px; right: -140px; } }
.bento__tile--main > * { position: relative; z-index: 1; }
.bento__tile--main h3, .bento__tile--main .eyebrow { color: #fff; }
.bento__tile--main p { color: rgba(255,255,255,0.9); }
.bento__tile--warm { background: var(--color-accent-pale); border-color: rgba(168,101,31,0.2); }
.bento__tile h3 { font-size: var(--fs-h3); margin-bottom: 10px; }
.bento__tile p { max-width: none; font-size: var(--fs-note); }
.bento__tile--main p { font-size: var(--fs-body); }
.bento__icon { width: 40px; height: 40px; margin-bottom: 14px; color: var(--color-main); }
.bento__tile--main .bento__icon { color: #fff; }
.bento__tile--warm .bento__icon { color: var(--color-accent); }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(3, 1fr); grid-auto-rows: minmax(180px, auto); }
  .bento__tile--main { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .bento__tile--main .bento__icon { width: 64px; height: 64px; margin-bottom: auto; }
  .bento__tile--main h3 { font-size: 1.625rem; }
  .bento__tile--wide { grid-column: 1 / -1; }
}

/* ---------- 業務のカード ---------- */
.service-card { display: flex; flex-direction: column; gap: 10px; }
.service-card__num { font-family: var(--font-accent); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.16em; color: var(--color-main); }
.service-card__icon { width: 44px; height: 44px; color: var(--color-main); }
.service-card p { color: var(--color-note); font-size: var(--fs-note); max-width: none; }
.service-card__link { margin-top: auto; padding-top: 8px; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 48px; }
.service-card__link::after { content: " →"; margin-left: 4px; transition: transform 0.25s; display: inline-block; }
.service-card__link:hover::after { transform: translateX(4px); }

/* ---------- 業務の一覧（トップ） ---------- */
.service-list { border-top: 1px solid var(--color-line-strong); }
.service-row { border-bottom: 1px solid var(--color-line); }
.service-row__link {
  display: grid; grid-template-columns: 40px 1fr 36px; grid-template-areas: "num title more" "num text more";
  gap: 4px 14px; align-items: center; padding: 22px 4px; text-decoration: none; color: var(--color-text);
  transition: background-color 0.25s, padding 0.25s;
}
.service-row__num { grid-area: num; align-self: start; padding-top: 4px; font-family: var(--font-accent); font-weight: 600; font-size: 0.875rem; letter-spacing: 0.12em; color: var(--color-main); }
.service-row__icon { display: none; }
.service-row__title { grid-area: title; font-family: var(--font-head); font-weight: 700; font-size: var(--fs-h3); line-height: 1.4; }
.service-row__text { grid-area: text; font-size: var(--fs-note); color: var(--color-note); }
.service-row__more { grid-area: more; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--color-line-strong); color: var(--color-main); transition: transform 0.25s, background-color 0.25s, color 0.25s; }
.service-row__link:hover { background: var(--color-mist); color: var(--color-text); }
.service-row__link:hover .service-row__more { background: var(--color-main); color: #fff; transform: translateX(4px); }
@media (min-width: 900px) {
  .service-row__link { grid-template-columns: 56px 52px minmax(14em, 1fr) 1.4fr 44px; grid-template-areas: "num icon title text more"; gap: 24px; padding: 28px 12px; }
  .service-row__icon { display: block; grid-area: icon; width: 44px; height: 44px; color: var(--color-main); }
  .service-row__num { align-self: center; padding-top: 0; font-size: 1rem; }
  .service-row__more { width: 44px; height: 44px; }
}

/* ---------- 法改正カレンダーの中の診断の入口 ---------- */
.calendar-check { margin-top: var(--h2-gap); }
.feature-card__title { font-size: var(--fs-h2); }

/* ---------- 事務所のご案内（幅いっぱいの写真の帯＋カード） ---------- */
.office-band { position: relative; padding-bottom: var(--section-y); background: var(--color-mist); }
.office-band__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 75%; border-radius: 0; }
html.js .office-band__photo.photo--reveal img { clip-path: inset(0 6% 0 6%); }
html.js .office-band__photo.photo--reveal.is-visible img { clip-path: inset(0 0 0 0); }
.office-band__card { position: relative; margin-top: -48px; padding: var(--card-pad); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); }
@media (min-width: 768px) {
  .office-band__photo img { aspect-ratio: 21 / 8; }
  .office-band__card { max-width: 720px; margin-top: -120px; margin-left: auto; }
}

/* ---------- 法改正カレンダー ---------- */
.timeline { position: relative; display: grid; gap: 0; padding-left: 28px; }
.timeline__line { position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: var(--color-line); border-radius: 2px; overflow: hidden; }
.timeline__line::before { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--color-main); transform: scaleY(0); transform-origin: top; transition: transform 1.6s cubic-bezier(.2,.7,.2,1); }
.timeline.is-visible .timeline__line::before { transform: scaleY(1); }
.timeline__year { position: relative; margin: 8px 0 8px -28px; padding-left: 28px; font-family: var(--font-accent); font-weight: 600; font-size: 1.5rem; color: var(--color-main); }
.timeline__year::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--color-main); }
.timeline__item { position: relative; padding: 10px 0 18px; }
.timeline__dot { position: absolute; left: -24px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: #fff; border: 2px solid var(--color-main); transform: scale(0); transition: transform 0.4s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 0.12s + 0.3s); }
.timeline.is-visible .timeline__dot { transform: scale(1); }
.timeline__card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow); }
.timeline__date { font-family: var(--font-accent); font-weight: 600; font-size: 0.9375rem; color: var(--color-main); }
.timeline__title { font-family: var(--font-head); font-weight: 700; font-size: 1.0625rem; margin-top: 4px; }
.timeline__text { margin-top: 6px; font-size: var(--fs-note); color: var(--color-note); max-width: none; }
.timeline__meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.timeline__tag { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #E6F0FA; color: #123E70; }
.timeline__tag--warm { background: var(--color-accent-pale); color: var(--color-accent-text); }
.timeline__tag--plan { background: #fff; border: 1px dashed var(--color-line-strong); color: var(--color-note); }
.timeline__source { font-size: 0.75rem; color: var(--color-note); margin-top: 8px; max-width: none; }
.timeline__source a { overflow-wrap: anywhere; }
html.js .timeline:not(.is-visible) .timeline__line::before { transform: scaleY(0); }
html:not(.js) .timeline__line::before, html:not(.js) .timeline__dot { transform: none; }
@media (min-width: 768px) {
  .timeline { padding-left: 40px; }
  .timeline__line { left: 13px; }
  .timeline__year { margin-left: -40px; padding-left: 40px; font-size: 1.875rem; }
  .timeline__year::before { left: 6px; width: 16px; height: 16px; margin-top: -8px; }
  .timeline__item { display: grid; grid-template-columns: 150px 1fr; gap: 16px; align-items: start; }
  .timeline__dot { left: -32px; top: 24px; width: 12px; height: 12px; }
  .timeline__date { padding-top: 14px; font-size: 1.0625rem; }
}
.timeline--compact .timeline__item { padding-bottom: 12px; }

/* ---------- 入口の大きなカード（診断・ひな形） ---------- */
.feature-card { display: grid; gap: 20px; align-items: center; border-radius: var(--radius); padding: var(--card-pad); background: #fff; border: 1px solid var(--color-line); box-shadow: var(--shadow); }
.feature-card--main { background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-deep) 100%); color: #fff; border-color: transparent; }
.feature-card--main h2, .feature-card--main h3, .feature-card--main .eyebrow { color: #fff; }
.feature-card--main p { color: rgba(255,255,255,0.92); }
.feature-card--main .btn--primary { background: #fff; color: var(--color-main-deep); box-shadow: none; }
.feature-card--main .btn--primary:hover { background: var(--color-main-soft); }
.feature-card h2 { font-size: var(--fs-h2); }
.feature-card h3 { font-size: var(--fs-h3); }
.feature-card__art { width: 100%; max-width: 280px; margin-inline: auto; }
@media (min-width: 768px) { .feature-card { grid-template-columns: 1fr 260px; gap: 40px; } .feature-card__art { max-width: none; } }

/* ---------- 料金 ---------- */
.price-note { margin-bottom: 20px; }
.price-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); border: 1px solid var(--color-line); background: #fff; box-shadow: var(--shadow); }
.price-table { width: 100%; min-width: 680px; border-collapse: separate; border-spacing: 0; }
@media (min-width: 768px) { .price-wrap--table { overflow: visible; } }
.price-table caption { text-align: left; padding: 16px 20px 6px; font-family: var(--font-head); font-weight: 700; }
.price-table th, .price-table td { padding: 14px 16px; border-top: 1px solid var(--color-line); vertical-align: top; text-align: left; font-size: var(--fs-note); }
.price-table thead th { position: sticky; top: var(--header-h); background: var(--color-main-soft); color: var(--color-main-deep); font-family: var(--font-head); font-weight: 700; z-index: 1; }
.price-table thead th:first-child { background: var(--color-mist); }
.price-table tbody th { font-weight: 700; background: var(--color-mist); white-space: nowrap; }
.price-table .yen { font-family: var(--font-accent); font-weight: 600; font-size: 1.25rem; color: var(--color-text); }
.price-table .yen small { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--color-note); margin-left: 4px; }
.price-table .inc { color: var(--color-main-deep); font-weight: 700; }
.price-table .exc { color: var(--color-note); }
.price-table .plan-head { display: flex; flex-direction: column; gap: 2px; }
.price-table .plan-head small { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--color-note); }
html.js .price-wrap--cards { display: none; }
.plan-cards { display: grid; gap: var(--card-gap); }
.plan-card { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.plan-card__head { padding: 18px 20px; background: var(--color-main-soft); }
.plan-card__head h3 { font-size: var(--fs-h3); color: var(--color-main-deep); margin: 0; }
.plan-card__head p { font-size: var(--fs-note); color: var(--color-note); max-width: none; margin-top: 4px; }
.plan-card__rows { padding: 8px 20px 4px; }
.plan-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-note); }
.plan-card__row .yen { font-family: var(--font-accent); font-weight: 600; font-size: 1.25rem; }
.plan-card__row .yen small { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--color-note); margin-left: 4px; }
.plan-card__items { padding: 12px 20px 20px; }
.plan-card__items li { display: flex; gap: 10px; padding: 6px 0; font-size: var(--fs-note); border-bottom: 1px dashed var(--color-line); }
.plan-card__items li:last-child { border-bottom: 0; }
.plan-card__items .inc { color: var(--color-main-deep); font-weight: 700; flex: none; width: 4.5em; }
.plan-card__items .exc { color: var(--color-note); flex: none; width: 4.5em; font-size: 0.8125rem; line-height: 1.5; }
.plan-card__items li > span:last-child { flex: 1; }
@media (min-width: 768px) {
  html.js .price-wrap--table { display: block; }
  html.js .plan-cards { display: none; }
}
@media (max-width: 767px) {
  html.js .price-wrap--table { display: none; }
}
.spot-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--color-line); }
.spot-table caption { text-align: left; font-family: var(--font-head); font-weight: 700; padding: 0 0 12px; }
.spot-table th, .spot-table td { padding: 12px 14px; border-top: 1px solid var(--color-line); text-align: left; vertical-align: top; font-size: var(--fs-note); }
.spot-table thead th { background: var(--color-main-soft); color: var(--color-main-deep); border-top: 0; }
.spot-table tbody th { font-weight: 700; }
.spot-table .yen { font-family: var(--font-accent); font-weight: 600; font-size: 1.125rem; white-space: nowrap; }
.spot-table .yen small { font-family: var(--font-body); font-weight: 400; font-size: 0.75rem; color: var(--color-note); margin-left: 4px; }
@media (max-width: 599px) {
  .spot-table thead { display: none; }
  .spot-table tr { display: block; padding: 12px 0; border-top: 1px solid var(--color-line); }
  .spot-table th, .spot-table td { display: block; border: 0; padding: 2px 14px; }
  .spot-table td::before { content: attr(data-label) "："; color: var(--color-note); }
  .spot-table td:last-child { padding-bottom: 8px; }
  .spot-table .yen { white-space: normal; }
}

.includes { display: grid; gap: var(--card-gap); }
.includes ul li { position: relative; padding-left: 1.6em; padding-block: 4px; }
.includes ul li::before { content: "✓"; position: absolute; left: 0; color: var(--color-main); font-weight: 700; }
.includes .card--warm li::before { content: "ー"; color: var(--color-accent); }
.card--warm { background: var(--color-accent-pale); border-color: rgba(168,101,31,0.2); }
@media (min-width: 768px) { .includes { grid-template-columns: 1fr 1fr; } }

/* ---------- 注意の囲み（助成金） ---------- */
.callout { border-radius: var(--radius); padding: 20px 22px; background: var(--color-accent-pale); border: 1px solid rgba(168,101,31,0.25); }
.callout__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--color-accent-text); margin-bottom: 8px; }
.callout p, .callout li { max-width: none; font-size: var(--fs-note); }
.callout ul li { position: relative; padding-left: 1.2em; }
.callout ul li::before { content: "・"; position: absolute; left: 0; }
.callout--blue { background: var(--color-mist); border-color: var(--color-line); }
.callout--blue .callout__title { color: var(--color-main-deep); }

/* ---------- 手順（流れ） ---------- */
.flow { display: grid; gap: 24px; }
.flow__aside { }
.flow__aside h2 { font-size: var(--fs-h2); }
.flow__now { display: none; }
.flow__list { display: grid; gap: 14px; counter-reset: step; }
.flow__item { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 20px; background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow); transition: border-color 0.3s, box-shadow 0.3s; }
.flow__num { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--color-main-soft); color: var(--color-main-deep); font-family: var(--font-accent); font-weight: 600; font-size: 1.125rem; }
.flow__item h3 { font-size: var(--fs-h3); margin-bottom: 6px; }
.flow__item p { max-width: none; font-size: var(--fs-note); color: var(--color-note); }
.flow__item .flow__time { display: inline-block; margin-top: 8px; font-size: 0.75rem; font-weight: 700; color: var(--color-main); background: var(--color-mist); padding: 2px 10px; border-radius: 999px; }
.flow__item.is-current { border-color: var(--color-main); box-shadow: var(--shadow-lg); }
.flow__item.is-current .flow__num { background: var(--color-main); color: #fff; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: 1fr 1.4fr; gap: 56px; align-items: start; }
  .flow__aside { position: sticky; top: calc(var(--header-h) + 32px); }
  .flow__now { display: block; margin-top: 24px; font-family: var(--font-accent); font-weight: 600; font-size: 4rem; line-height: 1; color: var(--color-main); }
  .flow__now small { font-size: 1.25rem; color: var(--color-note); margin-left: 6px; }
  .flow__bar { position: relative; width: 100%; height: 4px; margin-top: 18px; background: var(--color-line); border-radius: 2px; overflow: hidden; }
  .flow__bar::before { content: ""; position: absolute; inset: 0; background: var(--color-main); transform: scaleX(calc(var(--progress, 1) / var(--total, 4))); transform-origin: left; transition: transform 0.5s cubic-bezier(.2,.7,.2,1); }
  .flow__list { gap: 20px; }
}
@media (max-width: 1023px) { .flow__bar { display: none; } }

/* ---------- 代表あいさつ ---------- */
.greeting { display: grid; gap: 28px; }
.greeting__photo img { width: 100%; aspect-ratio: 4 / 5; }
.greeting__text h2 { font-size: var(--fs-h2); }
.greeting__text p + p { margin-top: 1.1em; }
.signature { margin-top: 24px; font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; }
.signature small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-note); color: var(--color-note); }
@media (min-width: 768px) {
  .greeting { grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: center; }
  .greeting--flip .greeting__photo { order: 2; }
}

/* ---------- 事務所のご案内 ---------- */
.office { display: grid; gap: 28px; }
.office__table { width: 100%; border-collapse: collapse; }
.office__table th, .office__table td { padding: 12px 0; border-bottom: 1px solid var(--color-line); text-align: left; vertical-align: top; font-size: var(--fs-note); }
.office__table th { width: 7.5em; font-weight: 700; color: var(--color-main-deep); padding-right: 12px; }
.office__photo img { width: 100%; aspect-ratio: 3 / 2; }
@media (min-width: 768px) { .office { grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; } }

/* ---------- 相談の帯（途中の入口） ---------- */
.consult-band { padding-block: 40px; background: var(--color-main-soft); }
.consult-band__inner { display: grid; gap: 16px; align-items: center; }
.consult-band__title { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--color-main-deep); }
.consult-band__text { font-size: var(--fs-note); color: var(--color-note); max-width: none; margin-top: 4px; }
.consult-band__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.consult-band__tel { font-size: var(--fs-note); color: var(--color-note); max-width: none; }
.consult-band__tel-num { font-family: var(--font-accent); font-weight: 600; font-size: 1.25rem; color: var(--color-text); margin: 0 6px; }
@media (min-width: 1024px) { .consult-band__inner { grid-template-columns: 1fr auto; gap: 32px; } }

/* ---------- 最後の相談ブロック ---------- */
.cta { position: relative; overflow: hidden; padding-block: var(--section-y); background: linear-gradient(135deg, var(--color-main) 0%, var(--color-main-deep) 100%); color: #fff; }
.cta::before { content: ""; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: rgba(255,255,255,0.08); filter: blur(10px); }
.cta__inner { position: relative; text-align: center; }
.cta__inner .eyebrow { color: rgba(255,255,255,0.8); }
.cta h2 { color: #fff; font-size: var(--fs-h2); }
.cta p { color: rgba(255,255,255,0.92); margin-inline: auto; margin-top: 14px; }
.cta .btn-group { justify-content: center; }
.cta .btn--primary { background: #fff; color: var(--color-main-deep); box-shadow: none; }
.cta .btn--primary:hover { background: var(--color-main-soft); }
.cta .btn--secondary { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.cta .btn--secondary:hover { background: rgba(255,255,255,0.12); color: #fff; }
.cta__tel { margin-top: 22px; font-size: var(--fs-note); color: rgba(255,255,255,0.9); }
.cta__tel-number { font-family: var(--font-accent); font-weight: 600; font-size: 1.5rem; margin: 0 8px; color: #fff; }
.cta__status { font-size: var(--fs-note); color: #fff; margin-top: 10px; }
.cta__status:empty { display: none; }

/* ---------- フッター ---------- */
.site-footer { padding: 48px 0 32px; background: var(--color-main-deep); color: rgba(255,255,255,0.9); }
.site-footer a { color: #fff; }
.site-footer__name { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; color: #fff; }
.site-footer__en { font-family: var(--font-accent); font-weight: 600; font-size: 0.6875rem; letter-spacing: 0.22em; color: rgba(255,255,255,0.7); }
.site-footer__info { margin-top: 12px; font-size: var(--fs-note); }
.site-footer__info p { max-width: none; }
.site-footer__nav { margin-top: 24px; }
.site-footer__nav ul { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 48px; min-width: 48px; font-size: var(--fs-note); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; }
.site-footer__photo-note { margin-top: 20px; font-size: 0.75rem; color: rgba(255,255,255,0.7); max-width: none; }
.site-footer__sample { margin-top: 16px; padding: 12px 16px; border: 1px solid rgba(255,255,255,0.35); border-radius: var(--radius-sm); font-size: var(--fs-note); font-weight: 700; color: #fff; max-width: none; }
.site-footer__copy { display: block; margin-top: 20px; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
@media (min-width: 768px) {
  .site-footer { padding-top: 64px; }
  .site-footer__nav ul { display: flex; flex-wrap: wrap; gap: 0 24px; }
}

/* ---------- フォーム ---------- */
.form-field { margin-top: 20px; }
.form-field label, .form-field .form-label { display: block; font-weight: 700; margin-bottom: 6px; }
.form-field .req { display: inline-block; margin-left: 8px; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--color-accent); padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.form-field .opt { display: inline-block; margin-left: 8px; font-size: 0.75rem; font-weight: 700; color: var(--color-note); background: var(--color-mist); padding: 1px 8px; border-radius: 999px; vertical-align: middle; }
.form-field input[type="text"], .form-field input[type="email"], .form-field input[type="tel"], .form-field input[type="date"], .form-field select, .form-field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid var(--color-line-strong); border-radius: var(--radius-sm);
  font: inherit; font-size: 1rem; color: var(--color-text); background: #fff;
}
.form-field textarea { min-height: 160px; resize: vertical; }
.form-field [aria-invalid="true"] { border-color: #B3261E; }
.form-hint { font-size: var(--fs-note); color: var(--color-note); margin-top: 6px; max-width: none; }
.form-error { font-size: var(--fs-note); color: #B3261E; font-weight: 700; margin-top: 6px; max-width: none; }
.form-error:empty { display: none; }
.choice-list { display: grid; gap: 8px; }
.choice-list label { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); background: #fff; cursor: pointer; font-weight: 400; margin: 0; }
.choice-list label:has(input:checked) { border-color: var(--color-main); background: var(--color-mist); font-weight: 700; }
.choice-list input { width: 20px; height: 20px; margin: 0; accent-color: var(--color-main); flex: none; }
@media (min-width: 600px) { .choice-list--2 { grid-template-columns: 1fr 1fr; } }
.form-consent { display: flex; align-items: flex-start; gap: 12px; margin-top: 24px; padding: 14px; border: 1px solid var(--color-line); border-radius: var(--radius-sm); }
.form-consent input { width: 22px; height: 22px; margin-top: 4px; accent-color: var(--color-main); flex: none; }
.form-consent label { font-weight: 400; margin: 0; }
.form-status { margin-top: 20px; padding: 16px 18px; border-radius: var(--radius-sm); background: var(--color-main-soft); color: var(--color-main-deep); font-weight: 700; max-width: none; }
.form-status:empty { display: none; }
.form-actions { margin-top: 28px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; font-weight: 700; margin-bottom: 8px; }

/* ---------- カスハラ診断（見本） ---------- */
.check { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow); }
.check__bar { height: 8px; border-radius: 999px; background: var(--color-mist); overflow: hidden; margin: 12px 0 8px; }
.check__bar span { display: block; height: 100%; width: 0; background: var(--color-main); border-radius: 999px; transition: width 0.5s cubic-bezier(.2,.7,.2,1); }
.check__count { font-size: var(--fs-note); color: var(--color-note); }
.check__q { padding: 18px 0; border-bottom: 1px solid var(--color-line); }
.check__q legend { font-weight: 700; display: flex; gap: 10px; }
.check__q legend .num { color: var(--color-main); flex: none; }
.check__q .choice-list { grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.check__q .choice-list label { position: relative; min-height: 48px; padding: 6px 8px; justify-content: center; font-size: var(--fs-note); white-space: nowrap; }
.check__q .choice-list input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__q .choice-list label:has(input:focus-visible) { outline: 3px solid var(--color-accent); outline-offset: 3px; }
.check__q .choice-list label:has(input:checked)::before { content: "✓"; margin-right: 4px; color: var(--color-main); }
@media (max-width: 399px) { .check__q .choice-list label { font-size: 0.8125rem; padding: 6px 4px; } }
.check__hint { font-size: 0.8125rem; color: var(--color-note); margin-top: 6px; max-width: none; }
.check__result { margin-top: 24px; padding: 20px 22px; border-radius: var(--radius-sm); background: var(--color-mist); }
.check__result h3 { font-size: var(--fs-h3); }
.check__result p { max-width: none; }
.check__result .num { font-size: 2rem; color: var(--color-main); }
.check__result ul { margin-top: 10px; }
.check__result li { position: relative; padding-left: 1.2em; font-size: var(--fs-note); }
.check__result li::before { content: "・"; position: absolute; left: 0; }
.check__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }

/* ---------- ひな形ダウンロード（見本） ---------- */
.docs { display: grid; gap: var(--card-gap); }
.doc { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.doc__icon { width: 56px; height: 56px; color: var(--color-main); }
.doc h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.doc__meta { font-size: 0.8125rem; color: var(--color-note); max-width: none; }
.doc p { max-width: none; font-size: var(--fs-note); margin-top: 6px; }
.doc__actions { grid-column: 1 / -1; margin-top: 6px; }
.doc__status { grid-column: 1 / -1; font-size: var(--fs-note); color: var(--color-main-deep); font-weight: 700; max-width: none; }
.doc__status:empty { display: none; }
@media (min-width: 1024px) { .docs { grid-template-columns: repeat(3, 1fr); } }

/* ---------- 予約の流れ（見本） ---------- */
.booking { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); padding: var(--card-pad); box-shadow: var(--shadow); }
.booking__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 24px; }
.booking__progress li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: var(--radius-sm); background: var(--color-mist); font-size: 0.75rem; text-align: center; color: var(--color-note); }
.booking__progress-num { font-family: var(--font-accent); font-weight: 600; font-size: 1rem; }
.booking__progress li[aria-current="step"] { background: var(--color-main); color: #fff; font-weight: 700; }
.booking__progress li.is-done { background: var(--color-main-soft); color: var(--color-main-deep); }
.booking__legend { font-family: var(--font-head); font-size: var(--fs-h3); font-weight: 700; margin-bottom: 6px; }
.booking__legend:focus { outline: none; }
.booking__help { font-size: var(--fs-note); color: var(--color-note); max-width: none; }
.booking__summary { margin-top: 10px; }
.booking__summary div { display: grid; grid-template-columns: 7em 1fr; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--color-line); font-size: var(--fs-note); }
.booking__summary dt { font-weight: 700; color: var(--color-main-deep); }
.booking__summary dd { overflow-wrap: anywhere; }
.booking__nav { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.booking__done { text-align: center; padding: 16px 0; }
.booking__done h3 { font-size: var(--fs-h2); }
.booking__done p { margin-inline: auto; margin-top: 12px; }
.booking__sample { margin-top: 14px; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--color-accent-pale); color: var(--color-accent-text); font-weight: 700; font-size: var(--fs-note); max-width: none; }
.row-2 { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .row-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- 電話のカード ---------- */
.tel-card { text-align: center; }
.tel-card__number { font-family: var(--font-accent); font-weight: 600; font-size: 2rem; color: var(--color-text); }
.tel-card p { max-width: none; }
.tel-card__btn { margin-top: 14px; }
.tel-card__status { margin-top: 12px; font-size: var(--fs-note); color: var(--color-main-deep); font-weight: 700; }
.tel-card__status:empty { display: none; }

/* ---------- よくある質問 ---------- */
.faq-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.faq-group + .faq-group { margin-top: 48px; }
.faq-group h2 { font-size: var(--fs-h2); margin-bottom: 20px; }
.faq { background: #fff; border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq + .faq { margin-top: 12px; }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; min-height: 56px; font-family: var(--font-head); font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq-mark { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--color-main); color: #fff; font-family: var(--font-accent); font-weight: 600; font-size: 0.875rem; display: inline-flex; align-items: center; justify-content: center; }
.faq-answer { padding: 0 20px 20px 62px; }
.faq-answer p { max-width: none; }
.faq-answer p + p { margin-top: 0.8em; }
.faq-answer a { font-weight: 700; }
.glossary-link { margin-top: 24px; }

/* ---------- プロフィール ---------- */
.profile { display: grid; gap: 28px; }
.profile__list dt { font-weight: 700; color: var(--color-main-deep); margin-top: 14px; }
.profile__list dd { margin-top: 2px; }
.profile__timeline li { position: relative; padding: 10px 0 10px 28px; border-left: 2px solid var(--color-line); }
.profile__timeline li::before { content: ""; position: absolute; left: -7px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-main); }
.profile__timeline .num { color: var(--color-main); margin-right: 8px; }
@media (min-width: 768px) { .profile { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- 404 ---------- */
.notfound { text-align: center; padding-block: var(--section-y); }
.notfound__code { font-family: var(--font-accent); font-weight: 600; font-size: 5rem; line-height: 1; color: var(--color-main); }
.notfound h1 { font-size: var(--fs-h1); margin-top: 12px; }
.notfound p { margin-inline: auto; margin-top: 14px; }
.notfound .btn-group { justify-content: center; }

/* ---------- プライバシーポリシーなどの文書 ---------- */
.doc-body h2 { font-size: var(--fs-h3); margin-top: 36px; margin-bottom: 10px; padding-left: 14px; border-left: 4px solid var(--color-main); }
.doc-body ul, .doc-body ol { margin-top: 8px; }
.doc-body ul li, ul.doc-body > li { position: relative; padding-left: 1.2em; }
.doc-body ul li::before, ul.doc-body > li::before { content: "・"; position: absolute; left: 0; }
.doc-body ol { list-style: decimal; padding-left: 1.6em; }
.doc-body p, .doc-body li { max-width: none; }

/* ---------- 印刷 ---------- */
@media print {
  .site-header, .consult-bar, .skip-link, .btn, .btn-group, .cta, .consult-band, .menu-toggle, .global-nav, .header-icon, .hero__bg, .form-actions, .booking, .check, .doc__actions { display: none !important; }
  body { background: #fff; color: #000; }
  html.js .reveal, html.js .reveal--stagger > *, html.js .photo--reveal img, html.js .hero__photo.photo--reveal img { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .site-footer { background: #fff; color: #000; padding: 16px 0; border-top: 1px solid #000; }
  .site-footer a { color: #000; }
  .site-footer__sample { border-color: #000; color: #000; }
  .site-footer__nav { display: none; }
  details { break-inside: avoid; }
  details > *:not(summary) { display: block; }
  .card, .timeline__card, .flow__item, .faq { box-shadow: none; break-inside: avoid; }
  html.js .price-wrap--table { display: block !important; }
  html.js .plan-cards { display: none !important; }
  .price-table thead th { position: static; }
  a[href^="http"]::after { content: "（" attr(href) "）"; font-size: 0.75rem; }
}

/* 改行の決まり（2026-10-31・tools/kaigyo） */
/* 日本語は文節（HTML に入れた <wbr>）で折る。入りきらない長い英数字だけ、どこでも折る */
body { word-break: keep-all; overflow-wrap: anywhere; line-break: strict; }
h1, h2, h3, h4, h5, h6 { text-wrap: balance; }
p, li, dt, dd, th, td, figcaption, summary, blockquote { text-wrap: pretty; }
/* 表は、列の幅を文節より細くしない（「手／続き」のような割れを防ぐ） */
th, td { overflow-wrap: break-word; }
/* PC だけ・スマホだけで効く改行（改行エディタで入れたもの） */
@media (max-width: 1023px) { br.pc-only { display: none; } }
@media (min-width: 1024px) { br.sp-only { display: none; } }

/* 文字の大きさと折り方 案D（2026-10-31・ボス「整体 CONCEPT の前」を基準に）
   <html data-moji="d"> のときだけ効く（やめるときは HTML の data-moji を外す）
   基準：見出し大は1行12〜13字・本文は1行21字前後・行間1.9・字間は palt（スマホ）
   2026-10-31 夕 ボス「もうワンサイズ下げて、1行の字数を増やして」：見出し大24px・本文15px（1行22〜23字）・注釈13px
   折り方（PC・スマホ共通）：
   ・本文は行いっぱいまで使って折る（行の長さがそろって読みやすい）。行の頭に「。、）ー」などが来ないよう厳しい禁則。最後の行が1〜2字だけにならないようにする
   ・見出し・ボタン・札は文節（<wbr>）で折る。1行目は入るだけ入れる（2行を同じ長さにそろえない） */
:root {
  --d-h1: 25px; --d-h2: 24px; --d-h3: 18px; --d-h4: 15px;
  --d-body: 15px; --d-lead: 15px; --d-note: 13px; --d-btn: 14px;
  --d-lh-body: 1.9; --d-lh-head: 1.5; --d-ls-head: 0.03em;
}
html[data-moji="d"] :is(p, li, dd, td, figcaption, blockquote) {
  word-break: normal; overflow-wrap: anywhere; line-break: strict; text-wrap: pretty;
}
html[data-moji="d"] :is(h1, h2, h3, h4, h5, h6, dt, th, .btn, [class*="btn"], button, [class*="title"], [class*="label"], [class*="badge"], [class*="tag"]) {
  word-break: keep-all; overflow-wrap: anywhere; line-break: strict; text-wrap: pretty;
}
/* 短い文（60字まで・data-wrap="phrase"）と、まん中そろえの文は、文節で折る（1〜2行の文は、言葉の途中で折れると目立つため） */
html[data-moji="d"] [data-wrap="phrase"] { word-break: keep-all; }
html[data-moji="d"] :is([class*="center"], [class*="cta"]):not(body) :is(p, li) { word-break: keep-all; text-wrap: pretty; }
/* 見出しと短い文は「句」（、。！？まで）ごとに包んである（<span class="kc">）。1行に入る句は途中で折らず、句と句のあいだで折る */
html[data-moji="d"] .kc { display: inline-block; }
@media (max-width: 767px) {
  html[data-moji="d"] body { font-feature-settings: "palt"; }
  html[data-moji="d"] h1 { font-size: var(--d-h1) !important; line-height: var(--d-lh-head) !important; letter-spacing: var(--d-ls-head) !important; }
  html[data-moji="d"] h2 { font-size: var(--d-h2) !important; line-height: var(--d-lh-head) !important; letter-spacing: var(--d-ls-head) !important; }
  html[data-moji="d"] h3 { font-size: var(--d-h3) !important; line-height: 1.6 !important; }
  html[data-moji="d"] :is(h4, dt, th) { font-size: var(--d-h4) !important; }
  html[data-moji="d"] :is(p, li, dd, td, figcaption, blockquote) { font-size: var(--d-body) !important; line-height: var(--d-lh-body) !important; letter-spacing: normal !important; }
  html[data-moji="d"] [class*="lead"] { font-size: var(--d-lead) !important; }
  html[data-moji="d"] :is([class*="note"], small, figcaption, [class*="caption"]) { font-size: var(--d-note) !important; line-height: 1.8 !important; }
  html[data-moji="d"] :is(.btn, [class*="btn"], button) { font-size: var(--d-btn) !important; }
}
