:root {
  --navy: #123b72;
  --blue: #1769c2;
  --blue-soft: #eaf3ff;
  --ink: #17243a;
  --muted: #5d6b7f;
  --line: #dbe3ee;
  --surface: #ffffff;
  --bg: #f5f7fa;
  --shadow: 0 8px 24px rgba(25, 47, 78, .08);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif; line-height: 1.55; }
button, input, select, a { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; }
.shell { width: min(1120px, calc(100% - 32px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; gap: 11px; align-items: center; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: white; background: linear-gradient(145deg, var(--blue), var(--navy)); font-weight: 900; box-shadow: 0 5px 14px rgba(18,59,114,.24); }
.brand strong { display: block; font-size: 18px; letter-spacing: .02em; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.sample-pill { color: #765414; background: #fff5d9; border: 1px solid #f2d98d; border-radius: 999px; padding: 5px 10px; font-size: 12px; font-weight: 800; }

.hero { background: linear-gradient(135deg, #edf5ff 0%, #fff 58%, #eef3f9 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding: 26px 0 25px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-weight: 800; font-size: 13px; letter-spacing: .08em; }
h1 { margin: 0; font-size: clamp(28px, 7vw, 44px); line-height: 1.18; letter-spacing: -.025em; }
.lead { margin: 12px 0 0; color: var(--muted); font-size: clamp(16px, 3.7vw, 20px); }
.demo-notice { margin-top: 22px; max-width: 740px; padding: 12px 14px; border: 1px solid #f0d691; background: #fffae9; color: #624d18; border-radius: 12px; font-size: 13px; font-weight: 700; }

.main-content { padding: 18px 0 56px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.filter-group + .filter-group { margin-top: 12px; }
.filter-label { display: block; margin-bottom: 8px; color: #34445c; font-size: 14px; font-weight: 800; }
.series-group { max-width: 520px; margin-left: 16px; padding-left: 14px; border-left: 2px solid #d9e6f5; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-tcg { flex-wrap: wrap; overflow-x: visible; row-gap: 8px; }
.chip { white-space: nowrap; border: 1px solid var(--line); background: white; color: #40506a; border-radius: 999px; padding: 8px 15px; font-size: 14px; font-weight: 700; }
.chip[aria-pressed="true"] { color: white; background: var(--navy); border-color: var(--navy); box-shadow: 0 3px 10px rgba(18,59,114,.18); }
.chip-status-reservation[aria-pressed="true"] { background: #135ead; border-color: #135ead; }
.chip-status-lottery[aria-pressed="true"] { background: #7a3ab0; border-color: #7a3ab0; }
.chip-status-sale[aria-pressed="true"] { background: #0b7452; border-color: #0b7452; }
.chip-status-restock[aria-pressed="true"] { background: #af5616; border-color: #af5616; }
.chip-status-reservation:not([aria-pressed="true"]) { color: #135ead; border-color: #b8d3f1; }
.chip-status-lottery:not([aria-pressed="true"]) { color: #7a3ab0; border-color: #d9c2eb; }
.chip-status-sale:not([aria-pressed="true"]) { color: #0b7452; border-color: #b5dccd; }
.chip-status-restock:not([aria-pressed="true"]) { color: #af5616; border-color: #f0c9a8; }
.search-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.field-keyword { grid-column: 1/-1; }
.field label, .field-label { display: block; margin: 0 0 6px; color: #40506a; font-size: 14px; font-weight: 800; }
.control { width: 100%; min-height: 44px; border: 1px solid #cbd6e4; border-radius: 10px; background: white; color: var(--ink); padding: 9px 12px; outline: none; }
.control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(23,105,194,.12); }
.chooser-trigger { position: relative; padding-right: 40px; text-align: left; }
.select-wrap { position: relative; width: 100%; }
.select-wrap .control { appearance: none; padding-right: 40px; }
.chooser-trigger::after, .select-wrap::after { content: ""; position: absolute; top: 50%; right: 15px; width: 9px; height: 9px; border-right: 2px solid #526078; border-bottom: 2px solid #526078; transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.affiliate-disclosure { margin: 0 0 6px; color: #526078; font-size: 13px; }
.chooser-dialog { width: min(560px, calc(100% - 24px)); max-height: 78dvh; padding: 0; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); background: white; box-shadow: 0 18px 60px rgba(16, 34, 59, .25); }
.chooser-dialog::backdrop { background: rgba(19, 35, 57, .42); }
.chooser-head { position: sticky; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; background: white; border-bottom: 1px solid var(--line); }
.chooser-head h2 { margin: 0; font-size: 17px; }
.chooser-close { border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--navy); padding: 7px 11px; font-size: 13px; font-weight: 700; }
.chooser-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; padding: 14px; overflow-y: auto; max-height: calc(78dvh - 62px); }
.chooser-footer { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); background: white; }
.chooser-footer[hidden] { display: none; }
.chooser-clear { border: 0; background: transparent; color: var(--muted); padding: 8px 4px; font-size: 13px; }
.chooser-apply { min-height: 42px; border: 1px solid var(--navy); border-radius: 9px; background: var(--navy); color: white; padding: 8px 18px; font-weight: 800; }
.chooser-options.region-choice-groups { display: block; max-height: calc(78dvh - 124px); }
.region-all { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.region-all .chooser-option { width: 100%; font-weight: 800; }
.region-group + .region-group { margin-top: 14px; }
.region-group h3 { margin: 0 0 7px; color: #34445c; font-size: 13px; }
.region-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.chooser-option { min-height: 42px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 8px 10px; text-align: left; font-size: 14px; }
.chooser-option[aria-pressed="true"] { border-color: var(--blue); background: var(--blue-soft); color: var(--navy); font-weight: 800; }
.choice-check { display: inline-grid; width: 18px; height: 18px; place-items: center; margin-right: 6px; border: 1px solid #aebbd0; border-radius: 4px; vertical-align: -3px; color: white; background: white; font-size: 12px; }
.chooser-option[aria-pressed="true"] .choice-check { border-color: var(--blue); background: var(--blue); }
.shop-all { grid-column: 1 / -1; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.shop-all .chooser-option { width: 100%; }
.status-scheduled { color: #596579; background: #edf0f4; }
.source-link { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.filter-footer { display: flex; justify-content: flex-end; margin-top: 12px; }
.reset-btn { border: 0; background: transparent; color: var(--blue); padding: 4px 0; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

.results-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 28px 0 14px; }
.results-head h2 { margin: 0; font-size: 20px; }
.count { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.site-update { margin: 0; align-self: end; color: #647187; font-size: 12px; }
.legend { color: var(--muted); font-size: 12px; }
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.product-card { display: grid; grid-template-columns: 160px minmax(0,1fr); min-height: 254px; overflow: hidden; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.product-image-wrap { position: relative; min-height: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; background: #eef3f9; }
.product-image { width: 100%; height: 100%; box-sizing: border-box; padding: 12px; object-fit: contain; display: block; }
.product-image.template-image { object-fit: contain; padding: 10px; }
.corner-badges { position: absolute; inset: 10px auto auto 10px; display: flex; align-items: flex-start; gap: 6px; flex-wrap: wrap; }
.flag { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 8px; border-radius: 7px; color: white; background: #db3f4c; font-size: 11px; font-weight: 900; box-shadow: 0 2px 7px rgba(0,0,0,.13); }
.flag.ending { background: #6e3fb1; }
.card-body { display: flex; flex-direction: column; padding: 17px; min-width: 0; }
.topline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.sample-tag { border: 1px solid #d1dae6; color: #5c687a; background: #f5f7fa; border-radius: 6px; padding: 2px 7px; font-size: 10px; font-weight: 900; }
.status { display: inline-flex; align-items: center; border-radius: 6px; padding: 4px 8px; font-size: 12px; font-weight: 900; }
.status-reservation { color: #135ead; background: #e7f2ff; }
.status-lottery { color: #7a3ab0; background: #f3e9fc; }
.status-sale { color: #0b7452; background: #e4f6ef; }
.status-restock { color: #af5616; background: #fff0e3; }
.status-closed { color: #596579; background: #edf0f4; }
.product-title { margin: 11px 0 6px; font-size: 17px; line-height: 1.4; }
.shop { margin: 0; color: var(--muted); font-size: 13px; }
.price { margin: 9px 0 5px; color: var(--navy); font-size: 20px; font-weight: 900; }
.info-line { display: flex; gap: 7px; align-items: baseline; margin: 2px 0; font-size: 12px; color: #46556c; }
.info-line.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; color: #1c355a; font-size: 14px; font-weight: 800; }
.deadline-main { white-space: nowrap; }
.deadline-date { white-space: nowrap; }
.countdown-pill { display: inline-flex; align-items: center; white-space: nowrap; border: 1px solid #cbd4df; border-radius: 999px; padding: 2px 8px; color: #4c5a6d; background: #f2f5f8; font-size: .88em; font-weight: 800; }
.countdown-pill-urgent { border-color: #b8c7d8; color: #294c78; background: #eaf1f8; }
.info-label { flex: 0 0 auto; color: var(--muted); }
.actions { display: grid; grid-template-columns: 1fr 1.25fr; gap: 8px; margin-top: auto; padding-top: 13px; }
.btn { min-height: 42px; display: inline-flex; justify-content: center; align-items: center; border-radius: 9px; padding: 8px 11px; text-decoration: none; border: 1px solid var(--navy); font-size: 13px; font-weight: 900; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-outline { color: var(--navy); background: white; }
.btn-primary { color: white; background: var(--navy); box-shadow: 0 4px 12px rgba(18,59,114,.18); }
.more-wrap { text-align: center; margin-top: 24px; }
.more-btn { min-width: 210px; border: 1px solid #b9c7d8; border-radius: 10px; background: white; color: var(--navy); padding: 11px 20px; font-weight: 800; }
.empty { grid-column: 1/-1; padding: 42px 18px; background: white; border: 1px dashed #bbc7d5; border-radius: var(--radius); text-align: center; color: var(--muted); }

.detail-shell { padding: 28px 0 60px; }
.back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--blue); font-weight: 800; text-decoration: none; margin-bottom: 17px; }
.detail-card { display: grid; grid-template-columns: minmax(230px, .65fr) minmax(0, 1.5fr); overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.detail-image { display: flex; justify-content: center; align-items: center; min-height: 420px; padding: 24px; background: #eef3f9; }
.detail-image img { width: min(100%, 300px); height: auto; max-height: 520px; object-fit: contain; display: block; }
.detail-image img.template-image { object-fit: contain; padding: 14px; }
.detail-content { padding: 30px; }
.detail-content h1 { margin: 14px 0 8px; font-size: clamp(24px, 4vw, 34px); }
.detail-shop { color: var(--muted); margin: 0 0 12px; }
.detail-price { color: var(--navy); font-size: 28px; font-weight: 900; margin: 14px 0 20px; }
.spec-list { margin: 0; border-top: 1px solid var(--line); }
.spec-row { display: grid; grid-template-columns: 140px 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.spec-row dt { color: var(--muted); font-size: 13px; font-weight: 700; }
.spec-row dd { margin: 0; font-size: 14px; font-weight: 700; }
.detail-note { margin: 18px 0; padding: 12px 14px; background: #fffae9; color: #624d18; border-radius: 10px; font-size: 13px; }
.detail-cta { width: 100%; min-height: 52px; font-size: 16px; }
.disabled-cta { color: #6b7585; background: #e8ecf1; border-color: #cbd2dc; cursor: not-allowed; }
.site-footer { padding: 30px 0; background: #eaf0f7; border-top: 1px solid var(--line); color: #526078; font-size: 12px; }
.site-footer p { margin: 4px 0; }
.back-to-top { position: fixed; z-index: 15; right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; width: 48px; height: 48px; place-items: center; border: none; border-radius: 50%; background: #7A8390; color: #fff; box-shadow: 0 5px 10px rgba(25,47,78,.12); font-size: 25px; font-weight: 800; line-height: 1; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity .18s ease, transform .18s ease, visibility .18s ease, background-color .15s ease; cursor: pointer; }
.back-to-top:hover { background: #8A939F; }
.back-to-top.is-visible { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.back-to-top:focus-visible { outline: 3px solid rgba(23,105,194,.36); outline-offset: 3px; }

@media (max-width: 900px) {
  .product-card { grid-template-columns: 130px minmax(0,1fr); }
}
@media (max-width: 720px) {
  .shell { width: min(100% - 24px, 1120px); }
  .header-inner { min-height: 64px; }
  .brand small { display: none; }
  .hero-inner { padding: 20px 0 18px; }
  .main-content { padding-top: 12px; }
  .filter-panel { padding: 14px; border-radius: 14px; }
  .search-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .series-group { max-width: none; margin-left: 10px; padding-left: 10px; }
  .product-grid { grid-template-columns: 1fr; gap: 13px; }
  .product-card { grid-template-columns: 105px minmax(0,1fr); min-height: 272px; border-radius: 14px; }
  .card-body { padding: 14px; }
  .product-title { font-size: 15px; }
  .actions { grid-template-columns: 1fr; }
  .detail-card { grid-template-columns: 1fr; }
  .detail-image { min-height: 260px; max-height: none; padding: 16px; }
  .detail-image img { width: min(100%, calc(100vw - 56px)); max-height: 440px; }
  .detail-content { padding: 21px; }
}
@media (max-width: 420px) {
  .search-grid { grid-template-columns: 1fr; }
  .chooser-options { grid-template-columns: 1fr; }
  .region-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .results-head { align-items: start; }
  .legend { display: none; }
  .product-card { grid-template-columns: 92px minmax(0,1fr); }
  .price { font-size: 18px; }
  .spec-row { grid-template-columns: 105px 1fr; }
  .back-to-top { right: calc(14px + env(safe-area-inset-right, 0px)); bottom: calc(14px + env(safe-area-inset-bottom, 0px)); width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
