/* 公開サイト。ガチャ筐体の「透明な窓の中に台紙」「100円玉」をモチーフにしている */
:root {
  --bg: #eef3f5;        /* 筐体のプラスチック */
  --window: #ffffff;    /* 台紙が入っている窓 */
  --ink: #18213d;
  --sub: #5b6478;
  --line: #cfd8dd;
  --red: #e4322b;       /* 看板の赤 */
  --yellow: #f4b400;    /* カプセルの黄 */
  --coin: #b9c0c8;      /* 100円玉 */
  --coin-edge: #8d959f;
  --display: "Dela Gothic One", "Hiragino Sans", sans-serif;
  --body: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  color-scheme: light;
}
/* 明るい1テーマだけにする（台紙や商品写真は白地が多く、明るい背景のほうが映えるため） */

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: 0.01em; }

main { max-width: 1240px; margin: 0 auto; padding: 0 16px 64px; }

/* ---- ヘッダー ---- */
.site-head { max-width: 1240px; margin: 0 auto; padding: 12px 16px 0; }
.head-row { display: flex; align-items: center; gap: 14px; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; font: inherit; font-size: 0.95rem; color: var(--ink);
  background: var(--window); border: 0; border-radius: 999px; padding: 9px 16px;
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.saved-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.95rem; text-decoration: none; white-space: nowrap; }
.saved-count { background: var(--red); color: #fff; border-radius: 999px; font-size: 0.75rem; padding: 0 7px; min-width: 20px; text-align: center; }
.heart, .save::before {
  width: 18px; height: 18px; display: inline-block; flex: none;
  background: var(--red);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.2C.3 8.5 2.2 4.5 6 4.5c2.2 0 3.5 1.2 6 3.6 2.5-2.4 3.8-3.6 6-3.6 3.8 0 5.7 4 4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-7.5-4.6-10-9.2C.3 8.5 2.2 4.5 6 4.5c2.2 0 3.5 1.2 6 3.6 2.5-2.4 3.8-3.6 6-3.6 3.8 0 5.7 4 4 7.3C19.5 16.4 12 21 12 21z'/%3E%3C/svg%3E") center / contain no-repeat;
}
.head-nav { display: flex; gap: 20px; overflow-x: auto; padding: 12px 0 10px; font-weight: 700; font-size: 0.92rem; scrollbar-width: none; }
.head-nav a { text-decoration: none; white-space: nowrap; }
.head-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 640px) {
  .head-row { flex-wrap: wrap; }
  .search { order: 3; flex-basis: 100%; }
  .saved-link { margin-left: auto; }
}
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; text-decoration: none; }
.capsule {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: linear-gradient(to bottom, var(--window) 0 50%, var(--red) 50% 100%);
  border: 2px solid var(--ink);
}

/* ---- トップ ---- */
.hero { padding: 20px 0 4px; }
.hero h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); max-width: 28ch; }
.lede { max-width: 60ch; color: var(--sub); font-size: 1rem; margin: 8px 0 18px; }
/* 筐体が並んでいる感じ：台紙を横一列に */
.strip {
  display: flex; gap: 12px; overflow: hidden;
  margin: 0 -16px; padding: 0 16px;
  mask-image: linear-gradient(to right, #000 85%, transparent);
}
.strip img {
  width: 180px; height: 180px; flex: none; object-fit: contain;
  background: var(--window); border-radius: 14px; padding: 6px;
  box-shadow: inset 0 0 0 1px var(--line);
}

/* ---- セクション ---- */
.block { margin-top: 56px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.block-head h2 { font-size: 1.6rem; }
.block-head a { font-weight: 700; }
.sub { font-family: var(--body); font-weight: 500; font-size: 0.6em; color: var(--sub); margin-left: 6px; }
.page-title { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 24px; }
.count, .crumb { color: var(--sub); margin: 6px 0 18px; }
.crumb { margin: 24px 0 0; font-weight: 700; }
.empty { color: var(--sub); padding: 32px 0; }

/* ---- 商品グリッド ---- */
.grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 28px 18px;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
}
@media (min-width: 900px) { .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); } }
.card { position: relative; }
.save {
  border: 0; cursor: pointer; font: inherit; color: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.card .save {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 3px rgba(24, 33, 61, 0.25);
}
.save::before { content: ""; background: var(--coin-edge); }
.save[aria-pressed="true"]::before { background: var(--red); }
.save-lg { background: var(--window); border-radius: 999px; padding: 8px 18px 8px 14px; font-weight: 700; box-shadow: inset 0 0 0 1.5px var(--line); }
.save-lg[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--red); }
.card a { display: flex; flex-direction: column; gap: 4px; text-decoration: none; }
/* 筐体の窓：白い枠の中に台紙 */
.window {
  display: block; aspect-ratio: 1; background: var(--window);
  border-radius: 16px; padding: 8px;
  box-shadow: inset 0 0 0 1px var(--line), inset 0 10px 18px -14px rgba(24, 33, 61, 0.35);
  margin-bottom: 6px;
}
.window img { width: 100%; height: 100%; object-fit: contain; border-radius: 8px; }
.card a:hover .window { box-shadow: inset 0 0 0 2px var(--ink); }
.card-name { font-weight: 700; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-ja { font-size: 0.8rem; color: var(--sub); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 2px; font-size: 0.85rem; }
.when { color: var(--sub); }

/* ---- 100円玉 ---- */
.price { display: inline-flex; align-items: center; gap: 6px; }
.price b { font-weight: 700; }
.coins { display: inline-flex; }
.coins i {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, var(--coin) 0 52%, var(--coin-edge) 53% 62%, var(--coin) 63%);
  box-shadow: 0 0 0 1px var(--coin-edge);
  margin-right: -3px;
}
.price-lg .coins i { width: 22px; height: 22px; margin-right: -5px; }
.price-lg b { font-size: 1.5rem; margin-left: 6px; }

/* ---- 検索のタブ ---- */
.tabs { display: flex; gap: 6px; margin: 18px 0 0; overflow-x: auto; }
.tab {
  padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; white-space: nowrap;
  background: var(--window); box-shadow: inset 0 0 0 1.5px var(--line);
}
.tab small { color: var(--sub); font-weight: 500; margin-left: 2px; }
.tab[aria-current="page"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.tab[aria-current="page"] small { color: var(--coin); }

/* ---- タグ ---- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 5px 13px; border-radius: 999px; text-decoration: none; font-weight: 500; font-size: 0.92rem;
  background: var(--window); box-shadow: inset 0 0 0 1px var(--line);
}
.chip:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.chip small { color: var(--sub); font-size: 0.78em; }
.tag-group { margin-bottom: 18px; }
.tag-group h2, .tag-group h3 { font-family: var(--body); font-weight: 700; font-size: 1rem; color: var(--sub); margin-top: 22px; }
.tag-desc { max-width: 62ch; font-size: 1.08rem; margin: 14px 0 8px; }

/* ---- 商品ページ ---- */
.item { display: grid; gap: 32px; margin-top: 28px; }
@media (min-width: 880px) { .item { grid-template-columns: 1.15fr 1fr; align-items: start; } }
.window-lg { border-radius: 22px; padding: 12px; }
.variants { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.variants a { display: block; aspect-ratio: 1; background: var(--window); border-radius: 12px; padding: 4px; box-shadow: inset 0 0 0 1px var(--line); }
.variants img { width: 100%; height: 100%; object-fit: contain; }
.variants span { display: block; font-size: 0.8rem; line-height: 1.35; margin-top: 4px; text-align: center; }
.item-info h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); }
.facts { margin: 22px 0; }
.facts div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.facts div:last-child { border-bottom: 1px solid var(--line); }
.facts dt { color: var(--sub); font-weight: 500; }
.facts dd { margin: 0; }
.note { color: var(--sub); font-size: 0.88rem; }
.ja-box { background: var(--window); border-radius: 16px; padding: 14px 18px; margin: 22px 0; box-shadow: inset 0 0 0 2px var(--yellow); }
.ja-label { margin: 0; font-weight: 700; font-size: 0.85rem; color: var(--sub); }
.ja-name { margin: 4px 0; font-size: 1.35rem; font-weight: 700; line-height: 1.45; }
.ja-box .note { margin: 0; }
.outbound { font-weight: 700; }

/* ---- ガイド ---- */
.guide { max-width: 68ch; margin-top: 28px; }
.guide h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); }
.guide h2 { font-size: 1.45rem; margin-top: 40px; }
.guide p, .guide li { font-size: 1.05rem; }
.guide ol.steps { padding-left: 1.4em; }
.guide ol.steps li { margin-bottom: 10px; padding-left: 4px; }
.guide ol.steps li::marker { font-family: var(--display); color: var(--red); }

/* ---- その他 ---- */
.button {
  display: inline-block; background: var(--ink); color: var(--bg); text-decoration: none; font-weight: 700;
  padding: 10px 20px; border-radius: 999px;
}
.button:hover { background: var(--red); color: #fff; }
.kind-prize {
  font-weight: 700; font-size: 0.78rem; color: var(--ink);
  padding: 1px 9px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--red);
}
.guides { display: grid; gap: 16px; }
@media (min-width: 760px) { .guides { grid-template-columns: 1fr 1fr; } }
.guide-teaser { background: var(--window); border-radius: 22px; padding: 26px 24px; box-shadow: inset 0 0 0 1px var(--line); }
.guide-teaser h2 { font-size: 1.6rem; }
.guide-teaser p { max-width: 56ch; color: var(--sub); }
.pager, .months { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 36px; font-weight: 700; }
.site-foot { max-width: 1240px; margin: 0 auto; padding: 24px 16px 40px; color: var(--sub); font-size: 0.85rem; border-top: 1px solid var(--line); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }

/* ---- 店舗マップ ---- */
.map-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 10px; }
.map-tools .tabs { margin: 0; }
button.tab { border: 0; font: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.map-tools .button { border: 0; font: inherit; cursor: pointer; }
.map { height: min(62vh, 560px); border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); z-index: 0; }
/* ピン: カプセル（上半分が透明、下半分が色）の形 */
.pin {
  display: inline-block; width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid #fff; box-shadow: 0 1px 3px rgba(24, 33, 61, 0.45);
}
.pin-gacha { background: linear-gradient(to bottom, #fff 0 45%, var(--red) 45%); }
.pin-corner { background: linear-gradient(to bottom, #fff 0 45%, var(--yellow) 45%); }
.pin-arcade { background: linear-gradient(to bottom, #fff 0 45%, var(--ink) 45%); }
.list-head { font-family: var(--body); font-weight: 700; font-size: 1rem; color: var(--sub); margin: 22px 0 10px; }
.store-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.store-list > li { background: var(--window); border-radius: 14px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--line); }
.store p { margin: 0 0 3px; }
.store-chain { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 0.85rem; }
.store-dist { margin-left: auto; color: var(--sub); font-weight: 500; }
.store-name { font-weight: 700; line-height: 1.4; }
.store-closing { color: var(--red); font-weight: 700; font-size: 0.85rem; }
.store-opening { color: #1f8a4c; font-weight: 700; font-size: 0.85rem; }
.store-addr, .store-hours { color: var(--sub); font-size: 0.85rem; line-height: 1.45; }
.store-links { font-size: 0.85rem; font-weight: 700; margin-top: 6px !important; }
.leaflet-popup-content { font-family: var(--body); margin: 12px 14px; min-width: 220px; }
/* まとめアイコン（markercluster の既定の緑・黄色を上書き。既定CSSより後に効くよう詳細度を上げる） */
.map .marker-cluster { background-color: rgba(228, 50, 43, 0.25); }
.map .marker-cluster div { background-color: var(--red); color: #fff; font-family: var(--body); font-weight: 700; }

/* ---- パンくず・エリアページ ---- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 22px 0 -30px; font-size: 0.88rem; color: var(--sub); }
.crumbs a { color: var(--sub); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs .sep { opacity: 0.6; }
.crumbs + .block, .crumbs + article, .crumbs + section { margin-top: 44px; }
.map-sm { height: min(48vh, 420px); margin: 12px 0 8px; }
details.city { border-bottom: 1px solid var(--line); padding: 10px 0; }
details.city summary { cursor: pointer; font-weight: 700; }
details.city summary small { color: var(--sub); font-weight: 500; margin-left: 4px; }
details.city .store-list { margin-top: 10px; }
.button-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.store-chain a { color: inherit; }
