/* ==========================================================================
   Saify — v2 stylesheet
   「先進性 × 遊び心」ステッカーポップな全面リニューアル版。
   黒の太枠 + ソリッドシャドウ + 丸角、ブランドカラーはv1と同一。
   ========================================================================== */

:root {
  --yellow: #ffcb24;
  --teal: #29b3c4;
  --green: #54b793;
  --red: #d14629;
  --purple: #b494de;
  --ink: #111;
  --paper: #fffdf6;
  --font-jp: "Noto Sans JP", sans-serif;
  --font-en: Montserrat, sans-serif;

  /* sticker parts */
  --line: 2.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --radius: 24px;

  /* springy easing */
  --pop: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* 横方向のはみ出しはスクロールにさせない(スマホの左右揺れ防止)。
   clip はスクロールコンテナ自体を作らない。hidden は旧ブラウザ用フォールバック */
html, body {
  overflow-x: hidden;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-jp);
  color: var(--ink);
  background: var(--paper);
  /* タッチ操作は縦スクロールとピンチズームだけに制限(横パン禁止)。
     overflow-x では防げない iOS Safari の横揺れ対策 */
  touch-action: pan-y pinch-zoom;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: 0; padding: 0; background: none; cursor: pointer; }

::selection { background: var(--yellow); }

/* --------------------------------------------------------------------------
   Shared pieces
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 32px;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--pop), box-shadow 0.25s var(--pop);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.btn--small { padding: 10px 22px; font-size: 14px; }

.store-badge img { height: 52px; width: auto; border-radius: 10px; }
.store-badge {
  display: inline-block;
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--pop), box-shadow 0.25s var(--pop);
}
.store-badge:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 5px 5px 0 var(--ink); }

.section-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  text-align: center;
  letter-spacing: 0.04em;
}

/* 波下線つきテキストリンク(外部導線) */
.arrow-link {
  font-weight: 800;
  text-decoration: underline wavy var(--teal) 3px;
  text-underline-offset: 7px;
  transition: color 0.2s ease;
}
.arrow-link:hover { color: var(--teal); }
.wavy { text-decoration: underline wavy var(--teal) 3px; text-underline-offset: 8px; }

/* soft rounded-square blob (brand decoration) */
.blob-shape { border-radius: 38%; display: block; }
.b-yellow { background: var(--yellow); }
.b-teal   { background: var(--teal); }
.b-green  { background: var(--green); }
.b-red    { background: var(--red); }
.b-purple { background: var(--purple); }

/* floating decorations: position via --fx/--fy, size via --fs, delay --fd */
.float {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  width: var(--fs, 48px);
  height: var(--fs, 48px);
  animation: bob 5s ease-in-out var(--fd, 0s) infinite;
  pointer-events: none;
}
.sparkle {
  width: auto; height: auto;
  font-size: 30px;
  color: var(--ink);
  animation: bob 4s ease-in-out var(--fd, 0s) infinite, twinkle 2.6s ease-in-out var(--fd, 0s) infinite;
}
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* scroll-in reveal (JS adds .in) */
.reveal { opacity: 0; transform: translateY(24px); }
.in { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s var(--pop); }

/* split headline: JS wraps chars in spans, then pops them in */
[data-split] .ch {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em) rotate(6deg);
}
[data-split].play .ch {
  opacity: 1;
  transform: none;
  transition: opacity 0.45s ease, transform 0.6s var(--pop);
  transition-delay: calc(var(--i) * 40ms);
}

/* --------------------------------------------------------------------------
   Top bar
   -------------------------------------------------------------------------- */

.topbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(1080px, calc(100% - 28px));
  display: flex;
  align-items: center;
  gap: 28px;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 10px 12px 10px 24px;
}
.topbar-logo { height: 30px; width: auto; }
.topbar-nav { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 700; }
.topbar-nav a { position: relative; }
.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -4px;
  height: 3px;
  border-radius: 2px;
  background: var(--yellow);
  transition: right 0.25s var(--pop);
}
.topbar-nav a:hover::after { right: 0; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 640px;
  height: 100svh;
  max-height: 980px; /* 超縦長画面での間延び防止 */
  background: var(--yellow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 6vw 90px;
}

.hero-grid {
  position: relative;
  z-index: 1; /* 浮遊装飾(.float)より前に */
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  align-items: center;
  gap: 4vw;
  max-width: 1160px;
  margin: 0 auto;
  width: 100%;
}

.hero-eyebrow {
  display: inline-block;
  background: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 26px;
  transform: rotate(-2deg);
}

.hero-title {
  font-size: clamp(34px, 6.2vw, 80px);
  font-weight: 900;
  line-height: 1.28;
  letter-spacing: 0.02em;
  white-space: nowrap; /* 行の折り返しは<br>のみ(句点の孤立を防ぐ) */
}

.hero-sub {
  margin-top: 26px;
  font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 500;
  line-height: 2;
}
.hero-sub em {
  font-style: normal;
  font-weight: 900;
  text-decoration: underline wavy var(--red) 3px;
  text-underline-offset: 6px;
}

.hero-actions { display: flex; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.hero-note { margin-top: 14px; font-size: 13px; font-weight: 700; opacity: 0.75; }

.hero-visual { position: relative; justify-self: center; }

.phone-float {
  width: min(310px, 64vw);
  animation: bob 6s ease-in-out infinite;
  will-change: transform;
}
/* 画像は端末シルエットの透過PNGなので、矩形のborder/box-shadowではなく
   シルエットに沿うdrop-shadowを使う(矩形だと絵が二重に見える) */
.phone-float img {
  filter: drop-shadow(10px 12px 0 rgba(17, 17, 17, 0.85));
}

/* rotating circular sticker (白地の円で電話の上に貼る) */
.sticker-spin {
  position: absolute;
  top: -38px;
  right: -30px;
  width: 130px;
  height: 130px;
  z-index: 2;
  background: #fff;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  animation: spin 14s linear infinite;
}
.sticker-spin text {
  font-family: var(--font-en);
  font-size: 13.2px;
  font-weight: 800;
  letter-spacing: 0.14em;
  fill: var(--ink);
}
@keyframes spin { to { transform: rotate(360deg); } }

.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 900;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
  background: var(--red);
  color: #fff;
}
.sticker--patent {
  width: 84px;
  height: 84px;
  left: -34px;
  bottom: 46px;
  font-size: 16px;
  line-height: 1.3;
  transform: rotate(-10deg);
  animation: bob 5s ease-in-out 0.8s infinite;
}

.scroll-hint {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.3em;
  animation: bob 2.2s ease-in-out infinite;
}

/* --------------------------------------------------------------------------
   Ticker ribbons
   -------------------------------------------------------------------------- */

.ticker { position: relative; z-index: 2; overflow: clip; } /* 回転分のはみ出しを切る */
.ticker-row {
  overflow: hidden;
  white-space: nowrap;
  border-top: var(--line);
  border-bottom: var(--line);
  font-family: var(--font-en);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.1em;
  padding: 12px 0;
}
.ticker-row--dark { background: var(--ink); color: var(--yellow); transform: rotate(-1.4deg) scale(1.02); }
.ticker-row--light { background: #fff; color: var(--ink); transform: rotate(1deg) scale(1.02); margin-top: -6px; }
.ticker-track { display: inline-block; animation: ticker 28s linear infinite; }
.ticker-track--rev { animation-direction: reverse; }
.ticker-track span { display: inline-block; padding-right: 0.5em; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------------------
   Showcase — sticky phone that changes theme while scrolling
   -------------------------------------------------------------------------- */

.showcase { background: var(--paper); padding: 10vh 6vw; }
.showcase-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  max-width: 1080px;
  margin: 0 auto;
}

.showcase-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-phone {
  position: relative;
  width: min(300px, 70vw);
  aspect-ratio: 616 / 1242;
}
.showcase-phone .screen {
  position: absolute;
  inset: 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.92) rotate(-3deg);
  transition: opacity 0.5s ease, transform 0.6s var(--pop);
}
.showcase-phone .screen.is-active { opacity: 1; transform: none; }

.showcase-steps { display: flex; flex-direction: column; }
.showcase-step {
  min-height: 88svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.step-tag {
  align-self: flex-start;
  background: var(--teal);
  color: #fff;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.1em;
  transform: rotate(-2deg);
}
.showcase-step h2 { font-size: clamp(26px, 3.4vw, 44px); font-weight: 900; line-height: 1.4; }
.showcase-step p:not(.step-tag) { font-size: 16px; line-height: 2; font-weight: 500; }

/* --------------------------------------------------------------------------
   Theme gallery — Saify Storeのきせかえテーマが流れる棚
   -------------------------------------------------------------------------- */

.gallery {
  position: relative;
  padding: 90px 0 80px;
  background: var(--yellow) url("../assets/img/store/arrivals-bg.png") center / 480px repeat;
  border-top: var(--line);
  border-bottom: var(--line);
  overflow: hidden;
  text-align: center;
}
.gallery-eyebrow {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3em;
  margin-bottom: 14px;
}

.theme-track {
  display: flex;
  width: max-content;
  margin-top: 46px;
  animation: ticker 26s linear infinite;
}
.gallery:hover .theme-track { animation-play-state: paused; }

.theme-set { display: flex; gap: 30px; padding-right: 30px; }

.theme-card {
  display: block;
  width: 250px;
  background: #fff;
  border: var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 10px 10px 12px;
  transform: rotate(-2deg);
  transition: transform 0.3s var(--pop), box-shadow 0.3s var(--pop);
}
.theme-set .theme-card:nth-child(even) { transform: rotate(2deg); }
.theme-card:hover { transform: rotate(0deg) scale(1.06); box-shadow: var(--shadow); z-index: 1; }
.theme-card img { border-radius: 10px; width: 100%; }
.theme-name { font-size: 14px; font-weight: 800; margin-top: 10px; }

/* ホバーで「きせかえ後の画面」がカードからせり上がる */
.theme-media { position: relative; display: block; overflow: hidden; border-radius: 10px; }
.theme-peek {
  position: absolute;
  left: 50%;
  top: 105%;
  width: 48%;
  transform: translateX(-50%);
  border: 2px solid var(--ink);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: top 0.45s var(--pop);
}
.theme-card:hover .theme-peek { top: 7%; }

/* チラ見せのヒントはホバーできる環境でだけ出す */
.gallery-hint { display: none; font-size: 13px; font-weight: 700; margin-top: 12px; opacity: 0.75; }
@media (hover: hover) { .gallery-hint { display: block; } }

.gallery-cta { margin-top: 46px; }

/* --------------------------------------------------------------------------
   Bento features
   -------------------------------------------------------------------------- */

.bento { position: relative; padding: 14vh 6vw; overflow: hidden; }
.bento-bgtext {
  position: absolute;
  top: 2vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-en);
  font-size: clamp(80px, 16vw, 230px);
  font-weight: 900;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(17, 17, 17, 0.08);
  white-space: nowrap;
  pointer-events: none;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 60px auto 0;
}
.bento-card {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.3s var(--pop), box-shadow 0.3s var(--pop);
  will-change: transform;
}
.bento-card:hover { box-shadow: 10px 10px 0 var(--ink); }

.card--yellow { grid-column: span 7; background: var(--yellow); }
.card--teal   { grid-column: span 5; background: var(--teal); color: #fff; }
.card--white  { grid-column: span 5; background: #fff; }
.card--black  { grid-column: span 7; background: var(--ink); color: #fff; }

/* JPYC対応カード(アプリ側) */
.card--purple { grid-column: span 6; background: var(--purple); }

.card-head { display: flex; align-items: center; gap: 14px; }
.jpyc-icon {
  flex: none;
  width: 52px;
  height: 52px;
  padding: 3px;
  background: #fff;
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--pop);
}
.bento-card:hover .jpyc-icon { transform: rotate(-10deg) scale(1.1); }

/* Saify Storeカード(JPYC決済) — 右上に¥100〜の値札 */
.card--green {
  grid-column: span 6;
  background: var(--green);
  color: #fff;
  padding-right: 160px;
}

/* Storeカード内のNFTサムネイルの扇(ホバーで広がる) */
.nft-fan { display: flex; margin: 8px 0 14px; padding-left: 8px; }
.nft-fan img {
  width: 96px;
  border-radius: 14px;
  border: var(--line);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--pop);
}
.nft-fan img:nth-child(1) { transform: rotate(-8deg); }
.nft-fan img:nth-child(2) { transform: rotate(2deg) translateY(-8px); margin-left: -20px; }
.nft-fan img:nth-child(3) { transform: rotate(10deg); margin-left: -20px; }
.bento-card:hover .nft-fan img:nth-child(1) { transform: rotate(-14deg) translate(-8px, -4px); }
.bento-card:hover .nft-fan img:nth-child(2) { transform: rotate(0deg) translateY(-14px); }
.bento-card:hover .nft-fan img:nth-child(3) { transform: rotate(16deg) translate(8px, -4px); }

.price-sticker {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 128px;
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  border: var(--line);
  box-shadow: var(--shadow-sm);
  transform: rotate(8deg);
  text-align: center;
}
.price-sticker span { font-size: 11px; font-weight: 800; }
.price-sticker strong { font-family: var(--font-en); font-size: 32px; font-weight: 900; line-height: 1.1; }
.bento-card:hover .price-sticker { transform: rotate(-4deg) scale(1.08); transition: transform 0.3s var(--pop); }

.card-num {
  font-family: var(--font-en);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2em;
  opacity: 0.7;
}
.bento-card h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }
.bento-card > p:not(.card-num):not(.card-foot) { font-size: 15px; line-height: 1.9; font-weight: 500; }
.card-foot {
  margin-top: auto;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  background: #fff;
  color: var(--ink);
  border: var(--line);
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}

/* theme swatches (card 01) */
.swatches { display: flex; gap: 10px; margin: 8px 0 14px; }
.swatches span {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: var(--line);
  transition: transform 0.25s var(--pop);
}
.swatches span:nth-child(1) { background: var(--teal); }
.swatches span:nth-child(2) { background: var(--red); }
.swatches span:nth-child(3) { background: #fff; }
.swatches span:nth-child(4) { background: var(--purple); }
.swatches span:nth-child(5) { background: var(--green); }
.bento-card:hover .swatches span { transform: translateY(-6px) rotate(-6deg); }
.bento-card:hover .swatches span:nth-child(even) { transform: translateY(-10px) rotate(6deg); }

/* カード内のStoreリンク */
.card-cta { align-self: flex-start; margin-bottom: 10px; }

/* QR motif (card 02) */
.qr-motif {
  display: grid;
  grid-template-columns: repeat(3, 22px);
  gap: 6px;
  margin: 8px 0 14px;
}
.qr-motif span { width: 22px; height: 22px; background: #fff; border-radius: 6px; opacity: 0.9; }
.qr-motif span:nth-child(2n) { opacity: 0.45; }
.bento-card:hover .qr-motif span { animation: twinkle 1.2s ease-in-out infinite; }
.qr-motif span:nth-child(2) { animation-delay: 0.15s; }
.qr-motif span:nth-child(5) { animation-delay: 0.3s; }
.qr-motif span:nth-child(8) { animation-delay: 0.45s; }

.card-coins { width: 88%; margin: 6px auto 0; }

.shield {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  border: 2.5px solid #fff;
  font-size: 34px;
  font-weight: 900;
  margin: 6px 0;
  transition: transform 0.3s var(--pop);
}
.bento-card:hover .shield { transform: rotate(-8deg) scale(1.1); }

/* --------------------------------------------------------------------------
   3 STEP
   -------------------------------------------------------------------------- */

.start { padding: 12vh 6vw; background: #fff; border-top: var(--line); border-bottom: var(--line); }
.start-sub { text-align: center; margin-top: 16px; font-weight: 500; }

.start-steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1000px;
  margin: 56px auto 0;
}
.start-step {
  position: relative;
  border: var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  padding: 34px 26px 28px;
  transition: transform 0.3s var(--pop);
}
.start-step:hover { transform: translateY(-6px) rotate(-1deg); }
.start-step:nth-child(2):hover { transform: translateY(-6px) rotate(1deg); }

.start-num {
  position: absolute;
  top: -22px;
  left: 22px;
  background: var(--teal);
  color: #fff;
  font-family: var(--font-en);
  font-size: 20px;
  font-weight: 800;
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  padding: 6px 16px;
  transform: rotate(-3deg);
}
.start-step h3 { font-size: 20px; font-weight: 900; margin-bottom: 10px; }
.start-step p { font-size: 14px; line-height: 1.9; font-weight: 500; }

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq { padding: 12vh 6vw; }
.faq-list { max-width: 860px; margin: 50px auto 0; display: flex; flex-direction: column; gap: 20px; }

.faq-item {
  border: var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.3s var(--pop);
}
.faq-item:hover { box-shadow: var(--shadow); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 64px 22px 22px;
  position: relative;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
}
.mark {
  flex: none;
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: var(--line);
  background: var(--green);
  color: #fff;
  font-family: var(--font-en);
  font-size: 18px;
  font-weight: 800;
}
.mark--a { background: var(--red); }

.faq-icon { position: absolute; right: 24px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); }
.faq-icon::before, .faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 100%; height: 3.5px;
  border-radius: 2px;
  background: var(--ink);
  transform: translateY(-50%);
  transition: transform 0.35s var(--pop);
}
.faq-item.is-closed .faq-icon::after { transform: translateY(-50%) rotate(90deg); }

.faq-a { display: grid; grid-template-rows: 1fr; transition: grid-template-rows 0.4s var(--pop); }
.faq-item.is-closed .faq-a { grid-template-rows: 0fr; }
.faq-a-inner { overflow: hidden; }
.faq-a-body { display: flex; gap: 16px; padding: 4px 24px 26px 22px; }
.faq-a-body p { font-size: 15px; line-height: 2; font-weight: 500; }

/* --------------------------------------------------------------------------
   Finale (dark CTA)
   -------------------------------------------------------------------------- */

.finale {
  position: relative;
  background: var(--ink);
  color: #fff;
  text-align: center;
  padding: 16vh 6vw;
  overflow: hidden;
}
.finale-title {
  position: relative;
  z-index: 1; /* 浮遊装飾より前に */
  font-size: clamp(30px, 5.6vw, 72px);
  font-weight: 900;
  line-height: 1.4;
  white-space: nowrap;
}
.finale-stores {
  display: flex;
  justify-content: center;
  gap: 34px;
  margin-top: 50px;
  flex-wrap: wrap;
}
.finale-store {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  color: var(--ink);
  border-radius: 18px;
  border: 2.5px solid #fff;
  padding: 12px 16px;
}
.finale-store .qr { width: 64px; height: 64px; }
.finale .store-badge { box-shadow: none; }
.finale .store-badge:hover { box-shadow: none; transform: scale(1.05) rotate(-1.5deg); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.footer { background: var(--ink); color: #fff; text-align: center; padding: 0 6vw 30px; }
.footer-logo { height: 44px; width: auto; margin: 0 auto 22px; filter: invert(1); }
.footer-notes { font-size: 11px; opacity: 0.6; line-height: 1.8; }
.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 22px;
  font-size: 13px;
}
.footer-links img { width: 30px; filter: invert(1); }
.footer-links a:hover { text-decoration: underline; }
.footer-copyright { margin-top: 26px; font-family: var(--font-en); font-weight: 700; font-size: 13px; opacity: 0.8; }

/* --------------------------------------------------------------------------
   Tablet (≤990px): ベントーは1カラムに
   -------------------------------------------------------------------------- */

@media screen and (max-width: 990px) {
  .bento-grid { grid-template-columns: 1fr; }
  .card--yellow, .card--teal, .card--white, .card--black,
  .card--purple, .card--green { grid-column: auto; }
}

/* --------------------------------------------------------------------------
   Mobile (≤760px)
   -------------------------------------------------------------------------- */

@media screen and (max-width: 760px) {
  .topbar { gap: 12px; padding: 8px 10px 8px 18px; }
  .topbar-nav { display: none; }
  .topbar .btn--small { margin-left: auto; }

  /* モバイルは中身(見出し+電話)が100svhを超えるので高さ固定をやめる */
  .hero { height: auto; min-height: 100svh; max-height: none; padding: 120px 7vw 80px; }
  .hero .blob-shape,
  .finale .blob-shape { display: none; } /* 見出しに被るため。✦は残す */

  /* 特許ステッカーは電話の左下の角に小さく */
  .sticker--patent { width: 64px; height: 64px; font-size: 13px; left: -14px; bottom: -6px; }
  .hero-grid { grid-template-columns: 1fr; gap: 54px; }
  .hero-actions { justify-content: flex-start; }
  .store-badge img { height: 44px; }
  .sticker-spin { right: -14px; }
  .sticker--patent { left: -12px; }

  .showcase-inner { grid-template-columns: 1fr; }
  /* 電話は画面上半分に固定し、テキストは下半分に流す(重なり防止) */
  .showcase-sticky {
    position: sticky;
    top: 0;
    height: 54svh;
    z-index: 1;
    align-items: flex-end;
    background: var(--paper); /* 下から来るテキストをきれいに隠すマスク */
  }
  .showcase-phone { width: min(190px, 48vw); }
  .showcase-step {
    min-height: 92svh;
    padding-top: 58svh; /* 電話マスク(54svh)にタグが食い込まない余白 */
    justify-content: flex-start;
    text-align: center;
    align-items: center;
    gap: 12px;
  }
  .step-tag { align-self: center; }
  .showcase-step h2 { font-size: 24px; }
  .showcase-step p:not(.step-tag) { font-size: 14px; }

  .bento-grid { grid-template-columns: 1fr; }
  .card--yellow, .card--teal, .card--white, .card--black, .card--purple, .card--green { grid-column: auto; }
  .card--green { padding-right: 28px; }
  .price-sticker { position: static; margin: 6px auto 0; transform: rotate(-4deg); }

  .start-steps { grid-template-columns: 1fr; gap: 40px; }

  .faq-q { font-size: 14px; padding: 18px 52px 18px 16px; }
  .faq-icon { right: 18px; }

  .finale-stores { gap: 18px; }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, [data-split] .ch { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
