/* ============================================
   行政書士法人 Tree 法人設立LP
   Design: 信頼感×建設業の力強さ
   ============================================ */

:root {
  --ink: #0E2A4A;        /* メインの深いインクブルー */
  --ink-2: #173658;
  --ink-3: #21436b;
  --gold: #B5895A;       /* 真鍮ゴールド */
  --gold-2: #9a7044;
  --paper: #F5F1EA;      /* 温かみのあるアイボリー */
  --paper-2: #ECE5D8;
  --line: #d9cfbf;
  --text: #1a1a1a;
  --text-2: #4a4a4a;
  --text-3: #777169;
  --white: #ffffff;
  --danger: #B43A3A;

  --serif: "Noto Serif JP", "Yu Mincho", "游明朝", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Yu Gothic", "游ゴシック", "Hiragino Kaku Gothic ProN", sans-serif;
  --mono: "JetBrains Mono", "Menlo", monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-feature-settings: "palt";
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ============== レイアウト ============== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 32px;
}

section {
  padding: 120px 0;
  position: relative;
}

/* ============== タイポグラフィ ============== */
.eyebrow {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--gold);
}

.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.section-title .accent { color: var(--gold); }

.section-lead {
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.9;
  max-width: 640px;
  margin-bottom: 60px;
}

/* ============== ヘッダー ============== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(245, 241, 234, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 207, 191, 0.5);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  background: rgba(245, 241, 234, 0.95);
}
.site-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo__mark {
  width: 38px; height: 38px;
  background: var(--ink);
  display: grid; place-items: center;
  position: relative;
}
.logo__mark svg { width: 22px; height: 22px; }
.logo__text {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.logo__text small {
  display: block;
  font-size: 10px;
  letter-spacing: 0.25em;
  color: var(--gold);
  font-weight: 500;
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav__list { display: flex; gap: 28px; list-style: none; }
.nav__list a {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s;
}
.nav__list a:hover { color: var(--gold); }
.nav__contact-tel {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.2;
}
.nav__contact-tel small {
  font-family: var(--sans);
  font-size: 10px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-bottom: 2px;
  font-weight: 400;
}
.nav__contact-tel span { font-size: 18px; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--ink);
  color: var(--paper);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  transition: all 0.25s ease;
  border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); }
.btn-primary .arrow { transition: transform 0.25s; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  transition: all 0.25s ease;
}
.btn-outline:hover { background: var(--ink); color: var(--paper); }

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  border: 1px solid var(--gold);
  transition: all 0.25s ease;
}
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); }

.mobile-menu-btn { display: none; }

/* ============== ヒーロー ============== */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at top right, rgba(181, 137, 90, 0.08), transparent 50%),
    var(--paper);
}
.hero__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.hero__copy { position: relative; }
.hero__pretitle {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--gold);
  margin-bottom: 32px;
}
.hero__pretitle::before {
  content: ""; width: 36px; height: 1px; background: var(--gold);
}
.hero__title {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: 0.01em;
  margin-bottom: 32px;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .hero__title { white-space: nowrap; font-size: clamp(20px, 5.4vw, 28px); }
}
@media (max-width: 720px) {
  .hero__title { font-size: clamp(18px, 5.6vw, 24px); }
}
.hero__title .gold { color: var(--gold); }
.hero__title .underline {
  background-image: linear-gradient(transparent 70%, rgba(181, 137, 90, 0.25) 70%);
}
.hero__subtitle {
  font-size: 16px;
  color: var(--text-2);
  line-height: 2;
  margin-bottom: 48px;
  max-width: 520px;
}
.hero__cta-row {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  flex-wrap: wrap;
}
.hero__trust {
  display: flex;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.trust-item__num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.trust-item__num small {
  font-size: 14px;
  color: var(--gold);
  margin-left: 4px;
}
.trust-item__label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-top: 6px;
}

.hero__visual { position: relative; }
.hero__photo {
  aspect-ratio: 1 / 1;
  background: var(--paper-2);
  position: relative;
  overflow: hidden;
}
.hero__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 100% center;
  display: block;
}
.placeholder-photo {
  width: 100%; height: 100%;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.04),
      rgba(255,255,255,0.04) 12px,
      transparent 12px,
      transparent 24px
    ),
    linear-gradient(135deg, #1a3556 0%, #0E2A4A 100%);
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-align: center;
  padding: 20px;
}
.placeholder-photo span {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px 16px;
}
.hero__badge {
  position: absolute;
  bottom: -28px;
  left: -28px;
  background: var(--paper);
  padding: 24px 28px;
  border: 1px solid var(--line);
  max-width: 280px;
}
.hero__badge-label {
  font-family: var(--serif);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.hero__badge-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
}
.hero__seal {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--white);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  text-align: center;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.05em;
  transform: rotate(-8deg);
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}
.hero__seal strong {
  font-size: 18px;
  display: block;
  font-weight: 600;
}

/* バックグラウンドの大文字装飾 */
.hero__bg-text {
  position: absolute;
  bottom: -40px;
  left: -10px;
  font-family: var(--serif);
  font-size: 280px;
  font-weight: 600;
  color: rgba(14, 42, 74, 0.04);
  line-height: 0.85;
  pointer-events: none;
  letter-spacing: -0.05em;
}

/* ============== セクションナンバー ============== */
.section-num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.3em;
  margin-bottom: 12px;
  display: block;
}

/* ============== 強み セクション ============== */
.strengths {
  background: var(--paper);
}
.strengths__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin-bottom: 80px;
  align-items: end;
}
.strengths__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.strength-card {
  padding: 48px 40px;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.3s;
}
.strength-card:hover { background: var(--paper-2); }
.strength-card__num {
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 32px;
}
.strength-card__icon {
  width: 56px; height: 56px;
  margin-bottom: 28px;
  color: var(--ink);
}
.strength-card__icon svg { width: 100%; height: 100%; }
.strength-card__title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 16px;
  white-space: nowrap;
}
@media (max-width: 1024px) {
  .strength-card__title { font-size: clamp(15px, 1.9vw, 19px); }
}
@media (max-width: 720px) {
  .strength-card__title { font-size: 18px; }
}
.strength-card__desc {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.95;
}

/* ============== ワンストップ フロー ============== */
.flow {
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(181, 137, 90, 0.15), transparent 50%);
  pointer-events: none;
}
.flow .eyebrow { color: var(--gold); }
.flow .section-title { color: var(--paper); }
.flow .section-lead { color: rgba(245, 241, 234, 0.7); }
.flow__diagram {
  margin-top: 60px;
  position: relative;
}
.flow__steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}
.flow__line {
  position: absolute;
  top: 32px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 10%, var(--gold) 90%, transparent);
  z-index: 0;
}
.flow-step {
  position: relative;
  z-index: 1;
  padding: 0 12px;
  text-align: center;
}
.flow-step__circle {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  background: var(--ink);
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
  font-weight: 600;
  position: relative;
}
.flow-step__circle::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(181, 137, 90, 0.3);
  border-radius: 50%;
}
.flow-step__title {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--paper);
  margin-bottom: 12px;
  line-height: 1.5;
}
.flow-step__desc {
  font-size: 12px;
  color: rgba(245, 241, 234, 0.65);
  line-height: 1.85;
}
.flow-step__time {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-top: 12px;
  display: block;
}

/* ============== 司法書士連携 ============== */
.collab { background: var(--paper-2); }
.collab__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.collab__diagram {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px 32px;
  position: relative;
}
.collab__title {
  text-align: center;
  font-family: var(--serif);
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.25em;
  margin-bottom: 32px;
}
.collab__customer {
  width: 120px; height: 120px;
  margin: 0 auto 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 14px;
  text-align: center;
  line-height: 1.4;
  position: relative;
}
.collab__customer::before {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px dashed var(--gold);
  border-radius: 50%;
}
.collab__connectors {
  position: relative;
  height: 60px;
  margin: 0 auto;
  width: 70%;
}
.collab__line {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: var(--line);
}
.collab__line-l { left: 25%; }
.collab__line-r { right: 25%; }
.collab__pros {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.collab__pro {
  background: var(--paper-2);
  padding: 24px 20px;
  text-align: center;
  border: 1px solid var(--line);
}
.collab__pro-icon {
  width: 40px; height: 40px;
  margin: 0 auto 12px;
  color: var(--gold);
}
.collab__pro-name {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.collab__pro-role {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}
.collab__pro-tasks {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.7;
  text-align: left;
  list-style: none;
  padding: 0;
}
.collab__pro-tasks li {
  padding-left: 14px;
  position: relative;
  margin-bottom: 4px;
}
.collab__pro-tasks li::before {
  content: "・";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.collab__copy h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 24px;
}
.collab__points {
  list-style: none;
  margin-top: 32px;
}
.collab__points li {
  padding: 16px 0 16px 32px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}
.collab__points li::before {
  content: "";
  position: absolute;
  left: 0; top: 24px;
  width: 18px; height: 1px;
  background: var(--gold);
}
.collab__points li strong {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
}

/* ============== 料金プラン ============== */
.pricing { background: var(--paper); }
.pricing__head { text-align: center; }
.pricing__head .eyebrow { justify-content: center; }
.pricing__head .section-lead { margin: 0 auto 60px; text-align: center; }

.pricing__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.plan-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 48px 36px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
  transform: translateY(-12px);
}
.plan-card__badge {
  position: absolute;
  top: -1px; right: -1px;
  background: var(--gold);
  color: var(--white);
  font-family: var(--serif);
  font-size: 11px;
  padding: 8px 16px;
  letter-spacing: 0.2em;
}
.plan-card__name-jp {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 12px;
}
.plan-card.featured .plan-card__name-jp { color: var(--gold); }
.plan-card__name {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--ink);
}
.plan-card.featured .plan-card__name { color: var(--paper); }
.plan-card__tagline {
  font-size: 13px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.7;
}
.plan-card.featured .plan-card__tagline { color: rgba(245, 241, 234, 0.65); }
.plan-card__price {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 32px;
}
.plan-card.featured .plan-card__price { border-color: rgba(245, 241, 234, 0.2); }
.plan-card__price-label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.plan-card.featured .plan-card__price-label { color: rgba(245, 241, 234, 0.6); }
.plan-card__price-num {
  font-family: var(--serif);
  font-size: 38px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}
.plan-card.featured .plan-card__price-num { color: var(--paper); }
.plan-card__price-num small {
  font-size: 15px;
  margin-left: 4px;
  color: var(--gold);
}
.plan-card__price-sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 8px;
}
.plan-card.featured .plan-card__price-sub { color: rgba(245, 241, 234, 0.6); }

.plan-card__features {
  list-style: none;
  margin-bottom: 36px;
  flex: 1;
}
.plan-card__features li {
  font-size: 13px;
  padding: 10px 0 10px 24px;
  position: relative;
  line-height: 1.7;
  color: var(--text-2);
}
.plan-card.featured .plan-card__features li { color: rgba(245, 241, 234, 0.85); }
.plan-card__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 17px;
  width: 12px; height: 6px;
  border-left: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(-45deg);
}
.plan-card__features li.muted {
  color: var(--text-3);
  text-decoration: line-through;
  opacity: 0.5;
}
.plan-card__features li.muted::before { display: none; }

.plan-card .btn {
  display: block;
  text-align: center;
  padding: 14px;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: all 0.25s;
}
.plan-card .btn-outline { color: var(--ink); border-color: var(--ink); }
.plan-card.featured .btn { background: var(--gold); color: var(--white); border-color: var(--gold); }
.plan-card.featured .btn:hover { background: var(--gold-2); }

.pricing__note {
  margin-top: 48px;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.9;
}

/* ============== 許認可一覧 ============== */
.licenses {
  background: var(--paper-2);
  position: relative;
}
.licenses__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.licenses__copy { position: sticky; top: 120px; align-self: start; }
.licenses__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.license-item {
  padding: 24px 20px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.2s;
}
.license-item:nth-child(2n) { border-right: none; }
.license-item:hover { background: var(--paper-2); }
.license-item__cat {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--gold);
}
.license-item__name {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.5;
}
.license-item__desc {
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ============== 関連する許認可 ============== */
.related {
  background: var(--paper-2);
  padding: 120px 0;
}
.related__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.related__head .section-title {
  margin: 16px 0 24px;
}
.related__head .section-lead {
  margin: 0 auto;
  color: var(--text-2);
}
.related__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.related-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 36px 32px 56px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.related-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 14px 36px -16px rgba(14, 42, 74, 0.18);
}
.related-card__num {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--gold);
  margin-bottom: 16px;
}
.related-card__title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 12px;
}
.related-card__desc {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.85;
  flex-grow: 1;
}
.related-card__arrow {
  position: absolute;
  right: 28px;
  bottom: 24px;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--ink);
  transition: transform 0.25s ease, color 0.25s ease;
}
.related-card:hover .related-card__arrow {
  color: var(--gold);
  transform: translateX(6px);
}

/* ============== お客様の声 ============== */
.voices { background: var(--paper); }
.voices__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
}
.voice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
}
.voice-card__quote {
  font-family: var(--serif);
  font-size: 48px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 12px;
  font-weight: 600;
}
.voice-card__title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  margin-bottom: 16px;
}
.voice-card__text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.95;
  margin-bottom: 32px;
  flex: 1;
}
.voice-card__person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.voice-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}
.voice-card__name {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}
.voice-card__meta {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 2px;
}

/* ============== FAQ ============== */
.faq { background: var(--paper-2); }
.faq__inner {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 80px;
}
.faq__list {
  display: flex;
  flex-direction: column;
}
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item__question {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 24px;
  padding: 28px 0;
  text-align: left;
  background: none;
  cursor: pointer;
}
.faq-item__q-mark {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--gold);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 2px;
}
.faq-item__q-text {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.6;
  flex: 1;
}
.faq-item__toggle {
  width: 28px; height: 28px;
  flex-shrink: 0;
  position: relative;
  margin-top: 2px;
}
.faq-item__toggle::before,
.faq-item__toggle::after {
  content: "";
  position: absolute;
  background: var(--ink);
  transition: transform 0.3s;
}
.faq-item__toggle::before {
  top: 50%; left: 0; right: 0;
  height: 1px;
}
.faq-item__toggle::after {
  top: 0; bottom: 0; left: 50%;
  width: 1px;
}
.faq-item.open .faq-item__toggle::after { transform: scaleY(0); }
.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}
.faq-item.open .faq-item__answer { grid-template-rows: 1fr; }
.faq-item__answer-inner {
  overflow: hidden;
}
.faq-item__answer-content {
  padding: 0 0 32px 42px;
  display: flex;
  gap: 24px;
}
.faq-item__a-mark {
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  font-weight: 600;
  flex-shrink: 0;
}
.faq-item__a-text {
  font-size: 14px;
  color: var(--text-2);
  line-height: 2;
}

/* ============== CTA ============== */
.cta-section {
  padding: 100px 0;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255,255,255,0.02),
      rgba(255,255,255,0.02) 20px,
      transparent 20px,
      transparent 40px
    );
}
.cta-section__inner {
  position: relative;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}
.cta-section__eyebrow {
  font-family: var(--serif);
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--gold);
  margin-bottom: 20px;
  display: inline-block;
}
.cta-section__title {
  font-family: var(--serif);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 24px;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .cta-section__title { white-space: nowrap; font-size: clamp(15px, 4.4vw, 20px); }
}
.cta-section__lead {
  font-size: 14px;
  color: rgba(245, 241, 234, 0.75);
  line-height: 2;
  margin-bottom: 48px;
}
.cta-section__buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}
.cta-section .btn-outline { color: var(--paper); border-color: var(--paper); }
.cta-section .btn-outline:hover { background: var(--paper); color: var(--ink); }

/* ============== お問い合わせフォーム ============== */
.contact { background: var(--paper); padding-bottom: 100px; }
.contact__inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.contact__copy h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 24px;
}
/* kaitai-style ch-cards (light bg adaptation) */
.ch-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  text-decoration: none;
  color: inherit;
}
.ch-card + .ch-card { margin-top: 12px; }
.ch-card:hover {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--gold);
  transform: translateX(4px);
}
.ch-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(181, 137, 90, 0.15);
  color: var(--gold);
}
.ch-icon svg { width: 20px; height: 20px; }
.ch-line .ch-icon { background: rgba(6, 199, 85, 0.15); color: #06C755; }
.ch-mail .ch-icon { background: rgba(58, 122, 96, 0.18); color: #3a7a60; }
.ch-body { display: flex; flex-direction: column; line-height: 1.5; flex: 1; }
.ch-tag {
  font-size: 9.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 4px;
}
.ch-line .ch-tag { color: #06C755; }
.ch-mail .ch-tag { color: #3a7a60; }
.ch-main {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.ch-sub {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.contact__channels {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.channel {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.channel:last-child { border-bottom: 1px solid var(--line); }
.channel__icon {
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink);
  flex-shrink: 0;
}
.channel__icon svg { width: 20px; height: 20px; }
.channel__label {
  font-size: 11px;
  color: var(--text-3);
  letter-spacing: 0.15em;
  margin-bottom: 4px;
}
.channel__value {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.channel__sub {
  font-size: 11px;
  color: var(--text-3);
  margin-top: 4px;
}

.form {
  background: var(--paper-2);
  padding: 48px;
  border: 1px solid var(--line);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form__field { display: flex; flex-direction: column; gap: 8px; }
.form__field--full { grid-column: 1 / -1; }
.form__label {
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.form__label .req {
  background: var(--danger);
  color: var(--white);
  font-size: 9px;
  padding: 2px 6px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.form__label .opt {
  background: var(--text-3);
  color: var(--white);
  font-size: 9px;
  padding: 2px 6px;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.form__input,
.form__select,
.form__textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}
.form__input:focus,
.form__select:focus,
.form__textarea:focus {
  outline: none;
  border-color: var(--ink);
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%230E2A4A' stroke-width='1.2' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.form__check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 24px 0;
  font-size: 12px;
  color: var(--text-2);
  line-height: 1.7;
}
.form__check input { margin-top: 4px; accent-color: var(--ink); }
.form__check a { color: var(--gold); text-decoration: underline; }
.form__submit {
  width: 100%;
  padding: 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14px;
  letter-spacing: 0.2em;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}
.form__submit:hover { background: var(--ink-2); }

.form__success {
  background: var(--ink);
  color: var(--paper);
  padding: 60px 32px;
  text-align: center;
}
.form__success-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 auto 24px;
  display: grid; place-items: center;
}
.form__success-title {
  font-family: var(--serif);
  font-size: 22px;
  margin-bottom: 12px;
}
.form__success-text {
  font-size: 13px;
  color: rgba(245, 241, 234, 0.8);
  line-height: 1.9;
}

/* ============== フッター ============== */
.footer {
  background: #050d1c;
  color: rgba(255, 255, 255, 0.55);
  padding: 72px 0 36px;
  font-size: 12.5px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  margin-bottom: 0;
}
.footer__logo .logo__text {
  color: #ffffff;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.footer__logo .logo__text small {
  display: block;
  font-size: 10px;
  color: #6ea8d8;
  letter-spacing: 0.3em;
  margin-top: 6px;
  font-weight: 500;
}
.footer__info {
  margin-top: 16px;
  line-height: 1.95;
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
}
.footer__title {
  font-family: var(--serif);
  font-size: 10px;
  color: #6ea8d8;
  margin-bottom: 18px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.footer__list { list-style: none; display: flex; flex-direction: column; gap: 0; }
.footer__list li { padding: 6px 0; letter-spacing: 0.04em; }
.footer__list a { font-size: 12px; color: rgba(255, 255, 255, 0.55); transition: color 0.2s; }
.footer__list a:hover { color: #ffffff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}
@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
}

/* ============== Floating CTA (常時固定) ============== */
.floating-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 80;
  background: rgba(5, 13, 28, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid #6ea8d8;
  padding: 10px 16px;
  box-shadow: 0 -10px 30px -10px rgba(0, 0, 0, 0.3);
}
.fc-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: 12px;
  align-items: center;
}
.fc-label {
  font-family: var(--mono, "JetBrains Mono", monospace);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #6ea8d8;
  font-weight: 600;
  line-height: 1.4;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.fc-label b {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.06em;
  text-transform: none;
  margin-top: 3px;
}
.fc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  border-radius: 2px;
  transition: transform 0.2s, background 0.25s;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}
.fc-btn .ic {
  display: inline-grid;
  place-items: center;
  width: 22px; height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fc-btn .lbl-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}
.fc-btn .lbl-main span:first-child {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.fc-tel { background: #5b9bd5; color: #0E2A4A; }
.fc-tel:hover { background: #6ea8d8; }
.fc-tel .ic { background: #0E2A4A; color: #6ea8d8; }
.fc-tel .lbl-main span:first-child { color: #0E2A4A; opacity: 0.6; }
.fc-line { background: #06C755; color: #ffffff; }
.fc-line:hover { background: #05a848; }
.fc-line .ic { background: rgba(255, 255, 255, 0.2); color: #ffffff; }
.fc-line .lbl-main span:first-child { color: rgba(255, 255, 255, 0.7); }
.fc-mail {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.fc-mail:hover { background: rgba(255, 255, 255, 0.14); border-color: #6ea8d8; }
.fc-mail .ic { background: rgba(110, 168, 216, 0.2); color: #6ea8d8; }
body { padding-bottom: 84px; }
@media (max-width: 760px) {
  .floating-cta { padding: 8px 10px; }
  .fc-inner { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .fc-label { display: none; }
  .fc-btn {
    flex-direction: column;
    gap: 4px;
    padding: 9px 4px;
    font-size: 10.5px;
    line-height: 1.2;
  }
  .fc-btn .ic { width: 22px; height: 22px; }
  .fc-btn .ic svg { width: 11px; height: 11px; }
  .fc-btn .lbl-main {
    align-items: center;
    text-align: center;
  }
  .fc-btn .lbl-main span:first-child {
    font-size: 10.5px !important;
    color: inherit !important;
    letter-spacing: 0.02em !important;
    text-transform: none !important;
    font-weight: 600 !important;
    opacity: 1 !important;
  }
  .fc-btn .lbl-main span:nth-child(2) { display: none; }
  body { padding-bottom: 72px; }
}

/* ============== モバイル ============== */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; gap: 60px; }
  .strengths__head { grid-template-columns: 1fr; gap: 32px; }
  .strengths__grid { grid-template-columns: repeat(2, 1fr); }
  .collab__inner { grid-template-columns: 1fr; gap: 60px; }
  .licenses__inner { grid-template-columns: 1fr; gap: 40px; }
  .licenses__copy { position: static; }
  .voices__grid { grid-template-columns: 1fr; }
  .related__grid { grid-template-columns: repeat(2, 1fr); }
  .faq__inner { grid-template-columns: 1fr; gap: 40px; }
  .contact__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 14px; }
  section { padding: 80px 0; }
  .container, .container-narrow { padding: 0 20px; }
  .hero { padding: 120px 0 80px; }
  .hero__inner { padding: 0 20px; gap: 40px; }
  /* ====== モバイルメニュー（ドロワー） ====== */
  .nav {
    position: fixed;
    top: 0; right: 0;
    width: 100%; height: 100vh; height: 100dvh;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 96px 28px 120px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    overflow-y: auto;
    display: flex;
    gap: 0;
  }
  .nav--open { transform: translateX(0); }
  .nav__list {
    display: flex !important;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-bottom: 28px;
  }
  .nav__list li {
    border-bottom: 1px solid var(--line);
  }
  .nav__list a {
    display: block;
    padding: 18px 4px;
    font-size: 15px;
    color: var(--ink);
    font-weight: 500;
  }
  .nav__contact-tel {
    display: flex !important;
    flex-direction: column;
    gap: 4px;
    padding: 18px 4px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav__contact-tel small { font-size: 11px; color: var(--text-3); }
  .nav__contact-tel span {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: 0.04em;
  }
  .nav .btn-primary {
    display: inline-flex !important;
    width: 100%;
    justify-content: center;
    padding: 16px 20px;
  }
  /* ハンバーガーボタン */
  .mobile-menu-btn {
    display: grid;
    place-items: center;
    width: 40px; height: 40px;
    background: none;
    position: relative;
    z-index: 100;
    cursor: pointer;
  }
  .mobile-menu-btn span {
    width: 22px; height: 1px; background: var(--ink);
    display: block; position: relative;
    transition: background 0.2s;
  }
  .mobile-menu-btn span::before,
  .mobile-menu-btn span::after {
    content: ""; position: absolute; left: 0;
    width: 22px; height: 1px; background: var(--ink);
    transition: top 0.25s ease, transform 0.25s ease;
  }
  .mobile-menu-btn span::before { top: -7px; }
  .mobile-menu-btn span::after { top: 7px; }
  /* オープン時のX字 */
  .mobile-menu-btn.open span { background: transparent; }
  .mobile-menu-btn.open span::before { top: 0; transform: rotate(45deg); }
  .mobile-menu-btn.open span::after { top: 0; transform: rotate(-45deg); }
  /* メニュー開放時はサイトヘッダの背景を白にして判読性確保 */
  .site-header.menu-open { background: var(--paper); }

  .hero__bg-text { font-size: 140px; bottom: -20px; }
  .hero__seal { width: 80px; height: 80px; font-size: 9px; top: 16px; right: 16px; }
  .hero__seal strong { font-size: 14px; }
  .hero__badge { left: -12px; bottom: -16px; padding: 16px 18px; max-width: 220px; }
  .hero__trust { gap: 24px; flex-wrap: wrap; }
  .strengths__grid { grid-template-columns: 1fr; }
  .strength-card { padding: 36px 24px; }
  /* セクションタイトル：モバイルで「ご状況に合わせて選べる、」が1行に収まるサイズに縮小 */
  .section-title { font-size: clamp(22px, 5.6vw, 28px); }
  /* Collabの2ボックス（行政書士法人Tree／提携司法書士事務所）をモバイルでは縦積み均等表示 */
  .collab__pros { grid-template-columns: 1fr; gap: 16px; }
  .collab__pro-role { white-space: nowrap; font-size: 10px; letter-spacing: 0.05em; }
  .flow__steps { grid-template-columns: 1fr; gap: 32px; }
  .flow__line { display: none; }
  .pricing__grid { grid-template-columns: 1fr; }
  .plan-card.featured { transform: none; }
  .licenses__list { grid-template-columns: 1fr; }
  .license-item { border-right: none !important; }
  .related { padding: 80px 0; }
  .related__grid { grid-template-columns: 1fr; gap: 16px; }
  .related-card { padding: 28px 24px 48px; }
  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
  .cta-section__buttons { flex-direction: column; }
  .cta-section__buttons .btn-primary,
  .cta-section__buttons .btn-outline,
  .cta-section__buttons .btn-gold { justify-content: center; }
}
