/*
 * Pachypodium Guide - スタイルシート本体
 *
 * テーマ識別用の style.css（テーマルート）とは別ファイルです。
 * 静的サイト（Astro）の src/styles/*.css を読み込み順どおりに結合しています。
 */


/* ==========================================================================
   ベース・レイアウト・ヘッダー・詳細パネル  （global.css）
   ========================================================================== */

:root{--ink:#172219;--muted:#657068;--green:#244f35;--green-deep:#173b2a;--sage:#dfe9de;--sage-pale:#f0f4ed;--paper:#f7f6f1;--white:#fff;--line:#dce1d9;--sand:#b79b72;--amber:#9b5f10;--amber-bg:#fff7e5;--shadow:0 18px 45px rgba(27,45,32,.08);font-family:"Hiragino Kaku Gothic ProN","Yu Gothic",YuGothic,system-ui,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-width:320px;background:var(--paper)}button,input,select{font:inherit;color:inherit}button,a,select{cursor:pointer}img{max-width:100%;display:block}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.site-header{min-height:76px;display:grid;grid-template-columns:1fr auto;align-items:center;gap:28px;padding:12px clamp(20px,4vw,72px);background:rgba(255,255,255,.96);border-bottom:1px solid var(--line);position:relative;z-index:4}.brand{display:flex;align-items:center;gap:12px;color:var(--ink);text-decoration:none}.brand b{font-family:Georgia,"Yu Mincho",serif;font-size:1.22rem;display:block;letter-spacing:.02em}.brand small{display:block;font-size:.68rem;letter-spacing:.16em;color:var(--muted);margin-top:3px}.brand-mark{width:36px;height:44px;display:block;position:relative}.brand-mark:before{content:"";position:absolute;width:23px;height:29px;left:7px;bottom:0;background:var(--green-deep);border-radius:48% 52% 45% 55%}.brand-mark:after{content:"";position:absolute;width:2px;height:20px;background:var(--green-deep);left:18px;top:0;box-shadow:-8px 4px 0 -1px var(--green-deep),8px 4px 0 -1px var(--green-deep);transform:rotate(3deg)}.global-search{position:relative;display:block}.global-search input{width:100%;height:46px;border:1px solid #cfd6ce;border-radius:8px;background:#fbfcfa;padding:0 16px 0 46px;font-size:1rem;outline:none}.global-search input:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(36,79,53,.12)}.search-icon{position:absolute;left:17px;top:14px;width:15px;height:15px;border:2px solid var(--muted);border-radius:50%}.search-icon:after{content:"";position:absolute;width:7px;height:2px;background:var(--muted);right:-6px;bottom:-3px;transform:rotate(45deg)}nav{display:flex;justify-content:flex-end;gap:26px}nav a{color:var(--ink);text-decoration:none;font-size:.86rem;font-weight:700;white-space:nowrap}nav a:hover{color:var(--green)}.hero{min-height:235px;position:relative;display:grid;align-items:center;overflow:hidden;background:#425748}.hero>img{position:absolute;width:100%;height:100%;object-fit:cover;object-position:center 52%}.hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,20,13,.82),rgba(18,29,22,.52) 50%,rgba(18,29,22,.13))}.hero-copy{position:relative;z-index:1;padding:38px clamp(24px,5vw,88px);color:#fff;max-width:760px}.eyebrow{font-size:.7rem;letter-spacing:.18em;text-transform:uppercase;font-weight:800}.hero-copy .eyebrow{color:#dfe9dc}.hero-copy h1{font-family:"Yu Mincho",YuMincho,Georgia,serif;font-size:clamp(2rem,4vw,3.35rem);font-weight:500;letter-spacing:.08em;margin:8px 0 12px}.hero-copy>p:last-child{margin:0;line-height:1.8;font-size:.95rem;letter-spacing:.04em}.hero-stamp{position:absolute;z-index:1;right:6vw;top:50%;transform:translateY(-50%) rotate(-4deg);color:rgba(255,255,255,.86);font-family:Georgia,serif;font-style:italic;font-size:1.35rem;text-align:center;line-height:1.1;border-bottom:1px solid rgba(255,255,255,.5);padding-bottom:9px}.hero-stamp span{font-size:.75rem;letter-spacing:.18em}.workspace{display:grid;grid-template-columns:220px minmax(270px,390px) minmax(500px,1fr);max-width:1800px;margin:auto;background:var(--white);min-height:720px}.filters{padding:28px 18px;border-right:1px solid var(--line)}.filters fieldset{border:0;padding:0;margin:0 0 28px}.filters legend{font-weight:800;font-size:.85rem;padding:0 10px 10px}.filter-button{border:0;background:transparent;width:100%;min-height:43px;border-radius:6px;padding:8px 11px;display:grid;grid-template-columns:24px 1fr auto;align-items:center;text-align:left;font-size:.88rem;margin:2px 0}.filter-button:hover{background:#f4f6f2}.filter-button.is-active{background:var(--sage);color:var(--green-deep);font-weight:800}.filter-symbol{font-size:.82rem;color:#7e8c82}.filter-button b{font-size:.72rem;color:var(--muted)}.season-note{margin-top:42px;border-top:1px solid var(--line);padding:24px 10px 0}.season-note>span{font-family:Georgia,serif;color:var(--sand);font-size:1.7rem}.season-note p{font-size:.75rem;line-height:1.75;color:var(--muted);margin:6px 0}.season-note strong{color:var(--ink);display:block;font-size:.82rem}.mobile-filter-title{display:none}.catalog-list{border-right:1px solid var(--line);min-width:0}.catalog-toolbar{height:58px;padding:0 16px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);font-size:.78rem;color:var(--muted)}.catalog-toolbar label{display:flex;align-items:center;gap:7px}.catalog-toolbar select{border:0;background:transparent;font-weight:700}.species-list{display:flex;flex-direction:column}.species-card{border:0;border-bottom:1px solid var(--line);background:#fff;width:100%;padding:12px;display:grid;grid-template-columns:82px minmax(0,1fr) 22px;gap:14px;text-align:left;align-items:center;min-height:108px;transition:.18s ease}.species-card:hover{background:#f6f8f5}.species-card.is-selected{background:linear-gradient(90deg,#edf3eb,#f8faf7);box-shadow:inset 3px 0 var(--green)}.species-thumb{width:82px;height:82px;border-radius:5px;background:linear-gradient(145deg,#5d6d57,#c5bb9e);overflow:hidden;position:relative}.species-thumb img{width:100%;height:100%;object-fit:cover}.species-info{min-width:0}.species-info strong{font-family:"Yu Mincho",YuMincho,serif;font-size:1.06rem;display:block;margin-bottom:3px}.species-info em{font-family:Georgia,serif;color:#4f5a52;font-size:.82rem;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.species-meta{display:flex;gap:5px;flex-wrap:wrap;margin-top:8px}.species-meta span{font-size:.64rem;background:#eef1ec;color:#657068;border-radius:999px;padding:3px 7px}.species-arrow{font-size:1.3rem;color:#718078}.empty-state{text-align:center;padding:54px 24px;color:var(--muted)}.empty-state strong{color:var(--ink)}.detail{background:#fbfcfa;min-width:0;padding-bottom:28px}.detail-intro{display:grid;grid-template-columns:minmax(250px,.9fr) minmax(300px,1.1fr);gap:25px;padding:20px}.plant-visual{min-height:285px;border-radius:7px;overflow:hidden;position:relative;background:#d4d7ce}.plant-visual img{width:100%;height:100%;position:absolute;object-fit:cover}.plant-visual:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 60%,rgba(10,18,12,.55))}.plant-visual span{position:absolute;z-index:1;left:14px;bottom:12px;color:#fff;font-family:Georgia,serif;font-size:.7rem;letter-spacing:.08em}.plant-heading{padding:12px 5px}.plant-heading .eyebrow{color:var(--green);margin:0 0 7px}.plant-heading h2{font-family:"Yu Mincho",YuMincho,serif;font-size:2rem;margin:0 0 4px;letter-spacing:.04em}.scientific{font-family:Georgia,serif;font-style:italic;color:var(--muted);margin:0 0 13px}.type-pill{display:inline-block;background:var(--sage);color:var(--green-deep);padding:5px 9px;border-radius:3px;font-size:.7rem;font-weight:800}.plant-form{font-size:.8rem;line-height:1.75;color:#4e5850;margin:16px 0 10px}.plant-notes{margin:0 0 16px;display:grid;gap:8px}.plant-notes>div{display:grid;gap:2px}.plant-notes dt{font-size:.63rem;color:var(--muted);font-weight:800}.plant-notes dd{margin:0;font-size:.72rem;line-height:1.65;color:#4e5850}.metrics{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.metrics>div{background:#fff;border:1px solid #e8ebe6;border-radius:5px;padding:10px}.metrics span{font-size:.63rem;color:var(--muted);display:block;margin-bottom:4px}.metrics strong{font-family:"Yu Mincho",YuMincho,serif;font-size:.95rem}.detail-grid{display:grid;grid-template-columns:1fr 1.2fr;gap:12px;padding:0 20px}.soil-card,.watering-card{background:#fff;border:1px solid var(--line);border-radius:7px;padding:17px}.section-title{display:flex;align-items:center;gap:10px;margin-bottom:15px}.section-title>span{font-family:Georgia,serif;color:var(--sand);font-size:1.55rem}.section-title small{font-size:.55rem;letter-spacing:.17em;color:var(--muted)}.section-title h3{font-family:"Yu Mincho",YuMincho,serif;font-size:1rem;margin:1px 0}.soil-layout{display:grid;grid-template-columns:128px 1fr;gap:16px;align-items:center}.soil-chart{width:122px;height:122px;border-radius:50%;background:conic-gradient(var(--green) 0 35%,#bc7657 35% 55%,#c49b5f 55% 70%,#9b8261 70% 80%,#6b5949 80% 90%,#d8d5ca 90%);position:relative}.soil-chart:after{content:"";position:absolute;inset:28px;border-radius:50%;background:#fff}.soil-chart>span{position:absolute;z-index:1;inset:0;display:grid;place-content:center;text-align:center;font-size:.65rem}.soil-chart b{font-family:Georgia,serif;font-size:.8rem}.soil-list{list-style:none;padding:0;margin:0;display:grid;gap:5px}.soil-list li{font-size:.67rem;display:flex;justify-content:space-between;gap:8px;border-bottom:1px dotted #d6dbd3;padding-bottom:4px}.soil-list i{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--green);margin-right:5px}.fine-print{font-size:.58rem;color:var(--muted);margin:14px 0 0;line-height:1.6}.soil-notes{margin-top:14px;padding-top:4px;border-top:1px solid var(--line)}.watering-list{margin:0}.watering-list>div{display:grid;grid-template-columns:82px 1fr;border-top:1px solid var(--line);padding:10px 0;gap:10px}.watering-list>div:first-child{border-top:0;padding-top:0}.watering-list dt{font-size:.7rem;font-weight:800}.watering-list dd{margin:0;font-size:.68rem;line-height:1.65;color:#4e5850}@media(max-width:1180px){.site-header{grid-template-columns:1fr auto}.site-header nav{display:none}.workspace{grid-template-columns:190px 330px minmax(440px,1fr)}.detail-intro{grid-template-columns:1fr}.plant-visual{min-height:250px}.detail-grid{grid-template-columns:1fr}.hero-stamp{display:none}}@media(max-width:900px){.site-header{grid-template-columns:1fr}.brand{justify-content:center}.nativo-search-wrap{grid-row:2;width:100%}.hero{min-height:210px}.workspace{display:block}.filters{border-right:0;border-bottom:1px solid var(--line);padding:12px;display:flex;gap:8px;overflow:auto;position:sticky;top:0;z-index:3;background:#fff}.mobile-filter-title{display:flex;min-width:90px;flex-direction:column;justify-content:center;font-size:.75rem}.mobile-filter-title span{font-size:.66rem;color:var(--muted)}.filters fieldset{display:flex;margin:0;min-width:max-content}.filters legend,.season-note{display:none}.filter-button{width:auto;min-width:max-content;padding:8px 11px}.filter-button b{margin-left:5px}.catalog-list{border-right:0}.species-list{display:grid;grid-template-columns:repeat(2,1fr)}.species-card{min-height:112px;border-right:1px solid var(--line)}.detail{border-top:12px solid var(--paper)}.detail-intro{grid-template-columns:1fr 1fr}.detail-grid{grid-template-columns:1fr 1fr}}@media(max-width:650px){.site-header{padding:12px 16px}.brand small{display:none}.hero-copy{padding:32px 20px}.hero-copy h1{font-size:1.8rem}.hero-copy>p:last-child{font-size:.82rem}.species-list{display:block}.species-card{border-right:0}.detail-intro{grid-template-columns:1fr;padding:14px}.detail-grid{grid-template-columns:1fr;padding:0 14px}.plant-heading h2{font-size:1.7rem}.plant-visual{min-height:260px}.soil-layout{grid-template-columns:125px 1fr}.metrics{grid-template-columns:repeat(2,1fr)}}


/* ==========================================================================
   自生地マップ（選択中の種）  （map.css）
   ========================================================================== */

.plant-visual > span {
  z-index: 1;
}

.photo-meta {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 11px;
  right: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.plant-visual .photo-meta span,
.plant-visual .photo-meta a {
  position: static;
  background: rgba(17, 28, 20, 0.78);
  backdrop-filter: blur(5px);
  color: #fff;
  border-radius: 999px;
  padding: 5px 9px;
  font-family: inherit;
  font-style: normal;
  font-size: 0.58rem;
  line-height: 1.2;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.plant-visual .photo-meta .photo-rights {
  display: flex;
  gap: 5px;
  padding: 0;
  background: transparent;
}

.photo-meta a:hover {
  text-decoration: underline;
}

.species-thumb.is-missing img,
.plant-visual.is-missing > img {
  filter: grayscale(0.7) brightness(0.55);
}

.photo-missing {
  position: absolute;
  inset: auto 5px 5px;
  z-index: 2;
  border-radius: 4px;
  background: rgba(17, 28, 20, 0.86);
  color: #fff;
  padding: 4px 5px;
  text-align: center;
  font-size: 0.58rem;
  font-weight: 800;
}

.habitat-panel {
  margin: 0 20px 12px;
  display: grid;
  grid-template-columns: minmax(250px, 0.8fr) minmax(330px, 1.2fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.habitat-copy {
  padding: 18px;
}

.habitat-copy .section-title {
  margin-bottom: 8px;
}

.habitat-copy .section-title > span {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  font-weight: 800;
}

.map-lead {
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0 0 13px;
}

.habitat-facts {
  margin: 0;
  display: grid;
  gap: 8px;
}

.habitat-facts div {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.habitat-facts dt {
  font-size: 0.59rem;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 3px;
}

.habitat-facts dd {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.55;
}

.map-wrap {
  position: relative;
  min-height: 260px;
  background: #edf3ee;
  overflow: hidden;
}

.range-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 260px;
}

.map-water { fill: #eaf0ea; }
.map-land {
  fill: #c9d8c9;
  stroke: #fff;
  stroke-width: 3;
  transition: fill 0.25s ease, opacity 0.25s ease;
}
.map-land.is-active { fill: #66836d; }
.map-border {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1;
}
.map-labels text {
  fill: #6b796f;
  font-family: Georgia, serif;
  font-size: 9px;
  letter-spacing: 2px;
}

/* ドルステニア等：詳細マップを一覧アトラスと同じクリーム陸地＋水色海に揃える */
.range-map--eastafrica .map-water {
  fill: url(#range-water-dorstenia);
}
.range-map--eastafrica .map-land-eastafrica {
  fill: #f2ecd9;
  stroke: #fffdf4;
  stroke-width: 6;
}
.range-map--eastafrica .map-land-eastafrica.is-active {
  fill: #ebe4ce;
}
.range-map--eastafrica .map-border,
.range-map--eastafrica .atlas-region-line {
  fill: none;
  stroke: rgba(80, 110, 99, 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 5 7;
}
.range-map--eastafrica .map-wave path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.35);
  stroke-width: 2;
}
.range-map--eastafrica .map-labels text {
  fill: #506e63;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-family: system-ui, sans-serif;
}
.range-map--eastafrica .map-labels .continent-title {
  fill: #183c2e;
  font: 700 22px/1 Georgia, serif;
  letter-spacing: 0.12em;
}
.range-map--eastafrica .map-labels .atlas-island-label {
  fill: #2a5a48;
  font-size: 13px;
}

.plant-type-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 2px;
}
.origin-flags {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.06em;
}
.origin-flags[hidden] {
  display: none;
}
.range-marker { transition: transform 0.35s ease; }
.range-marker[hidden] { display: none; }
.marker-pulse {
  fill: rgba(181, 101, 54, 0.2);
  stroke: rgba(181, 101, 54, 0.28);
  stroke-width: 1;
}
.marker-dot {
  fill: #b56536;
  stroke: #fff;
  stroke-width: 3;
}

.map-legend {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.59rem;
}
.map-legend span {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
}
.map-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b56536;
  box-shadow: 0 0 0 4px rgba(181, 101, 54, 0.18);
}
.map-legend b { font-size: 0.64rem; }

@media (max-width: 1180px) {
  .habitat-panel { grid-template-columns: 1fr; }
  .map-wrap { min-height: 240px; }
}

@media (max-width: 650px) {
  .habitat-panel {
    margin-left: 14px;
    margin-right: 14px;
  }
  .habitat-copy { padding: 15px; }
  .map-wrap,
  .range-map { min-height: 225px; }
}


/* ==========================================================================
   全種類の自生地分布（アトラス）  （atlas.css）
   ========================================================================== */

.atlas-section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 68px);
  background: #132f24;
  color: #fff;
}

.atlas-heading {
  width: min(1540px, 100%);
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: minmax(320px, .9fr) minmax(360px, 1.1fr);
  gap: 40px;
  align-items: end;
}

.atlas-kicker {
  margin: 0 0 8px;
  color: #b9cdbf;
  font: 700 .68rem/1.2 Georgia, serif;
  letter-spacing: .22em;
}

.atlas-heading h2 {
  margin: 0;
  font-family: "Yu Mincho", YuMincho, Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: .06em;
}

.atlas-heading > p {
  margin: 0;
  color: #c9d7cd;
  font-size: .88rem;
  line-height: 1.9;
  max-width: 650px;
}

.atlas-toolbar {
  width: min(1540px, 100%);
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.atlas-toolbar button {
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.05);
  color: #dce7df;
  min-height: 38px;
  padding: 8px 14px;
  font-size: .72rem;
  font-weight: 800;
}

.atlas-toolbar button:hover,
.atlas-toolbar button.is-active {
  background: #e7efe8;
  color: #173b2a;
  border-color: #e7efe8;
}

.atlas-toolbar b { margin-left: 4px; }
.atlas-toolbar > span {
  margin-left: auto;
  color: #a9bdb0;
  font-size: .68rem;
}

/* 分布図内の検索（絞り込みの直下） */
.atlas-section .nativo-search-wrap {
  width: min(1540px, 100%);
  margin: 0 auto 18px;
}

.atlas-section .nativo-search-form {
  max-width: 560px;
}

.atlas-section .global-search input {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(255, 255, 255, .35);
  color: var(--ink);
}

.atlas-section .global-search input::placeholder {
  color: #7a877e;
}

.atlas-section .nativo-search-submit {
  background: #e7efe8;
  border-color: #e7efe8;
  color: #173b2a;
}

.atlas-section .nativo-search-submit:hover,
.atlas-section .nativo-search-submit:focus-visible {
  background: #fff;
  border-color: #fff;
  color: #132f24;
}

.atlas-section .search-empty {
  max-width: 560px;
  background: rgba(255, 244, 232, .95);
}

.atlas-layout {
  width: min(1540px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(570px, 1.35fr) minmax(380px, .65fr);
  min-height: 760px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  box-shadow: 0 30px 70px rgba(0,0,0,.2);
}

.atlas-map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #d0e1da;
}

.atlas-map { display: block; width: 100%; height: 100%; min-height: 690px; }
.atlas-wave path { fill: none; stroke: rgba(255,255,255,.28); stroke-width: 2; }
.atlas-land > path:first-child,
.atlas-land > path:not(.atlas-region-line):not(.atlas-river) {
  fill: #f2ecd9;
  stroke: #fffdf4;
  stroke-width: 6;
}
.atlas-land { transition: opacity .2s ease; }
.atlas-land.is-muted { opacity: .26; }
.atlas-land[hidden],
.atlas-map-label[hidden] { display: none; }
.atlas-region-line { fill: none; stroke: #c9bda2; stroke-width: 1.7; stroke-dasharray: 4 4; }
.atlas-river { fill: none; stroke: #91bbb1; stroke-width: 3; opacity: .8; }
.atlas-map-label { fill: #506e63; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.atlas-map-label .continent-title { fill: #183c2e; font: 700 18px/1 Georgia, serif; letter-spacing: .12em; }
.atlas-map-label .atlas-island-label { fill: #2a5a48; font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.atlas-island { opacity: 1; }

.atlas-marker { cursor: pointer; transition: opacity .18s ease; }
.atlas-marker[hidden] { display: none; }
.atlas-marker .atlas-marker-halo { fill: rgba(181,101,54,.18); opacity: 0; transition: opacity .18s ease; }
.atlas-marker .atlas-marker-dot { fill: #b56536; stroke: #fff; stroke-width: 2.5; transition: transform .18s ease, fill .18s ease; transform-box: fill-box; transform-origin: center; }
.atlas-marker text { fill: #fff; font-size: 9px; font-weight: 900; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.atlas-marker:hover .atlas-marker-halo,
.atlas-marker:focus .atlas-marker-halo,
.atlas-marker.is-selected .atlas-marker-halo { opacity: 1; }
.atlas-marker:hover .atlas-marker-dot,
.atlas-marker:focus .atlas-marker-dot { transform: scale(1.18); }
.atlas-marker.is-selected .atlas-marker-dot { fill: #173b2a; stroke-width: 3; transform: scale(1.16); }
.atlas-marker:focus { outline: none; }

.atlas-map-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 9px;
  background: rgba(250,252,248,.9);
  backdrop-filter: blur(8px);
  color: #3b4f45;
  padding: 10px 12px;
}
.atlas-map-note span { display: flex; align-items: center; gap: 7px; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.atlas-map-note i { width: 10px; height: 10px; border-radius: 50%; background: #b56536; box-shadow: 0 0 0 4px rgba(181,101,54,.16); }
.atlas-map-note small { color: #63756c; font-size: .58rem; line-height: 1.5; text-align: right; }

.atlas-index-panel { min-width: 0; background: #f6f4ed; color: #172219; display: flex; flex-direction: column; }
.atlas-index-head { min-height: 74px; padding: 15px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe3dc; }
.atlas-index-head div { display: flex; flex-direction: column; gap: 3px; }
.atlas-index-head small { color: #718078; font: 700 .56rem/1 Georgia, serif; letter-spacing: .17em; }
.atlas-index-head strong { font-family: "Yu Mincho", YuMincho, serif; font-size: 1.08rem; }
.atlas-index-head > span { border-radius: 999px; background: #e4ece3; color: #244f35; padding: 5px 9px; font-size: .65rem; font-weight: 800; }

.atlas-list { overflow: auto; height: 100%; max-height: 706px; scrollbar-color: #aab9ae transparent; }
.atlas-empty { min-height: 180px; display: grid; place-content: center; gap: 7px; padding: 24px; text-align: center; color: #637069; }
.atlas-empty strong { color: #172219; font-family: "Yu Mincho", YuMincho, serif; }
.atlas-empty span { font-size: .72rem; }
.atlas-species {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e1e4dc;
  background: #f9f8f3;
  padding: 9px 12px;
  display: grid;
  grid-template-columns: 31px 54px minmax(0,1fr) 18px;
  gap: 10px;
  align-items: center;
  text-align: left;
  transition: background .15s ease, box-shadow .15s ease;
}
.atlas-species:hover { background: #fff; }
.atlas-species.is-selected { background: #eaf0e8; box-shadow: inset 3px 0 #244f35; }
.atlas-number { width: 27px; height: 27px; border-radius: 50%; display: grid; place-items: center; background: #b56536; color: #fff; font: 800 .62rem/1 Georgia, serif; }
.atlas-species.is-selected .atlas-number { background: #173b2a; }
.atlas-photo { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2px solid #fff; box-shadow: 0 2px 9px rgba(28,53,38,.14); background: #ccd5cb; }
.atlas-photo img { width: 100%; height: 100%; object-fit: cover; }
.atlas-species-copy { min-width: 0; }
.atlas-species-copy strong {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 2px;
  font-family: "Yu Mincho", YuMincho, serif;
  font-size: .82rem;
  min-width: 0;
}
.atlas-species-copy .atlas-common {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.atlas-cites {
  flex: 0 0 auto;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: .62rem;
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.2;
}
.atlas-cites--1 { color: #c62828; }
.atlas-cites--2,
.atlas-cites--3 { color: #c9a227; }
.atlas-species-copy em { display: block; color: #637069; font-family: Georgia, serif; font-size: .67rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atlas-species-copy small { display: block; margin-top: 4px; color: #7b877f; font-size: .57rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.atlas-go { color: #718078; font-size: 1.15rem; }

@media (max-width: 1050px) {
  .atlas-heading { grid-template-columns: 1fr; gap: 14px; }
  .atlas-layout { grid-template-columns: 1fr; }
  .atlas-map { min-height: 650px; }
  .atlas-index-panel { max-height: none; }
  .atlas-list { display: grid; grid-template-columns: repeat(2, 1fr); max-height: none; }
  .atlas-species:nth-child(odd) { border-right: 1px solid #e1e4dc; }
}

/* 絞り込みボタンが5個あるため、中間幅から横スクロールへ切り替える。 */
@media (max-width: 900px) {
  .atlas-toolbar { overflow: auto; padding: 0 4px 4px; }
  .atlas-toolbar button { white-space: nowrap; }
}

@media (max-width: 650px) {
  .atlas-section { padding-left: 12px; padding-right: 12px; }
  .atlas-heading { padding: 0 7px; }
  .atlas-heading h2 { font-size: 1.9rem; }
  .atlas-toolbar > span { display: none; }
  .atlas-layout { border-radius: 12px; }
  .atlas-map { min-height: 520px; }
  .atlas-map-note { left: 10px; right: 10px; bottom: 10px; display: block; }
  .atlas-map-note small { display: block; text-align: left; margin-top: 7px; }
  .atlas-list { grid-template-columns: 1fr; }
  .atlas-species:nth-child(odd) { border-right: 0; }
  .atlas-map-label .continent-title { font-size: 16px; }
}

/* 全画面幅で「分布図 → 植物詳細」の1カラムに統一する。
   .filters 系の指定は絞り込みUIを分布図ツールバーへ統合した後も、
   将来の再利用に備えて残してある（現在は該当要素なし）。 */
main { display: flex; flex-direction: column; }
.nativo-guide { display: contents; }
.atlas-section { order: 1; }
.workspace { display: contents; }
.detail { order: 2; }
.atlas-map--placeholder {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  padding: 32px;
  text-align: center;
  background: #e8efea;
  border-radius: 24px;
  color: #3d5246;
}
.atlas-map--placeholder code { font-size: .85em; }
.filters {
  order: 2;
  width: 100%;
  padding: 12px clamp(16px, 4vw, 68px);
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 3;
}
.filters .mobile-filter-title { display: flex; min-width: 90px; flex-direction: column; justify-content: center; font-size: .75rem; }
.filters .mobile-filter-title span { color: var(--muted); font-size: .66rem; }
.filters fieldset { display: flex; margin: 0; min-width: max-content; }
.filters legend,
.filters .season-note { display: none; }
.filters .filter-button { width: auto; min-width: max-content; padding: 8px 11px; }
.filters .filter-button b { margin-left: 5px; }
.detail {
  width: min(1540px, 100%);
  margin: 0 auto;
  border-top: 12px solid var(--paper);
}


/* ==========================================================================
   写真ギャラリー・ライトボックス  （gallery.css）
   ========================================================================== */

.photo-gallery-section {
  margin: 0 20px 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.photo-gallery-section[hidden] { display: none; }

.photo-gallery-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.photo-gallery-heading .section-title { margin: 0; }
.photo-gallery-heading .section-title > span {
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .12em;
}

.photo-gallery-summary {
  display: flex;
  align-items: flex-end;
  flex-direction: column;
  gap: 2px;
  color: var(--muted);
}

.photo-gallery-summary span {
  color: var(--green-deep);
  font-family: Georgia, serif;
  font-size: .8rem;
  font-weight: 700;
}

.photo-gallery-summary small { font-size: .58rem; }

.photo-gallery-lead {
  margin: 8px 0 14px;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.65;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.photo-gallery--instagram {
  display: block;
  position: relative;
}

.instagram-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.instagram-rail:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--green-deep);
  border-radius: 8px;
}

/* スマホ・狭幅: 1枚90% + 次が10%見える */
.instagram-slide {
  flex: 0 0 90%;
  width: 90%;
  max-width: 90%;
  min-width: 0;
  box-sizing: border-box;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.photo-gallery--instagram.is-single .instagram-slide {
  flex-basis: 100%;
  width: 100%;
  max-width: 540px;
}

.photo-gallery--instagram.is-multi .instagram-rail {
  mask-image: linear-gradient(to right, #000 0%, #000 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 0%, #000 86%, transparent 100%);
}

.instagram-embed-card {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid #dfe4dc;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
  line-height: 0;
}

.instagram-embed-card > blockquote.instagram-media {
  margin: 0 !important;
  background: #fff !important;
  border: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  float: none !important;
}

.instagram-embed-card iframe {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  border: 0 !important;
}

.instagram-slider-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.instagram-slider-btn {
  width: 36px;
  height: 36px;
  border: 1px solid #c8d2c8;
  border-radius: 999px;
  background: #fff;
  color: var(--green-deep);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.instagram-slider-btn:hover,
.instagram-slider-btn:focus-visible {
  border-color: var(--green-deep);
  background: #eef5ef;
}

.instagram-slider-hint {
  margin-left: auto;
  color: var(--muted);
  font-size: .62rem;
  letter-spacing: .04em;
}

/* PC: 枚数に応じたカラム（1〜5） */
@media (min-width: 900px) {
  .photo-gallery--instagram .instagram-rail {
    display: grid;
    overflow: visible;
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
    gap: 14px;
  }

  .photo-gallery--instagram.count-1 .instagram-rail {
    grid-template-columns: minmax(0, 540px);
  }
  .photo-gallery--instagram.count-2 .instagram-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .photo-gallery--instagram.count-3 .instagram-rail {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .photo-gallery--instagram.count-4 .instagram-rail {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .photo-gallery--instagram.count-5 .instagram-rail {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .photo-gallery--instagram .instagram-slide {
    flex: none;
    width: auto;
    max-width: none;
  }

  .photo-gallery--instagram .instagram-slider-nav {
    display: none;
  }
}

.gallery-photo-empty {
  grid-column: 1 / -1;
  display: grid;
  gap: 4px;
  min-height: 110px;
  place-content: center;
  border: 1px dashed #c8d2c8;
  border-radius: 6px;
  background: #f5f8f3;
  color: var(--muted);
  text-align: center;
}

.gallery-photo-empty strong { color: var(--ink); font-size: .78rem; }
.gallery-photo-empty span { font-size: .64rem; }

.gallery-photo {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #dfe4dc;
  border-radius: 6px;
  background: #f6f8f4;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gallery-photo:hover,
.gallery-photo:focus-visible {
  border-color: #789180;
  box-shadow: 0 8px 20px rgba(22, 56, 41, .12);
  outline: none;
  transform: translateY(-2px);
}

.gallery-photo-image {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dce4dc;
}

.gallery-photo-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .28s ease;
}

.gallery-photo:hover img { transform: scale(1.035); }

.gallery-photo-image > span {
  position: absolute;
  left: 7px;
  bottom: 7px;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(18, 39, 28, .84);
  color: #fff;
  font-size: .57rem;
  font-weight: 800;
}

.gallery-photo-copy {
  display: block;
  min-height: 58px;
  padding: 8px;
}

.gallery-photo-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: .65rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gallery-photo-copy small {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: .54rem;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-lightbox {
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 10px;
  background: #112219;
  color: #fff;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}

.photo-lightbox::backdrop {
  background: rgba(8, 17, 12, .82);
  backdrop-filter: blur(4px);
}

.lightbox-shell { position: relative; }

.lightbox-close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: rgba(13, 29, 20, .82);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
}

.photo-lightbox figure { margin: 0; }

.photo-lightbox figure > img {
  width: 100%;
  max-height: min(68vh, 700px);
  object-fit: contain;
  background: #09130d;
}

.photo-lightbox figcaption {
  padding: 14px 18px 17px;
  background: #112219;
}

.photo-lightbox figcaption > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

#lightbox-kind {
  flex: none;
  padding: 3px 7px;
  border-radius: 999px;
  background: #dfe9de;
  color: #173b2a;
  font-size: .6rem;
  font-weight: 800;
}

#lightbox-title { font-size: .86rem; }
#lightbox-description {
  margin: 6px 0 9px;
  color: #c7d4ca;
  font-size: .68rem;
  line-height: 1.55;
}

.lightbox-rights { display: flex; flex-wrap: wrap; gap: 10px; }
.lightbox-rights a {
  color: #d9e7dd;
  font-size: .63rem;
  text-underline-offset: 3px;
}

@media (max-width: 1180px) {
  .photo-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .photo-gallery-section {
    margin-left: 14px;
    margin-right: 14px;
    padding: 15px;
  }
  .photo-gallery-heading { display: block; }
  .photo-gallery-summary { align-items: flex-start; margin-top: 8px; }
  .photo-gallery:not(.photo-gallery--instagram) {
    display: flex;
    margin-right: -15px;
    padding-right: 15px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  .photo-gallery--instagram {
    margin-right: 0;
    padding-right: 0;
  }
  .photo-gallery--instagram .instagram-slide {
    flex: 0 0 90%;
    width: 90%;
    max-width: 90%;
  }
  .gallery-photo {
    flex: 0 0 min(72vw, 240px);
    scroll-snap-align: start;
  }
  .photo-lightbox {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }
  .photo-lightbox figure > img { max-height: 62vh; }
  .photo-lightbox figcaption { padding: 13px; }
}

/* ==========================================================================
   WordPress 用の補助スタイル  （テーマ化にあたり追加）
   ========================================================================== */

/* WordPress コアが出力するクラス */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  clip: auto;
}

.alignleft {
  float: left;
  margin: 0 1.5em 1em 0;
}

.alignright {
  float: right;
  margin: 0 0 1em 1.5em;
}

.aligncenter {
  display: block;
  margin: 0 auto 1em;
}

.wp-caption,
figure.wp-block-image {
  max-width: 100%;
  margin: 0 0 1.5em;
}

.wp-caption-text,
.gallery-caption,
figcaption {
  font-size: 0.78rem;
  color: var(--muted);
}

/* 管理バー表示時、モバイルの絞り込みバーが隠れないようにする */
@media (max-width: 900px) {
  .admin-bar .filters {
    top: 32px;
  }
}

@media (max-width: 782px) {
  .admin-bar .filters {
    top: 46px;
  }
}

/* ヘッダー検索：ボタン＋結果なしメッセージ */
.nativo-search-wrap {
  position: relative;
  width: 100%;
  min-width: 0;
  align-self: center;
}

.nativo-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  width: 100%;
}

.nativo-search-wrap .global-search {
  width: 100%;
  min-width: 0;
}

.nativo-search-submit {
  height: 46px;
  padding: 0 16px;
  border: 1px solid var(--green-deep);
  border-radius: 8px;
  background: var(--green-deep);
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
  white-space: nowrap;
}

.nativo-search-submit:hover,
.nativo-search-submit:focus-visible {
  background: var(--green);
  border-color: var(--green);
}

.search-empty {
  margin: 6px 2px 0;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff4e8;
  border: 1px solid #efd2b0;
  color: #7a4a12;
  font-size: .78rem;
  line-height: 1.45;
}

.search-empty[hidden] {
  display: none !important;
}

/* ヘッダー下グローバルメニュー（ピル型・横スクロール） */
.global-menu {
  background: var(--sage-pale);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}

.global-menu__track {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #aab9ae transparent;
}

.global-menu__list {
  list-style: none;
  margin: 0;
  padding: 10px clamp(16px, 4vw, 72px);
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  box-sizing: border-box;
}

.global-menu__list > li {
  margin: 0;
  flex: 0 0 auto;
}

.global-menu__list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #c5d2c6;
  background: #fff;
  color: var(--green-deep);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  line-height: 1.2;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.global-menu__list a:hover,
.global-menu__list a:focus-visible {
  background: var(--sage);
  border-color: #9db5a3;
  color: var(--green-deep);
  outline: none;
}

.global-menu__list .current-menu-item > a,
.global-menu__list .current-menu-ancestor > a,
.global-menu__list .current_page_item > a {
  background: var(--green-deep);
  border-color: var(--green-deep);
  color: #fff;
}

@media (max-width: 720px) {
  .global-menu__list {
    padding: 8px 12px;
    gap: 6px;
  }

  .global-menu__list a {
    min-height: 32px;
    padding: 0 12px;
    font-size: 0.74rem;
  }
}

@media (max-width: 720px) {
  .nativo-search-form {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
  }

  .nativo-search-submit {
    flex-shrink: 0;
    height: 46px;
    padding: 0 12px;
    font-size: .82rem;
  }
}

/* 図鑑以外のページ（検索欄・ページ内リンクを出さない場合）のヘッダー */
.site-header--simple {
  grid-template-columns: 1fr;
}

/* 投稿・固定ページなど、図鑑本体以外を表示する汎用テンプレート用 */
.page-shell {
  width: min(820px, 100%);
  margin: 0 auto;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 36px) clamp(56px, 8vw, 96px);
}

.page-shell-head h1,
.page-shell-entry > h1 {
  margin: 0 0 1.1em;
  color: var(--green-deep);
  font-family: "Yu Mincho", YuMincho, Georgia, serif;
  font-size: clamp(1.55rem, 3.4vw, 2.05rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.page-shell-entry {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}

.page-shell-entry:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.page-shell-entry > h2 {
  margin: 0 0 0.55em;
  font-size: 1.15rem;
}

.page-shell-entry > h2 a {
  color: var(--green-deep);
  text-decoration: none;
}

.page-shell-entry > h2 a:hover {
  text-decoration: underline;
}

.page-shell-body {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.9;
}

.page-shell-body > *:first-child {
  margin-top: 0;
}

.page-shell-body > *:last-child {
  margin-bottom: 0;
}

.page-shell-body p {
  margin: 0 0 1.15em;
}

.page-shell-body h2 {
  margin: 2em 0 0.85em;
  padding: 0.15em 0 0.15em 0.85em;
  border-left: 5px solid var(--green-deep);
  color: var(--ink);
  font-size: clamp(1.15rem, 2.4vw, 1.35rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.45;
}

.page-shell-body h3 {
  margin: 1.7em 0 0.7em;
  color: var(--green-deep);
  font-size: 1.05rem;
  font-weight: 800;
}

.page-shell-body h4 {
  margin: 1.45em 0 0.55em;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 800;
}

.page-shell-body ul,
.page-shell-body ol {
  margin: 0 0 1.2em;
  padding-left: 1.35em;
}

.page-shell-body li {
  margin: 0.35em 0;
}

.page-shell-body li::marker {
  color: #3b4a40;
}

.page-shell-body a {
  color: var(--green);
  text-underline-offset: 3px;
}

.page-shell-body a:hover {
  color: var(--green-deep);
}

.page-shell-body strong,
.page-shell-body b {
  font-weight: 800;
}

.page-shell-body img,
.page-shell-body .wp-block-image img {
  height: auto;
  border-radius: 4px;
}

.page-shell-body blockquote {
  margin: 1.3em 0;
  padding: 0.85em 1em;
  border-left: 4px solid var(--sage);
  background: #fff;
  color: #4e5850;
}

.page-shell-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.page-shell-body table,
.page-shell-body .wp-block-table table {
  width: 100%;
  margin: 1.35em 0 1.5em;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #d9e0d7;
  font-size: 0.9rem;
  line-height: 1.7;
}

.page-shell-body .wp-block-table {
  margin: 1.35em 0 1.5em;
  overflow-x: auto;
}

.page-shell-body .wp-block-table table {
  margin: 0;
}

.page-shell-body th,
.page-shell-body td,
.page-shell-body .wp-block-table th,
.page-shell-body .wp-block-table td {
  padding: 0.95em 1.05em;
  border: 1px solid #d9e0d7;
  text-align: left;
  vertical-align: top;
}

.page-shell-body thead th,
.page-shell-body tr > *:first-child {
  width: 32%;
  background: #edf3eb;
  color: var(--green-deep);
  font-weight: 800;
  white-space: nowrap;
}

.page-shell-body td:not(:first-child),
.page-shell-body th:not(:first-child) {
  background: #fff;
  color: var(--ink);
  font-weight: 400;
  white-space: normal;
}

.page-shell-body figure {
  margin: 1.4em 0;
}

.page-shell-body figcaption {
  margin-top: 0.45em;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-shell-pagelinks,
.page-shell .pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  font-size: 0.85rem;
}

.page-shell .pagination a,
.page-shell .pagination .current {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  text-decoration: none;
}

.page-shell .pagination .current {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

/* SNSシェア（ページ最下部・さりげなく中央） */
.sns-share-wrap {
  width: 100%;
  margin: 0;
  padding: 28px clamp(20px, 5vw, 36px) 36px;
  background: var(--paper);
}

.sns-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto;
  padding: 0;
  border-top: 0;
  text-align: center;
}

.page-shell-body > .sns-share {
  margin-top: 2.2em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
}

.sns-share-label {
  margin: 0 0 0.65em;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.sns-share-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sns-share-btn {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 2px 6px rgba(23, 59, 42, 0.12);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  opacity: 0.92;
}

.sns-share-btn:hover,
.sns-share-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(23, 59, 42, 0.18);
  outline: none;
  opacity: 1;
}

.sns-share-btn svg {
  width: 14px;
  height: 14px;
  display: block;
}

.sns-share-btn--instagram {
  background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 75%, #515bd4 100%);
}

.sns-share-btn--x {
  background: #111111;
}

.sns-share-btn--facebook {
  background: #1877f2;
}

.sns-share-btn--line {
  background: #06c755;
}

.sns-share-btn--url {
  background: #8f7cc8;
}

.sns-share-toast {
  margin: 0.65em 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}

@media (max-width: 650px) {
  .page-shell-body thead th,
  .page-shell-body tr > *:first-child {
    width: auto;
    white-space: normal;
  }

  .page-shell-body th,
  .page-shell-body td,
  .page-shell-body .wp-block-table th,
  .page-shell-body .wp-block-table td {
    padding: 0.8em 0.85em;
    font-size: 0.84rem;
  }
}


/* ==========================================================================
   サイトフッター（3カラムウィジェット）
   ========================================================================== */

.site-footer {
  background: var(--green-deep);
  color: #fff;
  padding: clamp(36px, 5vw, 56px) clamp(22px, 5vw, 80px) 28px;
}

.footer-columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}

.footer-columns[data-columns="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.footer-columns[data-columns="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-widget {
  margin: 0 0 22px;
}

.footer-widget:last-child {
  margin-bottom: 0;
}

.footer-widget-title {
  margin: 0 0 14px;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #fff;
}

.footer-widget ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-widget ul ul {
  margin-top: 8px;
  padding-left: 0.85em;
  gap: 8px;
}

.footer-widget .menu,
.footer-widget .widget_nav_menu .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-widget li {
  margin: 0;
}

.footer-widget a {
  color: #e4ece6;
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.5;
}

.footer-widget a:hover,
.footer-widget a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-widget p,
.footer-widget .textwidget {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: #c7d4ca;
}

.footer-fallback p {
  margin: 0;
  font-family: Georgia, "Yu Mincho", serif;
  font-size: 1.05rem;
}

.footer-note {
  margin: 28px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.66rem;
  line-height: 1.65;
  color: #c7d4ca;
}

.footer-copy {
  margin: 14px 0 0;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: #a9b9ae;
}

@media (max-width: 900px) {
  .footer-columns {
    grid-template-columns: 1fr 1fr;
    gap: 28px 36px;
  }
}

@media (max-width: 650px) {
  .site-footer {
    padding: 32px 20px 24px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
