@charset "UTF-8";
/* =========================================================
   せりかわパートナーズ 共通スタイル
   - 見出し：Shippori Mincho / 本文：Noto Sans JP
   - 本文16px以上・コントラスト比4.5:1以上を基準に配色
   - サービスごとに控えめな差し色で区別（税務＝--tax／会計・経営支援＝--accounting／行政書士＝--gyosei）
   ========================================================= */

/* ---------- 1. デザイントークン ---------- */
:root {
  /* ベース */
  --bg: #faf8ff;
  --surface: #ffffff;
  --surface-tint: #f5f1fc;
  --line: #e3dbf2;
  --line-strong: #cfc2e8;

  /* 文字（#faf8ff上でのコントラスト比） */
  --text: #2f2a44;        /* 13.0:1 */
  --text-sub: #4a4462;    /*  8.7:1 */
  --muted: #5f5878;       /*  6.3:1 */
  --heading: #3a3550;     /* 明朝体見出し・サイト名（旧サイトと同色）11.0:1 */

  /* ブランド（淡い紫） */
  --brand: #5b3f94;       /* 白文字 8.0:1 */
  --brand-hover: #4a3279;
  --brand-mid: #8b6abf;   /* 装飾専用（文字には使わない） */
  --brand-pale: #c4b5e8;  /* 装飾専用 */
  --brand-soft: #efe9fa;

  /* サービス差し色 */
  --tax: #5b3f94;          --tax-soft: #efe9fa;
  --accounting: #1f5a8a;   --accounting-soft: #e7f0f9;
  --gyosei: #1f6b57;       --gyosei-soft: #e5f3ed; /* 行政書士サービス */

  /* LINE */
  --line-green: #06c755;
  --line-text: #036b2d;    /* 白背景で6.6:1 */

  /* 形・影 */
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-s: 0 2px 10px rgba(91, 63, 148, .07);
  --shadow-m: 0 10px 32px rgba(91, 63, 148, .12);

  /* レイアウト */
  --container: 1120px;
  --gutter: 16px;
  --header-h: 64px;

  /* 文字 */
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  --font-serif: "Shippori Mincho", "Hiragino Mincho ProN", "Yu Mincho", serif;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1240px) { :root { --header-h: 76px; } }

/* ---------- 2. リセット・ベース ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;           /* 16px */
  line-height: 1.9;
  color: var(--text);
  background-color: var(--bg);
  overflow-wrap: anywhere;
  line-break: strict;
}
body.is-menu-open { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: .2em; }
a:hover { color: var(--brand-hover); }
h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; line-height: 1.55; margin: 0; color: var(--heading); letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--brand); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-s);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 背景の淡いにじみ（現行サイトの雰囲気を継承） */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .32; }
.bg-blobs span:nth-child(1) { top: -10%; left: -12%; width: 520px; height: 520px; background: #ddd0f8; }
.bg-blobs span:nth-child(2) { bottom: -5%; right: -10%; width: 600px; height: 600px; background: #c8dff8; }
.bg-blobs span:nth-child(3) { top: 35%; right: 10%; width: 340px; height: 340px; background: #f8d6e7; }
@media (max-width: 767px) {
  .bg-blobs span { filter: blur(50px); opacity: .22; }
  .bg-blobs span:nth-child(3) { display: none; }
}

/* ---------- 3. レイアウト ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: 64px; }
@media (min-width: 900px) { .section { padding-block: 88px; } }
.section--tint { background: rgba(255, 255, 255, .55); border-block: 1px solid rgba(227, 219, 242, .6); }

.section-head { text-align: center; margin-bottom: 40px; }
.section-head__en {
  display: block; font-family: var(--font-sans); font-size: .875rem; font-weight: 700;
  letter-spacing: .24em; color: var(--muted); margin-bottom: .35rem;
}
.section-head__title { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
.section-head__lead { margin: 1rem auto 0; max-width: 42em; color: var(--text-sub); }

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

/* ---------- 4. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .75rem 1.6rem; border-radius: 999px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 700; line-height: 1.4;
  text-decoration: none; text-align: center; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(91, 63, 148, .25); }
.btn--primary:hover { background: var(--brand-hover); color: #fff; }
.btn--secondary { background: var(--surface); color: var(--brand); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--brand); color: var(--brand-hover); }
.btn--line { background: var(--surface); color: var(--line-text); border-color: var(--line-green); }
.btn--line:hover { background: #f0fbf4; color: var(--line-text); }
.btn--line::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--line-green); flex: none;
}
.btn--block { width: 100%; }
@media (max-width: 479px) { .btn-row .btn { width: 100%; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row--center { justify-content: center; }
.ext::after { content: "↗"; font-weight: 400; margin-left: .1em; }

/* ---------- 5. ヘッダー・ナビゲーション ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 1240px) { .site-header { background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px); } }
}
/* 行政書士サービスの追加でメニューが8項目になったため、PCメニューは1240px以上で表示し、ヘッダー行だけ本文より広い幅を使う */
.site-header__inner.container { max-width: 1280px; }
.brand, .gnav__cta { flex-shrink: 0; white-space: nowrap; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.brand { display: flex; flex-direction: column; text-decoration: none; color: var(--text); line-height: 1.3; }
.brand:hover { color: var(--text); }
.brand__en { font-size: .8125rem; letter-spacing: .22em; font-weight: 700; color: var(--muted); }
.brand__name { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; letter-spacing: .02em; color: var(--heading); }
@media (min-width: 1240px) { .brand__name { font-size: 1.4rem; } }

.gnav { display: none; }
.gnav__list { list-style: none; display: flex; align-items: center; gap: 4px; }
.gnav__link {
  display: block; padding: .5rem .7rem; border-radius: 8px;
  font-size: .9375rem; font-weight: 700; color: var(--text-sub); text-decoration: none; white-space: nowrap;
}
.gnav__link:hover, .gnav__link[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.gnav__cta { margin-left: 8px; min-height: 44px; padding: .55rem 1.2rem; font-size: .9375rem; }
@media (min-width: 1240px) { .gnav { display: block; } }

.menu-btn {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 60px; height: 56px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--text); cursor: pointer; padding: 0;
}
.menu-btn__bars, .menu-btn__bars::before, .menu-btn__bars::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
  transition: transform .25s, background-color .25s;
}
.menu-btn__bars::before, .menu-btn__bars::after { content: ""; position: absolute; left: 0; }
.menu-btn__bars::before { top: -7px; }
.menu-btn__bars::after { top: 7px; }
.menu-btn__label { font-size: .75rem; font-weight: 700; letter-spacing: .08em; margin-top: 6px; line-height: 1; }
.menu-btn[aria-expanded="true"] .menu-btn__bars { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-btn__bars::before { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars::after { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1240px) { .menu-btn { display: none; } }

.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--surface); overflow-y: auto; overscroll-behavior: contain;
  padding: 16px var(--gutter) 40px;
  border-top: 1px solid var(--line);
}
.drawer[hidden] { display: none; }
.drawer__group + .drawer__group { margin-top: 20px; }
.drawer__heading { font-size: .875rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); margin: 0 0 4px; font-family: var(--font-sans); }
.drawer__list { list-style: none; }
.drawer__list a {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px;
  padding: .6rem .25rem; border-bottom: 1px solid var(--line);
  color: var(--text); font-weight: 700; text-decoration: none;
}
.drawer__list a::after { content: "›"; color: var(--brand-mid); font-size: 1.25rem; }
.drawer__cta { margin-top: 24px; display: grid; gap: 12px; }
@media (min-width: 1240px) { .drawer { display: none !important; } }

/* ---------- 6. ヒーロー ---------- */
.hero { padding-block: 40px 56px; }
@media (min-width: 900px) { .hero { padding-block: 72px 88px; } }
.hero__inner { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 56px; } }
.hero__badge {
  display: inline-block; padding: .35rem 1rem; border-radius: 999px; margin-bottom: 1.25rem;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .875rem; font-weight: 700; color: var(--text-sub); letter-spacing: .06em;
}
.hero__title { font-size: clamp(1.9rem, 1.3rem + 2.6vw, 3rem); line-height: 1.65; letter-spacing: .02em; margin-bottom: 1.25rem; }
.hero__lead { font-size: 1.0625rem; color: var(--text-sub); max-width: 34em; margin-bottom: 1.75rem; }
.hero__note { font-size: .9375rem; color: var(--muted); margin: 1rem 0 0; }
.hero__photo { position: relative; max-width: 320px; margin-inline: auto; width: 100%; }
@media (min-width: 900px) { .hero__photo { max-width: 380px; } }
.hero__photo-frame {
  border-radius: 44px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--brand-soft);
  box-shadow: 0 20px 56px rgba(139, 106, 191, .28);
}
.hero__photo-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.hero__name {
  position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%);
  background: rgba(255, 255, 255, .96); border: 1px solid var(--line-strong); border-radius: 999px;
  padding: .45rem 1.6rem; text-align: center; white-space: nowrap; box-shadow: var(--shadow-s);
}
.hero__name-ja { display: block; font-family: var(--font-serif); font-size: 1.125rem; font-weight: 600; letter-spacing: .12em; color: var(--heading); }
.hero__name-role { display: block; font-size: .875rem; color: var(--muted); letter-spacing: .08em; }

/* ---------- 7. カード共通 ---------- */
.card {
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 28px 24px; box-shadow: var(--shadow-s);
}
@media (min-width: 900px) { .card { padding: 32px 30px; } }
.card__title { font-size: 1.25rem; margin-bottom: .75rem; }
.card__text { color: var(--text-sub); }
.tag {
  display: inline-block; padding: .2rem .8rem; border-radius: 999px; font-size: .875rem; font-weight: 700;
  line-height: 1.6; background: var(--brand-soft); color: var(--brand);
}
.tag--tax { background: var(--tax-soft); color: var(--tax); }
.tag--accounting { background: var(--accounting-soft); color: var(--accounting); }
.tag--gyosei { background: var(--gyosei-soft); color: var(--gyosei); }
.check-list { list-style: none; }
.check-list li { position: relative; padding: .45rem 0 .45rem 1.6rem; border-bottom: 1px dashed var(--line); color: var(--text-sub); }
.check-list li:last-child { border-bottom: 0; }
.check-list li::before { content: "✓"; position: absolute; left: .1rem; top: .45rem; color: var(--brand-mid); font-weight: 700; }
.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .3em; }
.text-link::after { content: "→"; transition: transform .2s; }
.text-link:hover::after { transform: translateX(3px); }
.note { font-size: .9375rem; color: var(--muted); }
.note-list { list-style: none; font-size: .9375rem; color: var(--muted); }
.note-list li { padding-left: 1.2em; text-indent: -1.2em; }
.note-list li::before { content: "※"; margin-right: .2em; }

/* ---------- 8. サービスカード ---------- */
.service-card { border-top: 4px solid var(--brand-mid); display: flex; flex-direction: column; }
.service-card--tax { border-top-color: var(--tax); }
.service-card--accounting { border-top-color: var(--accounting); }
.service-card--gyosei { border-top-color: var(--gyosei); }
.service-card__office { font-size: .9375rem; color: var(--muted); margin: .5rem 0 1rem; }
.service-card .check-list { margin: 1rem 0 1.5rem; }
.service-card > .tag, .office-card > .tag, .theme-card .tag { align-self: flex-start; }
.service-card__foot { margin-top: auto; }

/* ---------- 9. 相談テーマ ---------- */
.theme-card {
  display: flex; flex-direction: column; gap: .75rem; text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.theme-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-strong); color: var(--text); }
.theme-card__title { font-size: 1.1875rem; }
/* 相談テーマ：タブレット（2列）・PC（3列）ではカードの高さをそろえる */
@media (min-width: 640px) { #theme .grid { grid-auto-rows: 1fr; } }
.theme-card__text { color: var(--text-sub); margin: 0; }
.theme-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: .5rem; }
.theme-card__more { font-weight: 700; color: var(--brand); }
.theme-card__more::after { content: " →"; }

/* ---------- 10. 強み ---------- */
.strength { text-align: left; }
.strength__num { font-family: var(--font-serif); font-size: 1.75rem; color: var(--brand-mid); line-height: 1; display: block; margin-bottom: .75rem; }
.strength__title { font-size: 1.1875rem; margin-bottom: .75rem; }

/* ---------- 11. 事務所 ---------- */
.office-card__name { font-size: 1.25rem; margin: .75rem 0 1rem; }
.office-card dl { display: grid; grid-template-columns: 5.5em 1fr; gap: .4rem 1rem; margin: 0 0 1.25rem; }
.office-card dt { font-weight: 700; color: var(--muted); font-size: .9375rem; padding-top: .1em; }
.office-card dd { margin: 0; color: var(--text-sub); }
.visit-note {
  margin-top: 24px; padding: 18px 20px; border-radius: var(--radius-m);
  background: var(--surface); border: 1px solid var(--line); color: var(--text-sub);
}
.partner-note { margin-top: 12px; }

/* ---------- 12. プロフィール ---------- */
.profile { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .profile { grid-template-columns: 320px 1fr; gap: 56px; } }
.profile__photo { border-radius: 36px; overflow: hidden; max-width: 320px; margin-inline: auto; box-shadow: 0 16px 44px rgba(139, 106, 191, .22); }
.profile__name { font-size: 1.75rem; letter-spacing: .1em; }
.profile__name-en { color: var(--muted); letter-spacing: .16em; font-size: .9375rem; margin: .25rem 0 1rem; }
.profile__quals { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.25rem; list-style: none; }
.timeline { list-style: none; position: relative; margin: 0 0 1rem; padding-left: 1.4rem; }
.timeline::before { content: ""; position: absolute; left: .35rem; top: .6rem; bottom: .6rem; width: 2px; background: var(--line-strong); }
.timeline li { position: relative; padding: .35rem 0; }
.timeline li::before {
  content: ""; position: absolute; left: -1.4rem; top: 1rem; width: .7rem; height: .7rem; border-radius: 50%;
  background: var(--surface); border: 2px solid var(--brand-mid); transform: translateX(.02rem);
}
.timeline__when { display: block; font-size: .9375rem; color: var(--muted); font-weight: 700; }
.timeline__what { display: block; font-weight: 700; color: var(--text); }
.timeline__sub { display: block; font-size: .9375rem; color: var(--text-sub); }
.other-roles { margin-top: 1.25rem; padding-top: 1rem; border-top: 1px dashed var(--line-strong); }
.other-roles__title { font-family: var(--font-sans); font-size: .9375rem; color: var(--muted); letter-spacing: .08em; margin-bottom: .25rem; }

/* ---------- 13. お客様の声 ---------- */
.review { display: flex; flex-direction: column; gap: 1rem; border-top: 4px solid var(--brand-pale); margin: 0; }
.review__text { margin: 0; color: var(--text-sub); }
.review__meta { margin-top: auto; }
.review-source { text-align: center; margin: -16px auto 32px; color: var(--text-sub); }

/* ---------- 14. コラムカード ---------- */
.post-grid { display: grid; gap: 20px; list-style: none; }
@media (min-width: 600px) and (max-width: 1023px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.post-card { height: 100%; }
.post-card__link {
  display: flex; flex-direction: column; gap: .6rem; height: 100%; text-decoration: none; color: var(--text);
  transition: transform .2s, box-shadow .2s;
}
.post-card__link:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); color: var(--text); }
.post-card__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.post-card__date { font-size: .9375rem; color: var(--muted); }
.post-card__title { font-family: var(--font-sans); font-size: 1.0625rem; line-height: 1.7; }
.post-card__excerpt {
  margin: 0; color: var(--text-sub); font-size: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-more { text-align: center; margin-top: 36px; }

/* ---------- 15. お知らせ ---------- */
.news-list { list-style: none; background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 0 24px; }
.news-item { display: grid; gap: .35rem 1.5rem; padding: 22px 0; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; }
@media (min-width: 720px) { .news-item { grid-template-columns: 7.5em 1fr; } }
.news-item__meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
@media (min-width: 720px) { .news-item__meta { flex-direction: column; align-items: flex-start; } }
.news-item__date { color: var(--muted); font-size: .9375rem; }
.news-item__title { font-family: var(--font-sans); font-size: 1.0625rem; margin-bottom: .35rem; }
.news-item__title a { text-decoration: none; }
.news-item__title a:hover { text-decoration: underline; }
.news-item__text { margin: 0; color: var(--text-sub); }

/* ---------- 16. 料金 ----------
   料金ページ共通のデザインルール（基準：会計・経営支援のカード）
   - カード：.card（枠線・角丸・余白・影）＋ .card__title（明朝体）
   - 金額・「個別見積り」：.price-amount（明朝体・700・アクセントカラー）
   - 項目名・条件・補足：ゴシック体（本文の font-family を継承）、太字にしない
   - アクセントカラーは担当事務所ごと（.price-scope--tax／.price-scope--accounting）で切り替え
*/
.price-scope--tax { --price-accent: var(--tax); }
.price-scope--accounting { --price-accent: var(--accounting); }
.price-scope--gyosei { --price-accent: var(--gyosei); }

.price-summary { display: grid; gap: 20px; }
@media (min-width: 720px) { .price-summary { grid-template-columns: repeat(2, 1fr); } }
.price-from { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 700; color: var(--brand); line-height: 1.3; }
.price-from small { font-family: var(--font-sans); font-size: .9375rem; color: var(--muted); font-weight: 400; margin-left: .25em; }
.price-lead { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; box-shadow: var(--shadow-s); }
.price-lead strong { color: var(--price-accent, var(--brand)); }

/* 担当事務所の表記：見出し直下の補足情報（本文と同じゴシック体・15px、枠・背景・線なし）
   事務所名はサービス別の既存アクセントカラー（税務＝--tax／会計＝--accounting） */
.office-label { margin: 0; padding: 0; font-family: var(--font-sans); font-size: .9375rem; line-height: 1.6; background: none; border: 0; }
.office-label__title { color: var(--text-sub); font-weight: 400; }
.office-label__name { color: var(--text); font-weight: 500; }
.office-label--tax .office-label__name { color: var(--tax); }
.office-label--accounting .office-label__name { color: var(--accounting); }
.office-label--gyosei .office-label__name { color: var(--gyosei); }
.office-label--card { margin: calc(4px - .75rem) 0 .75rem; }
/* 見出し＋担当事務所をひとまとまりにし、その下に紫の横線 */
.price-heading { margin: .75rem 0 1.5rem; padding-bottom: .6rem; border-bottom: 2px solid var(--brand-pale); }
.price-heading .price-block__title { margin: 0; padding: 0; border: 0; }
.price-heading .office-label { margin-top: 4px; }
.price-block + .price-block { margin-top: 64px; }
.price-block__title { font-size: clamp(1.375rem, 1.2rem + .8vw, 1.75rem); padding-bottom: .6rem; border-bottom: 2px solid var(--brand-pale); margin: .75rem 0 1.5rem; }
.price-sub { font-size: 1.25rem; margin: 40px 0 16px; padding-left: .75rem; border-left: 4px solid var(--brand-mid); }

/* 共通：金額表示 */
.price-amount { font-family: var(--font-serif); font-weight: 700; font-size: 1.375rem; line-height: 1.35; color: var(--price-accent, var(--brand)); margin: .25rem 0 .75rem; white-space: nowrap; }
.price-amount--lg { font-size: 1.875rem; margin-bottom: 0; }
.price-amount--lg .unit { font-size: 1.125rem; margin-left: .1em; }
.price-amount .price-prefix { margin: 0 .35em 0 0; }
.price-amount--row { font-size: 1.0625rem; margin: 0; }
.price-formula { white-space: normal; margin: .25rem 0 .5rem; } /* 決算・確定申告料の算定式（スマートフォンで折り返す） */
.price-amount small { font-family: var(--font-sans); font-size: .9375rem; font-weight: 400; color: var(--muted); margin-left: .2em; }

/* 共通：カード内の小見出し（ゴシック・中程度の太さ） */
.price-card__label { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 .25rem; letter-spacing: 0; }

/* 顧問料に含まれるもの・別料金となるもの（外側：.card／内側：2つのパネル＋補足） */
.fee-box__grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .fee-box__grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.fee-panel { border-radius: var(--radius-m); padding: 20px 22px; }
.fee-panel__title { font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 700; margin: 0 0 .6rem; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; letter-spacing: .02em; }
/* 含まれるもの：ラベンダー */
.fee-panel--included { background: var(--brand-soft); border: 1px solid #e2d8f4; }
.fee-panel--included .fee-panel__title { color: #33285c; }
.fee-panel__lead {
  display: flex; align-items: flex-start; gap: .65rem; margin: 0; text-align: left; color: #3d3850;
  word-break: auto-phrase; /* 対応ブラウザでは文節単位で改行 */
}
.fee-panel__lead::before {
  content: "✓"; flex: none; width: 1.4rem; height: 1.4rem; margin-top: .25rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .8125rem; font-weight: 700; line-height: 1.4rem; text-align: center;
}
/* 別料金：ごく薄いベージュ */
.fee-panel--extra { background: #fbf8f2; border: 1px solid #ece4d6; }
.fee-panel--extra .fee-panel__title { color: #33285c; }
.fee-list { list-style: none; }
.fee-list li { position: relative; padding: .5rem 0 .5rem 1.1rem; border-bottom: 1px solid #ece4d6; color: #3d3850; }
.fee-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.fee-list li::before { content: ""; position: absolute; left: .1rem; top: 1.1rem; width: .4rem; height: .4rem; border-radius: 50%; background: #c9b99c; }
.fee-list .price-amount { display: inline; color: var(--brand); }
.fee-list__desc, .fee-list__price { display: block; }
.fee-list li { word-break: auto-phrase; } /* 対応ブラウザでは文節単位で改行 */
.fee-link {
  display: inline-block; margin-left: .35rem; padding: .05rem .7rem; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--brand);
  font-size: .875rem; font-weight: 700; text-decoration: none; white-space: nowrap; line-height: 1.8; vertical-align: .05em;
}
.fee-link::after { content: " →"; }
.fee-link:hover { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-hover); }
/* 補足説明：薄いグレー */
.fee-box__note { margin-top: 16px; padding: 14px 18px; border-radius: var(--radius-s); background: #f4f3f6; color: var(--muted); font-size: .875rem; line-height: 1.8; }
.fee-box__note p { margin: 0; }
.fee-box__note p + p { margin-top: .4rem; }

/* 共通：料金の行（オプション・加算表） */
.price-rows { margin: 0; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem 1rem; padding: .6rem 0; border-bottom: 1px solid #eee8f6; }
.price-row:first-child { padding-top: .1rem; }
.price-row:last-child { border-bottom: 0; }
.price-row dt { color: var(--text-sub); font-weight: 400; flex: 1 1 auto; min-width: 0; }
.price-row dd { margin: 0; text-align: right; flex: none; }
.price-row .price-amount--plain { font-family: var(--font-sans); font-weight: 400; font-size: 1rem; color: var(--text-sub); }
.price-card .note { margin: .9rem 0 0; }

/* カードの並び（全料金カード共通の間隔） */
.plan-grid, .quote-grid, .option-grid { display: grid; gap: 20px; list-style: none; align-items: start; }
@media (min-width: 900px) {
  .plan-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
  .quote-grid, .option-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) { .plan-grid, .quote-grid, .option-grid { gap: 24px; } }

/* 顧問プラン */
.plan { display: flex; flex-direction: column; }
.plan__target { color: var(--text-sub); margin: 0 0 1rem; min-height: 3.6em; }
.plan__unit { font-size: .9375rem; color: var(--muted); margin: .25rem 0 0; }
.plan__annual { font-size: .9375rem; color: var(--text-sub); margin: .25rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
/* 決算・確定申告料と年間総額の目安（プランカード内） */
.plan__fees { margin: .9rem 0 0; padding: .6rem .9rem; border-radius: var(--radius-s); background: var(--surface-tint); }
.plan__fee { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: .1rem .75rem; padding: .35rem 0; }
.plan__fee + .plan__fee { border-top: 1px solid #e6dff2; }
.plan__fee dt { color: var(--text-sub); font-size: .9375rem; flex: 1 1 auto; min-width: 0; word-break: auto-phrase; }
.plan__fee dd { margin: 0 0 0 auto; font-family: var(--font-serif); font-weight: 700; font-size: 1.0625rem; color: var(--price-accent, var(--brand)); white-space: nowrap; }
.plan__fee--total dt { color: var(--text); font-weight: 500; }
.plan__fee--total dd { font-size: 1.1875rem; }
.plan__fee-cond { display: block; font-size: .9375rem; color: var(--muted); }
.plan__fee-note { font-size: .9375rem; color: var(--muted); line-height: 1.7; margin: .5rem 0 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
/* 新規契約向けの注記・トップページの決算料表示 */
.price-notice { max-width: 46em; margin: .75rem 0 0; padding: .7rem 1rem; border-left: 4px solid var(--brand-mid); background: rgba(255, 255, 255, .85); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--text); font-size: 1rem; line-height: 1.75; }
.price-summary .price-amount { white-space: normal; } /* 狭い画面で折り返す */
.price-summary__sub { margin: .5rem 0 0; color: var(--text-sub); font-size: 1rem; line-height: 1.7; }
.sim__fixed { margin: 0 0 24px; }
.sim__fixed .sim__count { margin-top: 0; }
.plan .check-list { margin-top: .25rem; }
.plan__excludes { margin-top: .4rem; }
.plan__note { margin: 1rem 0 0; padding: .75rem .9rem; border-radius: var(--radius-s); background: var(--surface-tint); font-size: .9375rem; color: var(--text-sub); line-height: 1.75; }

/* 加算表・具体例 */
.price-detail { display: grid; gap: 20px; margin-top: 24px; align-items: start; }
@media (min-width: 900px) { .price-detail { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .price-detail { gap: 24px; } }
.example-list { display: grid; gap: 16px; list-style: none; align-content: start; }
.example { background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; }
.example__head { font-family: var(--font-serif); font-weight: 600; font-size: 1.0625rem; margin: 0 0 .35rem; color: var(--heading); }
.example__calc { color: var(--text-sub); margin: 0; }
.example__cond { color: var(--muted); font-size: .9375rem; line-height: 1.7; margin: 0 0 .35rem; }
.example .price-amount { margin: .35rem 0 0; white-space: normal; }
.price-detail > *, .example-list > *, .option-grid > * { min-width: 0; } /* 狭い画面で横にはみ出さない */
.example__calc { overflow-wrap: anywhere; }

/* 旧テーブル（他ページでの利用に備えて残す） */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-s); border: 1px solid var(--line); background: var(--surface); }
.data-table { min-width: 100%; font-size: 1rem; }
.data-table th, .data-table td { padding: .8rem 1rem; border-bottom: 1px solid #eee8f6; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--surface-tint); color: var(--text); font-size: .9375rem; white-space: nowrap; }
.data-table tbody th { font-weight: 400; color: var(--text-sub); }
.data-table tr:last-child > * { border-bottom: 0; }

/* ---------- 17. シミュレーター（料金カードと同じ枠・影） ---------- */
.sim { background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px 24px; box-shadow: var(--shadow-s); }
@media (min-width: 900px) { .sim { padding: 32px 30px; } }
.sim__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .sim__grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
.sim fieldset { border: 0; padding: 0; margin: 0 0 24px; min-width: 0; }
.sim legend, .sim__label { font-family: var(--font-serif); font-weight: 600; font-size: 1.0625rem; margin-bottom: .6rem; display: block; padding: 0; color: var(--heading); }
.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 479px) { .seg--3 { grid-template-columns: 1fr; } }
.seg__item { position: relative; }
.seg__item input { position: absolute; opacity: 0; width: 100%; height: 100%; inset: 0; margin: 0; cursor: pointer; }
.seg__item label {
  font-size: .9375rem;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 56px; padding: .5rem .4rem; border-radius: var(--radius-s); border: 1px solid var(--line-strong);
  background: var(--surface); font-weight: 400; color: var(--text-sub); line-height: 1.4; cursor: pointer;
}
.seg__item label small { font-weight: 400; font-size: .875rem; color: var(--muted); }
.seg__item input:checked + label { border: 2px solid var(--price-accent, var(--brand)); background: var(--brand-soft); color: var(--text); font-weight: 700; }
.seg__item input:checked + label small { color: var(--text-sub); }
.seg__item input:focus-visible + label { outline: 3px solid var(--brand); outline-offset: 2px; }
.select {
  width: 100%; min-height: 52px; padding: .6rem 2.5rem .6rem 1rem; font: inherit; color: var(--text);
  border: 2px solid var(--line-strong); border-radius: 12px; background: var(--surface);
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand) 50%), linear-gradient(135deg, var(--brand) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat;
}
.select:focus-visible { border-color: var(--brand); }
.sim__result { background: var(--surface-tint); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 22px 24px; }
.sim__result dl { margin: 0; display: grid; gap: .5rem; }
.sim__row { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem 1rem; flex-wrap: wrap; }
.sim__row--total { border-top: 1px solid #e6dff2; padding-top: .6rem; }
.sim__result dt { color: var(--text-sub); font-weight: 400; flex: none; }
.sim__result dd { margin: 0 0 0 auto; text-align: right; color: var(--text); }
.sim__result .price-amount { margin: 0; }
.sim__result .sim__monthly { font-size: 1.5rem; }
.sim .note-list { margin-top: 16px; }
/* シミュレーター：記帳代行・会計ソフト（2026年9月28日追加） */
.sim__select { margin-bottom: 24px; }
.sim__count { margin-top: 14px; padding: 16px; border-radius: var(--radius-s); background: var(--surface-tint); }
.sim__count-label { display: block; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.sim__count-field { display: flex; align-items: center; gap: .6rem; }
.sim__input {
  width: 8.5em; min-height: 52px; padding: .6rem .9rem; font: inherit; font-size: 1.0625rem; color: var(--text); text-align: right;
  border: 2px solid #857aab; border-radius: 12px; background: var(--surface); /* 入力欄の枠：白地で3.9:1 */
}
.sim__input:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-color: var(--brand); }
.sim__input[aria-invalid="true"] { border-color: #b3261e; }
.sim__count-unit { color: var(--text-sub); white-space: nowrap; }
.sim__hint { font-size: .9375rem; color: var(--muted); margin: .5rem 0 0; line-height: 1.75; }
.sim__status { color: var(--text-sub); }
.sim__result dd.is-range { white-space: normal; flex: 1 1 100%; }
.sim__result dd { max-width: 100%; }
.sim__result .sim__sub { white-space: normal; } /* 補足（区分名など）は折り返す */ /* 消費税の区分が確定しないときの表示（折り返し） */
.sim__reset { margin-top: .6rem; min-height: 40px; padding: .4rem 1rem; font-size: .9375rem; }
.sim__error { font-size: .9375rem; color: #b3261e; font-weight: 700; margin: .4rem 0 0; }
/* シミュレーター：A 毎月／B 年次・スポット／C 年間合計の区分（2026年9月28日追加） */
.sim__part + .sim__part { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--line); }
.sim__part-title { display: flex; align-items: center; gap: .6rem; font-size: 1.25rem; margin: 0 0 20px; }
.sim__part-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--brand); color: #fff; font-family: var(--font-sans); font-weight: 700; font-size: 1rem;
}
.sim__part--total .sim__part-mark { background: var(--heading); } /* 合計は見出し色で区別 */
.sim__result--summary { max-width: 720px; }
.sim__formula { font-size: .9375rem; color: var(--text-sub); margin: 14px 0 8px; line-height: 1.8; }
.sim__count .select { margin-top: .1rem; max-width: 100%; min-width: 0; }
.sim__grid > div { min-width: 0; }              /* 長い選択肢でも列幅を広げない（スマートフォンの横はみ出し防止） */
.sim__result dt { flex: 0 1 auto; min-width: 0; } /* 長い項目名は折り返す */
/* 文節（<wbr>）で改行し、収まらない場合だけ文字単位で折り返す */
.phrase { word-break: keep-all; overflow-wrap: anywhere; }
.phrase-block { display: inline-block; max-width: 100%; word-break: keep-all; overflow-wrap: anywhere; }
.sim__sub { display: block; font-family: var(--font-sans); font-weight: 400; font-size: .875rem; color: var(--muted); }

/* ---------- 18. お問い合わせ ---------- */
.contact-card { max-width: 760px; margin-inline: auto; text-align: center; padding: 40px 24px; border-radius: var(--radius-l); }
@media (min-width: 720px) { .contact-card { padding: 56px 48px; } }
.contact-card .btn-row { justify-content: center; margin: 1.5rem 0; }
.contact-info { list-style: none; color: var(--text-sub); display: grid; gap: .35rem; }
.sns { display: flex; justify-content: center; gap: 12px; margin-top: 1.5rem; list-style: none; }
.sns a {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--brand);
}
.sns a:hover { background: var(--brand-soft); }
.sns svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- 19. ページ見出し（下層ページ共通） ---------- */
.page-hero { padding-block: 40px 32px; }
@media (min-width: 900px) { .page-hero { padding-block: 64px 48px; } }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem .5rem; font-size: .9375rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb li + li::before { content: "›"; margin-right: .5rem; color: var(--brand-mid); }
.breadcrumb a { color: var(--text-sub); }
.page-hero__en { font-size: .875rem; letter-spacing: .24em; font-weight: 700; color: var(--muted); display: block; }
.page-hero__title { font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem); margin: .25rem 0 1rem; }
.page-hero__lead { color: var(--text-sub); max-width: 46em; margin: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin-top: 24px; }
/* ページ内メニュー：操作できるボタン型（通常：白地・紫枠・紫文字／ホバー・フォーカス・タップ・選択中：紫地・白文字） */
.toc a {
  display: inline-block; padding: .45rem 1rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--brand); color: var(--brand);
  text-decoration: none; font-weight: 700; font-size: .9375rem; line-height: 1.6;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.toc a:hover, .toc a:focus-visible, .toc a:active, .toc a[aria-current] {
  background: var(--brand); border-color: var(--brand); color: #fff;
}
.toc a:hover, .toc a:focus-visible { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(91, 63, 148, .22); }
.toc a:active { transform: translateY(0); box-shadow: none; }
.toc a:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .toc a:hover, .toc a:focus-visible { transform: none; } }

/* ---------- 20. フッター ----------
   淡いラベンダーの背景（コントラスト比：見出し11.5:1／本文5.9:1／リンク6.9:1／最下部の帯 白文字10.0:1） */
.site-footer {
  --footer-bg: #f2eff8;
  --footer-heading: #332d49;
  --footer-text: #5f5870;
  --footer-line: #d9d2e6;
  --footer-link: #5b3fa0;
  --footer-band: #493b68;
  background: var(--footer-bg); color: var(--footer-text);
  border-top: 1px solid var(--footer-line);
  padding-top: 56px; margin-top: 24px;
}
.site-footer a { color: var(--footer-heading); }
.site-footer a:hover { color: var(--footer-link); }
.site-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.1fr 1fr 1fr; gap: 40px; } }
.site-footer__brand { font-family: var(--font-serif); font-size: 1.5rem; font-weight: 600; letter-spacing: .08em; margin: 0 0 .75rem; color: var(--footer-heading); }
.site-footer__lead { color: var(--footer-text); font-size: .9375rem; }
.footer-office { border-top: 1px solid var(--footer-line); padding-top: 16px; }
.footer-office__name { font-family: var(--font-sans); font-size: 1rem; font-weight: 700; color: var(--footer-heading); margin-bottom: .35rem; }
.footer-office__text { font-size: .9375rem; color: var(--footer-text); margin: 0; }
.footer-nav { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .25rem 1rem; font-size: .9375rem; }
.footer-nav a { text-decoration: none; display: inline-block; padding: .3rem 0; }
.footer-nav a:hover { text-decoration: underline; }
.site-footer .sns a { background: #fff; border-color: var(--footer-line); color: var(--footer-link); }
.site-footer .sns a:hover { background: var(--brand-soft); color: var(--footer-link); }
.site-footer__notes { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--footer-line); font-size: .9375rem; color: var(--footer-text); }
.site-footer__copy { margin: 32px 0 0; padding: 14px var(--gutter); background: var(--footer-band); color: #fff; font-size: .875rem; text-align: center; letter-spacing: .06em; }

/* ---------- 明朝体の太さの例外・ゴシック体見出しの固定 ---------- */
/* 重要度の高い見出しは700を維持（料金プラン名・事務所カードの事務所名。金額は .price-amount / .price-from で700） */
.plan .card__title, .office-card__name { font-weight: 700; }
/* ゴシック体の見出しは従来の太さ・色・字間のまま */
.post-card__title, .news-item__title { font-weight: 700; color: var(--text); letter-spacing: .02em; }
.other-roles__title { font-weight: 700; }

/* ---------- 21. ユーティリティ ---------- */
.mt-0 { margin-top: 0 !important; }
.mt-2 { margin-top: 16px !important; }
.mt-4 { margin-top: 32px !important; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .drawer, .bg-blobs, .sim { display: none !important; }
  body { background: #fff; }
}
