:root {
  color-scheme: light;
  --red: #e62939;
  --red-deep: #b71326;
  --ink: #192234;
  --muted: #697386;
  --line: #e9ecf2;
  --panel: #ffffff;
  --surface: #f6f7fa;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif; background: var(--surface); color: var(--ink); line-height: 1.6; }
a { color: inherit; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 72px; background: #fff; border-bottom: 1px solid var(--line); }
.hero { color: #fff; background: linear-gradient(117deg,#b90e28 0%,#f03746 58%,#ff7757 100%); overflow: hidden; }
.hero-inner { display: flex; min-height: 280px; align-items: center; justify-content: space-between; position: relative; padding-block: 50px; }
.listing { padding-top: 44px; padding-bottom: 75px; }
.section-heading { display: flex; gap: 16px; align-items: end; justify-content: space-between; margin-bottom: 23px; }
.section-kicker { color: var(--red); font-size: 11px; letter-spacing: .12em; font-weight: 900; }
.section-heading h2 { margin: 5px 0 0; font-size: 26px; letter-spacing: -.04em; line-height: 1.4; }
.heading-count { font-size: 14px; color: var(--muted); font-weight: 600; margin-left: 5px; }
.sort-label { color: var(--muted); font-size: 12px; margin: 0 0 4px; }
.oripa-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.oripa-card { min-width: 0; display: flex; flex-direction: column; background: var(--panel); border: 1px solid #e6e9ee; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 15px #17203408; transition: transform .15s ease,box-shadow .15s ease; }
.oripa-card:hover { transform: translateY(-3px); box-shadow: 0 12px 25px #17203413; }
.card-image { position: relative; width: 100%; aspect-ratio: 1.36; background: linear-gradient(145deg,#f5f1f2,#eaeaf0); }
.card-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-placeholder { display: grid; place-items: center; height: 100%; background: repeating-linear-gradient(-35deg,#e8e9ed,#e8e9ed 14px,#eef0f4 14px,#eef0f4 28px); }
.image-placeholder span { color: #b9bbc5; font-size: 29px; font-weight: 900; letter-spacing: .18em; }
.site-pill { position: absolute; left: 12px; bottom: 12px; display: inline-block; max-width: calc(100% - 24px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 6px; background: #fffffff2; box-shadow: 0 2px 8px #0000001c; padding: 5px 10px; color: #30394a; font-size: 11px; font-weight: 800; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 16px; }
.card-body h3 { font-size: 14px; line-height: 1.6; font-weight: 800; height: 4.8em; margin: 0 0 11px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.price-line { display: flex; align-items: baseline; gap: 7px; border-top: 1px solid #f0f1f3; padding-top: 10px; }
.field-label { color: var(--muted); font-size: 11px; }
.price-line strong { color: var(--red-deep); font-size: 20px; font-weight: 900; letter-spacing: -.04em; }
.card-footer { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.card-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 8px; color: #fff; background: var(--red); text-decoration: none; font-size: 12px; font-weight: 800; transition: background .15s ease; }
.card-link:hover { background: var(--red-deep); }
.card-link.disabled { background: #dadfe6; color: #6d7888; }
.notice { background: #fff; border: 1px solid #ead5d8; border-radius: 12px; padding: 30px; color: #8f2230; font-size: 14px; }
.list-note { color: #7f8795; font-size: 11px; margin: 26px 0 0; }
/* Blank site header/footer retain space and background for future content. */
.site-footer { min-height: 76px; background: #fff; border-top: 1px solid var(--line); }
@media(max-width:1050px) { .oripa-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .oripa-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; } .hero-inner { min-height: 260px; } }
@media(max-width:480px) { .container { width: calc(100% - 28px); } .oripa-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .card-body { padding: 11px; } .card-body h3 { font-size: 12px; } .price-line strong { font-size: 16px; } .card-link { padding: 9px 6px; font-size: 11px; } .site-pill { font-size: 10px; left: 8px; bottom: 8px; } .hero { background: linear-gradient(117deg,#b90e28,#f03746); } .hero-inner { padding-block: 40px; } .section-heading h2 { font-size: 22px; } .sort-label { max-width: 130px; text-align: right; } }


/* Shared core metrics grid; the detail page still shows all six metrics. */
.oripa-metrics { margin: 9px 0 0; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; background: var(--line); }
.metric { min-width: 0; background: #fcfcfe; padding: 9px 10px; }
.metric dt { font-size: 10px; line-height: 1.4; color: var(--muted); }
.metric dd { margin: 4px 0 0; color: #243047; font-size: 13px; line-height: 1.35; font-weight: 800; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
/* List card sale information, following the sample's price / progress / stock hierarchy. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.sale-stats { min-width: 0; margin-top: 9px; padding: 11px 0 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sale-price { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 5px; margin-bottom: 18px; color: #f13d49; }
.sale-price-value { font-size: clamp(25px, 2.7vw, 38px); font-weight: 900; letter-spacing: -.045em; line-height: 1.2; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sale-price-unit { font-size: 15px; font-weight: 800; white-space: nowrap; }
.sale-consumption-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 9px; color: #7a8799; font-size: 12px; }
.sale-consumption-heading strong { color: #2d3b53; font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.sale-progress { height: 9px; border-radius: 99px; background: #edf0f4; overflow: hidden; }
.sale-progress-fill { display: block; height: 100%; background: linear-gradient(90deg, #ff7275, #f43b4b); border-radius: inherit; }
.sale-stock { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: 17px; }
.sale-stock-stat { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px; font-size: 11px; color: #7a8799; }
.sale-stock-stat:last-child { justify-content: flex-end; text-align: right; }
.sale-stock-stat strong { color: #2d3b53; font-weight: 800; font-size: 14px; line-height: 1.3; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media(max-width:480px) {
  .sale-stats { padding-top: 9px; padding-bottom: 10px; }
  .sale-price { margin-bottom: 14px; }
  .sale-price-value { font-size: 24px; }
  .sale-price-unit { font-size: 12px; }
  .sale-consumption-heading { font-size: 11px; }
  .sale-consumption-heading strong { font-size: 15px; }
  .sale-stock-stat { font-size: 10px; gap: 2px 4px; }
  .sale-stock-stat strong { font-size: 12px; }
}

/* Neutral prize summary matches the list card's white/gray typography. */
.prize-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 10px 0 0; padding: 10px 4px; border: 1px solid var(--line); border-radius: 9px; background: #f7f8fa; }
.prize-stat { min-width: 0; padding: 0 5px; text-align: center; }
.prize-stat + .prize-stat { border-left: 1px solid var(--line); }
.prize-stat dt { color: var(--muted); font-size: 10px; line-height: 1.45; }
.prize-stat dd { margin: 4px 0 0; color: #2d3b53; font-size: 13px; line-height: 1.35; font-weight: 800; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media(max-width:480px) { .prize-summary { padding: 8px 2px; } .prize-stat { padding: 0 2px; } .prize-stat dt { font-size: 9px; } .prize-stat dd { font-size: 11px; } }
.card-footer { gap: 8px; }
.official-link { display: inline-flex; justify-content: center; align-items: center; gap: 6px; color: var(--red-deep); font-size: 12px; font-weight: 800; text-decoration: none; padding: 8px 10px; border: 1px solid #f7c5cb; border-radius: 8px; background: #fff; }
.official-link:hover { background: #fff4f5; }
.detail-main { padding-top: 24px; padding-bottom: 72px; }
.breadcrumb { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 25px; }
.breadcrumb a { color: var(--red-deep); text-decoration: none; }
.detail-overview { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; padding: 24px; }
.detail-image { min-height: 280px; max-height: 470px; background: #f5f6f9; border-radius: 12px; overflow: hidden; }
.detail-image img { width: 100%; height: 100%; max-height: 470px; object-fit: contain; }
.detail-image .image-placeholder { min-height: 280px; }
.detail-main-info { min-width: 0; }
.detail-site-label { color: var(--red-deep); font-size: 12px; font-weight: 900; }
.detail-main-info h1 { font-size: clamp(22px,3vw,31px); line-height: 1.4; margin: 5px 0 10px; overflow-wrap: anywhere; }
.detail-state { display: inline-block; margin: 0 0 8px; border-radius: 99px; padding: 3px 11px; background: #fbe8ec; color: #af1e35; font-size: 11px; font-weight: 800; }
.detail-main-info .oripa-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 12px; }
.detail-main-info .metric { padding: 12px; }
.detail-main-info .metric dd { font-size: 16px; }
.detail-remaining { margin: 14px 0 3px; font-size: 12px; color: #546174; }
.detail-remaining strong { color: var(--ink); margin-left: 8px; font-size: 15px; }
.detail-observed { margin: 10px 0 15px; font-size: 12px; color: var(--muted); }
.detail-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-actions a { width: auto; min-width: 160px; padding-inline: 20px; }
.detail-description { margin-top: 24px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.detail-description h2 { margin: 0 0 10px; font-size: 18px; }
.detail-description p { margin: 0; white-space: normal; line-height: 1.8; font-size: 13px; color: #4b576a; overflow-wrap: anywhere; }
.prizes-section { padding-top: 45px; }
.prize-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 15px; }
.prize-card { min-width: 0; background: #fff; overflow: hidden; border-radius: 11px; border: 1px solid var(--line); }
.prize-image { height: 175px; background: #f5f6f9; }
.prize-image img { height: 100%; width: 100%; object-fit: contain; }
.prize-image .image-placeholder { height: 100%; }
.prize-image .image-placeholder span { font-size: 20px; }
.prize-card-body { padding: 12px; }
.prize-badges { display: flex; flex-wrap: wrap; gap: 4px; min-height: 19px; }
.prize-badge { padding: 2px 6px; font-size: 10px; line-height: 1.5; border-radius: 4px; background: #edf0f5; color: #465367; font-weight: 800; }
.prize-badge.psa { background: #fff1d6; color: #905812; }
.prize-badge.unopened { background: #e7f4ec; color: #1c7044; }
.prize-badge.rank { background: #fcebef; color: #ad2441; }
.prize-card h3 { font-size: 12px; line-height: 1.55; min-height: 3.1em; margin: 9px 0 12px; overflow-wrap: anywhere; }
.prize-quantities { margin: 0; font-size: 11px; border-top: 1px solid var(--line); padding-top: 8px; }
.prize-quantities div { display: flex; justify-content: space-between; gap: 5px; }
.prize-quantities dt { color: var(--muted); }
.prize-quantities dd { margin: 0; font-weight: 700; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 30px; font-size: 12px; color: var(--muted); }
.pagination a { color: var(--red-deep); font-weight: 800; text-decoration: none; border: 1px solid #f5bac4; background: #fff; padding: 9px 15px; border-radius: 7px; }
@media(max-width:1050px) { .prize-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media(max-width:760px) { .detail-overview { grid-template-columns: 1fr; gap: 16px; padding: 16px; } .detail-image { max-height: 380px; } .prize-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:480px) { .oripa-metrics .metric { padding: 7px; } .oripa-metrics .metric dd { font-size: 11px; } .detail-main-info .oripa-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); } .detail-main-info .metric dd { font-size: 14px; } .prize-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; } .prize-image { height: 150px; } .detail-actions a { flex: 1; min-width: 0; } .pagination { gap: 8px; } }

/* Latest-oripa site selector */
.site-filter { margin: 0 0 14px; padding: 21px 23px 23px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 3px 14px #17203407; }
.site-filter-heading { margin: 0 0 15px; }
.site-filter-heading h2 { font-size: 17px; line-height: 1.45; letter-spacing: -.03em; margin: 3px 0 0; }
.site-filter-buttons { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; }
.site-filter-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 9px 15px; min-height: 39px; max-width: 100%; border-radius: 999px; border: 1px solid #dfe3e9; color: #4b5667; background: #f7f8fa; font-size: 12px; font-weight: 800; line-height: 1.3; text-decoration: none; transition: border-color .15s ease, background .15s ease, color .15s ease; }
.site-filter-button:hover, .site-filter-button:focus-visible { background: #fff0f2; border-color: #ef9da9; color: var(--red-deep); }
.site-filter-button.is-selected { background: var(--red); border-color: var(--red); color: white; }
.site-filter-button.is-selected:hover, .site-filter-button.is-selected:focus-visible { background: var(--red-deep); border-color: var(--red-deep); color: white; }
.filter-count { display: inline-block; min-width: 23px; padding: 3px 7px; border-radius: 99px; background: #e7e9ee; color: #5a6474; font-size: 10px; font-variant-numeric: tabular-nums; text-align: center; }
.is-selected .filter-count { background: #ffffff35; color: white; }
.prize-filter { margin-bottom: 33px; }
.prize-filter-note { margin: 12px 0 0; font-size: 11px; color: var(--muted); }
@media (max-width: 480px) { .site-filter { padding: 16px 13px; margin-bottom: 14px; } .prize-filter { margin-bottom: 23px; } .site-filter-buttons { gap: 7px; } .site-filter-button { padding: 9px 11px; font-size: 11px; } }

/* Progressive latest-oripa listing */
.oripa-card { scroll-margin-top: 16px; }
.load-more { margin: 30px auto 8px; display: flex; flex-direction: column; align-items: center; gap: 11px; }
.load-more-button { display: inline-flex; align-items: center; justify-content: center; gap: 13px; min-width: 245px; max-width: 100%; padding: 13px 25px; border: 2px solid var(--red); border-radius: 10px; background: #fff; color: var(--red-deep); text-decoration: none; font-size: 14px; font-weight: 900; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.load-more-button:hover, .load-more-button:focus-visible { color: #fff; background: var(--red); }
.load-more-progress { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }

/* Sales start/end timestamps on each latest-oripa card */
.sales-period { display: grid; gap: 5px; margin: 5px 0 1px; padding: 0; }
.sales-period-row { min-width: 0; display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; }
.sales-period-row dt { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.sales-period-row dd { margin: 0; color: #3d4859; font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
@media (max-width: 480px) { .sales-period-row dt, .sales-period-row dd { font-size: 10px; } }
