/* にいがたキャンプ場ガイド 共通スタイル (Phase 1)。
   デザイン改修は Claude Design 併用フェーズで差し替え可能なよう、素の CSS を 1 枚に集約。 */
:root {
  --green: #5c8d4e;
  --green-dark: #3f6b35;
  --bg: #ffffff;
  --ink: #22292e;
  --muted: #6b7263;
  --card: #ffffff;
  --line: #e3e1d8;
  --accent: #c98a2b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.7;
}
a { color: var(--green-dark); }
img { max-width: 100%; height: auto; }

.site-header {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  justify-content: space-between;
  padding: 12px 20px; background: var(--green-dark); color: #fff;
}
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; }
.brand-main { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
.brand-sub { font-size: .7rem; opacity: .85; }
.global-nav { display: flex; gap: 14px; flex-wrap: wrap; }
.global-nav a { color: #fff; text-decoration: none; font-size: .92rem; }
.global-nav a:hover { text-decoration: underline; }

main { max-width: 1080px; margin: 0 auto; padding: 20px 16px 60px; }

.hero {
  background: linear-gradient(rgba(20,40,20,.45), rgba(20,40,20,.45)) center/cover no-repeat;
  border-radius: 14px; color: #fff; padding: 64px 24px; text-align: center;
}
.hero h1 { margin: 0 0 8px; font-size: 1.7rem; }
.hero p { margin: 0 0 20px; }
.hero .search-link {
  display: inline-block; background: var(--accent); color: #fff; text-decoration: none;
  padding: 12px 28px; border-radius: 999px; font-weight: 700;
}

h2.section { border-left: 6px solid var(--green); padding-left: 10px; margin: 36px 0 14px; font-size: 1.25rem; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.area-grid a {
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 10px; text-align: center; text-decoration: none; font-weight: 600;
}
.area-grid a small { display: block; color: var(--muted); font-weight: 400; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.site-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  text-decoration: none; color: var(--ink); display: flex; flex-direction: column;
}
.site-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }
.site-card .ph { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: #ddd; }
.site-card .body { padding: 10px 12px 12px; }
.site-card .nm { font-weight: 700; }
.site-card .meta { font-size: .8rem; color: var(--muted); }
.site-card .blurb { font-size: .82rem; margin: 4px 0 0; }
.badge360 {
  display: inline-block; background: var(--accent); color: #fff; font-size: .68rem;
  border-radius: 4px; padding: 1px 6px; margin-left: 6px; vertical-align: middle;
}
.tag-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tag-chips span { background: #eef3ea; color: var(--green-dark); font-size: .7rem; border-radius: 4px; padding: 1px 6px; }

/* 検索ページ */
.search-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; }
@media (max-width: 800px) { .search-layout { grid-template-columns: 1fr; } }
.filter-panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; align-self: start; }
.filter-panel h3 { margin: 12px 0 6px; font-size: .9rem; color: var(--green-dark); }
.filter-panel label { display: block; font-size: .85rem; }
.filter-panel input[type="text"] { width: 100%; padding: 8px; border: 1px solid var(--line); border-radius: 8px; }
.result-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; flex-wrap: wrap; gap: 8px; }
.result-bar select { padding: 6px; border-radius: 8px; border: 1px solid var(--line); }

/* 詳細ページ */
.detail-head h1 { margin: 8px 0 2px; font-size: 1.5rem; }
.detail-head .loc { color: var(--muted); }
.photo-strip { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 12px; scroll-snap-type: x mandatory; }
.photo-strip img { height: 220px; border-radius: 10px; scroll-snap-align: start; cursor: pointer; }
.info-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 12px; overflow: hidden; }
.info-table th, .info-table td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; font-size: .92rem; }
.info-table th { width: 11em; background: #f0efe8; font-weight: 600; }
.fac-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.fac-grid span { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font-size: .82rem; text-align: center; }
.fac-grid .off { opacity: .35; text-decoration: line-through; }
.pano { width: 100%; height: 420px; border-radius: 12px; background: #222; }
.video-wrap { position: relative; padding-top: 56.25%; border-radius: 12px; overflow: hidden; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
#minimap, #fullmap { width: 100%; border-radius: 12px; }
#minimap { height: 320px; }
#fullmap { height: 72vh; }
.btn {
  display: inline-block; background: var(--green); color: #fff; text-decoration: none;
  padding: 8px 18px; border-radius: 8px; font-size: .9rem;
}
.btn.ghost { background: transparent; color: var(--green-dark); border: 1px solid var(--green); }

.site-footer { background: var(--green-dark); color: #fff; padding: 28px 20px; text-align: center; margin-top: 40px; }
.site-footer a { color: #fff; margin: 0 10px; }
.site-footer .copyright { font-size: .75rem; opacity: .95; }

/* lightbox (簡易) */
.lb-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none;
  align-items: center; justify-content: center; z-index: 1000; cursor: zoom-out;
}
.lb-overlay.open { display: flex; }
.lb-overlay img { max-width: 94vw; max-height: 92vh; border-radius: 8px; }

/* --- にいがた百名山 旧デザイン踏襲 (2026-06-13) --- */
body { background-image: url('/img/design/pattern_2.png'); background-size: 420px; background-attachment: fixed; }
main { background: rgba(255,255,255,.93); border-radius: 8px; padding-top: 8px; }
.site-header { background: #fff; color: var(--ink); border-bottom: 3px solid var(--green); }
.brand, .global-nav a { color: var(--ink) !important; }
.global-nav a:hover { color: var(--green-dark) !important; }
.brand img { height: 46px; width: auto; }
.hero-mt {
  margin: 0; border-radius: 10px; overflow: hidden; position: relative;
  background: center/cover no-repeat url('/img/design/mv_home.jpg');
  min-height: 340px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.55); padding: 30px 16px;
}
.hero-mt img.logo { width: min(420px, 80%); height: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.hero-mt p { margin: 10px 0 16px; font-weight: 600; }
h2.section {
  border: 0; padding: 6px 26px; margin: 40px auto 14px; display: table;
  background: var(--green-dark); color: #fff; border-radius: 999px; font-size: 1.1rem; letter-spacing: .1em;
}
.deco-strip { display: flex; justify-content: center; gap: 24px; margin: 28px 0 0; }
.deco-strip img { height: 110px; width: auto; opacity: .9; }
.area-grid a img.minimap { width: 100%; height: auto; margin-bottom: 6px; }
.site-footer { background: var(--green-dark); }