:root {
  --ink: #2b2b2b; --muted: #6b6b6b; --line: #e8e2d9;
  --acc: #2f7d5b; --acc-dark: #23604a; --acc-soft: #eaf5ee; --acc-line: #9fcdb3;
  --cream: #fffdf9; --shochu: #b07d1c;
  --radius: 16px; --shadow: 0 8px 28px rgba(60,40,20,.14);
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: #dfe8f5; color: var(--ink); font-family: inherit; }
#map { position: fixed; inset: 0; z-index: 1; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
.hidden { display: none !important; }

/* ---------- 左上カード ---------- */
.panel {
  position: fixed; top: 12px; left: 12px; z-index: 1000; width: 340px;
  background: var(--cream); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px 14px;
}
.panel-head { display: flex; align-items: center; gap: 10px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-logo { width: 40px; height: 40px; }
.brand-name { font-size: 26px; font-weight: 900; letter-spacing: .04em; }
.brand-sep { width: 2px; height: 32px; background: var(--acc); }
.brand-edition { font-size: 26px; font-weight: 900; color: var(--acc); }
.tagline { margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--acc); }
.panel-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.panel-meta a { color: var(--muted); font-weight: 700; text-underline-offset: 3px; }
.editions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.ed { text-align: center; padding: 8px 0; border: 1.5px solid var(--line); border-radius: 10px; font-weight: 700; font-size: 14px; text-decoration: none; background: #fff; }
.ed.active { background: var(--acc); color: #fff; border-color: var(--acc); }
.search { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 12px; background: #fff; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; font-size: 15px; background: transparent; color: var(--ink); }
.kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.kind { padding: 9px 0; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--muted); font-weight: 700; }
.kind.active { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc-dark); }
.toggle { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.toggle input { display: none; }
.switch { width: 40px; height: 22px; border-radius: 999px; background: #d8d3cb; position: relative; transition: .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.toggle input:checked + .switch { background: var(--acc); }
.toggle input:checked + .switch::after { left: 21px; }
.random { width: 100%; margin-top: 12px; padding: 12px; border-radius: 12px; border: 1.5px dashed var(--acc-line); background: var(--acc-soft); color: var(--acc-dark); font-weight: 900; font-size: 16px; }
.panel-collapse { display: none; }

/* ---------- マーカー ---------- */
.cluster { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--acc); color: #fff; font-weight: 900; border: 4px solid rgba(255,255,255,.9); box-shadow: 0 3px 10px rgba(0,0,0,.25); font-size: 15px; }
.cluster.md { font-size: 17px; } .cluster.lg { font-size: 19px; }
.barrel { filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); cursor: pointer; transition: transform .15s; }
.barrel:hover { transform: scale(1.2); }
.leaflet-marker-icon.no-bg { background: none; border: none; }
.leaflet-control-zoom a { width: 38px; height: 38px; line-height: 38px; font-size: 22px; }

/* ---------- 詳細 ---------- */
.sheet {
  position: fixed; z-index: 1100; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius);
  top: 12px; right: 12px; bottom: 12px; width: 440px; display: flex; flex-direction: column; overflow: hidden;
}
.sheet-bar { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 12px 14px 0; }
.chip { padding: 7px 14px; border-radius: 999px; border: 1.5px solid var(--acc-line); background: var(--acc-soft); color: var(--acc-dark); font-weight: 700; font-size: 13px; text-decoration: none; }
.close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #f1ece5; font-size: 22px; line-height: 1; color: var(--muted); }
.sheet-body { overflow-y: auto; padding: 8px 16px 24px; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row h2 { font-size: 22px; font-weight: 900; }
.address { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.tag { font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #f1ece5; color: #4b4b4b; }
.tag.tour { background: #fff; border: 1.5px solid var(--acc); color: var(--acc-dark); }
.tag.warn { background: #fdecec; color: #b91c1c; }
.photo { margin: 0 -16px; aspect-ratio: 16/10; background: #f1ece5; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo .none { display: flex; height: 100%; align-items: center; justify-content: center; color: #b7aea2; font-size: 13px; }
.hotel-cta { display: flex; justify-content: space-between; margin: 16px 0 6px; padding: 14px 16px; border-radius: 12px; background: #eef5fb; border: 1.5px solid #cfe0ee; color: #2c5c82; font-weight: 700; text-decoration: none; }
.hotels { margin-bottom: 8px; }
.hotel { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--line); text-decoration: none; }
.hotel img { width: 84px; height: 62px; object-fit: cover; border-radius: 8px; background: #f1ece5; flex: none; }
.hotel b { display: block; font-size: 14px; }
.hotel .d { font-size: 12px; color: #2f7a6a; font-weight: 700; }
.hotel .p { font-size: 13px; }
.sec { margin: 18px 0 6px; font-size: 20px; font-weight: 900; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.brand-card { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.brand-thumb { width: 96px; height: 96px; border-radius: 10px; background: #f6f2ec; border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 40px; overflow: hidden; }
.brand-thumb img { width: 100%; height: 100%; object-fit: cover; }
.brand-title { font-size: 20px; font-weight: 900; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.brand-type { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; background: var(--acc-soft); color: var(--acc-dark); }
.brand-desc { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.6; }
.buy { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.buy a { text-align: center; padding: 12px 4px; border-radius: 8px; color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; }
.buy .r { background: #bf0000; } .buy .a { background: #1e2a3a; } .buy .f { background: #3d6b52; }
.more { font-size: 13px; color: var(--muted); padding: 10px 0; }
.pr { margin-top: 14px; font-size: 11px; color: #9a948b; }
.src { font-size: 11px; color: #9a948b; margin-top: 4px; }

/* ---------- about ---------- */
.about { position: fixed; z-index: 1200; top: 50%; left: 50%; transform: translate(-50%,-50%); width: min(560px, 92vw); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; line-height: 1.8; font-size: 14px; }
.about .close { position: absolute; top: 12px; right: 12px; }
.about h2 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.about a { color: var(--acc-dark); }

/* ---------- モバイル ---------- */
@media (max-width: 720px) {
  .panel { width: calc(100vw - 24px); padding: 14px 14px 12px; }
  .panel.collapsed > :not(.panel-head):not(.panel-collapse) { display: none; }
  .panel-collapse { display: block; position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: #f1ece5; color: var(--muted); font-size: 18px; }
  .panel.collapsed .panel-collapse { transform: rotate(180deg); }
  .brand-name, .brand-edition { font-size: 22px; }
  .sheet { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh; border-radius: 20px 20px 0 0; }
  .sheet-bar { padding-top: 10px; }
  .sheet-bar::before { content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 40px; height: 4px; border-radius: 2px; background: #d8d3cb; }
  .photo { margin: 0 -16px; }
}

.tour-info { font-size: 12px; color: var(--acc-dark); background: var(--acc-soft); border-radius: 8px; padding: 8px 10px; margin-bottom: 10px; line-height: 1.6; }

.panel-meta .req { color: var(--acc-dark); text-decoration: none; margin-right: 10px; }

.editions.ed5 { grid-template-columns: repeat(5, 1fr); gap: 4px; } .editions.ed5 .ed { font-size: 12.5px; padding: 8px 0; }

.panel-meta.pm2 { font-size: 13px; gap: 8px; } .panel-meta.pm2 a { white-space: nowrap; } .panel-meta.pm2 .req { margin-right: 8px; }
