/* cpriver tenant styles */
/* Web フォントは lib/fonts.ts の next/font で自己ホストしている。
   ここに @import を書くと、このファイルを読み終わるまでフォント取得が始まらない。 */

/* oem-base/cdn/sidebar/sidebar.css の `.arrow { position: absolute; right: 10px }` は
   セレクタが限定されておらず、class に arrow を含む全要素へ効いてしまう。
   cpriver のサイドバーは BEM 命名（cprv-sb-feature__item-arrow 等）で arrow クラスを使わないため、
   ここで position だけ打ち消す。sidebar.css は全テナント共通なので直接は触らない。
   ※ .title-block__buttons .button 等の position 指定を持つ既存要素は特異度で勝つので影響しない。 */
.arrow {
  position: static;
}

body {
  font-family: var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
  background: #fff;
  color: #333;
}

.trend-detail__section-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-bottom: 14px;
  padding: 9px 16px;
  border: 1px solid var(--colorLightBase);
  border-radius: 6px;
  background: var(--colorLightBase);
  color: #fff;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 800;
  line-height: 1.5;
  text-decoration: none;
}

.trend-detail__section-label:hover {
  background: var(--colorLightBase);
  text-decoration: underline;
}

/* ラベル直後の記事タイトルは左だけでなく全周に枠線を引く */
.trend-detail__section-label + .news-detail__title {
  border: 3px solid var(--colorLightBase);
}

/* サイドバーは英数で Inter を優先 (Refined Trust デザイン) */
.cprv-sidebar {
  font-family: var(--font-inter, 'Inter'), var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
}

/* アコーディオン展開時の card__btn を強調 (青背景 + 白文字 + 太字) */
.cprv-sidebar .cprv-sb-card.cprv-sb-card--open > .cprv-sb-card__btn {
  background: linear-gradient(135deg, #1F4DBF 0%, #0B2D7A 100%);
  color: #fff;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}
.cprv-sidebar .cprv-sb-card.cprv-sb-card--open > .cprv-sb-card__btn .cprv-sb-card__label {
  color: #fff;
  font-weight: 800;
}
.cprv-sidebar .cprv-sb-card.cprv-sb-card--open > .cprv-sb-card__btn .cprv-sb-card__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.cprv-sidebar .cprv-sb-card.cprv-sb-card--open > .cprv-sb-card__btn .cprv-sb-card__toggle {
  background: #fff;
  color: #0B2D7A;
}
/* hover時もホバー色で潰れないように上書き */
.cprv-sidebar .cprv-sb-card.cprv-sb-card--open:hover {
  background: transparent;
}
.cprv-sidebar .cprv-sb-card.cprv-sb-card--open:hover > .cprv-sb-card__btn .cprv-sb-card__toggle {
  background: #F2F6FD;
}

/* sticky 時はヘッダー直下に来るように top を調整。
   さらにアコーディオンを展開しても画面内に収まるよう max-height + 内部スクロールを許可。
   ※ /local-government/ (.jichitai-page) と /company/ (.kigyou-page) のみに適用 */
.jichitai-page .cprv-sidebar.aside--sticky,
.kigyou-page .cprv-sidebar.aside--sticky {
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  overflow-x: hidden;
  /* スクロールバーを目立たせない */
  scrollbar-width: thin;
  scrollbar-color: rgba(11, 45, 122, 0.25) transparent;
  padding-right: 4px;
}
.jichitai-page .cprv-sidebar.aside--sticky::-webkit-scrollbar,
.kigyou-page  .cprv-sidebar.aside--sticky::-webkit-scrollbar { width: 6px; }
.jichitai-page .cprv-sidebar.aside--sticky::-webkit-scrollbar-track,
.kigyou-page  .cprv-sidebar.aside--sticky::-webkit-scrollbar-track { background: transparent; }
.jichitai-page .cprv-sidebar.aside--sticky::-webkit-scrollbar-thumb,
.kigyou-page  .cprv-sidebar.aside--sticky::-webkit-scrollbar-thumb {
  background: rgba(11, 45, 122, 0.25);
  border-radius: 999px;
}

@media (max-width: 768px) {
  /* モバイル時は sticky を解除 (sidebar.css の static 復帰に追従) */
  .jichitai-page .cprv-sidebar.aside--sticky,
  .kigyou-page  .cprv-sidebar.aside--sticky {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

/* ─────────────────────────────────
   cpriver layout wrapper
───────────────────────────────── */
.cpriver-layout {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  /* overflow-x:hidden だと祖先がスクロールコンテナ化して、子の position:sticky が無効化される。
     overflow-x:clip は描画クリップのみでスクロールコンテナを作らないので sticky が機能する。 */
  overflow-x: clip;
}

/* ─────────────────────────────────
   TOP BAR
───────────────────────────────── */
.topbar {
  padding: 20px 0px 10px;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: bold;
  background: #fff;
  /* スクロール縮小時に滑らかに畳めるようにアニメーション可能なプロパティで定義 */
  max-height: 60px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.25s ease, padding 0.25s ease, opacity 0.2s ease;
}

/* ─────────────────────────────────
   HEADER
   bare `header` セレクタはページ内の <header> 要素 (lg-page__header /
   legal-search-page__header / series-seminar__title など) にも作用してしまうため
   メインのサイトヘッダーは .site-header クラスでスコープする。
───────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  transition: box-shadow 0.3s, background 0.3s;
}
.header-inner {
  display: flex;
  flex-direction: column;
  max-width: inherit;
  margin: 0 40px;
}
.header-main {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 0px 3%;
  transition: padding 0.3s;
}
.logo-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
}
.logo-wrap {
  width: 133px; height: 42px; flex-shrink: 0;
  background-image: url('/tenants/cpriver/assets/img/common/logo-long.svg');
  background-size: contain; background-repeat: no-repeat;
  transform-origin: center center;
  transition: width 0.3s, height 0.3s, transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-nav > a {
  display: inline-block;
  padding: 4px 6px;
}
.logo-nav a:hover > .logo-wrap {
  transform: scale(1.04);
}
nav { display: flex; align-items: center; }
.pc-nav {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;          /* Firefox */
}
.pc-nav::-webkit-scrollbar { display: none; } /* Chrome, Safari, Edge */
.sidebar-nav { flex-direction: column; align-items: stretch; }
nav a {
  text-decoration: none;
  font-weight: 700; font-size: clamp(14px, 1.15vw, 16px); color: #333;
  padding: 6px 10px; white-space: nowrap;
  transition: color .15s;
  text-decoration: underline;
}
nav a:hover {    text-decoration: none;}

/* PC グロナビ: 各 nav 項目を pc-nav__item で包み、メガメニューを内包 */
.pc-nav {
  gap: 4px;
  overflow: visible; /* mega-menu (nav 項目基準) が clip されないように */
}
.pc-nav__item {
  position: relative;
  display: inline-flex;
  align-items: center;
}
/* 「寄附をする」だけは幅 1140px 超で nav 項目基準だと画面右へはみ出すため、
   .site-header 基準（.pc-nav__item を position:static にする）に切り替える。
   項目とメニューの間に空く余白でホバーが切れないよう、項目の当たり判定を下へ伸ばす */
.pc-nav__item:has(> .mega-menu--projects) {
  position: static;
  padding-bottom: 56px;
  margin-bottom: -56px;
}
.pc-nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-weight: 700;
  font-size: clamp(14px, 1.15vw, 16px);
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  transition: color .15s;
}
.pc-nav__link::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 0;
  height: 1.5px;
  background: rgba(0, 60, 126, 0.35);
  transform: translateX(-50%);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.pc-nav__item:hover .pc-nav__link::after,
.pc-nav__link:focus-visible::after,
.pc-nav__link.is-active::after {
  width: calc(100% - 28px);
}
/* 1200-1440px: nav 項目が入りきらないので余白を詰めて画面内に収める（メガメニューはこの帯でも使う） */
@media (max-width: 1440px) {
  .pc-nav { gap: 0; }
  .pc-nav__link { padding: 8px 8px; }
}
/* 1199px 以下: メガメニュー非表示の帯。clip される絶対配置がないのでナビ内で横スクロールさせる */
@media (max-width: 1199px) {
  .logo-nav { min-width: 0; }
  .pc-nav {
    min-width: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* 右端に固定表示の CpriverSideRail(幅 92px) があるため、最後の項目が隠れないよう余白を確保 */
    padding-right: 100px;
  }
}
.pc-nav__link.is-active {
  color: var(--colorLightBase);
}
.pc-nav__link.is-active::after {
  background: rgba(0, 60, 126, 0.6);
}

/* メガメニュー共通 */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(8px);
  background: #fff;
  border-radius: 16px;
  box-shadow:
    0 4px 24px rgba(11, 45, 122, 0.10),
    0 24px 64px rgba(11, 45, 122, 0.12);
  border: 1px solid rgba(0, 60, 126, 0.06);
  padding: 24px 28px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .25s cubic-bezier(0.16, 1, 0.3, 1);
  /* header (z-index:1000) を含むコンテンツより必ず上に重ねる
     Leaflet コントロール (z-index:1000) / sticky な lg-section-nav (z-index:30) より優先 */
  z-index: 1500;
  display: grid;
  gap: 24px;
  max-width: calc(100vw - 80px);
  /* 画面外に出ないよう内部スクロール */
  max-height: calc(100vh - 140px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 60, 126, 0.25) transparent;
}
.mega-menu::-webkit-scrollbar { width: 6px; }
.mega-menu::-webkit-scrollbar-track { background: transparent; }
.mega-menu::-webkit-scrollbar-thumb {
  background: rgba(0, 60, 126, 0.25);
  border-radius: 999px;
}
.pc-nav__item:hover > .mega-menu,
.pc-nav__item:focus-within > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* mega-menu の z-index は .site-header(z-index:1000) のスタッキングコンテキスト内で効くため、
   外側の CpriverSideRail(z-index:1100) には勝てない。展開中だけヘッダーごと前面に上げる */
.site-header:has(.pc-nav__item:hover > .mega-menu),
.site-header:has(.pc-nav__item:focus-within > .mega-menu) {
  z-index: 1200;
}
.mega-menu__heading {
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--colorLightBase);
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(0, 60, 126, 0.12);
  display: block;
  text-decoration: none;
}
.mega-menu__heading--link {
  transition: color .15s, border-color .15s;
}
.mega-menu__heading--link:hover {
  color: var(--colorAccent);
  border-bottom-color: var(--colorAccent);
}
.mega-menu__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mega-menu__list a {
  display: block;
  padding: 7px 6px;
  text-decoration: none;
  color: #333;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 500;
  line-height: 1.5;
  border-radius: 6px;
  transition: background .15s, color .15s, padding .15s;
  white-space: normal;
  word-break: break-word;
}
.mega-menu__list a:hover {
  background: rgba(0, 60, 126, 0.06);
  color: var(--colorLightBase);
  padding-left: 12px;
}
.mega-menu__list-cta {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 60, 126, 0.08);
}
.mega-menu__list-cta a {
  font-weight: 700;
  color: var(--colorLightBase);
}

/* 寄附をする: 4 カラム (自治体ビジュアルカード / ランキング / 寄付メリット / カテゴリ。最終列はカテゴリ 2 カラム用に拡張) */
.mega-menu--projects {
  grid-template-columns: 260px minmax(224px, 0.9fr) minmax(224px, 1fr) minmax(450px, 1.5fr);
  min-width: 1140px;
  gap: 24px;
  padding: 28px 32px 32px;
  align-items: stretch;
  /* このメニューだけ .site-header 基準（上の .pc-nav__item:has を参照）。ヘッダー左右余白に合わせる */
  left: 40px;
  right: 40px;
  /* 基準がヘッダーなので top:100% だと項目より下がる。他メニュー（項目基準）と同じ距離に見えるよう
     .header-main の下パディング 3%（= header-inner 幅 (100vw - 80px) の 3% = 3vw - 2.4px）を戻す */
  top: calc(100% - 3vw + 2.4px);
}
.site-header.scrolled .mega-menu--projects {
  top: calc(100% - 6px); /* scrolled 時は .header-main の padding が 6px 固定になる */
}

/* カード型メガメニュー: 見出しアイコン (各カラムのタイトルと分かるよう区切り線を付与) */
.mega-menu__heading--icon {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 800;
  color: var(--colorLightBase);
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 2px solid rgba(0, 60, 126, 0.18);
  letter-spacing: 0.02em;
}
.mega-menu__heading-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(0, 60, 126, 0.10);
  color: var(--colorLightBase);
  flex-shrink: 0;
}

/* カードリスト */
.mega-menu__list--cards {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mega-menu__list--cards.mega-menu__list--two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(8, auto);
  grid-auto-flow: column;
  column-gap: 8px;
  row-gap: 6px;
}

/* リンクをカード化 */
.mega-menu__list--cards a.mega-menu__card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid rgba(0, 60, 126, 0.10);
  border-radius: 10px;
  text-decoration: none;
  color: #1a3b6e;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  line-height: 1.35;
  transition: background .15s, color .15s, border-color .15s, padding .15s;
  white-space: normal;
  word-break: break-word;
}
.mega-menu__list--cards a.mega-menu__card:hover {
  background: rgba(0, 60, 126, 0.06);
  border-color: var(--colorLightBase);
  padding-left: 16px;
  color: var(--colorLightBase);
}
.mega-menu__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(0, 60, 126, 0.08);
  color: var(--colorLightBase);
}
.mega-menu__card:hover .mega-menu__card-icon {
  background: rgba(0, 60, 126, 0.14);
}
.mega-menu__card-label {
  flex: 1;
  min-width: 0;
  font-weight: bold;
}
.mega-menu__card-chev {
  flex-shrink: 0;
  color: rgba(0, 60, 126, 0.4);
  transition: transform .15s, color .15s;
}
.mega-menu__card:hover .mega-menu__card-chev {
  color: var(--colorLightBase);
  transform: translateX(2px);
}

/* CTA: プロジェクト一覧 (枠付きピル) */
.mega-menu__cta-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 20px;
  width: 100%;
  background: var(--colorLightBase);
  border: 1.5px solid var(--colorLightBase);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(12px, 0.9vw, 13px);
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 60, 126, 0.18);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}
.mega-menu__cta-button:hover {
  background: #fff;
  color: var(--colorLightBase);
  box-shadow: 0 2px 8px rgba(0, 60, 126, 0.10);
  transform: translateY(-1px);
}
.mega-menu__col > .mega-menu__block + .mega-menu__block {
  margin-top: 20px;
}

/* 自治体から選ぶ: 左ビジュアル特集カード (旧・都道府県スクロールを置換)。
   グリッド先頭の縦長カード。上部は紺、下部に背景写真をフェードで覗かせる。
   背景写真は別途 /tenants/cpriver/assets/img/jichitai/megamenu-jichitai.webp に配置。
   未配置でも紺グラデーションのみで成立する。 */
/* 左カラム: 自治体特集カード(上 75%) + プロジェクト一覧ボタン(下 25%) を縦積み。
   グリッド(align-items: stretch)で列全体の高さに伸びる */
.mega-menu__feature-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.mega-menu__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* スタックの上部 85% を占める (下のボタンが flex:3 で 15%) */
  flex: 17 1 0;
  min-height: 0;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(165deg, #1a6fe0 0%, #1257c0 55%, #0e4aa8 100%);
  box-shadow: 0 10px 30px rgba(0, 60, 126, 0.22);
  transition: transform .2s, box-shadow .2s;
}
.mega-menu__feature:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 60, 126, 0.30);
  color: #fff;
}
.mega-menu__feature-body {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 18px 22px 16px;
}
.mega-menu__feature-icon {
  display: inline-flex;
  align-self: center;
  color: #fff;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 5px rgba(0, 0, 0, 0.35));
}
.mega-menu__feature-heading {
  align-self: center;
  font-size: clamp(19px, 2.6vw, 25px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.38);
}
.mega-menu__feature-rule {
  align-self: center;
  width: 40px;
  height: 2px;
  margin: 10px 0 12px;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 2px;
}
.mega-menu__feature-stat {
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin: 30px 0 2px;
  line-height: 1.15;
  text-align: center;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.38);
}
.mega-menu__feature-stat-label {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
}
.mega-menu__feature-stat-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.mega-menu__feature-stat-num {
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.mega-menu__feature-stat-unit {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 700;
}
.mega-menu__feature-stat-tail {
  margin-top: 2px;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 800;
}
.mega-menu__feature-cta {
  display: inline-flex;
  align-self: stretch;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: auto;
  padding: 11px 22px;
  background: #fff;
  color: #1257c0;
  border-radius: 999px;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform .15s, box-shadow .15s;
}
.mega-menu__feature:hover .mega-menu__feature-cta {
  transform: translateX(2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
}
.mega-menu__feature-photo {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: url('/tenants/cpriver/assets/img/jichitai/megamenu-jichitai.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.mega-menu__feature-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  /* 上部は青のベタ帯で白文字をしっかり読ませ、中〜下はやや薄めて写真を活かす */
  background: linear-gradient(180deg, #1257c0 0%, #1257c0 16%, rgba(18, 87, 192, 0.55) 42%, rgba(18, 87, 192, 0.20) 72%, rgba(18, 87, 192, 0.04) 100%);
}

/* プロジェクト一覧ボタン: 特集カードの下に積む主導線 (スタック下部 15%)。
   白背景・紺文字/アイコンのブロックボタン。ホバーで紺塗りへ反転 */
.mega-menu__projects-button {
  flex: 3 1 0;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: 14px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--colorLightBase, #003C7E);
  background: #fff;
  border: 1.5px solid rgba(0, 60, 126, 0.22);
  font-size: clamp(12.5px, 1.15vw, 14.5px);
  font-weight: 800;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 16px rgba(0, 60, 126, 0.10);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s, border-color .15s;
}
.mega-menu__projects-button:hover {
  background: var(--colorLightBase, #003C7E);
  color: #fff;
  border-color: var(--colorLightBase, #003C7E);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 60, 126, 0.20);
}
.mega-menu__projects-button-icon {
  flex-shrink: 0;
}
.mega-menu__projects-button-chev {
  flex-shrink: 0;
  transition: transform .15s;
}
.mega-menu__projects-button:hover .mega-menu__projects-button-chev {
  transform: translateX(3px);
}

/* 「自治体から選ぶ」動線 (旧グロナビ「自治体を選ぶ」の代替・目立たせる紺バナー) */
.mega-menu__area-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--colorLightBase) 0%, #0B5BB0 100%);
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(0, 60, 126, 0.22);
  transition: transform .15s, box-shadow .15s;
}
.mega-menu__area-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 60, 126, 0.30);
  color: #fff;
}
.mega-menu__area-cta-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.mega-menu__area-cta-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}
.mega-menu__area-cta-title {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 800;
  letter-spacing: 0.02em;
}
.mega-menu__area-cta-sub {
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 600;
  opacity: 0.85;
}
.mega-menu__area-cta-chev {
  flex-shrink: 0;
  opacity: 0.85;
  transition: transform .15s;
}
.mega-menu__area-cta:hover .mega-menu__area-cta-chev {
  transform: translateX(3px);
}

/* 自治体を選ぶ: 6 カラム */
.mega-menu--area {
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 24px;
  min-width: 880px;
}
.mega-menu--area .mega-menu__list a {
  padding: 5px 6px;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  transition: background .2s ease, color .2s ease, padding .28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-menu--area .mega-menu__list a:hover {
  padding-left: 10px;
}

/* 寄付額の表示ボタン (kifuru #toggleAmountDisplay) */
.cpriver-header-amount-toggle {
  position: absolute;
  top: 14px;
  right: 156px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(0, 60, 126, 0.08);
  color: var(--colorLightBase, #003C7E);
  border: none;
  border-radius: 999px;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  z-index: 110;
  transition: background .15s, color .15s;
}
.cpriver-header-amount-toggle:hover {
  background: rgba(0, 60, 126, 0.14);
}
.cpriver-header-amount-toggle.is-loading {
  opacity: 0.6;
  pointer-events: none;
}
.site-header.scrolled .cpriver-header-amount-toggle { display: none; }
@media (max-width: 768px) {
  .cpriver-header-amount-toggle { display: none; }
}

/* セミナー一覧: 軽量ドロップダウン (1 カラム) */
.mega-menu--seminar {
  grid-template-columns: 1fr;
  min-width: 220px;
  padding: 14px 16px;
  gap: 0;
}
.mega-menu--seminar .mega-menu__list a {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  transition: background .2s ease, color .2s ease, padding .28s cubic-bezier(0.16, 1, 0.3, 1);
}
.mega-menu--seminar .mega-menu__list a:hover {
  padding-left: 10px;
}

/* SP・中間幅ではメガメニュー非表示（ハンバーガー / リンク直遷移で代替）
   「寄附をする」は min-width 1140px あり、1200px 未満では画面内に収まらないため */
@media (max-width: 1199px) {
  .mega-menu { display: none !important; }
}
.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* PC: ハンバーガー非表示、ドロワー非表示 */
.btn-hamburger { display: none; }
.sp-nav-drawer { display: none; }

/* Search */
.header__search-wrap { position: relative; display: flex; align-items: center; }
.header__search-icon {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  pointer-events: none; color: #888;
}
.header__search-input {
  width: 210px; height: 40px; padding: 7px 16px 7px 36px;
  border: 1px solid #eee; border-radius: 8px;
  font-size: clamp(12px, 0.9vw, 13px); outline: none; background: #eee;
}
.header__search-input:focus {
  border-color: #0093a5; background: #fff;
  box-shadow: 0 2px 8px rgba(0,147,165,.15);
}

/* 会員登録 */
.btn-join {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(to right, #db7a21, #f1be52);
  color: #fff; font-weight: 700; font-size: clamp(14px, 1.15vw, 16px);
  padding: 10px 30px; border-radius: 80px; border: none; cursor: pointer;
  position: relative; overflow: hidden; z-index: 0; text-decoration: none;
}
.btn-join::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, #f1be52, #db7a21);
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 80px;
}
.btn-join:hover::after {
  opacity: 1;
}

/* ログイン */
.btn-login {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(to right, #09478a, #0093a5);
  color: #fff; font-weight: 700; font-size: clamp(14px, 1.15vw, 16px);
  padding: 10px 22px; border-radius: 80px; border: none; cursor: pointer;
}

/* ─────────────────────────────────
   SCROLLED HEADER
───────────────────────────────── */
.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
/* topbar は display:none ではなく高さ/不透明度を 0 にしてアニメーション */
.site-header.scrolled .topbar {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}
.site-header.scrolled .header-main { padding: 6px 0; }
.site-header.scrolled .logo-wrap { width: 80px; height: 25px; }
.site-header.scrolled nav a { font-size: clamp(12px, 1.15vw, 14px); padding: 4px 8px; }
.site-header.scrolled .btn-join,
.site-header.scrolled .btn-login { font-size: clamp(12px, 0.9vw, 13px); padding: 6px 16px; }

/* ─────────────────────────────────
   BREADCRUMB
───────────────────────────────── */
.cpriver-breadcrumb {
  background: #f8f8f8;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  font-size: clamp(12px, 1.15vw, 14px);
  text-align: left;
}
.cpriver-breadcrumb__list {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
}
.cpriver-breadcrumb__list a,
.cpriver-breadcrumb__list span {
  font-size: clamp(12px, 1.15vw, 14px);
}
.cpriver-breadcrumb__item {
  display: flex;
  align-items: center;
  color: #999;
}
.cpriver-breadcrumb__item:not(:last-child)::after {
  content: '>';
  margin: 0 8px;
  color: #ccc;
  font-size: clamp(10px, 0.9vw, 11px);
}
.cpriver-breadcrumb__link {
  text-decoration: none;
  color: #555;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 500;
  padding: 0;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.cpriver-breadcrumb__home-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  filter: brightness(0) saturate(100%) invert(55%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(95%) contrast(90%);
}
.cpriver-breadcrumb__link:hover {
  text-decoration: underline;
}
.cpriver-breadcrumb__current {
  color: #888;
  font-weight: 500;
  font-size: clamp(12px, 1.15vw, 14px);
}
@media (max-width: 1340px) {
  .cpriver-breadcrumb__list {
    padding-left: 3%;
    padding-right: 3%;
  }
}
@media (max-width: 768px) {
  .cpriver-breadcrumb {
    padding: 8px 0;
    font-size: clamp(11px, 0.9vw, 12px);
  }
  .cpriver-breadcrumb__item:not(:last-child)::after {
    margin: 0 6px;
  }
}

/* ─────────────────────────────────
   HERO
───────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 680px;
  padding-left: 40px;
}

.hero-image {
  position: absolute;
  left: 420px;
  right: 0;
  top: 0;
  bottom: auto;
  height: auto;
  overflow: visible;
  --c-slide-w: min(960px, calc(100% - 80px));
  --c-gap: 20px;
}

.hero-left {
  position: relative;
  z-index: 2;
  width: 430px;
  padding-top: 40px;
  padding-bottom: 48px;
}

.hero-subtitle {
  font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); color: #333;
  line-height: 1.5; margin-bottom: 10px;
  background: #fff;
  background: #fff;
  display: inline-block;
  padding: 4px 10px 4px 0px;
  border-radius: 5px;
}

.hero-h1 {
  font-weight: 900; font-size: clamp(30px, 4vw, 41px);
  line-height: 1.4; color: #2c3e50;
  margin-bottom: 22px;
  background: #fff;
  padding: 8px 0 12px 0;
  border-radius: 0 10px 10px 0;
}
.hero-h1-river {
  display: inline-block; vertical-align: middle;
  width: 113px; height: 30px; margin-left: 6px;
}

.hero-desc {
  background: #fff;
  display: inline-block;
  max-width: 360px;
  padding: 6px 0;
  border-radius: 5px;
  margin-bottom: 10%;
  font-size: clamp(14px, 4vw, 16px);
  font-weight: bold;
}

.hero-bullets { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.hero-bullet  { display: flex; align-items: center; gap: 10px; }
.bullet-icon  { width: 22px; height: 22px; flex-shrink: 0; margin-top: 3px; }
.bullet-text  { font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); color: #333; line-height: 1.5; }
.bullet-text .teal { color: #0093a5; font-weight:bold;}

/* 一枚絵のバナーボタン。webp だけを見せるので背景・枠は持たせない。
   高さは指定せず画像のアスペクト比(672:216)に従わせる。 */
.btn-sim {
  display: block;
  width: 300px;
  max-width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  /* webp は透過付きなので drop-shadow が角丸の形に沿う。
     hover で影を消しつつ影の分だけ下げると、押し込まれたように見える。 */
  filter: drop-shadow(0 4px 0 rgba(0, 0, 0, 0.22));
  transition: transform 0.12s ease, filter 0.12s ease, opacity 0.12s ease;
}
.btn-sim:hover {
  transform: translateY(4px);
  filter: drop-shadow(0 0 0 rgba(0, 0, 0, 0.22));
  opacity: 0.9;
}
/* img に width/height 属性を持たせない代わりに、比率と読み込み前の高さを CSS で確保する */
.btn-sim img { width: 100%; height: auto; aspect-ratio: 672 / 216; display: block; }

/* ─────────────────────────────────
   CAROUSEL
───────────────────────────────── */
.carousel      { position: relative; width: 100%; height: clamp(360px, calc((100vw - 420px) * 2 / 3), 540px); overflow: hidden; }
.c-slides      { display: flex; height: 100%; will-change: transform; }
.c-slide       { position: relative; flex: 0 0 var(--c-slide-w); height: 100%; margin-right: var(--c-gap); display: block; text-decoration: none; cursor: pointer; border-radius: 20px; overflow: hidden; box-shadow: 0 18px 46px rgba(15, 49, 87, 0.18), 0 4px 16px rgba(15, 49, 87, 0.12); }
.c-slide::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42); pointer-events: none; }
.c-slide img   { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.c-next        {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid #0093a5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  padding: 0;
  transition: background .2s;
}
.c-next:hover { background: #f0fafb; }
.c-next svg   { width: 18px; height: 18px; }

.slide-overlay {
  position: absolute; bottom: 16px; left: 16px; right: 16px;
  max-width: max-content;
  margin: 0 auto;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid #0093a5;
  border-radius: 10px;
  white-space: nowrap;
  transition: background .2s;
}
.c-slide:hover .slide-overlay { background: #f0fafb; }
.ovl-arrow { flex-shrink: 0; display: flex; align-items: center; }
.ovl-loc  { font-weight: 700; font-size: clamp(12px, 1.15vw, 14px); color: #4f4f4f; line-height: 1.35; flex-shrink: 0; white-space: nowrap; }
.ovl-desc { font-weight: 700; font-size: clamp(15px, 1.4vw, 18px); color: #333; text-decoration: underline; text-decoration-skip-ink: none; }

@media (max-width: 768px) {
  .slide-overlay {
    gap: 8px;
    padding: 10px 14px;
    white-space: normal;
  }
  .ovl-loc  { font-size: clamp(11px, 0.9vw, 12px); }
  .ovl-desc { font-size: clamp(12px, 1.15vw, 14px); }
}

@media (max-width: 480px) {
  .slide-overlay {
    gap: 6px;
    padding: 8px 12px;
    border-radius: 8px;
  }
  .ovl-loc  { font-size: clamp(10px, 0.9vw, 11px); }
  .ovl-desc { font-size: clamp(12px, 0.9vw, 13px); }
}

/* ─────────────────────────────────
   CAROUSEL DOTS
───────────────────────────────── */
.hero-dots {
  display: flex; justify-content: center; align-items: center;
  gap: 8px; height: 42px;
  padding-left: 0;
  width: var(--c-slide-w);
}
.c-dot {
  width: 10px; height: 10px; border-radius: 50%;
  border: none; padding: 0; background: #ccc; cursor: pointer;
  transition: background .3s;
}
.c-dot.active { background: #0093a5; }

/* ─────────────────────────────────
   HERO STORY
───────────────────────────────── */
/* firstview → hero-story の区切り: 凹カーブ + 流線2本でアクア帯へ繋ぐ。
   自身の高さ分だけ firstview 側へ食い込ませる(透過・クリック非阻害) */
.hero-story-divider {
  position: relative;
  margin-top: calc(-1 * clamp(36px, 5.5vw, 80px));
  pointer-events: none;
}
.hero-story-divider svg {
  display: block;
  width: 100%;
  height: clamp(36px, 5.5vw, 80px);
}
.hero-story-divider__fill {
  fill: #f3fbfd;
}
.hero-story-divider__stream {
  fill: none;
  stroke-linecap: round;
}
.hero-story-divider__stream--1 {
  stroke: #59c1c7;
  stroke-width: 2;
  opacity: 0.5;
}
.hero-story-divider__stream--2 {
  stroke: #0093a5;
  stroke-width: 1.5;
  opacity: 0.25;
}
.hero-story {
  margin: 0 0 clamp(40px, 6vw, 88px);
  padding: clamp(24px, 3vw, 44px) 100px;
  background:
    radial-gradient(circle at 8% 30%, rgba(170, 220, 240, 0.35), transparent 35%),
    radial-gradient(circle at 92% 70%, rgba(180, 225, 240, 0.32), transparent 40%),
    linear-gradient(180deg, #f3fbfd 0%, #e8f5fa 50%, #f3fbfd 100%);
}
.hero-story__head {
  text-align: center;
  margin-bottom: clamp(24px, 3vw, 40px);
}
.hero-story__head-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2vw, 28px);
}
.hero-story__head-line {
  width: clamp(48px, 8vw, 110px);
  height: 1px;
  background: linear-gradient(90deg, transparent, #8fc6d8);
}
.hero-story__head-line--r {
  background: linear-gradient(90deg, #8fc6d8, transparent);
}
.hero-story__head-title {
  margin: 0;
  color: #0f3b66;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
.hero-story__head-lead {
  margin: 12px 0 0;
  color: #4a5568;
  font-size: clamp(12px, 1.1vw, 14px);
  font-weight: 500;
  line-height: 1.8;
}
.hero-story__panel {
  display: flex;
  align-items: stretch;
  gap: clamp(18px, 2.4vw, 36px);
  border-radius: 24px;
  padding: clamp(20px, 2.4vw, 36px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(232, 247, 251, 0.66) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    0 2px 4px rgba(15, 32, 60, 0.05),
    0 18px 36px rgba(15, 76, 129, 0.14),
    0 48px 96px rgba(15, 76, 129, 0.24);
}
.hero-story__thumbs {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  flex: 0 0 min(360px, 31vw);
  width: min(360px, 31vw);
  border-top: 1px solid rgba(15, 59, 102, 0.14);
}
.hero-story__thumb {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 14px;
  min-height: 0;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 59, 102, 0.14);
  color: inherit;
  text-align: left;
  text-decoration: none;
  transition: background-color 0.24s ease, color 0.24s ease;
}
.hero-story__thumb::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 2px;
  background: #0093a5;
  opacity: 0;
  transform: scaleY(0.35);
  transition: opacity 0.24s ease, transform 0.24s ease;
}
.hero-story__thumb:hover,
.hero-story__thumb:focus-visible,
.hero-story__thumb.is-active {
  background: rgba(220, 244, 248, 0.72);
}
.hero-story__thumb.is-active::before {
  opacity: 1;
  transform: scaleY(1);
}
.hero-story__thumb:focus-visible {
  outline: 2px solid #0093a5;
  outline-offset: -2px;
}
.hero-story__thumb-media {
  display: none;
}
.hero-story__thumb-number {
  align-self: start;
  padding-top: 3px;
  color: #68a9b7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}
.hero-story__thumb-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  overflow: hidden;
}
.hero-story__thumb-title {
  color: #0f3b66;
  font-size: clamp(16px, 1.35vw, 20px);
  font-weight: 800;
  line-height: 1.4;
  white-space: normal;
}
.hero-story__thumb-text {
  color: #4a6473;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  white-space: normal;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.24s ease;
}
.hero-story__thumb.is-active .hero-story__thumb-text {
  opacity: 1;
}
.hero-story__thumb-arrow,
.hero-story__copy-arrow {
  width: 9px;
  height: 9px;
  border-top: 2px solid #0093a5;
  border-right: 2px solid #0093a5;
  transform: rotate(45deg);
}
.hero-story__media {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 3 / 2;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(15, 76, 129, 0.16);
}
.hero-story__visual {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  background: #dceef3;
}
.hero-story__visual::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: rgba(3, 26, 48, 0.2);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-story__media:hover .hero-story__visual::after,
.hero-story__media:focus-visible .hero-story__visual::after {
  opacity: 1;
}
.hero-story__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transform: scale(1.02);
  transform-origin: 50% 35%;
  transition: opacity 0.9s ease;
}
.hero-story__image:nth-child(2n) {
  transform-origin: 68% 60%;
}
.hero-story__image:nth-child(3n) {
  transform-origin: 32% 58%;
}
/* is-active → is-leaving でアニメーション指定を変えないことで、
   退場中もケンバーンズが途切れず継続する（逆戻りのガタツキ防止） */
.hero-story__image.is-active,
.hero-story__image.is-leaving {
  /* 5s = オート切替4s + クロスフェード分。表示中ずっとズームし続ける */
  animation: hero-story-kenburns 5s linear forwards;
}
.hero-story__image.is-active {
  opacity: 1;
}
@keyframes hero-story-kenburns {
  from { transform: scale(1.02); }
  to { transform: scale(1.07); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-story__image.is-active,
  .hero-story__image.is-leaving {
    animation: none;
  }
  .hero-story__image.is-active {
    transform: scale(1);
  }
}
.hero-story__copy {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding:
    clamp(80px, 8vw, 120px)
    clamp(20px, 2.2vw, 30px)
    clamp(20px, 2.2vw, 30px);
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.88) 48%,
    rgba(255, 255, 255, 0.97) 100%
  );
}
.hero-story__copy-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
}
.hero-story__label {
  margin: 0 0 8px;
  padding-left: 10px;
  border-left: 3px solid #0093a5;
  color: #0093a5;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.5;
}
.hero-story__title {
  color: #0f3b66;
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0;
}
.hero-story__description {
  max-width: 620px;
  margin-top: 8px;
  color: #526b79;
  font-size: clamp(12px, 1vw, 14px);
  font-weight: 500;
  line-height: 1.7;
}
.hero-story__copy-arrow {
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  margin-right: 4px;
  border-color: #0093a5;
}
@media (max-width: 768px) {
  .hero-story {
    padding: 20px 12px 24px;
  }
  .hero-story__panel {
    flex-direction: column;
    gap: 14px;
    padding: 12px;
    border-radius: 16px;
  }
  .hero-story__media {
    min-height: 0;
    order: 1;
  }
  .hero-story__copy {
    padding:
      clamp(48px, 14vw, 72px)
      clamp(16px, 5vw, 24px)
      clamp(16px, 5vw, 24px);
  }
  .hero-story__visual {
    position: absolute;
  }
  .hero-story__title {
    font-size: clamp(18px, 5.2vw, 24px);
  }
  .hero-story__description {
    font-size: 12px;
    line-height: 1.7;
  }
  .hero-story__thumbs {
    display: grid;
    grid-template-rows: none;
    grid-template-columns: 1fr;
    order: 2;
    flex: none;
    width: 100%;
    border-top: 0;
  }
  .hero-story__thumb {
    grid-template-columns: 92px 30px minmax(0, 1fr) 18px;
    min-height: 82px;
    padding: 8px 12px 8px 8px;
    border: 1px solid rgba(15, 59, 102, 0.12);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.82);
  }
  .hero-story__thumb-media {
    display: block;
    height: 64px;
    overflow: hidden;
    border-radius: 7px;
  }
  .hero-story__thumb-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .hero-story__thumb-number {
    align-self: center;
    padding-top: 0;
  }
  .hero-story__thumb-text {
    display: none;
  }
  .hero-story__thumb::before {
    display: none;
  }
}

/* ─────────────────────────────────
   CHAT FAB
───────────────────────────────── */
.chat-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 70px; height: 70px; border-radius: 50%;
  background: linear-gradient(135deg, #09478a, #0093a5);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,60,126,.4);
  transition: transform .2s;
}
.chat-fab:hover { transform: scale(1.1); }
.chat-fab svg { width: 28px; height: 28px; fill: #fff; }

/* ─────────────────────────────────
   DISASTER BANNER
───────────────────────────────── */
:root {
  --colorAccent: #DC2626;
  --colorPaleAccent: #FFD6D6;
  /* cpriver は青ベース。oem-base 既定の #168EA1 を紺色に上書き */
  --colorLightBase: #003C7E;
  /* 右サイドレール幅 (CpriverSideRail.module.css と共有) */
  --cprv-siderail-w: 92px;
}

.bg_half_pale_pink {
  background: linear-gradient(transparent 55%, var(--colorPaleAccent) 50%);
  position: relative;
  z-index: 1;
}
.disaster-wrap { padding: 30px 40px 50px; max-width: 1400px; margin: 0 auto; }
.hero-image .disaster-wrap {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--c-gap) 28px 0;
}
.disaster-support {
  width: 100%;
  overflow: hidden;
  border: 2px solid var(--colorAccent);
  display: flex;
  background-color: #fff;
}
.disaster-support__title {
  background-color: var(--colorAccent);
  color: #fff;
  padding: 1% 3%;
  font-weight: bold;
  font-size: clamp(14px, 1.5vw, 16px);
  min-width: 7em;
  text-align: center;
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  text-decoration: none;
}
.disaster-support__title__sub {
  display: none;
}
.disaster-support__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  width: 100%;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
.disaster-support__text {
  padding: 0 20px;
  font-size: clamp(14px, 1.5vw, 16px);
  flex-grow: 1;
  text-decoration: underline;
  white-space: normal;
  font-weight: bold;
  color: #333;
}
.disaster-support__text:hover { text-decoration: none; }
.disaster-support__status {
  background-color: var(--colorAccent);
  color: #fff;
  padding: 6px 30px;
  font-weight: bold;
  font-size: clamp(12px, 1.15vw, 14px);
  text-align: center;
  border-radius: 4px;
  letter-spacing: 1px;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
}
@media (max-width: 1000px) {
  .disaster-support__title { min-width: inherit; flex-direction: column; }
}
@media (max-width: 768px) {
  .disaster-support__content { flex-direction: row; align-items: center; }
  .disaster-support__text { padding: 10px; }
  .disaster-support__status { margin: 0 10px; padding: 10px; font-size: clamp(11px, 0.9vw, 12px); }
}
@media (max-width: 600px) {
  .disaster-support__title__sub { display: block; width: 3em; margin: 3px auto; font-size: clamp(11px, 0.9vw, 12px); color: #fff; font-weight: bold; }
  .disaster-support__status { display: none; }
}

/* ─────────────────────────────────
   BANNERS 4列
───────────────────────────────── */
.banners-wrap { padding: 0 40px 48px; max-width: 1400px; margin: 0 auto; }
.banners-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.banners-grid a {
  transition: opacity 0.3s ease;
}
@media (hover: hover) {
  .banners-grid a:hover {
    opacity: 0.8;
  }
}
.banner-box {
  background: #e5e5e5; border-radius: 8px;
  aspect-ratio: 3 / 2;
  display: flex; align-items: center; justify-content: center;
  font-size: clamp(12px, 1.15vw, 14px); color: #999;
}

/* ─────────────────────────────────
   SECOND VIEW / DONATION CARD
───────────────────────────────── */
.second-view { padding: 0px 0px 30px; max-width: 930px; margin: 0 auto; }

.donation-card {
  position: relative;
  border: 3px solid #0093a5;
  border-radius: 16px;
  padding: 28px 40px 36px;
  margin-bottom: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #fff;
}
.donation-card::before {
  content: '';
  position: absolute; bottom: -27px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 26px solid transparent;
  border-right: 26px solid transparent;
  border-top: 26px solid #0093a5;
}
.donation-card::after {
  content: '';
  position: absolute; bottom: -22px; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 22px solid transparent;
  border-right: 22px solid transparent;
  border-top: 22px solid #fff;
}
.donation-card__title {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(26px, 2.6vw, 32px); font-weight: 700; color: #333;
}
.donation-card__title img { height: 34px; flex-shrink: 0; }
.donation-card__amount { display: flex; align-items: center; gap: 20px; }
.donation-card__kifu { height: 80px; flex-shrink: 0; }
.donation-card__number { font-size: clamp(48px, 6vw, 82px); font-weight: 900; color: #DC2626; line-height: 1; }
.donation-card__number span { font-size: clamp(24px, 2.6vw, 30px); vertical-align: baseline; font-weight: 900; }

/* ─────────────────────────────────
   SERVICE SECTIONS (自治体・企業)
───────────────────────────────── */
.service-section {
  display: grid;
  align-items: stretch;
  width: 100%;
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(15, 32, 60, 0.04),
    0 12px 32px rgba(15, 76, 129, 0.10),
    0 28px 60px rgba(15, 76, 129, 0.08);
}
.service-section--jichitai { grid-template-columns: 3fr 2fr; margin-bottom: 8%; }
.service-section--kigyo    { grid-template-columns: 2fr 3fr; margin-top: 8%; }

.service-photo {
  display: block;
  position: relative;
  z-index: 2;
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.service-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-photo__badge {
  position: absolute;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  background: rgba(255,255,255,.82);
  border-radius: 10px;
  padding: 2% 2.5%;
  line-height: 1.2;
}
.service-section--jichitai .service-photo__badge { top: 5%; left: 3%; }
.service-section--kigyo .service-photo__badge { bottom: 5%; left: 3%; }

.service-photo__badge-label { 
  padding-right: 10px;
  font-size: clamp(14px, 2vw, 26px); font-weight: 700; color: #111; line-height: 1.35; 
}
.service-photo__badge-count { font-size: clamp(42px, 6vw, 78px); font-weight: 900; color: #DC2626; line-height: 1; }
.service-photo__badge-unit  { font-size: clamp(18px, 2.7vw, 35px); font-weight: 700; color: #111; line-height: 1.4; }

.service-section--jichitai .service-text { padding: 60px 80px 60px 60px; }
.service-section--kigyo .service-text { padding: 60px 60px 60px 30%; }

.service-text {
  position: relative;
  z-index: 3;
  display: flex; flex-direction: column; justify-content: center; gap: 20px;
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
}
.service-text__heading { font-size: clamp(30px, 4vw, 41px); font-weight: 900; color: #333; line-height: 62px; }
.service-text__tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #0093a5;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0;
  border: none;
  width: fit-content;
}
.service-text__tag::before,
.service-text__tag::after {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: #0093a5;
}
.service-text__list {
  list-style: none; display: flex; flex-direction: column; gap: 14px;
  margin-bottom: 15px;
  margin-top: 10px;
}
.service-text__item {
  display: flex; align-items: center; gap: 10px;
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 700; color: #333; line-height: 1.5;
}
.service-text__item svg { flex-shrink: 0; margin-top: 1px; }

.btn-detail {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(to right, #09478a, #0093a5);
  color: #fff; font-weight: 700; font-size: clamp(14px, 1.15vw, 16px);
  padding: 24px 15%; border-radius: 8px; border: none;
  cursor: pointer; text-decoration: none; width: fit-content;
  position: relative; overflow: hidden; z-index: 0;
}
.btn-detail::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to right, #0093a5, #09478a);
  opacity: 0;
  transition: opacity 0.4s ease;
}
.btn-detail:hover::after {
  opacity: 1;
}

/* ─────────────────────────────────
   SEPARATOR
───────────────────────────────── */
.river-separator {
  display: flex; justify-content: center; align-items: center;
  width: 100%;
  position: relative; z-index: 10;
  margin-top: -12%;
  margin-bottom: -12%;
}
.river-separator__wrap {
  position: relative;
  width: min(380px, 60vw);
  height: min(380px, 60vw);
  display: flex; align-items: center; justify-content: center;
}
.river-separator__arrow {
  width: 100%; height: 100%;
  animation: spin-slow 30s linear infinite;
}
.river-separator__logo {
  position: absolute;
  width: 38.95%;
  height: auto;
  z-index: 1;
}
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ─────────────────────────────────
   FIXED PAGE
───────────────────────────────── */
.fixed-page { padding: 0 0 40px; }

.fixed-page__eye-catch { margin-bottom: 24px; }
.fixed-page__eye-catch-img {
  width: 100%; 
  object-fit: contain; 
}

/* .fixed-page__title {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 700;
  margin-bottom: 16px;
  border-left: 4px solid #0093a5; padding-left: 12px;
} */
.fixed-page__title { 
  background: #f3f3f3;
  padding: 1em 1em;
  border-left: 5px solid var(--colorLightBase);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: bold;
  margin-bottom: 1em;
  line-height: 1.2;
}

.fixed-page__description {
  line-height: 1.8;
  margin-bottom: 24px;
}

.fixed-page__block {
  margin-bottom: 32px;
}
.fixed-page__text {
  font-size: clamp(13px, 1.15vw, 15px); line-height: 1.9; color: #333; margin-bottom: 16px;
}
.fixed-page__photo { margin-bottom: 16px; }
.fixed-page__photo-img {
  width: 100%; border-radius: 6px;
  border: 1px solid #eee;
}

.fixed-page__movie { margin-bottom: 32px; }
.fixed-page__movie-wrap {
  position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden;
  border-radius: 8px;
}
.fixed-page__movie-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%; border: none;
}

.fixed-page__publisher {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; background: #f5f5f5; border-radius: 6px;
  font-size: clamp(12px, 0.9vw, 13px); color: #666; margin-top: 24px;
}
.fixed-page__publisher-name { font-weight: 700; color: #333; }

/* サイドバー アクティブ */
.sidebar-menu__item.is-active > .sidebar-menu__link {
  color: #0093a5; font-weight: 700;
  border-left: 3px solid #0093a5; padding-left: 7px;
}

/* ─────────────────────────────────
   FOOTER
───────────────────────────────── */
.cpriver-footer {
  background: #003C7E;
  color: #fff;
  padding: 60px 40px 0;
  margin-top: 80px;
}

.cpriver-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 48px;
}

.cpriver-footer__col-title {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.3);
}
.cpriver-footer__col-title--mt {
  margin-top: 32px;
}

/* カテゴリー列: 2列表示 */
.cpriver-footer__category-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.cpriver-footer__col-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cpriver-footer__col-link {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: clamp(12px, 1.15vw, 14px);
  transition: color .15s;
}
.cpriver-footer__col-link:hover { color: #fff; }

/* 最下部バー */
.cpriver-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.2);
  padding: 24px 0;
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  flex-wrap: wrap;
  gap: 16px;
}

.cpriver-footer__bottom-left {
  display: flex;
  align-items: center;
  gap: 24px;
}

.cpriver-footer__bottom-link {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
  font-size: clamp(12px, 0.9vw, 13px);
  transition: color .15s;
}
.cpriver-footer__bottom-link:hover { color: #fff; }

.cpriver-footer__bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cpriver-footer__logo-wrap {
  width: 120px; height: 38px;
  background-image: url('/tenants/cpriver/assets/img/common/logo-long.svg');
  background-size: contain; background-repeat: no-repeat;
  filter: brightness(0) invert(1);
}

.cpriver-footer__social {
  color: rgba(255,255,255,0.6);
  transition: color .15s;
}
.cpriver-footer__social:hover { color: #fff; }

.cpriver-footer__copyright {
  font-size: clamp(12px, 0.9vw, 13px);
  color: rgba(255,255,255,0.6);
}

/* ─── 企業版ふるさと納税対象自治体セクション ─── */
.municipalities-section__body {
  display: flex;
  gap: 0;
  align-items: stretch;
  margin-top: 16px;
  background: #f3f3f3;
  border: 6px solid #f3f3f3;
  border-radius: 10px;
  overflow: hidden;
}

.municipalities-section__map {
  flex: 0 0 auto;
  width: 384px;
}

.municipalities-section__map-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.municipalities-section__text {
  flex: 1;
  font-size: clamp(14px, 1.15vw, 16px);
  line-height: 1.75;
  color: #333;
  padding: 32px 40px;
}

.municipalities-section__text p {
  margin-bottom: 1em;
}

.municipalities-section__text .button {
  display: inline-flex;
  align-items: center;
  padding: 4px 18px 4px;
  text-decoration: none;
  border-radius: 30px;
  background-color: #fff;
  font-size: clamp(14px, 1.15vw, 16px);
  color: var(--colorLightBase);
  border: 1px solid var(--colorLightBase);
  position: relative;
  white-space: nowrap;
  transition: all 0.3s ease;
  margin-top: 16px;
}

.municipalities-section__text .button:hover {
  background-color: var(--colorLightBase);
  color: #fff;
}

.municipalities-section__text .arrow::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
  margin-left: 8px;
}

/* ─── 新着・更新プロジェクト 寄付件数 ─── */
.project-section .title-block__title-text {
  margin-right: 50px;
}

.project-section__dn-count {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  position: relative;
  top: -18px;
}

.project-section__dn-count-label {
  color: #333;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: bold;
}

.project-section__dn-count-num {
  color: #db3434;
  font-size: clamp(40px, 6vw, 69px);
  font-weight: 900;
  line-height: 1;
}

.project-section__dn-count-unit {
  color: #333;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: bold;
}

/* セミナー参加者数 */
.news-seminars .title-block__title-text {
  margin-right: 50px;
}

.title-block__title-count {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  position: relative;
  top: -18px;
}

.title-block__title-count-number {
  color: #db3434;
  font-size: clamp(40px, 6vw, 69px);
  font-weight: 900;
  line-height: 1;
}

.title-block__title-count-unit {
  color: #333;
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: bold;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE STYLES
   breakpoints: 1024px (タブレット) / 768px (スマホ) / 480px (スマホ小)
═══════════════════════════════════════════════════════ */

/* ─── ハンバーガーボタン（PCでは非表示） ─── */
.btn-hamburger { display: none; }
.sp-nav-drawer { display: none; }

/* ═══ タブレット ≤1024px ═══ */
@media (max-width: 1024px) {
  .header-inner { margin: 0 24px; }
  nav a { font-size: clamp(13px, 1.15vw, 15px); padding: 4px 8px; }

  .hero-section { padding-left: 24px; }
  .hero-image   {
    left: 320px;
    height: auto;
    --c-slide-w: calc(100% - 50px);
    --c-gap: 12px;
  }
  .carousel     { height: clamp(320px, calc((100vw - 320px) * 2 / 3), 480px); }
  .hero-left    { width: 330px; }
  .hero-dots    { padding-left: 0; }
  .hero-h1      { font-size: clamp(26px, 2.6vw, 32px); }
  .hero-subtitle { font-size: clamp(13px, 1.15vw, 15px); }
  .bullet-text  { font-size: clamp(13px, 1.15vw, 15px); }
  .btn-sim      { width: 260px; }

  .banners-wrap  { padding: 0 24px 40px; }
  .disaster-wrap { padding: 20px 24px 40px; }

  .donation-card__number { font-size: clamp(48px, 7vw, 72px); }

  /* サービスセクション：余白を詰める */
  .service-section--jichitai .service-text { padding: 40px 40px 40px 48px; }
  .service-section--kigyo    .service-text { padding: 40px 40px 40px 24%; }
  .service-text__heading { font-size: clamp(26px, 2.6vw, 32px); }
  .service-text__item    { font-size: clamp(14px, 1.4vw, 17px); }

  .cpriver-footer { padding: 48px 24px 0; }
  .cpriver-footer__grid { gap: 24px; }
}

/* ═══ スマホ ≤768px ═══ */
@media (max-width: 768px) {
  .municipalities-section__body {
    flex-direction: column;
  }

  .municipalities-section__map {
    width: 100%;
    max-height: 260px;
  }

  /* ── ヘッダー ── */
  .header-inner { margin: 0 16px; }
  .topbar       { padding: 10px 0 6px; font-size: clamp(10px, 0.9vw, 11px); }
  .header-main  { padding-bottom: 12px; gap: 10px; }

  /* PC ナビを隠してハンバーガーに切り替え */
  .pc-nav { display: none; }
  .btn-hamburger {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 36px; height: 22px;
    background: none; border: none; cursor: pointer; padding: 0;
    flex-shrink: 0;
  }
  .btn-hamburger span {
    display: block; width: 100%; height: 2px;
    background: #333; border-radius: 2px;
    transition: transform 0.2s, opacity 0.2s;
  }
  .btn-hamburger.open span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
  .btn-hamburger.open span:nth-child(2) { opacity: 0; }
  .btn-hamburger.open span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

  /* スマホナビドロワー */
  .sp-nav-drawer {
    flex-direction: column;
    width: 100%;
    border-top: 1px solid #eee;
    padding: 4px 0 12px;
  }
  .sp-nav-drawer.open { display: flex; }
  .sp-nav-drawer a {
    font-size: clamp(13px, 1.15vw, 15px); font-weight: 700; color: #333;
    padding: 13px 4px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    display: block;
  }
  .sp-nav-drawer a:hover { color: #0093a5; }

  /* ボタンはSPではドロワーに集約して非表示 */
  .btn-join, .btn-login { display: none; }
  .header__search-wrap { order: -1; }

  /* scrolled時のSP対応 */
  header.scrolled .header-main { padding: 6px 0; }
  header.scrolled .logo-wrap { width: 80px; height: 25px; }

  /* ── ヒーロー：縦積みに切り替え ── */
  .hero-section {
    position: static;
    min-height: auto;
    padding-left: 0;
    display: flex;
    flex-direction: column;  /* 画像(1st)→テキスト(2nd) */
  }
  .hero-image {
    position: static;
    left: auto; right: auto; top: auto; bottom: auto;
    width: 100%;
    height: auto;
    --c-slide-w: calc(100% - 50px);
    --c-gap: 12px;
    border-radius: 0;
    overflow: visible;
  }
  .carousel { height: min(260px, calc(100vw * 2 / 3)); }
  .hero-left {
    position: static;
    width: 100%;
    padding: 24px 16px 20px;
  }
  .hero-h1      { font-size: clamp(22px, 2.6vw, 28px); padding: 6px 0 10px; }
  .hero-h1-river { width: 90px; height: 24px; }
  .hero-subtitle { font-size: clamp(12px, 1.15vw, 14px); margin-bottom: 8px; }
  .bullet-text  { font-size: clamp(12px, 1.15vw, 14px); }
  .hero-bullets { gap: 10px; margin-bottom: 20px; }
  .btn-sim      { width: 100%; max-width: 320px; }

  .hero-dots { padding-left: 0; height: 44px; }

  /* ── バナー ── */
  .banners-wrap { padding: 0 16px 28px; }
  .banners-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* ── ディザスターバナー ── */
  .disaster-wrap { padding: 16px 16px 28px; }

  /* ── 寄付実績カード ── */
  .second-view   { padding: 0 16px 16px; }
  .donation-card { padding: 20px 16px 28px; gap: 12px; }
  .donation-card__title {
    font-size: clamp(14px, 4.5vw, 20px);
    flex-wrap: wrap;
    gap: 8px;
  }
  .donation-card__title img { height: clamp(18px, 5vw, 26px); }
  .donation-card__amount    { gap: 10px; flex-wrap: wrap; }
  .donation-card__kifu      { height: clamp(36px, 10vw, 56px); }
  .donation-card__number    { font-size: clamp(36px, 11vw, 56px); }
  .donation-card__number span { font-size: clamp(15px, 4vw, 22px); }

  /* ── サービスセクション（自治体・企業）── キー修正：潜り込み解消 ── */
  .service-section--jichitai,
  .service-section--kigyo {
    grid-template-columns: 1fr;   /* 2列→1列 */
    margin-bottom: 40px;
    margin-top: 0;
  }

  /* 自治体：写真(order:1)を上、テキスト(order:2)を下 */
  .service-section--jichitai .service-photo { order: 1; }
  .service-section--jichitai .service-text  { order: 2; }

  /* 企業：写真(order:1)を上、テキスト(order:2)を下 */
  .service-section--kigyo .service-photo { order: 1; }
  .service-section--kigyo .service-text  { order: 2; }

  /* padding リセット：40% 左パディングによる潜り込みを解消 */
  .service-section--jichitai .service-text,
  .service-section--kigyo    .service-text {
    padding: 24px 20px 32px;
  }

  .service-photo           { aspect-ratio: 16 / 9; }
  .service-text__heading   { font-size: clamp(22px, 6.5vw, 32px); line-height: 1.4; }
  .service-text__tag       { font-size: clamp(13px, 1.15vw, 15px); }
  .service-text__item      { font-size: clamp(13px, 1.15vw, 15px); }

  /* ── セパレーター ── */
  .river-separator { margin-top: -40px; margin-bottom: -40px; }

  /* ── フッター ── */
  .cpriver-footer { padding: 40px 16px 0; margin-top: 48px; }
  .cpriver-footer__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
  }
  .cpriver-footer__category-list {
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
  }
  .cpriver-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .cpriver-footer__bottom-left { flex-wrap: wrap; gap: 16px; }
  .cpriver-footer__bottom-right { flex-wrap: wrap; }
}

/* ═══ スマホ小 ≤480px ═══ */
@media (max-width: 480px) {
  .carousel    { height: min(220px, calc(100vw * 2 / 3)); }
  .hero-h1     { font-size: clamp(20px, 1.8vw, 24px); }

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

  .cpriver-footer__category-list { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════
   JICHITAI PAGE (/local-government/)
═══════════════════════════════════════════════════════ */

/* ─── Page wrapper + 背面の流れる青グラデ ─── */
.jichitai-page {
  position: relative;
  /* overflow:hidden を外す: 子の position:sticky (.aside--sticky) が動作しなくなるため。
     FV画像のはみ出しは .jichitai-firstview 側の overflow:hidden で個別にクリップ済み。 */
  isolation: isolate;
  background: #FFFFFF;
}
.jichitai-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.jichitai-page__bg-svg {
  width: 100%;
  height: 100%;
  display: block;
}
/* Canvas 版の背景（type 5）: 100% 表示・静的 */
.jichitai-page__bg-canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.jichitai-page > section,
.jichitai-page > .main__wrapper {
  position: relative;
  z-index: 1;
}

/* MOVIE 以降のサイドバー付きコンテンツ部はグラス白の box に */
/* グローバルの .main__wrapper { overflow: hidden } を上書き。
   サイドバー (.aside--sticky) を機能させるため祖先のスクロールコンテナを解除する。
   /company/ も同様の sticky 挙動が必要なので .kigyou-page にも適用。 */
.jichitai-page .main__wrapper { padding: 24px 0 60px; overflow: clip; }
.kigyou-page  .main__wrapper { overflow: clip; }
.jichitai-page .primary-content-inner {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 36px 40px 8px;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04), 0 18px 48px rgba(15, 32, 60, 0.08);
}
@media (max-width: 768px) {
  .jichitai-page .primary-content-inner { padding: 24px 22px 4px; border-radius: 14px; }
}

/* ─── Firstview ─── */
.jichitai-firstview {
  position: relative;
  width: 100%;
  min-height: auto;
  background: transparent;
  display: block;
  padding: 80px 0 100px;
  overflow: hidden;
  isolation: isolate;
}
.jichitai-firstview::before { content: none; }
.jichitai-firstview__waves {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.jichitai-firstview__waves svg {
  width: 100%;
  height: 100%;
  display: block;
}
.jichitai-firstview__waves-left  { animation: jic-fv-left  10s ease-in-out infinite; transform-origin: 0% 50%; }
.jichitai-firstview__waves-mid   { animation: jic-fv-mid   12s ease-in-out infinite; transform-origin: 50% 100%; }
.jichitai-firstview__waves-right { animation: jic-fv-right 11s ease-in-out infinite; transform-origin: 100% 0%; }
@keyframes jic-fv-left {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(-3%, -2%) scale(1.03); }
  50%      { transform: translate(-5%, 3%) scale(1.06); }
  75%      { transform: translate(-2%, 1%) scale(1.02); }
}
@keyframes jic-fv-mid {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(4%, -1.5%) scale(1.04); }
  50%      { transform: translate(6%, 2%) scale(1.07); }
  75%      { transform: translate(3%, -1%) scale(1.03); }
}
@keyframes jic-fv-right {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(2%, -3%) scale(1.03); }
  50%      { transform: translate(4%, -5%) scale(1.06); }
  75%      { transform: translate(1.5%, -2%) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .jichitai-firstview__waves-left,
  .jichitai-firstview__waves-mid,
  .jichitai-firstview__waves-right { animation: none; }
}
.jichitai-firstview__inner { position: relative; z-index: 1; }

.jichitai-firstview__inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  display: block;
}
.jichitai-firstview__inner .jichitai-firstview__text {
  max-width: 460px;
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(11, 45, 122, 0.06);
  padding: 24px 28px;
}
.jichitai-firstview__text {
  min-width: 0; position: relative; z-index: 2;
  /* 表示時にふわっと下から立ち上げる（ゆったり・最後は静かに減速） */
  animation: jichitai-fv-fade-up 1.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.15s both;
}
@keyframes jichitai-fv-fade-up {
  from { opacity: 0; transform: translateY(38px); }
  to   { opacity: 1; transform: translateY(0); }
}
.jichitai-firstview__title {
  color: #0B2D7A;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 22px;
  display: flex;
  flex-direction: column;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 14px;
}
.jichitai-firstview__title-en {
  font-family: var(--font-inter, 'Inter'), var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  color: #1F4DBF;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  display:block;
}
.jichitai-firstview__lead {
  color: #1F2937;
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 700;
  line-height: 1.85;
  margin: 0 0 28px;
}
.jichitai-firstview__counter {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 28px;
  white-space: nowrap;
}
.jichitai-firstview__counter-label {
  color: #1F2937;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}
.jichitai-firstview__counter-num {
  color: #0B2D7A;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
}
.jichitai-firstview__counter-num span { font-weight: 900; }
.jichitai-firstview__counter-unit {
  color: #1F2937;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  align-self: baseline;
  padding-bottom: 0;
}
.jichitai-firstview__cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0B2D7A;
  color: #fff;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 800;
  padding: 16px 28px;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(11, 45, 122, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jichitai-firstview__cta:hover {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 45, 122, 0.35);
}
.jichitai-firstview__cta-arrow {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #0B2D7A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 900;
}
/* FV写真: 画面右上から見切れる楕円（セクション基準でabsolute、ビューポート右端を超えて配置） */
.jichitai-firstview__image {
  position: absolute;
  top: -8%;
  right: -8vw;
  width: clamp(620px, 90vw, 1130px);
  aspect-ratio: 1.35 / 1;
  border-radius: 58% 42% 53% 47% / 50% 55% 45% 50%;
  overflow: hidden;
  z-index: 1;
  box-shadow: 0 18px 40px rgba(15, 32, 60, 0.14);
  pointer-events: none;
  /* 輪郭のゆらぎ + 表示時のフェードイン（形と影ごと立ち上げる） */
  animation:
    jichitai-fv-liquid 14s ease-in-out infinite,
    jichitai-fv-fade-in 1.8s ease-out both;
}

@keyframes jichitai-fv-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes jichitai-fv-liquid {
  0%, 100% {
    border-radius: 58% 42% 53% 47% / 50% 55% 45% 50%;
  }
  25% {
    border-radius: 47% 53% 38% 62% / 56% 44% 56% 44%;
  }
  50% {
    border-radius: 52% 48% 60% 40% / 42% 60% 40% 58%;
  }
  75% {
    border-radius: 60% 40% 47% 53% / 53% 47% 56% 44%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jichitai-firstview__image {
    animation: none;
    border-radius: 50%;
  }
}
.jichitai-firstview__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: 0;
  box-shadow: none;
  display: block;
  /* ケンバーンズ: 寄りながら少しパンして、寄り切った位置で止まる。
     縁が見えないよう最小倍率は 1.03 から。最大 1.07 でも translate は
     はみ出し量 (1.07-1)/2 = 3.5% の範囲内に収める。 */
  transform-origin: 50% 45%;
  will-change: transform;
  /* フェードインと同時に寄り始め、左のテキストが出そろった少しあとに寄り切って静止する。
     往復させたくないので infinite alternate ではなく one-shot + fill:both。
     イージングは出だしの溜めを作らず、最後だけ静かに減速。 */
  animation: jichitai-fv-kenburns 2.5s cubic-bezier(0.15, 0, 0.35, 1) both;
}
@keyframes jichitai-fv-kenburns {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to   { transform: scale(1.07) translate3d(-1%, -0.6%, 0); }
}
/* 上の 2 ルールより後に置かないと同一詳細度で打ち消せない */
@media (prefers-reduced-motion: reduce) {
  .jichitai-firstview__image img { animation: none; transform: scale(1.03); }
  .jichitai-firstview__text { animation: none; }
}

/* ─── 実績スタッツ + 資料DLカード ─── */
.jichitai-results { padding: 32px 0; }
.jichitai-results__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04), 0 12px 36px rgba(15, 32, 60, 0.06);
}
.jichitai-results__title {
  text-align: center;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  color: #1F2937;
  margin: 4px 0 24px;
}
.jichitai-results__layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.jichitai-results__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.jichitai-stat {
  text-align: center;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border-right: 1px solid #E5E7EB;
}
.jichitai-stat:last-child { border-right: 0; }
.jichitai-stat__icon {
  width: 36px;
  height: 36px;
  color: #0B2D7A;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.jichitai-stat__icon svg { width: 100%; height: 100%; }
.jichitai-stat__label {
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 700;
  color: #1F2937;
}
.jichitai-stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.jichitai-stat__num {
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 900;
  color: #0B2D7A;
  line-height: 1;
  letter-spacing: -0.01em;
}
/* CountUp 内部の <span> や、数字に混入しうる子要素も確実に太字に揃える */
.jichitai-stat__num,
.jichitai-stat__num * {
  font-weight: 900;
}
.jichitai-stat__unit {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  color: #1F2937;
}
.jichitai-stat__note {
  font-size: clamp(10px, 0.9vw, 11px);
  color: #6B7280;
}

.jichitai-download {
  position: relative;
  background: #fff;
  border: 1px solid #E5EFFA;
  border-radius: 14px;
  padding: 18px 130px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.jichitai-download__title {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 900;
  color: #1F2937;
  margin: 0;
}
.jichitai-download__text {
  font-size: clamp(11.5px, 0.9vw, 12.5px);
  color: #4B5563;
  line-height: 1.7;
  margin: 0;
}
.jichitai-download__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #15B49C, #0E8B7A);
  color: #fff;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 800;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(21, 180, 156, 0.35);
  width: fit-content;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}
.jichitai-download__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(21, 180, 156, 0.45);
  filter: brightness(1.06);
  color: #fff;
  opacity: 1;
}
.jichitai-download__illust {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 96px;
  height: 96px;
  pointer-events: none;
}
.jichitai-download__illust svg { display: block; width: 100%; height: 100%; }

/* ─── 導入自治体（一部）バー ─── */
.jichitai-partners { padding: 18px 0 28px; }
.jichitai-partners__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04), 0 8px 24px rgba(15, 32, 60, 0.04);
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
.jichitai-partners__label {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 800;
  color: #1F2937;
  white-space: nowrap;
  flex-shrink: 0;
}
/* マーキー: 横に流す可変幅エリア。両端を白でフェード */
.jichitai-partners__marquee {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 60px, #000 calc(100% - 60px), transparent 100%);
}
.jichitai-partners__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 36px;
  align-items: center;
}
.jichitai-partners__list--scroll {
  flex: 0 0 auto;
  padding-right: 36px;
  animation: jichitai-partners-marquee 60s linear infinite;
  will-change: transform;
}
@keyframes jichitai-partners-marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .jichitai-partners__list--scroll { animation: none; }
}
.jichitai-partner {
  display: inline-flex;
  align-items: center;
  font-size: clamp(12.5px, 1.15vw, 14.5px);
  font-weight: 800;
  color: #1F2937;
  white-space: nowrap;
}
.jichitai-partner__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  padding: 6px 4px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.jichitai-partner__link:hover {
  color: #1F4DBF;
  background: #EAF2FB;
  opacity: 1;
}
.jichitai-partner__link:hover .jichitai-partner__mark { color: #1F4DBF; }
.jichitai-partner__mark {
  color: #15B49C;
  font-size: clamp(11px, 0.9vw, 12px);
  transition: color 0.15s ease;
}
.jichitai-partner--brand {
  font-family: var(--font-inter, 'Inter'), sans-serif;
  letter-spacing: 0.08em;
  color: #C8102E;
}

/* ─── 3 機能カード (旧 jichitai-overview をリプレイス) ─── */
.jichitai-features { padding: 28px 0 60px; }
.jichitai-features__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}
.jichitai-features__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.jichitai-feature {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04), 0 10px 28px rgba(15, 32, 60, 0.06);
}
.jichitai-feature__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.jichitai-feature__num {
  font-size: clamp(24px, 2.6vw, 30px);
  font-weight: 900;
  color: #B7D2F0;
  line-height: 1;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.jichitai-feature__title {
  font-size: clamp(13.5px, 1.15vw, 15.5px);
  font-weight: 900;
  color: #1F2937;
  line-height: 1.5;
  margin: 0;
}
.jichitai-feature__img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #F2F7FE;
}
.jichitai-feature__text {
  font-size: clamp(12px, 0.9vw, 13px);
  color: #4B5563;
  line-height: 1.7;
  margin: 0;
}
.jichitai-feature__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 800;
  color: #0B2D7A;
  text-decoration: none;
  border-top: 1px solid #E5EFFA;
}

/* ─── コンテンツ共通セクション ─── */
.jichitai-section {
  margin-bottom: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid #e8e8e8;
}

.jichitai-section:last-of-type {
  border-bottom: none;
}

.jichitai-section__header {
  margin-bottom: 20px;
}

.jichitai-section__header--badge {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #ffe100;
  padding: 12px 20px;
  border-radius: 4px;
  margin-bottom: 24px;
}

.jichitai-badge {
  color: #09478a;
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 900;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.jichitai-section__header--badge .jichitai-section__title {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: bold;
  color: #09478a;
  margin: 0;
}

.jichitai-section__header--icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.jichitai-icon-badge {
  flex-shrink: 0;
  width: 8px;
  height: 48px;
  background: #09478a;
  border-radius: 4px;
}

.jichitai-section__header--icon .jichitai-section__title {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: bold;
  color: #333;
  margin: 0;
}

.jichitai-section__header--topics {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-left: 6px solid #09478a;
  padding-left: 16px;
  margin-bottom: 16px;
}

.jichitai-topics-label {
  color: #09478a;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  flex-shrink: 0;
}

.jichitai-section__header--topics .jichitai-section__title {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: bold;
  color: #333;
  margin: 0;
}

.jichitai-section__text {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.8;
  color: #333;
  margin-bottom: 24px;
}

.jichitai-section__img {
  width: 100%;
  height: auto;
  display: block;
}

/* MOVIE セクション内の YouTube 埋め込み — 16:9 比率を確実に保つ */
.jichitai-section__movie {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}
.jichitai-section__movie iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* チェックリスト (242:16205) */
.jichitai-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 2px solid #4caf50;
  border-radius: 8px;
  padding: 24px 32px;
}

.jichitai-checklist li {
  position: relative;
  padding-left: 32px;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: bold;
  color: #333;
  line-height: 1.8;
  margin-bottom: 12px;
}

.jichitai-checklist li:last-child {
  margin-bottom: 0;
}

.jichitai-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 20px;
  height: 20px;
  background: #4caf50;
  border-radius: 3px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpolyline points='3,10 8,15 17,5' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* チェックリスト背景の日本地図 — 右側に配置し、リストは透過させて重ねる */
.jichitai-section__body--map {
  background-image: url('/tenants/cpriver/assets/img/jichitai/japan-img.webp');
  background-repeat: no-repeat;
  background-position: right clamp(20px, 3vw, 40px) center;
  background-size: clamp(150px, 19vw, 230px) auto;
}

.jichitai-section__body--map .jichitai-checklist {
  border-width: 3px;
  /* 地図に文字が被らないよう右に逃がす */
  padding-right: clamp(190px, 24vw, 300px);
}

/* TOPICS 10 stats (242:24275) */
.jichitai-stats {
  border: 2px solid #0093a5;
  border-radius: 10px;
  overflow: hidden;
}

.jichitai-stats__total {
  background: #0093a5;
  padding: 24px 32px;
  text-align: center;
}

.jichitai-stats__total-label {
  color: #fff;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  margin: 0 0 8px;
}

.jichitai-stats__total-num {
  color: #fff;
  font-size: clamp(35px, 4vw, 48px);
  font-weight: 900;
  margin: 0;
  line-height: 1;
}

.jichitai-stats__total-num span {
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: bold;
}

.jichitai-stats__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: #e0e0e0;
}

.jichitai-stats__item {
  background: #fff;
  padding: 20px 16px;
  text-align: center;
}

.jichitai-stats__item--logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.jichitai-stats__item--logo img {
  max-width: 120px;
  height: auto;
}

.jichitai-stats__item-label {
  color: #09478a;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: bold;
  margin: 0 0 8px;
  background: #e8f4ff;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.jichitai-stats__item-num {
  color: #0093a5;
  font-size: clamp(30px, 2.6vw, 36px);
  font-weight: 900;
  margin: 8px 0 0;
  line-height: 1;
}

.jichitai-stats__item-num span {
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  color: #333;
}

/* CTA ボタン */
.jichitai-cta {
  text-align: center;
  margin: 40px 0;
}

.jichitai-cta__btn {
  display: inline-block;
  padding: 16px 48px;
  background: #09478a;
  color: #fff;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.jichitai-cta__btn:hover {
  opacity: 0.85;
}

@media (max-width: 768px) {
  .jichitai-section__header--badge { flex-direction: column; gap: 8px; }
  .jichitai-stats__grid { grid-template-columns: repeat(2, 1fr); }
  /* 幅が足りず地図とテキストが重なるため背景を落とす */
  .jichitai-section__body--map { background-image: none; }
  .jichitai-section__body--map .jichitai-checklist { padding-right: 32px; }
}

@media (max-width: 960px) {
  .jichitai-firstview { padding: 48px 0 60px; }
  .jichitai-firstview__inner { padding: 0 24px; }
  .jichitai-firstview__inner .jichitai-firstview__text { max-width: none; margin-top: 260px; }
  .jichitai-firstview__title { font-size: clamp(30px, 2.6vw, 36px); }
  .jichitai-firstview__counter-num { font-size: clamp(32px, 4vw, 44px); }
  .jichitai-firstview__image {
    position: absolute;
    top: -20px;
    right: -10vw;
    width: 90vw;
    max-width: 540px;
    aspect-ratio: 1.4 / 1;
  }
  .jichitai-results__layout { grid-template-columns: 1fr; }
  .jichitai-results__stats { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .jichitai-stat { border-right: 0; border-bottom: 1px solid #E5E7EB; padding-bottom: 16px; }
  .jichitai-stat:nth-child(3), .jichitai-stat:nth-child(4) { border-bottom: 0; }
  .jichitai-features__list { grid-template-columns: 1fr; }
  .jichitai-download { padding-right: 22px; }
  .jichitai-download__illust { display: none; }
}
@media (max-width: 600px) {
  .jichitai-firstview__title { font-size: clamp(24px, 2.6vw, 30px); }
  .jichitai-firstview__counter-num { font-size: clamp(27px, 4vw, 38px); }
  .jichitai-results__title { font-size: clamp(15px, 1.4vw, 18px); }
}

/* ─────────────────────────────────
   企業の方へ LP (kigyou-)
   ※ 自治体LP (jichitai-) と同じ構造
───────────────────────────────── */

/* Firstview — B案 */
.kigyou-firstview {
  position: relative;
  width: 100%;
  min-height: 480px;
  background-image: url('/tenants/cpriver/assets/img/hero/slide2.webp');
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
}

.kigyou-firstview::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.kigyou-firstview__inner {
  position: relative;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 60px 40px;
  display: flex;
  align-items: center;
  gap: 48px;
}

.kigyou-firstview__text { flex: 1; min-width: 0; }

.kigyou-firstview__title {
  font-size: clamp(29px, 4vw, 40px);
  font-weight: bold;
  color: #fff;
  margin-bottom: 16px;
}

.kigyou-firstview__lead {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: bold;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.8;
  margin-bottom: 32px;
}

.kigyou-firstview__counter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  white-space: nowrap;
}

.kigyou-firstview__counter-label {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: bold;
  line-height: 1.3;
  flex-shrink: 0;
}

.kigyou-firstview__counter-num {
  color: #c8e6c9;
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 900;
  line-height: 1;
}

.kigyou-firstview__counter-num span { font-weight: bold; }

.kigyou-firstview__counter-unit {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: bold;
  align-self: flex-end;
  padding-bottom: 4px;
}

.kigyou-firstview__cta {
  display: inline-block;
  background: #fff;
  color: #2e7d32;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: bold;
  padding: 14px 40px;
  border-radius: 6px;
  text-decoration: none;
  transition: opacity 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.kigyou-firstview__cta:hover { opacity: 0.9; }

.kigyou-firstview__image { flex: 1; min-width: 0; }

.kigyou-firstview__image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* 概要 */
.kigyou-overview { padding: 60px 0; background: #fff; }

.kigyou-overview__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.kigyou-overview__lead {
  background: #f3f7f0;
  border-radius: 10px;
  padding: 24px 40px;
  text-align: center;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: bold;
  color: #333;
  margin-bottom: 40px;
}

.kigyou-overview__lead p { margin: 0; }

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

.kigyou-overview__card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.kigyou-overview__card-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 16px;
  background: #e6f0e0;
  border-radius: 50%;
}

.kigyou-overview__card p {
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: bold;
  color: #333;
  line-height: 1.6;
  margin: 0;
}

/* セクション */
.kigyou-section { margin-bottom: 48px; }

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

.kigyou-section__header--badge { flex-wrap: wrap; }

.kigyou-badge {
  display: inline-block;
  background: #2e7d32;
  color: #fff;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: bold;
  padding: 4px 14px;
  border-radius: 4px;
  flex-shrink: 0;
}

.kigyou-section__header--icon { gap: 8px; }

.kigyou-icon-badge {
  display: inline-block;
  width: 8px;
  height: 24px;
  background: #2e7d32;
  border-radius: 2px;
  flex-shrink: 0;
}

.kigyou-section__header--topics { flex-wrap: wrap; }

.kigyou-topics-label {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: bold;
  color: #2e7d32;
  flex-shrink: 0;
}

.kigyou-section__title {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: bold;
  color: #333;
  margin: 0;
}

.kigyou-section__text {
  font-size: clamp(13px, 1.15vw, 15px);
  color: #555;
  line-height: 1.8;
  margin: 0 0 20px;
}

.kigyou-section__body { margin-top: 16px; }

.kigyou-section__img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

/* チェックリスト */
.kigyou-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.kigyou-checklist li {
  position: relative;
  padding: 12px 0 12px 28px;
  font-size: clamp(13px, 1.15vw, 15px);
  color: #333;
  border-bottom: 1px solid #eee;
}

.kigyou-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #2e7d32;
  font-weight: bold;
}

/* CTA */
.kigyou-cta { text-align: center; margin: 40px 0; }

.kigyou-cta__btn {
  display: inline-block;
  padding: 16px 48px;
  background: #2e7d32;
  color: #fff;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: bold;
  border-radius: 40px;
  text-decoration: none;
  transition: opacity 0.2s;
}

.kigyou-cta__btn:hover { opacity: 0.85; }

/* レスポンシブ */
@media (max-width: 768px) {
  .kigyou-firstview { padding: 32px 0; }
  .kigyou-firstview__inner { flex-direction: column; gap: 24px; padding: 0 16px; }
  .kigyou-firstview__title { font-size: clamp(20px, 2.6vw, 26px); }
  .kigyou-firstview__lead { font-size: clamp(13px, 1.15vw, 15px); margin-bottom: 20px; }
  .kigyou-firstview__counter-num { font-size: clamp(29px, 4vw, 40px); }
  .kigyou-firstview__counter-label { font-size: clamp(14px, 1.15vw, 16px); }
  .kigyou-firstview__counter-unit { font-size: clamp(15px, 1.4vw, 18px); }
  .kigyou-firstview__image img { border-radius: 8px; }
  .kigyou-overview__cards { grid-template-columns: 1fr; }
  .kigyou-overview__inner { padding: 0 16px; }
  .kigyou-section__header--badge { flex-direction: column; gap: 8px; }
}

/* 遅延マウントされる本文（セミナー一覧・活用事例）。見出しブロックとの間に余白を取る。 */
.home-deferred-section {
  margin-top: 24px;
}

/* ─────────────────────────────────
   SEMINAR MORE (一覧への導線・中央寄せ)
───────────────────────────────── */
.seminar-more {
  display: flex;
  justify-content: center;
  margin: 32px 0 8px;
}

/* メガメニューの CTA と同じ塗りボタン。導線なので一回り大きくする。
   共通の .arrow は sidebar.css がセレクタ無しで position:absolute を当ててくるため使わない。 */
.seminar-more__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  padding: 16px 40px;
  background: var(--colorLightBase);
  border: 1.5px solid var(--colorLightBase);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: clamp(15px, 1.4vw, 17px);
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 60, 126, 0.18);
  transition: background .15s, color .15s, transform .15s, box-shadow .15s;
}

.seminar-more__button:hover {
  background: #fff;
  color: var(--colorLightBase);
  box-shadow: 0 2px 8px rgba(0, 60, 126, 0.10);
  transform: translateY(-1px);
}

.seminar-more__button::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
  margin-left: 12px;
}

/* ─────────────────────────────────
   SEMINAR ARCHIVE SECTION
───────────────────────────────── */
.seminar-archive__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.seminar-archive__card {
  display: block;
  text-decoration: none;
  color: #333;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.seminar-archive__card:hover {
  transform: scale(1.03);
}

.seminar-archive__card-image {
  width: 100%;
  aspect-ratio: 310 / 207;
  overflow: hidden;
  border-radius: 8px;
}

.seminar-archive__card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.seminar-archive__card-body {
  padding: 12px 0;
}

.seminar-archive__card-title {
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: bold;
  color: #333;
  line-height: 1.5;
  margin: 0 0 8px;
}

.seminar-archive__card-text {
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 500;
  color: #333;
  line-height: 22px;
  margin: 0;
}

@media (max-width: 768px) {
  .seminar-archive__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .seminar-archive__card-title {
    font-size: clamp(13px, 1.15vw, 15px);
  }

  .seminar-archive__card-text {
    font-size: clamp(12px, 0.9vw, 13px);
  }
}

@media (max-width: 480px) {
  .seminar-archive__grid {
    grid-template-columns: 1fr;
  }
}

.seminar-search {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  margin: 22px 0 28px;
  padding: 16px;
  border: 1px solid #DCE6ED;
  border-radius: 10px;
  background: #F8FBFD;
}
.seminar-search__keyword,
.seminar-search__date {
  min-width: 0;
  height: 42px;
  border: 1px solid #D6E0EA;
  border-radius: 8px;
  background: #fff;
  color: #1F2937;
  font-size: clamp(13px, 1.15vw, 14px);
  line-height: 1.4;
}
.seminar-search__keyword {
  width: 100%;
  padding: 0 14px;
}
.seminar-search__dates {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.seminar-search__date {
  width: 150px;
  padding: 0 10px;
}
.seminar-search__date-sep {
  color: #64748B;
  font-size: clamp(13px, 1vw, 14px);
}
.seminar-search__submit {
  min-height: 42px;
  white-space: nowrap;
}
.seminar-search__clear {
  color: #003C7E;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.seminar-search__clear:hover {
  text-decoration: underline;
}
@media (max-width: 900px) {
  .seminar-search {
    grid-template-columns: 1fr auto;
  }
  .seminar-search__keyword,
  .seminar-search__dates {
    grid-column: 1 / -1;
  }
  .seminar-search__dates {
    width: 100%;
  }
  .seminar-search__date {
    flex: 1 1 0;
    width: auto;
  }
}
@media (max-width: 520px) {
  .seminar-search {
    grid-template-columns: 1fr;
    padding: 12px;
  }
  .seminar-search__dates {
    display: grid;
    grid-template-columns: 1fr;
  }
  .seminar-search__date-sep {
    display: none;
  }
  .seminar-search__submit,
  .seminar-search__clear {
    justify-self: stretch;
    text-align: center;
  }
}

/* ═══════════════════════════════════════════════════════
   MUNICIPALITIES HERO（企業版ふるさと納税対象自治体・新デザイン）
═══════════════════════════════════════════════════════ */
.municipalities-hero {
  position: relative;
  width: 100%;
  padding: 80px 0 60px;
  isolation: isolate;
  background: linear-gradient(180deg, #f3fbfd 0%, #e8f5fa 50%, #f3fbfd 100%);
  overflow: hidden;
}
.municipalities-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 8% 30%, rgba(170, 220, 240, 0.35), transparent 35%),
    radial-gradient(circle at 92% 70%, rgba(180, 225, 240, 0.32), transparent 40%);
}
.municipalities-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 24px;
}
/* 全体を覆う曇りガラスのパネル */
.municipalities-hero__panel {
  position: relative;
  border-radius: 24px;
  padding: 56px 56px 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.72) 0%, rgba(232,247,251,0.66) 100%);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow:
    0 1px 2px rgba(15, 32, 60, 0.04),
    0 24px 60px rgba(15, 76, 129, 0.08);
}
.municipalities-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}

/* ── 共通：タイトル ── */
.municipalities-hero__eyebrow {
  display: inline-block;
  position: relative;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  color: #0f4c81;
  padding-bottom: 8px;
  margin-bottom: 16px;
}
.municipalities-hero__eyebrow::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #0f4c81, #59c1c7);
  border-radius: 2px;
}
.municipalities-hero__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  color: #0f3b66;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.municipalities-hero__lead {
  font-size: clamp(13px, 1.15vw, 15px);
  line-height: 1.9;
  color: #4a5568;
  margin-bottom: 24px;
}

/* ── 左カラム：地図 ── */
.municipalities-hero__left {
  position: relative;
}
.municipalities-hero__left .municipalities-hero__eyebrow,
.municipalities-hero__left .municipalities-hero__title,
.municipalities-hero__left .municipalities-hero__lead {
  position: relative;
  z-index: 3;
}
/* 地図：リード直後から始めつつ、上に少しだけせり出して大きく見せる */
.municipalities-hero__map {
  position: relative;
  width: 96%;
  aspect-ratio: 1 / 1;
  margin: -120px auto 0;
  isolation: isolate;
  z-index: 1;
}

/* 同心円の装飾 */
.municipalities-hero__map-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.municipalities-hero__map-rings .ring {
  position: absolute;
  top: 50%;
  left: 55%;
  border: 1px dashed rgba(75, 175, 200, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* リップル */
  opacity: 0;
  animation: map-ring-ripple 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}
.municipalities-hero__map-rings .ring-1 { width: 36%; height: 36%; animation-delay: 0s; }
.municipalities-hero__map-rings .ring-2 { width: 54%; height: 54%; animation-delay: 0.9s; }
.municipalities-hero__map-rings .ring-3 { width: 74%; height: 74%; animation-delay: 1.8s; }
.municipalities-hero__map-rings .ring-4 {
  width: 96%; height: 96%;
  border-color: rgba(75, 175, 200, 0.18);
  animation-delay: 2.7s;
}

@keyframes map-ring-ripple {
  0%   { transform: translate(-50%, -50%) scale(0.95); opacity: 0; }
  20%  { opacity: 1; }
  80%  { opacity: 0.4; }
  100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .municipalities-hero__map-rings .ring {
    animation: none;
    opacity: 1;
  }
}

/* 日本地図シェイプ（mask で日本の形に切り抜いて、グラデーションを表示） */
.municipalities-hero__map-shape {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #88d18a 0%, #6cc7a4 30%, #59c1c7 55%, #69bdd9 80%, #7fc1e3 100%);
  -webkit-mask-image: url('/tenants/cpriver/assets/img/common/japan-silhouette.svg');
  mask-image: url('/tenants/cpriver/assets/img/common/japan-silhouette.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  filter: drop-shadow(0 2px 6px rgba(15, 76, 129, 0.12));
}

/* 地域ピン（吹き出し風カード） */
.region-pin {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px 8px 12px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(15, 76, 129, 0.12);
  font-size: clamp(11px, 0.9vw, 12px);
  white-space: nowrap;
  /* 表示前は隠しておき、is-visible でバウンス表示 */
  opacity: 0;
  transform: translateY(-14px) scale(0.85);
}
.municipalities-hero__map.is-visible .region-pin {
  animation: region-pin-bounce 700ms cubic-bezier(0.28, 1.5, 0.4, 1) forwards;
}
@keyframes region-pin-bounce {
  0%   { opacity: 0; transform: translateY(-14px) scale(0.85); }
  60%  { opacity: 1; transform: translateY(4px)   scale(1.05); }
  80%  {              transform: translateY(-2px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0)     scale(1);    }
}
@media (prefers-reduced-motion: reduce) {
  .region-pin { opacity: 1; transform: none; }
  .municipalities-hero__map.is-visible .region-pin { animation: none; }
}
.region-pin__head {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.region-pin__head svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}
.region-pin__name {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  color: #0f3b66;
}
.region-pin__row {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.region-pin__label {
  font-size: clamp(10px, 0.9vw, 11px);
  color: #6b7280;
}
.region-pin__count {
  font-size: clamp(17px, 1.4vw, 20px);
  font-weight: 900;
  color: #0f3b66;
  line-height: 1;
  letter-spacing: 0.01em;
}
.region-pin__unit {
  font-size: clamp(10px, 0.9vw, 11px);
  color: #4a5568;
}

/* ── 右カラム：統計カード ── */
.municipalities-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.municipalities-stat {
  background: #fff;
  border-radius: 12px;
  padding: 16px 14px;
  box-shadow: 0 2px 8px rgba(15, 76, 129, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.municipalities-stat__icon {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #e6f6f7;
  color: #2bb3b8;
  display: grid;
  place-items: center;
}
.municipalities-stat__icon svg {
  width: 22px;
  height: 22px;
}
.municipalities-stat__body {
  flex: 1;
  min-width: 0;
}
.municipalities-stat__label {
  font-size: clamp(11px, 0.9vw, 12px);
  color: #6b7280;
  margin-bottom: 4px;
}
.municipalities-stat__value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: #0f3b66;
  font-weight: 900;
}
.municipalities-stat__num {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.01em;
}
.municipalities-stat__unit {
  font-size: clamp(12px, 0.9vw, 13px);
  color: #4a5568;
  font-weight: 500;
}
.municipalities-stat__note {
  font-size: clamp(10px, 0.9vw, 11px);
  color: #9ca3af;
  margin-top: 2px;
}

/* ── 地域ボタン ── */
.municipalities-regions {
  margin-bottom: 24px;
}
.municipalities-regions__label {
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 700;
  color: #0f3b66;
  margin-bottom: 10px;
}
.municipalities-regions__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.municipalities-regions__btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 600;
  color: #4a5568;
  background: #fff;
  border: 1px solid #d6e3ec;
  border-radius: 999px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.municipalities-regions__btn:hover {
  border-color: #0f4c81;
  color: #0f4c81;
}
.municipalities-regions__btn.is-active {
  background: #0f3b66;
  color: #fff;
  border-color: #0f3b66;
}

/* ── CTA ボタン ── */
.municipalities-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.municipalities-cta__primary,
.municipalities-cta__secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 28px;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  border-radius: 10px;
  text-decoration: none;
  transition: all 0.2s ease;
  flex: 0 0 auto;
  min-width: 220px;
  letter-spacing: 0.02em;
}
.municipalities-cta__primary {
  background: #1c4ec9;
  color: #fff;
  box-shadow: 0 6px 18px rgba(28, 78, 201, 0.28);
}
.municipalities-cta__primary:hover {
  background: #1640a9;
  box-shadow: 0 8px 22px rgba(28, 78, 201, 0.36);
}
.municipalities-cta__primary .municipalities-cta__arrow {
  display: inline-flex;
  width: 24px;
  height: 24px;
  color: #fff;
}
.municipalities-cta__primary .municipalities-cta__arrow svg {
  width: 100%;
  height: 100%;
}
.municipalities-cta__secondary {
  background: rgba(255, 255, 255, 0.85);
  color: #1c4ec9;
  border: 1.5px solid #1c4ec9;
}
.municipalities-cta__secondary:hover {
  background: #fff;
  border-color: #1640a9;
  color: #1640a9;
}
.municipalities-cta__secondary svg {
  width: 18px;
  height: 18px;
}

/* ── 注目の自治体・プロジェクト ── */
.municipalities-featured {
  margin-top: 48px;
  padding: 0;
}
.municipalities-featured__title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 700;
  color: #0f3b66;
  margin-bottom: 20px;
}
.municipalities-featured__crown {
  display: inline-flex;
  width: 22px;
  height: 22px;
  color: #f59e0b;
}
.municipalities-featured__crown svg {
  width: 100%;
  height: 100%;
}
.municipalities-featured__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.municipalities-featured__card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04), 0 8px 22px rgba(15, 76, 129, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.municipalities-featured__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(15, 32, 60, 0.04), 0 14px 32px rgba(15, 76, 129, 0.12);
}
.municipalities-featured__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  background: #f3f4f6;
}
.municipalities-featured__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.municipalities-featured__body {
  padding: 0 4px;
}
.municipalities-featured__location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 700;
  color: #0f3b66;
  margin-bottom: 8px;
}
.municipalities-featured__pin {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: #2bb3b8;
}
.municipalities-featured__pin svg {
  width: 100%;
  height: 100%;
}
.municipalities-featured__desc {
  font-size: clamp(12px, 0.9vw, 13px);
  color: #4a5568;
  line-height: 1.6;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.municipalities-featured__more {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 600;
  color: #0f4c81;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ── 注釈 ── */
.municipalities-hero__footnote {
  margin-top: 24px;
  text-align: center;
  font-size: clamp(11px, 0.9vw, 12px);
  color: #6b7280;
}

/* ═══ タブレット ≤1024px ═══ */
@media (max-width: 1024px) {
  .municipalities-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .municipalities-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .municipalities-featured__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ═══ スマホ ≤768px ═══ */
@media (max-width: 768px) {
  .municipalities-hero {
    padding: 48px 0 40px;
  }
  .municipalities-hero__inner {
    padding: 0 16px;
  }
  .municipalities-hero__title {
    font-size: clamp(22px, 6vw, 32px);
  }
  .municipalities-stats {
    grid-template-columns: 1fr;
  }
  .municipalities-cta__primary,
  .municipalities-cta__secondary {
    flex: 1 1 100%;
    min-width: 0;
  }
  .municipalities-featured {
    padding: 20px 16px;
    margin-top: 32px;
  }
  .municipalities-featured__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ─────────────────────────────────
   自治体LP: MOVIE/事例 + お役立ち資料 (2col)
───────────────────────────────── */
.jichitai-info { padding: 28px 0 60px; position: relative; z-index: 1; }
.jichitai-info__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 28px;
}
.jichitai-info__movie {
  background: #fff; border-radius: 16px; padding: 28px;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px; align-items: center;
  box-shadow: 0 1px 2px rgba(15,32,60,.04), 0 12px 32px rgba(15,32,60,.06);
}
.jichitai-info__badge {
  display: inline-block; font-size: clamp(10px, 0.9vw, 11px); font-weight: 800; color: #6B7280;
  letter-spacing: 0.18em; margin-bottom: 12px;
}
.jichitai-info__title { color: #0B2D7A; font-size: clamp(16px, 1.4vw, 19px); font-weight: 900; margin: 0 0 10px; line-height: 1.5; }
.jichitai-info__lead { color: #4B5563; font-size: clamp(12px, 0.9vw, 13px); line-height: 1.7; margin: 0 0 18px; }
.jichitai-info__btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 20px; border-radius: 999px;
  /* 「動画を再生する」は <button> なので UA 既定値を打ち消す */
  border: 0; cursor: pointer; font-family: inherit;
  background: #0B2D7A; color: #fff;
  font-size: clamp(11.5px, 1.15vw, 13.5px); font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 14px rgba(11,45,122,.25);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jichitai-info__btn:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(11,45,122,.35); opacity: 1; }
.jichitai-info__btn-arrow {
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; color: #0B2D7A; display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(10px, 0.9vw, 11px); font-weight: 900;
}
.jichitai-info__btn--primary { /* 同色バリエーション (現在は同じ) */ }
.jichitai-info__movie-thumb {
  position: relative; display: block; border-radius: 14px; overflow: hidden;
  aspect-ratio: 16 / 9;
  /* <button> 化したので UA 既定値を打ち消す */
  width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jichitai-info__movie-thumb:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(15,32,60,.18); }
.jichitai-info__movie-thumb:hover .jichitai-info__play { transform: translate(-50%, -50%) scale(1.08); }
.jichitai-info__movie-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.jichitai-info__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px rgba(15,32,60,.28); padding-left: 4px;
  transition: transform 0.18s ease;
}

/* ─── MOVIE モーダル ─── */
.jichitai-movie-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background: rgba(6, 18, 40, 0.78);
  animation: jichitaiMovieFade 0.18s ease;
}
@keyframes jichitaiMovieFade { from { opacity: 0; } to { opacity: 1; } }
.jichitai-movie-modal__body {
  position: relative; width: min(1040px, 100%);
}
.jichitai-movie-modal__frame {
  position: relative; width: 100%; aspect-ratio: 16 / 9;
  border-radius: 14px; overflow: hidden; background: #000;
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.jichitai-movie-modal__frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.jichitai-movie-modal__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.16); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background 0.18s ease;
}
.jichitai-movie-modal__close:hover { background: rgba(255,255,255,.3); }
@media (max-width: 900px) {
  .jichitai-movie-modal { padding: 16px; }
  .jichitai-movie-modal__close { top: -42px; }
}
.jichitai-info__download {
  position: relative;
  background: #fff; border-radius: 16px; padding: 28px;
  box-shadow: 0 1px 2px rgba(15,32,60,.04), 0 12px 32px rgba(15,32,60,.06);
  overflow: hidden;
}
/* 上の「はじめての取り組みでも安心。」カードと同じ構成に揃える */
.jichitai-info__download { padding-right: 130px; }
.jichitai-info__illust {
  position: absolute; right: 16px; bottom: 16px;
  width: 96px; height: 96px; pointer-events: none;
}
.jichitai-info__illust svg { display: block; width: 100%; height: 100%; }

/* ─────────────────────────────────
   自治体LP / 企業LP: セクションのスクロール表示（フェードインアップ）

   SEO 対策として JS を一切使わない CSS スクロール駆動アニメーションで実装する。
   - 既定は「表示済み」。opacity:0 を初期値として置かないので、
     非対応ブラウザ・クローラー・JS 無効環境では普通に本文が見える
     （JS で表示解除する方式だと本文が不可視のままになり隠しコンテンツ扱いのリスク）
   - animation-timeline 未対応（現状 Firefox など）では @supports ごと無効になるだけ
   - firstview は専用の登場アニメを持っているので対象外
───────────────────────────────── */
/* 隠す指定は JS（SectionReveal.tsx）が .jichitai-will-reveal を付けたときだけ効く。
   CSS 単体では何も隠れないので、JS 無効時・クローラーには常に本文が見えている。 */
.jichitai-will-reveal {
  opacity: 0;
  transform: translateY(28px);
}
.jichitai-will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
@media (prefers-reduced-motion: reduce) {
  .jichitai-will-reveal { opacity: 1; transform: none; }
}

/* ─────────────────────────────────
   自治体LP: 専任チームが伴走 — 3 features
───────────────────────────────── */
.jichitai-trust { padding: 24px 0 40px; position: relative; z-index: 1; }
.jichitai-trust__inner { max-width: 1100px; margin: 0 auto; padding: 0 40px; }
.jichitai-trust__title {
  text-align: center; color: #0B2D7A;
  font-size: clamp(18px, 1.8vw, 22px); font-weight: 900; line-height: 1.5;
  margin: 0 0 32px;
}
.jichitai-trust__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
}
.jichitai-trust__item {
  text-align: left;
  padding: 0 28px;
}
.jichitai-trust__item + .jichitai-trust__item {
  border-left: 1px solid rgba(11, 45, 122, 0.12);
}
/* アイコン+タイトルを横並びに */
.jichitai-trust__head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.jichitai-trust__icon {
  flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  color: #1F4DBF;
  margin-bottom: 0;
}
.jichitai-trust__icon svg { width: 100%; height: 100%; }
.jichitai-trust__heading {
  color: #0B2D7A; font-size: clamp(13px, 1.15vw, 15px); font-weight: 800;
  margin: 0; line-height: 1.5;
  /* 見出しが長い列で末尾1文字だけ折り返す(孤立行)のを防ぐ。
     auto-phrase は Chromium 系のみ有効・他ブラウザは無視される */
  text-wrap: balance;
  word-break: auto-phrase;
}
.jichitai-trust__text {
  color: #4B5563; font-size: clamp(12px, 0.9vw, 13px); line-height: 1.85; margin: 0;
}

/* ─────────────────────────────────
   自治体LP: 導入までの流れ — 5 steps
───────────────────────────────── */
.jichitai-flow { padding: 28px 0 56px; position: relative; z-index: 1; }
.jichitai-flow__inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 36px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,32,60,.04), 0 12px 32px rgba(15,32,60,.06);
}
.jichitai-flow__title {
  color: #1F2937; font-size: clamp(14px, 1.15vw, 16px); font-weight: 800; margin: 0 0 24px;
}
.jichitai-flow__steps {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: stretch; gap: 4px;
}
.jichitai-flow__step-wrap {
  flex: 1 1 0; display: flex; align-items: center; gap: 4px; min-width: 0;
}
.jichitai-flow__step {
  flex: 1 1 0; min-width: 0;
  padding: 18px 12px 16px;
  background: #F8FAFC;
  border-radius: 16px 16px 16px 16px / 32px 32px 16px 16px;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.jichitai-flow__num {
  display: inline-block; color: #1F4DBF; font-size: clamp(12px, 0.9vw, 13px); font-weight: 800;
  letter-spacing: 0.04em; margin-bottom: 4px;
}
.jichitai-flow__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; color: #1F4DBF; margin-bottom: 8px;
}
.jichitai-flow__heading {
  color: #0B2D7A; font-size: clamp(12px, 0.9vw, 13px); font-weight: 800; margin: 0 0 6px; line-height: 1.4;
}
.jichitai-flow__text {
  color: #6B7280; font-size: clamp(10.5px, 0.9vw, 11.5px); line-height: 1.6; margin: 0;
}
.jichitai-flow__arrow {
  flex: 0 0 auto; color: #B6C8DE;
  font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; line-height: 1;
}

/* ─────────────────────────────────
   自治体LP: 導入自治体の声
───────────────────────────────── */
/* ─────────────────────────────────
   自治体LP: riverのサービス範囲
───────────────────────────────── */
.jichitai-scope { padding: 0 0 56px; position: relative; z-index: 1; }
.jichitai-scope__inner {
  max-width: 1200px; margin: 0 auto; padding: 32px 36px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,32,60,.04), 0 12px 32px rgba(15,32,60,.06);
}
.jichitai-scope__title {
  color: #1F2937; font-size: clamp(14px, 1.15vw, 16px); font-weight: 800; margin: 0 0 12px;
}
.jichitai-scope__lead {
  color: #4B5563; font-size: clamp(12px, 0.9vw, 13px); line-height: 1.8; margin: 0;
}
.jichitai-scope__img {
  display: block; width: 100%; height: auto; margin: 20px 0 0; border-radius: 10px;
}

.jichitai-voices { padding: 16px 0 56px; position: relative; z-index: 1; }
.jichitai-voices__inner {
  max-width: 1200px; margin: 0 auto; padding: 28px 32px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 1px 2px rgba(15,32,60,.04), 0 12px 32px rgba(15,32,60,.06);
}
.jichitai-voices__head {
  display: flex; align-items: center; justify-content: space-between; margin: 0 0 20px;
}
.jichitai-voices__title { color: #1F2937; font-size: clamp(14px, 1.15vw, 16px); font-weight: 800; margin: 0; }
.jichitai-voices__more {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  border: 1px solid rgba(11,45,122,.18);
  font-size: clamp(11.5px, 0.9vw, 12.5px); font-weight: 800; color: #0B2D7A; text-decoration: none;
  background: #fff;
}
.jichitai-voices__more:hover { background: #F4F8FC; opacity: 1; }
.jichitai-voices__more-arrow {
  width: 16px; height: 16px; border-radius: 50%;
  background: #0B2D7A; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(9px, 0.9vw, 10px);
}
.jichitai-voices__list {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.jichitai-voice {
  background: #F8FAFC; border-radius: 14px; overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.jichitai-voice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(15, 32, 60, 0.12);
}
/* 2カラム: 左にテキスト全部, 右に画像 */
.jichitai-voice__link {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 14px;
  height: 100%;
  padding: 18px;
  text-decoration: none; color: inherit;
  align-items: stretch;
}
.jichitai-voice__body {
  display: flex; flex-direction: column;
  min-width: 0;
  gap: 6px;
}
.jichitai-voice__heading {
  color: #0B2D7A; font-size: clamp(12px, 1.15vw, 14px); font-weight: 800;
  margin: 0; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.jichitai-voice__region {
  color: #6B7280; font-size: clamp(10.5px, 0.9vw, 11.5px); font-weight: 700;
}
.jichitai-voice__text {
  color: #4B5563; font-size: clamp(11px, 0.9vw, 12px); line-height: 1.7; margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.jichitai-voice__more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  color: #0B2D7A; font-size: clamp(11px, 0.9vw, 12px); font-weight: 800;
}
.jichitai-voice__more-arrow {
  width: 16px; height: 16px; border-radius: 50%;
  background: #0B2D7A; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(9px, 0.9vw, 10px);
}
.jichitai-voice__img {
  width: 100%; height: 100%;
  min-height: 130px;
  object-fit: cover; border-radius: 10px; background: #E5EAF1;
  display: block;
}

/* ─────────────────────────────────
   自治体LP: 下部CTA「まずはお気軽にご相談ください」
───────────────────────────────── */
.jichitai-bottom-cta { padding: 24px 0 80px; position: relative; z-index: 1; }
.jichitai-bottom-cta__inner {
  max-width: 1200px; margin: 0 auto; padding: 56px 56px;
  /* 画像が左テキスト+右タブレットの構成になっているのでそのまま背景として使用 */
  background-image: url('/tenants/cpriver/assets/img/jichitai/contact-long.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #0B2D7A; /* 画像読み込み中のフォールバック */
  border-radius: 20px;
  display: block; min-height: 240px;
  position: relative; overflow: hidden;
  box-shadow: 0 18px 40px rgba(11,45,122,.25);
  /* ブロック全体がリンク化されているのでクリックフィードバック */
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.jichitai-bottom-cta__inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 50px rgba(11,45,122,.35);
  opacity: 1;
}
.jichitai-bottom-cta__inner:hover .jichitai-bottom-cta__btn {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,.22);
}
.jichitai-bottom-cta__text {
  position: relative; z-index: 1;
  max-width: 50%;
}
.jichitai-bottom-cta__title { color: #fff; font-size: clamp(20px, 2.6vw, 26px); font-weight: 900; margin: 0 0 10px; line-height: 1.4; }
.jichitai-bottom-cta__lead { color: rgba(255,255,255,.92); font-size: clamp(11.5px, 1.15vw, 13.5px); line-height: 1.85; margin: 0 0 22px; }
.jichitai-bottom-cta__btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 999px;
  background: #fff; color: #0B2D7A;
  font-size: clamp(12px, 1.15vw, 14px); font-weight: 800; text-decoration: none;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
  transition: transform 0.18s ease;
}
.jichitai-bottom-cta__btn:hover { transform: translateY(-1px); opacity: 1; }
.jichitai-bottom-cta__btn-arrow {
  width: 20px; height: 20px; border-radius: 50%;
  background: #0B2D7A; color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: clamp(10px, 0.9vw, 11px);
}
/* 旧 .__img は背景画像化に伴い非表示 */
.jichitai-bottom-cta__img { display: none; }

/* レスポンシブ */
@media (max-width: 1024px) {
  .jichitai-info__inner { grid-template-columns: 1fr; }
  .jichitai-info__movie { grid-template-columns: 1fr; }
  /* 1カラムになるとイラストは CTA の右隣に収まるので本文の右余白は戻す */
  .jichitai-info__download { padding-right: 28px; }
  .jichitai-flow__steps { flex-direction: column; gap: 8px; }
  .jichitai-flow__step-wrap { flex-direction: column; }
  .jichitai-flow__arrow { transform: rotate(90deg); }
  .jichitai-voices__list { grid-template-columns: 1fr; }
  /* 画像背景 + テキストのみのレイアウトに統一 */
  .jichitai-bottom-cta__text { max-width: 65%; }
}
@media (max-width: 768px) {
  .jichitai-trust__list { grid-template-columns: 1fr; gap: 0; }
  .jichitai-trust__item { padding: 16px 0; }
  .jichitai-trust__item + .jichitai-trust__item {
    border-left: 0;
    border-top: 1px solid rgba(11, 45, 122, 0.12);
  }
  .jichitai-trust__title { font-size: clamp(15px, 1.4vw, 18px); }
  .jichitai-info__inner { padding: 0 20px; }
  .jichitai-trust__inner { padding: 0 20px; }
  .jichitai-flow__inner { padding: 24px 20px; margin: 0 20px; }
  .jichitai-voices__inner { padding: 20px; margin: 0 20px; }
  .jichitai-scope__inner { padding: 24px 20px; margin: 0 20px; }
  .jichitai-bottom-cta__inner {
    padding: 28px 24px; margin: 0 20px; min-height: 200px;
    /* SP では右側のタブレットを目立たせず左テキストを優先 */
    background-position: 75% center;
  }
  .jichitai-bottom-cta__text { max-width: 100%; }
  .jichitai-bottom-cta__title { font-size: clamp(17px, 1.4vw, 20px); }
}

/* ─────────────────────────────────
   自治体LP: 画面下部の常時表示フローティングCTA
───────────────────────────────── */
.jichitai-floating-cta {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 90;
  padding: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(11, 45, 122, 0.08);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(15, 32, 60, 0.18);
}
.jichitai-floating-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.jichitai-floating-cta__btn--primary {
  background: #0B2D7A;
  color: #fff;
  box-shadow: 0 6px 14px rgba(11, 45, 122, 0.35);
}
.jichitai-floating-cta__btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 45, 122, 0.45);
  opacity: 1;
}
.jichitai-floating-cta__btn--secondary {
  background: #fff;
  color: #0B2D7A;
  border: 1px solid rgba(11, 45, 122, 0.18);
}
.jichitai-floating-cta__btn--secondary:hover {
  transform: translateY(-1px);
  background: #F4F8FC;
  opacity: 1;
}
.jichitai-floating-cta__icon {
  display: inline-flex;
  align-items: center;
}

@media (max-width: 768px) {
  .jichitai-floating-cta {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    padding: 6px;
    gap: 6px;
    justify-content: stretch;
  }
  .jichitai-floating-cta__btn {
    flex: 1 1 0;
    justify-content: center;
    padding: 12px 12px;
    font-size: clamp(11.5px, 0.9vw, 12.5px);
  }
}

/* ═══════════════════════════════════════════════════════
   CPRIVER SECTION WAVES（個別セクションだけウェーブ背景を表示）
   - TargetAudienceSection（自治体の方へ／企業の方へ）
   - MunicipalitiesSection（企業版ふるさと納税対象自治体）
   両者の直下に <JichitaiSilkyWaves /> を置いて、そのセクション内のみで
   絶対配置の波 canvas を見せる。
═══════════════════════════════════════════════════════ */
.cpriver-section-waves {
  position: relative;
  isolation: isolate;
}
.cpriver-section-waves > .jichitai-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
/* canvas より上に来るよう relative 化（z-index は子要素が持っている既存値を尊重） */
.cpriver-section-waves > *:not(.jichitai-page__bg) {
  position: relative;
}
/* 既に z-index 指定のない service-section に最低限の z-index を付与（canvas:0 より前） */
.cpriver-section-waves > .service-section,
.cpriver-section-waves > .service-reveal {
  z-index: 1;
}
/* ScrollReveal でラップしても service-section が canvas より前に来るように */
.cpriver-section-waves .service-reveal {
  position: relative;
}
/* river-separator は本来 z-index: 10。 service-section が overlap した時に separator を上に */
.cpriver-section-waves > .river-separator {
  z-index: 10;
}

/* MunicipalitiesSection 内の波（既に .municipalities-hero が isolate + overflow:hidden） */
.municipalities-hero > .jichitai-page__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════
   SCROLL REVEAL（A: fade-up / B: stagger）
═══════════════════════════════════════════════════════ */
.scroll-reveal {
  --sr-duration: 700ms;
  --sr-easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --sr-distance: 26px;
  --sr-step: 110ms;
  --sr-delay: 0ms;
}

/* 単体: フェード+下から */
.scroll-reveal--fade-up {
  opacity: 0;
  transform: translate3d(0, var(--sr-distance), 0);
  transition: opacity var(--sr-duration) var(--sr-easing) var(--sr-delay),
              transform var(--sr-duration) var(--sr-easing) var(--sr-delay);
  will-change: opacity, transform;
}
.scroll-reveal--fade-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 単体: 左から */
.scroll-reveal--slide-right {
  opacity: 0;
  transform: translate3d(calc(var(--sr-distance) * -1.2), 0, 0);
  transition: opacity var(--sr-duration) var(--sr-easing) var(--sr-delay),
              transform var(--sr-duration) var(--sr-easing) var(--sr-delay);
  will-change: opacity, transform;
}
.scroll-reveal--slide-right.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 単体: 右から */
.scroll-reveal--slide-left {
  opacity: 0;
  transform: translate3d(calc(var(--sr-distance) * 1.2), 0, 0);
  transition: opacity var(--sr-duration) var(--sr-easing) var(--sr-delay),
              transform var(--sr-duration) var(--sr-easing) var(--sr-delay);
  will-change: opacity, transform;
}
.scroll-reveal--slide-left.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* 子要素を順番にフェードイン（stagger） */
.scroll-reveal--stagger > *,
.scroll-reveal--fade-up-stagger > * {
  opacity: 0;
  transform: translate3d(0, var(--sr-distance), 0);
  transition: opacity var(--sr-duration) var(--sr-easing),
              transform var(--sr-duration) var(--sr-easing);
  will-change: opacity, transform;
}
.scroll-reveal--stagger.is-visible > *,
.scroll-reveal--fade-up-stagger.is-visible > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.scroll-reveal--stagger.is-visible > *:nth-child(1),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(1) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 0); }
.scroll-reveal--stagger.is-visible > *:nth-child(2),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(2) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 1); }
.scroll-reveal--stagger.is-visible > *:nth-child(3),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(3) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 2); }
.scroll-reveal--stagger.is-visible > *:nth-child(4),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(4) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 3); }
.scroll-reveal--stagger.is-visible > *:nth-child(5),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(5) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 4); }
.scroll-reveal--stagger.is-visible > *:nth-child(6),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(6) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 5); }
.scroll-reveal--stagger.is-visible > *:nth-child(n+7),
.scroll-reveal--fade-up-stagger.is-visible > *:nth-child(n+7) { transition-delay: calc(var(--sr-delay) + var(--sr-step) * 6); }

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ───────────────────────────────────────────────────────
   SERVICE SECTION REVEAL（自治体の方へ／企業の方へ）
   - カード自体: ふわっと浮き上がる（lift）
   - 画像: クリップパスで上から下へリビール
   - 画像内: 1.18→1 のケンバーンズ風ズーム
   - バッジ: 遅延してスケールでポップ
   - テキスト: 順次フェードアップ
─────────────────────────────────────────────────────── */
.service-reveal.scroll-reveal--fade-up {
  opacity: 0;
  transform: translate3d(0, 64px, 0) scale(0.95);
  transition:
    opacity 950ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 950ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.service-reveal.scroll-reveal--fade-up.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* 画像エリア：クリップパスでマスクリビール */
/* 自治体側：右から左へカーテンが開く */
.service-reveal .service-photo {
  clip-path: inset(0 0 0 100%);
  transition: clip-path 1100ms cubic-bezier(0.83, 0, 0.17, 1);
  transition-delay: 200ms;
}
/* 企業側：左から右へカーテンが開く */
.service-reveal--kigyo .service-photo {
  clip-path: inset(0 100% 0 0);
}
.service-reveal.is-visible .service-photo,
.service-reveal--kigyo.is-visible .service-photo {
  clip-path: inset(0 0 0 0);
}

/* 画像本体：ケンバーンズ風ズーム */
.service-reveal .service-photo img {
  transform: scale(1.18);
  transform-origin: center center;
  transition: transform 1600ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: 200ms;
}
.service-reveal.is-visible .service-photo img {
  transform: scale(1);
}

/* バッジ：遅延してスケールポップ */
.service-reveal .service-photo__badge {
  opacity: 0;
  transform: scale(0.7);
  transition:
    opacity 500ms ease-out,
    transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1);
  transition-delay: 950ms;
}
.service-reveal.is-visible .service-photo__badge {
  opacity: 1;
  transform: scale(1);
}

/* テキスト内の項目：順次フェードアップ */
.service-reveal .service-text > * {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 600ms ease-out,
    transform 600ms cubic-bezier(0.16, 1, 0.3, 1);
}
.service-reveal.is-visible .service-text > * {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.service-reveal.is-visible .service-text > *:nth-child(1) { transition-delay: 450ms; }
.service-reveal.is-visible .service-text > *:nth-child(2) { transition-delay: 540ms; }
.service-reveal.is-visible .service-text > *:nth-child(3) { transition-delay: 630ms; }
.service-reveal.is-visible .service-text > *:nth-child(4) { transition-delay: 720ms; }
.service-reveal.is-visible .service-text > *:nth-child(5) { transition-delay: 810ms; }

@media (prefers-reduced-motion: reduce) {
  .service-reveal .service-photo,
  .service-reveal .service-photo img,
  .service-reveal .service-photo__badge,
  .service-reveal .service-text > * {
    clip-path: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ─────────────────────────────────
   AREA ページ (/area/) — cpriver
───────────────────────────────── */
.cprv-discovery {
  max-width: 1500px;
  margin: 0 auto;
  color: #18324E;
  font-family: var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
}
.cprv-discovery__hero {
  display: grid;
  grid-template-columns: 290px minmax(480px, 1fr) 320px;
  gap: 22px;
  align-items: start;
  padding: 32px 32px 28px;
  border-bottom: 1px solid #DCE6ED;
  background: linear-gradient(180deg, #FFFFFF 0%, #FBFDFE 100%);
}
.cprv-discovery__intro {
  padding-top: 12px;
}
.cprv-discovery__eyebrow,
.cprv-discovery__section-head span {
  color: #003C7E;
  font-size: clamp(9px, 0.9vw, 10px);
  font-weight: 800;
  letter-spacing: 0.16em;
}
.cprv-discovery__title {
  margin: 12px 0 14px;
  color: #003C7E;
  font-size: clamp(28px, 2.35vw, 36px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.45;
}
.cprv-discovery__lead {
  margin: 0;
  color: #526A80;
  font-size: clamp(11px, 0.9vw, 12px);
  line-height: 1.9;
  text-wrap: pretty;
}
.cprv-discovery__guide {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 13px;
  border: 1px solid #CBD8E3;
  border-radius: 7px;
  background: #FFFFFF;
  color: #003C7E;
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 700;
  text-decoration: none;
}
.cprv-discovery__guide:hover {
  border-color: #003C7E;
  color: #003C7E;
}
.cprv-discovery__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 22px 0 0;
}
.cprv-discovery__metrics div {
  padding-top: 10px;
  border-top: 1px solid #DCE6ED;
}
.cprv-discovery__metrics dt {
  color: #75899C;
  font-size: clamp(8px, 0.75vw, 9px);
}
.cprv-discovery__metrics dd {
  margin: 3px 0 0;
  color: #003C7E;
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 800;
}
.cprv-discovery__map-panel {
  min-width: 0;
}
.cprv-discovery__map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border-radius: 14px;
  background:
    radial-gradient(circle at 53% 52%, #E8F4FA, transparent 48%),
    linear-gradient(180deg, #F8FBFD, #EDF7FB);
}
.cprv-discovery__map #map {
  width: 100%;
}
.cprv-discovery__map #map svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
}
.cprv-discovery__map .geolonia-svg-map .prefecture {
  fill: #B8D3A9;
  stroke: #FFFFFF;
  stroke-width: 1.35;
  cursor: pointer;
  transition: fill 0.16s ease, filter 0.16s ease;
}
.cprv-discovery__map .geolonia-svg-map .prefecture:hover {
  fill: #003C7E;
  filter: drop-shadow(0 3px 5px rgba(7, 56, 121, 0.24));
}
.cprv-discovery__map .geolonia-svg-map .prefecture.is-linked-active {
  fill: #003C7E;
  filter: drop-shadow(0 3px 5px rgba(7, 56, 121, 0.24));
}
.cprv-discovery__region-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.cprv-discovery__region-panel {
  position: absolute;
  width: 150px;
  height: auto;
  box-sizing: border-box;
  padding: 10px 10px 6px;
  border: 1px solid rgba(0, 60, 126, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 14px rgba(9, 40, 95, 0.08);
  pointer-events: auto;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.cprv-discovery__region-panel.is-active {
  border-color: rgba(0, 60, 126, 0.55);
  box-shadow: 0 7px 18px rgba(9, 40, 95, 0.15);
}
.cprv-discovery__region-panel h2 {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 0 0 3px;
  color: #003C7E;
  font-size: clamp(9px, 0.9vw, 10px);
  font-weight: 800;
  line-height: 1.4;
}
/* トップ地図ピンと同じアイコンを見出し左に配置 */
.cprv-discovery__region-panel-pin {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}
.cprv-discovery__region-panel > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 3px;
}
.cprv-discovery__region-panel a {
  min-width: 0;
  color: #405b75;
  font-size: clamp(9px, 0.9vw, 10px);
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
  white-space: nowrap;
}
.cprv-discovery__region-panel a:hover,
.cprv-discovery__region-panel a:focus-visible,
.cprv-discovery__region-panel a.is-active {
  color: #003C7E;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cprv-discovery__region-panel[data-region="hokkaido"] { top: 2%; right: 0; }
.cprv-discovery__region-panel[data-region="kanto"] { top: 35%; right: 0; }
.cprv-discovery__region-panel[data-region="chubu"] { right: 0; bottom: 7%; }
.cprv-discovery__region-panel[data-region="kinki"] { right: 27%; bottom: -1%; }
.cprv-discovery__region-panel[data-region="chugoku-shikoku"] { bottom: 4%; left: -172px; }
.cprv-discovery__region-panel[data-region="kyusyu"] { top: 43%; left: -172px; }
.cprv-discovery__pref-popup {
  position: absolute;
  z-index: 3;
  display: inline-grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 10px;
  padding: 6px 11px;
  border: 1px solid #003C7E;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 14px rgba(7, 56, 121, 0.16);
  color: #003C7E;
  white-space: nowrap;
  /* カーソルの右に表示し、ポインタは奪わない（県の切替を安定させる） */
  transform: translate(24px, -50%);
  pointer-events: none;
}
/* カーソル方向（左）を指す吹き出しのしっぽ。外枠(::before)＋白塗り(::after)の2枚重ね */
.cprv-discovery__pref-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #003C7E;
  transform: translateY(-50%);
}
.cprv-discovery__pref-popup::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid #FFFFFF;
  transform: translateY(-50%);
}
.cprv-discovery__pref-popup strong {
  color: #003C7E;
  font-size: clamp(12px, 0.9vw, 13px);
}
.cprv-discovery__pref-popup-meta {
  display: grid;
  justify-items: end;
  padding-left: 10px;
  border-left: 1px solid #DBE5ED;
}
.cprv-discovery__pref-popup-label {
  color: #6C8092;
  font-size: clamp(7px, 0.75vw, 8px);
  font-weight: 700;
}
.cprv-discovery__pref-popup-count {
  color: #003C7E;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 700;
}
.cprv-discovery__region-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.cprv-discovery__region-pin {
  position: absolute;
  z-index: 2;
  min-width: 105px;
  padding: 8px 10px;
  border: 1px solid #D4E0E8;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 14px rgba(26, 66, 94, 0.09);
  color: #003C7E;
  cursor: pointer;
  font-size: clamp(8px, 0.75vw, 9px);
  font-weight: 700;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.cprv-discovery__region-pin strong {
  margin-left: 4px;
  font-size: clamp(12px, 0.9vw, 13px);
}
.cprv-discovery__region-pin:hover,
.cprv-discovery__region-pin.is-active {
  background: #003C7E;
  color: #FFFFFF;
  transform: translateY(-2px);
}
.cprv-discovery__region-pin[data-region="hokkaido"] { top: 11%; right: 8%; }
.cprv-discovery__region-pin[data-region="kanto"] { top: 49%; right: 3%; }
.cprv-discovery__region-pin[data-region="chubu"] { top: 38%; left: 36%; }
.cprv-discovery__region-pin[data-region="kinki"] { right: 15%; bottom: 22%; }
.cprv-discovery__region-pin[data-region="chugoku-shikoku"] { bottom: 34%; left: 4%; }
.cprv-discovery__region-pin[data-region="kyusyu"] { bottom: 11%; left: 3%; }
.cprv-discovery__selector {
  overflow: hidden;
  border: 1px solid #DCE6ED;
  border-radius: 11px;
  background: #FFFFFF;
  box-shadow: 0 8px 22px rgba(22, 60, 88, 0.07);
}
.cprv-discovery__selector header {
  padding: 16px 17px;
  border-bottom: 1px solid #DCE6ED;
  background: #F5F9FC;
}
.cprv-discovery__selector header span {
  color: #003C7E;
  font-size: clamp(8px, 0.75vw, 9px);
  font-weight: 800;
}
.cprv-discovery__selector header h2 {
  margin: 5px 0 4px;
  color: #003C7E;
  font-size: clamp(15px, 1.4vw, 18px);
}
.cprv-discovery__selector header p,
.cprv-discovery__selected-pref p {
  margin: 0;
  color: #64788E;
  font-size: clamp(8px, 0.75vw, 9px);
  line-height: 1.7;
}
.cprv-discovery__pref-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  padding: 14px;
}
.cprv-discovery__pref-list button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 9px 8px;
  border: 1px solid #DCE5EC;
  border-radius: 6px;
  background: #FFFFFF;
  color: #38536A;
  cursor: pointer;
  font-size: clamp(8px, 0.75vw, 9px);
  font-weight: 700;
  text-align: left;
}
.cprv-discovery__pref-list button small {
  overflow: hidden;
  color: #8BA0B1;
  font-size: clamp(7px, 0.75vw, 7px);
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cprv-discovery__pref-list button:hover,
.cprv-discovery__pref-list button.is-active {
  border-color: #003C7E;
  background: #E9F3FA;
  color: #003C7E;
}
.cprv-discovery__selected-pref {
  padding: 15px 17px;
  border-top: 1px solid #DCE6ED;
}
.cprv-discovery__selected-pref > span,
.cprv-discovery__selected-pref > strong,
.cprv-discovery__selected-pref > small {
  display: block;
}
.cprv-discovery__selected-pref > span,
.cprv-discovery__selected-pref > small {
  color: #75899C;
  font-size: clamp(7px, 0.75vw, 8px);
}
.cprv-discovery__selected-pref > strong {
  margin: 4px 0;
  color: #003C7E;
  font-size: clamp(15px, 1.4vw, 18px);
}
.cprv-discovery__selected-pref button {
  width: 100%;
  margin-top: 12px;
  padding: 11px;
  border: 0;
  border-radius: 6px;
  background: #003C7E;
  color: #FFFFFF;
  cursor: pointer;
  font-size: clamp(9px, 0.9vw, 10px);
  font-weight: 700;
}
.cprv-discovery__selected-pref button:hover {
  background: #003C7E;
}
.cprv-discovery__selected-pref > small {
  margin-top: 7px;
  text-align: center;
}
.cprv-discovery__region {
  padding: 9px 10px;
  border: 1px solid #DCE6ED;
  border-radius: 7px;
  background: #FFFFFF;
}
.cprv-discovery__region strong {
  display: block;
  margin-bottom: 5px;
  color: #003C7E;
  font-size: clamp(9px, 0.9vw, 10px);
}
.cprv-discovery__region div {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 7px;
}
.cprv-discovery__region a {
  color: #526A80;
  font-size: clamp(7px, 0.75vw, 8px);
  font-weight: 600;
  text-decoration: none;
}
.cprv-discovery__region a:hover {
  color: #003C7E;
  text-decoration: underline;
}
.cprv-discovery__featured {
  overflow: hidden;
  border: 1px solid #DCE6ED;
  border-radius: 11px;
  background: #FFFFFF;
  box-shadow: 0 8px 22px rgba(22, 60, 88, 0.06);
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.26s ease, transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.cprv-discovery__featured--exiting {
  opacity: 0;
  transform: translateX(-24px);
}
.cprv-discovery__featured--entering {
  opacity: 0;
  transform: translateX(24px);
  transition: none;
}
.cprv-discovery__featured-label {
  padding: 13px 15px;
  color: #003C7E;
  font-size: clamp(13px, 1.2vw, 16px);
  font-weight: 700;
}
.cprv-discovery__featured-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #EDF3F7;
}
.cprv-discovery__featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cprv-discovery__featured-image:hover img {
  transform: scale(1.025);
}
.cprv-discovery__featured-body {
  padding: 14px 15px 16px;
}
.cprv-discovery__location {
  color: #003C7E;
  font-size: clamp(11px, 0.95vw, 13px);
  font-weight: 700;
}
.cprv-discovery__featured-title {
  margin: 6px 0 9px;
  color: #18324E;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  line-height: 1.5;
}
.cprv-discovery__featured-note {
  display: -webkit-box;
  overflow: hidden;
  margin: 11px 0 0;
  color: #5F7284;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.cprv-discovery__featured-cta {
  display: block;
  margin-top: 13px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #003C7E;
  color: #FFFFFF;
  font-size: clamp(13px, 1.1vw, 14px);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.cprv-discovery__featured-cta:hover {
  background: #003C7E;
}
.cprv-discovery__featured--empty {
  padding: 24px;
}
.cprv-discovery__projects {
  padding: 28px 32px 42px;
  background: #FBFDFE;
}
.cprv-discovery__section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 14px;
}
.cprv-discovery__section-title {
  margin: 4px 0 5%;
  color: #003C7E;
  font-size: clamp(18px, 2.8vw, 24px);
  font-weight: 600;
}
.cprv-discovery__section-link {
  color: #003C7E;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 700;
  text-decoration: none;
}
.cprv-discovery__project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 13px;
}
.cprv-discovery__project-card {
  display: grid;
  grid-template-columns: 130px 1fr;
  overflow: hidden;
  border: 1px solid #DBE5ED;
  border-radius: 9px;
  background: #FFFFFF;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cprv-discovery__project-card:hover {
  box-shadow: 0 12px 24px rgba(18, 57, 87, 0.1);
  transform: translateY(-3px);
}
.cprv-discovery__project-image {
  display: block;
  overflow: hidden;
  background: #EDF3F7;
}
.cprv-discovery__project-image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 116px;
  object-fit: cover;
}
.cprv-discovery__project-body {
  padding: 9px 11px;
}
.cprv-discovery__project-place {
  color: #003C7E;
  font-size: clamp(11px, 0.95vw, 12px);
  font-weight: 700;
}
.cprv-discovery__project-heading {
  margin: 3px 0 6px;
  line-height: 1.45;
}
.cprv-discovery__project-title {
  color: #18324E;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 600;
  line-height: 1.45;
  text-decoration: none;
}
.cprv-discovery__project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px solid #EDF1F4;
  color: #6C8092;
  font-size: clamp(10px, 0.8vw, 11px);
}
.cprv-discovery__project-stat {
  white-space: nowrap;
}
.cprv-discovery__project-stat-label {
  margin-right: 4px;
}
.cprv-discovery__project-stat-value {
  color: #003C7E;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 800;
}
.cprv-discovery__empty {
  padding: 24px;
  border: 1px dashed #CBD8E3;
  border-radius: 8px;
  color: #64788E;
  font-size: clamp(10px, 0.9vw, 11px);
  text-align: center;
}
@media (max-width: 1200px) {
  .cprv-discovery__hero {
    grid-template-columns: 230px minmax(440px, 1fr);
  }
  .cprv-discovery__selector {
    grid-column: 1 / -1;
  }
  .cprv-discovery__pref-list {
    grid-template-columns: repeat(4, 1fr);
  }
  .cprv-discovery__project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 900px) {
  .cprv-discovery__hero {
    grid-template-columns: 1fr;
    padding: 24px 18px;
  }
  .cprv-discovery__intro {
    padding-top: 0;
  }
  .cprv-discovery__map {
    min-height: auto;
  }
  .cprv-discovery__region-links {
    grid-template-columns: repeat(2, 1fr);
  }
  .cprv-discovery__selector {
    grid-column: auto;
  }
  .cprv-discovery__featured {
    display: grid;
    grid-template-columns: 220px 1fr;
  }
  .cprv-discovery__projects {
    padding: 24px 18px 36px;
  }
}
@media (max-width: 600px) {
  .cprv-discovery__hero {
    padding: 20px 12px;
  }
  .cprv-discovery__title {
    font-size: clamp(21px, 2.6vw, 27px);
  }
  .cprv-discovery__map #map svg {
    max-height: none;
  }
  .cprv-discovery__pref-popup {
    width: auto;
  }
  .cprv-discovery__region-links {
    grid-template-columns: 1fr;
  }
  .cprv-discovery__region-pin {
    min-width: 82px;
    padding: 6px;
    font-size: clamp(7px, 0.75vw, 7px);
  }
  .cprv-discovery__region-pin strong {
    font-size: clamp(9px, 0.9vw, 10px);
  }
  .cprv-discovery__pref-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .cprv-discovery__featured {
    display: block;
  }
  .cprv-discovery__project-grid {
    grid-template-columns: 1fr;
  }
  .cprv-discovery__project-card {
    display: grid;
    grid-template-columns: 120px 1fr;
  }
  .cprv-discovery__project-card > a {
    height: 100%;
    aspect-ratio: auto;
  }
  .cprv-discovery__section-title {
    font-size: clamp(18px, 2vw, 20px);
  }
}

/* 添付デザインに寄せた地図中心レイアウト */
.cprv-discovery {
  width: calc(100% - 92px);
  max-width: 1340px;
  margin-right: auto;
  margin-left: auto;
  background: #fff;
}
.cprv-discovery__hero {
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  padding: 14px 20px 10px;
  border-bottom: 0;
  background:
    radial-gradient(circle at 48% 45%, rgba(221, 241, 251, 0.75), transparent 38%),
    linear-gradient(180deg, #fff 0%, #f7fbfd 100%);
}
.cprv-discovery__explorer {
  position: relative;
  min-width: 0;
  min-height: 525px;
}
.cprv-discovery__intro {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 300px;
  padding: 20px 10px 0 16px;
}
.cprv-discovery__title {
  margin: 0 0 14px;
  color: #003C7E;
  font-size: clamp(30px, 2.4vw, 40px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.45;
}
.cprv-discovery__title span {
  display: block;
  font-weight: 800;
  white-space: nowrap;
}
/* 「自治体から選ぶ」の上に置く小見出し (同色・20px) */
.cprv-discovery__title-pre {
  font-size: clamp(13px, 1.15vw, 15px);
  letter-spacing: 0;
  padding-left: 4px;
}
.cprv-discovery__lead {
  max-width: none;
  color: #334d6c;
  font-size: clamp(11px, 0.85vw, 13px);
  line-height: 1.85;
  white-space: nowrap;
}
.cprv-discovery__guide {
  margin-top: 14px;
  padding: 9px 13px;
  border-color: #d2dce7;
  box-shadow: 0 3px 8px rgba(9, 40, 95, 0.06);
  font-size: clamp(9px, 0.9vw, 10px);
}
.cprv-discovery__guide::before {
  margin-right: 7px;
  color: #003C7E;
  content: "▣";
}
.cprv-discovery__map {
  position: absolute;
  top: 0;
  left: 19%;
  right: auto;
  width: 62%;
  min-height: 525px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  transform: none;
}
.cprv-discovery__map #map {
  position: static;
  left: auto;
  width: 100%;
}
.cprv-discovery__map #map svg {
  max-height: 525px;
  transform: none;
}
.cprv-discovery__map .geolonia-svg-map .prefecture {
  fill: #b7d2aa;
  stroke-width: 1.15;
}
/* #map を同心円リングより前面へ */
.cprv-discovery__map #map {
  position: relative;
  z-index: 1;
}
/* 同心円の装飾 (トップページ地図と同様) */
.cprv-discovery__map-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cprv-discovery__map-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  /* 幅基準で高さを揃えて正円にする (コンテナが非正方形でも歪まない) */
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px dashed rgba(75, 175, 200, 0.35);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: map-ring-ripple 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}
.cprv-discovery__map-rings .ring-1 { width: 28%; animation-delay: 0s; }
.cprv-discovery__map-rings .ring-2 { width: 44%; animation-delay: 0.9s; }
.cprv-discovery__map-rings .ring-3 { width: 60%; animation-delay: 1.8s; }
.cprv-discovery__map-rings .ring-4 {
  width: 76%;
  border-color: rgba(75, 175, 200, 0.18);
  animation-delay: 2.7s;
}
@media (prefers-reduced-motion: reduce) {
  .cprv-discovery__map-rings .ring { animation: none; opacity: 1; }
}
.cprv-discovery__region-panels {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
}
.cprv-discovery__region-panel {
  position: absolute;
  width: 146px;
}
.cprv-discovery__region-panel[data-region="chugoku-shikoku"] {
  top: 43%;
  right: 80%;
  left: auto;
  /* 基本定義の bottom: 4% を打ち消す (top と両指定で高さが伸びるため) */
  bottom: auto;
}
.cprv-discovery__region-panel[data-region="kyusyu"] {
  top: 72%;
  right: 80%;
  left: auto;
}
.cprv-discovery__region-panel[data-region="hokkaido"] {
  top: 31%;
  right: auto;
  left: 67%;
}
.cprv-discovery__region-panel[data-region="kanto"] {
  top: 58%;
  right: auto;
  left: 67%;
}
.cprv-discovery__region-panel[data-region="chubu"] {
  right: auto;
  bottom: 46%;
  left: 29%;
}
.cprv-discovery__region-panel[data-region="kinki"] {
  z-index: 2;
  right: 37%;
  bottom: 0;
}
.cprv-discovery__pref-popup {
  grid-auto-flow: column;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 0;
  padding: 6px 11px;
  border: 1px solid #003C7E;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 6px 14px rgba(9, 40, 95, 0.18);
  /* カーソルの右に表示し、ポインタは奪わない（県の切替を安定させる） */
  transform: translate(24px, -50%);
  pointer-events: none;
}
/* カーソル方向（左）を指す吹き出しのしっぽ。外枠(::before)＋白塗り(::after)の2枚重ね */
.cprv-discovery__pref-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #003C7E;
  transform: translateY(-50%);
}
.cprv-discovery__pref-popup::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid #FFFFFF;
  transform: translateY(-50%);
}
.cprv-discovery__pref-popup strong {
  font-size: clamp(12px, 0.9vw, 13px);
  white-space: nowrap;
}
.cprv-discovery__pref-popup-meta {
  display: grid;
  justify-items: end;
  padding-left: 10px;
  border-left: 1px solid #dce5ed;
  white-space: nowrap;
}
.cprv-discovery__pref-popup-label {
  font-size: clamp(7px, 0.75vw, 8px);
  white-space: nowrap;
}
.cprv-discovery__pref-popup-count {
  font-size: clamp(12px, 1.15vw, 14px);
  white-space: nowrap;
}
.cprv-discovery__region-pin {
  min-width: 112px;
  padding: 9px 11px;
  border-color: #d5dfe8;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 5px 12px rgba(9, 40, 95, 0.08);
  color: #003C7E;
  font-size: clamp(8px, 0.75vw, 9px);
}
.cprv-discovery__region-pin strong {
  display: block;
  margin: 2px 0 0;
  font-size: clamp(12px, 1.15vw, 14px);
}
.cprv-discovery__region-pin[data-region="hokkaido"] { top: 9%; right: 4%; }
.cprv-discovery__region-pin[data-region="kanto"] { top: 46%; right: -2%; }
.cprv-discovery__region-pin[data-region="chubu"] { top: 35%; left: 31%; }
.cprv-discovery__region-pin[data-region="kinki"] { right: 9%; bottom: 20%; }
.cprv-discovery__region-pin[data-region="chugoku-shikoku"] { bottom: 32%; left: -1%; }
.cprv-discovery__region-pin[data-region="kyusyu"] { bottom: 10%; left: -2%; }
.cprv-discovery__featured {
  align-self: stretch;
  border-radius: 8px;
  box-shadow: none;
}
.cprv-discovery__featured-label {
  padding: 12px 13px;
  border-bottom: 1px solid #e0e7ee;
  font-size: clamp(13px, 1.2vw, 16px);
}
.cprv-discovery__featured-image {
  margin: 10px 11px 0;
  border-radius: 6px;
  aspect-ratio: 16 / 8.5;
}
.cprv-discovery__featured-body {
  padding: 10px 13px 12px;
}
.cprv-discovery__featured-title {
  margin: 5px 0 8px;
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 800;
  line-height: 1.45;
}
.cprv-discovery__featured-note {
  margin-top: 9px;
  font-size: clamp(12px, 1vw, 14px);
  -webkit-line-clamp: 2;
}
.cprv-discovery__featured-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #e0e7ee;
  border-radius: 8px;
  background: #fbfdff;
}
.cprv-discovery__featured-stat-label {
  color: #718297;
  font-size: clamp(10px, 0.9vw, 12px);
}
.cprv-discovery__featured-stat-value {
  margin: 2px 0 0;
  color: #003C7E;
  font-size: clamp(13px, 1.1vw, 15px);
  font-weight: 800;
}
.cprv-discovery__featured-cta {
  margin-top: 9px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #003C7E;
}
.cprv-discovery__pref-strip {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 9px 14px;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
}
.cprv-discovery__pref-strip > strong {
  flex: 0 0 auto;
  color: #003C7E;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 800;
}
.cprv-discovery__pref-strip > div {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}
.cprv-discovery__pref-strip button {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
  color: #38536a;
  cursor: pointer;
  font-size: clamp(12px, 1vw, 13px);
  font-weight: 700;
}
.cprv-discovery__pref-strip button small {
  margin-left: 5px;
  color: #7188a2;
  font-size: clamp(10px, 0.85vw, 11px);
}
.cprv-discovery__pref-strip button:hover,
.cprv-discovery__pref-strip button.is-active {
  border-color: #003C7E;
  background: #edf5ff;
  color: #003C7E;
}
.cprv-discovery__projects {
  margin: 0 20px 18px;
  padding: 30px 34px 32px;
  border: 1px solid #dce5ed;
  border-radius: 8px;
  background: #fff;
}
/* トップページの「注目の自治体・プロジェクト」では白背景・枠線を出さない */
.cprv-discovery__projects--plain {
  background: transparent;
  border: none;
  border-radius: 0;
}
.cprv-discovery__section-head {
  margin-bottom: 10px;
}
.cprv-discovery__section-title {
  font-size: clamp(18px, 1.8vw, 20px);
  font-weight: 600;
  margin-bottom: 5%;
}
.cprv-discovery__project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
@media (max-width: 1250px) {
  .cprv-discovery {
    width: calc(100% - 76px);
    margin-right: auto;
    margin-left: auto;
  }
  .cprv-discovery__hero {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .cprv-discovery__project-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .cprv-discovery__region-panel {
    padding: 6px 7px 7px;
  }
  .cprv-discovery__region-panel h2 {
    font-size: clamp(8px, 0.75vw, 9px);
  }
  .cprv-discovery__region-panel a {
    font-size: clamp(9px, 0.9vw, 10px);
  }
  .cprv-discovery__explorer {
    min-height: 0;
  }
  .cprv-discovery__intro {
    position: static;
    width: auto;
  }
  .cprv-discovery__map {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    min-height: auto;
  }
  .cprv-discovery__region-panels {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 150px);
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    pointer-events: auto;
  }
  .cprv-discovery__region-panel,
  .cprv-discovery__region-panel[data-region] {
    position: static;
    width: 150px;
  }
}
@media (max-width: 1000px) {
  .cprv-discovery__hero {
    grid-template-columns: 1fr;
  }
  .cprv-discovery__explorer {
    display: block;
    min-height: 0;
  }
  .cprv-discovery__intro {
    position: static;
    width: auto;
  }
  .cprv-discovery__map {
    position: relative;
    inset: auto;
    min-height: auto;
    transform: none;
  }
  .cprv-discovery__map #map {
    position: static;
    left: auto;
    width: 100%;
  }
  .cprv-discovery__map #map svg {
    max-height: 525px;
    transform: none;
  }
  .cprv-discovery__featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 250px 1fr;
  }
  .cprv-discovery__featured-label {
    grid-column: 1 / -1;
  }
  .cprv-discovery__project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .cprv-discovery__region-panels {
    position: static;
    display: grid;
    grid-template-columns: repeat(3, 150px);
    justify-content: center;
    gap: 7px;
    margin-top: 8px;
    pointer-events: auto;
  }
  .cprv-discovery__region-panel,
  .cprv-discovery__region-panel[data-region] {
    position: static;
    width: 150px;
  }
}
@media (max-width: 760px) {
  .cprv-discovery {
    width: 100%;
    margin-right: 0;
  }
  .cprv-discovery__hero {
    grid-template-columns: 1fr;
    padding: 14px 12px 10px;
  }
  .cprv-discovery__intro {
    padding: 8px 4px 0;
  }
  .cprv-discovery__lead {
    white-space: normal;
  }
  .cprv-discovery__map {
    min-height: auto;
    transform: none;
  }
  .cprv-discovery__featured {
    grid-column: auto;
    display: block;
  }
  .cprv-discovery__pref-strip {
    grid-column: auto;
  }
  .cprv-discovery__projects {
    margin: 0 12px 14px;
    padding: 14px;
  }
  .cprv-discovery__project-grid {
    grid-template-columns: 1fr;
  }
  .cprv-discovery__region-panels {
    grid-template-columns: repeat(2, 150px);
  }
}

/* トップページでは cprv-discovery を全幅表示（中央寄せ・最大幅の制約を解除）。
   全ブレークポイントの width 指定より後に置いて上書きする。 */
.cprv-discovery--top {
  width: 100%;
  max-width: none;
  margin-right: 0;
  margin-left: 0;
}

.cprv-project-area {
  width: min(100%, 1280px);
  margin: 0 auto;
  padding: 28px 32px 80px;
  color: #243244;
  font-family: var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
}
.cprv-project-area__header {
  margin-bottom: 20px;
  text-align: center;
}
.cprv-project-area__title {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 20px 15px;
  color: #003C7E;
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
}
.cprv-project-area__title::after {
  position: absolute;
  right: 20%;
  bottom: 0;
  left: 20%;
  height: 3px;
  border-radius: 999px;
  background: #168EA1;
  content: "";
}
.cprv-project-area__lead {
  margin: 14px 0 0;
  color: #64748B;
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.8;
}
.cprv-project-area__board {
  position: relative;
  min-height: 780px;
  border-radius: 24px;
  background: linear-gradient(180deg, #F8FBFD 0%, #FFFFFF 72%);
}
.cprv-project-area__map {
  position: absolute;
  top: 54px;
  left: 50%;
  width: min(68%, 760px);
  transform: translateX(-50%);
}
.cprv-project-area__map #map {
  display: block;
  width: 100%;
}
.cprv-project-area__map #map svg {
  display: block;
  width: 100%;
  height: auto;
}
.cprv-project-area__map .geolonia-svg-map .prefecture {
  fill: #C7E6EA;
  stroke: #FFFFFF;
  stroke-width: 1.5;
  transition: fill 0.18s ease, filter 0.18s ease;
}
.cprv-project-area__map .geolonia-svg-map .prefecture:hover {
  fill: #168EA1;
  filter: drop-shadow(0 3px 4px rgba(0, 60, 126, 0.22));
}
.cprv-project-area__region {
  position: absolute;
  z-index: 1;
  width: 220px;
  padding: 14px 16px 16px;
  border: 1px solid #DCE6ED;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 18px rgba(15, 45, 72, 0.08);
}
.cprv-project-area__region-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 11px;
  color: #17324D;
  font-size: clamp(14px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1.4;
}
.cprv-project-area__region-mark {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.cprv-project-area__prefectures {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cprv-project-area__prefecture {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 5px;
  background: #F1F5F7;
  color: #334155;
  font-size: clamp(11px, 0.9vw, 12px);
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.18s ease, color 0.18s ease;
}
.cprv-project-area__prefecture:hover {
  background: #168EA1;
  color: #FFFFFF;
}
.cprv-project-area__region[data-region="hokkaido"] {
  top: 30px;
  right: 4%;
}
.cprv-project-area__region[data-region="kanto"] {
  right: 1%;
  bottom: 105px;
}
.cprv-project-area__region[data-region="chubu"] {
  top: 218px;
  left: 1%;
}
.cprv-project-area__region[data-region="kinki"] {
  right: 22%;
  bottom: 12px;
}
.cprv-project-area__region[data-region="chugoku-shikoku"] {
  bottom: 12px;
  left: 21%;
}
.cprv-project-area__region[data-region="kyusyu"] {
  bottom: 105px;
  left: 1%;
}
@media (max-width: 1100px) {
  .cprv-project-area__board {
    min-height: 720px;
  }
  .cprv-project-area__map {
    top: 80px;
    width: 64%;
  }
  .cprv-project-area__region {
    width: 195px;
  }
  .cprv-project-area__region[data-region="hokkaido"] {
    right: 0;
  }
  .cprv-project-area__region[data-region="kanto"] {
    right: 0;
  }
  .cprv-project-area__region[data-region="chubu"],
  .cprv-project-area__region[data-region="kyusyu"] {
    left: 0;
  }
}
@media (max-width: 900px) {
  .cprv-project-area {
    padding: 24px 20px 64px;
  }
  .cprv-project-area__board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    min-height: 0;
    padding: 18px;
  }
  .cprv-project-area__map {
    position: static;
    grid-column: 1 / -1;
    width: min(100%, 620px);
    margin: 0 auto 8px;
    transform: none;
  }
  .cprv-project-area__map #map {
    display: block;
  }
  .cprv-project-area__region,
  .cprv-project-area__region[data-region] {
    position: static;
    width: auto;
  }
}
@media (max-width: 600px) {
  .cprv-project-area {
    padding: 20px 12px 48px;
  }
  .cprv-project-area__header {
    margin-bottom: 16px;
  }
  .cprv-project-area__title {
    padding-right: 0;
    padding-left: 0;
    font-size: clamp(20px, 1.8vw, 24px);
    letter-spacing: 0.04em;
  }
  .cprv-project-area__lead {
    font-size: clamp(12px, 0.9vw, 13px);
  }
  .cprv-project-area__board {
    grid-template-columns: 1fr;
    padding: 12px;
    border-radius: 16px;
  }
  .cprv-project-area__region {
    padding: 13px 14px 15px;
  }
  .cprv-project-area__prefecture {
    min-height: 32px;
    padding: 6px 11px;
  }
}

.cprv-area {
  max-width: 1340px;
  margin: 0 auto;
  padding: 24px 32px 64px;
  font-family: var(--font-inter, 'Inter'), var(--font-noto-sans-jp, 'Noto Sans JP'), sans-serif;
  color: #1F2937;
  background:
    radial-gradient(1200px 320px at 100% 0%, rgba(37, 99, 235, 0.06), transparent 60%),
    radial-gradient(900px 260px at 0% 0%, rgba(37, 99, 235, 0.05), transparent 60%);
}
.cprv-area__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}
.cprv-area__title {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  margin: 0 0 8px;
  letter-spacing: 0.02em;
  color: #0B2D7A;
}
.cprv-area__lead {
  font-size: clamp(13px, 1.2vw, 14px);
  color: #4B5563;
  line-height: 1.7;
  margin: 0;
}
/* /lg/ トップの目的説明テキスト（ヘッダー直下） */
.cprv-area__intro {
  background: #F0F5FF;
  border: 1px solid #DBE5F5;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.cprv-area__intro p {
  margin: 0 0 10px;
  font-size: clamp(13px, 0.6vw + 0.55rem, 14px);
  color: #324155;
  line-height: 1.9;
}
.cprv-area__intro p:last-child {
  margin-bottom: 0;
}
@media (max-width: 640px) {
  .cprv-area__intro {
    padding: 16px 16px;
  }
}
.cprv-area__search-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 18px 22px;
  min-width: 320px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}
.cprv-area__search-card-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: clamp(12px, 1.1vw, 13px);
  color: #4B5563;
  margin-bottom: 10px;
}
.cprv-area__search-card-label svg { color: #2563EB; }
.cprv-area__search-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background: #2563EB;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 18px;
  border-radius: 10px;
  transition: background 0.2s;
}
.cprv-area__search-card-cta:hover { background: #1E4ED8; }

.cprv-area__tabs {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  background: #F1F5F9;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 24px;
}
.cprv-area__tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  border: 0;
  padding: 12px 8px;
  border-radius: 10px;
  font-size: clamp(12px, 1.15vw, 14px);
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.cprv-area__tab:hover { background: rgba(255, 255, 255, 0.7); }
.cprv-area__tab.is-active {
  background: #2563EB;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35);
}
.cprv-area__tab.is-active .cprv-area__tab-icon { color: #fff; }
.cprv-area__tab-icon { display: inline-flex; align-items: center; }

.cprv-area__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 24px;
}
.cprv-area__map {
  background:
    radial-gradient(ellipse at 50% 0%, #f1f7fc 0%, transparent 60%),
    linear-gradient(180deg, #eaf3fb 0%, #d6e8f5 100%);
  border: 1px solid #cfe0ef;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(15, 76, 129, 0.08);
}
.cprv-area__map-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #EFF6FF;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
  color: #1E3A8A;
}
.cprv-area__map-hint svg { color: #2563EB; flex-shrink: 0; margin-top: 2px; }
.cprv-area__map-hint strong { display: block; font-size: clamp(13px, 1.15vw, 14px); font-weight: 700; margin-bottom: 2px; }
.cprv-area__map-hint p { margin: 0; font-size: clamp(11px, 1vw, 12px); color: #475569; line-height: 1.5; }
.cprv-area__map-canvas {
  position: relative;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cprv-area__map-rings {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.cprv-area__map-rings .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  aspect-ratio: 1 / 1;
  height: auto;
  border: 1px dashed rgba(75, 175, 200, 0.34);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  animation: map-ring-ripple 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  will-change: transform, opacity;
}
.cprv-area__map-rings .ring-1 { width: 28%; animation-delay: 0s; }
.cprv-area__map-rings .ring-2 { width: 44%; animation-delay: 0.9s; }
.cprv-area__map-rings .ring-3 { width: 60%; animation-delay: 1.8s; }
.cprv-area__map-rings .ring-4 {
  width: 76%;
  border-color: rgba(75, 175, 200, 0.18);
  animation-delay: 2.7s;
}
.cprv-area__map-canvas #map {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
}
.cprv-area__map-canvas #map svg {
  width: 100%;
  height: auto;
  display: block;
  max-height: 720px;
}
/* /lg/ の都道府県地図を /area/(cprv-discovery__map) と同じ配色に統一
   （SVG 既定の黄緑をやめ、セージ緑 + 紺ホバーに） */
.cprv-area__map .geolonia-svg-map .prefecture {
  fill: #b7d2aa;
  stroke: #FFFFFF;
  stroke-width: 1.15;
  cursor: pointer;
  transition: fill 0.16s ease, filter 0.16s ease;
}
.cprv-area__map .geolonia-svg-map .prefecture:hover,
.cprv-area__map .geolonia-svg-map .prefecture.is-linked-active {
  fill: #003C7E;
  filter: drop-shadow(0 3px 5px rgba(7, 56, 121, 0.24));
}
/* ホバー時の県名ツールチップ（/area/ と同様。件数は出さない） */
.cprv-area__map-figure {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* 県地図モーダル（/lg/）: 日本地図クリックで、新フォーマット県地図(PrefectureSvgMap)を
   画面中央のポップアップで大きく表示する。背景クリック / ✕ / Esc で閉じる。 */
.cprv-area__modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  animation: cprvAreaModalFade 0.16s ease;
}
@keyframes cprvAreaModalFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.cprv-area__modal-panel {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #fff;
  border-radius: 16px;
  padding: clamp(16px, 2vw, 22px);
  box-shadow: 0 24px 60px rgba(0, 54, 120, 0.28);
}
.cprv-area__modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.cprv-area__modal-head strong {
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 700;
  color: var(--colorLightBase);
}
.cprv-area__modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #E5E7EB;
  border-radius: 50%;
  background: #fff;
  color: #475569;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.cprv-area__modal-close:hover { background: var(--colorLightBase); color: #fff; }
.cprv-area__modal-body {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid #cfe0ef;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 50% 0%, #f1f7fc 0%, transparent 60%),
    linear-gradient(180deg, #eaf3fb 0%, #d6e8f5 100%);
  padding: 10px;
}
.cprv-area__modal-body > svg,
.cprv-area__modal-body > div:not(.cprv-area__map-rings) {
  position: relative;
  z-index: 1;
}
.cprv-area__modal-pref-cta {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(13, 27, 58, 0.06);
  padding: 12px 14px;
  max-width: 200px;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.cprv-area__modal-pref-cta:hover {
  background: #f1f7fc;
  box-shadow: 0 4px 14px rgba(13, 27, 58, 0.12);
}
.cprv-area__modal-pref-cta-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.cprv-area__modal-pref-cta-title {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 700;
  color: #003c7e;
  margin: 0;
}
.cprv-area__modal-pref-cta-sub {
  font-size: clamp(10px, 0.9vw, 11px);
  color: #5b6677;
  line-height: 1.5;
  margin: 0;
}
.cprv-area__modal-pref-cta-arrow {
  font-weight: 700;
  color: #003c7e;
  flex-shrink: 0;
}
.cprv-area__modal-link {
  display: inline-block;
  margin-top: 14px;
  font-weight: 700;
  color: var(--colorLightBase);
  text-decoration: none;
}
.cprv-area__modal-link:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
  .cprv-area__map-rings .ring { animation: none; opacity: 1; }
}
.cprv-area__pref-popup {
  position: absolute;
  z-index: 3;
  padding: 6px 11px;
  border: 1px solid #003C7E;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 6px 14px rgba(7, 56, 121, 0.16);
  color: #003C7E;
  white-space: nowrap;
  /* カーソルの右に表示し、ポインタは奪わない */
  transform: translate(24px, -50%);
  pointer-events: none;
}
.cprv-area__pref-popup::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 8px solid #003C7E;
  transform: translateY(-50%);
}
.cprv-area__pref-popup::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -7px;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
  border-right: 7px solid #FFFFFF;
  transform: translateY(-50%);
}
.cprv-area__pref-popup strong { color: #003C7E; font-size: clamp(12px, 1vw, 13px); font-weight: 700; }
/* 県地図モーダルの自治体吹き出し用。県名のみの日本地図 popup に人口・面積行を足す。 */
.cprv-area__pref-popup-meta {
  display: flex;
  gap: 12px;
  margin-top: 3px;
  font-size: clamp(11px, 0.95vw, 12px);
  font-weight: 600;
  color: #475569;
}
.cprv-area__pref-popup-meta b { color: #1f2937; font-weight: 700; }

.cprv-area__regions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: start;
}
.cprv-area__card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s;
  scroll-margin-top: 120px; /* sticky header 分のオフセット */
}
.cprv-area__card:hover {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}
.cprv-area__card-head {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 10px;
}
.cprv-area__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.cprv-area__card-title {
  font-size: clamp(14px, 1.25vw, 16px);
  font-weight: 700;
  margin: 0;
  color: #0F172A;
}
.cprv-area__card-count {
  font-size: clamp(11px, 1vw, 12px);
  color: #64748B;
  white-space: nowrap;
}
.cprv-area__card-chevron { color: #94A3B8; }
.cprv-area__card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cprv-area__chip {
  display: inline-flex;
  align-items: center;
  background: #F1F5F9;
  color: #334155;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.cprv-area__chip:hover {
  background: #DBEAFE;
  color: #1D4ED8;
}

.cprv-area__citysearch {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.cprv-area__citysearch-label {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  color: #0F172A;
  font-size: clamp(13px, 1.2vw, 15px);
}
.cprv-area__citysearch-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #EFF6FF;
  color: #2563EB;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cprv-area__citysearch-help {
  font-size: clamp(11px, 1vw, 12px);
  color: #64748B;
  margin: 0;
}
.cprv-area__citysearch-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.cprv-area__select,
.cprv-area__input {
  height: 40px;
  border: 1px solid #E5E7EB;
  border-radius: 8px;
  padding: 0 12px;
  font-size: clamp(13px, 1.15vw, 14px);
  color: #0F172A;
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cprv-area__select:focus,
.cprv-area__input:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.cprv-area__select { min-width: 180px; }
.cprv-area__input { min-width: 220px; }
.cprv-area__search-btn {
  height: 40px;
  width: 44px;
  border: 0;
  border-radius: 8px;
  background: #2563EB;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.cprv-area__search-btn:hover { background: #1E4ED8; }

@media (max-width: 1100px) {
  .cprv-area__grid { grid-template-columns: 1fr; }
  .cprv-area__tabs { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 768px) {
  .cprv-area { padding: 16px 16px 48px; }
  .cprv-area__head { grid-template-columns: 1fr; align-items: stretch; }
  .cprv-area__search-card { min-width: 0; }
  .cprv-area__tabs { grid-template-columns: repeat(2, 1fr); }
  .cprv-area__regions { grid-template-columns: 1fr; }
  .cprv-area__citysearch { grid-template-columns: 1fr; }
  .cprv-area__citysearch-row { flex-wrap: wrap; }
  .cprv-area__select, .cprv-area__input { flex: 1 1 auto; min-width: 0; }
}

/* =========================================================================
   トップページ「データ訴求」セクション (DataInsightsSection)
   左コピー + 右に横スクロールカルーセル。/lg/ のグラフ表現を踏襲。
   ビューポート進入で各チャートがアニメーション。
   ========================================================================= */
.data-insights {
  --di-teal: #1a8c8d;
  --di-teal-soft: rgba(26, 140, 141, 0.12);
  --di-blue-soft: #9ec3ff;
  --di-pink: #e7a3a3;
  --di-line: #e3e9f1;
  --di-grid: #eef2f7;
  --di-muted: #5b6677;
  --di-ink: #18324E;
  position: relative;
  overflow: hidden;
  padding: 96px 0 104px;
  background-color: #eef4fb;
  background-image: url('/tenants/cpriver/assets/img/common/stats-bg.png');
  background-position: center;
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* 背景は .data-insights の background-image (stats-bg.png) に統一。旧CSS装飾は撤去。 */

/* 上下の区切り: 滑らかな白い曲線（隣接セクションへなめらかに繋ぐ） */
.data-insights::before,
.data-insights::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 90px;
  z-index: 2;
  pointer-events: none;
  background-repeat: no-repeat;
  background-size: 100% 100%;
}
.data-insights::before {
  top: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,0 H1440 V42 C1080,2 360,90 0,46 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}
.data-insights::after {
  bottom: -1px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath d='M0,90 H1440 V48 C1080,88 360,0 0,44 Z' fill='%23ffffff'/%3E%3C/svg%3E");
}

/* レイアウト: 左コピー + 右カルーセル。左は中央コンテナに揃え、右は画面端までブリード */
.data-insights__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding-left: max(20px, calc((100vw - 1180px) / 2));
  /* 進入アニメーション */
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s cubic-bezier(0.16, 1, 0.3, 1);
}
.data-insights.is-in .data-insights__inner { opacity: 1; transform: none; }

/* 左カラム */
.data-insights__copy { min-width: 0; }
.data-insights__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(11px, 0.9vw, 12px); font-weight: 800; letter-spacing: 0.12em;
  color: var(--di-teal); margin: 0 0 12px;
}
.data-insights__eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--di-teal); border-radius: 2px; }
.data-insights__title {
  font-size: clamp(26px, 2.7vw, 40px); font-weight: 800; line-height: 1.38;
  margin: 0 0 14px; color: var(--di-ink);
}
.data-insights__title-em { color: var(--di-ink); font-style: normal; font-weight: 800; }
.data-insights__lead { font-size: clamp(12.5px, 1.15vw, 14.5px); line-height: 1.9; color: var(--di-muted); margin: 0 0 20px; }
.data-insights__bullets { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.data-insights__bullets li { display: flex; align-items: center; gap: 11px; font-size: clamp(11.5px, 1.15vw, 13.5px); font-weight: 600; color: var(--di-ink); }
.data-insights__bullets svg { color: var(--di-teal); flex: 0 0 auto; }
.data-insights__cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 28px; background: var(--colorLightBase); color: #fff;
  border-radius: 999px; font-weight: 800; font-size: clamp(12px, 1.15vw, 14px); text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 60, 126, 0.22);
  transition: transform .15s, box-shadow .15s;
}
.data-insights__cta:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 60, 126, 0.3); color: #fff; }

/* 右カラム: カルーセル */
.data-insights__carousel { min-width: 0; }
.data-insights__scroller {
  display: flex; gap: 20px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding: 6px 24px 16px 4px;
  scrollbar-width: none;
}
.data-insights__scroller::-webkit-scrollbar { display: none; }

/* カード */
.di-card {
  flex: 0 0 clamp(290px, 30vw, 366px);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--di-line); border-radius: 16px;
  padding: 18px; box-shadow: 0 16px 42px rgba(11, 45, 122, 0.08);
}
.di-card__head { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; margin-bottom: 14px; }
.di-card__badge {
  width: 42px; height: 42px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  box-shadow: 0 6px 14px rgba(11, 45, 122, 0.18);
}
.di-card__heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.di-card__title { font-size: clamp(15px, 1.4vw, 18px); font-weight: 800; color: var(--di-ink); line-height: 1.2; }
.di-card__sub { font-size: clamp(10.5px, 0.9vw, 11.5px); color: var(--di-muted); line-height: 1.3; }
.di-card__detail {
  display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--di-line); background: #fff;
  font-size: clamp(10.5px, 0.9vw, 11.5px); font-weight: 700; color: var(--di-muted); text-decoration: none;
  transition: color .15s, border-color .15s;
}
.di-card__detail:hover { color: var(--di-teal); border-color: var(--di-teal); }
.di-card__chart { padding: 4px 2px; }

/* 数値タイル */
.di-card__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.di-stat {
  background: #f4f8fb; border: 1px solid var(--di-line); border-radius: 10px;
  padding: 11px 8px; text-align: center; opacity: 0; transform: translateY(8px);
}
.di-card__stats.is-anim .di-stat { animation: diStatIn .5s ease forwards; }
@keyframes diStatIn { to { opacity: 1; transform: none; } }
.di-stat__num { font-size: clamp(19px, 1.8vw, 23px); font-weight: 800; color: var(--colorLightBase); line-height: 1; }
.di-stat__num small { font-size: clamp(11px, 0.9vw, 12px); font-weight: 700; margin-left: 2px; }
.di-stat__label { font-size: clamp(9.5px, 0.9vw, 10.5px); color: var(--di-muted); margin-top: 6px; }

/* バー伸長アニメーション */
@keyframes diGrowX { from { transform: scaleX(0); opacity: .4; } to { transform: scaleX(1); opacity: 1; } }

/* 横棒グラフ */
.di-bars { display: flex; flex-direction: column; gap: 10px; }
.di-bar__row { display: grid; grid-template-columns: minmax(86px, 104px) 1fr 46px; align-items: center; gap: 9px; }
.di-bar__label { font-size: clamp(10px, 0.9vw, 11px); line-height: 1.25; color: var(--di-muted); font-weight: 600; }
.di-bar__track { position: relative; height: 11px; background: var(--di-grid); border-radius: 999px; overflow: hidden; }
.di-bar__fill { position: absolute; inset: 0 auto 0 0; height: 100%; background: var(--di-teal); border-radius: 999px; transform: scaleX(0); transform-origin: left; }
.di-bar__fill.is-anim { animation: diGrowX .85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.di-bar__val { font-size: clamp(10.5px, 0.9vw, 11.5px); font-weight: 800; color: var(--di-ink); text-align: right; }

/* 人口ピラミッド */
.di-pyr { display: flex; flex-direction: column; gap: 4px; }
.di-pyr__row { display: grid; grid-template-columns: 1fr 46px 1fr; align-items: center; gap: 6px; }
.di-pyr__side { display: flex; align-items: center; height: 11px; }
.di-pyr__side--l { justify-content: flex-end; }
.di-pyr__bar { height: 9px; border-radius: 3px; transform: scaleX(0); }
.di-pyr__bar--m { background: var(--di-blue-soft); transform-origin: right; }
.di-pyr__bar--f { background: var(--di-pink); transform-origin: left; }
.di-pyr__bar.is-anim { animation: diGrowX .85s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.di-pyr__age { font-size: clamp(8px, 0.75vw, 9px); color: var(--di-muted); text-align: center; }
.di-legend { display: flex; gap: 16px; justify-content: center; font-size: clamp(10px, 0.9vw, 11px); color: var(--di-muted); margin-top: 10px; }
.di-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.di-legend__m { background: var(--di-blue-soft); }
.di-legend__f { background: var(--di-pink); }

/* 円（ドーナツ）グラフ */
.di-donut-wrap { display: flex; align-items: center; gap: 18px; padding: 10px 4px; }
.di-donut { width: 124px; height: 124px; border-radius: 50%; position: relative; flex: 0 0 auto; transform-origin: center; }
.di-donut::after { content: ""; position: absolute; inset: 21px; background: #fff; border-radius: 50%; }
.di-donut.is-anim { animation: diDonutIn .8s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes diDonutIn { from { transform: scale(.55) rotate(-22deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.di-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 1; }
.di-donut__center b { font-size: clamp(17px, 1.8vw, 21px); font-weight: 800; color: var(--colorLightBase); line-height: 1; }
.di-donut__center span { font-size: clamp(9px, 0.9vw, 10px); color: var(--di-muted); margin-top: 3px; }
.di-donut__legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.di-donut__li { display: flex; align-items: center; gap: 8px; font-size: clamp(11.5px, 0.9vw, 12.5px); font-weight: 600; color: var(--di-ink); }
.di-donut__li i { width: 11px; height: 11px; border-radius: 3px; flex: 0 0 auto; }
.di-donut__li b { margin-left: auto; font-weight: 800; color: var(--colorLightBase); }
.di-donut__legend.is-anim .di-donut__li { opacity: 0; transform: translateX(8px); animation: diLegendIn .5s ease forwards; }
@keyframes diLegendIn { to { opacity: 1; transform: none; } }

/* 折れ線グラフ（Y軸ラベル付き） */
.di-line { padding: 2px 0; }
.di-line__svg { width: 100%; height: auto; display: block; overflow: visible; }
.di-line__grid { stroke: var(--di-grid); stroke-width: 1; }
.di-line__unit { fill: #93a0ad; font-size: clamp(8px, 0.75vw, 9px); }
.di-line__ytick { fill: #93a0ad; font-size: clamp(8px, 0.75vw, 9px); }
.di-line__xtick { fill: var(--di-muted); font-size: clamp(9px, 0.9vw, 10px); }
.di-line__area { fill: var(--di-teal-soft); opacity: 0; }
.di-line__area.is-anim { animation: diFadeIn .8s ease .35s forwards; }
.di-line__path {
  fill: none; stroke: var(--di-teal); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1000; stroke-dashoffset: 1000;
}
.di-line__path.is-anim { animation: diLineDraw 1.15s cubic-bezier(0.4, 0, 0.2, 1) forwards; }
@keyframes diLineDraw { to { stroke-dashoffset: 0; } }
.di-line__dot { fill: #fff; stroke: var(--di-teal); stroke-width: 2.6; opacity: 0; }
.di-line__dot.is-anim { animation: diFadeIn .4s ease both; }
@keyframes diFadeIn { to { opacity: 1; } }

/* カルーセル操作 (←・プログレス・→) */
.data-insights__controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 18px; }
.data-insights__nav {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--di-line); color: var(--di-ink); cursor: pointer;
  box-shadow: 0 4px 12px rgba(11, 45, 122, 0.08);
  transition: border-color .15s, color .15s, transform .15s, opacity .15s;
}
.data-insights__nav:hover:not(:disabled) { border-color: var(--colorLightBase); color: var(--colorLightBase); transform: translateY(-1px); }
.data-insights__nav:disabled { opacity: .38; cursor: default; box-shadow: none; }
.data-insights__track { position: relative; width: min(240px, 42%); height: 5px; border-radius: 999px; background: #d7e1ec; }
.data-insights__thumb { position: absolute; top: 0; height: 100%; border-radius: 999px; background: var(--colorLightBase); transition: left .15s ease; }
.data-insights__hint { text-align: center; font-size: clamp(11px, 0.9vw, 12px); color: var(--di-muted); margin: 12px 0 0; }
.data-insights__disclaimer { text-align: center; font-size: clamp(9.5px, 0.9vw, 10.5px); color: #93a0ad; margin: 6px 0 0; }

/* レスポンシブ */
@media (max-width: 980px) {
  .data-insights__inner { grid-template-columns: 1fr; gap: 26px; padding-left: 20px; padding-right: 20px; }
  .data-insights__scroller { padding-right: 20px; }
}
@media (max-width: 600px) {
  .data-insights { padding: 48px 0 56px; }
  .di-card { flex-basis: 82vw; }
  .di-bar__row { grid-template-columns: minmax(74px, 92px) 1fr 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .data-insights__inner { transition: none; opacity: 1; transform: none; }
  .di-bar__fill, .di-pyr__bar { transform: scaleX(1); }
  .di-bar__fill.is-anim, .di-pyr__bar.is-anim, .di-card__stats.is-anim .di-stat,
  .di-donut.is-anim, .di-donut__legend.is-anim .di-donut__li,
  .di-line__area.is-anim, .di-line__path.is-anim, .di-line__dot.is-anim { animation: none; }
  .di-stat, .di-donut__li, .di-line__area, .di-line__dot { opacity: 1; transform: none; }
  .di-line__path { stroke-dashoffset: 0; }
}

/* =========================================================================
   「自治体から選ぶ」(cprv-discovery__hero) 視野進入時の登場演出（案B: 地図フォーカス）
   見出し → 地図(ズーム+ぼかし解除) → 地域パネル(時差) の順に登場。リングは常時リップル。
   ========================================================================= */
/* 進入前は非表示（is-revealed 付与までのフラッシュ防止） */
.cprv-discovery__hero:not(.is-revealed) .cprv-discovery__intro,
.cprv-discovery__hero:not(.is-revealed) .cprv-discovery__map,
.cprv-discovery__hero:not(.is-revealed) .cprv-discovery__region-panel,
.cprv-discovery__hero:not(.is-revealed) .cprv-discovery__featured {
  opacity: 0;
}
/* 見出し */
.cprv-discovery__hero.is-revealed .cprv-discovery__intro {
  animation: cprvHeroFadeUp .6s cubic-bezier(0.16, 1, 0.3, 1) .05s both;
}
/* 地図: 少し小さい+ぼかし → くっきりズームイン */
.cprv-discovery__hero.is-revealed .cprv-discovery__map {
  animation: cprvHeroMapIn .85s cubic-bezier(0.16, 1, 0.3, 1) .22s both;
}
/* 地域パネル: 時差でポップイン（ピンが順に登場するイメージ） */
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel {
  animation: cprvHeroPanelIn .55s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel:nth-of-type(1) { animation-delay: .55s; }
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel:nth-of-type(2) { animation-delay: .66s; }
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel:nth-of-type(3) { animation-delay: .77s; }
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel:nth-of-type(4) { animation-delay: .88s; }
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel:nth-of-type(5) { animation-delay: .99s; }
.cprv-discovery__hero.is-revealed .cprv-discovery__region-panel:nth-of-type(6) { animation-delay: 1.10s; }
/* 特集カードは基底 transition でフェードイン（回転アニメと競合しないよう :not 解除のみ） */
@keyframes cprvHeroFadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cprvHeroMapIn { from { opacity: 0; transform: scale(.92); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cprvHeroPanelIn { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .cprv-discovery__hero:not(.is-revealed) .cprv-discovery__intro,
  .cprv-discovery__hero:not(.is-revealed) .cprv-discovery__map,
  .cprv-discovery__hero:not(.is-revealed) .cprv-discovery__region-panel,
  .cprv-discovery__hero:not(.is-revealed) .cprv-discovery__featured { opacity: 1; }
  .cprv-discovery__hero.is-revealed .cprv-discovery__intro,
  .cprv-discovery__hero.is-revealed .cprv-discovery__map,
  .cprv-discovery__hero.is-revealed .cprv-discovery__region-panel { animation: none; }
}

/* =========================================================================
   トップ「注目の自治体・プロジェクト」カードを縦型 3:2 画像に（トリミング軽減）
   ※ --plain はトップ専用クラス。/area/ の横型カードには影響しない。
   ========================================================================= */
.cprv-discovery__projects--plain .cprv-discovery__project-card {
  grid-template-columns: 1fr;
}
.cprv-discovery__projects--plain .cprv-discovery__project-image {
  aspect-ratio: 3 / 2;
  width: 100%;
}
.cprv-discovery__projects--plain .cprv-discovery__project-image img {
  min-height: 0;
}

/* =========================================================================
   セミナー検索・開催日一覧（/seminar/ cpriver 専用UI）
   コンポーネント: app/(site)/(content)/seminar/SeminarScheduleContent.tsx
   ========================================================================= */
/* このページだけ左レイアウトサイドバーを隠して全幅化 */
.main__wrapper:has(.cprv-sem) .flex-container > .aside {
  display: none;
}
.main__wrapper:has(.cprv-sem) .primary-content {
  width: 100%;
  padding-left: 0;
}

.cprv-sem {
  --sem-navy: var(--colorLightBase, #003C7E);
  --sem-accent: var(--colorAccent, #DC2626);
  --sem-corp: #1E62C4;
  --sem-gov: #1F9D5B;
  --sem-other: #6B7280;
  --sem-line: #E3E8EF;
  --sem-ink: #1F2A37;
  --sem-muted: #64748B;
  color: var(--sem-ink);
}

/* ---- ヒーロー ---- */
.cprv-sem__hero {
  position: relative;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.82) 30%,
      rgba(255, 255, 255, 0.4) 52%,
      rgba(255, 255, 255, 0.06) 78%,
      rgba(255, 255, 255, 0) 100%
    ),
    url('/tenants/cpriver/assets/img/hero/seminar-hero.webp') center right / cover no-repeat,
    #EAF0F7;
  min-height: clamp(340px, 36vw, 460px);
  margin-top: -3vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding:
    clamp(28px, 3.4vw, 48px)
    calc(50vw - 50% + clamp(16px, 2vw, 30px))
    clamp(72px, 7vw, 104px);
  color: var(--sem-ink);
}
.cprv-sem__hero-body {
  max-width: min(560px, 60%);
}
.cprv-sem__hero-title {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 700;
  color: var(--sem-navy);
  margin: 0 0 12px;
  line-height: 1.3;
}
.cprv-sem__hero-lead {
  font-size: clamp(13px, 1.2vw, 15px);
  color: #334A63;
  margin: 0 0 22px;
  line-height: 1.7;
}
.cprv-sem__stats {
  display: inline-flex;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  padding: 6px 4px;
}
.cprv-sem__stat {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(16px, 1.8vw, 26px);
  border-right: 1px solid var(--sem-line);
}
.cprv-sem__stat:last-child {
  border-right: none;
}
.cprv-sem__stat-icon {
  width: 26px;
  height: 26px;
  color: var(--sem-navy);
  flex-shrink: 0;
}
.cprv-sem__stat-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.cprv-sem__stat-label {
  font-size: clamp(11px, 1vw, 13px);
  color: var(--sem-muted);
}
.cprv-sem__stat-value {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: var(--sem-navy);
  line-height: 1;
}
.cprv-sem__stat-unit {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 500;
  color: var(--sem-navy);
  margin-left: 3px;
}

/* ---- 検索バー ---- */
.cprv-sem__search {
  position: relative;
  z-index: 2;
  margin-top: clamp(-72px, -6vw, -48px);
  background: #fff;
  border: 1px solid var(--sem-line);
  border-radius: 12px;
  padding: 20px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px 16px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  margin-bottom: 16px;
}
.cprv-sem__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1 1 150px;
}
.cprv-sem__field--keyword {
  flex: 2 1 240px;
}
.cprv-sem__field-label {
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  color: var(--sem-muted);
}
.cprv-sem__input,
.cprv-sem__select {
  height: 42px;
  border: 1px solid var(--sem-line);
  border-radius: 8px;
  padding: 0 12px;
  font-size: clamp(13px, 1.15vw, 15px);
  color: var(--sem-ink);
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.cprv-sem__input:focus,
.cprv-sem__select:focus {
  outline: none;
  border-color: var(--sem-navy);
  box-shadow: 0 0 0 3px rgba(0, 60, 126, 0.12);
}
.cprv-sem__search-btn {
  height: 42px;
  padding: 0 26px;
  background: var(--sem-navy);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.cprv-sem__search-btn:hover {
  background: #0B5BB0;
}
.cprv-sem__clear {
  height: 42px;
  background: none;
  border: none;
  color: var(--sem-navy);
  font-size: clamp(12px, 1.05vw, 14px);
  cursor: pointer;
  text-decoration: underline;
  padding: 0 4px;
}

/* ---- ツールバー（条件チップ + 並び替え） ---- */
.cprv-sem__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cprv-sem__chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.cprv-sem__chips-label {
  font-size: clamp(12px, 1.05vw, 13px);
  color: var(--sem-muted);
}
.cprv-sem__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #EEF3FA;
  color: var(--sem-navy);
  border: 1px solid #D6E2F2;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: clamp(12px, 1.05vw, 13px);
  cursor: pointer;
}
.cprv-sem__chip:hover {
  background: #E1EBF8;
}
.cprv-sem__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.cprv-sem__sort-label {
  font-size: clamp(12px, 1.05vw, 13px);
  color: var(--sem-muted);
  white-space: nowrap;
}
.cprv-sem__sort .cprv-sem__select {
  width: auto;
  height: 38px;
}

/* ---- 2カラムレイアウト ---- */
.cprv-sem__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
}
.cprv-sem__main {
  min-width: 0;
}
.cprv-sem__empty {
  background: #fff;
  border: 1px dashed var(--sem-line);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  color: var(--sem-muted);
}

/* ---- 週グループ ---- */
.cprv-sem__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* ---- セミナー行 ---- */
.cprv-sem__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) minmax(140px, 190px) auto 14px;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--sem-line);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.cprv-sem__row:hover {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.09);
  border-color: #C8D6E8;
  transform: translateY(-1px);
}
.cprv-sem__row-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.cprv-sem__row-md {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700;
  color: var(--sem-navy);
  line-height: 1.1;
}
.cprv-sem__row-wd {
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 600;
  color: var(--sem-navy);
  margin-top: 1px;
}
.cprv-sem__row-time {
  font-size: clamp(10px, 0.95vw, 12px);
  color: var(--sem-muted);
  margin-top: 3px;
  white-space: nowrap;
}
.cprv-sem__row-body {
  min-width: 0;
}
.cprv-sem__row-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.cprv-sem__tag {
  font-size: clamp(10px, 0.95vw, 12px);
  font-weight: 600;
  padding: 1px 9px;
  border-radius: 4px;
  line-height: 1.6;
  background: #fff;
  border: 1px solid currentColor;
}
.cprv-sem__tag--corp {
  color: var(--sem-corp);
}
.cprv-sem__tag--gov {
  color: var(--sem-gov);
}
.cprv-sem__tag--other {
  color: var(--sem-other);
}
.cprv-sem__row-title {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--sem-ink);
}
.cprv-sem__row-text {
  font-size: clamp(12px, 1.05vw, 13px);
  color: var(--sem-muted);
  margin: 4px 0 0;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cprv-sem__row-speaker {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}
.cprv-sem__row-speaker-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 1px;
  min-width: 0;
}
.cprv-sem__row-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.cprv-sem__row-company {
  font-size: clamp(10px, 0.9vw, 11px);
  color: var(--sem-muted);
  line-height: 1.4;
}
.cprv-sem__row-name {
  font-size: clamp(11px, 1vw, 12px);
  font-weight: 600;
  color: var(--sem-ink);
}
.cprv-sem__badge-open {
  justify-self: center;
  font-size: clamp(10px, 0.9vw, 11px);
  font-weight: 700;
  color: var(--sem-navy);
  background: #F2F7FC;
  border: 1px solid #A9C3E4;
  border-radius: 6px;
  padding: 4px 10px;
  line-height: 1.4;
  white-space: nowrap;
}
.cprv-sem__row-chevron {
  color: #B7C2D0;
  font-size: 20px;
  text-align: center;
}

/* ---- ページャ（フッター件数表示） ---- */
.cprv-sem__pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.cprv-sem__pager-count {
  font-size: clamp(12px, 1.05vw, 13px);
  color: var(--sem-muted);
}
.cprv-sem__pager-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.cprv-sem__pager-arrow,
.cprv-sem__pager-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--sem-line);
  border-radius: 6px;
  font-size: 13px;
  color: var(--sem-ink);
  background: #fff;
}
.cprv-sem__pager-page.is-current {
  background: var(--sem-navy);
  border-color: var(--sem-navy);
  color: #fff;
  font-weight: 700;
}
.cprv-sem__pager-arrow.is-disabled {
  color: #C5CEDA;
  background: #F7F9FC;
}

/* ---- すべてのセミナーへの動線 ---- */
.cprv-sem__more {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.cprv-sem__more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border: 1px solid var(--sem-navy);
  border-radius: 999px;
  background: #fff;
  color: var(--sem-navy);
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.cprv-sem__more-btn::after {
  content: "→";
}
.cprv-sem__more-btn:hover {
  background: var(--sem-navy);
  color: #fff;
}

/* ---- 右サイドバー ---- */
.cprv-sem__aside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cprv-sem__card {
  background: #fff;
  border: 1px solid var(--sem-line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.cprv-sem__card-title {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  color: var(--sem-navy);
  margin: 0 0 12px;
}

/* カレンダー */
.cprv-sem__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.cprv-sem__cal-title {
  font-size: clamp(13px, 1.15vw, 15px);
  font-weight: 700;
  color: var(--sem-ink);
}
.cprv-sem__cal-nav {
  width: 28px;
  height: 28px;
  border: 1px solid var(--sem-line);
  border-radius: 6px;
  background: #fff;
  color: var(--sem-navy);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
.cprv-sem__cal-nav:hover {
  background: #EEF3FA;
}
.cprv-sem__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cprv-sem__cal-wd {
  text-align: center;
  font-size: clamp(10px, 0.9vw, 11px);
  color: var(--sem-muted);
  padding: 4px 0;
}
.cprv-sem__cal-cell {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(11px, 1vw, 13px);
  border: none;
  background: none;
  border-radius: 50%;
  color: var(--sem-ink);
  cursor: default;
}
.cprv-sem__cal-cell.is-event {
  background: #EEF3FA;
  color: var(--sem-navy);
  font-weight: 700;
  cursor: pointer;
}
.cprv-sem__cal-cell.is-event:hover {
  background: #DCE8F7;
}
.cprv-sem__cal-cell.is-selected {
  background: var(--sem-navy);
  color: #fff;
}
.cprv-sem__cal-legend {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--sem-line);
}
.cprv-sem__cal-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: clamp(10px, 0.95vw, 12px);
  color: var(--sem-muted);
}
.cprv-sem__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.cprv-sem__dot--event {
  background: #EEF3FA;
  border: 1px solid var(--sem-navy);
}
.cprv-sem__dot--selected {
  background: var(--sem-navy);
}

/* 選択中の日付の予定（compact 行） */
.cprv-sem__row--compact {
  grid-template-columns: 64px minmax(0, 1fr);
  padding: 12px;
  gap: 10px;
}
.cprv-sem__row--compact .cprv-sem__row-speaker,
.cprv-sem__row--compact .cprv-sem__row-chevron {
  display: none;
}

/* 人気キーワード */
.cprv-sem__kw-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.cprv-sem__kw {
  background: #F1F5FA;
  border: 1px solid var(--sem-line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: clamp(11px, 1vw, 12px);
  color: var(--sem-navy);
  cursor: pointer;
}
.cprv-sem__kw:hover {
  background: #E1EBF8;
}
.cprv-sem__kw-more {
  display: inline-block;
  margin-top: 12px;
  font-size: clamp(11px, 1vw, 13px);
  color: var(--sem-navy);
  text-decoration: underline;
}

/* ---- レスポンシブ ---- */
@media (max-width: 900px) {
  .cprv-sem__layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .cprv-sem__row {
    grid-template-columns: 64px minmax(0, 1fr) 18px;
  }
  .cprv-sem__row-speaker {
    display: none;
  }
}

/* ============================================================
   /lg FV データブロックのサブタイトル（DataInsightsSection 上書き用）
   ============================================================ */
.data-insights__subtitle {
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: 700;
  line-height: 1.5;
  color: var(--di-teal, #1a8c8d);
  margin: 0 0 18px;
}

/* ============================================================
   /lg データ比較エリア（スキャフォールド・近日公開）
   モックの3ブロック目。比較機能は未実装のため枠のみ設置。
   ============================================================ */
.lg-compare {
  max-width: 1340px;
  margin: 0 auto;
  padding: clamp(8px, 1.5vw, 24px) 32px clamp(48px, 6vw, 72px);
}
.lg-compare__inner {
  background: #f4f8fd;
  border: 1px solid #e3ecf7;
  border-radius: 20px;
  padding: clamp(28px, 3.4vw, 52px) clamp(20px, 3vw, 48px);
}
.lg-compare__head {
  text-align: center;
  margin-bottom: clamp(22px, 2.6vw, 38px);
}
.lg-compare__title {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 800;
  line-height: 1.4;
  color: #18324e;
  margin: 0 0 10px;
}
.lg-compare__lead {
  font-size: clamp(12.5px, 1.2vw, 15px);
  line-height: 1.8;
  color: #5b6677;
  margin: 0;
}
.lg-compare__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(12px, 1.5vw, 20px);
}
.lg-compare__card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: clamp(22px, 2.4vw, 32px) clamp(14px, 1.6vw, 22px);
  background: #fff;
  border: 1px solid #e3ecf7;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 54, 120, 0.06);
  text-align: center;
}
.lg-compare__badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: var(--colorLightBase, #2f6fd0);
  padding: 3px 9px;
  border-radius: 999px;
}
.lg-compare__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(52px, 5.4vw, 66px);
  height: clamp(52px, 5.4vw, 66px);
  border-radius: 50%;
  background: #e8f1fb;
  color: var(--colorDarkBase, #003678);
}
.lg-compare__card-title {
  font-size: clamp(14px, 1.4vw, 17px);
  font-weight: 800;
  color: #18324e;
  line-height: 1.4;
}
.lg-compare__card-note {
  display: block;
  font-size: clamp(10px, 0.85vw, 11.5px);
  font-weight: 600;
  color: #5b6677;
  margin-top: 2px;
}
.lg-compare__card-desc {
  font-size: clamp(11.5px, 1.05vw, 13px);
  line-height: 1.7;
  color: #5b6677;
}
@media (max-width: 900px) {
  .lg-compare__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .lg-compare {
    padding: 8px 16px 40px;
  }
}
@media (max-width: 480px) {
  .lg-compare__grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   /lg FV データブロック（LgDataHero・モックの5枚カードグリッド）
   ============================================================ */
.lg-datahero {
  position: relative;
  overflow: hidden;
  padding: clamp(40px, 5vw, 72px) 0 clamp(60px, 6vw, 88px);
  background: linear-gradient(180deg, #eef4fb 0%, #f6f9fd 68%, #fff 100%);
}
.lg-datahero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
  height: clamp(120px, 15vw, 220px);
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.72) 58%, #fff 100%);
}
/* 背景装飾（コンステレーション線）: コンテンツの下・非対話 */
.lg-datahero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.lg-datahero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 356px) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px;
}
/* 左: コピー */
.lg-datahero__copy { min-width: 0; }
.lg-datahero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: clamp(11px, 0.9vw, 12px); font-weight: 800; letter-spacing: 0.12em;
  color: #1a8c8d; margin: 0 0 12px;
}
.lg-datahero__eyebrow::before { content: ""; width: 22px; height: 2px; background: #1a8c8d; border-radius: 2px; }
.lg-datahero__title {
  font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.3;
  color: #18324e; margin: 0 0 8px;
}
.lg-datahero__subtitle {
  font-size: clamp(15px, 1.6vw, 20px); font-weight: 700; line-height: 1.5;
  color: #1a8c8d; margin: 0 0 16px;
}
.lg-datahero__lead {
  font-size: clamp(12.5px, 1.15vw, 14.5px); line-height: 1.9; color: #5b6677; margin: 0 0 18px;
  text-wrap: pretty;
}
.lg-datahero__bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.lg-datahero__bullets li { display: flex; align-items: center; gap: 10px; font-size: clamp(12px, 1.1vw, 14px); font-weight: 600; color: #18324e; }
.lg-datahero__bullets svg { color: #1a8c8d; flex: 0 0 auto; }
/* 右: 5枚カードグリッド（上段3・下段2） */
.lg-datahero__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(12px, 1.3vw, 18px);
}
.lg-dhcard--wide2 { grid-column: span 2; }
.lg-dhcard--wide3 { grid-column: span 3; }
.lg-dhcard {
  background: #fff; border: 1px solid #e3ecf7; border-radius: 14px;
  padding: clamp(14px, 1.4vw, 18px);
  box-shadow: 0 6px 18px rgba(0, 54, 120, 0.05);
  display: flex; flex-direction: column; gap: 10px;
}
.lg-dhcard__head { display: flex; align-items: center; gap: 8px; }
.lg-dhcard__icon {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px; color: #fff; flex: 0 0 auto;
}
.lg-dhcard__icon--blue { background: #2f6fd0; }
.lg-dhcard__icon--indigo { background: #3b5bb5; }
.lg-dhcard__icon--teal { background: #1a8c8d; }
.lg-dhcard__icon--rose { background: #d96a86; }
.lg-dhcard__icon--gold { background: #e0a43a; }
.lg-dhcard__title { font-size: clamp(12px, 1.1vw, 13.5px); font-weight: 800; color: #18324e; line-height: 1.3; }
.lg-dhcard__title small { font-weight: 600; color: #8592a3; font-size: 0.82em; }
.lg-dhcard__figline { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px; margin: 0; }
.lg-dhcard__num { font-size: clamp(22px, 2.3vw, 30px); font-weight: 800; color: #18324e; line-height: 1.05; white-space: nowrap; }
.lg-dhcard__unit { font-size: clamp(11px, 1vw, 13px); font-weight: 700; color: #18324e; }
.lg-dhcard__year { font-size: clamp(10px, 0.85vw, 11px); color: #8592a3; margin-left: 2px; }
.lg-dhcard__foot { font-size: clamp(10.5px, 0.95vw, 12px); color: #5b6677; margin: 0; }
.lg-dhcard__foot b { color: #18324e; }
.lg-dhcard__foot b.is-down { color: #d64545; }
.lg-dhcard__foot b.is-up { color: #1a8c8d; }

/* チャート（大きめ・軸ラベル/グリッド/グラデーション付き） */
.lg-dhcard__chart { width: 100%; margin-top: 2px; }
.lg-chart { display: block; width: 100%; height: auto; overflow: visible; }
.lg-chart__ylab { fill: #9aa7b8; font-size: 8.5px; font-weight: 600; }
.lg-chart__xlab { fill: #8592a3; font-size: 8.5px; font-weight: 600; }

/* 教育: ドーナツ＋凡例 */
.lg-dhcard__donutrow { display: flex; align-items: center; gap: 14px; }
.lg-donut { width: clamp(60px, 6.4vw, 78px); height: clamp(60px, 6.4vw, 78px); flex: 0 0 auto; }
.lg-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 auto; }
.lg-legend__item { display: flex; align-items: center; gap: 7px; font-size: clamp(10.5px, 0.95vw, 12px); color: #5b6677; }
.lg-legend__dot { width: 9px; height: 9px; border-radius: 2px; flex: 0 0 auto; }
.lg-legend__value { color: #18324e; font-weight: 800; margin-left: auto; white-space: nowrap; }

/* 福祉・医療: 左スタッツ＋大ドーナツ ／ 寄付: 左スタッツ＋チャート */
.lg-dhcard__split { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.lg-dhcard__split-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lg-dhcard__chart--split { width: clamp(150px, 17vw, 240px); margin-top: 0; }
.lg-dhcard__donutbig { position: relative; width: clamp(98px, 10.5vw, 122px); flex: 0 0 auto; }
.lg-dhcard__donutbig svg { width: 100%; height: auto; display: block; }
.lg-dhcard__donutbig-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; line-height: 1.2; }
.lg-dhcard__donutbig-center small { font-size: clamp(8.5px, 0.8vw, 10px); color: #8592a3; }
.lg-dhcard__donutbig-center b { font-size: clamp(14px, 1.5vw, 18px); font-weight: 800; color: #18324e; }
.lg-dhcard__donutbig-center b i { font-size: 0.6em; font-style: normal; font-weight: 700; margin-left: 1px; }

/* --- FVチャートの入場アニメ（トップページ流。reduced-motion時は静止） --- */
@media (prefers-reduced-motion: no-preference) {
  /* 折れ線: 左から描画 */
  .lg-chart__line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: lgLineDraw 1.15s 0.1s cubic-bezier(0.45, 0, 0.15, 1) forwards; }
  @keyframes lgLineDraw { to { stroke-dashoffset: 0; } }
  /* 面塗り・マーカーは線の後にフェード */
  .lg-chart__area { opacity: 0; animation: lgFade 0.7s 0.7s ease forwards; }
  .lg-chart__dot { opacity: 0; animation: lgFade 0.35s ease forwards; }
  /* 棒: 下から伸びる */
  .lg-chart__bar { transform: scaleY(0); transform-box: fill-box; transform-origin: bottom; animation: lgBarGrow 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  @keyframes lgBarGrow { to { transform: scaleY(1); } }
  /* ドーナツ: 拡大＋回転で登場 */
  .lg-donut, .lg-dhcard__donutbig svg { transform-origin: center; animation: lgDonutIn 0.85s cubic-bezier(0.22, 1, 0.36, 1) both; }
  @keyframes lgDonutIn { from { transform: scale(0.6) rotate(-18deg); opacity: 0; } to { transform: none; opacity: 1; } }
  /* 教育の凡例: 順にフェードイン */
  .lg-legend__item { opacity: 0; transform: translateX(8px); animation: lgLegendIn 0.45s ease forwards; }
  .lg-legend__item:nth-child(1) { animation-delay: 0.5s; }
  .lg-legend__item:nth-child(2) { animation-delay: 0.62s; }
  .lg-legend__item:nth-child(3) { animation-delay: 0.74s; }
  @keyframes lgLegendIn { to { opacity: 1; transform: none; } }
  @keyframes lgFade { to { opacity: 1; } }
}

.lg-datahero__note {
  position: relative; z-index: 1;
  max-width: 1340px; margin: clamp(14px, 1.6vw, 22px) auto 0; padding: 0 32px;
  font-size: clamp(10px, 0.85vw, 11.5px); color: #8592a3; text-align: right;
}
@media (max-width: 1024px) {
  .lg-datahero__inner { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .lg-datahero__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg-dhcard--wide2, .lg-dhcard--wide3 { grid-column: span 1; }
}
@media (max-width: 768px) {
  .lg-datahero__inner, .lg-datahero__note { padding-left: 16px; padding-right: 16px; }
}
@media (max-width: 560px) {
  .lg-datahero__grid { grid-template-columns: 1fr; }
}

/* /lg 最下部の解説（旧イントロ）を中央コンテナで包む */
.lg-intro-outer {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 32px clamp(40px, 6vw, 72px);
}
@media (max-width: 768px) {
  .lg-intro-outer { padding-left: 16px; padding-right: 16px; }
}

/* ============================================================
   /lg スクロール誘導（マウス型・FVと地図ブロックの間）
   ============================================================ */
.lg-scrollcue {
  position: absolute;
  left: 50%;
  bottom: clamp(16px, 1.8vw, 26px);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  justify-content: center;
}
.lg-scrollcue__link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 68px;
  height: 68px;
  background: #fff;
  border: 1px solid rgba(47, 111, 208, 0.14);
  border-radius: 50%;
  box-shadow: 0 16px 36px rgba(24, 50, 78, 0.16), 0 4px 12px rgba(47, 111, 208, 0.12);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.lg-scrollcue__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(24, 50, 78, 0.18), 0 6px 16px rgba(47, 111, 208, 0.14);
}
.lg-scrollcue__mouse {
  position: relative;
  width: 19px;
  height: 31px;
  border: 2px solid #2f6fd0;
  border-radius: 16px;
  opacity: 0.95;
}
.lg-scrollcue__wheel {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 3px;
  height: 6px;
  margin-left: -2px;
  background: #2f6fd0;
  border-radius: 2px;
}
.lg-scrollcue__label {
  color: #2f6fd0;
  font-weight: 800;
  font-size: 8px;
  letter-spacing: 0.12em;
}
@media (prefers-reduced-motion: no-preference) {
  .lg-scrollcue__link { animation: lgScrollCueDrop 1.8s cubic-bezier(0.45, 0, 0.2, 1) infinite; }
  .lg-scrollcue__wheel { animation: lgScrollWheel 1.5s ease-in-out infinite; }
  @keyframes lgScrollCueDrop {
    0%, 100% { transform: translateY(0); }
    52% { transform: translateY(10px); }
  }
  @keyframes lgScrollWheel {
    0% { transform: translateY(0); opacity: 1; }
    70% { transform: translateY(8px); opacity: 0; }
    100% { opacity: 0; }
  }
}
/* アンカージャンプ時、上部に余白を確保（sticky ヘッダー対策） */
.lg-map-anchor { scroll-margin-top: 90px; }

/* =========================================================
   Quick Access（全ページ フッター直上の4カード導線）
   CpriverQuickAccess.tsx
   ========================================================= */
.cprv-quick-access {
  padding: clamp(40px, 6vw, 72px) 20px clamp(44px, 6vw, 76px);
  background: linear-gradient(180deg, #ffffff 0%, #f2f6fb 100%);
}
.cprv-quick-access__inner {
  max-width: 1120px;
  margin: 0 auto;
}
.cprv-quick-access__head {
  text-align: center;
  margin-bottom: clamp(24px, 3.5vw, 40px);
}
.cprv-quick-access__title {
  margin: 0;
  color: #003c7e;
  font-size: clamp(20px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-wrap: balance;
}
.cprv-quick-access__subtitle {
  margin: clamp(10px, 1.4vw, 14px) 0 0;
  color: #6b7b8a;
  font-size: clamp(12px, 1.5vw, 15px);
  line-height: 1.7;
}
.cprv-quick-access__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(14px, 1.8vw, 22px);
}
.cprv-quick-access__card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: clamp(150px, 22vw, 196px);
  padding: clamp(24px, 3vw, 34px) clamp(24px, 3.2vw, 38px);
  border-radius: 18px;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(18, 57, 87, 0.12);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}
.cprv-quick-access__card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(18, 57, 87, 0.2);
}
.cprv-quick-access__card--projects {
  background: linear-gradient(135deg, #55b89d 0%, #8ac99b 100%);
}
.cprv-quick-access__card--local-data {
  background: linear-gradient(135deg, #2c6fd4 0%, #4a8ce6 100%);
}
.cprv-quick-access__card--seminar {
  background: linear-gradient(135deg, #6d7ce0 0%, #8b97ea 100%);
}
.cprv-quick-access__card--simulator {
  background: linear-gradient(135deg, #3aa6b6 0%, #57bfc4 100%);
}
/* 背景の等高線装飾 */
.cprv-quick-access__topo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.14;
  pointer-events: none;
  z-index: 0;
}
/* 右側のメインイラスト（半透明の白ラインアート） */
.cprv-quick-access__art {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2.6vw, 34px);
  transform: translateY(-50%);
  width: clamp(84px, 15vw, 150px);
  color: #ffffff;
  opacity: 0.72;
  pointer-events: none;
  z-index: 1;
}
.cprv-quick-access__art svg {
  width: 100%;
  height: auto;
  display: block;
}
.cprv-quick-access__eyebrow {
  position: relative;
  z-index: 2;
  display: block;
  font-size: clamp(11px, 1.2vw, 13px);
  font-weight: 700;
  letter-spacing: 0.16em;
  opacity: 0.92;
}
.cprv-quick-access__card-title {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(20px, 2.6vw, 29px);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.cprv-quick-access__desc {
  position: relative;
  z-index: 2;
  display: block;
  margin-top: clamp(8px, 1vw, 12px);
  font-size: clamp(12px, 1.4vw, 14px);
  opacity: 0.92;
}
.cprv-quick-access__arrow {
  position: absolute;
  right: clamp(20px, 2.6vw, 34px);
  bottom: clamp(20px, 2.4vw, 30px);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 50%;
  background: #ffffff;
  color: #0e3b63;
  box-shadow: 0 6px 14px rgba(9, 40, 70, 0.22);
  transition: transform 0.24s ease;
}
.cprv-quick-access__arrow svg {
  width: 42%;
  height: 42%;
}
.cprv-quick-access__card:hover .cprv-quick-access__arrow {
  transform: translateX(3px);
}
@media (max-width: 768px) {
  .cprv-quick-access__grid {
    grid-template-columns: 1fr;
  }
  .cprv-quick-access__card {
    min-height: 132px;
  }
  .cprv-quick-access__art {
    width: clamp(72px, 22vw, 110px);
    opacity: 0.6;
  }
}
