/* ==========================================================
   Churamura リニューアル デザインシステム
   DESIGN.md のトークンに従う。勝手な色・書体を足さない。
   ========================================================== */

:root {
  --fukami: #0d3b4a;      /* 深海: 見出し・フッター */
  --churaumi: #1fa8a3;    /* 美ら海: プライマリ */
  --churaumi-dark: #157f7b;
  --asase: #ddf0ee;       /* 浅瀬: 淡背景 */
  --shiranami: #f2f8f7;   /* 白波: ページ背景 */
  --koura: #c88a2e;       /* 甲羅アンバー: 寄付CTA専用 */
  --koura-dark: #a86f1d;
  --kinkyu: #c7402d;      /* 緊急: ホットライン専用 */
  --sumi: #1e2a2e;
  --usuzumi: #45575b;
  --line: #d5e4e2;

  --font-display: "Shippori Mincho B1", "Shippori Mincho", serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-num: "Outfit", var(--font-body);

  --maxw: 1080px;
  --radius: 14px;
  --shadow: 0 4px 24px rgba(13, 59, 74, 0.08);
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: var(--sumi);
  background: var(--shiranami);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--churaumi-dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--churaumi); outline-offset: 2px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- ヘッダー ---------- */
.site-header {
  /* z-index は Leaflet（内部で最大1000を使う）より上に置く。100 のままだと地図がヘッダーを覆う */
  position: sticky; top: 0; z-index: 1050;
  background: rgba(242, 248, 247, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 14px;
  max-width: 1200px;
  min-height: 64px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { height: 42px; width: auto; }
.brand .brand-name {
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  color: var(--fukami); letter-spacing: 0.04em;
}
.brand .brand-sub { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--usuzumi); letter-spacing: 0.1em; }

.global-nav { display: flex; gap: 4px; flex-wrap: nowrap; }
.global-nav a, .global-nav .is-soon {
  text-decoration: none; color: var(--sumi); font-weight: 500; font-size: 15px;
  padding: 8px 8px; border-radius: 8px; white-space: nowrap;
}
.global-nav a:hover, .global-nav a[aria-current="page"] { background: var(--asase); color: var(--fukami); }
.global-nav a.nav-lang { color: var(--usuzumi); display: inline-flex; align-items: center; gap: 4px; }
.global-nav a.nav-lang svg { flex: none; }
@media (max-width: 1100px) {
  .brand .brand-sub { display: none; }
}
/* 日本語の副表記（沖縄沿海保全）は短いので、スマホ幅までは消さない */
@media (min-width: 721px) and (max-width: 1100px) {
  html[lang="ja"] .brand .brand-sub { display: block; }
}

.header-actions { display: flex; gap: 10px; align-items: center; }

/* ボタン群: 色はロール固定 */
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 11px 22px; border-radius: 999px; border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-donate { background: var(--koura); color: #fff; }
.btn-donate:hover { background: var(--koura-dark); }
.btn-rescue { background: #fff; color: var(--kinkyu); border-color: var(--kinkyu); }
.btn-rescue:hover { background: var(--kinkyu); color: #fff; }
.btn-primary { background: var(--churaumi); color: #fff; }
.btn-primary:hover { background: var(--churaumi-dark); }
.btn-ghost { background: transparent; color: var(--fukami); border-color: var(--fukami); }
.btn-lg { font-size: 17px; padding: 15px 34px; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; color: #fff; background: var(--fukami); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
/* ヒーロー写真は水面・光・カメ・珊瑚の全体を見せる（PC）。
   ヘッダー＋ヒーローでちょうど1画面。写真は画面の高さに合わせて右に置き（横長画面でも上下を切らない）、
   左側は写真の左端の色（縦グラデーション）でつなぎ、写真の左端をぼかして境目を消す。文字は左の縦中央 */
@media (min-width: 721px) {
  .hero { min-height: calc(100vh - 72px); display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(180deg, #013b65 0%, #01315e 50%, #01274c 72%, #012a29 100%); }
  .hero > .wrap { width: 100%; }
  .hero .hero-inner { padding: 40px 0 88px; max-width: 560px; }
  /* カメの中心（写真の横49%・高さ×0.735）を画面の4分の3の線に置く。写真の右端が画面に届かない時は右端そろえ */
  .hero-media img { position: absolute; right: auto; bottom: 0; width: auto; height: 100%; max-width: none;
    left: max(calc(75% - 0.735 * (100vh - 72px)), calc(100% - 1.5 * (100vh - 72px)));
    object-fit: cover; object-position: right bottom; opacity: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%); }
  .hero-media::after { background: linear-gradient(90deg, rgba(1,40,80,0.55) 0%, rgba(1,40,80,0.25) 40%, rgba(1,40,80,0) 60%), linear-gradient(180deg, rgba(1,30,50,0) 60%, rgba(1,30,50,0.45) 100%); }
}
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(13,59,74,0.25) 0%, rgba(13,59,74,0.72) 100%);
}
.hero-inner { position: relative; z-index: 1; padding: 96px 0 120px; max-width: 720px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(30px, 5vw, 46px); line-height: 1.5; letter-spacing: 0.03em;
}
.hero .hero-lead { margin-top: 20px; font-size: clamp(15px, 2vw, 17px); line-height: 2; opacity: 0.95; }
.hero .hero-cta { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }


/* ---------- ホットライン帯 ---------- */
.hotline-band { background: #fff; border: 2px solid var(--kinkyu); border-radius: var(--radius); box-shadow: var(--shadow); }
.hotline-band .inner {
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 18px 26px;
}
.hotline-band .label { font-weight: 700; color: var(--kinkyu); font-size: 15px; }
.hotline-band .tel {
  font-family: var(--font-num); font-weight: 700; font-size: clamp(22px, 4vw, 30px);
  color: var(--sumi); text-decoration: none; letter-spacing: 0.02em;
}
.hotline-band .note { color: var(--usuzumi); font-size: 14px; }
.hotline-float { margin-top: 28px; position: relative; z-index: 2; } /* ヒーロー写真に重ねず、写真の下に置く */

/* ---------- セクション共通 ---------- */
.section { padding: 72px 0; }
.section-tight { padding: 48px 0; }
.section-asase { background: var(--asase); }
.section-fukami { background: var(--fukami); color: #fff; }

/* 六角マーカー付き見出し（シグネチャー） */
.sec-head { margin-bottom: 36px; }
.sec-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.14em; color: var(--churaumi-dark);
}
.sec-head .eyebrow::before {
  content: ""; width: 12px; height: 13.8px; background: var(--churaumi);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.section-fukami .sec-head .eyebrow { color: #9fd9d6; }
.section-fukami .sec-head .eyebrow::before { background: #9fd9d6; }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--fukami);
  font-size: clamp(24px, 3.6vw, 32px); line-height: 1.6; margin-top: 10px;
}
.section-fukami .sec-head h2 { color: #fff; }
.sec-head .sec-lead { margin-top: 12px; color: var(--usuzumi); max-width: 640px; }
.section-fukami .sec-head .sec-lead { color: #c9dedd; }
/* 日本語の改行を文節で揃える: .phrase の途中では折り返さない。カード見出しにも効かせる。PCでは .br-pc で1文ずつ改行 */
.sec-head .sec-lead-wide { max-width: 700px; }
.sec-head .sec-lead-impact { max-width: 820px; } /* 1文目（49字）をPCで1行に収める */
.sec-lead .phrase, .card h3 .phrase { display: inline-block; }
@media (max-width: 720px) { .br-pc { display: none; } }

/* ---------- 六角形スクート統計（シグネチャー） ---------- */
.scute-row { display: flex; gap: 28px; flex-wrap: wrap; justify-content: center; }
.scute {
  width: 190px; aspect-ratio: 1 / 1.12;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(165deg, var(--churaumi) 0%, var(--fukami) 90%);
  color: #fff; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 22px;
}
.scute .num { font-family: var(--font-num); font-weight: 700; font-size: 38px; line-height: 1.1; }
.scute .num small { font-size: 17px; font-weight: 600; margin-left: 2px; }
.scute .cap { margin-top: 6px; font-size: 13.5px; line-height: 1.5; opacity: 0.92; }

/* ---------- 数字で見る（浜辺→海 断面シーン） ---------- */
.impact-scene { border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; background: #edf6f5; }
.impact-scene svg { display: block; width: 100%; height: auto; }
.iscene .n { font-family: var(--font-num); font-weight: 700; }
.iscene .zone { font-weight: 700; letter-spacing: 0.18em; font-size: 13px; }
.iscene .cap { font-weight: 700; font-size: 13px; }
.iscene .sub { font-size: 12px; }
.iscene text { font-family: var(--font-body); }
.impact-story { display: none; }
@media (max-width: 900px) {
  .impact-scene { display: none; }
  .impact-story { display: flex; flex-direction: column; gap: 10px; }
  .impact-story .zone-tag { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; color: var(--usuzumi); margin: 8px 2px 0; }
  .istory-card { border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); background: #fff; }
  .istory-card .in { font-family: var(--font-num); font-weight: 700; font-size: 26px; color: var(--fukami); }
  .istory-card .in small { font-size: 14px; }
  .istory-card h3 { font-size: 14.5px; margin: 2px 0 4px; color: var(--fukami); }
  .istory-card p { font-size: 14px; color: var(--usuzumi); line-height: 1.7; margin: 0; }
  .istory-card.c-sand { background: #f4eddc; }
  .istory-card.c-shallow { background: var(--asase); }
  .istory-card.c-mid { background: #bfe4e1; }
  .istory-card.c-deep { background: var(--churaumi-dark); }
  .istory-card.c-deep .in, .istory-card.c-deep h3 { color: #fff; }
  .istory-card.c-deep p { color: #d9efee; }
  .istory-card.c-abyss { background: var(--fukami); }
  .istory-card.c-abyss .in, .istory-card.c-abyss h3 { color: #fff; }
  .istory-card.c-abyss p { color: #c9dedd; }
  .istory-arrow { text-align: center; color: var(--churaumi-dark); font-weight: 700; line-height: 1; }
}

/* ---------- カード ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--sumi);
  display: flex; flex-direction: column;
  transition: transform 0.15s ease;
}
a.card:hover { transform: translateY(-3px); }
.card .thumb { aspect-ratio: 3 / 2; overflow: hidden; background: var(--asase); }
.card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--fukami); line-height: 1.6; }
.card p { font-size: 14px; color: var(--usuzumi); line-height: 1.8; }
.card .more { margin-top: auto; font-weight: 700; font-size: 14.5px; color: var(--churaumi-dark); }

/* ---------- 活動ハブ: 1活動1セクション（写真は全段そろえて左） ----------
   左右交互にすると視線が往復して読みにくい（2026-08-02 ユーザー指摘）。
   画像列を1本に固定し、見出しと本文の左端も1本に揃える。
   トップの4カードは「分岐」、ここは「何をどれくらいの頻度でやっているか」。
   実績数値（124巣・2,200kg 等）はここに置かず詳細ページに集約する。 */
.prog-list { display: grid; gap: 60px; }

/* 見出しは写真の上にフル幅で置く（各ブロックの起点を明示）。
   リードは本文カラムの先頭＝箇条書きの直前に置く。罫線で切り離すと
   「詳細が唐突に始まる」ように読めるため（2026-08-02 ユーザー指摘）。
   小見出しは足さない。3項目に対して見出しが4階層になり重くなる */
.prog-head { padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.prog-head h3 {
  display: flex; align-items: center; gap: 11px;
  font-family: var(--font-display); font-weight: 800; font-size: 23px;
  color: var(--fukami); line-height: 1.6;
}
.prog-head h3::before {
  content: ""; flex: none; width: 14px; height: 16.1px; background: var(--churaumi);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
/* リード＝そのブロックの結論。箇条書きはその中身なので直上に隣接させる */
.prog-body .prog-lead {
  margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dotted var(--line);
  font-size: 15.5px; font-weight: 500; color: var(--sumi); line-height: 1.8;
}

/* align-items:stretch で写真の高さを本文に合わせる（下に余白を残さない） */
/* 写真は本文よりやや小さく。1:1 だと暗い写真のほうが視覚的に重くなる */
.prog-body { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 36px; align-items: stretch; }
/* 本文は上下中央。余りが上下に分かれ、写真の下端とのズレが目立たなくなる */
.prog-body > div:not(.shot) { display: flex; flex-direction: column; justify-content: center; }
/* 画像は絶対配置。こうしないと画像の実寸が行の高さを決めてしまい、
   本文側に大きな余白が残る（height:100% が循環参照になるため） */
.prog-body .shot {
  position: relative; min-height: 240px;
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
}
.prog-body .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.prog-body ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.prog-body li { position: relative; padding-left: 20px; font-size: 14.5px; line-height: 1.85; }
.prog-body li::before {
  content: ""; position: absolute; left: 0; top: 0.72em; width: 9px; height: 10.4px;
  background: var(--churaumi);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}
.prog-body li strong { color: var(--fukami); }
.prog-body .more {
  display: inline-block; margin-top: 20px;
  font-weight: 700; font-size: 14px; color: var(--churaumi-dark);
}
@media (max-width: 780px) {
  .prog-list { gap: 40px; }
  .prog-head h3 { font-size: 20px; }
  .prog-body { grid-template-columns: 1fr; gap: 18px; }
  .prog-body .shot { min-height: 0; }
  .prog-body .shot img { position: static; aspect-ratio: 16 / 9; height: auto; }
}

/* ---------- 寄付メニュー ---------- */
.donate-menu { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.donate-item {
  background: #fff; border-radius: var(--radius); padding: 26px 24px;
  box-shadow: var(--shadow); border-top: 5px solid var(--koura);
  display: flex; flex-direction: column; gap: 10px;
}
.donate-item .amount { font-family: var(--font-num); font-weight: 700; font-size: 30px; color: var(--fukami); }
.donate-item .amount small { font-size: 15px; font-weight: 600; }
.donate-item h3 { font-size: 16px; font-weight: 700; color: var(--sumi); }
.donate-item p { font-size: 14.5px; color: var(--usuzumi); flex: 1; }

/* ---------- 金額の目安（寄付ページ） ---------- */
.amount-head {
  font-family: var(--font-display); font-weight: 700; font-size: 19px;
  color: var(--fukami); margin-top: 44px;
}
.amount-list {
  margin-top: 16px; background: #fff; border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.amount-row {
  display: flex; gap: 20px; align-items: baseline;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.amount-row:last-child { border-bottom: 0; }
.amount-row .amt {
  font-family: var(--font-num); font-weight: 700; font-size: 22px;
  color: var(--fukami); flex: none; min-width: 104px;
}
.amount-row .what { font-size: 14.5px; color: var(--sumi); line-height: 1.8; }
.amount-note { margin-top: 12px; font-size: 13.5px; color: var(--usuzumi); }
@media (max-width: 560px) {
  .amount-row { flex-direction: column; gap: 2px; padding: 14px 18px; }
  .amount-row .amt { font-size: 20px; }
}

/* ---------- 手順ステップ ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow);
  counter-increment: step;
}
.step::before {
  content: "STEP " counter(step);
  font-family: var(--font-num); font-weight: 700; font-size: 14px; letter-spacing: 0.1em;
  color: var(--churaumi-dark);
}
.step h3 { font-size: 16.5px; font-weight: 700; color: var(--fukami); margin: 8px 0 6px; }
.step p { font-size: 14px; color: var(--usuzumi); }

/* ---------- 本文ページ ---------- */
.page-head { background: var(--fukami); color: #fff; padding: 56px 0 48px; }
.page-head .breadcrumbs { font-size: 13.5px; opacity: 0.75; }
.page-head .breadcrumbs a, .page-head .breadcrumbs .is-soon { color: #fff; }
.page-head h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 36px); margin-top: 10px; line-height: 1.6; }
.page-head .page-lead { margin-top: 12px; max-width: 680px; color: #c9dedd; font-size: 15px; }

.prose { max-width: 760px; }
.prose h2 { font-family: var(--font-display); font-weight: 800; color: var(--fukami); font-size: 24px; margin: 44px 0 16px; line-height: 1.6; }
.prose h3 { font-weight: 700; color: var(--fukami); font-size: 18px; margin: 30px 0 10px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { margin: 14px 0 14px 1.4em; }
.prose li { margin: 6px 0; }
.prose img { border-radius: var(--radius); margin: 20px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0; background: #fff; border-radius: var(--radius); overflow: hidden; }
.prose th, .prose td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.prose th { background: var(--asase); color: var(--fukami); font-weight: 700; }

.callout {
  background: var(--asase); border-left: 5px solid var(--churaumi);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px; margin: 24px 0; font-size: 14.5px;
}

/* ---------- CTAバンド ---------- */
.cta-band { text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-weight: 800; font-size: clamp(22px, 3.4vw, 30px); color: #fff; line-height: 1.7; }
.cta-band p { color: #c9dedd; margin: 14px auto 0; max-width: 560px; }
.cta-band h2 .phrase { display: inline-block; }
/* OUR DREAM 本文: 意味の切れ目で改行（PCは .br-pc で文ごと・スマホは文節単位で折り返す） */
.cta-band p.dream-text { max-width: 760px; }
.cta-band .dream-text .phrase { display: inline-block; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- スポンサー ---------- */
.sponsor-row { display: flex; gap: 34px; flex-wrap: wrap; align-items: center; justify-content: center; }
.sponsor-row a { display: inline-flex; border-radius: 8px; }
.sponsor-row img { height: 52px; width: auto; max-width: 180px; object-fit: contain; transition: opacity .2s ease, transform .2s ease; }
.sponsor-row a:hover img { opacity: 0.78; transform: translateY(-2px); }

/* ---------- Instagram埋め込み ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.insta-grid iframe { width: 100%; min-height: 440px; border: 0; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }

/* ---------- ウミガメ分布マップ ---------- */
/* isolation で Leaflet の z-index をこの箱の中に閉じ込める（外のヘッダーと競合させない） */
.map-shell { position: relative; z-index: 0; isolation: isolate; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
#turtlemap { height: 64vh; min-height: 420px; background: var(--asase); }
.map-chips { position: absolute; top: 14px; left: 14px; z-index: 900; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100% - 70px); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px;
  font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--sumi);
  box-shadow: var(--shadow);
}
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip .cnt { font-family: var(--font-num); font-weight: 700; font-size: 13px; color: var(--usuzumi); }
.chip[aria-pressed="true"] { background: var(--fukami); color: #fff; border-color: var(--fukami); }
.chip[aria-pressed="true"] .cnt { color: #c9dedd; }
.tm-cluster {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(31, 168, 163, 0.92); color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-weight: 700; font-size: 14px;
  box-shadow: 0 2px 8px rgba(13, 59, 74, 0.25);
}
.leaflet-popup-content-wrapper { border-radius: 12px; }
.tm-pop { font-family: var(--font-body); font-size: 14px; line-height: 1.7; }
.tm-pop .sp { font-weight: 700; }
.tm-pop strong { font-family: var(--font-num); }
.tm-pop .tm-track {
  margin-top: 8px; cursor: pointer;
  background: var(--fukami); color: #fff; border: 0; border-radius: 999px;
  font-family: var(--font-body); font-size: 13px; font-weight: 700; padding: 6px 13px;
}
.tm-pop .tm-track:hover { background: var(--churaumi-dark); }

/* 個体追跡モード */
.tm-seq {
  width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-num); font-weight: 700; font-size: 14px; color: #fff;
  box-shadow: 0 2px 8px rgba(13, 59, 74, 0.3);
}
.map-focus {
  position: absolute; top: 14px; left: 14px; right: 62px; z-index: 900;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: var(--shadow);
}
.map-focus[hidden] { display: none; }
.tm-focus-txt { font-size: 14.5px; line-height: 1.6; }
.tm-focus-txt strong { font-family: var(--font-num); color: var(--fukami); }
.tm-focus-meta { display: block; font-size: 13.5px; color: var(--usuzumi); }
.tm-back {
  margin-left: auto; cursor: pointer; white-space: nowrap;
  background: var(--asase); color: var(--fukami); border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 700; padding: 7px 14px;
}
.tm-back:hover { background: var(--churaumi); color: #fff; border-color: var(--churaumi); }

/* 記録が続いている個体の一覧 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table { min-width: 860px; }
.tm-table td { vertical-align: top; }
.tm-table th:nth-child(2), .tm-table td:nth-child(2),
.tm-table th:nth-child(3), .tm-table td:nth-child(3),
.tm-table th:nth-child(4), .tm-table td:nth-child(4),
.tm-table th:nth-child(6), .tm-table td:nth-child(6) { white-space: nowrap; }
.tm-table th:nth-child(3), .tm-table th:nth-child(6) { text-align: right; }
.tm-table .tm-num { font-family: var(--font-num); font-weight: 700; text-align: right; white-space: nowrap; }
.tm-table .tm-sub { display: block; font-size: 13.5px; color: var(--usuzumi); }
.tm-row { cursor: pointer; transition: background 0.15s ease; }
.tm-row:hover, .tm-row:focus-visible { background: var(--asase); }

@media (max-width: 720px) {
  #turtlemap { height: 60vh; }
  .map-focus { position: static; margin: 0 0 10px; right: auto; box-shadow: none; border: 1px solid var(--line); }
  .tm-back { margin-left: 0; }
}

/* ---------- フローティングお問い合わせ ---------- */
.float-contact {
  position: fixed; right: 18px; bottom: 18px; z-index: 1100;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--fukami); color: #fff; text-decoration: none;
  font-size: 14.5px; font-weight: 700; padding: 12px 18px; border-radius: 999px;
  box-shadow: 0 6px 20px rgba(13, 59, 74, 0.35);
  transition: transform 0.15s ease;
}
.float-contact:hover { transform: translateY(-2px); background: var(--churaumi-dark); }
.float-contact svg { flex: none; }
@media (max-width: 720px) {
  .float-contact { padding: 12px 14px; font-size: 13.5px; right: 12px; bottom: 12px; }
}

/* ---------- フッター ---------- */
.site-footer { background: var(--fukami); color: #c9dedd; padding: 56px 0 32px; margin-top: 72px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 34px; }
.site-footer h4 { color: #fff; font-size: 14px; letter-spacing: 0.08em; margin-bottom: 14px; }
.site-footer ul { list-style: none; }
.site-footer li { margin: 8px 0; font-size: 14px; }
.site-footer .phrase { display: inline-block; }
.site-footer a, .site-footer .is-soon { color: #c9dedd; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-hotline { font-family: var(--font-num); font-weight: 700; font-size: 22px; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 40px; padding-top: 20px; font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 900px) {
  .global-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 6px; }
}
@media (max-width: 720px) {
  .hero-inner { padding: 64px 0 96px; }
  .section { padding: 52px 0; }
  .scute { width: 150px; }
  .scute .num { font-size: 30px; }
  .hotline-band .inner { padding: 16px 18px; gap: 10px; }
}

/* 数字で見る：集計期間の注記（毎年12月末に数字と年を更新） */
.impact-note { margin-top: 10px; font-size: 14px; color: var(--usuzumi); }

/* ---------- 数字で見る：イラスト背景版（日本語トップ・2026-10-02 案Bに決定） ---------- */
.impact-scene-b { background: #eaf3f5; }
.iscene-b .cap { font-size: 25px; }
.iscene-b .sub { font-size: 23px; }
.impact-b-mobile { display: none; }
.iscene-b .zone { font-size: 21px; }
/* 図の外の説明（PCは4列・スマホはカードに同じ文面があるので隠す） */
.impact-captions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px; }
html[lang="ja"] .impact-captions { grid-template-columns: 13fr 14fr 12fr 16fr; } /* 各列の最長行（13/14/12/15字）に比例させ、行末の1〜2字落ちを防ぐ */
.impact-captions .cap-no { font-weight: 700; color: var(--fukami); display: inline-block; width: 1.7em; text-indent: 0; }
.impact-captions p { padding-left: 1.7em; text-indent: -1.7em; } /* 番号の下は空け、2行目以降は本文の頭にそろえる */
.impact-captions p { font-size: 14.5px; color: var(--usuzumi); margin: 0; line-height: 1.75; }
.impact-captions .phrase, .impact-story-b .phrase { display: inline-block; text-indent: 0; }
@media (max-width: 900px) { .impact-captions { display: none; } }
@media (max-width: 900px) {
  .impact-b-mobile { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 4px; }
}

/* 工事中リンク（一般公開の第1弾：トップと活動・財務報告のみ。解除は該当コミットをrevert） */
.is-soon { opacity: .6; cursor: not-allowed; pointer-events: auto; }
/* カードは通常表示のまま、リンク文言（詳しく見る→等）だけ非活性にする */
.card-soon .more { opacity: .45; cursor: not-allowed; }
/* 英語版の区分名は字間を詰める（英字は和文より幅が出るため） */
html[lang="en"] .iscene-b .zone { letter-spacing: 0.04em; font-size: 20px; }
html[lang="en"] .impact-captions .phrase, html[lang="en"] .impact-story-b .phrase { display: inline; }
.hero-lead .phrase { display: inline-block; }
.card p .phrase { display: inline-block; }
