/* ==========================================================
   杉並相続サポートオフィス /souzoku/ 共通スタイル
   デザイントークン：緑系（安心・誠実）、トーンの手本＝あんしん相続ワンストップ
   方針：ご家族を亡くされた方に静かに寄り添う。ギミックなし・軽さ最優先
   webフォント・JS不使用（システムフォントのみ）
   シグネチャー：若葉マーク（受け継ぐ・芽吹き）と、点線でつながる手続きの道すじ
   ========================================================== */

:root {
  --green-primary: #2e7d5b;   /* 深緑：ブランド基調 */
  --green-dark: #1f5a40;      /* 見出し・フッター */
  --green-leaf: #4a9d75;      /* 若葉マークの明るい側 */
  --green-pale: #f2f7f3;      /* セクション背景（淡く・柔らかく） */
  --green-line: #d9e7de;      /* 罫線 */
  --accent: #d9701e;          /* CTA：温かみのある橙 */
  --accent-dark: #b85a12;
  --text: #3a3a3a;
  --text-weak: #6b6b6b;
  --bg: #ffffff;
  --radius: 10px;
  --maxw: 860px;
  /* 若葉マーク（インラインSVG。画像ファイル不使用） */
  --sprout: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 16"><path d="M12 15 C11 9 7 5 1 4 C2 10 6 14 12 15 Z" fill="%232e7d5b"/><path d="M12 15 C13 8 17 3 23 2 C22 9 18 14 12 15 Z" fill="%234a9d75"/></svg>');
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic Medium", YuGothic, Meiryo, sans-serif;
  font-size: 16px;
  line-height: 2.0;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

/* キーボード操作時のフォーカスを見えるように */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-primary);
  outline-offset: 2px;
}

/* ---------- ヘッダー ---------- */
.site-header {
  border-top: 4px solid var(--green-primary);
  border-bottom: 1px solid var(--green-line);
  background: #fff;
}
.site-header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 16px;
}
.brand { display: flex; flex-direction: column; }
.brand .name {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
/* ロゴマーク（所長作成・家を手で包むモチーフ）。テキストはHTMLのまま残しマークのみ画像 */
.brand .logo-mark {
  width: 38px;
  height: 38px;
  flex: none;
}
.brand .operator {
  font-size: 0.75rem;
  color: var(--text-weak);
}
.header-cta {
  font-size: 0.9rem;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s;
}
.header-cta:hover { background: var(--accent-dark); }

/* ---------- ナビ（ハブのみ） ---------- */
.section-nav {
  background: var(--green-pale);
  border-bottom: 1px solid var(--green-line);
}
.section-nav ul {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  font-size: 0.85rem;
}
.section-nav a { color: var(--green-dark); text-decoration: none; }
.section-nav a:hover { text-decoration: underline; }

/* ---------- ヒーロー（FV） ---------- */
.hero {
  background: radial-gradient(130% 110% at 50% 0%, var(--green-pale) 0%, #ffffff 82%);
  padding: 60px 20px 52px;
  text-align: center;
}
.hero .inner { max-width: var(--maxw); margin: 0 auto; }
.hero-eyebrow {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--green-primary);
  margin: 0 0 18px;
}
.hero-eyebrow::after {
  content: "";
  display: block;
  width: 22px;
  height: 15px;
  margin: 10px auto 0;
  background: var(--sprout) no-repeat center / contain;
}
.hero h1 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.5rem, 4.5vw, 2.15rem);
  line-height: 1.75;
  letter-spacing: 0.03em;
  color: var(--green-dark);
  margin: 0 0 22px;
  font-weight: 600;
}
.hero .sub {
  max-width: 620px;
  margin: 0 auto 24px;
  text-align: left;
}
/* ---------- 線画イラスト（インラインSVG・画像ファイル不使用） ---------- */
.illust { display: block; margin: 6px auto 18px; }
.illust-hero { width: min(300px, 72%); height: auto; }
.illust-small { width: 92px; height: auto; margin: 22px auto 10px; }

.badges {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
}
.badges li {
  background: #fff;
  border: 1px solid var(--green-primary);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.85rem;
}

/* ---------- CTA ---------- */
.cta-block { text-align: center; margin: 32px 0; }
.btn-cta {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 16px 44px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(184, 90, 18, 0.25);
  transition: background 0.15s;
}
.btn-cta:hover { background: var(--accent-dark); }
/* 内部回遊用の控えめなボタン（問い合わせCTAの橙と区別する） */
.btn-cta--sub { background: var(--green-primary); box-shadow: 0 2px 8px rgba(31, 90, 64, 0.2); }
.btn-cta--sub:hover { background: var(--green-dark); }
.cta-note { font-size: 0.85rem; color: var(--text-weak); margin-top: 10px; }

/* ---------- セクション共通 ---------- */
section { padding: 52px 20px; }
section:nth-of-type(even) { background: var(--green-pale); }
section .inner { max-width: var(--maxw); margin: 0 auto; }
section h2 {
  font-family: "Hiragino Mincho ProN", "Yu Mincho", serif;
  font-size: clamp(1.3rem, 3.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--green-dark);
  text-align: center;
  margin: 0 0 8px;
  line-height: 1.6;
}
/* 見出しの飾り＝若葉マーク（機械的なバーの代わりに、ブランドの象徴で静かに区切る） */
section h2::after {
  content: "";
  display: block;
  width: 22px;
  height: 15px;
  margin: 14px auto 0;
  background: var(--sprout) no-repeat center / contain;
}
.lead { text-align: center; margin: 20px auto 32px; max-width: 640px; }

/* ---------- 悩みリスト ---------- */
.worry-list { list-style: none; padding: 0; max-width: 640px; margin: 0 auto; }
.worry-list li {
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 48px;
  margin-bottom: 12px;
  position: relative;
}
.worry-list li::before {
  content: "✔";
  position: absolute;
  left: 18px;
  color: var(--green-primary);
  font-weight: 700;
}

/* ---------- 理由カード ---------- */
.reason {
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 16px;
}
.reason h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--green-dark);
}
.reason h3 .num {
  display: inline-block;
  background: var(--green-primary);
  color: #fff;
  width: 1.8em;
  height: 1.8em;
  line-height: 1.8em;
  text-align: center;
  border-radius: 50%;
  margin-right: 10px;
  font-size: 0.9em;
}
.reason p { margin: 0; }

/* ---------- サービス・流れ ---------- */
.service-list { padding-left: 1.4em; }
.service-list li { margin-bottom: 10px; }

/* 手続きの道すじ：点線でつながる（「ひとつずつ、順番に」の視覚化） */
.flow { list-style: none; padding: 0; counter-reset: step; max-width: 640px; margin: 0 auto; }
.flow li {
  counter-increment: step;
  background: #fff;
  border: 1px solid var(--green-line);
  border-radius: var(--radius);
  padding: 14px 18px 14px 60px;
  margin-bottom: 14px;
  position: relative;
}
.flow li::before {
  content: counter(step);
  position: absolute;
  left: 16px;
  top: 14px;
  background: var(--green-primary);
  color: #fff;
  width: 1.9em;
  height: 1.9em;
  line-height: 1.9em;
  text-align: center;
  border-radius: 50%;
  font-weight: 700;
  z-index: 1;
}
.flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(16px + 0.95em);
  top: calc(14px + 1.9em);
  bottom: -15px;
  border-left: 2px dotted var(--green-primary);
  opacity: 0.5;
}
.flow li b { color: var(--green-dark); }

/* ---------- 料金 ---------- */
.price-table {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  border-collapse: collapse;
  background: #fff;
}
.price-table th, .price-table td {
  border: 1px solid var(--green-line);
  padding: 12px 16px;
  text-align: left;
}
.price-table th { background: var(--green-pale); color: var(--green-dark); width: 60%; font-weight: 600; }
.price-table td { font-weight: 700; }
.price-note { font-size: 0.85rem; color: var(--text-weak); max-width: 640px; margin: 14px auto 0; }

/* ---------- 事例 ---------- */
.case {
  background: #fff;
  border-left: 4px solid var(--green-primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.case h3 { margin: 0 0 8px; font-size: 1rem; color: var(--green-dark); }
.case p { margin: 0 0 6px; }
.case .lesson { font-size: 0.9rem; color: var(--text-weak); font-style: normal; }
.disclaimer { font-size: 0.8rem; color: var(--text-weak); max-width: 640px; margin: 16px auto 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 680px; margin: 0 auto; }
.faq dt {
  font-weight: 700;
  color: var(--green-dark);
  padding: 14px 0 6px;
}
.faq dt::before { content: "Q. "; color: var(--green-primary); }
.faq dd {
  margin: 0 0 10px;
  padding: 0 0 14px;
  border-bottom: 1px dashed var(--green-line);
}
.faq dd::before { content: "A. "; color: var(--accent); font-weight: 700; }

/* ---------- フォーム ---------- */
.contact-form { max-width: 560px; margin: 24px auto 0; }
.contact-form label { display: block; font-weight: 700; margin: 16px 0 4px; font-size: 0.95rem; }
/* ハニーポット（スパムボット対策の不可視欄。人間には見えない） */
.contact-form .hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form .req { color: var(--accent); font-size: 0.75rem; margin-left: 6px; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #c8d9ce;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--green-primary);
}
.contact-form textarea { min-height: 120px; }
.contact-form button {
  display: block;
  width: 100%;
  margin-top: 24px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s;
}
.contact-form button:hover { background: var(--accent-dark); }

/* ---------- 写真 ---------- */
.photo-row {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 28px auto;
}
.photo-row figure { margin: 0; flex: 1 1 280px; max-width: 380px; }
.photo-row img, figure.photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}
figure.photo { margin: 24px auto 8px; max-width: 460px; }
figure figcaption {
  font-size: 0.8rem;
  color: var(--text-weak);
  text-align: center;
  margin-top: 8px;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--green-dark);
  color: #e8f2ec;
  padding: 32px 20px;
  font-size: 0.85rem;
}
.site-footer .inner { max-width: var(--maxw); margin: 0 auto; text-align: center; }
.site-footer a { color: #cfe5d9; }
.site-footer .office-link { margin-top: 10px; }
.site-footer .copyright { margin-top: 16px; color: #a8c5b5; }

/* ---------- LP専用 ---------- */
.lp .hero { padding-top: 64px; }
.lp .site-header .inner { justify-content: center; text-align: center; }
.lp .site-header .brand { align-items: center; }

@media (max-width: 600px) {
  body { font-size: 15px; }
  section { padding: 36px 16px; }
  .btn-cta { display: block; margin: 0 8px; }
  .price-table th { width: 52%; }
}
