:root {
  color-scheme: light;
  --ink: #183e31;
  --text: #243a30;
  --muted: #56675c;
  --green: #195941;
  --deep: #103e2e;
  --gold: #f4cc68;
  --paper: #fbf9f1;
  --line: #d0d7c7;
  --accent: #276249;
  --wash: #edf4e7;
  --edge: #bcceb2;
  --sans: "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, system-ui, sans-serif;
  --numbers: "Arial", "Helvetica Neue", system-ui, sans-serif;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; line-height: 1.5; -webkit-font-smoothing: antialiased; }
h1, h2, p, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #135f8b; outline-offset: 3px; }
.shell { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  margin: -1px; padding: 0; border: 0; white-space: nowrap;
}
.skip:focus { position: absolute; z-index: 5; top: 4px; left: 4px; padding: 9px 15px; background: white; }
.masthead { background: #fffdf7; border-bottom: 1px solid #dddccc; }
.masthead-inner { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.brand, .jump { display: inline-flex; align-items: center; min-height: 44px; font-weight: 750; color: var(--ink); }
.brand { gap: 9px; font-size: 19px; letter-spacing: .03em; }
.brand img { width: 36px; height: 36px; border: 1px solid #aabbab; border-radius: 50%; }
.jump { gap: 6px; font-size: 13px; }
.jump:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero {
  position: relative; isolation: isolate; overflow: hidden; margin-top: 18px; padding: 20px 24px 22px;
  text-align: center; border: 1px solid #beccad; border-radius: 18px; background: #f7f3df;
}
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background-image: radial-gradient(#a9b397 .85px, transparent 1.1px); background-size: 8px 8px;
  mask-image: linear-gradient(90deg, #0009, transparent 26%, transparent 74%, #0009);
}
.hero h1 { color: var(--ink); line-height: 1.1; }
.hero-lead { display: flex; align-items: center; justify-content: center; gap: 11px; font-size: clamp(21px,2.1vw,30px); font-weight: 800; letter-spacing: .015em; }
.lead-copy { word-break: keep-all; }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; background: var(--green); color: white; border-radius: 4px; font-size: .55em; letter-spacing: .06em; line-height: 1.3; white-space: nowrap; }
.flag::before { content: ""; width: 5px; height: 8px; border: solid #f6d879; border-width: 0 1.6px 1.6px 0; transform: translateY(-1px) rotate(42deg); }
.headline-amount { display: inline-flex; align-items: baseline; justify-content: center; gap: clamp(5px,1vw,14px); white-space: nowrap; margin: 4px 0 12px; }
.maximum { align-self: center; display: grid; place-items: center; width: 2.65em; aspect-ratio: 1; border-radius: 50%; background: var(--gold); color: #483618; font-size: clamp(14px,1.3vw,19px); font-weight: 850; transform: rotate(-6deg); box-shadow: 0 2px 0 #bb9245; }
.headline-amount strong { position: relative; isolation: isolate; font: 900 clamp(83px,8vw,115px)/.99 var(--numbers); letter-spacing: -.065em; font-variant-numeric: lining-nums tabular-nums; }
.headline-amount strong::after { content: ""; position: absolute; z-index: -1; left: 0; right: -.02em; bottom: .025em; height: .095em; border-radius: 50% 15% 55% 20%; background: var(--gold); transform: rotate(-1.5deg); }
.total-unit { font-weight: 850; font-size: clamp(24px,2.2vw,34px); letter-spacing: -.06em; }
.long-amount strong { font-size: clamp(50px,6vw,85px); }
.breakdown { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(27%,155px),1fr)); gap: 9px; max-width: 654px; margin: 0 auto; padding: 0; list-style: none; }
[data-theme="apricot"] { --accent: #93502b; --wash: #fcf0e3; --edge: #dfbe9b; }
[data-theme="sky"] { --accent: #2c6075; --wash: #eaf2f5; --edge: #b8cdd5; }
.breakdown a {
  min-height: 49px; padding: 4px 8px; display: grid; justify-items: center; align-content: center;
  gap: 0; border: 1px solid var(--edge); border-radius: 9px; background: #fffefa;
  box-shadow: inset 0 -3px var(--wash); line-height: 1.35;
}
.breakdown a:hover { background: var(--wash); }
.summary-name { font-size: 13px; font-weight: 750; white-space: nowrap; }
.summary-value { font-size: 12px; font-weight: 750; color: var(--accent); white-space: nowrap; }
.summary-value b { font: 800 21px/1.15 var(--numbers); letter-spacing: -.045em; margin-right: 1px; }

.voices { margin-top: 16px; padding: 13px 20px 15px; background: #fffdf8; border: 1px solid var(--line); border-radius: 13px; }
.voices h2 { display: flex; align-items: center; justify-content: center; gap: 9px; color: var(--ink); font-weight: 800; font-size: 19px; line-height: 1.45; }
.voices h2 strong { font-weight: inherit; background: linear-gradient(transparent 75%, #f5dfa5 75%); }
.voices h2 small { flex: none; color: var(--muted); font-size: .7em; font-weight: 650; }
.chat-mark { position: relative; width: 20px; height: 15px; background: #edf3e3; border: 1.5px solid #668063; border-radius: 6px; }
.chat-mark::before { content: ""; position: absolute; width: 5px; height: 5px; border: solid #668063; border-width: 0 0 1.5px 1.5px; left: 3px; bottom: -3px; background: #edf3e3; transform: skewY(-32deg); }
.dm-slot { max-width: 535px; margin: 8px auto 0; padding: 7px 12px; text-align: center; font-size: 12px; color: #617262; border: 1px dashed #b5c3ac; border-radius: 7px; background: #f7f8f0; }
.dm-gallery { max-width: 650px; display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,180px),1fr)); gap: 18px 12px; margin: 20px auto 0; }
.dm-gallery[data-count="1"] { max-width: 360px; }
.dm-gallery[data-count="3"] { grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); }
.dm-gallery[data-count="3"] > :first-child { grid-row: 1 / span 2; }
.dm-card {
  position: relative; display: grid; grid-template-columns: minmax(0,1fr); align-content: center;
  min-width: 0; min-height: 44px; padding: 15px 6px 7px; border: 1.5px solid #63806d; border-radius: 10px;
  background: #fff; box-shadow: 1px 2px 0 #b9c8b7; cursor: zoom-in; text-align: start;
}
.dm-label {
  position: absolute; top: 0; left: 7px; transform: translateY(-50%); max-width: calc(100% - 14px);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 20px; padding: 2px 8px;
  background: var(--green); color: #fff; font-size: 12px; font-weight: 750; line-height: 1.4;
}
.dm-message {
  display: grid; grid-template-columns: var(--dm-avatar-size,25px) minmax(0,1fr);
  align-items: end; gap: 5px; min-width: 0;
}
[data-avatar="apricot"] { --avatar-paper: #f2daca; --avatar-ink: #a8694d; }
[data-avatar="slate"] { --avatar-paper: #d8e4ed; --avatar-ink: #627d93; }
.dm-avatar {
  display: block; position: relative; overflow: hidden; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: var(--avatar-paper,#d7e4da); color: var(--avatar-ink,#63806e); box-shadow: inset 0 0 0 1px #18291f24;
}
.dm-avatar::before, .dm-avatar::after { content: ""; position: absolute; background: currentColor; }
.dm-avatar::before { width: 33%; height: 35%; left: 33.5%; top: 16%; border-radius: 50%; }
.dm-avatar::after { width: 68%; height: 49%; left: 16%; bottom: -5%; border-radius: 50% 50% 24% 24%; }
.dm-bubble {
  display: block; min-width: 0; padding: 8px 10px; border-radius: 15px 15px 15px 5px;
  background: #eff1f5; color: #0c0f13; font: 400 15px/1.48 -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  white-space: pre-line; overflow-wrap: anywhere; line-break: strict;
}
.dm-gallery[data-count="3"] > :first-child .dm-bubble { background: #f0f2f5; }
.dm-note { margin: 9px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.dm-note span { display: inline-block; }
.dm-dialog {
  width: min(430px,calc(100% - 32px)); max-height: 85vh; padding: 0; margin: auto; overflow: auto;
  border: 1px solid #8ca590; border-radius: 15px; background: #fffdf8; color: var(--ink);
  box-shadow: 0 12px 48px #0e301f38;
}
.dm-dialog::backdrop { background: #13271fd1; }
.dm-dialog-inner { padding: 20px; }
.dm-kind { color: var(--muted); font-size: 12px; font-weight: 700; }
.dm-dialog h2 { margin: 3px 0 12px; font-size: 20px; }
.dm-dialog h2:focus { outline: none; }
.dm-dialog .dm-message { --dm-avatar-size: 30px; gap: 7px; }
.dm-dialog .dm-bubble { padding: 12px; font-size: 18px; line-height: 1.55; }
.dm-dialog .dm-note { text-align: start; }
.dm-dialog form { margin-top: 14px; text-align: end; }
.dm-close { min-height: 44px; padding: 6px 20px; border: 1px solid var(--green); border-radius: 22px; color: var(--green); background: #fff; font-weight: 700; }

.offers { margin: 20px 0 26px; scroll-margin-top: 12px; }
.offer-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 17px; align-items: stretch; }
.offer-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; scroll-margin-top: 12px; border: 1px solid var(--edge); border-radius: 15px; background: #fffefa; box-shadow: 0 3px 0 #b9bcaa42; }
.deadline-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1px 7px; min-height: 34px; padding: 6px 16px; background: var(--accent); color: white; }
.deadline-band time { font-weight: 800; font-size: 14px; }
.reopens { font-size: 11px; font-weight: 600; }
.card-body { display: flex; flex: 1; flex-flow: column; padding: 17px 17px 16px; }
.card-prize { display: flex; align-items: center; gap: 11px; }
.prize-icon { display: grid; place-items: center; flex: none; width: 53px; height: 53px; border-radius: 14px; border: 1px solid var(--edge); background: var(--wash); font: 28px/1 "Apple Color Emoji","Segoe UI Emoji",sans-serif; }
.reward-amount { display: flex; align-items: baseline; gap: 3px; color: var(--accent); line-height: 1; }
.reward-amount strong { font: 850 clamp(35px,3.1vw,46px)/1 var(--numbers); letter-spacing: -.06em; }
.reward-amount span { font-weight: 800; font-size: clamp(15px,1.4vw,20px); }
.reward-name { margin-top: 2px; color: var(--text); font-size: 15px; font-weight: 750; }
.service-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin-top: 14px; min-height: 25px; font-size: 16px; }
.offer-logo { width: auto; height: auto; max-width: 145px; max-height: 25px; }
.reading { font-size: 12px; font-weight: 650; color: var(--muted); }
.condition { margin-top: 6px; display: flex; align-items: baseline; gap: 7px; font-size: 13px; font-weight: 550; line-height: 1.6; }
.condition::before { content: ""; flex: none; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.code-box { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 8px; padding: 3px 7px 3px 10px; border: 1px dashed var(--edge); border-radius: 6px; background: var(--wash); }
.code-prompt { flex: 1; min-width: 0; font-size: 12px; font-weight: 700; line-height: 1.5; }
.code-value { font-size: 18px; font-weight: 800; line-height: 1.2; color: var(--ink); white-space: nowrap; }
.copy-code { margin-left: auto; min-height: 33px; padding: 3px 9px; border: 1px solid var(--edge); border-radius: 5px; color: var(--accent); background: #fffdf8; font-size: 12px; font-weight: 700; }
.copy-code:hover { border-color: var(--accent); }
.card-actions { display: grid; gap: 8px; margin-top: auto; padding-top: 16px; }
.action { position: relative; display: flex; align-items: center; justify-content: center; min-height: 46px; padding: 8px 23px; border: 1.5px solid var(--green); border-radius: 100px; font-size: 16px; line-height: 1.3; font-weight: 800; text-align: center; }
.action.primary { color: white; background: var(--green); box-shadow: 0 2px 0 var(--deep); }
.action.primary::after { content: ""; position: absolute; right: 16px; width: 7px; height: 7px; border: solid currentColor; border-width: 1.6px 1.6px 0 0; transform: rotate(45deg); }
.action.primary:hover { background: var(--deep); }
.action.secondary { color: var(--green); background: #fffefb; min-height: 44px; font-size: 14px; }
.action.secondary:hover { background: #eef4e8; }
.empty-state { padding: 16px 0; text-align: center; color: var(--muted); }
.footer { padding: 15px 0 19px; border-top: 1px solid var(--line); background: #f4f4ea; color: #566458; font-size: 12px; line-height: 1.7; }
.footer p { margin: 0; }

@media (min-width: 840px) and (max-width: 1023px) {
  .shell { width: calc(100% - 40px); }
  .offer-grid { gap: 11px; }
  .card-body { padding-inline: 13px; }
  .deadline-band { padding-inline: 12px; }
  .offer-logo { max-width: 115px; }
}
@media (max-width: 839px) {
  .shell { width: min(550px,calc(100% - 32px)); }
  .masthead-inner { min-height: 48px; }
  .brand { gap: 7px; font-size: 17px; }
  .brand img { width: 32px; height: 32px; }
  .jump { font-size: 12px; }
  .hero { margin-top: 12px; padding: 15px 10px 13px; border-radius: 15px; }
  .hero-lead { gap: 8px; font-size: clamp(20px,4.6vw,27px); }
  .headline-amount { margin: 7px 0 11px; gap: 5px; }
  .headline-amount strong { font-size: clamp(66px,16.8vw,94px); }
  .long-amount strong { font-size: clamp(40px,10.6vw,66px); }
  .maximum { width: 2.5em; font-size: 13px; }
  .total-unit { font-size: clamp(22px,5vw,29px); }
  .breakdown { gap: 5px; }
  .breakdown a { padding: 4px 2px; min-height: 45px; border-radius: 7px; }
  .summary-name { font-size: clamp(10px,2.85vw,13px); }
  .summary-value { font-size: 10px; }
  .summary-value b { font-size: 18px; }
  .voices { margin-top: 12px; padding: 10px 12px; border-radius: 12px; }
  .voices h2 { gap: 6px; font-size: 16px; }
  .dm-slot { margin-top: 6px; padding: 5px; }
  .dm-gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px 7px; margin-top: 16px; }
  .dm-gallery[data-count="1"] { grid-template-columns: minmax(0,1fr); }
  .dm-card { --dm-avatar-size: clamp(16px,4.6vw,23px); padding: 11px 3px 4px; border-radius: 8px; }
  .dm-card .dm-message { gap: 3px; }
  .dm-label { left: 5px; max-width: calc(100% - 10px); padding: 1px 6px; font-size: clamp(9px,2.6vw,12px); }
  .dm-card .dm-bubble { padding: 5px; font-size: clamp(10.5px,2.7vw,14px); line-height: 1.4; }
  .dm-note { margin-top: 8px; font-size: 11px; }
  .offers { margin: 14px 0 20px; }
  .offer-grid { grid-template-columns: minmax(0,1fr); gap: 15px; }
  .deadline-band { min-height: 33px; }
  .card-body { padding: 14px 16px 15px; }
  .reward-amount strong { font-size: 40px; }
  .reward-amount span { font-size: 18px; }
  .prize-icon { width: 49px; height: 49px; font-size: 26px; }
  .service-name { margin-top: 11px; }
  .condition { font-size: 13px; }
  .copy-code { min-height: 36px; }
  .card-actions { padding-top: 13px; }
  .action.primary { min-height: 47px; }
  .footer { padding-block: 12px 16px; font-size: 11.5px; }
}
@media (max-width: 359px) {
  .shell { width: calc(100% - 24px); }
  .hero { padding-inline: 7px; }
  .headline-amount strong { font-size: 61px; }
  .long-amount strong { font-size: 37px; }
  .card-body { padding-inline: 13px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
