
:root {
  --c-night: #0E1838;
  --c-night-2: #16245A;
  --c-gold: #F2C14E;
  --c-gold-ink: #7A5A00;
  --c-primary: #2A4BC0;
  --c-accent: #D0223A;
  --c-ink: #1A2233;
  --c-ink-2: #4A5468;
  --c-ink-3: #5C6577;
  --c-line: #E2E7EF;
  --c-line-strong: #9AA3B5;
  --c-band: #F7F2E6;
  --c-marker: #F8DC8F;
  --c-g-illumi: #1F2F6B;
  --c-g-xmas: #A3263A;
  --c-g-night: #1E5D6C;
  --c-bg: #F3F5FA;
  --c-card: #FFFFFF;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(10, 20, 50, .08), 0 2px 10px rgba(10, 20, 50, .08);
  --glow-gold: 242, 193, 78;
  --glow-pink: 255, 170, 190;
  --glow-white: 255, 255, 255;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #070D26;
  color: var(--c-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body::before, body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
}
body::before {
  background:
    radial-gradient(40vw 32vw at 10% 30%, rgba(var(--glow-gold), .20), transparent 70%),
    radial-gradient(36vw 30vw at 92% 64%, rgba(var(--glow-pink), .14), transparent 70%),
    radial-gradient(110vw 30vh at 50% 110%, rgba(var(--glow-gold), .32), transparent 70%),
    linear-gradient(180deg, #08102C 0%, #0E1838 60%, #191C40 100%);
}
body::after {
  background:
    radial-gradient(circle 40px at 14% 44%, rgba(var(--glow-gold), .32), transparent 70%),
    radial-gradient(circle 22px at 22% 62%, rgba(var(--glow-white), .16), transparent 70%),
    radial-gradient(circle 54px at 8% 80%, rgba(var(--glow-gold), .23), transparent 70%),
    radial-gradient(circle 18px at 25% 24%, rgba(var(--glow-gold), .32), transparent 70%),
    radial-gradient(circle 46px at 86% 36%, rgba(var(--glow-gold), .26), transparent 70%),
    radial-gradient(circle 20px at 78% 54%, rgba(var(--glow-pink), .26), transparent 70%),
    radial-gradient(circle 30px at 92% 86%, rgba(var(--glow-gold), .29), transparent 70%),
    radial-gradient(circle 16px at 74% 18%, rgba(var(--glow-white), .16), transparent 70%),
    radial-gradient(circle 1px at 30px 40px, rgba(var(--glow-white), .35), transparent),
    radial-gradient(circle 1px at 150px 120px, rgba(var(--glow-white), .25), transparent);
  background-size: auto, auto, auto, auto, auto, auto, auto, auto, 260px 240px, 260px 240px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 75%, transparent 100%);
}

a { color: inherit; }
:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }

#app-wrapper {
  max-width: 480px;
  margin: 0 auto;
  background: var(--c-bg);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  box-shadow: 0 0 32px rgba(0, 0, 0, .35);
}
#app-wrapper > main { flex: 1 0 auto; display: flex; flex-direction: column; }
#app-wrapper > main > .section-catalog { flex: 1 0 auto; }
#app-wrapper > .footer { flex-shrink: 0; }
#app-wrapper.is-loading > .footer { display: none; }
#app-wrapper.is-loading > main > .loading-container { flex: 1 0 auto; align-items: flex-start; padding-top: 56px; }

.container { padding: 0 16px; }

.header { background: #fff; border-bottom: 1px solid var(--c-line); padding: 2px 0; }
.header-logo { display: flex; justify-content: center; align-items: center; min-height: 44px; }
.header-logo img { height: 24px; display: block; }

.hero { background: var(--c-night); }
.hero-image { width: 100%; height: auto; aspect-ratio: 1200 / 630; display: block; }
.hero-lead { padding: 9px 16px 10px; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; color: #fff; }

.section-catalog {
  padding: 12px 0 32px;
  background-image: radial-gradient(var(--c-line) 1.2px, transparent 1.2px); background-size: 16px 16px;
}

.sticky-filter {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-bg);
  padding: 6px 0 8px;
}
.sticky-filter.is-stuck { box-shadow: 0 4px 10px -6px rgba(10, 20, 50, .3); }

.chip-row {
  display: flex; gap: 8px;
  overflow-x: auto; padding: 0 16px;
  scrollbar-width: none;
}
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  font-family: inherit;
  font-size: 14px; font-weight: 700; line-height: 1;
  min-height: 44px; padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--c-line);
  background: #fff; color: var(--c-ink-2);
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.chip .n { font-size: 12px; font-weight: 500; color: var(--c-ink-3); margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--c-night); border-color: var(--c-night); color: var(--c-gold); }
.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, .75); }

.result-bar { display: flex; align-items: center; justify-content: space-between; margin: 10px 0 6px; }
.sort { display: flex; flex-shrink: 0; gap: 2px; }
.sort button {
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
  border: 0; background: transparent; color: var(--c-ink-3);
  padding: 11px 12px; border-radius: 6px; cursor: pointer;
}
.sort button[aria-pressed="true"] { background: #fff; color: var(--c-ink); box-shadow: 0 1px 2px rgba(10, 20, 50, .15); }

.result-status { font-size: 12px; color: var(--c-ink-3); }
.result-status b { color: var(--c-ink); font-size: 14px; }

.genre-row {
  display: flex; gap: 8px; margin: 0 -16px 14px; padding: 0 16px;
  overflow-x: auto; scrollbar-width: none;
}
.genre-row::-webkit-scrollbar { display: none; }
.genre-row:empty { display: none; }
.gchip {
  flex-shrink: 0;
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1;
  min-height: 40px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--c-line-strong); background: #fff; color: var(--c-ink-2);
}
.gchip[aria-pressed="true"] { background: var(--c-ink); border-color: var(--c-ink); color: #fff; }

.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; padding: 0 3px 3px 0; }

@keyframes gridFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.product-grid.is-fade { animation: gridFade .25s ease both; }

.card {
  position: relative;
  background: var(--c-card);
  border: 1px solid var(--c-ink);
  box-shadow: 3px 3px 0 var(--c-ink);
  text-decoration: none;
  display: flex; flex-direction: column;
  transition: transform .15s ease, box-shadow .15s ease;
}
.card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--c-ink); }
.card:active { transform: none; box-shadow: 1px 1px 0 var(--c-ink); }

.c-ribbon {
  position: absolute; top: -1px; right: -1px; z-index: 3;
  padding: 3px 8px 3px 14px;
  background: var(--g, var(--c-night)); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1.5; letter-spacing: .02em;
  clip-path: polygon(8px 0, 100% 0, 100% 100%, 0 100%);
  max-width: 75%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.g-illumi { --g: var(--c-g-illumi); }
.g-xmas { --g: var(--c-g-xmas); }
.g-night { --g: var(--c-g-night); }

.thumb { position: relative; flex: none; aspect-ratio: 3 / 2; overflow: hidden; background: #1C2A5E; border-bottom: 1px solid var(--c-ink); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-bg {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: blur(14px) brightness(.55); transform: scale(1.15);
}
.thumb .thumb-fit { position: relative; z-index: 1; object-fit: contain; }
.thumb.is-wide .thumb-main { position: relative; z-index: 1; object-fit: contain; }
.thumb.is-white { background: #fff; }

.badge-off {
  position: absolute; top: 6px; left: 6px; z-index: 2;
  background: var(--c-accent); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 1;
  padding: 4px 6px;
}
.badge-pick {
  position: absolute; top: 0; left: 0; z-index: 2;
  background: var(--c-gold); color: var(--c-ink);
  font-size: 11px; font-weight: 800; line-height: 1.5; letter-spacing: .04em;
  padding: 3px 14px 3px 8px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.badge-pick + .badge-off { top: 28px; }
.card.pick-l .badge-pick + .badge-off { top: 32px; }
.badge-loc {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  max-width: calc(100% - 12px);
  display: inline-flex; align-items: center; gap: 2px;
  background: rgba(10, 18, 48, .7); color: #fff;
  font-size: 10px; font-weight: 500; line-height: 1;
  padding: 4px 8px 4px 6px; border-radius: 999px;
  white-space: nowrap; overflow: hidden;
}
.badge-loc svg { width: 10px; height: 10px; flex-shrink: 0; }
.badge-loc span { overflow: hidden; text-overflow: ellipsis; }

.card-body { padding: 8px 10px 0; display: flex; flex-direction: column; flex: 1; min-width: 0; }
.c-name {
  font-size: 13px; font-weight: 700; line-height: 1.45; color: var(--c-ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-plan {
  font-size: 12px; line-height: 1.5; color: var(--c-ink-2); margin-top: 3px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.c-desc {
  font-size: 12px; line-height: 1.5; color: var(--c-ink-3); margin-top: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.c-foot {
  margin: auto -10px 0; padding: 7px 10px;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2px 6px;
  background: var(--c-band); border-top: 1px solid var(--c-line);
}
.card-body > :not(.c-foot):nth-last-child(2) { margin-bottom: 10px; }
.c-price { flex: none; font-size: 16px; font-weight: 800; color: var(--c-accent); line-height: 1.2; white-space: nowrap; }
.c-price del { display: block; font-size: 10px; font-weight: 500; color: var(--c-ink-3); }
.c-price small { font-size: 10px; font-weight: 500; color: var(--c-ink-3); margin-left: 2px; }
.c-cta { flex: none; margin-left: auto; font-size: 12px; font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.c-cta::after { content: " \203A"; }
@media (max-width: 374px) {
  .product-grid { gap: 16px 10px; }
  .product-grid .c-foot { gap: 4px; padding-left: 8px; padding-right: 8px; }
  .product-grid .c-price { font-size: 15px; }
}

.pickup { margin: 6px 0 28px; }
.pickup[hidden] { display: none; }
.sec-head { margin: 0 0 12px; font-size: 17px; font-weight: 800; color: var(--c-ink); letter-spacing: .04em; line-height: 1.4; }
.sec-head span { background: linear-gradient(transparent 58%, var(--c-marker) 58%); padding: 0 2px; }
.pickup-rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 0 5px 5px 0; }
.card.is-pickup { box-shadow: 5px 5px 0 var(--c-gold); }
.card.is-pickup:hover { box-shadow: 7px 7px 0 var(--c-gold); }
.card.is-pickup:active { box-shadow: 2px 2px 0 var(--c-gold); }
.card.is-pickup .thumb .thumb-fit { position: absolute; inset: 0; }
.card.is-pickup .c-desc { white-space: normal; }
.card.pick-l .thumb { aspect-ratio: 3 / 2; }
.card.pick-l .card-body { padding: 12px 14px 0; }
.card.pick-l .c-foot { margin-left: -14px; margin-right: -14px; padding: 9px 14px; }
.card.pick-l .c-name { font-size: 18px; -webkit-line-clamp: 1; }
.card.pick-l .c-plan { font-size: 12px; }
.card.pick-l .c-price { font-size: 21px; }
.card.pick-l .c-cta { font-size: 13px; }
.card.pick-l .c-ribbon { font-size: 11px; padding: 4px 10px 4px 16px; }
.card.pick-l .badge-pick { font-size: 12px; padding: 4px 16px 4px 10px; }
.card.pick-l .badge-loc { font-size: 11px; left: 8px; bottom: 8px; }
.card.pick-m { flex-direction: row; }
.card.pick-m .thumb { flex: 0 0 55%; aspect-ratio: 3 / 2; align-self: stretch; border-bottom: 0; border-right: 1px solid var(--c-ink); }
.card.pick-m .card-body { padding: 26px 10px 0; }
.card.pick-m .c-name { font-size: 14px; }
.card.pick-m .c-plan { -webkit-line-clamp: 2; }
.card.pick-m .c-price { font-size: 17px; }
.card.pick-m .c-ribbon { max-width: 44%; }

.list-head[hidden] { display: none; }

.empty-state { text-align: center; padding: 48px 16px; color: var(--c-ink-3); font-size: 13px; }
.catalog-note { font-size: 12px; color: var(--c-ink-3); margin-top: 16px; line-height: 1.6; }

.faq { margin-top: 32px; }
.faq-list { background: #fff; border: 1px solid var(--c-ink); }
.faq-item { padding: 12px 14px; }
.faq-item + .faq-item { border-top: 1px solid var(--c-line); }
.faq-item dt { font-size: 13px; font-weight: 700; line-height: 1.5; color: var(--c-ink); }
.faq-item dd { margin-top: 4px; font-size: 12px; line-height: 1.7; color: var(--c-ink-2); }

.footer { background: var(--c-night); padding: 16px 16px 28px; text-align: center; }
.footer-links { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 0 8px; margin-bottom: 12px; }
.footer-links a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; font-size: 12px; color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; }
.footer p { font-size: 12px; color: rgba(255, 255, 255, .7); }

.loading-container, .error-container { display: flex; align-items: center; justify-content: center; }
.loading-container { padding: 28px 16px 36px; }
.error-container { min-height: 46vh; padding: 48px 16px; }
.loading-content, .error-content { text-align: center; }

.lightload { width: 100%; text-align: center; }
.lightload__road { position: relative; height: 74px; max-width: 264px; margin: 0 auto 14px; }
.lightload__wire { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 16px; overflow: visible; }
.lightload__wire ellipse { animation: ll-bulb 1.2s ease-in-out infinite; }
.lightload__wire ellipse:nth-child(2) { animation-delay: .2s; }
.lightload__wire ellipse:nth-child(3) { animation-delay: .4s; }
.lightload__wire ellipse:nth-child(4) { animation-delay: .6s; }
.lightload__wire ellipse:nth-child(5) { animation-delay: .8s; }
.lightload__wire ellipse:nth-child(6) { animation-delay: 1s; }
@keyframes ll-bulb { 0%, 100% { opacity: .35; } 40% { opacity: 1; } }
.lightload__me { position: absolute; left: 0; bottom: 12px; animation: ll-go 3.4s linear infinite; }
.lightload__me svg { display: block; overflow: visible; transform-origin: 50% 100%; animation: ll-waddle .6s ease-in-out infinite; }
.ll-leg { transform-box: fill-box; transform-origin: 50% 0; }
.ll-leg-l { animation: ll-step .6s ease-in-out infinite; }
.ll-leg-r { animation: ll-step .6s ease-in-out -.3s infinite; }
@keyframes ll-go { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 86% { opacity: 1; } 100% { left: calc(100% - 82px); opacity: 0; } }
@keyframes ll-waddle { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(6deg); } }
@keyframes ll-step { 0%, 50%, 100% { transform: translateY(0); } 25% { transform: translateY(-3px); } }
.lightload__goal { position: absolute; right: 2px; bottom: 10px; transform-origin: 50% 100%; animation: ll-hop 1.1s ease-in-out infinite; }
.lightload__goal svg { display: block; overflow: visible; }
.ll-star { transform-box: fill-box; transform-origin: 50% 55%; animation: ll-star 1.6s ease-in-out infinite; }
.ll-orn circle { animation: ll-bulb 1.4s ease-in-out infinite; }
.ll-orn circle:nth-child(2n) { animation-delay: .7s; }
@keyframes ll-hop { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-6px) rotate(4deg); } }
@keyframes ll-star { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.3) rotate(20deg); } }
.lightload__dots i { font-style: normal; animation: ll-dot 1.2s infinite both; }
.lightload__dots i:nth-child(2) { animation-delay: .2s; }
.lightload__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes ll-dot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .lightload__me { left: calc(50% - 50px); }
  .lightload *, .lightload__me { animation: none !important; }
}
.spinner {
  display: inline-block; width: 32px; height: 32px; margin-bottom: 12px;
  border: 4px solid var(--c-gold); border-top-color: transparent; border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 13px; font-weight: 700; color: var(--c-ink-2); letter-spacing: .02em; }
.error-text { font-size: 14px; color: var(--c-accent); margin-bottom: 16px; }
.retry-button {
  min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--c-night); color: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
}

[data-display-status="preview-only"]::after,
[data-display-status="upcoming"]::after,
[data-display-status="ended"]::after {
  content: ''; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  box-shadow: inset 0 0 0 2px #E53935; border-radius: var(--radius);
}
.preview-badge {
  position: absolute; top: 26px; right: 6px; z-index: 5;
  background: #E53935; color: #fff; padding: 3px 8px; border-radius: 4px;
  font-size: 10px; font-weight: 700;
}
.pr-badge {
  position: absolute; top: 28px; right: 6px; z-index: 3;
  background: rgba(255, 255, 255, .85); color: #6b7280;
  border: 1px solid rgba(107, 114, 128, .35); border-radius: 3px;
  padding: 0 5px; font-size: 9px; font-weight: 600; line-height: 1.5;
}

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

/* 写真に文字を重ねない券（CLEAR_IMAGE_PLANS）: 写真を上下の帯の間に縮めて収め、イチオシは上の帯、所在地とクレジットは下の帯の左右 */
.thumb.is-clear-thumb { display: flex; flex-direction: column; background: var(--c-night); }
.tc-img { flex: 1; min-height: 0; position: relative; }
.tc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.tc-bar { flex: none; position: relative; display: flex; align-items: center; min-width: 0; }
.tc-top { height: 24px; }
.tc-bottom { min-height: 22px; padding: 3px 5px; gap: 0 5px; flex-wrap: wrap; container-type: inline-size; }
.is-clear-thumb .badge-pick, .is-clear-thumb .badge-off, .is-clear-thumb .badge-loc { position: static; }
.is-clear-thumb .badge-pick + .badge-off { margin-left: 4px; }
.is-clear-thumb .badge-off:first-child { margin-left: 6px; }
.is-clear-thumb .badge-loc { max-width: none; flex: none; padding: 0; background: transparent; overflow: visible; }
.is-clear-thumb .badge-loc span { overflow: visible; }
.img-credit { flex: none; margin-left: auto; font-size: 9px; line-height: 1.3; color: rgba(255, 255, 255, .85); white-space: nowrap; letter-spacing: -.01em; }
.card.pick-l .is-clear-thumb .tc-top { height: 26px; }
/* 所在地は省略せず「愛知・名古屋」まで出す。クレジットと1行に入らない幅では、クレジットが次の行（右寄せ）へ回る */
.is-clear-thumb .loc-pref { display: none; }
@container (max-width: 180px) { .is-clear-thumb .badge-loc svg { display: none; } }
/* 権利元指定の表記（レゴランドⓇ…）を途中で切らない */
.card:has(.is-clear-thumb) .c-name { -webkit-line-clamp: 3; }
.card.pick-l:has(.is-clear-thumb) .c-name { -webkit-line-clamp: 2; }
