/* 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; }

/* fluid container: ヒーローも本文も同じ最大幅・流動パディングで揃える */
.culmina-home { width: 100%; --ch-w: 1200px; }
.culmina-home .ch-inner { width: 100%; max-width: var(--ch-w); margin-inline: auto; padding-inline: clamp(12px, 3vw, 28px); }
.culmina-home .ch-sec { margin: clamp(28px, 4.5vw, 50px) 0; }
.culmina-home .ch-h2 {
  font-size: clamp(1.15rem, 1rem + 1vw, 1.55rem); 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: clamp(.85rem, .8rem + .3vw, .96rem); 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; text-align: center;
  max-width: var(--ch-w); margin: 8px auto clamp(20px, 4vw, 34px);
  padding: clamp(34px, 5vw, 60px) clamp(16px, 4vw, 32px) clamp(40px, 6vw, 64px);
  border-radius: clamp(14px, 1.5vw, 20px);
}
/* 下部の山なみシルエット(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: 700px; margin: 0 auto; }
.culmina-home .ch-hero-h1 { font-size: clamp(1.45rem, 1rem + 2.6vw, 2.3rem); font-weight: 800; margin: 0 0 10px; line-height: 1.32; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.18); }
.culmina-home .ch-hero-sub { font-size: clamp(.9rem, .84rem + .4vw, 1.05rem); 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: clamp(150px, 40vw, 196px); 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: clamp(92px, 24vw, 124px); 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: clamp(8px, 1.4vw, 14px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 158px), 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; }

/* 発見リスト↔地図 の相互ハイライト(地図ポイント hover 時に対応する行を強調) */
.cmd-item-hl { outline: 2px solid #2e7d32; outline-offset: 1px; box-shadow: 0 3px 12px rgba(46,125,50,.2) !important; }
.culmina-home .ch-discover .cmd-item { transition: box-shadow .12s, outline-color .12s; cursor: default; }

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

/* ---------- 発見セクション内の地図 + すべて見る ---------- */
/* トップの発見は全幅で使う(/mountains の .cmd-wrap{max-width:900px} を上書き、2ペインを広く) */
.culmina-home .ch-discover .cmd-wrap { max-width: none; margin: 0; }
.culmina-home .ch-discover #cmd-map { margin-top: 8px; }

/* 2ペイン(リスト左 / 追従地図右)。幅860px以上で発動、比率は流動。 */
@media (min-width: 860px) {
  .culmina-home .ch-discover .cmd-split { display: flex; flex-wrap: wrap; gap: clamp(16px, 2vw, 28px); align-items: flex-start; }
  .culmina-home .ch-discover .cmd-split .cmd-list { flex: 1 1 320px; order: 1; min-width: 0; margin-top: 0; }
  .culmina-home .ch-discover .cmd-split #cmd-map { order: 2; flex: 0 0 clamp(360px, 42%, 560px); 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: clamp(440px, 72vh, 760px); }
  .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;
}

/* フォント・カード幅・余白・コレクション列・ヒーロー余白は clamp()/auto-fit で
   全幅域を流動的にカバーするため、固定ブレークポイントは持たない(2ペインの構造切替のみ 860px)。 */
