/* ============================================================================
 * 看護職のみちさき案内 (michisakiannai) - メインスタイルシート
 * ブランドコンセプト：「静かなキャリア案内所」
 * モチーフ：標識・道しるべ / トークン化・レスポンシブ・アクセシビリティ対応
 * ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Outfit:wght@600;700&display=swap');

:root {
  /* ブランドコアカラー (デザイントークン) */
  --brand-dark: #0E6F66;       /* 濃青緑: CTA, 重要強調, 優先見出し */
  --brand-main: #2A9D94;       /* 主色青緑: アイコン, 装飾, リンク */
  --brand-mint: #B9DCD3;       /* 淡いミント: 枠線, セクション区切り */
  --brand-bg: #E9F3F1;         /* 薄青緑背景: 6分類セクション等 */
  --brand-offwhite: #FAF8F3;   /* オフホワイト: 背景差分・カード */
  --brand-beige: #EDE6D6;      /* 補助ベージュ: 標識アクセント等 */

  /* 役割別セマンティクスカラー */
  --primary-color: var(--brand-dark);
  --primary-hover: #074741;
  --link-color: #2A9D94;
  --link-hover: #0E6F66;
  --heading-color: #0c4a44;
  --text-main: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --surface-color: #ffffff;
  --surface-border: #d2e4e0;

  /* バッジステータス表示 */
  --badge-yes-bg: #e6f4f1;
  --badge-yes-text: #0E6F66;
  --badge-partial-bg: #fffbeb;
  --badge-partial-text: #92400e;
  --badge-no-bg: #f1f5f9;
  --badge-no-text: #64748b;
  --badge-unknown-bg: #f3e8ff;
  --badge-unknown-text: #6b21a8;

  /* 角丸・影・枠線トークン */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-subtle: 0 2px 8px rgba(14, 111, 102, 0.05);
  --shadow-card: 0 4px 12px rgba(14, 111, 102, 0.06);
  --shadow-hover: 0 6px 18px rgba(14, 111, 102, 0.10);

  /* タイポグラフィ */
  --font-sans: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', 'Noto Sans JP', sans-serif;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--brand-offwhite);
  color: var(--text-main);
  line-height: 1.75;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* リンクルール (非リンク見出しと明確に分離) */
a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brand-main);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

/* ロゴ・ブランドロックアップ */
.site-logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
  color: inherit;
}

.site-logo-link:hover .site-name {
  color: var(--brand-main);
}

/* Family Entrance Mark: themeable currentColor signpost mark (replaces the
   former hardcoded-color raster PNG symbol). Color follows the surrounding
   text color via currentColor, so it re-themes automatically wherever the
   header lockup's color changes (e.g. on hover, or per profession). */
.brand-entrance-mark {
  flex-shrink: 0;
  color: var(--brand-dark);
  transition: color 0.2s ease;
}

.site-logo-link:hover .brand-entrance-mark {
  color: var(--brand-main);
}

.site-title-group {
  display: flex;
  flex-direction: column;
}

.site-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.2;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.site-subtag {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 1rem;
}

.main-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.925rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--brand-dark);
  background: var(--brand-bg);
  text-decoration: none;
  font-weight: 700;
}

/* Breadcrumb */
.breadcrumb {
  padding: 0.85rem 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  gap: 0.5rem;
}

.breadcrumb li::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--text-light);
}

.breadcrumb li:last-child::after {
  content: "";
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--brand-dark);
}

/* Main Content Layout */
.site-main {
  flex: 1;
  padding: 1.5rem 0 3.5rem;
}

/* Top Hero Section (コンパクト・静かな案内所テーマ)
   Family Visual Grammar v0.1 対応: Root の開放的な Hero バンドに合わせ、
   Hero 領域は縁取り・影のある「白カード」ではなく、背景に溶け込む
   静かな帯として扱う（3軸カードグリッド等、他のカード表現は維持） */
.hero-wrapper {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 1.5rem 0 2.25rem;
  margin-bottom: 1.5rem;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.hero-content {
  flex: 1;
  max-width: 620px;
}

.hero-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-dark);
  background: var(--brand-bg);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--brand-mint);
}

.hero-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--heading-color);
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.01em;
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin-bottom: 1.5rem;
}

.hero-visual {
  flex-shrink: 0;
  width: 320px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-visual-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.hero-visual-img {
  max-width: 100%;
  max-height: 210px;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 6px 16px rgba(14, 111, 102, 0.09));
  display: block;
}

/* Inner (非TOP) ページの冒頭ヒーローセクション。TOPの .hero-wrapper とは別コンポーネント
   （service_list.php / service_detail.php / method_detail.php / guide_detail.php /
   policy_detail.php の5テンプレートで共通使用）。.hero-title / .hero-subtitle は
   TOPのHeroと共有トークンで、H1 > Lead の階層を自動的に踏襲する。 */
.hero-card {
  margin-bottom: 1.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin: 0.75rem 0 1.25rem;
  padding: 0.9rem 1.1rem;
  background: var(--brand-bg);
  border: 1px solid var(--brand-mint);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text-main);
}

.meta-item strong {
  color: var(--brand-dark);
  margin-right: 0.3rem;
}

/* Section Container & Section Headings */
.section-wrapper {
  margin-bottom: 2rem;
}

.section-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-subtle);
}

/* 背景リズムセクション (6分類専用の淡色背景) */
.section-pale-bg {
  background: var(--brand-bg);
  border: 1px solid var(--brand-mint);
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--heading-color);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* 6分類カードグリッド */
.method-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

/* ============================================================
   Card Role — Shared Visual Base (Family Design System Phase 2 cleanup)
   7 near-duplicate card components share the same white surface /
   var(--radius-md) rounding, and the 3 that act as whole-card links
   (method/service/related) additionally share the same hover-lift
   transition. Consolidated here once so those tokens live in a single
   place; each class below keeps only its own unique layout/padding/
   color rules and can still override this base (declared afterward,
   same specificity, standard cascade order).
   .system-detail-card is intentionally excluded from the radius-md
   group — it's a flat inset list item (var(--radius-sm), left-border
   accent, no shadow/hover), a different visual role from the other 6.
   NOT renamed: guide_detail.php's .example-card__* BEM submodule
   (case-study cards) and TOP's .example-card (3-axis nav card) both
   key off the bare .example-card selector today. Disambiguating that
   into two separate base classes is a larger, riskier rename left for
   a future pass — see docs/pm-handoff/FAMILY-DESIGN-PHASE2 notes.
   ============================================================ */
.method-card,
.service-card,
.feature-card,
.related-card,
.example-card,
.checklist-card {
  background: #ffffff;
  border-radius: var(--radius-md);
}

.method-card,
.service-card,
.related-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.method-card:hover,
.service-card:hover,
.related-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: var(--brand-main);
}

.method-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  text-decoration: none !important;
  box-shadow: var(--shadow-subtle);
  position: relative;
}

.method-card:hover {
  transform: translateY(-3px);
  border-color: var(--brand-main);
  box-shadow: var(--shadow-hover);
}

.method-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}

.method-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
}

.method-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  line-height: 1.35;
  transition: color 0.2s ease;
}

.method-card:hover .method-card-title {
  color: var(--brand-main);
}

.method-card-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.method-card-arrow {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brand-main);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* 当サイトの特長 3カード */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: #ffffff;
  border: 1px solid var(--brand-mint);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-subtle);
}

.feature-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.feature-card-icon {
  width: 36px;
  height: 36px;
  background: var(--brand-bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-dark);
}

.feature-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--heading-color); /* 非リンク見出し色 */
}

.feature-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* CTA Button (単色・落ち着いたブランド青緑) */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  font-size: 0.975rem;
  font-weight: 700;
  color: #ffffff !important;
  background-color: var(--brand-dark);
  border: 1px solid var(--brand-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 6px rgba(14, 111, 102, 0.2);
  transition: all 0.2s ease;
  text-decoration: none !important;
  cursor: pointer;
}

.cta-button:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(14, 111, 102, 0.3);
  color: #ffffff !important;
}

/* Service Detail Badges & Data Tables */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.badge-yes { background: var(--badge-yes-bg); color: var(--badge-yes-text); }
.badge-partial { background: var(--badge-partial-bg); color: var(--badge-partial-text); }
.badge-no { background: var(--badge-no-bg); color: var(--badge-no-text); }
.badge-unknown { background: var(--badge-unknown-bg); color: var(--badge-unknown-text); }

.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.data-table th,
.data-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--surface-border);
}

.data-table th {
  background: var(--brand-offwhite);
  font-weight: 600;
  color: var(--heading-color);
  width: 32%;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: none;
}

/* 法的・編集上の注記コールアウト (guide_detail.php ~3箇所 / method_detail.php ~2箇所 /
   service_detail.php ~2箇所で使用)。.example-card--warning / .checklist-card--alert
   と同じ amber (警告色) トークンを流用し、既存の CALLOUT/KEY_POINT 視覚言語と揃える。 */
.notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #d97706;
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 0.75rem 0;
  color: var(--text-main);
  font-size: 0.9rem;
  line-height: 1.7;
}

.notice-box strong {
  color: #92400e;
}

.notice-box p {
  margin: 0 0 0.6rem;
}

.notice-box p:last-child {
  margin-bottom: 0;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  background: #ffffff;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-subtle);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-main);
  box-shadow: var(--shadow-hover);
}

.service-card h2,
.service-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--heading-color);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  flex: 1;
}

/* Footer (淡青緑背景・明確な視覚区分) */
.site-footer {
  background-color: #f2f8f7;
  color: var(--text-main);
  border-top: 1px solid var(--brand-mint);
  padding: 2.25rem 0 2rem;
  margin-top: 3rem;
  font-size: 0.875rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.site-footer__brand {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 0.35rem;
}

.site-footer__tagline {
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.site-footer__legal-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__legal-nav a {
  color: var(--brand-dark);
  font-weight: 500;
}

.site-footer__legal-nav a:hover {
  color: var(--brand-main);
  text-decoration: underline;
}

/* Family Root Return: 職種トップ復帰(ヘッダーロゴ)とは別の、ファミリー全体トップへの導線 */
.site-footer__root-link {
  font-size: 0.875rem;
  margin: 0.5rem 0 0;
}

.site-footer__root-link a {
  color: var(--brand-dark);
  font-weight: 600;
}

.site-footer__root-link a:hover {
  color: var(--brand-main);
  text-decoration: underline;
}

.site-footer__company,
.site-footer__contact {
  margin: 0;
  color: var(--text-muted);
}

.site-footer__company a {
  color: var(--brand-dark);
}

.site-footer__copyright {
  font-size: 0.825rem;
  color: var(--text-muted);
  border-top: 1px solid var(--brand-mint);
  padding-top: 1rem;
  margin: 0.5rem 0 0;
}

/* モバイルレスポンシブ (max-width: 768px) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden;
  }

  .container {
    padding: 0 0.6rem;
    max-width: 100%;
  }

  .site-header {
    width: 100%;
    overflow: hidden;
  }

  .header-inner {
    /* Fixed height:52px + flex-wrap:nowrap previously forced every header
       child onto one unbreakable row — safe with 2 nav items, but Primary
       Nav now carries 4 (トップ/サービス一覧/仕事の探し方/基礎ガイド), so a
       fixed-height nowrap row is a confirmed overflow risk at narrow SP
       widths (documented in Root's own repo comments as a risk pattern to
       avoid). Allow wrapping and let height grow with content instead. */
    min-height: 52px;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    gap: 0.5rem;
    padding: 0.4rem 0;
    width: 100%;
    max-width: 100%;
  }

  .site-logo-link {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    min-width: 0;
    flex: 0 0 auto;
  }

  .brand-entrance-mark {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .site-title-group {
    min-width: 0;
    flex: 0 0 auto;
  }

  .site-name {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    line-height: 1.2;
  }

  .site-subtag {
    display: none; /* モバイルは標識マーク＋サイト名に絞り高さを抑制 */
  }

  .main-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    flex: 1 1 100%;
    margin-left: 0;
  }

  .main-nav a {
    font-size: 0.725rem;
    padding: 0.2rem 0.4rem;
    white-space: nowrap;
  }

  .hero-wrapper {
    padding: 1.25rem 0 1.75rem;
  }

  .hero-inner {
    flex-direction: column;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 1.45rem;
  }

  .hero-visual {
    width: 100%;
    max-width: 240px;
    margin: 0.5rem auto 0;
  }

  .method-grid,
  .features-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .section-pale-bg,
  .section-card {
    padding: 1.25rem 1rem;
  }

  .site-footer__legal-nav ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
  }

  .site-footer__copyright {
    font-size: 0.8rem;
  }
}

/* ====================================================
   Affiliate Placement UI Component (静かなキャリア案内所スタイル)
   ==================================================== */
.affiliate-placement {
  margin: 1.75rem 0;
  padding: 1rem 1.25rem;
  background-color: #f4f8f7;
  border: 1px solid var(--brand-mint, #B9DCD3);
  border-radius: var(--radius-md, 8px);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  box-sizing: border-box;
}

.affiliate-placement__label {
  align-self: flex-start;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--brand-dark, #0E6F66);
  background-color: rgba(14, 111, 102, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.affiliate-placement__content {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Placement Variants */
.affiliate-placement--text {
  padding: 0.85rem 1.25rem;
  align-items: flex-start;
}

.affiliate-placement--horizontal {
  width: 100%;
  max-width: 360px;
  margin: 1.75rem auto;
}

.affiliate-placement--rectangle {
  width: 100%;
  max-width: 400px;
  margin: 1.75rem auto;
}

/* Local Dummy Ad Component (CSS-only, 0 external requests) */
.dummy-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: #ffffff;
  border: 1px dashed #b5d5cc;
  border-radius: 6px;
  color: var(--brand-dark, #0E6F66);
  font-size: 0.85rem;
  font-weight: 500;
  box-sizing: border-box;
  padding: 0.5rem;
  user-select: none;
}

.dummy-ad--text {
  width: 100%;
  padding: 0.75rem 1rem;
  align-items: flex-start;
  text-align: left;
  border-style: solid;
  border-color: #d1e3de;
  color: #1e3e38;
}

.dummy-ad--horizontal {
  width: 234px;
  height: 60px;
  max-width: 100%;
}

.dummy-ad--rectangle {
  width: 300px;
  height: 250px;
  max-width: 100%;
}

.dummy-ad__dimensions {
  font-size: 0.75rem;
  color: var(--text-muted, #555555);
  margin-top: 0.2rem;
}

/* ====================================================
   Phase 3b UI Foundation Component Classes
   ==================================================== */
.editorial-text {
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--text-main);
}

.editorial-grid {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.system-detail-card {
  padding: 1rem 1.25rem;
  background: var(--brand-bg);
  border-left: 4px solid var(--brand-dark);
  border-radius: var(--radius-sm);
}

.system-detail-card__name {
  font-weight: 700;
  color: var(--brand-dark);
  font-size: 0.95rem;
}

.system-detail-card__desc {
  font-size: 0.9rem;
  color: var(--text-main);
  margin-top: 0.25rem;
  line-height: 1.6;
}

.misconception-grid {
  display: grid;
  gap: 1rem;
}

.example-grid {
  display: grid;
  gap: 1rem;
}

.example-card {
  padding: 1.25rem;
  background: var(--brand-offwhite);
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-mint);
}

.example-card--warning {
  background: #fffbeb;
  border-color: #fef3c7;
}

.example-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.example-card__title {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  color: var(--brand-dark);
}

.example-card__title--warning {
  color: #b45309;
}

.example-card__subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.example-card__body {
  font-size: 0.9rem;
  color: var(--text-main);
  margin: 0.5rem 0 0.75rem 0;
}

.example-card__notice {
  font-size: 0.85rem;
  background: #ffffff;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--brand-mint);
  margin-bottom: 0.75rem;
  color: var(--text-muted);
}

.example-card__notice--warning {
  border-color: #fde68a;
  color: #92400e;
}

.example-card__tags {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.checklist-grid {
  display: grid;
  gap: 1rem;
}

.checklist-card {
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-mint);
}

.checklist-card--alert {
  background: #fff8f6;
  border-color: #fecdd3;
}

.checklist-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
}

.checklist-card__title--alert {
  color: #e11d48;
}

.checklist-card__body {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
}

.checklist-intro {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--brand-mint);
  text-decoration: none !important;
  color: inherit;
  transition: all 0.2s ease;
}

.related-card:hover {
  border-color: var(--brand-main);
  background: var(--brand-bg);
  transform: translateY(-2px);
}

.related-card__title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--brand-dark);
}

.related-card__desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.offering-list {
  display: grid;
  gap: 0.75rem;
}

.offering-item {
  font-size: 0.85rem;
  padding: 0.75rem 1rem;
  background: var(--brand-offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-mint);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-nav-footer {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.official-source-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.official-source-list {
  list-style: none;
  padding: 0;
}

.official-source-item {
  margin-bottom: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--brand-offwhite);
  border-radius: var(--radius-sm);
  border: 1px solid var(--brand-mint);
}

.official-source-title {
  font-weight: 600;
  color: var(--brand-dark);
}

.official-source-publisher {
  font-size: 0.85rem;
  font-weight: normal;
  color: var(--text-muted);
}

.official-source-meta {
  font-size: 0.85rem;
  margin-top: 0.25rem;
}

.official-source-date {
  margin-left: 1rem;
  color: var(--text-muted);
}

.official-source-last-check {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: right;
}

.policy-content {
  line-height: 1.85;
  font-size: 0.95rem;
  color: var(--text-main);
}

.service-card__meta {
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.service-card__action {
  margin-top: 1rem;
}

/* Primary CTA 広告表示バッジ（Cross-Site Safety Patch P1a）。
   .affiliate-placement__label と同じ視覚言語を、CTAボタン直上の
   単独badgeとして流用する。 */
.cta-ad-label {
  display: block;
  width: fit-content;
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--brand-dark, #0E6F66);
  background-color: rgba(14, 111, 102, 0.08);
  border-radius: 4px;
  padding: 0.15rem 0.45rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  margin-bottom: 0.4rem;
}

.service-card__link {
  font-weight: 600;
  font-size: 0.9rem;
}

/* Skip Navigation Link (Keyboard Accessibility) */
.skip-link {
  position: absolute;
  top: -999px;
  left: 1rem;
  z-index: 10000;
  padding: 0.6rem 1.2rem;
  background: var(--brand-dark, #0E6F66);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0 0 6px 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: top 0.15s ease-in-out;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 0;
  outline: 3px solid var(--brand-main, #2A9D94);
  outline-offset: 2px;
}

/* Scrollable Table Wrapper Keyboard Access */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 1.25rem;
  border-radius: var(--radius-sm, 6px);
}

.table-wrapper:focus,
.table-wrapper:focus-visible {
  outline: 2px solid var(--brand-dark, #0E6F66);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(14, 111, 102, 0.2);
}




