/* ============================================
   大分みんなの法律事務所 相続専門サイト
   Color Theme: Brown & Green (Luxury / Modern)
   ============================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Brown palette */
  --brown-900: #3E2723;
  --brown-800: #4E342E;
  --brown-700: #5D4037;
  --brown-600: #6D4C41;
  --brown-500: #795548;
  --brown-400: #8D6E63;
  --brown-300: #A1887F;
  --brown-200: #BCAAA4;
  --brown-100: #D7CCC8;
  --brown-50:  #EFEBE9;

  /* Green palette */
  --green-900: #3F7A26;
  --green-800: #5E9B32;
  --green-700: #7CB342;
  --green-600: #8BC34A;
  --green-500: #9CCC65;
  --green-400: #AED581;
  --green-300: #81C784;
  --green-200: #A5D6A7;
  --green-100: #C8E6C9;
  --green-50:  #E8F5E9;

  /* Gold accent */
  --gold: #B8963E;
  --gold-light: #D4AF61;
  --gold-dark: #8B6F2E;

  /* Semantic colors */
  --color-primary: var(--green-800);
  --color-primary-dark: var(--green-900);
  --color-primary-light: var(--green-50);
  --color-secondary: var(--brown-700);
  --color-secondary-dark: var(--brown-900);
  --color-secondary-light: var(--brown-50);
  --color-accent: var(--gold);
  --color-text: #2C2C2C;
  --color-text-light: #5A5A5A;
  --color-text-muted: #8A8A8A;
  --color-bg: #FAFAF8;
  --color-bg-alt: #F5F2EE;
  --color-white: #FFFFFF;
  --color-border: #E0DCD6;

  /* Typography */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: 'Noto Serif JP', 'Yu Mincho', 'YuMincho', serif;

  /* Spacing */
  --section-padding: 80px;
  --container-width: 1100px;

  /* Transition */
  --transition: 0.3s ease;
}

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.8;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
}

body.no-scroll {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}

ul, ol {
  list-style: none;
}

address {
  font-style: normal;
}

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.sp-only {
  display: none;
}

.accent {
  color: var(--color-accent);
  font-family: var(--font-serif);
}

.section {
  padding: var(--section-padding) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.5;
  color: var(--color-secondary-dark);
}

.section__lead {
  text-align: center;
  color: var(--color-text-light);
  max-width: 720px;
  margin: 0 auto 48px;
  font-size: 0.95rem;
  line-height: 2;
}

.section__more {
  text-align: center;
  margin-top: 40px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 6px;
  transition: all var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn--primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
}

.btn--outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn--lg {
  padding: 18px 40px;
  font-size: 1.05rem;
  border-radius: 8px;
}

.btn--primary-sm {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 8px 20px;
  font-size: 0.85rem;
  border-radius: 4px;
}

.btn--primary-sm:hover {
  background-color: var(--color-primary-dark);
}

.btn--phone-sm {
  background-color: transparent;
  color: var(--color-secondary-dark);
  padding: 8px 16px;
  font-size: 0.85rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
}

.btn--phone-sm:hover {
  border-color: var(--color-secondary);
}

.btn__icon {
  font-size: 1.1em;
}

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: box-shadow var(--transition);
}

.header.is-scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
}

.header__logo {
  flex-shrink: 0;
}

.header__logo a {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__logo-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.header__logo-text {
  display: flex;
  flex-direction: column;
}

.header__logo-main {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-secondary-dark);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.header__logo-sub {
  font-size: 0.62rem;
  color: var(--color-text-muted);
  font-weight: 400;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
}

.header__nav-list > li > a {
  display: block;
  padding: 8px 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text);
  border-radius: 4px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.header__nav-list > li > a:hover {
  color: var(--color-primary);
  background-color: var(--color-primary-light);
}

/* Dropdown */
.has-dropdown {
  position: relative;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all var(--transition);
}

.has-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown li a {
  display: block;
  padding: 10px 20px;
  font-size: 0.82rem;
  color: var(--color-text);
}

.dropdown li a:hover {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

.header__nav-sub {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: 4px;
  padding-left: 8px;
  border-left: 1px solid var(--color-border);
}

.header__nav-sub li a {
  display: block;
  padding: 8px 6px;
  font-size: 0.7rem;
  font-weight: 400;
  color: var(--color-text-muted);
  border-radius: 4px;
  transition: color var(--transition);
  white-space: nowrap;
}

.header__nav-sub li a:hover {
  color: var(--color-primary);
}

/* Top CTA in hamburger - hidden on PC */
.header__nav-top-cta {
  display: none;
}

/* Extra nav - hidden on PC, shown in hamburger */
.header__nav-extra {
  display: none;
}

.header__nav-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  flex-shrink: 0;
}

/* Hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  gap: 6px;
  z-index: 1001;
}

.header__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-secondary-dark);
  transition: all var(--transition);
  border-radius: 2px;
}

.header__hamburger.is-open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.header__hamburger.is-open span:nth-child(2) {
  opacity: 0;
}

.header__hamburger.is-open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ============================================
   SECTION 1: HERO / FIRST VIEW
   ============================================ */
.hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(205, 232, 150, 0.65) 0%, rgba(225, 242, 180, 0.55) 40%, rgba(245, 250, 215, 0.50) 100%),
    url('https://images.unsplash.com/photo-1481627834876-b7833e8f5570?w=1600&q=80'),
    linear-gradient(135deg, #9CCC65 0%, #C5E596 40%, #E8F3C2 100%);
  background-size: cover, cover, cover;
  background-position: center;
  background-blend-mode: screen, normal, normal;
  margin-top: 72px;
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 14% 18%, rgba(255, 255, 220, 0.70) 0%, rgba(255, 255, 220, 0) 18%),
    radial-gradient(circle at 82% 14%, rgba(255, 255, 200, 0.75) 0%, rgba(255, 255, 200, 0) 15%),
    radial-gradient(circle at 38% 75%, rgba(255, 255, 225, 0.55) 0%, rgba(255, 255, 225, 0) 20%),
    radial-gradient(circle at 72% 60%, rgba(255, 250, 180, 0.60) 0%, rgba(255, 250, 180, 0) 16%),
    radial-gradient(circle at 55% 35%, rgba(255, 255, 235, 0.45) 0%, rgba(255, 255, 235, 0) 24%),
    linear-gradient(100deg, rgba(12, 35, 10, 0.78) 0%, rgba(12, 35, 10, 0.60) 30%, rgba(12, 35, 10, 0.28) 55%, rgba(12, 35, 10, 0) 72%),
    linear-gradient(135deg, rgba(160, 210, 100, 0.15) 0%, rgba(210, 235, 150, 0.08) 50%, rgba(245, 250, 210, 0.04) 100%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  color: var(--color-white);
}

.hero__title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 16px;
  text-shadow: 0 2px 14px rgba(5, 25, 5, 0.95), 0 2px 6px rgba(0, 0, 0, 0.85), 0 0 3px rgba(0, 0, 0, 0.8);
}

.hero__subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 40px;
  opacity: 1;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 10px rgba(5, 25, 5, 0.95), 0 1px 4px rgba(0, 0, 0, 0.8), 0 0 2px rgba(0, 0, 0, 0.7);
}

.hero__cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.hero .btn--primary {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.hero .btn--primary:hover {
  background-color: var(--gold-dark);
  border-color: var(--gold-dark);
}

.hero .btn--outline {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero .btn--outline:hover {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
}

.hero__phone {
  width: 100%;
  text-align: center;
  margin-top: 8px;
}

.hero__phone-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 0.9rem;
  opacity: 0.9;
}

.hero__phone-link:hover {
  opacity: 1;
}

.hero__phone-icon {
  font-size: 1.2rem;
}

.hero__phone-number {
  font-size: 1.3rem;
  font-weight: 700;
  font-family: var(--font-serif);
  letter-spacing: 0.05em;
}

.hero__phone-hours {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ============================================
   SECTION 2: STATS
   ============================================ */
.stats {
  background: linear-gradient(135deg, #6FAE3A 0%, #8BC34A 50%, #A8D46B 100%);
  padding: 48px 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
  color: var(--color-white);
  text-shadow: 0 1px 4px rgba(30, 70, 25, 0.45);
}

.stats__item {
  padding: 20px 12px;
  position: relative;
}

.stats__item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.stats__label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 1;
  letter-spacing: 0.1em;
}

.stats__number {
  display: block;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.3;
}

.stats__number em {
  font-style: normal;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-white);
  text-shadow: 0 2px 6px rgba(30, 70, 25, 0.6), 0 1px 2px rgba(0, 0, 0, 0.25);
}

.stats__number--free em {
  font-size: 2rem;
}

.stats__note {
  display: block;
  font-size: 0.72rem;
  margin-top: 6px;
  opacity: 0.92;
}

/* ============================================
   HERO: Lawyer photo area
   ============================================ */
.hero__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 40px 20px;
  max-width: var(--container-width);
  margin: 0 auto;
}

.hero__content {
  flex: 1;
  text-align: left;
  color: var(--color-white);
  padding: 0;
  max-width: 620px;
}

.hero__lawyer {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__lawyer-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 280px;
  height: 360px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.5);
}

.hero__lawyer-placeholder svg {
  width: 64px;
  height: 64px;
}

.hero__lawyer-placeholder span {
  font-size: 0.82rem;
}

/* When real image is used */
.hero__lawyer img {
  width: 340px;
  height: auto;
  border-radius: 0;
  mix-blend-mode: luminosity;
  opacity: 0.85;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  filter: contrast(1.05);
}

.hero__lawyer-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 12px;
  color: var(--color-white);
  text-align: center;
}

.hero__lawyer-title {
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.1em;
}

.hero__lawyer-name {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 2px 0 8px;
}

.hero__lawyer-link {
  font-size: 0.75rem;
  color: var(--gold-light);
  font-weight: 500;
  transition: opacity var(--transition);
}

.hero__lawyer-link:hover {
  opacity: 0.8;
}

@media (max-width: 1024px) {
  .hero__inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
    gap: 24px;
    padding: 48px 20px 40px;
  }

  .hero__content {
    text-align: center;
    width: 100%;
    order: 1;
  }

  .hero__lawyer {
    order: 2;
  }

  .hero__lawyer img {
    width: 180px;
  }
}

@media (max-width: 768px) {
  .hero__inner {
    padding: 28px 20px 24px;
    gap: 16px;
  }

  .hero__title {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }

  .hero__subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .hero__lawyer img {
    width: 150px;
  }

  .hero__lawyer-info {
    margin-top: 8px;
  }

  .hero__lawyer-title {
    font-size: 0.65rem;
  }

  .hero__lawyer-name {
    font-size: 0.95rem;
    margin: 2px 0 6px;
  }

  .hero__lawyer-link {
    font-size: 0.7rem;
  }

  .hero__cta .btn {
    padding: 14px 32px;
    font-size: 0.92rem;
  }

  .hero__phone-number {
    font-size: 1.1rem;
  }
}

/* ============================================
   SECTION: GREETING
   ============================================ */
.greeting__grid {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  margin-top: 48px;
  align-items: start;
}

.greeting__photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  aspect-ratio: 3 / 4;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-text-muted);
}

.greeting__photo-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.5;
}

.greeting__photo-placeholder span {
  font-size: 0.82rem;
}

/* When real image is used */
.greeting__photo img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.greeting__name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 16px;
  text-align: center;
}

.greeting__name-title {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
}

.greeting__name-value {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-secondary-dark);
  margin: 4px 0;
}

.greeting__name-qualification {
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
  padding: 2px 10px;
  border: 1px solid var(--color-primary);
  border-radius: 3px;
}

.greeting__text {
  font-size: 0.92rem;
  line-height: 2;
  color: var(--color-text-light);
  margin-bottom: 16px;
}

.greeting__text:last-of-type {
  margin-bottom: 0;
}

.greeting__cta {
  margin-top: 28px;
}

@media (max-width: 768px) {
  .greeting__grid {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 32px;
  }

  .greeting__photo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .greeting__photo-placeholder {
    width: 200px;
    aspect-ratio: 3 / 4;
  }

  .greeting__photo img {
    width: 200px;
    height: auto;
  }

  .greeting__text {
    font-size: 0.88rem;
  }
}

/* ============================================
   SECTION 3: CONCERNS
   ============================================ */
.concerns__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.concern-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 20px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all var(--transition);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.concern-card:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 24px rgba(74, 124, 89, 0.12);
  transform: translateY(-3px);
}

.concern-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 16px;
  color: var(--color-primary);
  background: var(--color-primary-light);
  border-radius: 50%;
  padding: 12px;
  transition: all var(--transition);
}

.concern-card:hover .concern-card__icon {
  background: var(--color-primary);
  color: var(--color-white);
}

.concern-card__icon svg {
  width: 100%;
  height: 100%;
}

.concern-card__text {
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.6;
  flex: 1;
  margin-bottom: 12px;
}

.concern-card__link {
  font-size: 0.8rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ============================================
   SECTION 4: WHY US
   ============================================ */
.whyus__list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.reason-card {
  display: flex;
  gap: 24px;
  padding: 32px;
  background: var(--color-white);
  border-radius: 12px;
  border: 1px solid var(--color-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: box-shadow var(--transition);
}

.reason-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.reason-card__number {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-accent);
  line-height: 1;
  flex-shrink: 0;
  min-width: 56px;
}

.reason-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-secondary-dark);
}

.reason-card__text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* ============================================
   SECTION 5: SERVICES
   ============================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.service-category {
  background: var(--color-white);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.service-category__title {
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-white);
  position: relative;
  padding-left: 40px;
}

.service-category__title::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-white);
}

.service-category__title--red {
  background: var(--brown-800);
}

.service-category__title--yellow {
  background: var(--brown-600);
}

.service-category__title--green {
  background: var(--green-800);
}

.service-category__title--blue {
  background: var(--green-900);
}

.service-category__list {
  padding: 16px 24px;
}

.service-category__list li {
  border-bottom: 1px solid var(--color-border);
}

.service-category__list li:last-child {
  border-bottom: none;
}

.service-category__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  color: var(--color-text);
}

.service-category__list a::after {
  content: '\203A';
  font-size: 1.4rem;
  color: var(--color-text-muted);
  transition: transform var(--transition), color var(--transition);
  flex-shrink: 0;
}

.service-category__list a:hover {
  color: var(--color-primary);
}

.service-category__list a:hover::after {
  transform: translateX(4px);
  color: var(--color-primary);
}

.service-category__name {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.service-category__desc {
  display: block;
  font-size: 0.76rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  font-weight: 400;
}

/* ============================================
   SECTION 6: RESULTS
   ============================================ */
.results__table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 8px;
}

.results__table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.results__table thead {
  background-color: var(--color-secondary-dark);
  color: var(--color-white);
}

.results__table th {
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  letter-spacing: 0.05em;
}

.results__table td {
  padding: 16px 20px;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--color-border);
  line-height: 1.7;
  background-color: var(--color-white);
}

.results__badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
}

/* ============================================
   SECTION 7: FLOW
   ============================================ */
.flow__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
  position: relative;
}

.flow__steps::before {
  content: '';
  position: absolute;
  top: 72px;
  left: 12.5%;
  right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  z-index: 0;
}

.flow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.flow-step__number {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

.flow-step__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-white);
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  color: var(--color-primary);
  padding: 14px;
}

.flow-step__icon svg {
  width: 100%;
  height: 100%;
}

.flow-step__title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-secondary-dark);
}

.flow-step__text {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   SECTION 8: FAQ
   ============================================ */
.faq__list {
  max-width: 800px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item[open] {
  border-color: var(--color-primary);
}

.faq-item__question {
  display: flex;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  padding-right: 48px;
  list-style: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question::before {
  content: 'Q.';
  color: var(--color-primary);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.faq-item__question::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition);
}

.faq-item[open] .faq-item__question::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item__answer {
  padding: 0 24px 20px 56px;
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.9;
}

/* ============================================
   SECTION 9: MAIN CTA
   ============================================ */
.cta-main {
  position: relative;
  background: var(--color-white);
  background-image: url('https://images.unsplash.com/photo-1450101499163-c8848c66ca85?w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--color-text);
  text-align: center;
  overflow: hidden;
}

.cta-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.92);
}

.cta-main > .container {
  position: relative;
  z-index: 1;
}

.cta-main__title {
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
  line-height: 1.6;
  color: var(--color-secondary-dark);
}

.cta-main__text {
  font-size: 0.92rem;
  line-height: 2;
  max-width: 700px;
  margin: 0 auto 16px;
  color: var(--color-text-light);
}

.cta-main__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 480px;
  margin: 40px auto 0;
}

.cta-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 16px 28px;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  transition: all var(--transition);
  color: var(--color-text);
}

.cta-box:hover {
  border-color: var(--color-primary);
  box-shadow: 0 8px 32px rgba(46, 94, 63, 0.12);
  transform: translateY(-4px);
}

.cta-box--phone {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.cta-box--phone:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  box-shadow: 0 8px 32px rgba(27, 58, 38, 0.25);
}

.cta-box--phone .cta-box__icon {
  color: var(--gold-light);
}

.cta-box--phone .cta-box__label {
  color: rgba(255, 255, 255, 0.8);
}

.cta-box--phone .cta-box__note {
  color: rgba(255, 255, 255, 0.6);
}

.cta-box__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  color: var(--color-primary);
}

.cta-box__icon svg {
  width: 100%;
  height: 100%;
}

.cta-box__label {
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
}

.cta-box__number {
  font-size: 1.25rem;
  font-weight: 700;
  font-family: var(--font-serif);
  margin-bottom: 6px;
  color: var(--color-secondary-dark);
}

.cta-box--phone .cta-box__number {
  color: var(--color-white);
  font-size: 1.35rem;
}

.cta-box__note {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.cta-box--line {
  border-color: #06C755;
}

.cta-box--line .cta-box__icon {
  color: #06C755;
}

.cta-box--line:hover {
  border-color: #06C755;
  box-shadow: 0 8px 32px rgba(6, 199, 85, 0.15);
}

/* ============================================
   SECTION: OFFICE / ACCESS
   ============================================ */
.office__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

.office__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
}

.office__table {
  width: 100%;
  border-collapse: collapse;
}

.office__table th,
.office__table td {
  padding: 14px 0;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
  line-height: 1.7;
}

.office__table th {
  width: 100px;
  font-weight: 600;
  color: var(--color-secondary-dark);
  white-space: nowrap;
  padding-right: 20px;
}

.office__table td a {
  color: var(--color-primary);
  font-weight: 600;
}

.office__table td a:hover {
  text-decoration: underline;
}

.office__link {
  margin-top: 24px;
}

.office__map {
  margin-top: 32px;
}

.office__map-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  height: 320px;
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  color: var(--color-text-muted);
}

.office__map-placeholder svg {
  width: 56px;
  height: 56px;
  opacity: 0.5;
}

.office__map-placeholder span {
  font-size: 0.82rem;
}

/* Google Maps embed */
.office__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  border-radius: 12px;
}

.office__map-link {
  margin-top: 12px;
  text-align: right;
}

.office__map-link a {
  font-size: 0.82rem;
  color: var(--color-primary);
  font-weight: 500;
}

.office__map-link a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .office__grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 32px;
  }

  .office__map-placeholder,
  .office__map iframe {
    height: 240px;
  }

  .office__table th {
    width: 80px;
    font-size: 0.82rem;
    padding-right: 12px;
  }

  .office__table td {
    font-size: 0.82rem;
  }
}

/* ============================================
   SECTION 10: COLUMNS
   ============================================ */
.columns__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}

.column-card {
  display: flex;
  flex-direction: column;
  padding: 16px 20px 14px;
  background: var(--color-white);
  border-radius: 8px;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-primary);
  transition: all var(--transition);
  position: relative;
}

.column-card:hover {
  border-color: var(--color-border);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.column-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.column-card__cat {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--color-primary);
  background: var(--color-primary-light);
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.05em;
}

.column-card__title {
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--color-text);
  flex: 1;
}

.column-card__link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: var(--color-primary);
  font-weight: 600;
  margin-top: 8px;
  align-self: flex-end;
}

.column-card__link span {
  display: inline-block;
  transition: transform var(--transition);
}

.column-card:hover .column-card__link span {
  transform: translateX(4px);
}

/* Category accent colors */
.column-card--kiso {
  border-left-color: var(--green-800);
}

.column-card--kiso .column-card__cat {
  color: var(--green-800);
  background: var(--green-50);
}

.column-card--trouble {
  border-left-color: var(--brown-700);
}

.column-card--trouble .column-card__cat {
  color: var(--brown-700);
  background: var(--brown-50);
}

.column-card--fudousan {
  border-left-color: var(--gold);
}

.column-card--fudousan .column-card__cat {
  color: var(--gold-dark);
  background: #FBF6EB;
}

.column-card--column {
  border-left-color: var(--green-500);
}

.column-card--column .column-card__cat {
  color: var(--green-500);
  background: var(--green-50);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background-color: var(--brown-900);
  color: rgba(255, 255, 255, 0.8);
  padding: 60px 0 0;
}

.footer__inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.footer__logo-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.footer__logo-main {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-white);
  display: block;
  margin-bottom: 2px;
  white-space: nowrap;
}

.footer__logo-sub {
  font-size: 0.68rem;
  color: var(--gold-light);
  letter-spacing: 0.05em;
  display: block;
  white-space: nowrap;
}

.footer__address {
  font-size: 0.82rem;
  line-height: 2;
}

.footer__address a {
  color: var(--gold-light);
}

.footer__address a:hover {
  text-decoration: underline;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__nav h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__nav ul li {
  margin-bottom: 8px;
}

.footer__nav ul li a {
  font-size: 0.8rem;
  transition: color var(--transition);
}

.footer__nav ul li a:hover {
  color: var(--gold-light);
}

/* Mobile compact nav - hidden on desktop */
.footer__nav-mobile {
  display: none;
}

.footer__nav-mobile ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__nav-mobile li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__nav-mobile li:nth-child(2n) {
  border-right: none;
}

.footer__nav-mobile a {
  display: block;
  padding: 12px 16px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.75);
  transition: color var(--transition);
}

.footer__nav-mobile a:hover {
  color: var(--gold-light);
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__links {
  display: flex;
  gap: 24px;
}

.footer__links a {
  font-size: 0.78rem;
}

.footer__links a:hover {
  color: var(--gold-light);
}

.footer__copyright {
  font-size: 0.72rem;
  opacity: 0.6;
}

/* ============================================
   FLOATING CTA (MOBILE ONLY)
   ============================================ */
.floating-cta {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: var(--color-white);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.floating-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  font-size: 0.9rem;
  font-weight: 700;
  text-align: center;
}

.floating-cta__phone {
  background-color: var(--color-white);
  color: var(--color-primary);
  border-top: 2px solid var(--color-primary);
}

.floating-cta__form {
  background-color: var(--color-accent);
  color: var(--color-white);
}

/* ============================================
   RESPONSIVE: TABLET (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-padding: 64px;
  }

  /* Header */
  .header__hamburger {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 72%;
    max-width: 300px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: 80px 24px 32px;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
    overflow-y: auto;
    gap: 0;
  }

  .header__nav.is-open {
    right: 0;
  }

  .header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .header__nav-top-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav-top-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
  }

  .header__nav-top-btn svg {
    width: 22px;
    height: 22px;
  }

  .header__nav-top-btn--phone {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    border: 1px solid var(--color-border);
  }

  .header__nav-top-btn--form {
    background: var(--color-primary);
    color: var(--color-white);
  }

  .header__nav-cta {
    display: none;
  }

  .header__nav-list > li > a {
    padding: 11px 0;
    font-size: 0.88rem;
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav-extra {
    display: block;
  }

  .header__nav-extra li a {
    display: block;
    padding: 11px 0;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--color-text);
    border-bottom: 1px solid var(--color-border);
  }

  .header__nav-extra li a:hover {
    color: var(--color-primary);
  }

  .dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
  }

  .dropdown li a {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border);
    font-size: 0.82rem;
  }

  .header__nav-sub {
    flex-direction: row;
    flex-wrap: wrap;
    border-left: none;
    margin-left: 0;
    padding-left: 0;
    padding-top: 16px;
    margin-top: 8px;
    border-top: 1px solid var(--color-border);
    gap: 0;
  }

  .header__nav-sub li a {
    font-size: 0.85rem;
    padding: 10px 16px 10px 0;
  }


  /* Concerns */
  .concerns__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services */
  .services__grid {
    grid-template-columns: 1fr;
  }

  /* Flow */
  .flow__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .flow__steps::before {
    display: none;
  }

  /* CTA */
  .cta-main__buttons {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* Columns */
  .columns__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer__nav {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* ============================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-padding: 48px;
  }

  .sp-only {
    display: inline;
  }

  /* Typography */
  .section__title {
    font-size: 1.35rem;
  }

  .section__lead {
    font-size: 0.88rem;
    text-align: left;
    margin-bottom: 36px;
  }

  /* Hero */
  .hero {
    min-height: auto;
  }

  .hero__title {
    font-size: 1.6rem;
  }

  .hero__subtitle {
    font-size: 0.9rem;
    margin-bottom: 28px;
  }

  .hero__cta {
    flex-direction: column;
    gap: 12px;
  }

  .hero__cta .btn {
    width: 100%;
  }

  /* Stats */
  .stats__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
  }

  .stats__item {
    padding: 20px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stats__item:not(:last-child)::after {
    display: none;
  }

  .stats__item:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
  }

  .stats__item:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .stats__number em {
    font-size: 2rem;
  }

  /* Concerns */
  .concerns__grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .concern-card {
    padding: 20px 12px 16px;
  }

  .concern-card__text {
    font-size: 0.82rem;
  }

  /* Reasons */
  .reason-card {
    padding: 24px 20px;
    gap: 16px;
  }

  .reason-card__number {
    font-size: 1.5rem;
    min-width: 40px;
  }

  /* Flow */
  .flow__steps {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* CTA */
  .cta-main__title {
    font-size: 1.3rem;
  }

  .cta-main__buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .cta-box {
    flex-direction: row;
    gap: 14px;
    padding: 18px 20px;
    text-align: left;
    border-radius: 12px;
  }

  .cta-box__icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .cta-box__number {
    font-size: 1.1rem;
  }

  .cta-box--phone .cta-box__number {
    font-size: 1.15rem;
  }

  /* Columns */
  .columns__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .column-card {
    padding: 20px 20px 18px;
    border-radius: 8px;
  }

  .column-card__head {
    margin-bottom: 10px;
  }

  .column-card__title {
    font-size: 0.85rem;
  }

  .column-card__link {
    margin-top: 12px;
  }

  /* Footer - compact mobile */
  .footer {
    padding: 32px 0 0;
    padding-bottom: 56px;
  }

  .footer__inner {
    gap: 24px;
    padding-bottom: 24px;
  }

  .footer__logo-sub {
    margin-bottom: 12px;
  }

  .footer__address {
    font-size: 0.75rem;
    line-height: 1.8;
  }

  .footer__nav {
    display: none;
  }

  .footer__nav-mobile {
    display: block;
  }

  .footer__bottom {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px 0;
  }

  .footer__links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }

  .footer__links a {
    font-size: 0.72rem;
  }

  /* Floating CTA */
  .floating-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  .hero__title {
    font-size: 1.35rem;
  }

  .concerns__grid {
    grid-template-columns: 1fr;
  }

  .flow__steps {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer__nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ================================================================
   ↓↓↓ 下層ページ用拡張スタイル (Sub-page extensions) ↓↓↓
   ================================================================ */

/* ============ Breadcrumb ============ */
/* ヘッダーが position:fixed のため、パンくずが隠れないよう
   ヘッダー高さ（.header__inner の 72px）分を確保する */
.breadcrumb { background: #F7F4EC; padding: 12px 0; font-size: 0.85rem; margin-top: 72px; }
.breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; list-style: none; margin: 0; padding: 0; }
.breadcrumb__list li { display: flex; align-items: center; color: #6B6B6B; }
.breadcrumb__list li:not(:last-child)::after { content: "›"; margin-left: 10px; color: #B8AE92; }
.breadcrumb__list a { color: var(--green-900); text-decoration: none; }
.breadcrumb__list a:hover { text-decoration: underline; }
.breadcrumb__list li:last-child { color: #1F1F1F; font-weight: 500; }

/* ============ Page Hero (sub-page) ============ */
.page-hero {
  background: linear-gradient(135deg, rgba(63, 122, 38, 0.08) 0%, rgba(212, 175, 97, 0.10) 100%), #FBFAF5;
  padding: 60px 0 50px;
  border-bottom: 1px solid rgba(63, 122, 38, 0.12);
}
.page-hero__title { font-family: 'Noto Serif JP', serif; font-size: 2rem; font-weight: 700; line-height: 1.5; color: #1F1F1F; margin: 0 0 20px; }
.page-hero__title em { color: var(--green-900); font-style: normal; }
.page-hero__lead { font-size: 1rem; line-height: 1.95; color: #333; }
.page-hero__lead p { margin: 0 0 14px; }
.page-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; align-items: center; }
.page-hero__notice { font-size: 0.9rem; color: #5C5C5C; margin-top: 16px; }
@media (max-width: 768px) {
  .page-hero { padding: 40px 0 32px; }
  .page-hero__title { font-size: 1.5rem; }
}
.page-hero + .section { padding-top: 50px; }

/* ============ Alert Banner (期限警告/緊急バナー) ============ */
.alert-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 22px;
  border-radius: 8px;
  margin-bottom: 24px;
  font-size: 0.95rem;
  line-height: 1.7;
}
.alert-banner__icon { font-size: 1.4rem; flex-shrink: 0; line-height: 1.4; }
.alert-banner__body { flex: 1; }
.alert-banner__title { font-weight: 700; margin: 0 0 4px; font-size: 1rem; }
.alert-banner__text { margin: 0; }
.alert-banner--urgent { background: #FEF1F0; border-left: 4px solid #D14B3F; color: #6E1A12; }
.alert-banner--urgent .alert-banner__title { color: #B5392E; }
.alert-banner--info { background: #FFF7E6; border-left: 4px solid var(--gold); color: #6B5430; }
.alert-banner--info .alert-banner__title { color: #8B6A1F; }

/* ============ Anchor Nav (H1直下の3テーマ分岐) ============ */
.anchor-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 0; }
.anchor-nav__item {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; background: #fff;
  border: 1px solid rgba(63, 122, 38, 0.25); border-radius: 8px;
  text-decoration: none; color: #1F1F1F; font-weight: 600; font-size: 0.95rem;
  transition: all 0.2s;
}
.anchor-nav__item:hover { border-color: var(--green-900); background: #F0F7E8; transform: translateY(-1px); }
.anchor-nav__item::before { content: "▼"; color: var(--green-900); font-size: 0.7rem; }

/* ============ Info Pair (✅プラス財産 / ⚠️マイナス財産) ============ */
.info-pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0 36px; }
.info-card { padding: 24px; border-radius: 8px; border: 1px solid; }
.info-card--positive { background: #F0F7E8; border-color: #B8D396; }
.info-card--negative { background: #FFF4E6; border-color: #E8C68F; }
.info-card__title { font-size: 1rem; font-weight: 700; margin: 0 0 14px; display: flex; align-items: center; gap: 8px; }
.info-card--positive .info-card__title { color: var(--green-900); }
.info-card--negative .info-card__title { color: #B8732B; }
.info-card__list { list-style: none; padding: 0; margin: 0; font-size: 0.92rem; line-height: 1.85; }
.info-card__list li { padding-left: 18px; position: relative; }
.info-card__list li::before { content: "・"; position: absolute; left: 0; color: #888; }
.info-card__note { font-size: 0.82rem; color: #6B5430; margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed rgba(184, 116, 43, 0.4); }
@media (max-width: 768px) { .info-pair-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ============ Checklist (チェックリスト) ============ */
.checklist { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.checklist__item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: #FBFAF5;
  border: 1px solid #EEE7D2; border-left: 4px solid var(--green-900); border-radius: 4px;
  font-size: 0.95rem; line-height: 1.7; color: #333;
}
.checklist__item::before { content: "☑"; flex-shrink: 0; color: var(--green-900); font-size: 1.2rem; line-height: 1.4; font-weight: 700; }
.checklist--alert .checklist__item { border-left-color: #D14B3F; }
.checklist--alert .checklist__item::before { content: "⚠️"; color: #D14B3F; }

/* ============ Data Table ============ */
.data-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 8px; border: 1px solid #E5DFCE; background: #fff; }
.data-table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 0.92rem; }
.data-table thead { background: var(--green-900); color: #fff; }
.data-table th { padding: 14px 16px; text-align: left; font-weight: 600; font-size: 0.95rem; }
.data-table td { padding: 14px 16px; border-top: 1px solid #EEE7D2; vertical-align: top; line-height: 1.7; }
.data-table tbody tr:nth-child(even) { background: #FBFAF5; }
.data-table strong { color: var(--green-900); }
.data-table__note { font-size: 0.82rem; color: #6B6B6B; margin: 10px 0 0; }
.data-table__caption { font-weight: 700; font-size: 1.05rem; color: #1F1F1F; margin: 28px 0 12px; padding-left: 12px; border-left: 4px solid var(--green-900); }

/* ============ Comparison Table (3者比較・横スクロール) ============ */
.comparison-table-wrap { overflow-x: auto; margin: 24px 0; padding-bottom: 4px; }
.comparison-table { width: 100%; border-collapse: collapse; min-width: 720px; font-size: 0.9rem; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }
.comparison-table th, .comparison-table td { padding: 14px 16px; vertical-align: top; line-height: 1.7; border-bottom: 1px solid #EEE7D2; border-right: 1px solid #EEE7D2; }
.comparison-table th:last-child, .comparison-table td:last-child { border-right: none; }
.comparison-table thead th { background: var(--green-900); color: #fff; text-align: center; font-weight: 700; font-size: 0.95rem; padding: 16px; }
.comparison-table tbody th { background: #FBFAF5; color: #1F1F1F; font-weight: 600; text-align: left; width: 22%; }
.comparison-table .comparison-table__highlight { background: #F0F7E8; }
.comparison-table .comparison-table__highlight td { font-weight: 600; }

/* ============ Tab UI ============ */
.tab-group { margin: 24px 0; }
.tab-buttons { display: flex; gap: 4px; border-bottom: 2px solid #E5DFCE; }
.tab-button {
  padding: 12px 22px; background: transparent;
  border: 1px solid #E5DFCE; border-bottom: none; border-radius: 6px 6px 0 0;
  font-size: 0.95rem; font-weight: 600; color: #6B6B6B; cursor: pointer;
  transition: all 0.2s; margin-bottom: -2px;
}
.tab-button:hover { color: var(--green-900); }
.tab-button.is-active { background: #fff; color: var(--green-900); border-color: #E5DFCE; border-bottom: 2px solid #fff; }
.tab-panel { display: none; padding: 22px 4px 4px; }
.tab-panel.is-active { display: block; }
@media (max-width: 600px) { .tab-button { padding: 10px 14px; font-size: 0.88rem; } }

/* ============ Case Accordion ============ */
.case-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; }
.case-card { background: #fff; border: 1px solid #E5DFCE; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,0.03); }
.case-card__summary { padding: 18px 22px; display: flex; align-items: center; gap: 14px; cursor: pointer; list-style: none; transition: background 0.2s; }
.case-card__summary::-webkit-details-marker { display: none; }
.case-card__summary:hover { background: #FBFAF5; }
.case-card__num { display: inline-flex; align-items: center; justify-content: center; min-width: 56px; height: 28px; background: var(--green-900); color: #fff; font-size: 0.8rem; font-weight: 700; border-radius: 4px; flex-shrink: 0; letter-spacing: 0.05em; }
.case-card__title { font-weight: 600; color: #1F1F1F; flex: 1; line-height: 1.5; }
.case-card__icon { color: var(--green-900); font-size: 1.4rem; transition: transform 0.25s; flex-shrink: 0; }
.case-card[open] .case-card__icon { transform: rotate(45deg); }
.case-card__body { padding: 4px 22px 22px; border-top: 1px dashed #E5DFCE; margin-top: 0; }
.case-card__sub { font-size: 0.88rem; font-weight: 700; color: var(--green-900); margin: 16px 0 6px; }
.case-card__sub--alt { color: #B8732B; }
.case-card__body p { margin: 0 0 8px; line-height: 1.85; color: #333; }
.case-card__body ol { padding-left: 22px; margin: 6px 0 0; line-height: 1.85; color: #333; }
.case-card__body ol li { padding: 3px 0; }

/* ============ Process Steps (multi-stage flow) ============ */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0 16px; }
.process-steps--4 { grid-template-columns: repeat(4, 1fr); }
.process-steps--5 { grid-template-columns: repeat(5, 1fr); gap: 14px; }
.process-step { background: #fff; border: 1px solid #E5DFCE; border-top: 4px solid var(--green-900); border-radius: 8px; padding: 22px 20px; }
.process-step--shihou { border-top-color: #4A7AB5; }
.process-step__num { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--green-900); letter-spacing: 0.1em; padding: 4px 10px; background: #F0F7E8; border-radius: 4px; margin-bottom: 12px; }
.process-step--shihou .process-step__num { color: #4A7AB5; background: #E6EEF8; }
.process-step__title { font-size: 1.1rem; font-weight: 700; color: #1F1F1F; margin: 0 0 10px; }
.process-step__desc { font-size: 0.9rem; line-height: 1.85; color: #444; margin: 0 0 14px; }
.process-step__period { display: inline-block; font-size: 0.82rem; color: #6B6B6B; padding: 6px 12px; background: #FBFAF5; border-radius: 4px; }
@media (max-width: 900px) {
  .process-steps, .process-steps--4, .process-steps--5 { grid-template-columns: 1fr; }
}

/* ============ Formula Box (相続税計算式) ============ */
.formula-box { background: #FBFAF5; border: 1px solid #E5DFCE; border-radius: 8px; padding: 22px 24px; margin: 20px 0; font-size: 0.95rem; line-height: 1.9; }
.formula-box__title { font-weight: 700; color: var(--green-900); font-size: 1rem; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #E5DFCE; }
.formula-box__line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 0; color: #1F1F1F; }
.formula-box__line .formula-label { color: #6B6B6B; font-size: 0.88rem; min-width: 140px; }
.formula-box__line .formula-value { font-weight: 600; }
.formula-box__line .formula-value--green { color: var(--green-900); }
.formula-box__line .formula-value--red { color: #C44A3D; }
.formula-box__total { margin-top: 12px; padding-top: 12px; border-top: 2px dashed #E5DFCE; font-weight: 700; font-size: 1.05rem; color: var(--green-900); }
.formula-box__note { font-size: 0.82rem; color: #6B6B6B; margin-top: 12px; padding-top: 10px; border-top: 1px dotted #E5DFCE; }

/* ============ Schedule Table (3段階色分け期限表) ============ */
.schedule-table-wrap { overflow-x: auto; margin: 24px 0; border-radius: 8px; border: 1px solid #E5DFCE; background: #fff; }
.schedule-table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.92rem; }
.schedule-table thead { background: var(--green-900); color: #fff; }
.schedule-table th { padding: 14px 16px; text-align: left; font-weight: 600; }
.schedule-table td { padding: 14px 16px; border-top: 1px solid #EEE7D2; vertical-align: top; line-height: 1.7; }
.schedule-table .schedule-deadline { font-weight: 700; white-space: nowrap; }
.schedule-row--urgent { background: #FEF1F0; }
.schedule-row--urgent .schedule-deadline { color: #C44A3D; }
.schedule-row--mid { background: #FFF7E6; }
.schedule-row--mid .schedule-deadline { color: #B8732B; }
.schedule-row--low { background: #F0F7E8; }
.schedule-row--low .schedule-deadline { color: var(--green-900); }
.schedule-legend { display: flex; flex-wrap: wrap; gap: 16px; margin: 16px 0; font-size: 0.85rem; }
.schedule-legend__item { display: flex; align-items: center; gap: 8px; color: #555; }
.schedule-legend__dot { width: 14px; height: 14px; border-radius: 3px; }
.schedule-legend__dot--urgent { background: #FEF1F0; border: 1px solid #C44A3D; }
.schedule-legend__dot--mid { background: #FFF7E6; border: 1px solid #B8732B; }
.schedule-legend__dot--low { background: #F0F7E8; border: 1px solid var(--green-900); }

/* ============ Callout ============ */
.callout { background: #FFF7E6; border-left: 4px solid var(--gold); padding: 16px 20px; border-radius: 0 6px 6px 0; font-size: 0.95rem; line-height: 1.85; margin: 20px 0; color: #4A3A12; }
.callout strong { color: var(--green-900); }
.callout--alert { background: #FEF1F0; border-left-color: #D14B3F; color: #6E1A12; }
.callout--alert strong { color: #B5392E; }

/* ============ Case Result Cards ============ */
.case-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 24px 0; }
.case-result-card { background: #fff; border: 1px solid #E5DFCE; border-radius: 8px; padding: 22px; display: flex; flex-direction: column; }
.case-result-card__type { display: inline-block; align-self: flex-start; font-size: 0.78rem; font-weight: 700; color: #fff; background: var(--green-900); padding: 4px 12px; border-radius: 4px; margin-bottom: 14px; }
.case-result-card__summary { font-size: 0.9rem; line-height: 1.8; color: #333; margin: 0 0 16px; flex: 1; }
.case-result-card__outcome { font-size: 0.9rem; line-height: 1.7; color: #1F1F1F; padding-top: 14px; border-top: 1px dashed #E5DFCE; margin: 0; }
.case-result-card__outcome strong { color: var(--green-900); display: block; margin-bottom: 4px; font-size: 0.82rem; letter-spacing: 0.05em; }
@media (max-width: 900px) { .case-result-grid { grid-template-columns: 1fr; } }

/* ============ NG Pattern List (赤アイコン警告リスト) ============ */
.ng-list { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-direction: column; gap: 10px; }
.ng-list__item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 16px; background: #FEF1F0;
  border: 1px solid #F4C8C2; border-radius: 4px;
  font-size: 0.95rem; line-height: 1.7; color: #6E1A12;
}
.ng-list__item::before { content: "✕"; flex-shrink: 0; color: #C44A3D; font-size: 1.1rem; font-weight: 700; line-height: 1.4; }

/* ============ Related Links ============ */
.related-links__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 24px; }
.related-link-card { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border: 1px solid #E5DFCE; border-radius: 6px; text-decoration: none; color: #1F1F1F; font-weight: 500; font-size: 0.95rem; transition: all 0.2s; }
.related-link-card:hover { border-color: var(--green-900); transform: translateY(-1px); box-shadow: 0 2px 6px rgba(63,122,38,0.12); }
.related-link-card::after { content: "→"; margin-left: auto; color: var(--green-900); font-weight: 700; }

/* ============ Section h3 sub-heading ============ */
.section h3.sub-heading { font-size: 1.25rem; font-weight: 700; color: #1F1F1F; margin: 32px 0 14px; padding-left: 14px; border-left: 4px solid var(--green-900); }
.section p { font-size: 0.98rem; line-height: 1.95; color: #333; }

/* ============ Trouble Card (テンプレートB: カテゴリハブ用) ============ */
.trouble-card-list { display: flex; flex-direction: column; gap: 24px; margin-top: 28px; }
.trouble-card {
  background: #fff;
  border: 1px solid #E5DFCE;
  border-radius: 10px;
  padding: 28px 32px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s, transform 0.2s;
}
.trouble-card:hover { box-shadow: 0 4px 16px rgba(63,122,38,0.10); transform: translateY(-2px); }
.trouble-card__head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 6px; }
.trouble-card__num { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--green-900); color: #fff; font-family: 'Noto Serif JP', serif; font-size: 1.4rem; font-weight: 700; border-radius: 50%; flex-shrink: 0; }
.trouble-card__title { font-size: 1.5rem; font-weight: 700; color: #1F1F1F; margin: 0; line-height: 1.4; flex: 1; min-width: 200px; }
.trouble-card__urgency { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; font-size: 0.78rem; font-weight: 700; border-radius: 4px; letter-spacing: 0.05em; }
.trouble-card__urgency::before { content: "⏰"; font-size: 0.9rem; }
.trouble-card__urgency--high { background: #FEF1F0; color: #B5392E; border: 1px solid #F4C8C2; }
.trouble-card__urgency--mid { background: #FFF7E6; color: #8B6A1F; border: 1px solid #E8C68F; }
.trouble-card__urgency--low { background: #F0F7E8; color: #2A5417; border: 1px solid #B8D396; }
.trouble-card__keywords { font-size: 0.78rem; color: #6B6B6B; margin: 0 0 14px; padding-left: 64px; letter-spacing: 0.02em; }
.trouble-card__desc { font-size: 0.98rem; line-height: 1.95; color: #333; margin: 0 0 18px; }
.trouble-card__sub { font-size: 0.95rem; font-weight: 700; color: var(--green-900); margin: 0 0 10px; padding-left: 12px; border-left: 3px solid var(--green-900); }
.trouble-card__list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; }
.trouble-card__list li { font-size: 0.92rem; line-height: 1.7; color: #333; padding-left: 24px; position: relative; }
.trouble-card__list li::before { content: "✓"; position: absolute; left: 0; top: 1px; color: var(--green-900); font-weight: 700; }
.trouble-card__cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 28px; background: var(--green-900); color: #fff;
  text-decoration: none; font-weight: 600; font-size: 0.98rem;
  border-radius: 6px; transition: background 0.2s, transform 0.2s;
}
.trouble-card__cta::after { content: "→"; font-weight: 700; }
.trouble-card__cta:hover { background: #2A5417; transform: translateX(2px); }
@media (max-width: 768px) {
  .trouble-card { padding: 22px 20px; }
  .trouble-card__title { font-size: 1.2rem; }
  .trouble-card__keywords { padding-left: 0; margin-top: 12px; }
  .trouble-card__list { grid-template-columns: 1fr; }
}

/* ============ Reason Numbered List (テンプレートB用 3つの理由) ============ */
.reason-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 28px 0; }
.reason-list__item { background: #fff; border: 1px solid #E5DFCE; border-top: 4px solid var(--green-900); border-radius: 8px; padding: 24px 22px; }
.reason-list__num { display: inline-block; font-family: 'Noto Serif JP', serif; font-size: 1.6rem; font-weight: 700; color: var(--green-900); margin-bottom: 8px; line-height: 1; }
.reason-list__title { font-size: 1.05rem; font-weight: 700; color: #1F1F1F; margin: 0 0 10px; line-height: 1.5; }
.reason-list__text { font-size: 0.92rem; line-height: 1.85; color: #444; margin: 0; }
@media (max-width: 768px) { .reason-list { grid-template-columns: 1fr; } }

/* ============ Deadline Warning Section (期限・時効警告セクション) ============ */
.deadline-section { background: linear-gradient(135deg, #FEF1F0 0%, #FFF7E6 100%); }
.deadline-section .section__title { color: #B5392E; }
.deadline-section .section__title::before { content: "⚠️ "; }
.deadline-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: #fff; border-radius: 8px; overflow: hidden; min-width: 580px; }
.deadline-table thead { background: #B5392E; color: #fff; }
.deadline-table th { padding: 14px 16px; text-align: left; font-weight: 600; }
.deadline-table td { padding: 14px 16px; border-top: 1px solid #F4C8C2; vertical-align: top; line-height: 1.7; }
.deadline-table .deadline-period { font-weight: 700; color: #B5392E; white-space: nowrap; font-size: 1rem; }

/* ================================================================
   ↓↓↓ テンプレートC（コラム記事）用スタイル ↓↓↓
   ================================================================ */
.column-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 24px; font-size: 0.85rem; color: #6B6B6B; }
.column-meta__cat { display: inline-flex; align-items: center; padding: 4px 12px; background: var(--green-900); color: #fff; font-size: 0.78rem; font-weight: 700; border-radius: 4px; letter-spacing: 0.05em; }
.column-meta__cat--kiso { background: #4A7AB5; }
.column-meta__cat--trouble { background: #C44A3D; }
.column-meta__cat--fudousan { background: #B8732B; }
.column-meta__date::before { content: "📅 "; }
.column-meta__time::before { content: "⏱ "; }
.column-toc { background: #FBFAF5; border: 1px solid #E5DFCE; border-radius: 8px; padding: 22px 26px; margin: 28px 0; }
.column-toc__title { font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #E5DFCE; display: flex; align-items: center; gap: 8px; }
.column-toc__title::before { content: "📚"; }
.column-toc__list { list-style: none; padding: 0; margin: 0; counter-reset: toc-counter; }
.column-toc__list li { counter-increment: toc-counter; padding: 6px 0 6px 32px; position: relative; line-height: 1.7; }
.column-toc__list li::before { content: counter(toc-counter, decimal-leading-zero); position: absolute; left: 0; top: 6px; color: var(--green-900); font-weight: 700; font-family: 'Noto Serif JP', serif; }
.column-toc__list a { color: #1F1F1F; text-decoration: none; transition: color 0.2s; font-size: 0.95rem; }
.column-toc__list a:hover { color: var(--green-900); text-decoration: underline; }
.column-body h2 { font-size: 1.5rem; font-weight: 700; color: #1F1F1F; margin: 48px 0 18px; padding-bottom: 12px; border-bottom: 3px solid var(--green-900); line-height: 1.5; }
.column-body h3 { font-size: 1.2rem; font-weight: 700; color: #1F1F1F; margin: 32px 0 12px; padding-left: 14px; border-left: 4px solid var(--green-900); line-height: 1.5; }
.column-body h4 { font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin: 24px 0 8px; }
.column-body p { font-size: 1rem; line-height: 1.95; color: #333; margin: 0 0 16px; }
.column-body ul, .column-body ol { padding-left: 26px; margin: 0 0 18px; line-height: 1.95; color: #333; }
.column-body ul li, .column-body ol li { margin-bottom: 6px; }
.column-body blockquote { background: #F0F7E8; border-left: 4px solid var(--green-900); padding: 16px 22px; margin: 20px 0; font-size: 0.95rem; line-height: 1.85; color: #2A5417; border-radius: 0 6px 6px 0; }
.column-body img { max-width: 100%; height: auto; border-radius: 8px; margin: 18px 0; }
.column-author { display: flex; gap: 18px; align-items: flex-start; padding: 22px 24px; background: #FBFAF5; border: 1px solid #E5DFCE; border-radius: 8px; margin: 32px 0; }
.column-author__avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--green-900); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; flex-shrink: 0; }
.column-author__body h4 { font-size: 1rem; font-weight: 700; margin: 0 0 4px; color: #1F1F1F; }
.column-author__body p { font-size: 0.88rem; line-height: 1.7; color: #555; margin: 0; }

/* ================================================================
   ↓↓↓ テンプレートD（信頼醸成）用スタイル ↓↓↓
   ================================================================ */
.profile-card { background: #fff; border: 1px solid #E5DFCE; border-radius: 12px; padding: 32px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; margin: 28px 0; }
.profile-card__photo { width: 100%; aspect-ratio: 3/4; background: #F0F7E8; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; color: var(--green-900); font-size: 4rem; }
.profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-card__title { font-size: 0.85rem; color: var(--green-900); font-weight: 600; letter-spacing: 0.1em; margin: 0 0 6px; }
.profile-card__name { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; font-weight: 700; color: #1F1F1F; margin: 0 0 4px; line-height: 1.3; }
.profile-card__name-en { font-size: 0.85rem; color: #6B6B6B; letter-spacing: 0.1em; margin-bottom: 18px; }
.profile-card__quote { font-size: 1rem; line-height: 1.9; color: #2A5417; padding: 14px 18px; background: #F0F7E8; border-radius: 6px; margin: 0 0 18px; font-style: italic; }
.profile-card__bio { font-size: 0.95rem; line-height: 1.95; color: #333; margin: 0; }
@media (max-width: 768px) { .profile-card { grid-template-columns: 1fr; padding: 22px; } .profile-card__photo { max-width: 200px; margin: 0 auto; } }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 580px; font-size: 0.95rem; background: #fff; border-radius: 8px; overflow: hidden; }
.pricing-table thead { background: var(--green-900); color: #fff; }
.pricing-table th { padding: 16px; text-align: left; font-weight: 600; }
.pricing-table td { padding: 16px; border-top: 1px solid #EEE7D2; vertical-align: top; line-height: 1.7; }
.pricing-table .pricing-amount { font-weight: 700; color: var(--green-900); white-space: nowrap; font-size: 1.05rem; }
.pricing-table .pricing-row--free { background: #F0F7E8; }
.pricing-table .pricing-row--free .pricing-amount { color: var(--green-900); font-size: 1.2rem; }
.fee-callout { background: linear-gradient(135deg, #F0F7E8 0%, #FFF7E6 100%); border: 1px solid #B8D396; border-radius: 8px; padding: 22px 26px; margin: 24px 0; text-align: center; }
.fee-callout__title { font-size: 1.1rem; font-weight: 700; color: var(--green-900); margin: 0 0 8px; }
.fee-callout__text { font-size: 0.95rem; line-height: 1.85; color: #333; margin: 0; }
.timeline { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; position: relative; padding-left: 36px; }
.timeline::before { content: ""; position: absolute; left: 12px; top: 12px; bottom: 12px; width: 2px; background: linear-gradient(to bottom, var(--green-900), #B8D396); }
.timeline__item { position: relative; background: #fff; border: 1px solid #E5DFCE; border-radius: 8px; padding: 20px 24px; }
.timeline__item::before { content: ""; position: absolute; left: -30px; top: 24px; width: 14px; height: 14px; background: var(--green-900); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 0 0 2px var(--green-900); }
.timeline__num { display: inline-block; font-size: 0.78rem; font-weight: 700; color: var(--green-900); letter-spacing: 0.1em; padding: 4px 10px; background: #F0F7E8; border-radius: 4px; margin-bottom: 10px; }
.timeline__title { font-size: 1.1rem; font-weight: 700; color: #1F1F1F; margin: 0 0 8px; }
.timeline__desc { font-size: 0.95rem; line-height: 1.85; color: #444; margin: 0; }

/* ================================================================
   ↓↓↓ テンプレートE（一覧型）用スタイル ↓↓↓
   ================================================================ */
.filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0; }
.filter-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 18px; background: #fff; border: 1px solid #E5DFCE; border-radius: 999px; font-size: 0.9rem; font-weight: 500; color: #555; text-decoration: none; cursor: pointer; transition: all 0.2s; }
.filter-tab:hover { border-color: var(--green-900); color: var(--green-900); }
.filter-tab.is-active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.filter-tab__count { font-size: 0.78rem; opacity: 0.8; }
.results-archive { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; margin: 24px 0; }
.results-archive .case-result-card { padding: 24px; }
.faq-group { margin-bottom: 32px; }
.faq-group__title { font-size: 1.25rem; font-weight: 700; color: #1F1F1F; margin: 0 0 16px; padding-left: 14px; border-left: 4px solid var(--green-900); display: flex; align-items: center; gap: 10px; }
.faq-group__icon { font-size: 1.4rem; }
.sitemap-tree { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin: 24px 0; }
.sitemap-tree__col { background: #fff; border: 1px solid #E5DFCE; border-radius: 8px; padding: 22px 24px; }
.sitemap-tree__heading { font-size: 1.05rem; font-weight: 700; color: var(--green-900); margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #E5DFCE; }
.sitemap-tree__list { list-style: none; padding: 0; margin: 0; }
.sitemap-tree__list > li { padding: 6px 0; border-bottom: 1px dashed #EEE7D2; }
.sitemap-tree__list > li:last-child { border-bottom: none; }
.sitemap-tree__list a { color: #1F1F1F; text-decoration: none; font-size: 0.93rem; transition: color 0.2s; }
.sitemap-tree__list a:hover { color: var(--green-900); text-decoration: underline; }
.sitemap-tree__list ul { list-style: none; padding: 8px 0 4px 16px; margin: 6px 0 0; border-left: 2px solid #EEE7D2; }
.sitemap-tree__list ul li { padding: 3px 0 3px 12px; position: relative; font-size: 0.88rem; }
.sitemap-tree__list ul li::before { content: "›"; position: absolute; left: 0; color: #B8AE92; }

/* ================================================================
   ↓↓↓ テンプレートF（フォーム・法務）用スタイル ↓↓↓
   ================================================================ */
.form-section { background: #fff; border: 1px solid #E5DFCE; border-radius: 8px; padding: 32px; margin: 28px 0; }
.form-progress { display: flex; gap: 0; margin: 0 0 32px; counter-reset: form-step; list-style: none; padding: 0; }
.form-progress li { flex: 1; padding: 14px 8px; text-align: center; background: #F0F0F0; color: #888; font-size: 0.85rem; font-weight: 600; position: relative; counter-increment: form-step; }
.form-progress li::before { content: counter(form-step) ". "; }
.form-progress li:not(:last-child)::after { content: ""; position: absolute; right: -10px; top: 0; width: 0; height: 0; border-left: 10px solid #F0F0F0; border-top: 23px solid transparent; border-bottom: 23px solid transparent; z-index: 1; }
.form-progress li.is-active { background: var(--green-900); color: #fff; }
.form-progress li.is-active::after { border-left-color: var(--green-900); }
.form-progress li.is-done { background: #B8D396; color: #fff; }
.form-progress li.is-done::after { border-left-color: #B8D396; }
.form-row { margin-bottom: 24px; }
.form-row__label { display: block; font-weight: 700; font-size: 0.95rem; color: #1F1F1F; margin-bottom: 8px; }
.form-row__required { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #fff; background: #C44A3D; padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; letter-spacing: 0.05em; }
.form-row__optional { display: inline-block; font-size: 0.72rem; font-weight: 700; color: #fff; background: #888; padding: 2px 8px; border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.form-row__hint { font-size: 0.82rem; color: #6B6B6B; margin: 6px 0 0; line-height: 1.6; }
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 12px 16px;
  background: #FBFAF5; border: 1px solid #E5DFCE; border-radius: 6px;
  font-size: 1rem; line-height: 1.6; color: #1F1F1F;
  font-family: inherit; transition: border-color 0.2s, background 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--green-900); background: #fff; box-shadow: 0 0 0 3px rgba(63,122,38,0.12); }
.form-textarea { resize: vertical; min-height: 120px; }
.form-radio-group, .form-checkbox-group { display: flex; flex-wrap: wrap; gap: 14px; }
.form-radio, .form-checkbox { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #FBFAF5; border: 1px solid #E5DFCE; border-radius: 6px; cursor: pointer; font-size: 0.95rem; transition: all 0.2s; }
.form-radio:hover, .form-checkbox:hover { border-color: var(--green-900); background: #F0F7E8; }
.form-radio input, .form-checkbox input { accent-color: var(--green-900); }
.form-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.form-actions .btn { min-width: 200px; }
.form-confirm-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.form-confirm-table th, .form-confirm-table td { padding: 16px; border-bottom: 1px solid #EEE7D2; text-align: left; vertical-align: top; line-height: 1.7; }
.form-confirm-table th { background: #FBFAF5; font-weight: 600; color: #1F1F1F; width: 30%; }
.form-confirm-table td { color: #333; }
.complete-message { text-align: center; padding: 60px 24px; background: linear-gradient(135deg, #F0F7E8 0%, #FFF7E6 100%); border-radius: 12px; margin: 32px 0; }
.complete-message__icon { width: 80px; height: 80px; margin: 0 auto 20px; background: var(--green-900); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; }
.complete-message__title { font-family: 'Noto Serif JP', serif; font-size: 1.6rem; font-weight: 700; color: #1F1F1F; margin: 0 0 16px; }
.complete-message__text { font-size: 1rem; line-height: 1.95; color: #333; max-width: 600px; margin: 0 auto 24px; }
.legal-text { background: #fff; border: 1px solid #E5DFCE; border-radius: 8px; padding: 32px 36px; margin: 28px 0; }
.legal-text h2 { font-size: 1.3rem; font-weight: 700; color: #1F1F1F; margin: 32px 0 14px; padding-bottom: 8px; border-bottom: 2px solid var(--green-900); }
.legal-text h2:first-of-type { margin-top: 0; }
.legal-text h3 { font-size: 1.05rem; font-weight: 700; color: #1F1F1F; margin: 20px 0 8px; }
.legal-text p { font-size: 0.95rem; line-height: 1.95; color: #333; margin: 0 0 14px; }
.legal-text ol, .legal-text ul { padding-left: 24px; margin: 0 0 16px; line-height: 1.95; color: #333; font-size: 0.95rem; }
.legal-text ol li, .legal-text ul li { margin-bottom: 6px; }
.legal-text__effective { font-size: 0.85rem; color: #6B6B6B; text-align: right; padding-top: 16px; margin-top: 24px; border-top: 1px solid #EEE7D2; }
@media (max-width: 768px) {
  .form-section { padding: 22px 18px; }
  .form-progress { font-size: 0.75rem; }
  .form-progress li::after { display: none; }
  .form-progress li { height: auto; line-height: 1.5; padding: 14px 8px; }
}

/* 相続サイト：チェックボックス群のグリッド表示（--cols2 / --cols3）
   CF7 は class: をグループ全体の span に付与するため、
   グリッドは .wpcf7-checkbox に、装飾は各 .wpcf7-list-item > label に当てる */
.form-checkbox-group--cols2,
.form-checkbox-group--cols3 {
  display: block;
}
.form-checkbox-group--cols2 .wpcf7-form-control-wrap,
.form-checkbox-group--cols3 .wpcf7-form-control-wrap {
  display: block;
}
.form-checkbox-group--cols2 .wpcf7-checkbox,
.form-checkbox-group--cols3 .wpcf7-checkbox {
  display: grid;
  gap: 8px 16px;
  padding: 0;
  background: none;
  border: none;
}
.form-checkbox-group--cols2 .wpcf7-checkbox {
  grid-template-columns: repeat(2, 1fr);
}
.form-checkbox-group--cols3 .wpcf7-checkbox {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 600px) {
  .form-checkbox-group--cols2 .wpcf7-checkbox,
  .form-checkbox-group--cols3 .wpcf7-checkbox {
    grid-template-columns: 1fr;
  }
}

/* CF7 の autop 対策
   ※ 単一チェックボックスグループでは <p> の中に本体が入るため、
      display:none にすると項目ごと消える。余白の打ち消しのみ行う */
.form-checkbox-group--cols2 > p,
.form-checkbox-group--cols3 > p {
  margin: 0;
  padding: 0;
}
.form-checkbox-group--cols2 > p:empty,
.form-checkbox-group--cols3 > p:empty,
.form-checkbox-group--cols2 > br,
.form-checkbox-group--cols3 > br,
.form-checkbox-group--cols2 .wpcf7-checkbox > br,
.form-checkbox-group--cols3 .wpcf7-checkbox > br {
  display: none;
}

/* 各項目を Grid アイテムとして明示 */
.form-checkbox-group--cols2 .wpcf7-list-item,
.form-checkbox-group--cols3 .wpcf7-list-item {
  display: block;
  width: 100%;
  margin: 0;
}

/* 項目ラベルをピル状に装飾（旧 .form-checkbox 相当） */
.form-checkbox-group--cols2 .wpcf7-list-item > label,
.form-checkbox-group--cols3 .wpcf7-list-item > label {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  padding: 10px 16px;
  background: #FBFAF5;
  border: 1px solid #E5DFCE;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.2s;
  box-sizing: border-box;
}
.form-checkbox-group--cols2 .wpcf7-list-item > label:hover,
.form-checkbox-group--cols3 .wpcf7-list-item > label:hover {
  border-color: var(--green-900);
  background: #F0F7E8;
}
.form-checkbox-group--cols2 .wpcf7-list-item input,
.form-checkbox-group--cols3 .wpcf7-list-item input {
  accent-color: var(--green-900);
  flex: 0 0 auto;
}

/* 希望の連絡方法（ラジオ）：枠を幅100%にし、選択肢を均等配置 */
.form-radio-group {
  display: block;
}
.form-radio-group .wpcf7-form-control-wrap {
  display: block;
}
.form-radio-group .form-radio {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  width: 100%;
  box-sizing: border-box;
}
.form-radio-group .wpcf7-list-item {
  margin: 0;
}

/* 送信ボタン：CF7 の wpcf7-spinner が非表示のまま幅を占有し、
   ボタンが左にずれるため、フローから外して中央配置を保つ */
.form-actions {
  position: relative;
}
.form-actions > p {
  margin: 0;
}
.form-actions .wpcf7-spinner {
  position: absolute;
  margin: 0;
}

/* 進行ステップ：矢印（23px×2＝46px）と li の高さを一致させる */
.form-progress li {
  height: 46px;
  line-height: 46px;
  padding: 0 8px;
}

/* スマホ表示時は、希望の連絡方法も1列に */
@media (max-width: 600px) {
  .form-radio-group .wpcf7-list-item,
  .form-checkbox-group:not(.form-checkbox-group--cols2):not(.form-checkbox-group--cols3) .wpcf7-list-item {
    display: block !important;
    width: 100% !important;
    margin: 0 0 8px 0 !important;
  }
}
/* 料金表など data-table の罫線を強化（区分列の視認性向上） */
.data-table {
  border-collapse: collapse;
  width: 100%;
  border: 1px solid #c5beb3;
}

.data-table th,
.data-table td {
  border: 1px solid #c5beb3;
  padding: 12px 14px;
  vertical-align: top;
}

.data-table tbody th {
  background: #f5f0e8;
  font-weight: 600;
  text-align: left;
}

/* 相続税ページなどのアラートバナー */
/* Page Hero 内のアラート（控えめなデザイン） */
.page-hero__alert {
  background: #fef5f3;
  border-left: 4px solid #c0392b;
  padding: 16px 20px;
  margin: 0 0 32px 0;
  border-radius: 4px;
}

.page-hero__alert p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #333;
}

.page-hero__alert strong {
  color: #c0392b;
}

.page-hero__alert a {
  color: #c0392b;
  font-weight: 600;
  text-decoration: none;
}

.page-hero__alert a:hover {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .page-hero__alert {
    padding: 12px 16px;
    margin-bottom: 24px;
  }
  .page-hero__alert p {
    font-size: 0.88rem;
  }
}

/* スマホでのhero部分 */
@media (max-width: 600px) {

  /* hero セクション全体の余白を詰める */
  .hero {
    padding: 0 0 !important;
  }

  /* hero__inner を flex 縦並びにして order で順序を制御 */
  .hero__inner {
    display: flex;
    flex-direction: column;
    gap: 0;  /* 要素間のgapをゼロに */
  }

  .hero__content {
    display: contents;
  }

  /* 表示順を指定 */
  .hero__title    { order: 1; }
  .hero__subtitle { order: 2; }
  .hero__lawyer   { order: 3; }
  .hero__cta      { order: 4; }

  /* タイトル */
  .hero__title {
    font-size: 1.3rem;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: anywhere;
    margin: 0 0 12px 0 !important;
  }

  /* リード文 */
  .hero__subtitle {
    font-size: 0.88rem;
    line-height: 1.6;
    text-align: center;
    margin: 0 0 12px 0 !important;
  }

  /* 弁護士画像エリア */
  .hero__lawyer {
    margin: 0 auto 12px auto !important;
    text-align: center;
  }

  .hero__lawyer img {
    width: auto;
    height: auto;
    max-width: 220px;
    margin: 0 !important;
    display: block;
  }

  .hero__lawyer-info {
    text-align: center;
    margin-top: 4px !important;
    font-size: 0.72rem;
    line-height: 1.3;
  }

  /* CTA */
  .hero__cta {
    margin: 0 !important;
  }
}
@media (min-width: 769px) {
.pc-only{
	display:none;
}
}

/* ===== ページ共通CTAボックス：コンパクト版 ===== */

.cta-main__buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 800px;
  margin: 24px auto 0 auto;
}

.cta-box {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 16px !important;
  min-height: auto !important;
  gap: 0 !important;
  text-align: center !important;
  border-radius: 8px;
}

.cta-box__icon {
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 0 4px 0 !important;
}

.cta-box__icon svg {
  width: 28px;
  height: 28px;
}

.cta-box__label {
  font-size: 0.9rem !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.cta-box__number {
  font-size: 1.45rem !important;
  font-weight: 700 !important;
  margin: 2px 0 !important;
  line-height: 1.2 !important;
  text-align: center !important;
}

.cta-box__note {
  font-size: 0.72rem !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  opacity: 0.85;
  text-align: center !important;
}

/* スマホ表示：1列に */
@media (max-width: 600px) {
  .cta-main__buttons {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  
  .cta-box {
    padding: 12px 14px !important;
  }
  
  .cta-box__icon {
    width: 32px !important;
    height: 32px !important;
  }
  
  .cta-box__icon svg {
    width: 24px;
    height: 24px;
  }
  
  .cta-box__label {
    font-size: 0.85rem !important;
  }
  
  .cta-box__number {
    font-size: 1.25rem !important;
  }
  
  .cta-box__note {
    font-size: 0.7rem !important;
  }
}

/* ===== ページ共通CTAボックス：アイコン絶対配置版 ===== */

.cta-box {
  position: relative !important;  /* 追加：アイコンの基準点 */
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 14px 16px !important;
  min-height: auto !important;
  gap: 0 !important;
  text-align: center !important;
  border-radius: 8px;
}

.cta-box__icon {
  position: absolute !important;   /* 追加：絶対配置 */
  left: 20px !important;            /* 左端から20px */
  top: 50% !important;              /* 縦中央 */
  transform: translateY(-50%) !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;             /* マージンを完全に0に */
}

.cta-box__icon svg {
  width: 32px;
  height: 32px;
}

/* スマホ表示 */
@media (max-width: 600px) {
  .cta-box {
     padding: 12px 56px !important;  /* 左右両方56px に統一 */
  }
  
  .cta-box__icon {
    left: 14px !important;
    width: 32px !important;
    height: 32px !important;
  }
  
  .cta-box__icon svg {
    width: 24px;
    height: 24px;
  }
}
@media (max-width: 600px) {
  .btn {
    white-space: normal;      /* 折り返しを許可 */
    max-width: 100%;
    padding-left: 20px;       /* 32px から詰めてテキスト幅を確保 */
    padding-right: 20px;
    text-align: center;
    line-height: 1.5;
  }
}