@charset "UTF-8";

/* ==========================================================================
   Variables & Themes
   ========================================================================== */
:root {
  /* Colors - Standard Theme */
  --c-bg-body: #ffffff;
  --c-text-main: #333333;
  --c-primary: #0076a8;
  /* Link Color (Blue) */
  --c-secondary: #289672;
  /* Menu Line / Accent Color (Green) */
  --c-menu-bg: #289672;
  /* Header Menu Background (Green) */
  --c-accent: #e60012;
  --c-bg-header: #ffffff;
  --c-border: #dddddd;
  --c-bg-footer: #D3EFE3;
  /* Footer Background (Light Green) */
  --c-text-footer: #333333;
  /* Footer Text */

  /* Typography */
  --font-base: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
  --size-base: 1rem;
  /* 16px */

  /* Layout */
  --width-container: 1080px;
  --header-height: auto;
}

[data-theme="black"] {
  --c-bg-body: #000000;
  --c-text-main: #ffffff;
  --c-primary: #ffff00;
  --c-secondary: #00ff00;
  --c-accent: #ff0000;
  --c-bg-header: #333333;
  --c-border: #ffffff;
  --c-bg-footer: #000000;
  --c-text-footer: #ffffff;
}

[data-theme="blue"] {
  --c-bg-body: #e0f2f1;
  --c-text-main: #003366;
  --c-primary: #0055aa;
  --c-secondary: #007777;
  --c-accent: #cc3300;
  --c-bg-header: #cceeff;
  --c-border: #0055aa;
  --c-bg-footer: #003366;
  --c-text-footer: #ffffff;
}

[data-font-size="large"] {
  --size-base: 1.25rem;
  /* 20px */
}

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

html {
  font-size: 100%;
  /* Default 16px */
}

body {
  font-family: var(--font-base);
  font-size: var(--size-base);
  color: var(--c-text-main);
  background-color: var(--c-bg-body);
  line-height: 1.6;
  margin: 0;
  padding: 0;
  transition: background-color 0.3s, color 0.3s;
}

a {
  color: var(--c-primary);
  text-decoration: underline;
}

a:hover,
a:focus {
  text-decoration: none;
  opacity: 0.8;
}

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

/* ==========================================================================
   Accessibility Utilities
   ========================================================================== */
/* Skip Link */
.skip-link {
  position: absolute;
  top: -9999px;
  left: 0;
  background: var(--c-accent);
  color: #fff;
  padding: 10px 20px;
  z-index: 9999;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Visually Hidden */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

/* Header */
.header {
  width: 100%;
  background-color: #fff;
  border-bottom: 1px solid #e0e0e0;
  position: relative;
}

.header__util {
  background-color: #f0f0f0;
  padding: 5px 0;
  font-size: 0.875rem;
}

[data-theme="black"] .header__util {
  background-color: #222;
}

[data-theme="blue"] .header__util {
  background-color: #bbddff;
}

.util-inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.util-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.util-group a {
  text-decoration: none;
  color: #333;
  font-size: 0.9em;
  margin-left: 5px;
}

.util-group a:hover {
  text-decoration: underline;
}

.util-btn {
  border: 1px solid var(--c-border);
  background: #fff;
  color: #333;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 0.9em;
  border-radius: 4px;
}

.util-btn--current {
  background: #333;
  color: #fff;
  font-weight: bold;
}

/* Header Main */
.header__main {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

/* Logo Layout */
.logo {
  margin: 0;
  padding: 0;
  line-height: 1;
}

.logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  gap: 10px;
}

.logo img {
  height: 60px;
  width: auto;
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #333;
}

.logo-text__en {
  font-size: 2rem;
  font-weight: bold;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.1;
  letter-spacing: 0.05em;
  color: #333;
}

.logo-text__ja {
  font-size: 1rem;
  font-weight: normal;
  margin-top: 5px;
  color: #555;
}

[data-theme="black"] .logo-text__en,
[data-theme="black"] .logo-text__ja {
  color: #fff;
}

/* Global Nav */
.gnav {
  width: 100%;
  background: var(--c-menu-bg);
  margin-top: 10px;
}

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

.gnav__item {
  flex: 1;
  text-align: center;
  min-width: 120px;
  position: relative;
}

.gnav__link {
  display: block;
  color: #fff;
  text-decoration: none;
  padding: 15px 10px;
  font-weight: bold;
  border-right: 1px solid rgba(255, 255, 255, 0.3);
  transition: background 0.3s;
}

.gnav__link:hover,
.gnav__link:focus {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Dropdown Menu */
.gnav__sub {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  min-width: 200px;
  background-color: var(--c-menu-bg);
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 100;
  text-align: left;
}

.gnav__item:hover .gnav__sub,
.gnav__item:focus-within .gnav__sub {
  display: block;
}

.gnav__sub li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gnav__sub a {
  display: block;
  padding: 12px 15px;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
}

.gnav__sub a:hover,
.gnav__sub a:focus {
  background-color: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.main-content {
  padding: 40px 0;
  min-height: 60vh;
}

/* Footer */
.footer {
  background-color: var(--c-bg-footer);
  color: var(--c-text-footer);
  padding: 40px 0 20px;
  text-align: center;
}

.footer__links {
  margin-bottom: 20px;
}

.footer__link {
  color: var(--c-text-footer);
  text-decoration: none;
  font-size: 0.9rem;
  margin: 0 10px;
}

.footer__link:hover {
  text-decoration: underline;
}

.footer__address {
  margin-bottom: 20px;
  font-style: normal;
  line-height: 1.6;
}

.copyright {
  font-size: 0.8rem;
  opacity: 0.8;
}

/* ==========================================================================
   Page Specific
   ========================================================================== */
.hero {
  margin-bottom: 40px;
}

.hero img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  display: block;
}

.section-title {
  font-size: 1.8rem;
  border-left: 8px solid var(--c-secondary);
  padding-left: 15px;
  margin-bottom: 30px;
  margin-top: 30px;
}

/* News List */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  border-bottom: 1px solid var(--c-border);
  padding: 15px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 15px;
}

.news-date {
  font-weight: bold;
  color: #009683;
}

/* Topics Grid */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.topic-card {
  border: 1px solid var(--c-border);
  padding: 20px;
  border-radius: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--c-bg-body);
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.topic-title {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: var(--c-primary);
}

/* Breadcrumb */
.breadcrumb {
  background-color: transparent;
  padding: 10px 0 0 0;
  border-bottom: none;
  font-size: 0.9rem;
  margin-bottom: -30px;
}

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

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

.breadcrumb__item:not(:last-child)::after {
  content: ">";
  margin: 0 10px;
  color: #999;
}

.breadcrumb__link {
  text-decoration: none;
  color: var(--c-primary);
}

.breadcrumb__link:hover {
  text-decoration: underline;
}

/* Hamburger Button */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 200;
}

.hamburger-btn__line {
  display: block;
  width: 30px;
  height: 2px;
  background-color: #333;
  position: absolute;
  left: 5px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger-btn__line:nth-child(1) { top: 10px; }
.hamburger-btn__line:nth-child(2) { top: 19px; }
.hamburger-btn__line:nth-child(3) { top: 28px; }

.hamburger-btn.is-active .hamburger-btn__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.is-active .hamburger-btn__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

/* ==========================================================================
   Policy Block (施策名・事業名・取組名 セクション)
   ========================================================================== */

/* 外枠ブロック */
.policy-block {
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 48px;
  padding-bottom: 48px;
}

.policy-block:first-of-type {
  padding-top: 0;
}

.policy-block:last-of-type {
  padding-bottom: 20px;
}

/* メタ行（h2見出し） */
.policy-block__title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--c-text-main);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--c-border);
  margin: 0 0 20px 0;
}

/* ○施策名・事業名・取組名紹介 ボックス */
.policy-intro {
  border: 2px solid var(--c-primary);
  border-radius: 4px;
  margin-bottom: 30px;
}

.policy-intro__heading {
  background-color: var(--c-secondary);
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
  margin: 0;
  padding: 8px 16px;
}

[data-theme="black"] .policy-intro__heading {
  background-color: #444;
  border-bottom: 1px solid #fff;
}

[data-theme="blue"] .policy-intro__heading {
  background-color: var(--c-secondary);
}

.policy-intro__body {
  padding: 20px 24px;
}

.policy-intro__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.policy-intro__list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 12px;
  line-height: 1.7;
}

.policy-intro__list li::before {
  content: "・";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-text-main);
}

.policy-intro__list li:last-child {
  margin-bottom: 0;
}

/* 記事内ラベル（○〇〇 表記） */
.policy-intro__label {
  font-weight: bold;
  margin: 0 0 10px 0;
}

/* 画像エリア */
.policy-images {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: stretch;
}

.policy-images__item {
  flex: 0 0 calc(50% - 12px);
  max-width: calc(50% - 12px);
  display: flex;
  flex-direction: column;
}

.policy-images__item img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  display: block;
}

/* 参考・関連リンク */
.ref-block {
  padding: 24px;
  background-color: #f5f5f5;
  border-radius: 8px;
  margin-top: 20px;
}

[data-theme="black"] .ref-block {
  background-color: #222;
  border: 1px solid #555;
}

[data-theme="blue"] .ref-block {
  background-color: #cce8ff;
}

.ref-block__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ref-block__list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--c-border);
  font-size: 0.92rem;
  line-height: 1.6;
}

.ref-block__list li:last-child {
  border-bottom: none;
}

.ref-block__heading {
  font-size: 1.05rem;
  font-weight: bold;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-border);
}

.ref-block__note {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

[data-theme="black"] .ref-block__note {
  color: #aaa;
}

.policy-block__bureau {
  font-size: 0.9rem;
  color: #666;
  margin: -10px 0 20px;
  padding-left: 4px;
}

[data-theme="black"] .policy-block__bureau { color: #aaa; }
[data-theme="blue"]  .policy-block__bureau { color: #555; }

.policy-note {
  font-size: 0.85rem;
  color: #666;
  margin: 6px 0 0;
  line-height: 1.6;
}

[data-theme="black"] .policy-note { color: #aaa; }

.policy-images__caption {
  font-size: 0.85rem;
  color: #555;
  margin-top: 6px;
  line-height: 1.5;
}

[data-theme="black"] .policy-images__caption { color: #bbb; }

/* 帯スタイルのh2（緑背景・白文字） */
.policy-block__title--band {
  background-color: var(--c-secondary);
  color: #fff;
  padding: 10px 16px;
  margin-bottom: 1.2rem;
  border-bottom: none;
}

[data-theme="black"] .policy-block__title--band {
  background-color: #444;
}

[data-theme="blue"] .policy-block__title--band {
  background-color: var(--c-secondary);
}

/* 枠なし・背景透過のpolicy-introボックス */
.policy-intro--transparent {
  border: none;
  background: transparent;
  margin-bottom: 0;
}

/* 画像エリア上スペース */
.policy-images--spaced {
  margin-top: 2rem;
}

/* キャプション中央揃え */
.policy-images__caption--center {
  text-align: center;
}

/* 参考リンク＋部署名 横並び行 */
.policy-block__meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.9rem;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.policy-block__meta-row p {
  margin: 0;
  color: #555;
}

[data-theme="black"] .policy-block__meta-row p { color: #aaa; }
[data-theme="blue"]  .policy-block__meta-row p { color: #444; }

/* 部署名（右寄せ・画像上） */
.policy-block__bureau--right {
  text-align: right;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

[data-theme="black"] .policy-block__bureau--right { color: #aaa; }
[data-theme="blue"]  .policy-block__bureau--right { color: #444; }

/* ページ導入テキスト（h1直下の説明文） */
.page-intro {
  margin-bottom: 1.5rem;
}

/* h1直下アンカーリンクリスト */
.page-anchor-list {
  list-style: none;
  padding: 0;
  margin-bottom: 2rem;
}

.page-anchor-list li {
  margin-bottom: 0.4rem;
}

/* 3列画像レイアウト */
.policy-images--3col .policy-images__item {
  flex: 0 0 calc(33.333% - 16px);
  max-width: calc(33.333% - 16px);
}

@media (max-width: 768px) {
  .policy-images--3col .policy-images__item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* ==========================================================================
   Timeline Table – 国の取組 年表
   ========================================================================== */
.timeline-table-wrap {
  overflow-x: auto;
  margin: 0 0 40px;
  -webkit-overflow-scrolling: touch;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  line-height: 1.75;
  min-width: 640px;
}

.timeline-table thead tr {
  background-color: var(--c-secondary);
  color: #fff;
}

[data-theme="black"] .timeline-table thead tr {
  background-color: #444;
}

[data-theme="blue"] .timeline-table thead tr {
  background-color: var(--c-secondary);
}

.timeline-table th,
.timeline-table td {
  border: 1px solid var(--c-border);
  padding: 14px 16px;
  vertical-align: top;
  text-align: left;
}

.timeline-table th {
  font-weight: bold;
  white-space: nowrap;
}

.timeline-table tbody tr:nth-child(even) {
  background-color: #f7faf9;
}

[data-theme="black"] .timeline-table tbody tr:nth-child(even) {
  background-color: #1a1a1a;
}

[data-theme="blue"] .timeline-table tbody tr:nth-child(even) {
  background-color: #d4eeff;
}

.timeline-table tbody tr:hover {
  background-color: #e8f5f0;
}

[data-theme="black"] .timeline-table tbody tr:hover {
  background-color: #222;
}

[data-theme="blue"] .timeline-table tbody tr:hover {
  background-color: #c0e0ff;
}

.timeline-table__year {
  white-space: nowrap;
  font-weight: bold;
  color: var(--c-secondary);
  min-width: 90px;
}

[data-theme="black"] .timeline-table__year { color: #00ff00; }
[data-theme="blue"]  .timeline-table__year { color: var(--c-primary); }

.timeline-table__year small {
  display: block;
  font-weight: normal;
  font-size: 0.85em;
  color: #888;
}

.timeline-table td ul {
  margin: 8px 0 0;
  padding-left: 1.4em;
}

.timeline-table td ul li {
  margin-bottom: 6px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
  .util-inner {
    justify-content: center;
  }

  .header__main {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
    padding-left: 15px;
    padding-right: 15px;
  }

  .hamburger-btn {
    display: block;
  }

  .gnav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--c-menu-bg);
    z-index: 100;
  }

  .gnav.is-active {
    display: block;
  }

  .gnav__list {
    flex-direction: column;
  }

  .gnav__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }

  .gnav__link {
    border-right: none;
  }

  .gnav__sub {
    position: static;
    display: block;
    background-color: rgba(0, 0, 0, 0.1);
  }

  .gnav__sub a {
    padding-left: 30px;
  }

  .mobile-only {
    display: block;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
  }

  .mobile-only .util-group {
    margin-bottom: 15px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    color: #fff;
  }

  .mobile-only .util-group span {
    font-weight: bold;
    margin-right: 5px;
  }

  .mobile-only .util-btn {
    border: 1px solid #fff;
    background: transparent;
    color: #fff;
    padding: 5px 10px;
  }

  .mobile-only .util-btn.util-btn--current {
    background: #fff;
    color: var(--c-menu-bg);
  }

  .mobile-only a {
    color: #fff;
    text-decoration: none;
    margin-right: 15px;
    border-bottom: 1px solid transparent;
  }

  .mobile-only a:hover {
    border-bottom: 1px solid #fff;
  }

  /* Policy Block - Mobile */

  .policy-images {
    flex-direction: column;
  }

  .policy-images__item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Hide mobile-only on desktop */
.mobile-only {
  display: none;
}
/* ==========================================================================
   Headsub – ワンヘルスとは 誘導バナー
   ========================================================================== */
.headsub {
  margin-bottom: 40px;
}

.headsub__link {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}

.headsub__link:hover,
.headsub__link:focus {
  border-color: var(--c-secondary);
  box-shadow: 0 6px 20px rgba(40, 150, 114, 0.25);
  transform: translateY(-3px);
  opacity: 1; /* globalのa:hoverによるopacity変更を打ち消す */
}

.headsub__link img {
  display: block;
  width: 100%;
  height: auto;
}

.headsub__cta {
  display: inline-block;
  background-color: var(--c-secondary);
  color: #fff;
  font-weight: bold;
  font-size: 0.95rem;
  padding: 10px 24px;
  margin-top: 10px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  transition: background-color 0.2s, transform 0.2s;
  pointer-events: none; /* クリックはa要素で受ける */
}

.headsub__link:hover .headsub__cta,
.headsub__link:focus .headsub__cta {
  background-color: var(--c-primary);
  transform: translateX(4px);
}

[data-theme="black"] .headsub__cta {
  background-color: #00ff00;
  color: #000;
}

[data-theme="blue"] .headsub__cta {
  background-color: var(--c-secondary);
}

@media (max-width: 768px) {
  .headsub__cta {
    font-size: 0.85rem;
    padding: 8px 16px;
  }
}

/* ==========================================================================
   About Page – One Health 固有スタイル
   ========================================================================== */

/* 定義ハイライトボックス */
.oh-definition {
  background: linear-gradient(135deg, #e8f5e9 0%, #e0f7fa 100%);
  border-left: 6px solid #289672;
  border-radius: 0 8px 8px 0;
  padding: 28px 32px;
  margin: 32px 0;
  font-size: 1.05rem;
  line-height: 2;
}

[data-theme="black"] .oh-definition {
  background: #1a1a1a;
  border-color: #00ff00;
}

[data-theme="blue"] .oh-definition {
  background: #cce8ff;
  border-color: #007777;
}

.oh-definition strong {
  color: #0076a8;
}

[data-theme="black"] .oh-definition strong { color: #ffff00; }
[data-theme="blue"]  .oh-definition strong { color: #0055aa; }

/* 概念図 */
.oh-diagram {
  text-align: center;
  margin: 32px auto;
}

.oh-diagram svg {
  max-width: 480px;
  width: 100%;
  height: auto;
}

/* なぜ今セクション */
.why-section {
  background: #f9fbe7;
  border-radius: 10px;
  padding: 32px;
  margin: 32px 0;
}

[data-theme="black"] .why-section {
  background: #1a1a1a;
  border: 1px solid #555;
}

[data-theme="blue"] .why-section {
  background: #cce8ff;
}

.why-section .section-title {
  margin-top: 0;
}

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

.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  line-height: 1.8;
}

[data-theme="black"] .why-list li {
  border-color: rgba(255, 255, 255, 0.15);
}

.why-list li:last-child {
  border-bottom: none;
}

.why-list__icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* 三本柱グリッド */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.pillar-card {
  border-radius: 10px;
  padding: 28px 22px;
  text-align: center;
  background: #fff;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.10);
  border-top: 5px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
}

.pillar-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

[data-theme="black"] .pillar-card { background: #2a2a2a; }
[data-theme="blue"]  .pillar-card { background: #e0f2f1; }

.pillar-card--human  { border-top-color: #0076a8; }
.pillar-card--animal { border-top-color: #289672; }
.pillar-card--env    { border-top-color: #f59a00; }

.pillar-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 14px;
}

.pillar-card h3 {
  font-size: 1.1rem;
  margin: 0 0 12px 0;
}

.pillar-card--human  h3 { color: #0076a8; }
.pillar-card--animal h3 { color: #289672; }
.pillar-card--env    h3 { color: #c67c00; }

[data-theme="black"] .pillar-card h3 { color: #ffff00; }
[data-theme="blue"]  .pillar-card h3 { color: #003366; }

.pillar-card p {
  font-size: 0.9rem;
  line-height: 1.75;
  margin: 0;
  text-align: left;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .oh-definition {
    padding: 20px;
  }

  .why-section {
    padding: 20px;
  }
}
/* リンクページ：都の施策カード */
.policy-card-list {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.policy-card {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  background: #f9f9f9;
}

.policy-card__title {
  margin: 0 0 0.4rem 0;
  font-weight: bold;
}

.policy-card__desc {
  margin: 0;
  font-size: 0.9rem;
  color: #555;
}

/* リンクページ：h3サブセクション見出し */
.subsection-title {
  font-size: 1.2rem;
  font-weight: bold;
  border-left: 4px solid var(--c-secondary);
  padding-left: 12px;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--c-text-main);
}

/* アクセシビリティバー */
.accessibility-bar {
  background: #f5f5f5;
  border-bottom: 1px solid #ddd;
  font-size: 0.85rem;
}

.accessibility-bar__inner {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}

.accessibility-bar a {
  color: var(--c-primary, #007b6e);
  text-decoration: underline;
  white-space: nowrap;
}

.accessibility-bar a:hover {
  opacity: 0.75;
}
