/* OfferIndex — design system */
:root {
  --ink: #0b1220;
  --ink-2: #1e293b;
  --slate: #475569;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e6e9ef;
  --line-2: #dde2ea;
  --bg: #f6f7f9;
  --card: #ffffff;
  --amber: #f59e0b;
  --amber-2: #d97706;
  --amber-ink: #b45309;
  --amber-bg: #fffbeb;
  --green: #047857;
  --green-bg: #ecfdf5;
  --gray-bg: #f1f5f9;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-md: 0 6px 24px -8px rgba(15, 23, 42, .12);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; margin: 0; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--amber-2); }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.brand-mark { display: block; border-radius: 7px; }
.brand-name { font-size: 18px; font-weight: 700; letter-spacing: -.02em; }
.brand-name em { font-style: normal; color: var(--amber-2); }
.main-nav { display: flex; gap: 4px; margin-left: 8px; flex: 1; }
.main-nav a {
  padding: 7px 12px; border-radius: 9px;
  font-size: 14px; font-weight: 500; color: var(--slate);
}
.main-nav a:hover { background: var(--gray-bg); color: var(--ink); }
.main-nav a.is-active { color: var(--ink); font-weight: 600; background: var(--gray-bg); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-link {
  font-size: 13.5px; font-weight: 600; color: var(--slate);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px;
  white-space: nowrap;
}
.lang-link:hover { border-color: var(--ink); color: var(--ink); }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 340px at 82% -60px, rgba(245, 158, 11, .18), transparent 62%),
    linear-gradient(180deg, #0b1220 0%, #101b31 100%);
  color: #fff;
  padding: 58px 0 52px;
}
.hero-inner { max-width: 760px; }
.eyebrow {
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 14px;
}
.hero h1 { color: #fff; font-size: 42px; font-weight: 800; line-height: 1.12; margin-bottom: 16px; }
.hero .lede { color: #b6c2d4; font-size: 16.5px; max-width: 580px; margin-bottom: 26px; }
.hero-search {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--muted);
  border-radius: 999px; padding: 0 20px; height: 52px; max-width: 560px;
  box-shadow: 0 10px 34px -12px rgba(0, 0, 0, .45);
}
.hero-search svg { flex: none; color: var(--faint); }
.hero-search input {
  flex: 1; border: 0; outline: 0; height: 100%; font-size: 15.5px; font-family: inherit;
  color: var(--ink); background: transparent;
}
.hero-search input::placeholder { color: var(--faint); }
.hero-stats { margin-top: 18px; font-size: 13.5px; color: #8fa0b8; }

/* ---------- toolbar ---------- */
.toolbar {
  position: sticky; top: 60px; z-index: 30;
  background: rgba(246, 247, 249, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.toolbar-inner { display: flex; align-items: center; gap: 16px; padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; flex: 1; }
.chip-btn {
  border: 1px solid var(--line-2); background: #fff; color: var(--slate);
  padding: 6px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all .15s ease;
}
.chip-btn span { color: var(--faint); font-weight: 500; margin-left: 4px; }
.chip-btn:hover { border-color: var(--ink); color: var(--ink); }
.chip-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-btn.is-active span { color: #9fb0c7; }
.sort-note { font-size: 13px; color: var(--muted); white-space: nowrap; }
.sort-note .count { color: var(--faint); }

/* ---------- list ---------- */
.list-wrap { padding: 30px 20px 60px; }
.section-title { font-size: 21px; font-weight: 700; margin: 6px 0 18px; }
.section-title-sub { margin-top: 40px; }
.offer-list { display: flex; flex-direction: column; gap: 12px; }

.offer-row {
  display: grid;
  grid-template-columns: 40px 44px minmax(0, 1fr) 230px;
  gap: 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.offer-row:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.offer-row.is-ended { opacity: .78; }
.offer-row.is-ended:hover { opacity: 1; }

.rank { font-family: var(--mono); font-size: 15px; color: var(--faint); letter-spacing: -.02em; align-self: start; margin-top: 4px; }
.avatar {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
  background: color-mix(in srgb, var(--tone) 15%, #fff);
  color: var(--tone);
  flex: none;
  align-self: start;
}
.avatar-big { width: 56px; height: 56px; font-size: 23px; border-radius: 15px; }

.offer-main { min-width: 0; }
.offer-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 5px; }
.store-name { font-size: 13px; font-weight: 700; color: var(--slate); letter-spacing: .01em; }
.store-name:hover { color: var(--amber-2); }
.offer-title { font-size: 16.5px; font-weight: 700; margin: 0 0 5px; }
.offer-title a:hover { color: var(--amber-2); }
.offer-desc {
  font-size: 13.8px; color: var(--muted); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.offer-meta { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; font-size: 12.6px; color: var(--muted); }
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--gray-bg); color: var(--slate); font-size: 12.2px; font-weight: 600;
}
a.chip:hover { background: var(--ink); color: #fff; }
.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); font-size: 12.2px; font-weight: 500;
}
.sep { width: 3px; height: 3px; border-radius: 50%; background: var(--line-2); }

.offer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 9px; text-align: right; }
.offer-value { font-size: 15px; font-weight: 800; color: var(--amber-ink); letter-spacing: -.01em; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: 10px; border: 1px solid transparent;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--amber); color: #201500; }
.btn-primary:hover { background: var(--amber-2); color: #1a1000; }
.btn-ghost { background: transparent; color: var(--slate); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-block { width: 100%; }
.arrow { font-size: 13px; }

/* pills */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.4px; font-weight: 700; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--slate); background: #fff;
}
.pill-region { background: #fff; }
.pill-live { color: var(--green); background: var(--green-bg); border-color: transparent; }
.pill-soon { color: var(--amber-ink); background: var(--amber-bg); border-color: transparent; }
.pill-ended { color: var(--muted); background: var(--gray-bg); border-color: transparent; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); display: inline-block; }

.rank-note { margin-top: 22px; font-size: 13px; color: var(--faint); }
.archive-teaser { margin-top: 26px; font-size: 14px; font-weight: 600; }
.archive-teaser a { color: var(--amber-2); }
.archive-teaser a:hover { color: var(--ink); }
.no-results {
  text-align: center; padding: 48px 20px; color: var(--muted);
  background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--radius);
}

/* ---------- breadcrumbs & page head ---------- */
.breadcrumbs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  font-size: 13px; color: var(--faint); padding: 22px 0 14px;
}
.breadcrumbs a { color: var(--muted); font-weight: 500; }
.breadcrumbs a:hover { color: var(--amber-2); }
.breadcrumbs span:last-child { color: var(--slate); }
.page-head { padding: 6px 0 24px; }
.page-head h1 { font-size: 32px; font-weight: 800; margin-bottom: 10px; }
.page-head .lede { color: var(--muted); font-size: 15.5px; max-width: 640px; }

/* ---------- stores ---------- */
.store-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.store-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.store-card:hover { border-color: var(--line-2); box-shadow: var(--shadow-md); transform: translateY(-1px); color: inherit; }
.store-card-body h3 { font-size: 16px; font-weight: 700; }
.store-domain { font-size: 12.8px; color: var(--faint); margin: 1px 0 5px; }
.store-meta { font-size: 12.8px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.store-head { display: flex; align-items: center; gap: 18px; padding: 6px 0 26px; }
.store-head h1 { font-size: 28px; font-weight: 800; }
.store-head .lede { margin-top: 4px; font-size: 14px; color: var(--muted); }

/* ---------- detail ---------- */
.detail-wrap { padding-bottom: 70px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 28px; align-items: start; }
.detail-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.detail-store { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--slate); margin-right: 6px; }
.detail-store:hover { color: var(--amber-2); }
.detail-main h1 { font-size: 30px; font-weight: 800; margin-bottom: 10px; }
.detail-offer { font-size: 19px; font-weight: 800; color: var(--amber-ink); margin-bottom: 14px; }
.detail-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.status-banner {
  background: var(--green-bg); color: var(--green);
  border-radius: 12px; padding: 13px 18px; font-size: 14px; font-weight: 600;
  margin-bottom: 28px;
}
.status-banner.is-ended { background: var(--gray-bg); color: var(--muted); }
.detail-main section { margin-bottom: 26px; }
.detail-main h2 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.detail-main p { color: var(--slate); font-size: 15.5px; }
.detail-points { display: flex; flex-direction: column; gap: 8px; }
.detail-points li { position: relative; padding-left: 22px; color: var(--slate); font-size: 15px; }
.detail-points li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 7px; height: 7px; border-radius: 2px; background: var(--amber);
}
.detail-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }
.cta-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-md);
}
.cta-value { font-size: 17px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.mini-disclosure { font-size: 12px; color: var(--faint); margin-top: 10px; line-height: 1.5; }
.mini-disclosure a { text-decoration: underline; }
.facts { margin: 18px 0 0; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.facts > div { display: flex; justify-content: space-between; gap: 14px; font-size: 13.3px; }
.facts dt { color: var(--faint); flex: none; }
.facts dd { margin: 0; color: var(--slate); font-weight: 600; text-align: right; }
.facts a { text-decoration: underline; text-decoration-color: var(--line-2); }
.related {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.related h3 { font-size: 14px; font-weight: 700; margin-bottom: 12px; color: var(--slate); }
.related-item { display: block; padding: 10px 0; border-top: 1px solid var(--line); }
.related-item:first-of-type { border-top: 0; padding-top: 0; }
.related-title { display: block; font-size: 13.8px; font-weight: 600; color: var(--ink-2); line-height: 1.4; }
.related-item:hover .related-title { color: var(--amber-2); }
.related-meta { display: block; margin-top: 3px; font-size: 12.3px; color: var(--faint); }

/* ---------- prose (legal) ---------- */
.prose-wrap { padding-bottom: 70px; }
.prose { max-width: 720px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; box-shadow: var(--shadow-sm); }
.prose h1 { font-size: 30px; font-weight: 800; margin-bottom: 6px; }
.prose-updated { font-size: 13px; color: var(--faint); margin-bottom: 26px; }
.prose h2 { font-size: 17.5px; font-weight: 700; margin: 28px 0 10px; }
.prose p { color: var(--slate); font-size: 14.8px; margin-bottom: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.prose li { color: var(--slate); font-size: 14.8px; margin-bottom: 6px; }
.prose a { color: var(--amber-ink); text-decoration: underline; }
.prose strong { color: var(--ink-2); }
.prose-note {
  background: var(--amber-bg); border: 1px solid #fde68a; color: var(--amber-ink);
  border-radius: 10px; padding: 12px 16px; font-size: 13.6px;
}
.prose-note strong { color: var(--amber-ink); }
.table-scroll { overflow-x: auto; margin-bottom: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.6px; }
.prose th, .prose td { text-align: left; padding: 8px 10px; border: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--gray-bg); color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.prose td { color: var(--slate); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #94a3b8; margin-top: 30px; }
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.05fr 1fr; gap: 30px;
  padding-top: 48px; padding-bottom: 36px;
}
.footer-brand .brand-footer { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 13.3px; line-height: 1.65; }
.site-footer h4 {
  color: #fff; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .09em; margin-bottom: 14px;
}
.site-footer li { margin-bottom: 9px; font-size: 13.6px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #fff; }
.linklike { background: none; border: 0; padding: 0; color: #94a3b8; font-size: 13.6px; cursor: pointer; font-family: inherit; }
.linklike:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px; padding-bottom: 22px;
  font-size: 12.5px; color: #64748b;
}

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 60; width: min(720px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px -12px rgba(15, 23, 42, .35);
  padding: 18px 20px;
}
.cookie-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cookie-inner p { flex: 1; font-size: 13.3px; color: var(--slate); min-width: 260px; }
.cookie-inner p a { text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; }

/* ---------- a11y ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-weight: 700; font-size: 14px;
}
.skip-link:focus { left: 16px; color: #fff; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

/* ---------- search page ---------- */
.search-box {
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--muted);
  border: 1px solid var(--line-2); border-radius: 999px;
  padding: 0 20px; height: 52px; max-width: 560px; margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}
.search-box svg { flex: none; color: var(--faint); }
.search-box input {
  flex: 1; border: 0; outline: 0; height: 100%; font-size: 15.5px; font-family: inherit;
  color: var(--ink); background: transparent;
}
.search-box input::placeholder { color: var(--faint); }
.search-count { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.search-item {
  display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 13px 18px; margin-bottom: 10px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-item:hover { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.search-item-title { display: block; font-size: 15px; font-weight: 700; color: var(--ink); }
.search-item:hover .search-item-title { color: var(--amber-2); }
.search-item-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; font-size: 12.6px; color: var(--muted); }

/* ---------- sitemap page ---------- */
.sitemap-section { margin-bottom: 30px; }
.sitemap-section .section-title { font-size: 18px; margin-bottom: 14px; }
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 9px 18px; }
.link-grid a { font-size: 14px; color: var(--slate); font-weight: 600; }
.link-grid a:hover { color: var(--amber-2); }

/* ---------- 404 ---------- */
.nf-wrap { text-align: center; padding: 90px 20px; max-width: 680px; }
.nf-wrap h1 { font-size: 40px; margin-bottom: 14px; }
.nf-lede { color: var(--muted); font-size: 16px; margin-bottom: 28px; line-height: 1.7; }
.nf-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .offer-row { grid-template-columns: 36px 40px minmax(0, 1fr); }
  .offer-side { grid-column: 2 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-side { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
  .hero h1 { font-size: 33px; }
}
@media (max-width: 600px) {
  .header-inner { gap: 12px; }
  .main-nav a { padding: 7px 8px; font-size: 13px; }
  .hero { padding: 40px 0 38px; }
  .hero h1 { font-size: 28px; }
  .offer-row { grid-template-columns: 40px minmax(0, 1fr); gap: 12px; padding: 15px; }
  .rank { display: none; }
  .offer-side { grid-column: 1 / -1; }
  .footer-grid { grid-template-columns: 1fr; }
  .prose { padding: 26px 22px; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; }
}
