/* ==========================================================================
   chibajets-preseason-2026 — vanilla 版 styles
   React 実装 (src/sections/*, src/components/LinkButton, src/theme) の
   inline style を 1:1 でクラス化。値は tokens.css (:root CSS変数) を参照。
   ========================================================================== */

/* --- reset + base (global.css 相当) ---------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: var(--font-family-body);
  font-size: var(--font-size-body);
  line-height: 1.5;
  color: var(--color-text);
  /* 外側背景を赤グラデーションに（固定＝スクロールしても動かない。中央の白カラムだけがスクロール）。実測: 上#DF0505→下#B2A6A6 */
  background: linear-gradient(180deg, #df0505 0%, #b2a6a6 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}

/* --- App / LpPage wrapper (App.tsx) --------------------------------------- */
.app {
  max-width: 390px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--color-surface);
}
.lp {
  background: var(--color-surface);
}

/* --- LinkButton (components/LinkButton.tsx) ------------------------------- */
.link-btn {
  width: 100%;
  background: var(--color-brand-red);
  color: var(--color-neutral-white);
  border: none;
  border-radius: 4px;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}
.link-btn--center {
  justify-content: center;
}
.link-btn--outline {
  background: var(--color-neutral-white);
  color: var(--color-brand-red);
  border: 2px solid var(--color-brand-red);
  box-shadow: none;
}
.link-btn__label {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-body);
}
.link-btn__chevron {
  flex-shrink: 0;
}
.link-btn__run {
  width: 26px;
  height: auto;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}
#kv-main-btn {
  align-self: stretch;
  max-width: 100%;
  min-width: 0;
}
#kv-main-btn .link-btn__label {
  font-size: 15px;
}

/* --- HeaderBar ------------------------------------------------------------ */
.header-bar {
  background: var(--color-neutral-white);
  padding: var(--space-2) var(--space-4);
}
.header-bar__img {
  width: 100%;
  display: block;
}

/* --- KvSection ----------------------------------------------------------- */
.kv-hero {
  width: 100%;
  display: block;
}
.kv-band {
  background: var(--color-surface-band);
  padding: var(--space-6) var(--space-4) var(--space-9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.kv-heading {
  font-family: var(--font-family-heading);
  font-style: italic;
  font-synthesis: weight;
  font-weight: var(--font-weight-black);
  font-size: var(--font-size-hero); /* 25px (未達) */
  color: var(--color-neutral-black);
  text-align: center;
  line-height: 1.21;
  white-space: pre-line;
}
.kv-heading--achieved {
  font-size: 23px;
}
.kv-note {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-black);
  font-size: 16px;
  color: var(--color-neutral-black);
  text-align: center;
  line-height: 1.21;
}
.kv-note__aster {
  display: inline-block;
  vertical-align: -0.12em;
  margin-right: 0.25em;
}
.kv-score {
  position: relative;
  width: 100%;
  background: var(--color-brand-red);
  padding: var(--space-4) 0 var(--space-3);
  overflow: hidden;
}
.kv-score__rail {
  position: absolute;
  top: 14px;
  bottom: 12px;
  width: 5px;
  background: var(--color-neutral-white);
}
.kv-score__rail--l {
  left: 6%;
}
.kv-score__rail--r {
  right: 6%;
}
.kv-score__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12%;
}
.kv-score__label {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-label); /* 34px */
  color: var(--color-neutral-white);
  letter-spacing: 0.02em;
  line-height: 1.21;
}
.kv-score__hr {
  width: 100%;
  height: 3px;
  background: var(--color-neutral-white);
  margin: 6px 0 2px;
}
.kv-score__num {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-score); /* 64px */
  line-height: 1.21;
  color: var(--color-neutral-white);
}
.kv-days {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); /* 1fr だと iOS で列が縮まずはみ出す */
  gap: var(--space-3);
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.day-btn {
  background: var(--color-brand-red);
  color: var(--color-neutral-white);
  border-radius: 4px;
  padding: var(--space-2) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
  min-width: 0;
}
.day-btn__no {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: var(--font-size-cardBody); /* 14px */
}
.day-btn__txt {
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: min(3.4vw, 13.5px); /* 狭い端末でも nowrap の11文字が欠けず収まるサイズ */
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: -0.02em;
  overflow: hidden;
}

/* label overrides (KvSection 主ボタン: 達成後) */
.label-nowrap-tight {
  white-space: nowrap;
  letter-spacing: -0.02em;
}

/* --- AboutSection -------------------------------------------------------- */
.about {
  background: #fbf3f3;
  padding: var(--space-9) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.about__h2 {
  color: var(--color-brand-redDark);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  text-align: center;
  line-height: 1.5;
  white-space: pre-line;
}
.about__body {
  color: var(--color-neutral-black);
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* --- StampMethodSection -------------------------------------------------- */
.stamp {
  background: #fbf3f3;
  padding: 36px 16px 16px;
}
.stamp__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 20px;
}
.stamp__head-chevron {
  width: 24px;
  flex-shrink: 0;
}
.stamp__head-h2 {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #000;
  text-align: center;
  line-height: 1.5;
  white-space: pre-line;
}
.stamp__list {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.stamp-block {
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.stamp-block__band {
  position: relative;
  height: 52px;
  background: #595959;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.stamp-block__corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 78px;
  height: 100%;
  background: #ff0000;
  clip-path: polygon(34% 0, 100% 0, 100% 100%);
}
.stamp-block__no {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  padding: 0 12px;
  color: #fff;
  font-family: "JetBrains Mono", "Noto Sans JP", sans-serif;
  font-weight: 700;
}
.stamp-block__no-label {
  font-size: 12px;
}
.stamp-block__no-num {
  font-size: 22px;
  margin-top: 2px;
}
.stamp-block__title {
  position: relative;
  z-index: 1;
  color: #fff;
  font-family: "JetBrains Mono", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 18px;
  border-bottom: 3px solid #fff;
  padding-bottom: 2px;
}
.stamp-block__body {
  padding: 20px 16px 20px;
}
.stamp-body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #000;
  line-height: 1.2;
  white-space: pre-line;
  margin-bottom: 20px;
}
.divider-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.divider-heading__rule {
  width: 34px;
  height: 3px;
  background: #000;
  flex-shrink: 0;
}
.divider-heading__text {
  font-family: "JetBrains Mono", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #000;
  text-align: center;
  line-height: 1.15;
  white-space: pre-line;
}
.gourmet-map {
  width: 100%;
  display: block;
  margin: 16px 0 16px;
}
.receipt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff;
  border-radius: 4px;
  padding: 8px 14px;
  margin-bottom: 10px;
}
.receipt-btn--day1 {
  background: #505050;
}
.receipt-btn--day2 {
  background: #f0021f;
}
.receipt-btn__label {
  font-family: "Inter", "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  white-space: pre-line;
  text-align: left;
}
.stamp-note {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #f90d0d;
  line-height: 1.2;
  white-space: pre-line;
  margin-top: 12px;
}
.stamp-welcome {
  margin-top: 4px;
  margin-bottom: 12px;
}
/* 受け取り可能期間ブロック（Figma 0904・灰色フレーム #E1E1E1・角丸なし・内側余白10px・行間10px、見出し16px/700/中央/赤、本文15px/400/赤） */
.stamp-period {
  margin-top: 14px;
  background: #e1e1e1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stamp-period__head {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: #f90d0d;
  text-align: center;
  line-height: 1.2;
}
.stamp-period__body {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  font-size: 15px;
  color: #f90d0d;
  line-height: 1.2;
  white-space: pre-line;
}

/* --- VenueSection -------------------------------------------------------- */
.venue {
  background: var(--color-brand-redAccent);
  padding: var(--space-6) var(--space-4);
}
.venue__card {
  background: var(--color-neutral-white);
  border-radius: 8px;
  padding: var(--space-6) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.venue__head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
}
.venue__slash {
  color: var(--color-neutral-black);
  font-size: 28px;
  font-weight: var(--font-weight-bold);
}
.venue__h2 {
  color: var(--color-neutral-black);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  text-align: center;
  line-height: 1.4;
  white-space: pre-line;
}
.venue__tabs {
  display: flex;
  border: 2px solid var(--color-neutral-line);
  border-radius: 4px;
  overflow: hidden;
}
.day-tab {
  flex: 1;
  background: var(--color-surface-alt);
  color: var(--color-text);
  border: none;
  padding: var(--space-3) var(--space-2);
  font-family: var(--font-family-heading);
  font-weight: var(--font-weight-bold);
  font-size: 13px;
}
.day-tab--active {
  background: var(--color-brand-red);
  color: var(--color-neutral-white);
}
.venue__banner {
  width: 100%;
  border-radius: 0;
  display: block;
}
.venue__note {
  color: var(--color-neutral-black);
  font-size: 15px;
  line-height: 1.5;
  white-space: pre-line;
}

/* --- SurveySection ------------------------------------------------------- */
.survey {
  background-color: #c8c8c8;
  /* Figma のドット背景（#D3D3D3 の明るいドットを千鳥配置・実測タイル）。6.5×12px=Retina でピクセル一致 */
  background-image: url(../assets/survey-bg-dots.png);
  background-size: 6.5px 12px;
  background-repeat: repeat;
  padding: var(--space-9) var(--space-5);
  color: var(--color-neutral-black);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
/* サーベイ CTA だけ影色が固有（Figma: DROP_SHADOW #6E0000 / y+4 / blur4） */
.survey .link-btn {
  box-shadow: 0 4px 4px rgba(110, 0, 0, 1);
}
.survey__bubble {
  align-self: flex-start;
  width: 120px;
  height: auto;
  display: block;
  margin-bottom: -12px;
}
.survey__h2 {
  font-family: var(--font-family-heading);
  font-style: italic;
  font-synthesis: weight;
  line-height: 1.25;
  text-align: center;
}
.survey__h2-band {
  display: inline-block;
  font-size: 31px;
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-white);
  letter-spacing: -1.57px;
  background: linear-gradient(#ff0c0c 0 0) no-repeat;
  background-size: 100% 34px;
  background-position: 0 56%;
  padding-right: 2px;
}
.survey__h2-sub {
  font-size: 39px;
  font-weight: 600;
  color: var(--color-neutral-black);
  letter-spacing: -1.94px;
}
.survey__p {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: var(--font-weight-bold);
  color: var(--color-neutral-black);
  line-height: 1.5;
}
.survey__prize {
  width: 100%;
}
.survey__prize img {
  width: 100%;
  display: block;
}
.survey-label {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: var(--font-weight-bold);
  letter-spacing: -1.6px;
}

/* --- FaqSection ---------------------------------------------------------- */
.faq {
  background: var(--color-neutral-white);
  padding: var(--space-9) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.faq__header {
  text-align: center;
  margin-bottom: var(--space-2);
}
.faq__eyebrow {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-bold);
  font-size: 15px;
  color: #333;
}
.faq__title {
  font-family: var(--font-family-body);
  font-weight: 800;
  font-size: 33px;
  color: #fe0000;
  line-height: 1.1;
}
.faq-item {
  border-radius: 8px;
  overflow: hidden;
}
.faq-item__q {
  width: 100%;
  background: #eeeeee;
  border: none;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  text-align: left;
}
.faq-item__q-mark {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  color: #737373;
  flex-shrink: 0;
  line-height: 1;
}
.faq-item__q-text {
  flex: 1;
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-bold);
  font-size: 15px;
  color: #333;
  line-height: 1.45;
}
.faq-item__chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-item--closed .faq-item__chevron {
  transform: rotate(180deg);
}
.faq-item__a {
  background: #fff;
  display: flex;
  gap: 10px;
  padding: 13px 14px;
}
.faq-item--closed .faq-item__a {
  display: none;
}
.faq-item__a-mark {
  font-family: var(--font-family-body);
  font-weight: var(--font-weight-bold);
  font-size: 20px;
  color: #f90203;
  flex-shrink: 0;
  line-height: 1.3;
}
.faq-item__a-body {
  flex: 1;
  font-family: var(--font-family-body);
  font-size: 14px;
  color: #333;
  line-height: 1.7;
}
.faq-link {
  color: #1100ff;
  text-decoration: underline;
  word-break: break-all;
}
.faq-red {
  color: #f90203;
}

/* --- SiteFooter ---------------------------------------------------------- */
.footer {
  background: var(--color-neutral-white);
  padding: var(--space-9) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
}
.footer__img {
  width: 84%;
  max-width: 320px;
  display: block;
}
.footer__copy {
  color: #777777;
  text-align: center;
  font-size: 12.6px;
  line-height: 1.2;
  white-space: pre-line;
}
