@charset "UTF-8";
/* ============================================================
   まとめる相続 公式サイト 共通スタイル
   配色:紺(信頼感)×ベージュ(温かみ) / モバイルファースト
   ============================================================ */

:root {
  /* --- 基調色 --- */
  --navy-900: #16233a;   /* 最も濃い紺(フッター等) */
  --navy-800: #1e3151;   /* 見出し・ロゴ */
  --navy-700: #27406a;   /* メイン紺 */
  --navy-600: #33517f;   /* リンク・アイコン */
  --navy-100: #e8edf5;   /* 淡い紺背景 */
  --beige-50: #faf7f0;   /* ベース背景 */
  --beige-100: #f4eee0;  /* セクション背景 */
  --beige-200: #eae0c9;  /* 枠線・区切り */
  --beige-300: #d9c9a3;  /* 濃いベージュ */
  --gold: #a9873f;       /* アクセント(飾り線) */
  --cta: #b26b3a;        /* 問い合わせ系ボタン(温かみのある橙茶) */
  --cta-dark: #96552b;
  --text: #2b2b2b;
  --text-soft: #55565c;
  --white: #ffffff;
  --line: #e3dccb;

  --radius: 10px;
  --shadow: 0 2px 14px rgba(30, 49, 81, 0.08);
  --font-sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
}

/* --- リセット --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--white);
  -webkit-text-size-adjust: 100%;
  letter-spacing: 0.02em;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); text-decoration: underline; text-underline-offset: 3px; }
a:hover { opacity: 0.85; }
ul, ol { list-style: none; }
main { display: block; }

/* --- レイアウト --- */
.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 840px; }
.section { padding: 56px 0; }
.section--beige { background: var(--beige-100); }
.section--navy { background: var(--navy-800); color: var(--white); }

/* --- 見出し --- */
.section__title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-800);
  text-align: center;
  line-height: 1.5;
  margin-bottom: 12px;
}
.section__title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--gold);
  margin: 16px auto 0;
  border-radius: 2px;
}
.section__lead {
  text-align: center;
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 auto 36px;
}
.section--navy .section__title { color: var(--white); }
.section--navy .section__lead { color: #dfe5ee; }

h3.block-title {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--navy-800);
  margin: 36px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--gold);
  line-height: 1.5;
}

/* --- ボタン --- */
.btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 15px 32px;
  font-size: 16px;
  line-height: 1.5;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 220px;
}
.btn:hover { opacity: 0.9; transform: translateY(-1px); }
.btn--primary { background: var(--cta); color: var(--white); box-shadow: 0 3px 10px rgba(178, 107, 58, 0.3); }
.btn--primary:hover { background: var(--cta-dark); }
.btn--navy { background: var(--navy-700); color: var(--white); }
.btn--outline { background: var(--white); color: var(--navy-700); border: 2px solid var(--navy-700); }
.btn-group { display: flex; flex-direction: column; gap: 14px; align-items: center; margin-top: 28px; }

/* --- ヘッダー --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1160px;
  margin: 0 auto;
  padding: 10px 16px;
  min-height: 64px;
}
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.site-logo__mark { width: 46px; height: auto; flex-shrink: 0; }
.site-logo__text { display: flex; flex-direction: column; line-height: 1.3; }
.site-logo__name {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.06em;
}
.site-logo__tag { font-size: 10.5px; color: var(--text-soft); letter-spacing: 0.04em; }

.global-nav { display: none; }
.header-cta { display: none; }

/* ハンバーガー */
.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  background: var(--navy-700);
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: 0.25s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* モバイルドロワー */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22, 35, 58, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(320px, 88%);
  height: 100%;
  background: var(--white);
  padding: 20px 22px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.28s ease;
}
.mobile-menu.is-open .mobile-menu__panel { transform: translateX(0); }
.mobile-menu__close {
  margin-left: auto;
  display: block;
  background: none;
  border: none;
  font-size: 15px;
  color: var(--navy-700);
  cursor: pointer;
  padding: 8px;
}
.mobile-menu__list { margin-top: 8px; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--navy-800);
  font-weight: 500;
}
.mobile-menu__label {
  font-size: 12.5px;
  color: var(--text-soft);
  margin-top: 22px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--beige-200);
}
.mobile-menu__cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__cta .btn { min-width: 0; width: 100%; }

/* --- パンくず --- */
.breadcrumb { background: var(--beige-50); border-bottom: 1px solid var(--line); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px 0; font-size: 12.5px; color: var(--text-soft); }
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 6px; color: var(--beige-300); }
.breadcrumb a { color: var(--navy-600); }

/* --- ページヘッダー(下層) --- */
.page-header {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}
.page-header__title { font-family: var(--font-serif); font-size: 27px; font-weight: 600; line-height: 1.5; }
.page-header__lead { margin-top: 12px; font-size: 14.5px; color: #d9e0eb; }

/* --- ファーストビュー --- */
.hero {
  background:
    radial-gradient(ellipse at 85% 15%, rgba(169, 135, 63, 0.10), transparent 55%),
    linear-gradient(160deg, var(--beige-50) 0%, var(--beige-100) 70%, var(--beige-200) 100%);
  padding: 56px 0 48px;
  position: relative;
  overflow: hidden;
}
.hero__inner { position: relative; z-index: 1; }
.hero__catch {
  font-family: var(--font-serif);
  font-size: clamp(27px, 6.4vw, 40px);
  font-weight: 700;
  color: var(--navy-800);
  line-height: 1.55;
  letter-spacing: 0.03em;
}
.hero__sub {
  margin-top: 20px;
  font-size: 16px;
  color: var(--text);
  max-width: 640px;
}
.hero__area {
  display: inline-block;
  margin-top: 22px;
  background: var(--white);
  border: 1px solid var(--beige-300);
  border-radius: 999px;
  padding: 8px 20px;
  font-size: 14px;
  color: var(--navy-800);
  font-weight: 500;
}
.hero__buttons { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; max-width: 420px; }
.hero__illust { margin: 34px auto 0; max-width: 560px; }
.hero__note { margin-top: 14px; font-size: 12.5px; color: var(--text-soft); }

/* --- お悩みリスト --- */
/* --- お悩みセクション（人物イラスト＋吹き出し） --- */
.worry-scene { display: grid; gap: 4px; max-width: 1180px; margin: 0 auto; }
.worry-figure { order: -1; text-align: center; margin-bottom: 8px; }
.worry-figure img { width: 100%; max-width: 250px; height: auto; }
.worry-bubbles { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; justify-items: center; }

/* もやもやした頭の中の声。角のない円形にして、位置を少しずつずらす */
.worry-bubbles li {
  position: relative;
  width: 100%;
  max-width: 268px;
  aspect-ratio: 1.55 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  background: #fdfbf6;
  border: 1px solid var(--beige-200);
  border-radius: 50%;
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}
/* 頭の中の声であることを示す小さな丸 */
.worry-bubbles li::before,
.worry-bubbles li::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: #fdfbf6;
  border: 1px solid var(--beige-200);
}
.worry-bubbles li::before { width: 13px; height: 13px; }
.worry-bubbles li::after { width: 7px; height: 7px; }

.worry-close {
  margin-top: 30px;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 19px;
  color: var(--navy-800);
  line-height: 1.8;
}

/* --- 比較 --- */
.compare { display: grid; gap: 20px; }
.compare__col { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare__head { padding: 14px 18px; text-align: center; font-weight: 700; font-size: 17px; }
.compare__col--before .compare__head { background: #8b8f99; color: var(--white); }
.compare__col--after .compare__head { background: var(--navy-700); color: var(--white); }
.compare__col--after { border: 2px solid var(--navy-700); }
.compare__list { padding: 16px 18px 20px; }
.compare__list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.compare__list li:last-child { border-bottom: none; }
.compare__col--before .compare__list li::before {
  content: "－"; position: absolute; left: 2px; color: #9aa0ab; font-weight: 700;
}
.compare__col--after .compare__list li::before {
  content: "○"; position: absolute; left: 0; color: var(--gold); font-weight: 700;
}

/* --- 特徴カード --- */
.feature-grid { display: grid; gap: 18px; }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--beige-300);
}
.feature-card__num { font-family: var(--font-serif); font-size: 13px; color: var(--gold); letter-spacing: 0.12em; }
.feature-card__title { font-family: var(--font-serif); font-size: 19px; color: var(--navy-800); margin: 6px 0 10px; line-height: 1.5; }
.feature-card__text { font-size: 14.5px; color: var(--text-soft); }

/* --- 対応相談カード --- */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy-800);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.service-card svg { width: 30px; height: 30px; }
.service-note { margin-top: 18px; font-size: 12.5px; color: var(--text-soft); text-align: center; }

/* --- 専門家チーム図 --- */
.team-diagram { max-width: 720px; margin: 0 auto; }
.team-diagram__center {
  background: var(--navy-700);
  color: var(--white);
  border-radius: 50%;
  width: 190px;
  height: 190px;
  margin: 0 auto 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-shadow: 0 6px 20px rgba(30, 49, 81, 0.25);
  border: 6px solid var(--beige-200);
}
.team-diagram__center strong { font-family: var(--font-serif); font-size: 17px; display: block; line-height: 1.5; }
.team-diagram__center span { font-size: 11.5px; color: #ccd6e4; margin-top: 4px; }
.team-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.team-grid--4 { grid-template-columns: repeat(2, 1fr); }
.team-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 10px 14px;
  text-align: center;
}
.team-card svg { width: 40px; height: 40px; margin: 0 auto 8px; }
.team-card__role { font-weight: 700; color: var(--navy-800); font-size: 15.5px; }
.team-card__status { font-size: 11.5px; color: var(--text-soft); margin-top: 4px; }
.team-note { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--text-soft); }

/* --- ご相談の流れ --- */
.flow-list { max-width: 720px; margin: 0 auto; }
.flow-step {
  position: relative;
  padding: 0 0 30px 66px;
}
.flow-step::before {
  content: "";
  position: absolute;
  left: 24px; top: 52px; bottom: 0;
  width: 2px;
  background: var(--beige-300);
}
.flow-step:last-child::before { display: none; }
.flow-step__num {
  position: absolute;
  left: 0; top: 0;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: var(--navy-700);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-size: 10px;
  line-height: 1.2;
}
.flow-step__num b { font-size: 18px; font-family: var(--font-serif); }
.flow-step__title { font-family: var(--font-serif); font-size: 18px; color: var(--navy-800); padding-top: 8px; }
.flow-step__text { font-size: 14.5px; color: var(--text-soft); margin-top: 6px; }

/* --- 費用 --- */
.price-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 24px;
  max-width: 760px;
  margin: 0 auto;
}
.price-box__policy {
  font-family: var(--font-serif);
  font-size: 17px;
  color: var(--navy-800);
  text-align: center;
  line-height: 2;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.note-list li {
  position: relative;
  padding: 7px 0 7px 24px;
  font-size: 14px;
  color: var(--text-soft);
}
.note-list li::before { content: "※"; position: absolute; left: 2px; color: var(--gold); }

/* --- 対応エリア --- */
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 720px; margin: 0 auto 24px; }
.area-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius);
  text-align: center;
  padding: 22px 8px;
  text-decoration: none;
}
.area-card strong {
  font-family: var(--font-serif);
  font-size: clamp(17px, 4vw, 24px);
  color: var(--navy-800);
  display: block;
}
.area-card span { font-size: 11.5px; color: var(--gold); }
.area-text { max-width: 720px; margin: 0 auto; text-align: center; font-size: 14.5px; color: var(--text-soft); }

/* --- FAQ --- */
.faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 48px 16px 52px;
  position: relative;
  font-weight: 700;
  color: var(--navy-800);
  font-size: 15px;
  line-height: 1.7;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before {
  content: "Q";
  position: absolute;
  left: 16px; top: 16px;
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 18px;
  font-weight: 700;
}
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  color: var(--navy-600);
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item__a {
  padding: 0 20px 18px 52px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-soft);
}
.faq-item__a::before {
  content: "A";
  position: absolute;
  left: 16px; top: 0;
  font-family: var(--font-serif);
  color: var(--navy-600);
  font-size: 18px;
  font-weight: 700;
}

/* --- CTAセクション --- */
.cta-section {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  color: var(--white);
  text-align: center;
  padding: 60px 0;
}
.cta-section__title { font-family: var(--font-serif); font-size: clamp(21px, 5vw, 28px); line-height: 1.7; }
.cta-section__text { margin: 18px auto 0; max-width: 620px; font-size: 15px; color: #dfe5ee; }
.cta-section .btn-group { margin-top: 30px; }
.cta-section .btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.7); }

/* --- 記事系(下層ページ本文) --- */
.article { max-width: 800px; margin: 0 auto; }
.article p { margin-bottom: 1.2em; }
.article .em {
  background: linear-gradient(transparent 65%, var(--beige-200) 65%);
  font-weight: 700;
}
.lead-box {
  background: var(--beige-100);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 22px;
  margin: 24px 0;
  font-size: 15px;
}
.check-list li { position: relative; padding: 8px 0 8px 30px; font-size: 15px; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 15px;
  width: 14px; height: 8px;
  border-left: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
  transform: rotate(-45deg);
}

/* --- 選択肢カード(不動産ページ等) --- */
.option-grid { display: grid; gap: 16px; }
.option-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.option-card__title {
  font-family: var(--font-serif);
  font-size: 18px;
  color: var(--navy-800);
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--beige-200);
}
.option-card__text { font-size: 14.5px; color: var(--text-soft); }

/* --- 専門家紹介 --- */
.expert-category { margin-bottom: 40px; }
.expert-grid { display: grid; gap: 16px; }
.expert-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.expert-card__photo {
  background: var(--beige-100);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beige-300);
}
.expert-card__photo svg { width: 72px; height: 72px; }
.expert-card__body { padding: 18px 20px 22px; }
.expert-card__role { font-size: 12px; color: var(--gold); font-weight: 700; letter-spacing: 0.08em; }
.expert-card__name { font-family: var(--font-serif); font-size: 19px; color: var(--navy-800); margin: 4px 0 2px; }
.expert-card__office { font-size: 13px; color: var(--text-soft); }
.expert-card__field { margin-top: 10px; font-size: 13.5px; }
.expert-card__message { margin-top: 10px; font-size: 13.5px; color: var(--text-soft); border-top: 1px dashed var(--line); padding-top: 10px; }
.expert-preparing {
  background: var(--white);
  border: 1px dashed var(--beige-300);
  border-radius: var(--radius);
  padding: 36px 24px;
  text-align: center;
  color: var(--text-soft);
  font-size: 14.5px;
}
.expert-preparing strong { display: block; font-family: var(--font-serif); font-size: 17px; color: var(--navy-800); margin-bottom: 8px; }

/* --- フォーム --- */
.form-info {
  background: var(--navy-100);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 14.5px;
  margin-bottom: 30px;
  text-align: center;
}
.form-block { margin-bottom: 22px; }
.form-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; color: var(--navy-800); }
.form-label .req, .form-label .opt {
  display: inline-block;
  font-size: 11px;
  border-radius: 4px;
  padding: 1px 8px;
  margin-left: 8px;
  vertical-align: 2px;
  font-weight: 700;
}
.form-label .req { background: #a33c3c; color: var(--white); }
.form-label .opt { background: #8b8f99; color: var(--white); }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  padding: 13px 14px;
  border: 1px solid #c9c4b6;
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--navy-600); outline-offset: 1px; }
.radio-group, .check-group { display: flex; flex-direction: column; gap: 8px; }
.radio-group label, .check-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--beige-50);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 14px;
  font-size: 14.5px;
  cursor: pointer;
}
.radio-group input, .check-group input { width: 18px; height: 18px; margin-top: 4px; flex-shrink: 0; }
.form-agree { text-align: center; margin: 28px 0 18px; font-size: 14.5px; }
.form-agree label { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.form-agree input { width: 18px; height: 18px; }
.form-submit { text-align: center; }
.form-notes { margin-top: 34px; }

/* --- テーブル(運営会社) --- */
.info-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.info-table th, .info-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.info-table th { width: 34%; color: var(--navy-800); font-weight: 700; background: var(--beige-50); }
.placeholder-text { color: #9a9689; }

/* --- 地域ページ --- */
.local-intro { max-width: 800px; margin: 0 auto; }
.local-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; max-width: 780px; margin: 24px auto 0; }
.local-links a {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--navy-700);
  font-weight: 500;
  position: relative;
  padding-right: 28px;
}
.local-links a::after { content: "›"; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--gold); }

/* --- フッター --- */
.site-footer { background: var(--navy-900); color: #cfd6e2; font-size: 13.5px; }
.site-footer__main { padding: 44px 0 30px; display: grid; gap: 30px; }
.site-footer__brand .site-logo__name { color: var(--white); }
.site-footer__brand .site-logo__tag { color: #9daabd; }
.site-footer__brand p { margin-top: 14px; line-height: 1.9; color: #aab4c5; }
.site-footer__nav { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 18px; }
.site-footer__nav a { color: #cfd6e2; text-decoration: none; display: block; padding: 5px 0; }
.site-footer__nav a:hover { color: var(--white); }
.site-footer__heading { font-size: 12px; color: #8a96aa; letter-spacing: 0.1em; margin-bottom: 8px; border-bottom: 1px solid #2c3c58; padding-bottom: 6px; }
.site-footer__tel { margin-top: 14px; }
.site-footer__tel a { color: var(--white); font-size: 18px; font-weight: 700; text-decoration: none; }
.site-footer__tel small { display: block; font-size: 11.5px; color: #98a3b6; margin-top: 2px; }
.site-footer__addr { margin-top: 10px; font-size: 12px; color: #98a3b6; line-height: 1.8; }
.tel-inline { text-align: center; margin: -16px 0 28px; font-size: 15px; }
.tel-inline a { color: var(--navy-800); font-size: 19px; font-weight: 700; text-decoration: none; }
.site-footer__legal {
  border-top: 1px solid #2c3c58;
  padding: 20px 0;
  font-size: 12px;
  color: #98a3b6;
  line-height: 1.9;
}
.site-footer__copy { padding-bottom: 90px; font-size: 12px; color: #7d8a9f; text-align: center; }

/* --- 追従CTA(モバイル) --- */
.sticky-cta {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  display: flex;
  gap: 10px;
}
.sticky-cta a {
  flex: 1;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  border-radius: 999px;
  padding: 13px 8px;
  line-height: 1.4;
}
.sticky-cta__contact { background: var(--cta); color: var(--white); }
/* 電話ボタンは文言が短いので幅を詰め、相談ボタンに横幅を回す（文言が長くても1行に収める） */
.sticky-cta__tel { flex: 0 0 auto; padding-left: 20px; padding-right: 20px; }
.sticky-cta__contact { flex: 1 1 auto; white-space: nowrap; font-size: 14.5px; }
@media (max-width: 359px) {
  .sticky-cta__contact { font-size: 13px; }
  .sticky-cta__tel { padding-left: 14px; padding-right: 14px; }
}
.sticky-cta__tel { background: var(--navy-700); color: var(--white); }
.sticky-cta__tel[hidden] { display: none; }

/* ============================================================
   タブレット以上
   ============================================================ */
@media (min-width: 768px) {
  body { font-size: 16.5px; }
  .section { padding: 80px 0; }
  .section__title { font-size: 32px; }
  .hero { padding: 88px 0 76px; }
  .hero__inner { display: flex; align-items: center; gap: 40px; }
  .hero__copy { flex: 1.15; }
  .hero__illust { flex: 1; margin: 0; }
  .hero__buttons { flex-direction: row; flex-wrap: wrap; max-width: none; }
  .compare { grid-template-columns: 1fr 1fr; align-items: start; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .worry-figure img { max-width: 280px; }
  .team-grid--4 { grid-template-columns: repeat(4, 1fr); }
  .option-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .btn-group { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .local-links { grid-template-columns: repeat(3, 1fr); }
  .site-footer__main { grid-template-columns: 1.2fr 1fr 1fr; }
  .site-footer__nav { grid-template-columns: 1fr; }
  .site-footer__copy { padding-bottom: 20px; }
  .sticky-cta { display: none; }
  .page-header { padding: 64px 0; }
  .page-header__title { font-size: 34px; }
}

@media (min-width: 1024px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(5, 1fr); }
  .menu-toggle { display: none; }
  .global-nav { display: block; }
  .global-nav ul { display: flex; gap: 4px; }
  .global-nav a {
    display: block;
    text-decoration: none;
    color: var(--navy-800);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 10px;
    border-radius: 6px;
  }
  .global-nav a:hover { background: var(--beige-100); opacity: 1; }
  .header-cta { display: inline-block; min-width: 0; padding: 11px 22px; font-size: 14px; margin-left: 8px; }
}

/* --- 表示切替ユーティリティ --- */
.pc-only { display: none; }
@media (min-width: 768px) {
  .pc-only { display: inline; }
  .sp-only { display: none; }
}

/* --- アクセシビリティ --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ============================================================
   WordPress 用の追加スタイル
   ============================================================ */

/* 管理バー表示時の固定ヘッダー位置調整 */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

/* 固定ページ本文（ブロックエディターで追記した内容） */
.wp-content { margin-top: 8px; }
.wp-content > * + * { margin-top: 1.2em; }
.wp-content h2 {
  font-family: var(--font-serif); font-size: 20px; color: var(--navy-800);
  margin-top: 2em; padding-left: 12px; border-left: 4px solid var(--gold);
}
.wp-content h3 { font-size: 17px; color: var(--navy-800); margin-top: 1.8em; }
.wp-content ul, .wp-content ol { padding-left: 1.4em; }
.wp-content li { margin-bottom: 6px; }
.wp-content a { color: var(--navy-600); }
.wp-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.wp-content table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wp-content th, .wp-content td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.wp-content th { background: var(--beige-50); white-space: nowrap; }
.wp-content blockquote {
  border-left: 4px solid var(--beige-200); padding: 4px 0 4px 16px; color: var(--text-soft);
}

/* コラム一覧（将来用） */
.post-list__item { padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-list__date { font-size: 13px; color: var(--text-soft); }
.post-list__title { font-size: 18px; margin: 4px 0 8px; }
.post-list__title a { color: var(--navy-800); text-decoration: none; }
.post-list__title a:hover { text-decoration: underline; }
.post-list__excerpt { font-size: 14.5px; color: var(--text-soft); }
.pagination { margin-top: 28px; }
.pagination .nav-links { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; height: 38px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 6px;
  color: var(--navy-600); text-decoration: none; font-size: 14px;
}
.pagination .page-numbers.current { background: var(--navy-700); border-color: var(--navy-700); color: var(--white); }
.pagination .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Contact Form 7 */
.wpcf7 .wpcf7-form-control-wrap { display: block; }
.wpcf7 input[type="text"], .wpcf7 input[type="email"], .wpcf7 input[type="tel"], .wpcf7 textarea {
  width: 100%;
}
.wpcf7 .wpcf7-list-item { display: block; margin: 0 0 8px; }
.wpcf7 .wpcf7-list-item-label { font-size: 14.5px; }
.wpcf7 .wpcf7-radio .wpcf7-list-item label,
.wpcf7 .wpcf7-checkbox .wpcf7-list-item label {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--white); cursor: pointer;
}
.wpcf7 .wpcf7-radio input, .wpcf7 .wpcf7-checkbox input {
  width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0;
}
.wpcf7 .wpcf7-submit { border: none; cursor: pointer; }
.wpcf7 .wpcf7-not-valid-tip { color: #a33c3c; font-size: 13.5px; margin-top: 6px; }
.wpcf7 form .wpcf7-response-output {
  margin: 24px 0 0; padding: 14px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--beige-50); font-size: 14.5px;
}
.wpcf7 form.sent .wpcf7-response-output { border-color: #3a7d54; background: #eef6f1; }
.wpcf7 form.invalid .wpcf7-response-output, .wpcf7 form.failed .wpcf7-response-output {
  border-color: #a33c3c; background: #fbeeee;
}
.wpcf7-spinner { margin-left: 10px; }

/* reCAPTCHA の帰属表示（バッジ非表示の代わり） */
.recaptcha-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--text-soft);
  text-align: center;
}
.recaptcha-note a { color: var(--navy-600); }

/* 単一選択の項目（相続が発生しているか／希望する連絡方法）は
   Contact Form 7 の仕様上チェックボックス(exclusive)を使うため、
   1つだけ選ぶことが伝わるようラジオボタンと同じ丸い表示にする */
.wpcf7-form-control-wrap[data-name="inheritance-status"] input[type="checkbox"],
.wpcf7-form-control-wrap[data-name="contact-method"] input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #9aa0ac;
  border-radius: 50%;
  background: var(--white);
  display: inline-block;
  position: relative;
  cursor: pointer;
  transition: border-color .15s ease;
}
.wpcf7-form-control-wrap[data-name="inheritance-status"] input[type="checkbox"]:hover,
.wpcf7-form-control-wrap[data-name="contact-method"] input[type="checkbox"]:hover {
  border-color: var(--navy-600);
}
.wpcf7-form-control-wrap[data-name="inheritance-status"] input[type="checkbox"]:checked,
.wpcf7-form-control-wrap[data-name="contact-method"] input[type="checkbox"]:checked {
  border-color: var(--navy-700);
}
.wpcf7-form-control-wrap[data-name="inheritance-status"] input[type="checkbox"]:checked::after,
.wpcf7-form-control-wrap[data-name="contact-method"] input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--navy-700);
}

/* お悩みセクション：デスクトップは左右に吹き出しを配置 */
@media (min-width: 900px) {
  .worry-scene {
    grid-template-columns: 1fr minmax(320px, 470px) 1fr;
    align-items: center;
    column-gap: 10px;
  }
  .worry-bubbles--left { grid-column: 1; justify-items: end; }
  .worry-figure { grid-column: 2; order: 0; margin-bottom: 0; }
  .worry-bubbles--right { grid-column: 3; justify-items: start; }
  .worry-figure img { max-width: 100%; }

  /* 整理できていない様子を出すため、1つずつ位置と角度をずらす */
  .worry-bubbles--left li:nth-child(1) { transform: translate(6px, 6px) rotate(-3deg); }
  .worry-bubbles--left li:nth-child(2) { transform: translate(46px, -8px) rotate(2.5deg); }
  .worry-bubbles--left li:nth-child(3) { transform: translate(2px, 6px) rotate(-2deg); }

  .worry-bubbles--right li:nth-child(1) { transform: translate(-4px, -7px) rotate(2.5deg); }
  .worry-bubbles--right li:nth-child(2) { transform: translate(-44px, 6px) rotate(-2.5deg); }
  .worry-bubbles--right li:nth-child(3) { transform: translate(0, -6px) rotate(2deg); }

  /* 小さな丸は中央のイラスト側に向ける */
  .worry-bubbles--left li::before { right: 4px; bottom: -4px; }
  .worry-bubbles--left li::after { right: -12px; bottom: -14px; }
  .worry-bubbles--right li::before { left: 4px; bottom: -4px; }
  .worry-bubbles--right li::after { left: -12px; bottom: -14px; }
}

/* スマホでは横にはみ出さない範囲でずらす */
@media (max-width: 899px) {
  .worry-bubbles li { max-width: 300px; }
  .worry-bubbles--left li:nth-child(odd) { transform: translateX(-16px) rotate(-2deg); }
  .worry-bubbles--left li:nth-child(even) { transform: translateX(18px) rotate(2deg); }
  .worry-bubbles--right li:nth-child(odd) { transform: translateX(20px) rotate(2.5deg); }
  .worry-bubbles--right li:nth-child(even) { transform: translateX(-14px) rotate(-2deg); }
  .worry-bubbles li::before { right: 8px; bottom: -4px; }
  .worry-bubbles li::after { right: -8px; bottom: -14px; }
}

/* 吹き出しの傾きで横スクロールが出ないようにする */
#worries { overflow-x: clip; }

/* --- ロゴ（フッター用・明色版） --- */
.site-footer__logo { display: block; width: 190px; height: auto; margin-bottom: 6px; }

/* --- 5コマ漫画（従来との違い） --- */
.manga-compare { display: grid; gap: 24px; margin-bottom: 36px; align-items: start; }
.manga-compare__item { margin: 0; }
.manga-compare__item figcaption {
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy-800);
  text-align: center;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--beige-200);
}
.manga-compare__item img {
  display: block;
  width: 100%;
  height: auto;
  /* 2枚が必ず同じ大きさで並ぶように比率を固定（見比べやすさのため） */
  aspect-ratio: 900 / 1125;
  object-fit: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
@media (min-width: 768px) {
  .manga-compare { grid-template-columns: 1fr 1fr; gap: 26px; }
}


/* --- 専門家カード：顔写真を左、プロフィールを右に配置（2026-08-29 追加） --- */
.expert-card__site { margin-top: 8px; font-size: 13.5px; }
.expert-card__site a { color: var(--navy-800); text-decoration: underline; }
.expert-card__site a::after { content: " \2197"; font-size: 11px; }
@media (min-width: 700px) {
  .expert-grid { grid-template-columns: 1fr; }
  .expert-card { display: flex; align-items: flex-start; }
  .expert-card__photo { flex: 0 0 240px; width: 240px; aspect-ratio: 1 / 1; overflow: hidden; }
  .expert-card__photo img { width: 100%; height: 100%; object-fit: cover; }
  .expert-card__body { flex: 1 1 auto; padding: 20px 24px 24px; }
}


/* --- トップページ 専門家チーム：顔写真と事務所名を表示（2026-08-29 追加） --- */
.team-card__members { display: flex; flex-direction: column; gap: 12px; margin-bottom: 10px; }
.team-card__photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto 6px; }
.team-card__office { font-size: 12.5px; line-height: 1.5; color: var(--text-soft); }
.team-card { display: flex; flex-direction: column; justify-content: center; }
.team-card:has(.team-card__photo) > svg { display: none; }
.team-card:has(.team-card__photo) .team-card__members { order: -1; }


/* --- まとめる相続の仕組み図（2026-08-29 追加） --- */
#shikumi { scroll-margin-top: 90px; }
.shikumi { margin: 22px 0 6px; padding: 0; display: grid; gap: 18px; }
.shikumi__col { background: var(--beige-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 18px; }
.shikumi__col--after { background: var(--navy-100); border-color: #cfd9e8; }
.shikumi__cap { font-family: var(--font-serif); font-size: 16px; color: var(--navy-800); text-align: center; margin-bottom: 14px; }
.shikumi__col--before .shikumi__cap { color: var(--text-soft); }
.shikumi__box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: center; font-weight: 700; color: var(--navy-800); font-size: 15px; }
.shikumi__box span { display: block; font-weight: 400; font-size: 12.5px; color: var(--text-soft); margin-top: 3px; }
.shikumi__arrow { text-align: center; font-size: 12.5px; color: var(--text-soft); padding: 5px 0; line-height: 1.5; }
.shikumi__arrow b { display: block; font-size: 15px; color: var(--navy-600); font-weight: 400; letter-spacing: 0.1em; }
.shikumi__hub { background: var(--navy-700); color: var(--white); border-radius: 10px; padding: 12px 14px; text-align: center; font-weight: 700; font-size: 15px; }
.shikumi__hub span { display: block; font-weight: 400; font-size: 12px; color: #cdd8e8; margin-top: 3px; }
.shikumi__team { border: 1px dashed var(--navy-600); border-radius: 10px; padding: 13px 12px 11px; background: var(--white); }
.shikumi__pros { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shikumi__pro { background: var(--beige-100); border-radius: 8px; padding: 9px 4px; text-align: center; font-size: 13.5px; color: var(--navy-800); font-weight: 700; }
.shikumi__inner { font-size: 12.5px; color: var(--navy-600); text-align: center; margin-top: 10px; line-height: 1.6; }
.shikumi__note { font-size: 13px; color: var(--text-soft); margin-top: 12px; line-height: 1.8; }
.shikumi__legal { font-size: 12.5px; color: var(--text-soft); margin-top: 10px; line-height: 1.8; }
@media (min-width: 760px) {
  .shikumi { grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
}


/* --- 専門家チームを大きく見せる（2026-08-29 追加） --- */
.team-card { padding: 22px 12px 18px; border-radius: 14px; box-shadow: 0 4px 14px rgba(30, 49, 81, 0.07); }
.team-card svg { width: 48px; height: 48px; margin: 0 auto 10px; }
.team-card__photo { width: 96px; height: 96px; margin: 0 auto 8px; }
.team-card__role { font-size: 17px; }
.team-card__office { font-size: 13px; }
.team-card__status { font-size: 13px; margin-top: 8px; }
.team-note { margin-top: 24px; font-size: 14.5px; }
@media (min-width: 700px) {
  #team { padding-top: 80px; padding-bottom: 80px; }
  #team .section__title { font-size: 32px; }
  #team .section__lead { font-size: 16.5px; }
  .team-diagram { max-width: 1000px; }
  .team-diagram__center { width: 220px; height: 220px; margin-bottom: 34px; }
  .team-diagram__center strong { font-size: 20px; }
  .team-diagram__center span { font-size: 12.5px; }
  .team-grid { gap: 18px; }
  .team-card { padding: 28px 16px 22px; }
  .team-card svg { width: 56px; height: 56px; margin-bottom: 14px; }
  .team-card__photo { width: 116px; height: 116px; margin-bottom: 12px; }
  .team-card__role { font-size: 20px; }
  .team-card__office { font-size: 14px; }
  .team-card__status { font-size: 14.5px; }
}


/* --- 氏名を出さない分野の説明枠（2026-08-29 追加） --- */
.expert-notice {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--text);
}


/* --- 4つの枠の高さを揃える・アイコンを写真と同じ丸に（2026-08-29 追加） --- */
.team-card { justify-content: flex-start; }
.team-card > svg { order: -2; }
.team-card:has(.team-card__members) .team-card__members { order: -1; }
.team-card__office { min-height: 3em; }
.team-card > svg {
  width: 96px;
  height: 96px;
  padding: 26px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--beige-100);
  margin: 0 auto 8px;
}
@media (min-width: 700px) {
  .team-card > svg { width: 116px; height: 116px; padding: 30px; margin: 0 auto 12px; }
}

.team-card__reason { margin-top: 10px; font-size: 11.5px; line-height: 1.65; color: var(--text-soft); text-wrap: balance; }


/* --- 顔写真の保存を防ぐ（2026-09-06 追加） --- */
.expert-card__photo img,
img.team-card__photo {
  pointer-events: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
}
