/*
Theme Name:  神崎行政書士事務所 風営法LP
Theme URI:   https://makoto-biz.com/
Author:      株式会社誠
Description: 神崎行政書士事務所 風営法許可申請専門 LP用テーマ
Version:     1.0.0
License:     Private
Text Domain: kanzaki-fuei
*/

/* ================================================
   CSS Variables
   ================================================ */
:root {
  --navy:       #1a2744;
  --navy-dark:  #111b33;
  --navy-mid:   #243256;
  --gold:       #c9a84c;
  --gold-light: #e2c47a;
  --white:      #ffffff;
  --off-white:  #f8f9fc;
  --gray-light: #f1f4f9;
  --gray:       #e2e8f0;
  --text-dark:  #1e293b;
  --text-mid:   #475569;
  --text-light: #94a3b8;
  --green:      #16a34a;
  --red:        #dc2626;
  --font-sans:   'Noto Sans JP', 'Hiragino Kaku Gothic Pro', sans-serif;
  --font-serif:  'Noto Serif JP', 'HiraMinProN-W6', serif;
  --font-script: 'Dancing Script', cursive;
  --font-num:    'Montserrat', 'Roboto', sans-serif;
  --radius:     8px;
  --radius-lg:  16px;
  --shadow:     0 2px 12px rgba(0,0,0,.08);
  --shadow-md:  0 4px 24px rgba(0,0,0,.12);
  --transition: .25s ease;
}

/* ================================================
   Reset & Base
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
}
/* トップページ：セクション間の隙間に白帯が出ないよう body を紺色にする */
body.home { background: var(--navy-dark); }

/* フォーム入力欄はテキスト選択を許可 */
input, textarea, select, [contenteditable] {
  -webkit-user-select: text;
  user-select: text;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  -webkit-user-drag: none;
  user-drag: none;
  pointer-events: none; /* 画像単体へのドラッグ操作を禁止 */
}
/* 画像がリンク内にある場合はポインター操作を復元 */
a img, button img { pointer-events: auto; }

a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: .8; }

ul, ol { list-style: none; }

/* ================================================
   Typography helpers
   ================================================ */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  font-family: var(--font-script);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 20px;
  letter-spacing: .02em;
}
.section-label::before,
.section-label::after {
  content: '';
  display: block;
  width: 80px;
  height: 1px;
  background: var(--gold);
  opacity: .6;
  flex-shrink: 0;
}

/* FAQ セクション用ピル型ラベル */
.section-label--pill {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--text-mid);
  padding: 5px 22px;
  border: 1.5px solid var(--gray);
  border-radius: 100px;
  letter-spacing: .02em;
  gap: 0;
}
.section-label--pill::before,
.section-label--pill::after { display: none; }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.35;
  margin-bottom: 10px;
}

.section-title--white { color: var(--white); }

.section-sub {
  font-size: .9375rem;
  color: var(--text-mid);
  max-width: 560px;
  margin: 0 auto;
}

.section-sub--white { color: rgba(255,255,255,.75); }

.section-head {
  text-align: center;
  margin-bottom: 52px;
}

/* ================================================
   Layout
   ================================================ */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }

section.bg-off-white { background: var(--off-white); }
section.bg-navy       { background: var(--navy); }

/* ================================================
   Buttons
   ================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
  white-space: nowrap;
}

.btn:hover { transform: translateY(-2px); opacity: 1; }

.btn--primary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn--primary:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn--outline {
  background: rgba(255,255,255,.1);
  color: var(--white);
  border: 2.5px solid rgba(255,255,255,.78);
}
.btn--outline:hover { background: rgba(255,255,255,.2); border-color: var(--white); }
#hero .btn--outline { background: rgba(0,0,0,.38); }
#hero .btn--outline:hover { background: rgba(0,0,0,.55); }

.btn--gold {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-light); border-color: var(--gold-light); }

.btn--line {
  background: var(--white);
  color: var(--navy);
  border-width: 3px;
  border-color: var(--gold);
}
.btn--line:hover { background: #06c755; border-width: 3px; border-color: #06c755; color: var(--white); }
.btn--line:hover .fab.fa-line { color: var(--white); }

.btn--line-hero {
  gap: 12px;
  padding-left: 24px;
  padding-right: 32px;
}
.btn--line-hero i { font-size: 1.875rem; line-height: 1; }
.btn--line-hero .fab.fa-line { color: #06c755; }

.btn--lg { padding: 17px 36px; font-size: 1rem; }

/* 電話番号入りボタン — ラベル＋番号の2段組み */
.btn-tel-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
  gap: 1px;
}
.btn-tel-label {
  font-size: .75rem;
  font-weight: 500;
  opacity: .85;
}
.btn-tel-num {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ================================================
   Site Header / Navigation
   ================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  box-shadow: none;
  transition: background .35s ease, box-shadow .35s ease;
}

#site-header.is-scrolled {
  background: var(--navy);
  box-shadow: 0 2px 16px rgba(0,0,0,.25);
}

/* サブページ：スクロール前は白ヘッダー＋ダークテキスト */
body:not(.home) #site-header:not(.is-scrolled) {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,.1);
}
body:not(.home) #site-header:not(.is-scrolled) .site-logo__text { color: var(--navy); }
body:not(.home) #site-header:not(.is-scrolled) .site-logo__sub  { color: rgba(0,0,0,.55); }
body:not(.home) #site-header:not(.is-scrolled) .site-nav a,
body:not(.home) #site-header:not(.is-scrolled) .header-tel      { color: var(--text-dark); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-logo__badge {
  height: 44px;
  width: auto;
  display: block;
}
#site-footer .site-logo__badge { height: 52px; }

.site-logo__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: .65rem;
  color: var(--white);
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  flex-shrink: 0;
}

.site-logo__text { color: var(--white); }
.site-logo__name {
  font-size: .875rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}
.site-logo__sub {
  font-size: .625rem;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  display: block;
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; }

.site-nav a {
  color: rgba(255,255,255,.85);
  font-size: .8125rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 4px;
  transition: background var(--transition), color var(--transition);
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); opacity: 1; }

/* Header right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-tel {
  color: var(--white);
  font-size: .8125rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header-tel i { color: var(--gold); }

/* ヘッダー内 LINE ボタン — サイズのみ上書き、色・ホバーは btn--line に委譲 */
.header-cta {
  padding: 7px 16px 7px 12px;
  font-size: .8125rem;
  gap: 7px;
}
.header-cta i { font-size: 1.125rem; line-height: 1; }

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ================================================
   Hero Section
   ================================================ */
#hero {
  background-color: var(--navy);
  background-size: cover;
  background-position: center 30%;
  background-repeat: no-repeat;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  position: relative;
}

/* 左側を濃く、右側へ向けてフェードアウト → 背景の机・書類が右側に見える */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(26,39,68,.94) 0%,
    rgba(26,39,68,.82) 42%,
    rgba(26,39,68,.42) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

/* バッジ＋タイトルをタイトル幅に収め、バッジをその中でセンタリング */
.hero-heading {
  width: fit-content;
}

/* ボタン群＋マイクロコピーをボタン幅に収め、マイクロコピーをその中でセンタリング */
.hero-btns-group {
  width: fit-content;
}

.hero-badge {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 6px;
  background: rgba(201,168,76,.18);
  border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light);
  font-size: .8125rem;
  font-weight: 600;
  padding: 5px 34px;
  border-radius: 100px;
  margin: 0 auto 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.35;
  margin-bottom: 16px;
}

.hero-sub {
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  margin-bottom: 10px;
}

.hero-desc {
  font-size: .9rem;
  color: rgba(255,255,255,.78);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-micro {
  display: block;
  font-size: .75rem;
  color: var(--white);
  margin-top: 12px;
  letter-spacing: .02em;
  text-align: center;
}
#cta-banner .hero-btns { justify-content: center; margin-top: 28px; }
#cta-banner .hero-micro { text-align: center; color: var(--white); }

/* ================================================
   選ばれる理由
   ================================================ */
#reasons { background: var(--white); }

/* フィーチャー行レイアウト */
.reasons-list { display: flex; flex-direction: column; gap: 16px; }

.reason-row {
  display: grid;
  grid-template-columns: 64px 64px 1fr;
  gap: 0 28px;
  align-items: start;
  padding: 40px 36px;
  border: 1px solid #e8e8e8;
  border-radius: var(--radius-lg);
  background: #F9F9F9;
}

/* ①CAD強みは濃紺ブロック */
.reason-row--featured {
  background: var(--navy);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  border: none;
  margin-bottom: 0;
  grid-template-columns: 64px 64px 1fr;
}
/* .reason-row--featured + .reason-row : カード化により不要 */

.reason-row__num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gray);
  line-height: 1;
  padding-top: 6px;
}
.reason-row--featured .reason-row__num { color: rgba(255,255,255,.15); }

.reason-row__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(201,168,76,.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 4px;
}
.reason-row--featured .reason-row__icon { background: rgba(201,168,76,.22); }

.reason-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: .04em;
  margin-bottom: 10px;
}

.reason-row__body h3 {
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 10px;
  color: var(--text-dark);
}
.reason-row--featured .reason-row__body h3 { color: var(--white); }

.reason-row__body p {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.8;
}
.reason-row--featured .reason-row__body p { color: rgba(255,255,255,.78); }

/* ================================================
   サービス一覧
   ================================================ */
#services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
}
.service-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }

/* Service image area */
.service-img {
  width: 100%;
  aspect-ratio: 3/2;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 2rem;
  overflow: hidden;
  flex-shrink: 0;
}
.service-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(0.8); }

.service-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.service-when {
  background: rgba(201,168,76,.08);
  border-left: 3px solid var(--gold);
  border-radius: 0 4px 4px 0;
  padding: 8px 12px;
  margin-bottom: 14px;
  min-height: 72px;
  box-sizing: border-box;
}
.service-when__label {
  display: block;
  font-size: .625rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--gold);
  margin-bottom: 3px;
}
.service-when__text {
  font-size: .8125rem;
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.5;
  margin: 0;
}

.service-body h3 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  align-self: flex-start;
  padding-bottom: 8px;
  border-bottom: 4px solid rgba(201,168,76,.45);
  margin-bottom: 12px;
}
.service-body p {
  font-size: .8125rem;
  color: var(--text-mid);
  line-height: 1.7;
  flex: 1;
  min-height: 3.5rem;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: auto;
  padding-top: 14px;
}

/* Service card: SVG border animation (injected by JS) */
.card-svg {
  position: absolute;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
}
.card-path {
  fill: none;
  stroke: var(--navy);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ================================================
   お客様の声
   ================================================ */
#testimonials { background: var(--white); }

.testimonials-slider { position: relative; overflow: hidden; }
.testimonials-track {
  display: flex;
  gap: 24px;
}

.slider-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  background: var(--white);
  color: var(--navy);
  font-size: .875rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  flex-shrink: 0;
}
.slider-btn:hover { background: var(--navy); color: var(--gold); }
.slider-dots { display: flex; gap: 8px; align-items: center; }
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background .25s, transform .25s;
}
.slider-dot.is-active { background: var(--gold); transform: scale(1.4); }

.testimonial-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  border-top: 3px solid var(--gold);
  transition: transform .45s ease, opacity .45s ease, box-shadow .45s ease;
}
/* JS が付与するクラスで立体感を制御（transform/opacity は JS inline style で管理） */
.testimonial-card.is-center {
  z-index: 2;
  box-shadow: 0 20px 52px rgba(0,0,0,.22), 0 4px 16px rgba(0,0,0,.1);
}

.testimonial-stars {
  color: var(--gold);
  font-size: .875rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.8;
  margin-bottom: 18px;
  position: relative;
}

.testimonial-card blockquote::before {
  content: '';
  display: block;
  width: 96px;
  height: 1px;
  background: var(--gold);
  border-radius: 1px;
  margin-bottom: 16px;
}

.testimonial-footer {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 6px;
  border-top: 1px solid var(--gray);
  padding-top: 14px;
}

.testimonial-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-size: .9375rem;
  flex-shrink: 0;
}

.testimonial-headline {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.5;
  margin-bottom: 12px;
}

.testimonial-card blockquote mark {
  background: rgba(201,168,76,.2);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.testimonial-meta { font-size: .8125rem; }
.testimonial-meta strong { display: block; color: var(--text-dark); font-weight: 600; }

.testimonial-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 4px;
}
.t-tag {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 100px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  letter-spacing: .02em;
}

.section-desc {
  font-size: .875rem;
  color: var(--text-light);
  line-height: 1.8;
  margin-top: 8px;
}

/* ================================================
   CTAバナー
   ================================================ */
#cta-banner {
  background: var(--navy);
  padding: 72px 0;
}

.cta-banner-inner {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.cta-banner-inner h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--white);
  font-weight: 700;
  margin-bottom: 12px;
  text-wrap: balance;
}

.cta-banner-inner p {
  color: rgba(255,255,255,.7);
  font-size: .9375rem;
  margin-bottom: 32px;
}

/* ================================================
   料金の目安
   ================================================ */
#pricing { background: var(--white); }

.pricing-notes {
  margin-top: 20px;
}
.pricing-note {
  font-size: .8125rem;
  color: var(--text-light);
  text-align: left;
  padding-left: 1.2em;
  text-indent: -1.2em;
  line-height: 1.75;
  margin-bottom: 4px;
}
.pricing-note:last-child { margin-bottom: 0; }

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.pricing-table thead th {
  background: var(--navy);
  color: var(--white);
  font-size: .9375rem;
  font-weight: 600;
  padding: 14px 20px;
  text-align: center;
  letter-spacing: .04em;
}
.pricing-table thead th:nth-child(1),
.pricing-table thead th:nth-child(2) {
  text-align: left;
  padding-left: 60px;
}
.pricing-table thead th:nth-child(3) { text-align: right; padding-right: 80px; }

.pricing-table tbody tr {
  border-bottom: 1px solid var(--gray);
  transition: background var(--transition);
}
.pricing-table tbody tr:last-child { border-bottom: none; }
.pricing-table tbody tr:hover { background: var(--off-white); }

.pricing-table tbody td { padding: 18px 20px; vertical-align: top; font-size: 1rem; }

.pricing-service { font-weight: 600; font-size: 1rem; }
.pricing-target  { font-size: .8125rem; color: var(--text-mid); margin-top: 3px; }
/* specificity: 0,2,1 — .pricing-table tbody td (0,1,2) に勝つために td も含める */
.pricing-table td.pricing-amount {
  text-align: right;
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* ================================================
   ご依頼の流れ（1本の縦線・3フェーズ区切り）
   ================================================ */
#process { background: var(--off-white); }

/* 全STEPを包む単一タイムライン */
.process-timeline { position: relative; isolation: isolate; }

/* 連続する縦線（先頭〜最終ピン下まで）*/
.process-timeline::before {
  content: '';
  position: absolute;
  left: 21px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(201,168,76,.6) 100%);
  z-index: 0;
}

/* フェーズ区切り見出し（Phase 装飾番号 + タイトル — 縦配置・左端寄せ） */
.phase-divider {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-left: 0;
  padding-top: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gray);
  margin-bottom: 20px;
  background: var(--off-white); /* 縦ラインを自然に分断 */
  z-index: 1;
}
.phase-divider:first-child { padding-top: 16px; }

/* フェーズ区切りのmargin-bottomエリア（20px）の縦ラインを被覆 */
.phase-divider::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 20px;
  background: var(--off-white);
  z-index: 1;
}

/* 装飾数字 "Phase 01" */
.phase-num-display {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 4px;
}
.phase-word {
  font-size: .6875rem;
  font-weight: 400;
  color: var(--text-light);
  letter-spacing: .08em;
  line-height: 1;
}
.phase-figure {
  font-family: var(--font-num);
  font-size: 3rem;
  font-weight: 700;
  color: var(--text-light);
  line-height: 1;
  letter-spacing: -.03em;
}

.phase-title {
  font-family: var(--font-serif);
  font-size: clamp(.9375rem, 1.8vw, 1.125rem);
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.45;
}
.phase-subtitle {
  font-size: .8125rem;
  font-weight: 400;
  color: var(--text-mid);
  margin-left: 4px;
}

/* 各ステップ行 */
.timeline-step {
  position: relative;
  padding-left: 72px;
  margin-bottom: 24px;
}
.timeline-step:last-child { margin-bottom: 0; }

/* ピン — 行の縦中央に配置 */
.timeline-pin {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 0 0 5px var(--off-white);
}
.pin-step {
  font-size: .4375rem;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  letter-spacing: .06em;
  line-height: 1;
  margin-bottom: 1px;
}
.pin-num {
  font-family: var(--font-num);
  font-size: .875rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}

/* 強みステップ (02, 06) — gold ピン */
.timeline-step--strength .timeline-pin { background: var(--gold); }
.timeline-step--strength .pin-step     { color: rgba(26,39,68,.5); }
.timeline-step--strength .pin-num      { color: var(--navy); }

/* お客様対応ステップ (04) — 白抜き gold 枠ピン */
.timeline-step--client .timeline-pin {
  background: var(--white);
  border: 2.5px solid var(--gold);
}
.timeline-step--client .pin-step { color: var(--gold); }
.timeline-step--client .pin-num  { color: var(--navy); }

/* 最終ステップ (09) — 輝く gold ピン */
.timeline-step--final .timeline-pin {
  background: var(--gold);
  box-shadow: 0 0 0 5px var(--off-white), 0 0 0 9px var(--gold);
}
.timeline-step--final .pin-step { color: rgba(26,39,68,.5); }
.timeline-step--final .pin-num  { color: var(--navy); }

/* 最終ピン下の縦線を消す。z-index:4でピン(z-index:3)のgoldシャドウも上書きし下部のゴールド点を除去 */
/* PC: ピン半径21px、白リング21-26px、goldリング26-30px → 26pxから開始でgold点を隠す */
.timeline-step--final::after {
  content: '';
  position: absolute;
  left: 18px;
  top: calc(50% + 30px);
  bottom: 0;
  width: 8px;
  background: var(--off-white);
  z-index: 2;
}

/* STEP 01のピン上縦線を消す（-40px延長でフェーズ区切り直後の黒い点も確実に除去） */
.timeline-step--first::before {
  content: '';
  position: absolute;
  left: 18px;
  top: -40px;
  height: calc(50% - 21px + 40px);
  width: 8px;
  background: var(--off-white);
  z-index: 2;
}

/* STEP04・07: フェーズ区切り直後のピン上に接続線を明示表示 */
.timeline-step--phase-start::before {
  content: '';
  position: absolute;
  left: 20px;
  top: -2px;
  height: calc(50% - 21px + 2px);
  width: 2px;
  background: linear-gradient(180deg, var(--navy) 0%, rgba(201,168,76,.6) 100%);
  z-index: 1;
}

/* コンテンツカード */
.timeline-body {
  background: var(--white);
  border-radius: var(--radius);
  padding: 18px 24px;
  box-shadow: var(--shadow);
  border-left: 3px solid transparent;
}
.timeline-step--strength .timeline-body { border-left-color: var(--gold); }
.timeline-step--client   .timeline-body { border-left-color: var(--gold-light); }
.timeline-step--final    .timeline-body { border-left-color: var(--gold); background: rgba(201,168,76,.04); }

.timeline-body h4 {
  font-family: var(--font-serif);
  font-size: .9375rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.timeline-body p { font-size: .875rem; color: var(--text-mid); line-height: 1.8; }
.timeline-body p strong { color: var(--text-dark); font-weight: 700; }

/* バッジ */
.step-badge {
  font-size: .625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  letter-spacing: .04em;
  white-space: nowrap;
  flex-shrink: 0;
}
.step-badge--strength { background: var(--gold); color: var(--white); }
.step-badge--client   { border: 1px solid var(--gold); color: var(--gold); }

/* ================================================
   よくある質問
   ================================================ */
#faq { background: var(--white); }

.faq-list { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--gray); }

.faq-item {
  border-bottom: 1px solid var(--gray);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 28px 4px;
  text-align: left;
  font-family: var(--font-sans);
  font-size: .9375rem;
  font-weight: 600;
  color: var(--text-dark);
  transition: color var(--transition);
}
.faq-question:hover { color: var(--navy); }

.faq-q {
  flex-shrink: 0;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--navy);
  display: inline;
  font-size: .9375rem;
  font-weight: 700;
}
.faq-q::after { content: '.'; }

.faq-question span:first-child { flex: 1; }

.faq-icon {
  flex-shrink: 0;
  width: 72px;
  height: 28px;
  border-radius: 100px;
  border: 1.5px solid var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .75rem;
  transition: transform var(--transition), background var(--transition);
}

.faq-item.is-open .faq-icon {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 4px 20px 42px;
}
.faq-item.is-open .faq-answer { display: block; }

.faq-a {
  display: flex;
  gap: 12px;
}

.faq-a-label {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,168,76,.2);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
}

.faq-a p {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.8;
  padding-top: 4px;
}

/* ================================================
   事務所紹介
   ================================================ */
#about { background: var(--off-white); }

.about-inner {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 60px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 3/4;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* 全幅プロフィール文（タイトル下・2列グリッドの上） */
.about-lead {
  margin-bottom: 48px;
  padding: 0 100px;
  text-align: left;
}
.about-lead .about-text { margin-bottom: 16px; }
.about-lead .about-name { margin-bottom: 0; text-align: right; }
.about-photo__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .875rem;
}
.about-photo__placeholder i { font-size: 3rem; }

.about-tagline {
  font-size: .9375rem;
  color: var(--text-mid);
  margin-bottom: 20px;
  font-style: italic;
}

.about-text {
  font-size: .875rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: 28px;
}

.about-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
}
.about-name span { font-size: .8125rem; font-weight: 400; color: var(--text-mid); }

.about-table { width: 100%; border-collapse: collapse; }
.about-table th,
.about-table td {
  padding: 12px 16px;
  font-size: .875rem;
  border-bottom: 1px solid var(--gray);
  text-align: left;
  vertical-align: top;
}
.about-table th {
  background: var(--white);
  font-weight: 600;
  color: var(--navy);
  width: 120px;
  white-space: nowrap;
}
.about-table td { color: var(--text-mid); }

/* Map placeholder */
.map-wrap {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  height: 200px;
  background: var(--gray);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .875rem;
  gap: 8px;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* ================================================
   お問い合わせ
   ================================================ */
/* CTAセクション下端をフッター（navy-dark）へグラデーションでつなぐ */
#contact { background: linear-gradient(to bottom, var(--navy) 70%, var(--navy-dark) 100%); padding: 80px 0; }

.contact-inner {
  text-align: center;
  margin-bottom: 52px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 32px;
  align-items: start;
}

/* Contact form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 36px 18px;
}

.contact-form-wrap h3 {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gold);
}

/* CF7 plugin default overrides (CF7の.wpcf7{margin:1em 0}を打ち消す) */
.contact-form-wrap .wpcf7,
.contact-form-wrap .wpcf7-form {
  margin: 0;
}
.wpcf7 .wpcf7-response-output {
  margin: 0;
  padding: 0;
  border: none;      /* CF7デフォルトの border:2px solid red を打ち消す */
  height: 0;         /* 空の状態で行高分の高さが生じないよう0に */
  overflow: hidden;
}
/* 送信後の結果表示（CF7がform要素にクラスを付与したときのみ表示） */
.wpcf7-form.sent .wpcf7-response-output,
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  height: auto;
  overflow: visible;
  padding: 12px 16px;
  border: 1.5px solid;
  border-radius: var(--radius);
  margin-top: 16px;
  font-size: .875rem;
  line-height: 1.5;
}
.wpcf7-form.sent .wpcf7-response-output {
  color: #15803d;
  border-color: #16a34a;
  background: #f0fdf4;
}
.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.failed .wpcf7-response-output {
  color: #dc2626;
  border-color: #dc2626;
  background: #fef2f2;
}
.wpcf7-form.spam .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
  color: #b45309;
  border-color: #d97706;
  background: #fffbeb;
}
.wpcf7-form textarea {
  height: 140px; /* rows="10"の固有高さを上書き */
}

/* CF7 / form styles */
.form-group {
  margin-bottom: 20px;
}
.form-group:last-of-type {
  margin-bottom: 0;
}
.wpcf7-form > p {
  margin-bottom: 36px;
}
.wpcf7-form > p:last-of-type {
  margin-bottom: 0;
}
.wpcf7-form > p.form-microcopy {
  margin-top: -18px;   /* 36px(preceding mb) − 18px = 18px gap → matches local */
  margin-bottom: 28px; /* overrides .wpcf7-form>p's 36px → matches local */
}

.wpcf7-form label,
.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-dark);
  margin-bottom: 6px;
}
.wpcf7-form label .req,
.form-group label .req {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  line-height: 1;
}

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form textarea,
.form-group input,
.form-group textarea {
  width: 100%;
  border: 1.5px solid var(--gray);
  border-radius: var(--radius);
  padding: 11px 14px;
  font-family: var(--font-sans);
  font-size: .9rem;
  color: var(--text-dark);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  margin-bottom: 0;
}
.wpcf7-form > p br { display: none; }
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border: 2px solid var(--navy);
  box-shadow: 0 0 0 3px rgba(26,39,68,.12);
}
.wpcf7-form input::placeholder,
.wpcf7-form textarea::placeholder,
.form-group input::placeholder,
.form-group textarea::placeholder { color: #a0a0a0; }
.wpcf7-form textarea,
.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* フォーム送信前マイクロコピー */
.form-microcopy {
  font-size: .75rem;
  color: var(--text-light);
  text-align: center;
  margin-top: 18px;
  margin-bottom: 28px;
  line-height: 1.7;
}

.wpcf7-form input[type="submit"],
.form-submit-btn {
  width: 100%;
  padding: 16px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  transition: background var(--transition);
  letter-spacing: .04em;
}
.wpcf7-form input[type="submit"]:hover,
.form-submit-btn:hover { background: var(--gold-light); }

/* Contact side cards */
.contact-cards { display: flex; flex-direction: column; gap: 16px; }

.contact-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg);
  padding: 24px;
}

/* 電話・LINE カードを強調（ゴールド枠＋浮き上がり） */
.contact-card--tel,
.contact-card--line {
  border: 2px solid var(--gold);
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: .9rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
}
.contact-card-header i { color: var(--gold); font-size: 1.1rem; }

/* 電話・LINE ヘッダーをより大きく表示 */
.contact-card--tel .contact-card-header,
.contact-card--line .contact-card-header {
  font-size: 1.8rem;
  gap: 16px;
  margin-bottom: 20px;
}
.contact-card--tel .contact-card-header i { font-size: 2.2rem; }

.contact-card--line .contact-card-header i {
  font-size: 2.2rem;
  color: #06c755;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
}
.contact-card--line .contact-card-header i::after {
  content: '';
  position: absolute;
  inset: 10%;
  background: white;
  border-radius: 18%;
  z-index: -1;
}

.contact-card--tel .tel-num {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 4px;
}
.contact-card--tel .tel-hours {
  font-size: .75rem;
  color: rgba(255,255,255,.55);
}

.contact-card--line .line-desc {
  font-size: .8125rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 14px;
  line-height: 1.6;
}
.contact-card--line .btn-line-add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px;
  background: #06c755;
  color: var(--white);
  border-radius: var(--radius);
  font-weight: 700;
  font-size: .9rem;
  transition: background var(--transition);
}
.contact-card--line .btn-line-add:hover { background: #05b04b; opacity: 1; }

.contact-card--line .line-qr {
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
  display: block;
  border-radius: 8px;
  background: var(--white);
  padding: 4px;
}

.contact-card--email .email-addr {
  font-size: .875rem;
  color: rgba(255,255,255,.75);
  word-break: break-all;
}

/* ================================================
   Footer
   ================================================ */
#site-footer {
  background: var(--navy-dark);
  padding: 52px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}

.footer-brand .site-logo { margin-bottom: 14px; }

.footer-office-info {
  font-size: .8125rem;
  color: rgba(255,255,255,.55);
  line-height: 2;
  margin-top: 14px;
}
.footer-office-info p { margin-bottom: 0; }

.footer-nav-group { display: flex; gap: 100px; padding-left: 50px; }

.footer-col h4 {
  font-size: .8125rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  margin-bottom: 14px;
  letter-spacing: .06em;
}

.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: .8125rem;
  color: rgba(255,255,255,.5);
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold-light); opacity: 1; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.footer-bottom small {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

.footer-legal a {
  font-size: .75rem;
  color: rgba(255,255,255,.4);
  margin-left: 16px;
}
.footer-legal a:hover { color: rgba(255,255,255,.7); opacity: 1; }

/* ================================================
   ページトップへ戻るボタン
   ================================================ */
#scroll-top-btn {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .3s ease, visibility .3s ease, transform .3s ease, background var(--transition);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  z-index: 1000;
}
#scroll-top-btn.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#scroll-top-btn:hover { background: var(--gold-light); }

/* ================================================
   Responsive – Tablet (≤ 900px)
   ================================================ */
@media (max-width: 900px) {
  #hero::before        { background: rgba(26,39,68,.88); }

  .reason-row          { grid-template-columns: 48px 52px 1fr; gap: 0 20px; padding: 28px 20px; }
  .reason-row--featured { padding: 28px 20px; grid-template-columns: 48px 52px 1fr; }
  .services-grid       { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid   { grid-template-columns: 1fr; }

  .contact-grid        { grid-template-columns: 1fr; }

  .about-inner         { grid-template-columns: 1fr; }
  .about-lead          { padding: 0 24px; }
  .about-photo         { max-width: 320px; }

  .footer-inner        { grid-template-columns: 1fr 1fr; }

  .site-nav            { display: none; }
  .header-tel          { display: none; }
  .nav-toggle          { display: flex; }

  /* ヘッダー CTA：「まずは」「（LINE）」を非表示＋ボタンをコンパクト化してハンバーガーを画面内に収める */
  .cta-prefix          { display: none; }
  .cta-suffix          { display: none; }
  .header-cta          { padding: 6px 12px 6px 8px; font-size: .75rem; gap: 5px; }
}

/* Mobile nav open */
.site-nav.is-open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: var(--navy-dark);
  padding: 16px 24px;
  gap: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,.3);
  z-index: 999;
}
.site-nav.is-open a { padding: 12px 8px; border-bottom: 1px solid rgba(255,255,255,.08); }

/* ================================================
   Responsive – Mobile (≤ 600px)
   ================================================ */
@media (max-width: 600px) {
  section              { padding: 56px 0; }
  .services-grid       { grid-template-columns: 1fr; }
  .hero-btns           { flex-direction: column; }
  .process-timeline::before { left: 18px; }
  .phase-divider       { padding-top: 20px; }
  .phase-divider:first-child { padding-top: 12px; }
  .phase-figure        { font-size: 2rem; }
  .timeline-step       { padding-left: 60px; }
  .timeline-pin        { width: 36px; height: 36px; }
  .pin-num             { font-size: .75rem; }
  /* モバイルピン半径18px、goldリング23-27px → 23pxから開始でgold点を隠す（z-index:4はbase継承） */
  /* モバイルピン半径18px、goldリング外縁27px → 27pxから開始でリング全体を維持 */
  .timeline-step--final::after { left: 15px; top: calc(50% + 27px); width: 8px; }
  /* STEP01上部の黒い点削除：-40px延長でフェーズ区切り直後も確実にカバー */
  .timeline-step--first::before { left: 15px; top: -40px; height: calc(50% - 18px + 40px); }
  /* STEP04・07: モバイル接続線のleft/height調整 */
  .timeline-step--phase-start::before { left: 17px; height: calc(50% - 18px + 2px); }
  .btn--lg             { width: 100%; justify-content: center; }
  .pricing-table       { font-size: .8125rem; }
  .pricing-table tbody td { padding: 14px 12px; }
  .pricing-table td.pricing-amount { font-size: 1.25rem; }
  .footer-inner        { grid-template-columns: 1fr; gap: 28px; }
  .contact-form-wrap   { padding: 24px 24px 12px; }

  /* サブページ：固定ヘッダー（68px）よりも上パディングが小さくなるバグを修正 */
  .subpage-main        { padding-top: 80px; }

  /* ヒーロー：「なら」後の改行を全画面で維持するため hero-br は非表示にしない */
  /* タイトルフォントを少し縮めて「届出なら」まで1行に収める */
  .hero-title          { font-size: 1.5rem; }
  /* モバイル：fit-content で縮んだラッパーを全幅に戻してセンタリングを有効にする */
  .hero-heading,
  .hero-btns-group     { width: 100%; }

  /* セクションタイトル：強制改行を無効化・フォント縮小・text-wrap:balance でバランス調整 */
  .section-title br    { display: none; }
  /* reasonsタイトルは「15年」後の改行を維持 */
  #reasons .section-title br { display: block; }
  /* 「当事務所が」をモバイルで非表示 → 「15年[改行]オーナー様から選ばれる理由」 */
  .sp-hide { display: none; }
  .section-title       { font-size: 1.25rem; text-wrap: balance; }
  /* セクション説明文：強制改行を無効化・左揃えに切り替えてオーファン解消 */
  .section-sub br      { display: none; }
  /* processセクションのサブコピー「まで。」後の改行のみ維持 */
  #process .section-sub br { display: block; }
  .section-sub         { text-align: left; font-size: .875rem; }

  /* Reasons カード：本文を番号・アイコンの下段に配置（3列グリッドを維持したまま行を追加） */
  .reason-row__body    { grid-column: 1 / -1; grid-row: 2; margin-top: 20px; }

  /* フッターナビ：gap・padding を縮小して各カラムに十分な幅を確保 */
  .footer-nav-group    { gap: 32px; padding-left: 0; }

  /* 料金表：列タイトル折り返し防止。目安料金は（税別）のみ改行 */
  .pricing-table thead th                             { white-space: nowrap; padding: 10px 8px; font-size: .75rem; }
  .pricing-table thead th:nth-child(1),
  .pricing-table thead th:nth-child(2)               { padding-left: 16px; }
  .pricing-table thead th:nth-child(3)               { white-space: normal; padding-right: 12px; }
  .tax-br                                             { display: block; }

  /* CTAセクション-フッター間に見える白帯（body背景）を消す */
  body                                                { background: var(--navy-dark); }

  /* 声セクションのサブタイトルをほかのセクション同様に左揃え */
  #testimonials .section-sub                          { text-align: left; }
  /* aboutセクションの「お客様の夢」を中央揃え */
  #about .section-sub                                 { text-align: center; }
  /* CTAバナーh2：縮小して1行に収める */
  .cta-banner-inner h2                                { font-size: 1.1rem; }
}

/* ================================================
   フッター — スペーサー（ブログとプライバシーポリシーの間）
   ================================================ */
.footer-sep { margin-top: 1.25em; }

/* ================================================
   サブページ共通（ブログ一覧・個別記事・法的ページ）
   ================================================ */
.subpage-main {
  padding: 120px 0 100px;
  background: var(--white);
  min-height: 60vh;
}

.subpage-title {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  color: var(--navy);
  font-weight: 700;
  margin-bottom: 40px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--gold);
}

.subpage-body { max-width: 800px; margin: 0 auto; }

/* ================================================
   ブログ一覧
   ================================================ */
.blog-page-header { margin-bottom: 32px; }

/* カテゴリーフィルター */
.blog-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}
.blog-filter__btn {
  display: inline-block;
  padding: 6px 20px;
  border: 2px solid var(--navy);
  border-radius: 100px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.blog-filter__btn:hover,
.blog-filter__btn.is-active {
  background: var(--navy);
  color: var(--white);
}
.blog-page-header .subpage-title { margin-bottom: 12px; }
.blog-page-lead { color: var(--text-mid); font-size: .9375rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px 24px;
  margin-bottom: 56px;
}

.blog-card {
  background: var(--off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border-top: 3px solid var(--gold);
  transition: box-shadow var(--transition), transform var(--transition);
}
.blog-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.blog-card__thumb { display: block; overflow: hidden; aspect-ratio: 16/9; }
.blog-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.blog-card:hover .blog-card__thumb img { transform: scale(1.04); }

.blog-card__body { padding: 20px; }

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.blog-card__date {
  font-size: .75rem;
  color: var(--text-light);
  font-family: var(--font-num);
  letter-spacing: .03em;
}

.blog-card__cat,
a.blog-card__cat {
  text-decoration: none;
}
.blog-card__cat {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 100px;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--navy);
  letter-spacing: .02em;
}

.blog-card__title {
  font-size: .9375rem;
  font-weight: 700;
  line-height: 1.6;
  margin-bottom: 10px;
}
.blog-card__title a { color: var(--text-dark); text-decoration: none; }
.blog-card__title a:hover { color: var(--navy); }

.blog-card__excerpt {
  font-size: .8125rem;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 14px;
}

.blog-card__more {
  font-size: .8125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: .02em;
}
.blog-card__more:hover { color: var(--gold); }

.blog-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.blog-pagination a,
.blog-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius);
  font-size: .875rem;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--gray);
  color: var(--text-dark);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.blog-pagination a:hover { background: var(--navy); color: var(--white); border-color: var(--navy); }
.blog-pagination .current { background: var(--navy); color: var(--white); border-color: var(--navy); }

.blog-empty { color: var(--text-mid); text-align: center; padding: 40px 0; }

@media (max-width: 900px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .blog-grid { grid-template-columns: 1fr; }
  .subpage-main { padding: 80px 0 72px; }
}

/* ================================================
   個別記事
   ================================================ */
.single-post { max-width: 760px; margin: 0 auto; }

.single-post__header { margin-bottom: 28px; }
.single-post__meta { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }

.single-post__title {
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 3.5vw, 2rem);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.5;
  border-bottom: 2px solid var(--gold);
  padding-bottom: 16px;
}

.single-post__thumb { margin-bottom: 36px; border-radius: var(--radius-lg); overflow: hidden; }
.single-post__thumb img { width: 100%; height: auto; display: block; }

.single-post__content {
  font-size: .9375rem;
  line-height: 1.9;
  color: var(--text-dark);
}
.single-post__content h2 { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin: 36px 0 14px; padding-left: 14px; border-left: 4px solid var(--gold); }
.single-post__content h3 { font-size: 1.0625rem; font-weight: 700; margin: 28px 0 12px; }
.single-post__content p { margin-bottom: 1.4em; }
.single-post__content ul, .single-post__content ol { padding-left: 1.5em; margin-bottom: 1.4em; }
.single-post__content li { margin-bottom: .5em; }
.single-post__content img { max-width: 100%; height: auto; border-radius: var(--radius); margin: 1.5em 0; }

.single-post__back { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--gray); }
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: .875rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: .02em;
}
.btn-back:hover { color: var(--gold); }

/* ================================================
   法的ページ（プライバシーポリシー・利用規約）
   ================================================ */
.legal-content .subpage-body { max-width: 800px; }

.legal-intro {
  font-size: .9375rem;
  line-height: 1.9;
  color: var(--text-mid);
  margin-bottom: 40px;
  padding: 20px 24px;
  background: var(--off-white);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
}

.legal-section {
  margin-bottom: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--gray);
}
.legal-section:last-of-type { border-bottom: none; }

.legal-section h2 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
  padding: 6px 12px;
  background: var(--gray-light);
  border-radius: var(--radius);
}

.legal-section p {
  font-size: .9375rem;
  line-height: 1.9;
  color: var(--text-dark);
  margin-bottom: 1em;
}

.legal-section ul,
.legal-section ol {
  padding-left: 1.5em;
  margin-top: .5em;
}
.legal-section li {
  font-size: .9375rem;
  line-height: 1.85;
  color: var(--text-dark);
  margin-bottom: .4em;
}

.legal-address {
  font-style: normal;
  font-size: .9375rem;
  line-height: 2;
  color: var(--text-dark);
  margin-top: 12px;
  padding: 16px 20px;
  background: var(--off-white);
  border-radius: var(--radius);
}

.legal-date {
  font-size: .875rem;
  color: var(--text-light);
  text-align: right;
  margin-top: 40px;
}

/* ================================================
   モバイル専用ユーティリティ
   ================================================ */
.sp-br { display: none; }

@media (max-width: 600px) {
  .sp-br { display: block; }

  /* フッター：サイトタイトルを 1.5 倍 */
  #site-footer .site-logo__name { font-size: 1.3125rem; }
}
