@charset "UTF-8";
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle; }

a {
  color: #000000;
  text-decoration: none;
  transition: all 0.4s; }

*:before,
*:after {
  box-sizing: border-box; }

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  font-size: 62.5%;
  scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.4;
  color: #000000;
  overflow-x: clip; }

*,
*::before,
*::after {
  box-sizing: border-box; }

img,
svg,
canvas {
  display: block;
  max-width: 100%;
  height: auto; }

/* --------------------------------------------
共通 
---------------------------------------------*/
.main_container {
  width: 768px;
  max-width: 100%;
  margin: auto;
  min-height: 100vw;
  height: 100vh;
  container-type: inline-size; }

.select_wrap {
  display: flex;
  flex-direction: column;
  gap: 5cqw;
  padding: 10cqw;
  align-items: center; }

#top_page .main_container {
  background-image: url("../images/background_sp.png");
  background-size: cover; }

#novelty_page .main_container {
  background-color: #f0f0f0; }
#novelty_page .accept_btn {
  display: block;
  border-radius: 100px;
  width: 70%;
  margin: 10cqw auto;
  background-color: #FF0004;
  color: #fff;
  text-align: center;
  padding: 1em;
  font-size: 5cqw; }

/* Novelty barcode modal (UI only) */
#novelty_page .main_container {
  height: auto;
  min-height: 100vh;
  padding-bottom: 1px; }

#novelty_page .accept_btn {
  border: 0;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 5px 0 #b90003; }

#novelty_page .accept_btn:active {
  transform: translateY(2px);
  box-shadow: 0 3px 0 #b90003; }

#novelty_page button:focus-visible {
  outline: 3px solid #005bbb;
  outline-offset: 5px; }

.barcode-modal {
  position: fixed;
  inset: 0;
  width: calc(100% - 32px);
  max-width: 440px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: #fff;
  color: #171717;
  overflow: auto;
  overscroll-behavior: contain;
  box-shadow: 0 16px 60px #0005; }

.barcode-modal::backdrop {
  background: rgba(0, 0, 0, 0.65); }

.barcode-modal__content {
  position: relative;
  padding: 56px 24px 24px;
  text-align: center;
  border-top: 8px solid #ffdf00; }

.barcode-modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #222;
  font-size: 30px;
  cursor: pointer; }

.barcode-modal__eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  background: #ffdf00;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em; }

.barcode-modal h1 {
  margin-top: 12px;
  font-size: clamp(24px, 6vw, 30px);
  line-height: 1.2;
  font-weight: 800; }

.barcode-modal__description {
  margin: 12px auto 24px;
  max-width: 280px;
  font-size: 16px;
  line-height: 1.6; }

.barcode-modal__barcode {
  padding: 18px 12px;
  border: 2px solid #eee;
  border-radius: 12px;
  background: #fff; }

.barcode-modal__barcode img {
  width: 100%;
  height: auto; }

.barcode-modal__sample {
  margin-top: 8px;
  font-size: 12px;
  color: #666; }

.barcode-modal__staff {
  margin-top: 20px;
  padding: 16px;
  border-radius: 12px;
  background: #f5f5f5;
  text-align: left;
  font-size: 13px;
  line-height: 1.7; }

.barcode-modal__staff-title {
  margin-bottom: 6px;
  font-weight: 700; }

.barcode-modal__staff-note {
  margin-top: 6px;
  color: #666;
  font-size: 12px; }

.barcode-modal__back {
  width: 100%;
  min-height: 48px;
  margin-top: 20px;
  border: 0;
  border-radius: 100px;
  background: #ff0004;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer; }

.barcode-modal[open] {
  animation: barcode-modal-in .18s ease-out; }

@keyframes barcode-modal-in {
  from {
    opacity: 0;
    transform: translateY(12px); }
  to {
    opacity: 1;
    transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .barcode-modal[open] {
    animation: none; } }
/* Two-step receipt confirmation */
.barcode-modal [hidden] {
  display: none !important; }

.barcode-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px; }

.barcode-modal__actions .barcode-modal__back {
  margin-top: 0;
  padding: 14px 12px; }

.barcode-modal__actions button span {
  display: inline-block; }

.barcode-modal__cancel {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  border: 1px solid #bbb;
  border-radius: 100px;
  background: #fff;
  color: #333;
  font: inherit;
  font-weight: 700;
  cursor: pointer; }

.barcode-modal__receipt-note {
  margin-top: 24px;
  padding: 16px;
  border-radius: 12px;
  background: #fff8d6;
  font-size: 14px;
  line-height: 1.8;
  text-align: left; }

.barcode-modal__waiting {
  margin-top: 20px;
  font-size: 13px;
  line-height: 1.8;
  color: #555; }

/* Shared redeemed state */
[data-redemption-status][hidden], .redemption-error[hidden] {
  display: none !important; }

.novelty-visual, .redemption-card {
  position: relative; }

.redemption-card a {
  display: block; }

.redemption-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: clamp(24px, 7cqw, 52px);
  font-weight: 800;
  text-shadow: 0 2px 8px #0008; }

.is-redeemed .novelty-visual img, .is-redeemed .redemption-card img {
  filter: grayscale(0); }

#novelty_page .accept_btn:disabled {
  background: #707070;
  color: #fff;
  box-shadow: none;
  cursor: default;
  transform: none;
  opacity: 1; }

#top_page .main_container {
  height: auto;
  min-height: 100vh; }

#top_page.is-redeemed .main_container,
#novelty_page.is-redeemed .main_container {
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

.redemption-footer {
  position: fixed;
  z-index: 10;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 768px;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 5px solid #ffdf00;
  background: #ffdf00;
  color: #222;
  box-shadow: 0 -4px 20px #0002;
  text-align: center;
  font-size: clamp(14px, 3.8vw, 20px);
  font-weight: 700; }

.redemption-error {
  margin-top: 16px;
  color: #b00020;
  font-size: 14px;
  line-height: 1.6; }

.novelty-visual img {
  width: 100%; }

/* Coupon confirmation trigger */
.coupon-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer; }

.coupon-trigger:disabled {
  cursor: default;
  opacity: 1; }

#top_page button:focus-visible {
  outline: 3px solid #005bbb;
  outline-offset: 5px; }

/* Shared language switch; add languages in translations.js. */
#header {
  max-width: 768px;
  margin: auto;
  background: #fff; }

.language-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 16px; }

.language-select-wrap {
  position: relative;
  width: 220px;
  max-width: 100%; }

.language-select-icon {
  position: absolute;
  z-index: 1;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #222;
  pointer-events: none; }

.language-select {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 8px 28px 8px 42px;
  border: 1px solid #777;
  border-radius: 2px;
  background-color: #fff;
  color: #222;
  font: 700 16px/1.4 sans-serif;
  cursor: pointer; }

.language-select:focus-visible {
  outline: 3px solid #005bbb;
  outline-offset: 3px; }

html[lang="zh-CN"] body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }

.barcode-modal h1 {
  overflow-wrap: anywhere; }

/* English creative: background title ends at about 49% of the image width. */
html #top_page .main_container {
  background-image: url("../images/top-background_en.png");
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: center top;
  background-color: #fff; }

html #top_page .select_wrap {
  padding: 54cqw 7cqw 10cqw;
  gap: 5cqw; }

#top_page .select_wrap > li {
  width: 100%; }

#top_page .select_wrap > li img {
  width: 100%; }

#novelty_page .main_container {
  background-color: #fff; }

html #novelty_page .novelty-visual {
  width: 94%;
  margin: 4cqw auto 0; }

[data-button-image][hidden], [data-button-label][hidden] {
  display: none !important; }

#novelty_page .accept_btn.image-button, .barcode-modal__back.image-button {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none; }

#novelty_page .accept_btn.image-button:active {
  transform: translateY(2px);
  box-shadow: none; }

.image-button [data-button-image] {
  width: 100%;
  height: auto; }

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 12px 16px;
  gap: 12px; }

.site-brand {
  width: 30%;
  max-width: 210px; }

.site-brand img {
  width: 100%;
  height: auto; }

#header .language-switch {
  padding: 0;
  flex: 0 1 220px;
  min-width: 0; }

@media (max-width: 480px) {
  #header {
    gap: 10px;
    padding: 12px; }

  #header .language-switch {
    flex-basis: 190px; }

  .language-select {
    font-size: 14px; } }
/* Approved reference layout: a 768px phone canvas on a solid campaign-red surround. */
body {
  background-color: #e70012; }

.main_container {
  width: 768px; }

#header {
  width: 768px;
  max-width: 100%;
  min-height: 70px;
  padding: 8px 12px;
  border-top: 6px solid #e70012;
  background: #000;
  flex-wrap: nowrap;
  gap: 12px; }

.site-brand {
  width: 35%;
  max-width: 140px;
  flex-shrink: 0; }

#header .language-switch {
  flex: 0 1 140px;
  padding: 0; }

.language-select-wrap {
  width: 140px; }

.language-select {
  min-height: 32px;
  padding: 4px 18px 4px 27px;
  font-size: 12px; }

.language-select-icon {
  left: 5px; }

.language-select-icon svg {
  width: 19px;
  height: 19px; }

#top_page .main_container {
  min-height: 0; }

html #top_page .select_wrap {
  padding: 51cqw 7cqw 3.5cqw;
  gap: 2cqw; }

#novelty_page .main_container {
  min-height: 0;
  padding-top: 1px;
  padding-bottom: 12cqw;
  background: linear-gradient(to bottom, #ffe62b 0, #fff9cf 65cqw, #fff 120cqw); }

html #novelty_page .novelty-visual {
  width: 100%;
  margin: 1.5cqw auto 0; }

#novelty_page .accept_btn {
  width: 93%;
  margin: 4cqw auto 7.5cqw; }

.novelty-information {
  width: 83%;
  margin: 0 auto;
  color: #333;
  font-family: inherit; }

.novelty-section + .novelty-section {
  margin-top: 10cqw; }

.novelty-section-heading {
  position: relative;
  padding: 2.4cqw 5cqw;
  background: #0068ad;
  color: #fff000; }

.novelty-section-heading h2 {
  font-size: 4.35cqw;
  line-height: 1.4;
  font-weight: 700; }

.novelty-section-heading--character {
  padding-right: 23cqw; }

.details-donpen {
  position: absolute;
  right: 2cqw;
  bottom: 0;
  width: 21cqw;
  height: auto;
  pointer-events: none; }

.novelty-notes {
  padding: 2.5cqw 0 0 4cqw;
  list-style: disc; }

.novelty-notes li {
  padding-left: 0;
  font-size: 3.85cqw;
  line-height: 1.6;
  overflow-wrap: anywhere; }

.novelty-notes li::marker {
  color: #0068ad; }

.novelty-notes li + li {
  margin-top: 6cqw; }

.novelty-stores {
  background: #ffffef; }

.novelty-stores .novelty-section-heading {
  padding-left: 5cqw;
  padding-right: 3cqw; }

.novelty-stores .novelty-section-heading h2 {
  font-size: 4.25cqw; }

.store-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2cqw;
  padding: 4cqw 2.5cqw 3cqw; }

.store-placeholder {
  display: block;
  padding: 2.5cqw 3cqw;
  line-height: 1.5;
  overflow-wrap: anywhere;
  border-radius: 100px;
  background: #0068ad;
  color: #fff;
  font-size: 4cqw;
  font-weight: 700;
  text-align: center; }

.store-placeholder--muted {
  background: #ccc;
  color: #222; }

#novelty_page #footer {
  width: 768px;
  max-width: 100%;
  height: 60px;
  margin: auto;
  border-top: 12px solid #e70012;
  background: #000; }

.redemption-footer {
  max-width: 768px; }

/* Keep cqw values on the page container relative to the phone canvas, not the desktop viewport. */
#main {
  width: 768px;
  max-width: 100%;
  margin: auto;
  container-type: inline-size; }

#header .language-switch {
  flex-basis: 160px; }

.language-select-wrap {
  width: 160px; }

/* Two gift options; images include their headings. */
.novelty-options {
  margin: 7cqw auto 10cqw; }

#novelty_page .novelty-options .accept_btn {
  width: 93%;
  margin: 0 auto; }

.novelty-options__divider {
  width: 83%;
  height: 1.5cqw;
  margin: 5cqw auto;
  border: 0;
  background: #b7b7b7; }

.barcode-modal__selection {
  margin: 16px 0 8px;
  color: #0068ad;
  font-size: 17px;
  line-height: 1.5;
  font-weight: 700; }

/* Shared campaign modal design: novelty and tax-free coupon. */
#novelty-barcode-modal, #coupon-confirm-modal {
  width: 86%;
  max-width: 650px;
  padding: 12px 8px 0 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #231815; }
  #novelty-barcode-modal .barcode-modal__content, #coupon-confirm-modal .barcode-modal__content {
    padding: 56px 6.5% 42px;
    border: 0;
    border-radius: 18px;
    background: #fff; }
  #novelty-barcode-modal .barcode-modal__close, #coupon-confirm-modal .barcode-modal__close {
    top: -9px;
    right: -8px;
    width: 44px;
    height: 44px;
    background: #fff;
    color: #000;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.25);
    font: 900 44px/40px Arial, sans-serif; }
  #novelty-barcode-modal .barcode-modal__barcode, #coupon-confirm-modal .barcode-modal__barcode {
    border: 0;
    padding: 0;
    border-radius: 0; }
  #novelty-barcode-modal .barcode-modal__barcode img, #coupon-confirm-modal .barcode-modal__barcode img {
    display: block;
    width: 100%; }
  #novelty-barcode-modal .barcode-modal__sample, #coupon-confirm-modal .barcode-modal__sample {
    font-size: 11px;
    margin-top: 4px; }
  #novelty-barcode-modal .barcode-modal__selection, #coupon-confirm-modal .barcode-modal__selection {
    margin: 4px 0 0;
    font-size: 12px;
    line-height: 1.4; }
  #novelty-barcode-modal h1, #coupon-confirm-modal h1 {
    margin: 22px 0 0;
    font-size: clamp(22px, 5.6vw, 40px);
    line-height: 1.25;
    font-weight: 900; }
  #novelty-barcode-modal #barcode-title, #novelty-barcode-modal #coupon-title, #coupon-confirm-modal #barcode-title, #coupon-confirm-modal #coupon-title {
    color: #e70012; }
  #novelty-barcode-modal .barcode-modal__staff, #coupon-confirm-modal .barcode-modal__staff {
    margin-top: 24px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    text-align: center;
    color: #333; }
  #novelty-barcode-modal .barcode-modal__staff-title, #coupon-confirm-modal .barcode-modal__staff-title {
    font-size: clamp(14px, 3.5vw, 25px);
    line-height: 1.8;
    font-weight: 800; }
  #novelty-barcode-modal .barcode-modal__staff-note, #coupon-confirm-modal .barcode-modal__staff-note {
    margin-top: 12px;
    color: #333;
    font-size: clamp(11px, 2.8vw, 19px);
    line-height: 1.8; }
  #novelty-barcode-modal .barcode-modal__tier, #coupon-confirm-modal .barcode-modal__tier {
    margin-top: 8px;
    font-size: 11px; }
  #novelty-barcode-modal .barcode-modal__actions, #coupon-confirm-modal .barcode-modal__actions {
    gap: 13px;
    margin-top: 24px; }
  #novelty-barcode-modal .barcode-modal__actions button, #coupon-confirm-modal .barcode-modal__actions button {
    min-height: 50px;
    padding: 12px;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font-size: clamp(18px, 4.5vw, 30px);
    font-weight: 700; }
  #novelty-barcode-modal [data-modal-yes], #novelty-barcode-modal [data-coupon-yes], #coupon-confirm-modal [data-modal-yes], #coupon-confirm-modal [data-coupon-yes] {
    background: #f58798; }
  #novelty-barcode-modal [data-modal-step="barcode"] .barcode-modal__cancel, #novelty-barcode-modal .barcode-modal__actions [data-coupon-cancel], #coupon-confirm-modal [data-modal-step="barcode"] .barcode-modal__cancel, #coupon-confirm-modal .barcode-modal__actions [data-coupon-cancel] {
    background: #8eced3; }
  #novelty-barcode-modal .barcode-modal__donpen, #coupon-confirm-modal .barcode-modal__donpen {
    display: block;
    width: 26%;
    height: auto;
    margin: -36px 0 6px auto; }
  #novelty-barcode-modal #receipt-title, #coupon-confirm-modal #receipt-title {
    margin: 0 0 16px; }
  #novelty-barcode-modal [data-modal-received], #coupon-confirm-modal [data-modal-received] {
    margin-top: 0; }
  #novelty-barcode-modal .barcode-modal__receipt-note, #coupon-confirm-modal .barcode-modal__receipt-note {
    margin-top: 22px;
    padding: 22px 18px;
    border-radius: 16px;
    background: #fffde1;
    text-align: center; }
  #novelty-barcode-modal .barcode-modal__waiting, #coupon-confirm-modal .barcode-modal__waiting {
    margin: 0;
    color: #231815;
    font-size: clamp(17px, 4vw, 28px);
    line-height: 1.5; }
  #novelty-barcode-modal .barcode-modal__receipt-reminder, #coupon-confirm-modal .barcode-modal__receipt-reminder {
    margin-top: 14px;
    font-size: clamp(13px, 3vw, 21px);
    line-height: 1.4; }
  #novelty-barcode-modal [data-modal-step="receipt"] > .barcode-modal__cancel, #coupon-confirm-modal [data-modal-step="receipt"] > .barcode-modal__cancel {
    display: block;
    width: 86%;
    min-height: 36px;
    margin: 24px auto 0;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: #8d8d8d;
    color: #fff;
    font-size: clamp(16px, 3.8vw, 26px); }

/* Coupon confirmation has no barcode area. */
#coupon-confirm-modal .barcode-modal__eyebrow {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #e70012;
  font-size: 14px; }
#coupon-confirm-modal #coupon-title {
  margin-top: 16px; }
#coupon-confirm-modal #coupon-description {
  font-size: clamp(14px, 3.5vw, 22px);
  line-height: 1.6; }

/* Locale fonts: English creative layout is shared by all five languages. */
html[lang="zh-TW"] body {
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }

html[lang="ko"] body {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; }

html[lang="th"] body {
  font-family: "Noto Sans Thai", "Thonburi", "Leelawadee UI", sans-serif; }

/* Staff instructions remain Japanese in every locale. */
.barcode-modal__staff[lang="ja"] {
  font-family: "Noto Sans JP", sans-serif; }

/* English typography: Poppins Light body / Medium headings and controls. */
html[lang="en"] body {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-weight: 300; }
html[lang="en"] h1, html[lang="en"] h2, html[lang="en"] h3, html[lang="en"] h4, html[lang="en"] h5, html[lang="en"] h6,
html[lang="en"] .novelty-section-heading h2,
html[lang="en"] #novelty-barcode-modal h1, html[lang="en"] #coupon-confirm-modal h1 {
  font-weight: 500; }
html[lang="en"] .language-select {
  font-family: "Poppins", "Noto Sans JP", sans-serif;
  font-weight: 500; }
html[lang="en"] .store-placeholder, html[lang="en"] .redemption-overlay, html[lang="en"] .barcode-modal__eyebrow,
html[lang="en"] .barcode-modal__selection, html[lang="en"] .barcode-modal__back, html[lang="en"] .barcode-modal__cancel,
html[lang="en"] #novelty-barcode-modal .barcode-modal__actions button,
html[lang="en"] #coupon-confirm-modal .barcode-modal__actions button {
  font-weight: 500; }
html[lang="en"] .redemption-footer {
  font-weight: 300; }
html[lang="en"] .barcode-modal__staff[lang="ja"] {
  font-weight: 400; }

/* Shared Japanese subtitles below each receipt-confirmation message. */
#novelty-barcode-modal .barcode-modal__japanese {
  margin: 6px 0 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
  color: #555;
  text-align: center; }
#novelty-barcode-modal #receipt-title {
  margin-bottom: 0; }
#novelty-barcode-modal #receipt-ja-title {
  margin-bottom: 16px; }

/* Store lists above benefit buttons. Spacing scales with the page width. */
#novelty_page .novelty-visual + .novelty-information {
  margin-top: 6cqw; }

#top_page .select_stores {
  margin-top: 4cqw;
  margin-bottom: 4cqw; }

/* Tax-refund graphic is shared across languages, directly above the coupon. */
#top_page .select_wrap > .select_tax_refund {
  width: 86%;
  margin-top: 4cqw; }

.select_tax_refund img {
  display: block;
  height: auto; }

/* Return to the campaign top, including when both benefits are redeemed. */
#novelty_page #footer {
  height: auto;
  padding: 24px 20px;
  text-align: center; }

.footer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 80%;
  max-width: 420px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 100px;
  background: #0068ad;
  color: #fff;
  font-family: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  text-decoration: none; }

.footer-back:hover {
  background: #00558e; }

.footer-back:focus-visible {
  outline: 3px solid #ffdf00;
  outline-offset: 4px; }

#novelty_page.is-redeemed #footer {
  padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
