:root {
  color-scheme: light;
  --page: #f8f9f5;
  --white: #fff;
  --ink: #172e25;
  --muted: #52665b;
  --green: #176248;
  --green-dark: #104b36;
  --green-soft: #e5f1e9;
  --orange: #bf421e;
  --orange-dark: #9e3316;
  --line: #dce4dd;
  --radius: 20px;
  --font: "Hiragino Sans", "Yu Gothic UI", "Meiryo", "Noto Sans CJK JP", system-ui, sans-serif;
  font-family: var(--font);
  background: var(--page);
  color: var(--ink);
  font-size: 100%;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-block-start: 26px; }
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  line-height: 1.7;
}
body > main { flex: 1 0 auto; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button, select { cursor: pointer; }
img { display: block; max-inline-size: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.4; }
:focus-visible { outline: 3px solid #118064; outline-offset: 4px; }
.shell { inline-size: min(1200px, calc(100% - 72px)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; z-index: 3; inset: 12px auto auto 12px; background: var(--white); padding: 8px 12px; }
.site-header { border-block-end: 1px solid #e9eee8; background: var(--white); }
.header-inner { min-block-size: 68px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; inline-size: fit-content; white-space: nowrap; font-size: 1.38rem; line-height: 1.1; font-weight: 850; letter-spacing: -.025em; }
.wordmark-last { color: var(--green); }
.wordmark-icon {
  display: inline-grid;
  place-items: center;
  inline-size: 31px;
  block-size: 24px;
  border-radius: 6px;
  transform: rotate(-9deg);
  background: radial-gradient(circle at left center, var(--white) 0 3px, transparent 3.5px),
              radial-gradient(circle at right center, var(--white) 0 3px, transparent 3.5px),
              #d94d23;
  color: var(--white);
  font: 800 .82rem/1 system-ui, sans-serif;
}
.site-nav { display: flex; align-items: center; gap: clamp(14px, 3vw, 38px); font-size: .875rem; font-weight: 700; color: var(--muted); }
.site-nav a { display: inline-flex; align-items: center; text-wrap: nowrap; min-block-size: 44px; }
.site-nav a:hover, .site-nav a:focus-visible,
[data-page="home"] .site-nav-offers, [data-page="brand"] .site-nav-brands { color: var(--green-dark); }
.site-footer { margin-block-start: 72px; border-block-start: 1px solid var(--line); background: var(--white); }
.footer-inner { min-block-size: 104px; display: flex; align-items: center; gap: 24px; padding-block: 25px; }
.footer-inner .wordmark { font-size: 1.16rem; flex: 0 0 auto; }
.footer-inner p { flex: 1 1 auto; color: var(--muted); font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 2px 18px; color: var(--green-dark); font-size: .875rem; font-weight: 700; }
.footer-links a { padding-block: 6px; }
.footer-links a:hover { text-decoration: underline; }

.button { display: inline-flex; min-block-size: 44px; align-items: center; justify-content: center; padding: 9px 18px; border: 1px solid transparent; border-radius: 10px; font-weight: 750; line-height: 1.5; text-align: center; }
.button-primary { color: var(--white); background: var(--orange); }
.button-primary:hover { background: var(--orange-dark); }
.button-outline { color: var(--green-dark); background: var(--white); border-color: #cedbd0; }
.button-outline:hover { border-color: var(--green); background: #f0f7f2; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-block-end: 20px; }
.section-heading h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); font-weight: 820; letter-spacing: -.025em; }
.section-note { margin-block-start: 3px; color: var(--muted); font-size: .875rem; }
.feedback { padding: 24px; border: 1px dashed #c8d7ce; border-radius: 12px; color: var(--muted); background: var(--white); }
.feedback .button { margin-block-start: 12px; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding-block: 24px; color: var(--muted); font-size: .875rem; }
.breadcrumbs a:hover { color: var(--green-dark); text-decoration: underline; }
.breadcrumbs > :not(:last-child)::after { content: "/"; margin-inline-start: 10px; color: #74887b; pointer-events: none; }

[data-category] { --accent: #26694c; --tint: #e9f3ea; --emblem: #d9eddb; }
[data-category="convenience"] { --accent: #1a6449; --tint: #e9f4ec; --emblem: #daeede; }
[data-category="food"] { --accent: #9c3c25; --tint: #fbede4; --emblem: #fae1d6; }
[data-category="fashion"] { --accent: #743e86; --tint: #f4ecf7; --emblem: #efdef3; }
[data-category="travel"] { --accent: #215583; --tint: #e9f1fa; --emblem: #dceaf9; }
[data-category="shopping"] { --accent: #8a4c1d; --tint: #f9eee0; --emblem: #fae7ce; }
[data-category="payments"] { --accent: #77476a; --tint: #f8ecf4; --emblem: #f3dfee; }
[data-category="electronics"] { --accent: #3c557e; --tint: #eef1f8; --emblem: #e1e9f8; }
.brand-icon { display: inline-grid; flex: 0 0 auto; place-items: center; inline-size: 37px; block-size: 37px; border-radius: 10px; background: var(--emblem); color: var(--accent); font-size: 1rem; font-weight: 850; line-height: 1; }
.brand-icon-wide { font-size: .76rem; font-family: system-ui, sans-serif; }

.offer-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 15px; }
.offer-card { display: flex; min-inline-size: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 2px 2px rgba(17, 59, 43, .025); }
.offer-card:hover, .offer-card:focus-within { border-color: #b8d2bd; }
.offer-card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 15px 15px 0; }
.offer-brand { display: inline-flex; align-items: center; gap: 9px; min-inline-size: 0; color: var(--ink); font-size: .89rem; font-weight: 760; }
.offer-brand:hover { color: var(--green-dark); text-decoration: underline; }
.offer-brand > :last-child { min-inline-size: 0; overflow-wrap: anywhere; }
.offer-type { flex: 0 0 auto; align-self: center; border-radius: 999px; padding: 3px 9px; color: var(--green-dark); background: var(--green-soft); font-size: .75rem; font-weight: 750; white-space: nowrap; }
.offer-type[data-type="sale"] { color: #944322; background: #fff0e6; }
.offer-type[data-type="reward"] { color: #674485; background: #f2ebf8; }
.offer-card-main { display: flex; flex-direction: column; flex: 1 1 auto; border-radius: 0 0 var(--radius) var(--radius); }
.offer-card-copy { padding: 12px 16px 15px; flex: 1 1 auto; }
.offer-benefit { color: var(--accent); font-size: clamp(1.34rem, 2.6vw, 1.92rem); font-weight: 850; letter-spacing: -.037em; line-height: 1.3; overflow-wrap: anywhere; }
.offer-title { margin-block-start: 5px; line-height: 1.55; font-size: .96rem; font-weight: 740; overflow-wrap: anywhere; }
.offer-summary { margin-block-start: 6px; color: var(--muted); font-size: .875rem; line-height: 1.6; overflow-wrap: anywhere; }
.offer-card-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 10px; min-block-size: 50px; padding: 10px 15px; border-block-start: 1px dashed #cadacf; color: var(--muted); font-size: .875rem; font-weight: 650; }
.offer-card-bottom::before, .offer-card-bottom::after { content: ""; position: absolute; inset-block-start: -6px; inline-size: 10px; block-size: 10px; background: var(--page); border: 1px solid var(--line); border-radius: 50%; pointer-events: none; }
.offer-card-bottom::before { inset-inline-start: -6px; clip-path: inset(0 0 0 50%); }
.offer-card-bottom::after { inset-inline-end: -6px; clip-path: inset(0 50% 0 0); }
.card-action { display: inline-flex; align-items: center; gap: 7px; color: var(--green-dark); white-space: nowrap; }
.offer-card-main:hover .card-action { text-decoration: underline; }
[data-status="upcoming"], [data-status="awaiting_redemption"] { color: #80521b; }
[data-status="redeem_only"] { color: #2c5d86; }
[data-status="expired"] { color: #57615d; }
@media (max-width: 1000px) {
  .shell { inline-size: calc(100% - 48px); }
  .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .shell { inline-size: calc(100% - 32px); }
  .header-inner { min-block-size: 60px; gap: 10px; }
  .wordmark { font-size: 1.14rem; gap: 5px; }
  .wordmark-icon { inline-size: 25px; block-size: 20px; font-size: .72rem; }
  .site-nav { gap: 14px; font-size: .825rem; }
  .site-footer { margin-block-start: 50px; }
  .footer-inner { flex-wrap: wrap; gap: 12px; }
  .footer-inner p { flex-basis: 100%; order: 2; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 9px; }
  .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .breadcrumbs { padding-block: 17px; }
  .wide-label { display: none; }
}
@media (max-width: 360px) {
  .site-nav { gap: 12px; }
}

.offer-card-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 5px; }
.save-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  flex: 0 0 auto;
  gap: 7px;
  min-block-size: 36px;
  padding: 6px 10px;
  border: 1px solid #d6e2d8;
  border-radius: 8px;
  background: var(--white);
  color: var(--green-dark);
  font-size: .875rem;
  font-weight: 700;
}
.save-button-icon { inline-size: 36px; padding: 0; }
.save-icon { position: relative; inline-size: 12px; block-size: 15px; background: currentColor; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 73%, 0 100%); }
.save-icon::after { position: absolute; inset: 1.5px; content: ""; background: var(--white); clip-path: polygon(0 0, 100% 0, 100% 88%, 50% 60%, 0 88%); }
.save-button:hover { border-color: var(--green); }
.save-button[aria-pressed="true"] { background: var(--green-soft); border-color: #a9cdb9; }
.save-button[aria-pressed="true"] .save-icon::after { display: none; }
@media (max-width: 360px) { .site-nav { gap: 8px; } }

[data-page="guides"] .site-nav-guides, [data-page="article"] .site-nav-guides { color: var(--green-dark); text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 410px) {
  .header-inner { flex-wrap: wrap; gap: 0 8px; padding-block: 7px 0; }
  .site-nav { flex: 1 0 100%; justify-content: space-between; gap: 6px; }
}
