/* ===================================
   Variables & Reset
   =================================== */
:root {
  --color-navy: #1a2744;
  --color-navy-light: #243353;
  --color-accent: #c8a84e;
  --color-accent-hover: #b8962f;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-gray: #f5f6f8;
  --color-border: #ddd;
  --max-width: 1100px;
  --header-height: 64px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

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

.placeholder-img {
  background: #c8ccd4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  overflow: hidden;
}

img.signs__card-img,
img.popular__card-img,
img.related-articles__card-img,
img.area__map-img,
img.flow__step-img {
  object-fit: cover;
}

.placeholder-img::after {
  content: attr(data-label);
}

.placeholder-icon {
  background: var(--color-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.section-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  color: var(--color-navy);
  margin-bottom: 40px;
  letter-spacing: 0.04em;
}

.section-title--light {
  color: #fff;
}

/* ===================================
   Buttons
   =================================== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  transition: opacity 0.2s;
  min-height: 44px;
}

.btn:hover {
  opacity: 0.85;
}

.btn--primary {
  background: var(--color-navy);
  color: #fff;
}

.btn--accent {
  background: var(--color-accent);
  color: #fff;
}

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
  padding: 10px 24px;
  font-size: 13px;
}

/* ===================================
   Header
   =================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  height: var(--header-height);
}

.header__inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.header__logo {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  white-space: nowrap;
}

.header__nav {
  margin-left: auto;
}

.header__nav-list {
  display: flex;
  gap: 24px;
}

.header__nav-list a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.2s;
  white-space: nowrap;
}

.header__nav-list a:hover {
  color: var(--color-navy);
}

.header__cta {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 6px;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.header__cta:hover {
  opacity: 0.85;
}

.header__menu-btn {
  display: none;
  width: 28px;
  height: 20px;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  margin-left: auto;
}

.header__menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-navy);
  position: absolute;
  left: 0;
  transition: 0.3s;
}

.header__menu-btn span:nth-child(1) { top: 0; }
.header__menu-btn span:nth-child(2) { top: 9px; }
.header__menu-btn span:nth-child(3) { top: 18px; }

.header__menu-btn.is-open span:nth-child(1) {
  top: 9px;
  transform: rotate(45deg);
}

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

.header__menu-btn.is-open span:nth-child(3) {
  top: 9px;
  transform: rotate(-45deg);
}

/* ===================================
   Hero
   =================================== */
.hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  display: block;
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 25%);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__text {
  max-width: 580px;
}

.hero__title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.hero__sub {
  font-size: 14px;
  color: var(--color-navy);
  font-weight: 500;
  margin-bottom: 28px;
  line-height: 1.9;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 6px rgba(255, 255, 255, 0.85),
    0 0 12px rgba(255, 255, 255, 0.6);
}

.hero__buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero__features {
  display: flex;
  flex-direction: row;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 32px;
}

.hero__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-navy);
}

.hero__feature-icon {
  width: 48px;
  height: 48px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ===================================
   Featured (注目のコンテンツ)
   =================================== */
.featured {
  padding: 72px 0;
  background: var(--color-bg-gray);
}

.featured__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.featured__card {
  display: block;
  background: #fff;
  border-radius: 8px;
  padding: 28px 20px;
  text-align: center;
  transition: box-shadow 0.2s;
}

.featured__card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.featured__card-icon {
  width: 56px;
  height: 56px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 14px;
  font-weight: 700;
}

.featured__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.featured__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===================================
   Signs (こんなサインがあれば要注意)
   =================================== */
.signs {
  padding: 72px 0;
  background: var(--color-navy);
}

.signs__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.signs__card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  text-align: center;
}

.signs__card-img {
  width: 100%;
  height: 160px;
}

.signs__card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  padding: 16px 16px 8px;
}

.signs__card-text {
  font-size: 13px;
  color: var(--color-text-light);
  padding: 0 16px 20px;
  line-height: 1.7;
}

/* ===================================
   Popular (人気の記事)
   =================================== */
.popular {
  padding: 72px 0;
}

.popular__header {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.popular__header .section-title {
  margin-bottom: 0;
}

.popular__more {
  font-size: 14px;
  color: var(--color-navy);
  font-weight: 500;
  transition: opacity 0.2s;
}

.popular__more:hover {
  opacity: 0.7;
}

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

.popular__card {
  display: block;
  transition: opacity 0.2s;
}

.popular__card:hover {
  opacity: 0.8;
}

.popular__card-img {
  width: 100%;
  height: 180px;
  border-radius: 8px;
  margin-bottom: 14px;
}

.popular__card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
  line-height: 1.6;
}

.popular__card-date {
  font-size: 13px;
  color: var(--color-text-light);
}

/* ===================================
   Cost (費用相場の目安)
   =================================== */
.cost {
  padding: 72px 0;
  background: var(--color-bg-gray);
}

.cost__header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.cost__header .section-title {
  margin-bottom: 0;
}

.cost__body {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 32px;
  align-items: start;
}

.cost__table-wrap {
  overflow-x: auto;
}

.cost__table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.cost__table th,
.cost__table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
}

.cost__table thead th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

.cost__table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.cost__table tbody tr:last-child {
  border-bottom: none;
}

.cost__table tbody td:first-child {
  font-weight: 700;
  color: var(--color-navy);
}

.cost__checklist {
  background: #fff;
  border-radius: 8px;
  padding: 24px;
}

.cost__checklist-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
}

.cost__checklist-list li {
  position: relative;
  padding-left: 24px;
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.6;
}

.cost__checklist-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===================================
   Provider (業者選びで確認したいこと)
   =================================== */
.provider {
  padding: 72px 0;
}

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

.provider__card {
  text-align: center;
}

.provider__card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.provider__card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 12px;
}

.provider__card-text {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===================================
   Area (対応エリアから探す)
   =================================== */
.area {
  padding: 72px 0;
  background: var(--color-navy);
}

.area__body {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}

.area__search-bar {
  display: flex;
  margin-bottom: 20px;
}

.area__input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px 0 0 6px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
}

.area__search-btn {
  padding: 12px 24px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 0 6px 6px 0;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: opacity 0.2s;
}

.area__search-btn:hover {
  opacity: 0.85;
}

.area__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.area__tab {
  padding: 12px 16px;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: 0.2s;
  min-height: 44px;
}

.area__tab:hover,
.area__tab.is-active {
  background: #fff;
  color: var(--color-navy);
  border-color: #fff;
}

.area__pref-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.area__pref-list a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  padding: 8px 12px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s;
}

.area__pref-list a:hover {
  color: #fff;
  text-decoration: underline;
}

.area__map {
  text-align: center;
}

.area__map-img {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
}

.area__location-btn {
  display: inline-block;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 6px;
  transition: 0.2s;
}

.area__location-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===================================
   Flow (相談の流れ)
   =================================== */
.flow {
  padding: 72px 0;
  background: var(--color-bg-gray);
}

.flow__grid {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.flow__step {
  flex: 1;
  max-width: 300px;
  text-align: center;
}

.flow__step-number {
  width: 36px;
  height: 36px;
  background: var(--color-navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  margin: 0 auto 16px;
}

.flow__step-img {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.flow__step-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 10px;
}

.flow__step-text {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

.flow__arrow {
  font-size: 24px;
  color: var(--color-navy);
  font-weight: 700;
  padding-top: 100px;
  flex-shrink: 0;
}

/* ===================================
   FAQ (よくある質問)
   =================================== */
.faq {
  padding: 72px 0;
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  padding: 20px 40px 20px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  position: relative;
  list-style: none;
}

.faq__question::-webkit-details-marker {
  display: none;
}

.faq__question::before {
  content: "Q.";
  color: var(--color-navy);
  margin-right: 8px;
  font-weight: 700;
}

.faq__question::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
  color: var(--color-navy);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq__item[open] .faq__question::after {
  content: "−";
}

.faq__answer {
  padding: 0 0 20px 28px;
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ===================================
   Footer
   =================================== */
.footer {
  background: var(--color-navy);
  color: rgba(255, 255, 255, 0.8);
  padding-top: 56px;
}

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

.footer__logo {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__desc {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer__badges {
  display: flex;
  gap: 16px;
}

.footer__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer__badge:hover,
.footer__badge:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.footer__badge:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.6);
  outline-offset: 4px;
  border-radius: 4px;
}

.footer__badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer__badge:hover .footer__badge-icon,
.footer__badge:focus-visible .footer__badge-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.footer__badge-label {
  font-size: 11px;
  line-height: 1;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.footer__links h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.footer__links li {
  margin-bottom: 8px;
}

.footer__links a {
  font-size: 13px;
  transition: opacity 0.2s;
}

.footer__links a:hover {
  opacity: 0.7;
}

.footer__copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 16px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
}

/* ===================================
   Floating CTA
   =================================== */
.floating-cta {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--color-accent);
  color: #fff;
  padding: 14px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 90;
  transition: transform 0.2s, opacity 0.2s;
  min-height: 44px;
}

.floating-cta:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ===================================
   Responsive — Tablet (768px)
   =================================== */
@media (max-width: 768px) {
  :root {
    --header-height: 56px;
  }

  .header__nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s;
    z-index: -1;
  }

  .header__nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .header__nav-list {
    flex-direction: column;
    gap: 16px;
  }

  .header__cta {
    display: none;
  }

  .header__menu-btn {
    display: block;
  }

  .hero {
    min-height: 360px;
  }

  .hero__inner {
    flex-direction: column;
    padding-top: 40px;
    padding-bottom: 40px;
    gap: 28px;
  }

  .hero__title {
    font-size: 26px;
  }

  .hero__features {
    flex-direction: row;
    gap: 20px;
  }

  .hero__feature-icon {
    width: 40px;
    height: 40px;
  }

  .section-title {
    font-size: 21px;
    margin-bottom: 32px;
  }

  .featured__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .signs__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .popular__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .popular__grid .popular__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
  }

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

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

  .provider__grid .provider__card:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    margin: 0 auto;
  }

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

  .area__map {
    max-width: 300px;
    margin: 0 auto;
  }

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

  .flow__arrow {
    padding-top: 0;
    transform: rotate(90deg);
  }

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

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

  .form__input,
  .form__textarea,
  .form__select {
    font-size: 16px;
  }

  .header__nav-list a {
    padding: 12px 20px;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* ===================================
   Responsive — Mobile (480px)
   =================================== */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  .hero__title {
    font-size: 22px;
  }

  .hero__sub {
    font-size: 13px;
  }

  .hero__buttons {
    flex-direction: column;
  }

  .hero__features {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-title {
    font-size: 19px;
    margin-bottom: 28px;
  }

  .featured {
    padding: 48px 0;
  }

  .featured__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .featured__card {
    display: flex;
    align-items: center;
    text-align: left;
    padding: 16px;
    gap: 16px;
  }

  .featured__card-icon {
    margin: 0;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
  }

  .featured__card-title {
    font-size: 14px;
    margin-bottom: 4px;
  }

  .featured__card-text {
    font-size: 12px;
  }

  .signs {
    padding: 48px 0;
  }

  .signs__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .signs__card {
    display: flex;
    align-items: center;
    text-align: left;
  }

  .signs__card-img {
    width: 120px;
    min-width: 120px;
    height: 100px;
  }

  .signs__card-title {
    font-size: 14px;
    padding: 8px 12px 4px;
  }

  .signs__card-text {
    font-size: 12px;
    padding: 0 12px 8px;
  }

  .popular {
    padding: 48px 0;
  }

  .popular__header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }

  .popular__grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .popular__grid .popular__card:last-child {
    max-width: 100%;
  }

  .cost {
    padding: 48px 0;
  }

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

  .cost__table th,
  .cost__table td {
    padding: 10px 12px;
    font-size: 13px;
  }

  .provider {
    padding: 48px 0;
  }

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

  .provider__grid .provider__card:last-child {
    max-width: 100%;
  }

  .area {
    padding: 48px 0;
  }

  .area__tabs {
    gap: 6px;
  }

  .area__tab {
    padding: 10px 14px;
    font-size: 13px;
    min-height: 44px;
  }

  .flow {
    padding: 48px 0;
  }

  .faq {
    padding: 48px 0;
  }

  .faq__question {
    font-size: 14px;
    padding: 16px 32px 16px 0;
  }

  .footer__links {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .floating-cta {
    bottom: 12px;
    right: 12px;
    padding: 14px 20px;
    font-size: 13px;
    min-height: 44px;
  }

  .breadcrumb {
    padding: 10px 0;
  }

  .cta-block {
    padding: 48px 0;
  }

  .cta-block__title {
    font-size: 19px;
  }
}

/* ========== Breadcrumb ========== */

.breadcrumb {
  padding: 12px 0;
  font-size: 13px;
  color: var(--color-text-light);
}

.breadcrumb__list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
  margin: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
}

.breadcrumb__item + .breadcrumb__item::before {
  content: ">";
  margin: 0 8px;
  color: var(--color-border);
}

.breadcrumb__item a {
  color: var(--color-text-light);
  text-decoration: none;
  transition: color 0.2s;
}

.breadcrumb__item a:hover {
  color: var(--color-navy);
}

.breadcrumb__item[aria-current="page"] {
  color: var(--color-text);
}

/* ========== CTA Block ========== */

.cta-block {
  padding: 72px 0;
  background: var(--color-navy);
  text-align: center;
  color: #fff;
}

.cta-block__title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-block__text {
  font-size: 14px;
  margin-bottom: 28px;
  opacity: 0.85;
}

.cta-block__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-block__phone {
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.cta-block__phone:hover {
  opacity: 0.8;
}

/* ===================================
   Utility Extensions
   =================================== */
.container--narrow {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title--left {
  text-align: left;
}

.btn--lg {
  padding: 16px 36px;
  font-size: 16px;
}

.btn--block {
  display: block;
  width: 100%;
}

.section-block {
  padding: 48px 0;
}

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

/* ===================================
   Page Header (B-2)
   =================================== */
.page-header {
  background: var(--color-bg-gray);
  padding: 40px 0;
}

.page-header__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.5;
  margin-bottom: 8px;
}

.page-header__meta {
  font-size: 13px;
  color: var(--color-text-light);
}

.page-header__meta time {
  margin-right: 8px;
}

/* ===================================
   Article Body (B-3)
   =================================== */
.article-body {
  max-width: 800px;
  padding: 48px 0;
}

.article-body h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.5;
  margin: 48px 0 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-accent);
}

.article-body h2:first-child {
  margin-top: 0;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.5;
  margin: 36px 0 16px;
  padding-left: 12px;
  border-left: 3px solid var(--color-accent);
}

.article-body h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-navy);
  margin: 28px 0 12px;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.article-body ul,
.article-body ol {
  padding-left: 24px;
  margin-bottom: 20px;
  list-style: revert;
}

.article-body ul li,
.article-body ol li {
  margin-bottom: 8px;
  line-height: 1.8;
  font-size: 15px;
}

.article-body blockquote {
  border-left: 3px solid var(--color-accent);
  padding: 16px 20px;
  margin: 24px 0;
  background: var(--color-bg-gray);
  border-radius: 0 8px 8px 0;
  color: var(--color-text-light);
  font-size: 14px;
  line-height: 1.8;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-body table th,
.article-body table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
}

.article-body table thead th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

.article-body table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.article-body table tbody tr:last-child {
  border-bottom: none;
}

.article-body table tbody td:first-child {
  font-weight: 700;
  color: var(--color-navy);
}

.article-body a {
  color: var(--color-navy);
  text-decoration: underline;
  transition: color 0.2s;
}

.article-body a:hover {
  color: var(--color-accent);
}

.article-body strong {
  font-weight: 700;
  color: var(--color-navy);
}

.article-body img {
  border-radius: 8px;
  margin: 24px 0;
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 40px 0;
}

/* ===================================
   TOC — Table of Contents (B-4)
   =================================== */
.toc {
  background: var(--color-bg-gray);
  border-radius: 8px;
  padding: 24px;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.toc__heading {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.toc__list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc;
}

.toc__item {
  counter-increment: toc;
  margin-bottom: 0;
}

.toc__item a {
  display: block;
  padding: 8px 0 8px 24px;
  font-size: 13px;
  color: var(--color-text-light);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  position: relative;
}

.toc__item a::before {
  content: counter(toc) ".";
  position: absolute;
  left: 4px;
  color: inherit;
}

.toc__item a:hover {
  color: var(--color-navy);
}

.toc__item.is-active a {
  color: var(--color-navy);
  font-weight: 700;
  border-left-color: var(--color-accent);
}

/* ===================================
   Data Table (B-5)
   =================================== */
.data-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.data-table th,
.data-table td {
  padding: 14px 20px;
  text-align: left;
  font-size: 14px;
}

.data-table thead th {
  background: var(--color-navy);
  color: #fff;
  font-weight: 700;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody td:first-child {
  font-weight: 700;
  color: var(--color-navy);
}

.data-table--striped tbody tr:nth-child(even) {
  background: var(--color-bg-gray);
}

.data-table--compact th,
.data-table--compact td {
  padding: 10px 14px;
  font-size: 13px;
}

/* ===================================
   Info Banner (B-8)
   =================================== */
.info-banner {
  background: var(--color-bg-gray);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin: 24px 0;
}

.info-banner__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
}

.info-banner__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-banner__links li {
  margin-bottom: 4px;
}

.info-banner__links a {
  color: var(--color-navy);
  font-size: 14px;
  text-decoration: underline;
  transition: color 0.2s;
}

.info-banner__links a:hover {
  color: var(--color-accent);
}

.info-banner__text {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.8;
}

.info-banner--warning {
  border-left-color: #c0392b;
}

.info-banner--tip {
  border-left-color: var(--color-navy);
}

/* ===================================
   Case Card (B-7)
   =================================== */
.case-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  margin: 24px 0;
}

.case-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
}

.case-card__label {
  display: inline-block;
  background: var(--color-navy);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 4px;
}

.case-card__meta {
  font-size: 13px;
  color: var(--color-text-light);
}

.case-card__body {
  padding: 20px;
}

.case-card__body .data-table-wrap {
  margin: 0;
}

.case-card__note {
  padding: 0 20px 20px;
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ===================================
   FAQ — Lower Page Variant
   =================================== */
.faq--simple {
  padding: 0;
}

.faq--simple .faq__list {
  max-width: none;
}

.faq--dl {
  margin: 24px 0;
}

.faq--dl dt {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  padding: 16px 0 8px;
  border-bottom: none;
}

.faq--dl dt::before {
  content: "Q.";
  color: var(--color-navy);
  margin-right: 8px;
  font-weight: 700;
}

.faq--dl dd {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.8;
  padding: 0 0 16px 28px;
  margin: 0;
  border-bottom: 1px solid var(--color-border);
}

/* ===================================
   Form (B-9)
   =================================== */
.form {
  max-width: 640px;
  margin: 0 auto;
}

.form__group {
  margin-bottom: 24px;
}

.form__label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.form__required {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #c0392b;
  margin-left: 4px;
}

.form__input,
.form__textarea,
.form__select {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.2s;
  min-height: 44px;
}

.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--color-navy);
}

.form__textarea {
  min-height: 160px;
  resize: vertical;
  line-height: 1.8;
}

.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}

.form__help {
  display: block;
  font-size: 12px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.form__error {
  display: block;
  font-size: 12px;
  color: #c0392b;
  margin-top: 4px;
}

.form__input--error,
.form__textarea--error,
.form__select--error {
  border-color: #c0392b;
}

.form__radio-group,
.form__checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.form__radio-group--column {
  flex-direction: column;
}

.form__radio-label,
.form__checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 6px;
  transition: background 0.2s;
}

.form__radio-label:hover,
.form__checkbox-label:hover {
  background: var(--color-bg-gray);
}

/* ===================================
   Pagination (B-10)
   =================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination__page {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pagination__page:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-navy);
  color: var(--color-navy);
}

.pagination__page.is-current {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  pointer-events: none;
}

.pagination__prev,
.pagination__next {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}

.pagination__prev:hover,
.pagination__next:hover {
  background: var(--color-bg-gray);
  border-color: var(--color-navy);
}

.pagination__prev.is-disabled,
.pagination__next.is-disabled {
  color: var(--color-border);
  pointer-events: none;
}

.pagination__ellipsis {
  width: 40px;
  text-align: center;
  color: var(--color-text-light);
  font-size: 14px;
}

/* ===================================
   Related Articles (B-11)
   =================================== */
.related-articles {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.related-articles__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 24px;
}

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

.related-articles__card {
  display: block;
  text-decoration: none;
  transition: opacity 0.2s;
}

.related-articles__card:hover {
  opacity: 0.8;
}

.related-articles__card-img {
  width: 100%;
  height: 160px;
  border-radius: 8px;
  margin-bottom: 12px;
}

.related-articles__card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.6;
}

/* ===================================
   Article Layout — 2-Column
   =================================== */
.article-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 40px;
  align-items: start;
  padding: 0 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.article-layout__main {
  min-width: 0;
}

.article-layout__sidebar {
  position: relative;
}

/* ===================================
   Responsive — Lower Page Components
   =================================== */
@media (max-width: 768px) {
  .page-header {
    padding: 32px 0;
  }

  .page-header__title {
    font-size: 21px;
  }

  .article-body h2 {
    font-size: 19px;
    margin: 40px 0 16px;
  }

  .article-body h3 {
    font-size: 16px;
    margin: 28px 0 12px;
  }

  .article-body p,
  .article-body ul li,
  .article-body ol li {
    font-size: 14px;
  }

  .article-body table th,
  .article-body table td {
    padding: 10px 14px;
    font-size: 13px;
  }

  .article-layout {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0 20px;
  }

  .article-layout__sidebar {
    order: -1;
  }

  .toc {
    position: static;
    margin-bottom: 24px;
  }

  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .data-table th,
  .data-table td {
    padding: 10px 14px;
    font-size: 13px;
  }

  .case-card__header {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .page-header {
    padding: 24px 0;
  }

  .page-header__title {
    font-size: 19px;
  }

  .article-body {
    padding: 32px 0;
  }

  .article-body h2 {
    font-size: 18px;
    margin: 32px 0 14px;
  }

  .article-body h3 {
    font-size: 15px;
    margin: 24px 0 10px;
  }

  .article-body blockquote {
    padding: 12px 16px;
  }

  .toc {
    padding: 16px;
  }

  .toc__item a {
    font-size: 12px;
    padding: 6px 0 6px 20px;
  }

  .related-articles {
    padding: 32px 0;
  }

  .related-articles__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .related-articles__card-img {
    height: 140px;
  }

  .pagination {
    gap: 4px;
    padding: 32px 0;
  }

  .pagination__page {
    width: 36px;
    height: 36px;
    font-size: 13px;
  }

  .pagination__prev,
  .pagination__next {
    height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .info-banner {
    padding: 16px;
  }

  .form__input,
  .form__textarea,
  .form__select {
    font-size: 16px;
  }

  .btn--lg {
    padding: 14px 28px;
    font-size: 15px;
  }
}

/* ===================================
   Responsive — 1024px
   =================================== */
@media (max-width: 1024px) {
  .popular__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .provider__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .related-articles__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===================================
   PR Disclosure (広告表記)
   =================================== */
.pr-disclosure {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff8e6;
  border: 1px solid var(--color-accent);
  border-radius: 6px;
  padding: 10px 16px;
  margin: 24px 0;
  font-size: 13px;
  color: var(--color-text-light);
}

.pr-badge {
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.pr-disclosure__note {
  flex: 1;
  line-height: 1.6;
}

.pr-disclosure__note a {
  color: var(--color-navy);
  text-decoration: underline;
}

.pr-disclosure__note a:hover {
  color: var(--color-accent-hover);
}

@media (max-width: 480px) {
  .pr-disclosure {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 12px;
  }
}

/* ===================================
   Responsive — 375px
   =================================== */
@media (max-width: 375px) {
  .hero__title {
    font-size: 20px;
  }

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

  .faq__question {
    padding: 14px 36px 14px 16px;
  }

  .area__tab {
    padding: 8px 10px;
    font-size: 12px;
  }
}
