/* ============================================================
   つむぎ（仮称）デザインシステム
   コンセプト：静かなあたたかさ ——「のこすものを、いっしょに選ぶ」
   基調：生成り（和紙）× 墨 × 胡桃
   下限：本文17.5px / 行間1.9 / コントラスト4.5:1以上 / タップ44px以上
   ============================================================ */

:root {
  /* 色 */
  --paper: #F7F3EB;        /* 生成り：ベース */
  --paper-deep: #EFE8DA;   /* 少し深い生成り：セクション差 */
  --paper-warm: #F3ECDF;
  --ink: #322F28;          /* 墨：本文 (コントラスト比 ≈ 10:1) */
  --ink-soft: #57523F;     /* 墨・淡：補足 (≈ 6:1 確保) */
  --kurumi: #7B4A2D;       /* 胡桃：アクセント (≈ 7:1) */
  --kurumi-deep: #63391F;
  --midori: #4C5B4A;       /* 老竹：法人・信頼 */
  --sumi-bg: #2C2A25;      /* 法人セクション背景 */
  --sumi-text: #EFEAE0;
  --line: #D9CFBC;         /* 罫線 */
  --white: #FFFFFF;

  /* 書体 */
  --font-display: "Shippori Mincho", "Hiragino Mincho ProN", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;

  /* 寸法 */
  --max-w: 1120px;
  --max-w-narrow: 760px;
  --space-section: clamp(96px, 14vw, 176px);
  --radius: 6px;
  --tap: 48px;
}

/* ---------- リセット・基礎 ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  font-size: clamp(17px, 1.05rem, 18px);
  line-height: 1.9;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0.02em;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute; left: 8px; top: -80px;
  background: var(--ink); color: var(--paper);
  padding: 12px 20px; border-radius: var(--radius);
  z-index: 100; transition: top .2s;
}
.skip-link:focus { top: 8px; }

/* ポートフォリオ用サンプルであることの明示（全ページ最上部） */
.sample-banner {
  background: var(--ink); color: var(--paper);
  text-align: center; font-size: 0.82rem; line-height: 1.7;
  padding: 9px clamp(16px, 4vw, 40px); letter-spacing: 0.02em;
}
.sample-banner strong { color: #E8DCC4; font-weight: 700; }

:focus-visible {
  outline: 3px solid var(--kurumi);
  outline-offset: 3px;
}

.container { max-width: var(--max-w); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container.narrow { max-width: var(--max-w-narrow); }

.sp { display: none; }
@media (max-width: 767px) { .sp { display: inline; } }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 12px 28px;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem;
  text-decoration: none; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .25s, color .25s, border-color .25s, transform .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { min-height: 56px; padding: 14px 36px; }
.btn-block { width: 100%; }

.btn-primary { background: var(--kurumi); color: var(--white); }
.btn-primary:hover { background: var(--kurumi-deep); }

.btn-quiet {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-quiet:hover { background: var(--ink); color: var(--paper); }

.btn-ghost {
  background: transparent; color: var(--ink);
  border-color: var(--line); font-weight: 500;
}
.btn-ghost:hover { border-color: var(--ink); }

.btn-tel { background: var(--ink); color: var(--paper); font-variant-numeric: tabular-nums; }
.btn-tel:hover { background: #000; }

.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: var(--white); }
.btn-outline-light { background: transparent; color: var(--sumi-text); border-color: var(--sumi-text); }
.btn-outline-light:hover { background: var(--sumi-text); color: var(--sumi-bg); }

.icon { width: 20px; height: 20px; flex: none; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }

.header-inner {
  max-width: 1280px; margin-inline: auto;
  padding: 14px clamp(20px, 4vw, 40px);
  display: flex; align-items: center; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #E8DCC4, var(--kurumi) 75%);
}
.brand-name {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 600;
  letter-spacing: 0.12em; white-space: nowrap;
}
.brand-note { font-size: 0.65rem; color: var(--ink-soft); margin-left: 6px; letter-spacing: 0; }

.global-nav { margin-left: auto; }
.global-nav ul { display: flex; gap: clamp(12px, 1.8vw, 28px); }
.global-nav a {
  text-decoration: none; font-size: 0.92rem; padding: 12px 2px;
  position: relative; white-space: nowrap;
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px;
  height: 1px; background: var(--kurumi);
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.global-nav a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; gap: 10px; }

@media (max-width: 1279px) {
  /* ナビ6項目と共存できないため、中間幅では「相談だけ」を畳む */
  .header-cta .btn-ghost { display: none; }
}
@media (max-width: 1023px) {
  .global-nav { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 767px) {
  /* 下部固定CTAがあるため、ヘッダーの電話ボタンは畳む */
  .header-cta { display: none; }
}

/* ---------- FV ---------- */
.hero {
  position: relative; min-height: min(92svh, 900px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}

.hero-light {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 72% 18%, rgba(232, 214, 176, 0.9), transparent 70%),
    radial-gradient(ellipse 50% 60% at 15% 85%, rgba(214, 198, 168, 0.5), transparent 70%),
    linear-gradient(160deg, #FAF7F0 0%, var(--paper) 55%, #F0E9DA 100%);
}

/* 和紙の質感（SVGノイズ） */
.hero-grain, body::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0.2 0 0 0 0 0.18 0 0 0 0 0.14 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}
body::before { position: fixed; z-index: 1; opacity: .6; }
body > * { position: relative; z-index: 2; }

.hero-inner {
  max-width: var(--max-w); width: 100%;
  margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px);
}

.hero-eyebrow {
  font-size: 0.95rem; color: var(--ink-soft);
  letter-spacing: 0.18em; margin-bottom: clamp(20px, 3vw, 36px);
}

.hero-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.5rem, 7.2vw, 5rem);
  line-height: 1.42; letter-spacing: 0.06em;
}
.hero-line { display: block; }

.hero-lede {
  margin-top: clamp(24px, 3.5vw, 44px);
  font-size: clamp(1rem, 1.15rem, 1.15rem);
  color: var(--ink-soft); line-height: 2.2;
}

.hero-actions {
  margin-top: clamp(32px, 4vw, 52px);
  display: flex; gap: 16px; flex-wrap: wrap;
}

.hero-scroll {
  position: absolute; bottom: 0; left: 50%;
  width: 1px; height: 88px; overflow: hidden;
}
.hero-scroll-line {
  display: block; width: 1px; height: 100%;
  background: var(--ink-soft);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: translateY(-100%); }
  55%, 100% { transform: translateY(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-scroll-line { animation: none; }
}

/* ---------- セクション共通 ---------- */
.section { padding-block: var(--space-section); }

.section-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 2.8rem);
  line-height: 1.55; letter-spacing: 0.05em;
}
.section-title.center { text-align: center; }

.section-lede {
  margin-top: clamp(20px, 2.5vw, 32px);
  color: var(--ink-soft); max-width: 44em;
}
.section-lede.center { margin-inline: auto; text-align: center; }

/* ---------- 2. 状況分岐 ---------- */
.triage { padding-top: clamp(72px, 9vw, 120px); }
.triage-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px);
}
@media (max-width: 899px) { .triage-grid { grid-template-columns: 1fr; } }

.triage-card {
  display: flex; flex-direction: column; gap: 14px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(28px, 3vw, 40px);
  text-decoration: none;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.triage-card:hover {
  border-color: var(--kurumi); transform: translateY(-4px);
  box-shadow: 0 16px 40px -20px rgba(50, 47, 40, 0.35);
}
.triage-tag {
  font-size: 0.85rem; font-weight: 700; color: var(--kurumi);
  letter-spacing: 0.14em;
}
.triage-heading {
  font-family: var(--font-display); font-weight: 500;
  font-size: 1.3rem; line-height: 1.7;
}
.triage-body { font-size: 0.95rem; color: var(--ink-soft); flex-grow: 1; }
.triage-link {
  font-weight: 700; font-size: 0.95rem; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px;
}
.triage-card:hover .arrow { transform: translateX(4px); }
.arrow { transition: transform .3s; }

/* ---------- 3. 今日決めなくていい ---------- */
.no-rush { text-align: center; background: var(--paper-deep); }
.quiet-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 4.8vw, 3.1rem); line-height: 1.6; letter-spacing: 0.06em;
}
.quiet-body { margin-top: clamp(24px, 3vw, 40px); line-height: 2.3; }
.quiet-note { margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 4. 料金 ---------- */
.price-head { max-width: var(--max-w-narrow); }

.price-breakdown, .price-table {
  margin-top: clamp(48px, 6vw, 72px);
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(28px, 4vw, 48px);
}

.breakdown-title {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  margin-bottom: clamp(24px, 3vw, 36px);
}

.breakdown-bars { display: grid; gap: 18px; }
.bar-row {
  display: grid; grid-template-columns: 220px 1fr 90px;
  align-items: center; gap: 16px;
}
@media (max-width: 767px) {
  .bar-row { grid-template-columns: 1fr 72px; }
  .bar-label { grid-column: 1 / -1; margin-bottom: -8px; }
}
.bar-label { font-size: 0.95rem; font-weight: 500; }
.bar-track {
  display: block; height: 14px; background: var(--paper-deep);
  border-radius: 7px; overflow: hidden;
}
.bar-fill {
  display: block; height: 100%; width: var(--w);
  background: linear-gradient(90deg, #A5744F, var(--kurumi));
  border-radius: 7px;
  transform-origin: left;
}
.bar-fill-minus { background: linear-gradient(90deg, #6E7F6C, var(--midori)); }
.bar-value { font-size: 0.9rem; color: var(--ink-soft); text-align: right; font-variant-numeric: tabular-nums; }
.bar-row-minus .bar-label, .bar-row-minus .bar-value { color: var(--midori); font-weight: 700; }

.breakdown-note { margin-top: 24px; font-size: 0.92rem; color: var(--ink-soft); }

.table-scroll { overflow-x: auto; }
.price-table table { width: 100%; border-collapse: collapse; min-width: 480px; }
.price-table th, .price-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table thead th {
  font-size: 0.9rem; color: var(--ink-soft); font-weight: 500;
  letter-spacing: 0.08em;
}
.price-table td { font-size: 1.05rem; }
.price-table td:nth-child(2) { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- 5. 約束 ---------- */
.promise { background: var(--sumi-bg); color: var(--sumi-text); }
.promise-inner { text-align: center; }
.promise-eyebrow {
  font-size: 0.9rem; letter-spacing: 0.24em; color: #C9B896;
  margin-bottom: 20px;
}
.promise-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.55; letter-spacing: 0.05em;
}
.promise-body { margin-top: clamp(24px, 3vw, 36px); line-height: 2.2; color: #D8D1C2; }

.promise-exception {
  margin-top: clamp(36px, 4.5vw, 56px);
  text-align: left;
  background: rgba(247, 243, 235, 0.06);
  border: 1px solid rgba(247, 243, 235, 0.2);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
}
.promise-exception h3 {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 600;
  color: #C9B896; margin-bottom: 12px;
}
.promise-exception p { font-size: 0.98rem; color: #D8D1C2; }
.promise-exception strong { color: var(--sumi-text); }

/* ---------- 6. 許可 ---------- */
.permits { background: var(--paper-warm); }
.permit-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 767px) { .permit-grid { grid-template-columns: 1fr; } }

.permit-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(24px, 3vw, 36px);
}
.permit-card-main { border: 2px solid var(--kurumi); grid-column: 1 / -1; }
.permit-kind {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.12em; padding: 4px 12px; border-radius: 999px;
  background: var(--ink); color: var(--paper); margin-bottom: 16px;
}
.permit-card-private .permit-kind { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.permit-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
.permit-number { margin-top: 8px; font-weight: 700; color: var(--kurumi); font-variant-numeric: tabular-nums; }
.permit-desc { margin-top: 12px; font-size: 0.95rem; color: var(--ink-soft); }
.permit-footnote { margin-top: 28px; font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- 7. のこす ---------- */
.keep-layout {
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 899px) { .keep-layout { grid-template-columns: 1fr; } }

.keep-steps { margin-top: clamp(36px, 4vw, 56px); display: grid; gap: clamp(28px, 3vw, 40px); }
.keep-step { display: flex; gap: 20px; }
.keep-step-num {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--kurumi); color: var(--kurumi);
  font-family: var(--font-display); font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
}
.keep-step h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-bottom: 6px; }
.keep-step p { font-size: 0.97rem; color: var(--ink-soft); }

/* 画像プレースホルダ */
.img-placeholder {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(ellipse 70% 60% at 65% 25%, rgba(230, 212, 176, 0.85), transparent 70%),
    linear-gradient(155deg, #EAE2D0, #D9CDB4);
  aspect-ratio: 4 / 3;
  display: flex; align-items: flex-end;
}
.img-tall { aspect-ratio: 3 / 4; }
.img-portrait { aspect-ratio: 4 / 3; }
/* 実画像はプレースホルダ枠いっぱいにcover表示 */
.img-placeholder > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.img-plan {
  font-size: 0.8rem; color: var(--ink-soft); line-height: 1.6;
  padding: 14px 16px;
  background: linear-gradient(transparent, rgba(247, 243, 235, 0.92) 30%);
  width: 100%;
}

/* ---------- 8. 4分岐 ---------- */
.four-ways { background: var(--paper-deep); }
.ways-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 1.8vw, 24px);
}
@media (max-width: 899px) { .ways-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 519px) { .ways-grid { grid-template-columns: 1fr; } }

.way-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 2.5vw, 36px); text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.way-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px -22px rgba(50, 47, 40, 0.4); }
.way-kanji {
  font-family: var(--font-display); font-size: clamp(2.6rem, 4vw, 3.4rem);
  color: var(--kurumi); line-height: 1;
}
.way-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-top: 14px; }
.way-card p { margin-top: 10px; font-size: 0.92rem; color: var(--ink-soft); text-align: left; }

/* ---------- 9. 立ち会えなくても ---------- */
.remote-layout {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (max-width: 899px) {
  .remote-layout { grid-template-columns: 1fr; }
  .remote-visual { order: 2; }
}

.report-mock {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: 0 24px 60px -32px rgba(50, 47, 40, 0.4);
  transform: rotate(-1.2deg);
}
.report-head {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  letter-spacing: 0.14em; padding-bottom: 14px; margin-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}
.report-photo { aspect-ratio: 16 / 9; margin-bottom: 18px; }
.report-rows { display: grid; gap: 10px; }
.report-rows > div {
  display: flex; justify-content: space-between; gap: 16px;
  padding-bottom: 10px; border-bottom: 1px dashed var(--line);
  font-size: 0.95rem;
}
.report-rows dt { color: var(--ink-soft); }
.report-rows dd { font-weight: 700; }

/* ---------- 10. 人 ---------- */
.people-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.5vw, 32px);
}
@media (max-width: 899px) { .people-grid { grid-template-columns: 1fr; max-width: 560px; } }

.person-card blockquote {
  margin-top: 20px;
  font-family: var(--font-display); font-size: 1.02rem; line-height: 2.1;
}
.person-name { margin-top: 16px; font-weight: 700; }
.person-role { display: block; font-size: 0.85rem; font-weight: 400; color: var(--ink-soft); margin-top: 2px; }

/* ---------- 11. 事例 ---------- */
.works { background: var(--paper-warm); }
.works-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.2vw, 28px);
}
@media (max-width: 899px) { .works-grid { grid-template-columns: 1fr; max-width: 560px; } }

.work-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
}
.work-card .img-placeholder { border-radius: 0; aspect-ratio: 16 / 10; }
.work-body { padding: clamp(20px, 2.5vw, 30px); display: flex; flex-direction: column; gap: 12px; }
.work-tag { font-size: 0.82rem; font-weight: 700; color: var(--kurumi); letter-spacing: 0.1em; }
.work-body h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.7; }
.work-facts { display: grid; gap: 8px; margin-top: 4px; }
.work-facts > div {
  display: flex; gap: 12px; font-size: 0.93rem;
  padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.work-facts dt { color: var(--ink-soft); flex: none; width: 6.5em; }
.work-facts dd { font-weight: 700; }

/* ---------- 12. 法人 ---------- */
.corporate { background: var(--sumi-bg); color: var(--sumi-text); }
.corporate-eyebrow { font-size: 0.9rem; letter-spacing: 0.22em; color: #C9B896; margin-bottom: 18px; }
.corporate-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.8rem, 4.2vw, 2.7rem); line-height: 1.6;
}
.corporate-grid {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(239, 234, 224, 0.2);
  border: 1px solid rgba(239, 234, 224, 0.2);
}
@media (max-width: 899px) { .corporate-grid { grid-template-columns: repeat(2, 1fr); } }

.corp-fact { background: var(--sumi-bg); padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); }
.corp-num {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #C9B896; line-height: 1.3;
}
.corp-unit { font-size: 0.6em; margin-left: 2px; }
.corp-label { margin-top: 10px; font-size: 0.9rem; color: #B8B1A2; line-height: 1.7; }

.corporate-note {
  margin-top: clamp(32px, 4vw, 48px); max-width: 44em;
  color: #D8D1C2;
}
.corporate-actions { margin-top: clamp(28px, 3.5vw, 44px); display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 13. 相談窓口 ---------- */
.contact-grid {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(20px, 3vw, 36px);
  align-items: start;
}
@media (max-width: 899px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(28px, 4vw, 48px);
}
.contact-card-main { border: 2px solid var(--kurumi); }
.contact-card h3 {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 600;
  margin-bottom: 14px;
}
.contact-card > p { font-size: 0.97rem; color: var(--ink-soft); margin-bottom: 24px; }
.contact-hours { margin-top: 14px; font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

.contact-form { display: grid; gap: 20px; }
.form-field label { display: block; font-weight: 700; font-size: 0.95rem; margin-bottom: 8px; }
.form-field input {
  width: 100%; min-height: var(--tap);
  padding: 12px 16px; font-size: 1.05rem; font-family: var(--font-body);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s;
}
.form-field input:focus { border-color: var(--kurumi); outline: none; }
.form-note { font-size: 0.9rem; color: var(--ink-soft); text-align: center; }

/* ---------- 下層ページ共通 ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(72px, 10vw, 136px) clamp(56px, 8vw, 104px);
  background:
    radial-gradient(ellipse 55% 65% at 78% 0%, rgba(232, 214, 176, 0.75), transparent 70%),
    linear-gradient(165deg, #FAF7F0, var(--paper) 70%);
}
.breadcrumb { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: clamp(20px, 3vw, 32px); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li + li::before { content: "／"; margin-right: 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--kurumi); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 500; }

.page-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem); line-height: 1.5; letter-spacing: 0.06em;
}
.page-lede { margin-top: clamp(18px, 2.5vw, 28px); color: var(--ink-soft); max-width: 40em; }

.subsection { padding-block: clamp(56px, 8vw, 104px); }
.subsection + .subsection { padding-top: 0; }

.subsection-title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.5rem, 3.2vw, 2.1rem); line-height: 1.6;
  padding-left: 18px; border-left: 3px solid var(--kurumi);
  margin-bottom: clamp(24px, 3.5vw, 40px);
}

/* 含まれる／含まれない（同一視認性で併記する） */
.include-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2vw, 28px); }
@media (max-width: 767px) { .include-grid { grid-template-columns: 1fr; } }
.include-col {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 36px);
}
.include-col h3 {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.include-col.include-no h3 { border-bottom-color: var(--kurumi); color: var(--kurumi-deep); }
.include-col li {
  position: relative; padding: 8px 0 8px 28px; font-size: 0.98rem;
  border-bottom: 1px dashed var(--line);
}
.include-col li::before { position: absolute; left: 2px; font-weight: 700; }
.include-col.include-yes li::before { content: "○"; color: var(--midori); }
.include-col.include-no li::before { content: "＋"; color: var(--kurumi); }
.include-col li span { display: block; font-size: 0.85rem; color: var(--ink-soft); }

/* 定義テーブル（キャンセル規定・特商法表記など） */
.def-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
.def-table th, .def-table td { padding: 18px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.def-table th { width: 32%; background: var(--paper-warm); font-weight: 700; font-size: 0.95rem; }
.def-table td { font-size: 0.98rem; }
@media (max-width: 599px) {
  .def-table th, .def-table td { display: block; width: 100%; }
  .def-table th { border-bottom: none; padding-bottom: 6px; }
  .def-table td { padding-top: 0; }
}

/* 品目切り分け表（法人） */
.sort-table { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); min-width: 560px; }
.sort-table th, .sort-table td { padding: 14px 18px; border: 1px solid var(--line); text-align: left; font-size: 0.95rem; }
.sort-table thead th { background: var(--ink); color: var(--paper); font-weight: 500; letter-spacing: 0.06em; }
.sort-table td:nth-child(2) { font-weight: 700; }

/* 流れステップ */
.flow-steps { display: grid; gap: 0; }
.flow-step {
  position: relative; display: grid; grid-template-columns: 64px 1fr;
  gap: clamp(20px, 3vw, 36px); padding-bottom: clamp(36px, 5vw, 56px);
}
.flow-step::before {
  content: ""; position: absolute; left: 31px; top: 64px; bottom: 0;
  width: 1px; background: var(--line);
}
.flow-step:last-child::before { display: none; }
.flow-num {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--white); border: 1px solid var(--kurumi); color: var(--kurumi);
  font-family: var(--font-display); font-size: 1.5rem;
  display: flex; align-items: center; justify-content: center;
}
.flow-body h3 { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; padding-top: 14px; }
.flow-body p { margin-top: 10px; color: var(--ink-soft); max-width: 40em; }
.flow-point {
  display: inline-block; margin-top: 14px; padding: 8px 16px;
  background: var(--paper-warm); border-left: 3px solid var(--kurumi);
  font-size: 0.92rem; font-weight: 500; color: var(--ink);
}

/* 法務・注意ボックス */
.note-box {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--midori);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 32px);
}
.note-box h2, .note-box h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.note-box p { font-size: 0.97rem; color: var(--ink-soft); }

/* 法人ページの帯 */
.corp-band { background: var(--sumi-bg); color: var(--sumi-text); }
section.corp-band .corporate-grid { margin-top: 0; } /* margin collapseで地色が見えるのを防ぐ */
.corp-band .page-title, .corp-band .subsection-title { color: var(--sumi-text); }
.corp-band .breadcrumb, .corp-band .breadcrumb a, .corp-band .page-lede { color: #B8B1A2; }
.corp-band .breadcrumb [aria-current] { color: var(--sumi-text); }

.prose > * + * { margin-top: 1.2em; }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; margin-top: 2em; }
.prose ul { padding-left: 1.4em; }
.prose ul li { list-style: disc; margin-top: 0.5em; }

.cta-band { background: var(--paper-deep); text-align: center; padding-block: clamp(64px, 9vw, 112px); }
.cta-band .section-title { margin-bottom: 16px; }
.cta-band .hero-actions { justify-content: center; margin-top: clamp(24px, 3vw, 40px); }

/* ---------- モバイル固定CTA ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: none; grid-template-columns: 1fr 1.4fr; gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (max-width: 767px) {
  .mobile-cta { display: grid; }
  body { padding-bottom: 72px; }
}
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 64px; font-weight: 700; text-decoration: none; font-size: 1.02rem;
}
.mobile-cta-tel { background: var(--ink); color: var(--paper); }
.mobile-cta-form { background: var(--kurumi); color: var(--white); }

/* ---------- フッター ---------- */
.site-footer {
  background: var(--paper-deep); border-top: 1px solid var(--line);
  padding-block: clamp(56px, 7vw, 88px) clamp(28px, 4vw, 44px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.2fr 1.4fr 0.8fr; gap: clamp(32px, 4vw, 56px);
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; letter-spacing: 0.1em; }
.footer-nap { font-style: normal; margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); line-height: 2.1; }
.footer-nap a { color: var(--ink); font-weight: 700; text-decoration: none; }

.footer-permits h3, .footer-sub {
  font-size: 0.85rem; letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 12px; font-weight: 700;
}
.footer-sub { margin-top: 20px; }
.footer-permits li { font-size: 0.92rem; margin-bottom: 10px; line-height: 1.7; }
.footer-permits li span { display: block; font-size: 0.82rem; color: var(--ink-soft); }

.footer-nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 0.95rem; text-decoration: none;
}
.footer-nav a:hover { color: var(--kurumi); text-decoration: underline; }

.footer-copy {
  margin-top: clamp(40px, 5vw, 64px); padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--ink-soft); text-align: center;
}

.footer-nav h3 {
  font-size: 0.85rem; letter-spacing: 0.14em; color: var(--ink-soft);
  margin-bottom: 8px; font-weight: 700;
}
.footer-nav ul + h3 { margin-top: 20px; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
}
.faq-q {
  display: flex; gap: 12px;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 600; line-height: 1.7;
}
.faq-q::before { content: "問"; flex: none; color: var(--kurumi); }
.faq-a { margin-top: 10px; font-size: 0.97rem; color: var(--ink-soft); padding-left: calc(1em + 12px); }
@media (max-width: 599px) { .faq-a { padding-left: 0; } }

/* ---------- お客様の声 ---------- */
.voice-grid {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.2vw, 28px);
}
@media (max-width: 767px) { .voice-grid { grid-template-columns: 1fr; } }
.voice-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 16px;
}
.voice-tag { font-size: 0.82rem; font-weight: 700; color: var(--kurumi); letter-spacing: 0.1em; }
.voice-card blockquote {
  font-family: var(--font-display); font-size: 1.08rem; line-height: 2.05;
  position: relative;
}
.voice-card blockquote::before {
  content: "“"; font-family: var(--font-display); font-size: 2.4rem; color: var(--line);
  position: absolute; left: -6px; top: -18px;
}
.voice-attr { font-size: 0.9rem; color: var(--ink-soft); margin-top: auto; }
.pr-badge {
  display: inline-block; font-size: 0.72rem; border: 1px solid var(--line);
  border-radius: 999px; padding: 2px 10px; color: var(--ink-soft); margin-left: 8px;
  letter-spacing: 0.06em; vertical-align: middle;
}

/* ---------- コラム ---------- */
.column-list { display: grid; gap: 16px; margin-top: clamp(32px, 4vw, 52px); }
.column-item {
  display: grid; grid-template-columns: 140px 1fr; gap: clamp(16px, 3vw, 32px);
  align-items: center; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 2.5vw, 32px); text-decoration: none;
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.column-item:hover {
  border-color: var(--kurumi); transform: translateY(-3px);
  box-shadow: 0 16px 40px -24px rgba(50, 47, 40, 0.35);
}
@media (max-width: 599px) { .column-item { grid-template-columns: 1fr; gap: 12px; } }
.column-meta { font-size: 0.82rem; color: var(--ink-soft); }
.column-cat {
  display: inline-block; font-weight: 700; color: var(--kurumi);
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.column-body h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.7; }
.column-body p { margin-top: 8px; font-size: 0.94rem; color: var(--ink-soft); }
.column-superv {
  margin-top: 12px; font-size: 0.85rem; color: var(--ink-soft);
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.column-superv strong { color: var(--ink); font-weight: 700; }

/* ---------- 他のサービスへ ---------- */
.service-nav-grid {
  margin-top: clamp(24px, 3vw, 40px);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 767px) { .service-nav-grid { grid-template-columns: 1fr; } }
.service-nav-card {
  display: block; text-decoration: none;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(20px, 2.5vw, 28px);
  transition: border-color .3s, transform .3s;
}
.service-nav-card:hover { border-color: var(--kurumi); transform: translateY(-3px); }
.service-nav-card h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; }
.service-nav-card p { margin-top: 6px; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- フォーム拡張（textarea / select / 同意） ---------- */
.form-field textarea, .form-field select {
  width: 100%; min-height: var(--tap);
  padding: 12px 16px; font-size: 1.05rem; font-family: var(--font-body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper);
  transition: border-color .2s;
}
.form-field textarea { min-height: 140px; resize: vertical; line-height: 1.8; }
.form-field textarea:focus, .form-field select:focus { border-color: var(--kurumi); outline: none; }
.form-field .field-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 6px; }
.form-field input[type="file"] { border-style: dashed; background: transparent; }
.form-consent {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; font-weight: 400;
}
.form-consent input {
  width: 24px; height: 24px; flex: none; margin-top: 3px;
  accent-color: var(--kurumi);
}
