/* Culmina front page (front-page.php) — モバイル優先・発見ハブUI
 * アクセスtier色: easy=#2e7d32(緑) / moderate=#d79a2b(橙) / limited=#c0392b(赤)
 * = culmina-discovery-map.js のマーカー色と統一。アクセント = サイトキーカラー #2e7d32。
 *
 * ⚠️ 全セレクタを .culmina-home で scope し、Cocoon の `.content ul/li`(specificity 0,1,1)に
 *    勝つ(`.culmina-home .ch-rail` = 0,2,0)。自前リスト(ch-rail/ch-collgrid/ch-hero-badges)
 *    だけ箇条書きをリセットし、発見ハブの cmd-* リスト(category-map.css 管轄)には触れない。
 */
/* ---------- front page = 全幅1カラム(サイドバー非表示・発見ハブ) ---------- */
body.home #sidebar { display: none !important; }
body.home #main { width: 100% !important; margin: 0 !important; float: none !important; }
body.home #content { display: block !important; }
body.home #main.main { max-width: 100% !important; }

.culmina-home { width: 100%; }
.culmina-home .ch-inner { padding: 0 12px; max-width: 1080px; margin: 0 auto; }
.culmina-home .ch-sec { margin: 36px 0; }
.culmina-home .ch-h2 {
  font-size: 1.2rem; font-weight: 700; margin: 0 0 4px; padding: 0;
  border: none; background: none; color: #1f2d27; line-height: 1.4;
}
.culmina-home .ch-lead { color: #5c6b63; font-size: .88rem; margin: 0 0 12px; line-height: 1.6; }

/* ---------- 自前リストの箇条書きリセット(Cocoon .content ul/li に勝つ) ---------- */
.culmina-home .ch-rail,
.culmina-home .ch-collgrid,
.culmina-home .ch-hero-badges,
.culmina-home .ch-hero-chips {
  list-style: none; margin: 0; padding: 0;
}
.culmina-home .ch-rail > li,
.culmina-home .ch-collgrid > li,
.culmina-home .ch-hero-badges > li,
.culmina-home .ch-hero-chips > li {
  list-style: none; margin: 0; padding: 0; background: none; border: 0; text-indent: 0;
}
.culmina-home .ch-rail > li::before,
.culmina-home .ch-collgrid > li::before,
.culmina-home .ch-hero-badges > li::before,
.culmina-home .ch-hero-chips > li::before { content: none; display: none; }

/* ---------- Hero(景観グラデーション + 山シルエット) ---------- */
.culmina-home .ch-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #14502f 0%, #1f5e3a 38%, #2e7d32 72%, #44a14e 100%);
  color: #fff; padding: 46px 18px 56px; text-align: center;
  border-radius: 18px; margin: 8px 0 28px;
}
/* 下部の山なみシルエット(SVG、帰属不要) */
.culmina-home .ch-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 120px; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 200' preserveAspectRatio='none'%3E%3Cpath fill='%23ffffff' fill-opacity='0.07' d='M0,200 L0,140 L210,60 L390,120 L600,40 L820,118 L1040,55 L1260,120 L1440,70 L1440,200 Z'/%3E%3Cpath fill='%23000000' fill-opacity='0.06' d='M0,200 L0,165 L260,105 L520,160 L760,95 L1020,158 L1260,110 L1440,150 L1440,200 Z'/%3E%3C/svg%3E") bottom center / 100% 120px no-repeat;
}
.culmina-home .ch-hero-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }
.culmina-home .ch-hero-h1 { font-size: 1.55rem; font-weight: 800; margin: 0 0 10px; line-height: 1.35; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.culmina-home .ch-hero-sub { font-size: .92rem; opacity: .96; margin: 0 0 18px; line-height: 1.7; color: #fff; }

/* 山名検索 */
.culmina-home .ch-hero-search {
  display: flex; max-width: 440px; margin: 0 auto 16px; background: #fff;
  border-radius: 999px; overflow: hidden; box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
.culmina-home .ch-hero-search input {
  flex: 1; min-width: 0; border: 0; padding: 13px 18px; font-size: .95rem; outline: none; color: #1f2d27; background: #fff;
}
.culmina-home .ch-hero-search button { border: 0; background: #fff; padding: 0 16px; font-size: 1.05rem; cursor: pointer; color: #2e7d32; }

/* クイックスタートチップ */
.culmina-home .ch-hero-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0 0 4px; }
.culmina-home .ch-hero-chips a {
  display: inline-block; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.16);
  color: #fff; font-weight: 700; font-size: .8rem; text-decoration: none; border: 1px solid rgba(255,255,255,.4);
}
.culmina-home .ch-hero-chips a:hover { background: rgba(255,255,255,.3); }

/* 信頼バッジ */
.culmina-home .ch-hero-badges {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin: 18px 0 0; font-size: .78rem; opacity: .96;
}
.culmina-home .ch-hero-badges > li { display: flex; align-items: baseline; gap: 5px; color: #fff; }
.culmina-home .ch-hero-badges b { font-size: 1.1rem; font-weight: 800; }

/* ---------- 横スクロールレール ---------- */
.culmina-home .ch-rail {
  display: flex; gap: 11px; overflow-x: auto; overflow-y: hidden;
  padding: 4px 0 10px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.culmina-home .ch-rail::-webkit-scrollbar { height: 6px; }
.culmina-home .ch-rail::-webkit-scrollbar-thumb { background: #cdd8d1; border-radius: 3px; }

/* ---------- カード ---------- */
.culmina-home .ch-card {
  position: relative; flex: 0 0 auto; width: 158px; scroll-snap-align: start;
  background: #fff; border: 1px solid #e6ece8; border-radius: 14px; overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
}
.culmina-home .ch-link { display: block; text-decoration: none; color: inherit; }
.culmina-home .ch-thumb {
  display: block; width: 100%; height: 96px; background-size: cover;
  background-position: center; background-color: #eef2ef;
}
.culmina-home .ch-noimg { background: repeating-linear-gradient(45deg,#eef2ef,#eef2ef 10px,#e4ebe6 10px,#e4ebe6 20px); }
.culmina-home .ch-body { display: block; padding: 9px 10px 12px; }
.culmina-home .ch-title { display: block; font-weight: 700; font-size: .9rem; color: #1f2d27; line-height: 1.35; }
.culmina-home .ch-reason {
  display: inline-block; margin: 5px 0 0; font-size: .66rem; font-weight: 700;
  color: #1f5e3a; background: #e7f3ea; padding: 2px 7px; border-radius: 999px;
}
.culmina-home .ch-badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 7px; }
.culmina-home .ch-acc { font-size: .66rem; font-weight: 700; padding: 2px 6px; border-radius: 5px; color: #fff; white-space: nowrap; }
.culmina-home .ch-acc.easy { background: #2e7d32; }
.culmina-home .ch-acc.moderate { background: #d79a2b; }
.culmina-home .ch-acc.limited { background: #c0392b; }
.culmina-home .ch-meta { font-size: .66rem; color: #5c6b63; background: #f1f5f2; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

/* お気に入り ☆ */
.culmina-home .ch-star {
  position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; padding: 0;
  border: none; border-radius: 50%; background: rgba(255,255,255,.88); cursor: pointer;
  font-size: 1.05rem; line-height: 30px; color: #b9a23a; box-shadow: 0 1px 4px rgba(0,0,0,.18); z-index: 2;
}
.culmina-home .ch-star.on { color: #f0a500; }

/* ---------- コレクション ---------- */
.culmina-home .ch-collgrid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.culmina-home .ch-coll {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px; text-decoration: none;
  background: #fff; border: 1px solid #e6ece8; border-radius: 12px; color: #1f2d27; font-weight: 700;
}
.culmina-home .ch-coll-icon { font-size: 1.25rem; }
.culmina-home .ch-coll-title { font-size: .86rem; line-height: 1.3; }

/* ---------- 個人化 ---------- */
.culmina-home .ch-personal-wrap { display: grid; gap: 24px; }
.culmina-home .ch-count { font-size: .82rem; color: #5c6b63; font-weight: 600; }

/* ---------- 約束 ---------- */
.culmina-home .ch-promise { background: #f1f5f2; border-radius: 16px; padding: 18px 0; }
.culmina-home .ch-promise-body { color: #38473f; line-height: 1.8; margin: 0; font-size: .9rem; }

/* 東京からの所要時間バッジ(発見リスト) */
.cmd-hub { display: inline-block; font-size: .66rem; font-weight: 700; color: #1f5e3a;
  background: #e7f3ea; padding: 2px 6px; border-radius: 5px; white-space: nowrap; }

/* ---------- 発見セクション内の地図 + すべて見る ---------- */
.culmina-home .ch-discover #cmd-map { margin-top: 8px; }

/* デスクトップ: 2ペイン(リスト左 / 追従地図右)。モバイルは縦積みのまま。 */
@media (min-width: 900px) {
  .culmina-home .ch-discover .cmd-split { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
  .culmina-home .ch-discover .cmd-split .cmd-list { flex: 1 1 0; order: 1; min-width: 0; margin-top: 0; }
  .culmina-home .ch-discover .cmd-split #cmd-map { order: 2; flex: 0 0 46%; position: sticky; top: 16px; margin-top: 0; }
  .culmina-home .ch-discover .cmd-split #cmd-map,
  .culmina-home .ch-discover .cmd-split #cmd-map-canvas { height: 76vh; min-height: 460px; }
  .culmina-home .ch-discover .cmd-split .cmd-more { order: 3; flex-basis: 100%; }
}
.culmina-home .ch-discover .cmd-more { text-align: center; margin: 14px 0 0; }
.culmina-home .ch-discover .cmd-more a {
  display: inline-block; padding: 11px 26px; border-radius: 999px;
  background: #2e7d32; color: #fff; font-weight: 700; text-decoration: none; font-size: .9rem;
}

/* ---------- レスポンシブ ---------- */
@media (min-width: 600px) {
  .culmina-home .ch-hero-h1 { font-size: 2rem; }
  .culmina-home .ch-collgrid { grid-template-columns: repeat(3, 1fr); }
  .culmina-home .ch-card { width: 184px; }
  .culmina-home .ch-h2 { font-size: 1.35rem; }
}
@media (min-width: 900px) {
  .culmina-home .ch-hero { padding: 56px 18px 48px; }
}
