/* =========================================================
   博多中央総合法務事務所 — 共通スタイル
   トークン実測値 (カンプ 001_top / 002 より):
   navy #16324F / hero-label #1F3147 / teal #249388 / gold #C5A253
   green(LINE) #25CE6A / red #E7335E / cream #F7F7F3
   ========================================================= */
:root {
  --navy: #16324F;
  --navy-hero: #1F3147;
  --teal: #249388;
  --gold: #C5A253;
  --green: #25CE6A;
  --red: #E7335E;
  --cream: #F7F7F3;
  --text: #333;
  --serif: "Noto Serif JP", "Yu Mincho", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* アンカージャンプ先がビューポート最上端に張り付くのを防ぐ (実機ブラウザバーで隠れ得るため) */
.sec, .faq-sec { scroll-margin-top: 24px; }

body {
  font-family: var(--sans);
  color: var(--text);
  font-size: 16px;
  line-height: 2;
  line-break: strict; /* 行頭句読点 (、。・ー等) の禁則処理 */
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; vertical-align: bottom; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
table { border-collapse: collapse; }

.inner { max-width: 1248px; margin: 0 auto; padding: 0 24px; }

/* ---------- 上部のお知らせ帯 ---------- */
.topbar {
  background: #fff;
  font-size: 12px;
  line-height: 1.6;
  color: #333;
  padding: 3px 16px;
}

/* ---------- ヘッダー ---------- */
.header { background: #fff; }
.header-inner {
  max-width: 1920px;
  margin: 0 auto;
  padding: 10px 16px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.header-brand { display: flex; align-items: center; gap: 14px; }
.header-brand img { width: 78px; height: auto; }
.header-name {
  font-family: var(--serif);
  color: var(--navy);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.4;
}
.header-name small { display: block; font-size: 20px; font-weight: 600; letter-spacing: .1em; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.header-tel-row { display: flex; align-items: center; gap: 12px; }
.header-tel {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 27px;
  color: var(--navy);
  letter-spacing: .02em;
}
.btn-header {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  border-radius: 8px;
  padding: 10px 20px;
  line-height: 1.2;
}
.btn-header svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn-header--mail { background: var(--navy); }
.btn-header--line { background: var(--green); }

.header-nav { display: flex; gap: 30px; }
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
}
.header-nav a:hover { color: var(--teal); }

/* ハンバーガー (SP) */
.nav-toggle {
  display: none;
  position: absolute;
  top: 34px;
  right: 14px;
  width: 46px;
  height: 46px;
  background: #fff;
  border: none;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
  border-radius: 4px;
  cursor: pointer;
  z-index: 60;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
  transition: transform .3s, opacity .3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.97);
  z-index: 50;
  padding: 90px 32px 40px;
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.nav-drawer.open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.nav-drawer a {
  display: block;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  padding: 14px 4px;
  border-bottom: 1px solid #e3e3e3;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.nav-drawer.open a { opacity: 1; transform: none; }
.nav-drawer.open a:nth-child(1) { transition-delay: .04s; }
.nav-drawer.open a:nth-child(2) { transition-delay: .08s; }
.nav-drawer.open a:nth-child(3) { transition-delay: .12s; }
.nav-drawer.open a:nth-child(4) { transition-delay: .16s; }
.nav-drawer.open a:nth-child(5) { transition-delay: .20s; }
.nav-drawer.open a:nth-child(6) { transition-delay: .24s; }
.nav-drawer.open a:nth-child(7) { transition-delay: .28s; }
.nav-drawer.open a:nth-child(8) { transition-delay: .32s; }
.nav-drawer.open a:nth-child(9) { transition-delay: .36s; }
.nav-drawer.open a:nth-child(10) { transition-delay: .40s; }
.nav-drawer .drawer-sub { padding-left: 18px; font-size: 15px; }

/* ---------- 下部固定 CTA 帯 ---------- */
.cta-fixed {
  position: fixed;
  left: 0; right: 60px; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.cta-fixed a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 76px;
  color: #fff;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .06em;
}
.cta-fixed svg { width: 26px; height: 26px; fill: #fff; flex: none; }
.cta-fixed .tel { background: var(--teal); }
.cta-fixed .mail { background: var(--gold); }
.cta-fixed .line { background: var(--green); }
.backtop {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 41;
  width: 60px;
  height: 76px;
  border: none;
  background: var(--navy-hero);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.backtop svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }
.backtop.hide { display: none; }

/* ---------- ヒーロー (top) ---------- */
.hero { position: relative; height: 700px; }
.hero > picture { display: block; height: 100%; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; }
.hero-copy {
  position: absolute;
  top: 115px;
  left: 50%;
  transform: translateX(-600px);
  width: 700px;
}
.hero-label {
  display: inline-block;
  background: var(--navy-hero);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 41px;
  line-height: 1.55;
  letter-spacing: .04em;
  padding: 6px 26px 8px;
  margin-bottom: 14px;
}
.hero-badges {
  position: absolute;
  top: 480px;
  left: 50%;
  transform: translateX(-600px);
  width: 680px;
  display: flex;
  gap: 22px;
}
.hero-badge {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #d9d9d9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 21px;
  line-height: 1.4;
}
.hero-badge .sm { font-size: 17px; }
.hero-badge .red { color: var(--red); }
.hero-badge .big { font-size: 30px; line-height: 1.2; }

/* ---------- 下位ページ共通サブヒーロー ---------- */
.page-hero { position: relative; height: 245px; }
.page-hero > picture { display: block; height: 100%; }
.page-hero img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  letter-spacing: .06em;
  text-shadow: 0 1px 8px rgba(0,0,0,.35);
}
.breadcrumb {
  max-width: 1560px;
  margin: 14px auto 0;
  padding: 0 24px;
  text-align: right;
  font-size: 12px;
  color: #666;
  line-height: 1.6;
}
.breadcrumb a:hover { color: var(--teal); }

/* ---------- セクション見出し ---------- */
.sec {
  padding: 90px 0 100px;
}
.sec--cream { background: var(--cream); }
.sec--navy { background: var(--navy); }
.sec--teal { background: var(--teal); }
.sec-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 33px;
  color: var(--navy);
  text-align: center;
  line-height: 1.6;
  letter-spacing: .08em;
}
.sec-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--teal);
  margin: 18px auto 0;
}
.sec--navy .sec-title, .sec--teal .sec-title, .photo-sec .sec-title { color: #fff; }
.photo-sec .sec-title::after, .sec--navy .sec-title::after, .sec--teal .sec-title::after { background: #fff; }

/* ---------- ピルボタン ---------- */
.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: var(--navy);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: .04em;
  border-radius: 999px;
  padding: 15px 38px;
  line-height: 1.4;
  transition: opacity .25s;
}
.btn-pill:hover { opacity: .85; }
.btn-pill .arrow-circle {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.btn-pill .arrow-circle svg { width: 11px; height: 11px; stroke: var(--navy); stroke-width: 2.5; fill: none; }

/* ---------- ご相談内容 (top) ---------- */
.consult-card {
  background: #fff;
  margin-top: 56px;
  padding: 20px 40px;
}
.consult-row {
  display: grid;
  grid-template-columns: 195px 1fr 390px;
  align-items: center;
  gap: 40px;
  padding: 36px 0;
  border-bottom: 1px solid var(--gold);
}
.consult-row:last-child { border-bottom: none; }
.consult-row h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--navy);
  line-height: 1.7;
}
.consult-row p { font-size: 15px; line-height: 1.9; }
.consult-row .btn-pill { width: 100%; font-size: 15px; }

/* ---------- 選ばれる5つの理由 (top) ---------- */
.photo-sec { background-size: cover; background-position: center; padding: 80px 0 90px; }
.reason-grid {
  max-width: 1200px;
  margin: 56px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.reason-card { width: 380px; background: #fff; }
.reason-card img { width: 100%; height: 190px; object-fit: cover; }
.reason-card figcaption {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
  text-align: center;
  line-height: 1.6;
  padding: 14px 12px 18px;
}
.reason-card .accent { color: var(--red); }
.reason-more { text-align: center; margin-top: 40px; }

/* ---------- はじめての方へ 2カラム (top) ---------- */
.first-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 70px;
  overflow-x: clip; /* ::after 装飾のはみ出しを横スクロールさせない (縦は無影響) */
}
.first-block + .first-block { margin-top: 90px; }
.first-block h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 26px;
  color: var(--navy);
  text-align: center;
  line-height: 1.6;
  margin-bottom: 24px;
}
.first-photo { position: relative; }
.first-photo::after {
  content: "";
  position: absolute;
  z-index: -1;
  background: var(--navy);
  width: 65%;
  height: 55%;
}
.first-photo--right::after { top: 54%; height: 62%; left: 11%; width: 45vw; }
.first-photo--left::after { top: 55%; height: 61%; right: 100%; width: 19vw; }
.first-body { padding-top: 8px; }
.first-body .lead { margin-bottom: 20px; }
.num-list li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 16px;
  margin-bottom: 8px;
}
.num-sq {
  flex: none;
  width: 22px; height: 22px;
  background: var(--gold);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(3px);
}
.first-body .btn-pill { margin-top: 24px; }

/* ---------- ご相談の流れ (top) ---------- */
.flow-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  max-width: 1200px;
  margin: 60px auto 0;
  font-size: 15px;
  line-height: 1.9;
}
.flow-tab {
  grid-row: 1;
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: .1em;
}
.flow-grid > p { grid-row: 2; padding-right: 40px; }
.flow-tab.step1 { background: var(--navy); clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%); }
.flow-tab.step2 { background: var(--teal); transform: translateX(-26px); clip-path: polygon(0 0, 93% 0, 100% 50%, 93% 100%, 0 100%, 7% 50%); }
.flow-tab.step3 { background: var(--gold); transform: translateX(-26px); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 7% 50%); }
.flow-more { text-align: center; margin-top: 44px; }

/* ---------- 料金 (top) ---------- */
.price-lead {
  color: #fff;
  text-align: center;
  font-size: 17px;
  line-height: 1.9;
  margin-top: 30px;
}
.price-circles {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin-top: 44px;
}
.price-circle {
  width: 190px; height: 190px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--navy);
  font-size: 20px;
  line-height: 1.4;
  text-align: center;
  gap: 2px;
}
.price-circle svg { width: 30px; height: 30px; stroke: var(--navy); fill: none; stroke-width: 1.8; margin-bottom: 4px; }
.price-circle .red { color: var(--red); }
.price-circle .sm { font-size: 16px; }
.price-circle .big { font-size: 30px; line-height: 1.2; }

/* ---------- ワンストップ比較 (top) ---------- */
.onestop { padding: 100px 0; }
.onestop-grid {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.compare-table { width: 100%; font-size: 14px; }
.compare-table th, .compare-table td {
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  text-align: center;
  line-height: 1.6;
}
.compare-table thead th { background: var(--gold); color: #fff; font-weight: 600; }
.compare-table tbody th { font-weight: 600; background: #fafafa; }
.gold-banner {
  max-width: 1200px;
  margin: 70px auto 40px;
  background: var(--gold);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-style: italic;
  font-size: 25px;
  letter-spacing: .06em;
  text-align: center;
  padding: 12px 24px;
}
.onestop-text { max-width: 1200px; margin: 0 auto; font-size: 16px; }

/* ---------- よくあるご質問 (top) ---------- */
.faq-cards {
  max-width: 1200px;
  margin: 56px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.faq-card {
  background: #fff;
  height: 110px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0 0 28px;
  position: relative;
}
.faq-card.no-link { padding-right: 28px; }
.faq-icon {
  flex: none;
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.6; }
.faq-card span { font-size: 16px; font-weight: 500; color: var(--navy); line-height: 1.6; }
.faq-card .arrow-strip {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 26px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}
.faq-card .arrow-strip svg { width: 10px; height: 10px; fill: #fff; }

/* ---------- お問い合わせ (top) ---------- */
.contact-cards {
  max-width: 1200px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 44px;
}
.contact-card {
  background: #fff;
  height: 112px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding-left: 24px;
  position: relative;
}
.contact-icon {
  flex: none;
  width: 82px; height: 82px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 34px; height: 34px; fill: #fff; }
.contact-icon--tel { background: var(--teal); }
.contact-icon--mail { background: var(--gold); }
.contact-icon--line { background: var(--green); }
.contact-card small { display: block; font-size: 13px; color: #666; line-height: 1.6; }
.contact-card b {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  color: var(--navy);
  line-height: 1.5;
}
.contact-card .arrow-strip {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-card .arrow-strip svg { width: 11px; height: 11px; fill: #fff; }
.contact-card--tel .arrow-strip { background: var(--teal); }
.contact-card--mail .arrow-strip { background: var(--gold); }
.contact-card--line .arrow-strip { background: var(--green); }

/* ---------- サイト CTA 帯 (footer 直上) ---------- */
.site-cta { background: var(--cream); padding: 26px 0; }
.site-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: var(--navy);
}
.site-cta img { width: 44px; height: auto; }
.site-cta svg { width: 12px; height: 12px; fill: var(--navy); }

/* ---------- フッター ---------- */
.footer { background: #fff; padding: 60px 0 120px; }
.footer-grid {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.4fr 1fr .8fr .8fr;
  gap: 40px;
}
.footer-logo-row { display: flex; align-items: center; gap: 24px; margin-bottom: 22px; }
.footer-logo-row img { width: 100px; height: auto; flex: none; }
.footer-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  color: #333;
  line-height: 1.4;
}
.footer-title span { display: block; font-size: 24px; }
.footer-brand .footer-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  color: #333;
  line-height: 1.6;
}
.footer-name .co { display: block; white-space: nowrap; } /* 「司法書士法人」を独立行にして社名 (11字) を1行保証 */
.footer-brand p { font-size: 14px; color: #333; line-height: 1.9; margin-top: 14px; }
.footer-col > a, .footer-col > span {
  display: block;
  font-size: 15px;
  color: var(--navy);
  margin-bottom: 14px;
}
.footer-col > a:hover { color: var(--teal); }
.footer-col .sub a {
  display: block;
  font-size: 14px;
  color: var(--navy);
  padding: 4px 0 4px 18px;
}
.footer-col .sub a:hover { color: var(--teal); }

/* ---------- 共通: 本文ブロック (下位ページ) ---------- */
.page-body { padding: 30px 0 140px; }
.lead { font-size: 16px; line-height: 2; }
.h-block { margin-top: 60px; }
.h-block:first-child { margin-top: 0; }
.h-row {
  display: flex;
  align-items: center;
  gap: 18px;
  border-bottom: 2px solid var(--navy);
  padding-bottom: 12px;
}
.h-row h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 29px;
  color: var(--navy);
  line-height: 1.5;
}
.badge-pill {
  flex: none;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 22px;
  letter-spacing: .04em;
}
.badge-pill--gold { background: var(--gold); }
.h-block .body-text { margin-top: 28px; }
.body-text { font-size: 16px; line-height: 2; }
.body-text + .body-text { margin-top: 24px; }

.two-col {
  display: grid;
  grid-template-columns: 480px 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 40px;
}
.two-col--rev { grid-template-columns: 1fr 480px; }
.two-col img { width: 100%; height: auto; }

/* 汎用テーブル */
.data-table { width: 100%; font-size: 15px; margin-top: 30px; }
.data-table th, .data-table td { border: 1px solid #cfcfcf; padding: 12px 16px; line-height: 1.8; }
.data-table thead th { background: var(--navy); color: #fff; font-weight: 600; text-align: center; }
.data-table tbody th { background: #f2f2ee; font-weight: 600; width: 220px; }

/* アコーディオン (FAQ) */
.acc { border-bottom: 1px solid #dcdcdc; }
.acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 26px 44px 26px 0;
  position: relative;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.7;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before {
  content: "Q";
  flex: none;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.acc summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 14px; height: 14px;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s;
}
.acc[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.acc .acc-body {
  padding: 4px 0 28px 50px;
  font-size: 15px;
}
.acc .acc-body::before {
  content: "A";
  float: left;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  color: var(--teal);
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  transform: translateY(6px);
}

/* フォーム */
.form-table { width: 100%; margin-top: 40px; }
.form-table th, .form-table td { border: 1px solid #d5d5d5; padding: 18px 20px; vertical-align: middle; line-height: 1.8; }
.form-table th { background: #f2f2ee; font-weight: 600; width: 260px; text-align: left; }
.form-table .req {
  color: #fff;
  background: var(--red);
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
  padding: 2px 8px;
  margin-left: 10px;
  vertical-align: 2px;
}
.form-table input[type="text"], .form-table input[type="email"],
.form-table input[type="tel"], .form-table textarea, .form-table select {
  width: 100%;
  font-family: var(--sans);
  font-size: 16px;
  padding: 10px 14px;
  border: 1px solid #bbb;
  border-radius: 3px;
  background: #fff;
}
.form-table textarea { height: 160px; }
.form-submit { text-align: center; margin-top: 44px; }
.form-submit .btn-pill { font-size: 18px; padding: 18px 80px; }
.form-note { font-size: 13px; color: #666; margin-top: 20px; text-align: center; line-height: 1.8; }

/* =========================================================
   タブレット中間幅 (769–1199px) — PC レイアウトの固定値を可変化
   ========================================================= */
@media (min-width: 769px) and (max-width: 1199px) {
  .inner { max-width: none; margin: 0 24px; }
  /* hero: 中間幅ではラベル4行が右側の人物の顔に被るため、写真の下に積む (SP と同じ縦積み) */
  .hero { height: auto; overflow: hidden; }
  .hero > picture { display: block; height: auto; }
  .hero-bg { height: auto; }
  .hero-copy { position: static; transform: none; width: auto; padding: 20px 24px 0; }
  .hero-badges { position: static; transform: none; width: auto; justify-content: center; gap: 10px; margin: 18px 0 24px; }
  .hero-badge { width: 110px; height: 110px; font-size: 13px; }
  .hero-badge .sm { font-size: 11px; }
  .hero-badge .big { font-size: 19px; }
  /* ヘッダー: nav 折返し防止 */
  .header-inner { gap: 14px; }
  .header-nav { gap: 16px; }
  .header-nav a { font-size: 13px; white-space: nowrap; }
  .header-tel { font-size: 20px; white-space: nowrap; }
  .btn-header { font-size: 13px; padding: 8px 14px; white-space: nowrap; }
  /* サービス一覧: 390px 固定列が 1fr を潰すため可変化 */
  .consult-row { grid-template-columns: 160px 1fr minmax(200px, 240px); gap: 24px; }
  /* お問い合わせ/FAQ 3カード: 中間幅では縦積み (3列維持では 1 枚 256px に収まらない) */
  .contact-cards { grid-template-columns: 1fr; max-width: none; margin: 40px 24px 0; }
  .contact-card { padding-right: 42px; }
  .faq-cards { grid-template-columns: 1fr; max-width: none; margin: 40px 24px 0; }
  .faq-card { padding-right: 44px; }
  /* 固定 CTA: ラベル折返し防止 */
  .cta-fixed .mail, .cta-fixed .line { font-size: 13px; }
  .cta-fixed .mail svg, .cta-fixed .line svg { width: 17px; height: 17px; }
  .footer-brand .footer-name { font-size: 17px; } /* brand 列幅に対し 23px は語中折返し (specificity は PC 定義と揃える) */
  .hero-badges { transform: translateX(-50%); width: max-content; } /* PC 固定値 -600px ではみ出す */
  .flow-grid { max-width: none; margin: 60px 24px 0; } /* 画面端テキスト接触回避 */
}

/* =========================================================
   SP (≤768px)
   ========================================================= */
@media (max-width: 768px) {
  body { font-size: 15px; }
  .topbar { font-size: 10px; padding: 4px 10px; }

  .header { position: relative; }
  .header-inner { padding: 14px 14px 12px; justify-content: center; }
  .header-brand { gap: 10px; }
  .header-brand img { width: auto; height: 38px; }
  .header-name { font-size: 17px; line-height: 1.3; }
  .header-name small { font-size: 12px; }
  .header-right { display: none; }
  .header-nav { display: none; }
  .nav-toggle { display: block; }

  .cta-fixed { grid-template-columns: 1.5fr 1fr 48px; right: 0; } /* カンプ: 2段目の右 48px は backtop に明け渡す */
  .cta-fixed .tel { grid-column: 1 / -1; height: 56px; font-size: 19px; }
  .cta-fixed .mail, .cta-fixed .line { height: 46px; font-size: 15px; gap: 7px; }
  .cta-fixed svg { width: 20px; height: 20px; }
  .backtop { bottom: 0; width: 48px; height: 46px; }

  /* SP 専用写真 (hero-sp.jpg / hero.jpg 自然比率) の顔にラベル・円が被らないよう縦積みに自動再配置 */
  .hero { height: auto; }
  .hero > picture { height: auto; }
  .hero-bg { height: auto; }
  .hero-copy { position: static; transform: none; width: auto; padding: 20px 12px 0; }
  .hero-label { font-size: 22px; padding: 5px 12px 6px; margin-bottom: 8px; letter-spacing: 0; }
  .hero-badges { position: static; transform: none; width: auto; justify-content: center; gap: 5px; margin: 18px 0 22px; }
  .hero-badge { width: 110px; height: 110px; font-size: 13px; }
  .hero-badge .sm { font-size: 11px; }
  .hero-badge .big { font-size: 19px; }
  @media (max-width: 359px) {
    .hero-badge { width: 94px; height: 94px; font-size: 12px; }
    .hero-badge .big { font-size: 17px; }
    /* 320px (iPhone SE) 対応: ヘッダー重複・孤立文字回避 */
    .header-name { font-size: 14px; }
    .header-name small { font-size: 11px; }
    .hero-label { font-size: 18px; }
    .btn-pill { font-size: 14px; padding: 12px 16px; gap: 8px; }
    .cta-fixed .mail, .cta-fixed .line { font-size: 12px; gap: 6px; }
    .cta-fixed .mail svg, .cta-fixed .line svg { width: 16px; height: 16px; }
  }

  .page-hero { height: 120px; }
  .page-hero h1 { font-size: 22px; line-height: 1.6; padding: 0 16px; }
  .breadcrumb { display: none; }

  .sec { padding: 56px 0 64px; }
  .sec-title { font-size: 24px; }

  .btn-pill { font-size: 15px; padding: 13px 28px; }

  .consult-card { margin-top: 32px; padding: 6px 20px; }
  .consult-row { grid-template-columns: 1fr; gap: 12px; padding: 26px 0; }
  .consult-row h3 { font-size: 20px; }
  .consult-row .btn-pill { justify-self: center; padding: 12px 40px; }

  .photo-sec { padding: 56px 0 64px; }
  .reason-grid { margin-top: 32px; gap: 20px; }
  .reason-card { width: min(340px, 100%); }
  .reason-card img { height: auto; } /* 固定高 cover で人物の頭部が切れるため自然比率 */
  .reason-more { margin-top: 28px; }

  .first-block { grid-template-columns: 1fr; gap: 32px; margin-top: 48px; }
  .first-block + .first-block { margin-top: 56px; }
  .first-photo::after { display: none; }
  .first-body .btn-pill { display: flex; }
  .first-block h3 { font-size: 24px; } /* 428px で末尾1文字孤立を回避 */

  /* カンプ: 左に縦タブ (縦書き) + 右に説明 */
  .flow-grid { grid-template-columns: 64px 1fr; max-width: none; margin: 32px 14px 0; gap: 0; font-size: 14px; }
  .flow-tab { grid-row: auto; grid-column: 1; height: auto; min-height: 104px; font-size: 15px; writing-mode: vertical-rl; clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%); }
  .flow-tab.step2 { transform: none; }
  .flow-tab.step3 { transform: none; }
  .flow-tab + p { grid-row: auto; grid-column: 2; padding: 4px 0 20px 14px; }
  .flow-more { margin-top: 28px; }

  .price-circles { gap: 14px; margin-top: 28px; }
  .price-circle { width: 108px; height: 108px; font-size: 14px; gap: 0; }
  .price-circle svg { width: 20px; height: 20px; margin-bottom: 2px; }
  .price-circle .sm { font-size: 11px; }
  .price-circle .big { font-size: 18px; }

  .onestop { padding: 60px 0; }
  .onestop-grid { grid-template-columns: 1fr; gap: 32px; margin-top: 36px; }
  .compare-table { font-size: 12px; }
  .compare-table th, .compare-table td { padding: 8px 6px; }
  .gold-banner { font-size: 18px; margin: 48px 14px 24px; }
  .onestop-text { padding: 0 14px; font-size: 15px; }

  .faq-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .faq-card { height: auto; padding: 16px 40px 16px 18px; gap: 14px; }
  .faq-icon { width: 54px; height: 54px; }
  .faq-icon svg { width: 26px; height: 26px; }
  .faq-card span { font-size: 14px; }

  .contact-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 32px; }
  .contact-card { height: auto; padding: 16px 42px 16px 16px; gap: 14px; }
  .contact-icon { width: 60px; height: 60px; }
  .contact-icon svg { width: 26px; height: 26px; }
  .contact-card small { font-size: 11px; }
  .contact-card b { font-size: 16px; }

  /* カンプ: アイコン+2行テキスト+矢印が1行内 */
  .site-cta a {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    text-align: left;
    padding: 0 14px; /* 文字が画面端に接触するのを防ぐ */
  }
  .site-cta img { width: 30px; }
  .site-cta svg { width: 11px; height: 11px; }

  /* カンプ: リンク列なし・ブランドのみ中央寄せ */
  .footer { padding: 44px 0 130px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding: 0 18px; }
  .footer-brand { text-align: center; }
  .footer-col { display: none; }
  .footer-logo-row { justify-content: center; gap: 12px; margin-bottom: 14px; }
  .footer-logo-row img { width: 44px; }
  .footer-title { font-size: 14px; line-height: 1.45; }
  .footer-title span { font-size: 12px; }
  .footer-brand .footer-name { font-size: 17px; margin-top: 8px; } /* 320px でも「博多中央総合法律事務所」1行を保証 */
  .footer-brand p { font-size: 12px; margin-top: 10px; }

  .page-body { padding: 24px 0 130px; }
  /* カンプ: バッジ中央・見出し中央寄せで下段に積む */
  .h-row { flex-direction: column; align-items: center; gap: 14px; padding-bottom: 14px; text-align: center; }
  .h-row h2 { font-size: 21px; }
  .badge-pill { font-size: 12px; padding: 5px 16px; }
  .two-col, .two-col--rev { grid-template-columns: 1fr; gap: 24px; }
  /* カンプ: SP 積み上げ時は利率 table を先に (niniseiri 006) */
  .two-col--tbl-first > :first-child { order: 2; }
  .data-table { font-size: 13px; }
  .data-table th, .data-table td { padding: 10px 10px; }
  .data-table tbody th { width: auto; }

  .form-table th, .form-table td { display: block; width: auto; }
  .form-table th { border-bottom: none; padding-bottom: 6px; }
  .form-table td { border-top: none; padding-top: 6px; }
  .form-table tr { border: 1px solid #d5d5d5; }
  .form-submit .btn-pill { width: 100%; padding: 16px 20px; }
}

/* =========================================================
   アニメーション — hover / スクロール出現 / 入口演出
   reveal は .js 付与時のみ有効 (JS無効でもコンテンツは表示される)
   ========================================================= */
:root { --ease: cubic-bezier(.22, .61, .36, 1); }

@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes popIn   { from { opacity: 0; transform: scale(.85); }      to { opacity: 1; transform: scale(1); } }
@keyframes ctaUp   { from { transform: translateY(100%); }            to { transform: none; } }
@keyframes rvIn    { from { opacity: 0; translate: 0 22px; }          to { opacity: 1; translate: 0 0; } }
@keyframes accBody { from { opacity: 0; translate: 0 -8px; }          to { opacity: 1; translate: 0 0; } }
@keyframes heroZoom{ from { transform: scale(1.05); }                 to { transform: scale(1); } }

/* --- 読み込み時の入口演出 (JS不要) --- */
.hero { overflow: hidden; }
.hero-bg { animation: heroZoom 1.8s var(--ease) both; }
.hero-copy .hero-label { animation: fadeUp .6s var(--ease) both; }
.hero-copy .hero-label:nth-child(1) { animation-delay: .15s; }
.hero-copy .hero-label:nth-child(2) { animation-delay: .23s; }
.hero-copy .hero-label:nth-child(3) { animation-delay: .31s; }
.hero-copy .hero-label:nth-child(4) { animation-delay: .39s; }
.hero-badges .hero-badge { animation: popIn .5s var(--ease) both; }
.hero-badges .hero-badge:nth-child(1) { animation-delay: .55s; }
.hero-badges .hero-badge:nth-child(2) { animation-delay: .65s; }
.hero-badges .hero-badge:nth-child(3) { animation-delay: .75s; }
.cta-fixed { animation: ctaUp .6s var(--ease) .9s both; }

/* --- 下部固定 CTA: 帯を浮かせる影 (演出は行末 additive セクションへ統合) --- */
.cta-fixed {
  box-shadow: 0 -4px 18px rgba(22, 50, 79, .18);
}

.page-hero { overflow: hidden; }
.page-hero img { animation: heroZoom 1.6s var(--ease) both; }
.page-hero h1 { animation: fadeUp .7s var(--ease) .1s both; }

/* --- スクロール出現 (main.js の IntersectionObserver) ---
   translate/animation で出すので要素個別の hover transition と衝突しない */
.js [data-rv]:not(.rv-in) { opacity: 0; translate: 0 22px; }
.js [data-rv].rv-in { animation: rvIn .55s var(--ease) both; animation-delay: var(--rvd, 0s); }

/* --- ボタン・カード hover --- */
.btn-pill { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn-pill:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(22, 50, 79, .18); }
.btn-pill:active { transform: translateY(0); box-shadow: none; }
.btn-pill .arrow-circle svg { transition: translate .25s var(--ease); }
.btn-pill:hover .arrow-circle svg { translate: 2px 0; }

.btn-header { transition: transform .2s var(--ease), box-shadow .2s var(--ease), opacity .2s; }
.btn-header:hover { transform: translateY(-1px); opacity: .92; box-shadow: 0 4px 10px rgba(22, 50, 79, .15); }

.faq-card, .contact-card { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.faq-card:hover, .contact-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(22, 50, 79, .12); }
.faq-card .arrow-strip svg, .contact-card .arrow-strip svg { transition: translate .25s var(--ease); }
.faq-card:hover .arrow-strip svg, .contact-card:hover .arrow-strip svg { translate: 2px 0; }

.site-cta a { transition: background-color .3s; }
.site-cta a:hover { background: #ece9e0; }

.cta-fixed a:active { filter: brightness(.92); }
.backtop svg { transition: translate .25s var(--ease); }
.backtop:hover svg { translate: 0 -2px; }

.header-nav a, .footer-col a, .footer-col .sub a, .breadcrumb a, .footer-brand .footer-name { transition: color .2s; }

/* --- 写真カード: hover でゆるやかにズーム --- */
.reason-card { overflow: hidden; }
.reason-card img { transition: transform .6s var(--ease); }
.reason-card:hover img { transform: scale(1.06); }

/* --- アコーディオン開閉 (details) --- */
.acc[open] > .acc-body { animation: accBody .35s var(--ease) both; }

/* =========================================================
   アニメ追記 (additive): CTA グロー / 押下フィードバック / 軽微な hover
   (web/src/app/globals.css と同一内容 — 両配信系で演出を統一)
   ========================================================= */
/* スイープ帯: translateX の % は帯自身の幅 (ボタンの40%) 基準なので、
   右へ出切るには 250%+skew 分が必要。-150%→320% で全ボタン幅 (48px〜) に出し切り。
   60%で走り終え 100% まで休息 (=1.8s の間、完全に画面外で待機) */
@keyframes shineSweep { 0% { transform: translateX(-150%) skewX(-18deg); } 60%, 100% { transform: translateX(320%) skewX(-18deg); } }
/* ピーク 30%: 帯がボタン中央を通過する瞬間 (走査の約48%地点×60%区間≈29%) に合わせて光る。
   立ち上がり30%・減光70%で「きらっ→ゆっくり消える」 */
@keyframes glowPulse  { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 22px 3px var(--glow, transparent); } }
@keyframes rippleIn   { to { transform: scale(2.6); opacity: 0; } }

/* --- 光る演出の土台 (::before は absolute なので flex/grid の並びを崩さない) --- */
.btn-pill, .btn-header, .site-cta a, .cta-fixed a { position: relative; overflow: hidden; }
.btn-pill::before, .btn-header::before, .site-cta a::before, .cta-fixed a::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent);
  transform: translateX(-150%) skewX(-18deg);
  pointer-events: none;
  z-index: 0;
}

/* 常時グロー+スイープ: グローと帯を同周期 4.5s・同遅延にして「きらっ」を1つの
   イベントに統合。tel→mail→line の順に 0.55s ずつ時差で発火 */
.cta-fixed .tel  { --glow: rgba(36,147,136,.55); animation: glowPulse 4.5s ease-in-out 1.6s infinite; }
.cta-fixed .mail { --glow: rgba(197,162,83,.55); animation: glowPulse 4.5s ease-in-out 2.15s infinite; }
.cta-fixed .line { --glow: rgba(37,206,106,.55); animation: glowPulse 4.5s ease-in-out 2.7s infinite; }
.cta-fixed .tel::before   { animation: shineSweep 4.5s linear 1.6s infinite; }
.cta-fixed .mail::before  { animation: shineSweep 4.5s linear 2.15s infinite; }
.cta-fixed .line::before  { animation: shineSweep 4.5s linear 2.7s infinite; }

/* hover 式スイープ (transition で帯が右へ横切る。離すと即座に戻る)。
   320% は帯幅基準で右へ出し切る値 (アニメ版と同じ出切り) */
.btn-pill:hover::before, .btn-header:hover::before, .site-cta a:hover::before {
  transform: translateX(320%) skewX(-18deg);
  transition: transform .7s var(--ease);
}
.btn-pill:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(22, 50, 79, .18), 0 0 22px 3px rgba(22, 50, 79, .4);
}
.btn-header:hover { box-shadow: 0 4px 10px rgba(22, 50, 79, .15), 0 0 18px 2px rgba(22, 50, 79, .45); }
.site-cta a:hover { box-shadow: 0 0 20px 2px rgba(22, 50, 79, .22); }

/* --- 押下フィードバック (既存 .cta-fixed a:active の brightness と併存) --- */
.cta-fixed a:active, .btn-pill:active, .btn-header:active, .site-cta a:active { transform: scale(.97); }

/* --- 軽微なマイクロインタラクション --- */
.header-nav a { position: relative; }
.header-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.header-nav a:hover::after, .header-nav a:focus-visible::after { transform: scaleX(1); }
.backtop { transition: filter .2s; }
.backtop:hover { filter: brightness(1.3); }

/* --- 負荷軽減: 動きを全面的に無効化 --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rv]:not(.rv-in) { opacity: 1; translate: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important; /* infinite 演出 (glow/sweep) の .01ms 高速ループ明滅を防ぐ */
    transition-duration: .01ms !important;
    transition-delay: 0ms !important;
  }
}
