/* ============================================================
   共通CSS
   リセット / 変数 / ヘッダー / フッター / 共通コンポーネント
   ============================================================ */

/* === Reset === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

/* === CSS Custom Properties === */
:root {
  --color-primary: #003366;
  --color-primary-light: #0a4a8a;
  --color-primary-dark: #002244;
  --color-danger: #c62828;
  --color-danger-light: #e53935;
  --color-accent: #FF6A00;
  --color-success: #2e7d32;
  --color-surface: #f5f5f5;
  --color-surface-alt: #fafafa;
  --color-surface-blue: #f4fbff;
  --color-surface-warm: #fcfcfc;
  --color-surface-danger: #ffebee;
  --color-card: #ffffff;
  --color-white: #ffffff;
  --color-text: #333333;
  --color-muted: #666666;
  --color-border: #dddddd;
  --color-border-light: #eeeeee;
  --color-kids: #d35400;
  --color-kids-btn: #ffb74d;

  --font-primary: "Noto Sans JP", -apple-system, BlinkMacSystemFont,
    "Yu Gothic", "Hiragino Sans", "Meiryo", sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.85rem;
  --font-size-base: 0.9rem;
  --font-size-md: 0.95rem;
  --font-size-lg: 1rem;
  --font-size-xl: 1.2rem;
  --font-size-2xl: 1.4rem;
  --font-size-3xl: 1.8rem;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  --container-max: 1100px;
  --sidebar-width: 280px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 12px 32px rgba(0, 0, 0, 0.16);

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-full: 9999px;

  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;

  --animate-duration: 400ms;
  --animate-easing: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --animate-easing-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* === v3 パレット === */
:root {
  --v3-primary: #6a9ec8;
  --v3-primary-light: #8bb8dc;
  --v3-primary-pale: #eef5fb;
  --v3-accent: #f0a0a0;
  --v3-accent-pale: #fef5f5;
  --v3-green: #85ccb0;
  --v3-green-pale: #f0faf6;
  --v3-orange: #f0be88;
  --v3-orange-pale: #fef8f1;
  --v3-purple: #a8a8d8;
  --v3-purple-pale: #f5f4fc;
  --v3-bg: #fafaf8;
  --v3-card: #ffffff;
  --v3-text: #444444;
  --v3-text-muted: #999999;
  --v3-border: #eeeae6;
  --v3-radius: 16px;
  --v3-radius-lg: 20px;
  --v3-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
  --v3-shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.07);
}

body.v3 {
  background: var(--v3-bg);
  color: var(--v3-text);
  --color-primary: var(--v3-primary);
  --color-primary-light: var(--v3-primary-light);
  --color-primary-dark: var(--v3-primary);
  --color-surface: var(--v3-bg);
  --color-surface-alt: #f8f9fa;
  --color-surface-blue: var(--v3-primary-pale);
  --color-surface-warm: #fefcf9;
  --color-card: var(--v3-card);
  --color-text: var(--v3-text);
  --color-muted: var(--v3-text-muted);
  --color-border: var(--v3-border);
  --color-border-light: rgba(0, 0, 0, 0.06);
}

/* === Utility === */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   共通見出し
   ============================================================ */
.ifd-section-title {
  font-size: var(--font-size-2xl);
  font-weight: bold;
  border-left: 4px solid var(--color-primary);
  padding-left: 0.5em;
  margin: 0 0 0.75em;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 0.4em;
}

.ifd-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.8em;
  height: 1.8em;
  border-radius: var(--radius-md);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.75em;
  flex-shrink: 0;
  line-height: 1;
}

.ifd-section-icon svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

body.v3 .ifd-section-title {
  color: var(--v3-text);
  border-left-color: var(--v3-primary);
  font-size: 1.2rem;
}

body.v3 .ifd-section-icon {
  background: var(--v3-primary-pale);
  color: var(--v3-primary);
  border-radius: 10px;
}

/* ============================================================
   緊急バー（119番）
   ============================================================ */
.ifd-emergency-bar {
  background: var(--color-danger);
  color: var(--color-white);
  padding: 6px 10px;
  font-size: 13px;
}

.ifd-emergency-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  align-items: baseline;
}

.ifd-emergency-main {
  font-weight: bold;
  font-size: var(--font-size-md);
}

.ifd-emergency-number {
  font-size: var(--font-size-xl);
  letter-spacing: 0.05em;
}

.ifd-emergency-sub {
  font-size: var(--font-size-xs);
}

.ifd-emergency-sub a {
  color: #fffde7;
  text-decoration: underline;
}

.ifd-emergency-sub a:hover {
  opacity: 0.85;
}

body.v3 .ifd-emergency-bar {
  background: linear-gradient(90deg, #fce8e8 0%, #fef0e8 50%, #fce8e8 100%);
  color: var(--v3-text);
  border-bottom: 1px solid rgba(240, 160, 160, 0.3);
  padding: 4px 10px;
}

body.v3 .ifd-emergency-inner {
  align-items: center;
  gap: 4px 16px;
}

body.v3 .ifd-emergency-main {
  color: #c06060;
  font-size: 0.95rem;
}

body.v3 .ifd-emergency-number {
  color: #c06060;
  font-size: 1.15rem;
}

body.v3 .ifd-emergency-sub {
  color: var(--v3-text-muted);
  font-size: 0.75rem;
}

body.v3 .ifd-emergency-sub a {
  color: var(--v3-primary);
}

/* ============================================================
   ヘッダー（旧デザイン）
   ============================================================ */
.ifd-header {
  color: var(--color-white);
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  background:
    linear-gradient(rgba(0, 51, 102, 0.85), rgba(0, 51, 102, 0.88)),
    url("../userfiles/page_contents/ifd-header.png") center / cover no-repeat;
  transition: background var(--transition-base),
              box-shadow var(--transition-base);
}

.ifd-header.is-scrolled {
  background:
    linear-gradient(rgba(0, 51, 102, 0.92), rgba(0, 51, 102, 0.95)),
    url("../userfiles/page_contents/ifd-header.png") center / cover no-repeat;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
}

.ifd-header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 8px 15px 10px;
}

.ifd-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.ifd-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ifd-header-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.3));
}

.ifd-header-title {
  display: flex;
  flex-direction: column;
}

.ifd-header-title-ja {
  font-size: var(--font-size-xl);
  font-weight: bold;
}

.ifd-header-title-en {
  font-size: var(--font-size-xs);
  opacity: 0.8;
}

.ifd-global-nav {
  margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.ifd-global-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px 0 0;
}

.ifd-global-nav li a {
  display: block;
  padding: 6px 10px;
  font-size: var(--font-size-base);
  color: var(--color-white);
  border-radius: 3px 3px 0 0;
  position: relative;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.ifd-global-nav li a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--color-white);
  transition: width var(--transition-base), left var(--transition-base);
}

.ifd-global-nav li a:hover::after {
  width: 100%;
  left: 0;
}

.ifd-global-nav li a:hover,
.ifd-global-nav li a.current {
  background: var(--color-white);
  color: var(--color-primary);
}

.ifd-global-nav li a.current::after {
  display: none;
}

/* ============================================================
   ヘッダー v3（2段構成）
   ============================================================ */
.v3-header {
  background: var(--v3-card);
  transition: box-shadow 0.3s ease;
}

.v3-header.is-scrolled {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.v3-header-upper {
  background: linear-gradient(180deg, #eef5fb 0%, #f6fafd 100%);
  border-bottom: 1px solid rgba(106, 158, 200, 0.15);
}

.v3-header-upper-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.v3-header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.v3-header-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.v3-header-logo-text {
  display: flex;
  flex-direction: column;
}

.v3-header-logo-ja {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--v3-text);
  line-height: 1.2;
}

.v3-header-logo-en {
  font-size: 0.65rem;
  color: var(--v3-text-muted);
  letter-spacing: 0.02em;
}

.v3-header-shortcuts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.v3-header-shortcut {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--v3-text);
  transition: background 0.2s ease, color 0.2s ease;
}

.v3-header-shortcut:hover {
  background: var(--v3-primary-pale);
  color: var(--v3-primary);
}

.v3-header-shortcut svg {
  width: 22px;
  height: 22px;
}

.v3-header-shortcut span {
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}

.v3-header-tel {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  background: var(--v3-primary-pale);
  border: 1px solid rgba(106, 158, 200, 0.2);
  border-radius: 8px;
  text-decoration: none;
  color: var(--v3-primary);
  font-weight: 600;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: background 0.2s ease;
  margin-left: auto;
}

.v3-header-tel:hover {
  background: rgba(106, 158, 200, 0.15);
}

.v3-header-tel svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.v3-header-nav {
  background: var(--v3-primary-pale);
  border-bottom: 1px solid rgba(106, 158, 200, 0.15);
  border-top: 3px solid var(--v3-primary);
}

.v3-header-nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 15px;
}

.v3-header-nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.v3-header-nav li {
  flex: 1;
  text-align: center;
  border-right: 1px solid rgba(106, 158, 200, 0.18);
}

.v3-header-nav li:first-child {
  border-left: 1px solid rgba(106, 158, 200, 0.18);
}

.v3-header-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 6px;
  min-height: 48px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--v3-text);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1.3;
  white-space: nowrap;
}

.v3-header-nav li a:hover {
  background: rgba(106, 158, 200, 0.15);
  color: var(--v3-primary);
}



/* v3 スリムヒーロー画像 */
.v3-hero-slim {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.v3-hero-slim img {
  width: 100%;
  height: auto;
  display: block;
}

/* v3 ハンバーガー（PC非表示） */
.v3-hamburger {
  display: none;
}

/* ============================================================
   フッター
   ============================================================ */
.ifd-footer {
  background: #f0f0f0;
  margin-top: 30px;
  border-top: 3px solid var(--color-primary);
  font-size: 13px;
  color: var(--color-text);
}

.ifd-footer-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 12px 15px 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: space-between;
}

.ifd-footer-info {
  min-width: 220px;
}

.ifd-footer-info-title {
  font-weight: bold;
  margin-bottom: 0.3em;
  color: var(--color-primary);
}

.ifd-footer-links {
  min-width: 180px;
  text-align: right;
}

.ifd-footer-links ul li {
  margin-bottom: 0.2em;
}

.ifd-footer a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.ifd-footer a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.ifd-footer-copy {
  background: var(--color-primary);
  color: var(--color-white);
  text-align: center;
  font-size: var(--font-size-xs);
  padding: 4px 5px 6px;
}

body.v3 .ifd-footer {
  background: #f5f8fb;
  border-top: 2px solid var(--v3-border);
  color: var(--v3-text);
}

body.v3 .ifd-footer-info-title {
  color: var(--v3-primary);
}

body.v3 .ifd-footer a {
  color: var(--v3-text);
}

body.v3 .ifd-footer a:hover {
  color: var(--v3-primary);
}

body.v3 .ifd-footer-copy {
  background: var(--v3-primary-pale);
  color: var(--v3-primary);
}

/* ============================================================
   共通コンポーネント: 本文テキスト
   ============================================================ */
.ifd-text {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.ifd-text a {
  color: var(--color-primary);
  text-decoration: underline;
}

.ifd-text a:hover {
  opacity: 0.8;
}

/* ============================================================
   共通コンポーネント: テーブル
   ============================================================ */
.ifd-table-wrap {
  overflow-x: auto;
  margin-bottom: var(--space-lg);
}

.ifd-table-wrapper {
  overflow-x: auto;
  margin-bottom: var(--space-lg);
  -webkit-overflow-scrolling: touch;
}

.ifd-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.ifd-table th,
.ifd-table td {
  border: 1px solid var(--color-border);
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
}

.ifd-table th {
  background: var(--color-primary);
  color: var(--color-white);
  font-weight: 500;
  white-space: nowrap;
}

.ifd-table tbody tr:nth-child(even) {
  background: var(--color-surface-alt);
}

.ifd-table-note {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
}

.ifd-table--contact td:nth-child(1),
.ifd-table--contact td:nth-child(2) {
  white-space: nowrap;
}

/* ============================================================
   共通コンポーネント: 組織図画像
   ============================================================ */
.ifd-org-chart-wrap {
  margin-bottom: var(--space-lg);
  text-align: center;
}

.ifd-org-chart-img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   共通コンポーネント: 情報ボックス
   ============================================================ */
.ifd-info-box {
  background: var(--color-surface-blue);
  border: 1px solid #d0e7f5;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: var(--space-lg);
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

.ifd-info-box h3 {
  font-size: var(--font-size-base);
  font-weight: bold;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.ifd-info-box p {
  margin-bottom: 4px;
}

.ifd-info-box a {
  color: var(--color-primary);
  text-decoration: underline;
}

.ifd-info-box ul {
  padding-left: 1.2em;
  margin: 8px 0;
}

.ifd-info-box ul li {
  margin-bottom: 4px;
  font-size: var(--font-size-sm);
  line-height: 1.7;
}

body.v3 .ifd-info-box {
  background: var(--v3-primary-pale);
  border-color: rgba(106, 158, 200, 0.3);
}

/* ============================================================
   共通コンポーネント: PDFリンク
   ============================================================ */
.ifd-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  margin: 4px 4px 4px 0;
  transition: background var(--transition-fast);
}

.ifd-pdf-link:hover {
  background: var(--color-surface-blue);
  text-decoration: none;
}

.ifd-pdf-list--grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  list-style: none;
  padding: 0;
  margin-top: 8px;
  margin-bottom: var(--space-lg);
}

.ifd-pdf-list--grid .ifd-pdf-link {
  display: flex;
  justify-content: center;
  margin: 0;
}

/* ============================================================
   共通コンポーネント: アラートボックス
   ============================================================ */
.ifd-alert-box {
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin-bottom: var(--space-xl);
  line-height: 1.8;
}

.ifd-alert-box p {
  margin-bottom: 6px;
}

.ifd-alert-box p:last-child {
  margin-bottom: 0;
}

.ifd-alert-box ul {
  padding-left: 1.2em;
  margin: 8px 0 0;
}

.ifd-alert-box ul li {
  margin-bottom: 4px;
  color: inherit;
}

.ifd-alert-box--danger {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.ifd-alert-box--info {
  background: #eff6ff;
  border: 1px solid #93c5fd;
  color: #1e40af;
}

.ifd-alert-box--info a {
  color: #1e40af;
  text-decoration: underline;
}

/* ============================================================
   共通コンポーネント: 汎用リスト・出典テキスト
   ============================================================ */
.ifd-list {
  padding-left: 1.5em;
  margin-bottom: var(--space-md);
}

.ifd-list li {
  font-size: var(--font-size-base);
  line-height: 1.8;
  color: var(--color-text);
  margin-bottom: 4px;
  list-style: disc;
}

.ifd-source {
  font-size: var(--font-size-xs);
  color: var(--color-muted);
  margin-bottom: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border-light);
}

/* ============================================================
   スクロールアニメーション（data-animate）
   ============================================================ */
[data-animate="fade-up"] {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity var(--animate-duration) var(--animate-easing-out),
              transform var(--animate-duration) var(--animate-easing-out);
}

[data-animate="fade-up"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-animate="fade-right"] {
  opacity: 0;
  transform: translate3d(-40px, 0, 0);
  transition: opacity var(--animate-duration) var(--animate-easing-out),
              transform var(--animate-duration) var(--animate-easing-out);
}

[data-animate="fade-right"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-animate="fade-left"] {
  opacity: 0;
  transform: translate3d(40px, 0, 0);
  transition: opacity var(--animate-duration) var(--animate-easing-out),
              transform var(--animate-duration) var(--animate-easing-out);
}

[data-animate="fade-left"].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-animate="scale-in"] {
  opacity: 0;
  transform: scale3d(0.9, 0.9, 1);
  transition: opacity var(--animate-duration) var(--animate-easing-out),
              transform var(--animate-duration) var(--animate-easing-out);
}

[data-animate="scale-in"].is-visible {
  opacity: 1;
  transform: scale3d(1, 1, 1);
}

[data-animate="reveal"] {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 800ms var(--animate-easing-out);
}

[data-animate="reveal"].is-visible {
  clip-path: inset(0 0 0 0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }
}

/* ============================================================
   レスポンシブ: 共通（ヘッダー・フッター・モバイル）
   ============================================================ */
@media (max-width: 768px) {
  /* 旧ヘッダー */
  .ifd-header-inner {
    padding: 12px 10px 8px;
  }

  .ifd-header-top {
    align-items: center;
    justify-content: space-between;
  }

  .ifd-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    width: 56px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: var(--color-white);
    cursor: pointer;
    padding: 6px;
    font-family: inherit;
    transition: background var(--transition-fast);
    flex-shrink: 0;
  }

  .ifd-hamburger:hover,
  .ifd-hamburger:active {
    background: rgba(255, 255, 255, 0.2);
  }

  .ifd-hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 22px;
  }

  .ifd-hamburger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--color-white);
    border-radius: 1px;
  }

  .ifd-hamburger-text {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1;
    margin-top: 1px;
  }

  .ifd-hamburger-close {
    display: none;
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
  }

  .ifd-header.is-menu-open .ifd-hamburger-lines,
  .ifd-header.is-menu-open .ifd-hamburger-text {
    display: none;
  }

  .ifd-header.is-menu-open .ifd-hamburger-close {
    display: block;
  }

  .ifd-global-nav {
    position: absolute;
    top: calc(100% - 8px);
    left: 0;
    right: 0;
    background: rgba(0, 51, 102, 0.9);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  }

  .ifd-header.is-menu-open .ifd-global-nav {
    max-height: 600px;
  }

  .ifd-global-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .ifd-global-nav li {
    flex: none;
  }

  .ifd-global-nav li a {
    display: block;
    padding: 12px 20px;
    font-size: var(--font-size-base);
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
  }

  .ifd-global-nav li:last-child a {
    border-bottom: none;
  }

  .ifd-global-nav li a::after {
    display: none;
  }

  /* v3 緊急バー */
  body.v3 .ifd-emergency-bar {
    padding: 4px 8px;
    font-size: 11px;
  }

  body.v3 .ifd-emergency-main {
    font-size: 0.9rem;
  }

  body.v3 .ifd-emergency-number {
    font-size: 1.1rem;
  }

  body.v3 .ifd-emergency-sub {
    font-size: 0.7rem;
  }

  body.v3 .ifd-emergency-inner {
    gap: 2px 12px;
  }

  /* v3 ヘッダー */
  .v3-header-upper-inner {
    flex-wrap: nowrap;
    gap: 8px;
    padding: 6px 10px;
  }

  .v3-header-logo img {
    height: 32px;
  }

  .v3-header-logo-ja {
    font-size: 0.95rem;
  }

  .v3-header-logo-en {
    display: none;
  }

  .v3-header-shortcuts {
    display: none;
  }

  .v3-header-tel {
  margin-left: auto;
  font-size: 0.7rem;
  padding: 3px 2px;
  flex-wrap: wrap;        /* 折り返し許可 */
  justify-content: center;
  gap: 0;
  }

.v3-header-tel svg {
  display: none;
}

.v3-header-tel-number {
  width: 100%;            /* 番号を次の行へ */
  text-align: center;
  font-size: 0.75rem;
}
  /* v3 ハンバーガー */
  .v3-hamburger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    width: 44px;
    height: 40px;
    background: var(--v3-primary);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    padding: 4px;
    flex-shrink: 0;
    transition: background 0.2s ease;
  }

  .v3-hamburger:hover,
  .v3-hamburger:active {
    background: var(--v3-primary-dark, #5a8ab8);
  }

  .v3-hamburger-lines {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 20px;
  }

  .v3-hamburger-lines span {
    display: block;
    height: 2px;
    width: 100%;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }

  .v3-hamburger-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    line-height: 1;
  }

  .v3-header.is-menu-open .v3-hamburger-lines span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .v3-header.is-menu-open .v3-hamburger-lines span:nth-child(2) {
    opacity: 0;
  }
  .v3-header.is-menu-open .v3-hamburger-lines span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
  .v3-header.is-menu-open .v3-hamburger-label {
    display: none;
  }

  /* v3 モバイルナビ */
  .v3-header-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out;
    border-top: none;
  }

  .v3-header.is-menu-open .v3-header-nav {
    max-height: 500px;
  }

  .v3-header-nav ul {
    flex-direction: column;
  }

  .v3-header-nav li {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(106, 158, 200, 0.18);
  }

  .v3-header-nav li:first-child {
    border-left: none;
  }

  .v3-header-nav li a {
    font-size: 0.88rem;
    padding: 12px 20px;
    min-height: auto;
    white-space: nowrap;
    justify-content: flex-start;
  }

  /* フッター */
  .ifd-footer-inner {
    flex-direction: column;
    text-align: left;
  }

  .ifd-footer-links {
    text-align: left;
  }

  /* 共通コンポーネント */
  .ifd-pdf-list--grid {
    grid-template-columns: 1fr;
  }
}

.ifd-article-body a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ifd-article-body a:hover {
  opacity: 0.7;
}

.ifd-news-cat--1  { background: var(--v3-accent); }    /* 新着情報 */
.ifd-news-cat--7  { background: var(--v3-primary); }   /* お知らせ */
.ifd-news-cat--14 { background: #5c6bc0; }             /* 公告 */
.ifd-news-cat--15 { background: #26a69a; }             /* 発注見通し */
.ifd-news-cat--16 { background: #42a5f5; }             /* 入札結果 */
.ifd-news-cat--17 { background: #78909c; }             /* 議会 */
.ifd-news-cat--18 { background: var(--v3-primary); }   /* 情報公開 */



/* === 緊急バー + ヘッダー一体固定ラッパー === */
.ifd-site-header-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
}



/* === 緊急バー：共通ベーススタイル === */
body.v3 [class^="ifd-emergency-bar--"] {
  padding: 4px 10px;
  font-size: 0.82rem;
  line-height: 1.5;
}



/* --- モード19: 通常（現行の淡いピンク系グラデーション） --- */
body.v3 .ifd-emergency-bar--19 {
  background: linear-gradient(90deg, #fce8e8 0%, #fef0e8 50%, #fce8e8 100%);
  color: var(--v3-text);
  border-bottom: 1px solid rgba(240, 160, 160, 0.3);
}



/* --- モード20: 緊急（赤背景・白文字） --- */
body.v3 .ifd-emergency-bar--20 {
  background: linear-gradient(90deg, #d32f2f 0%, #c62828 50%, #d32f2f 100%);
  color: #fff;
  border-bottom: 2px solid #b71c1c;
  font-weight: 700;
}

body.v3 .ifd-emergency-bar--20 a {
  color: #fff;
  text-decoration: underline;
}

body.v3 .ifd-emergency-bar--20 .ifd-emergency-main {
  color:#FFFF00;
font-size:1.35rem;
}

body.v3 .ifd-emergency-bar--20 .ifd-emergency-number {
  color: #ffe082;
  font-size: 1.3rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

body.v3 .ifd-emergency-bar--20 .ifd-emergency-sub {
  color: rgba(255, 255, 255, 0.9);
}



/* --- モード21: お知らせ・注意喚起（黄色系背景） --- */
body.v3 .ifd-emergency-bar--21 {
  background: linear-gradient(90deg, #fff8e1 0%, #fff3c4 50%, #fff8e1 100%);
  color: #5d4037;
  border-bottom: 2px solid #ffe082;
  font-weight: 500;
}

body.v3 .ifd-emergency-bar--21 a {
  color: #e65100;
  text-decoration: underline;
}

body.v3 .ifd-emergency-bar--21 .ifd-emergency-main {
  color: #bf360c;
}

body.v3 .ifd-emergency-bar--21 .ifd-emergency-number {
  color: #d84315;
}

body.v3 .ifd-emergency-bar--21 .ifd-emergency-sub {
  color: #6d4c41;
}


.ifd-hero-btn{
  color: var(--color-white) !important;
text-decoration:none !important;
}

/* ── 問い合わせ先 住所 ── */
.ifd-contact-address {
  font-size: .95rem;
  color: var(--color-text, #333);
  margin: .75em 0 1em;
  line-height: 1.6;
}