/* 予告ページ。色と書体はアートバイブル v0.1（app/lib/ui/theme/tokens.dart と同じ値）。
   紙7・インク2・ゼリー1。ゼリー色はシールとごほうび（予約のボタン）だけ。 */

@font-face { font-family: "Zen Maru Gothic"; src: url(/fonts/zen-maru-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url(/fonts/zen-maru-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Zen Maru Gothic"; src: url(/fonts/zen-maru-900.woff2) format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Mochiy Pop One"; src: url(/fonts/mochiy.woff2) format("woff2"); font-display: block; }
@font-face { font-family: "DM Mono"; src: url(/fonts/dm-mono-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --paper: #FBF6EE;
  --mount: #F3EADB;
  --grid: #ECE2D4;
  --white: #FFFFFF;
  --card: #FFFDF8;
  --plum: #3B2340;
  --sub: #6B5670;
  --rose: #B0306A;
  --jelly: #FF7EB6;
  --mark: #FFC7DC;
  --shadow: 0 5px 0 rgba(59, 35, 64, .10), 0 8px 18px rgba(59, 35, 64, .10);
  --radius: 28px;
  --gut: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--plum);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", sans-serif;
  font-weight: 500;
  line-height: 1.8;
  background-color: var(--paper);
  background-image: linear-gradient(var(--grid) 1.5px, transparent 1.5px), linear-gradient(90deg, var(--grid) 1.5px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: -1px -1px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.mono { font-family: "DM Mono", ui-monospace, monospace; font-weight: 500; letter-spacing: .06em; }
.logo { font-family: "Mochiy Pop One", "Zen Maru Gothic", sans-serif; font-weight: 400; }
.nb { display: inline-block; }
.mark { background: linear-gradient(transparent 58%, var(--mark) 58%, var(--mark) 92%, transparent 92%); padding: 0 .1em; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--plum); color: var(--paper); padding: 8px 14px; border-radius: 999px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

/* 段階の出し分け（data-phase は Worker が入れる） */
.phase-preorder, .phase-live { display: none; }
html[data-phase="preorder"] .phase-teaser, html[data-phase="live"] .phase-teaser { display: none; }
html[data-phase="preorder"] .phase-preorder, html[data-phase="live"] .phase-live { display: block; }

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: .7em 1.4em; border-radius: 999px;
  font-weight: 900; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn-ink { background: var(--plum); color: var(--paper); box-shadow: 0 4px 0 #1f1022; }
.btn-line { background: var(--card); color: var(--plum); border: 2.5px solid var(--plum); }
.btn-jelly { background: var(--jelly); color: var(--plum); border: 2.5px solid var(--plum); box-shadow: 0 5px 0 var(--plum); }
.btn-jelly:active { box-shadow: 0 3px 0 var(--plum); }
.btn-big { font-size: 1.15rem; min-height: 60px; padding: .8em 2em; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  max-width: 1180px; margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 40px) var(--gut) 24px;
  display: grid; gap: 8px;
  grid-template-columns: 1fr;
}
.tape { position: absolute; background: #FFB59A; opacity: .55; }
.tape-a { width: 150px; height: 34px; top: -6px; left: 52%; transform: rotate(-2deg); }
.kicker { font-size: .85rem; letter-spacing: .3em; color: var(--sub); }
.hero .logo { white-space: nowrap; font-size: clamp(4.2rem, 19vw, 8.6rem); line-height: 1.05; letter-spacing: .02em; margin-top: .1em; }
.sub { font-size: clamp(1.45rem, 6vw, 2.3rem); font-weight: 900; margin-top: .3em; }
.lead { font-size: clamp(1.1rem, 4.4vw, 1.5rem); font-weight: 900; margin-top: .8em; line-height: 1.6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2em; }
.chips li { border: 2.5px solid var(--plum); border-radius: 999px; padding: .2em 1em; font-weight: 900; background: var(--card); }
.cta { margin-top: 1.8em; }
.cta-date { font-weight: 900; font-size: 1.15rem; }
.cta-date .mono { color: var(--rose); margin-right: .3em; }
.cta-note { color: var(--sub); font-size: .92rem; margin-top: .4em; }
.cta .btn-big { margin-top: .7em; }
.sns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1em; }

.hero-art { position: relative; aspect-ratio: 1 / 1; max-width: 560px; width: 100%; margin: 8px auto 0; }
/* スマホは、ロゴのすぐ下にペタリコを出す（最初の画面に相棒が見えるように） */
@media (max-width: 899px) {
  .hero { gap: 0; }
  .hero-text { display: contents; }
  .hero-text > * { min-width: 0; }
  .hero-art { order: 1; max-width: 360px; margin: -4px auto -12px; }
  .lead, .chips, .cta { order: 2; }
  .chips li { font-size: .9rem; padding: .15em .9em; }
}
.hero-art .pet { position: absolute; width: 62%; left: 19%; top: 20%; filter: drop-shadow(0 10px 14px rgba(59, 35, 64, .16)); }
.hero-art .stk { position: absolute; width: 30%; }
.s1 { left: 2%; top: 4%; --r: -8deg; }
.s2 { right: 0; top: 0; --r: 7deg; animation-delay: -1.2s !important; }
.s3 { left: -2%; top: 58%; --r: 5deg; animation-delay: -2.4s !important; }
.s4 { right: 2%; top: 66%; --r: -6deg; animation-delay: -3.1s !important; }
.s5 { left: 36%; top: 78%; width: 24% !important; --r: 3deg; animation-delay: -.6s !important; }
.postmark {
  position: absolute; display: grid; place-items: center; align-content: center;
  width: 96px; height: 96px; border-radius: 50%;
  border: 3.5px solid var(--rose); box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 5.5px var(--rose);
  color: var(--rose); transform: rotate(-14deg); line-height: 1.3; font-size: .78rem; text-align: center;
}
.postmark::after {
  content: ""; position: absolute; left: 100%; top: 30%; width: 56px; height: 40%;
  background: repeating-linear-gradient(transparent 0 6px, var(--rose) 6px 8.5px, transparent 8.5px 14px);
  -webkit-mask: radial-gradient(circle at 8px 50%, #000 0, #000 100%); opacity: .85; border-radius: 4px;
}
.pm-hero { right: 0; top: 36%; width: 84px; height: 84px; font-size: .7rem; }
.pm-hero::after { display: none; }
@media (min-width: 900px) { .pm-hero { right: -2%; top: 40%; width: 96px; height: 96px; font-size: .78rem; } }
.pm-hero span:last-child { font-size: 1.05rem; }

@media (prefers-reduced-motion: no-preference) {
  .float { animation: float 5.5s ease-in-out infinite; }
  .drift { animation: drift 7s ease-in-out infinite; }
}
.drift { transform: rotate(var(--r, 0deg)); }
@keyframes float { 50% { transform: translateY(-12px) rotate(-1.5deg); } }
@keyframes drift { 0%, 100% { transform: rotate(var(--r)) translateY(0); } 50% { transform: rotate(calc(var(--r) * -.5)) translateY(-8px); } }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.05fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 40px; }
  .hero-art { margin: 0; }
  .hero .logo { font-size: clamp(5rem, 8.6vw, 8.6rem); }
}

/* ---------- 節 ---------- */
.sec { max-width: 1180px; margin: 0 auto; padding: 56px var(--gut); }
.sec h2 { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 900; line-height: 1.35; }
.sec h2 .en { font-size: .85rem; color: var(--sub); letter-spacing: .25em; margin-left: .5em; white-space: nowrap; }
.sec-lead { margin-top: .8em; color: var(--sub); font-weight: 700; }
.card { background: var(--card); border: 2.5px solid var(--plum); border-radius: var(--radius); box-shadow: var(--shadow); }

/* 遊びかた */
.steps { display: grid; gap: 18px; margin-top: 28px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1180px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps .card { padding: 14px 14px 22px; }
.steps h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 900; margin: 16px 6px 6px; }
.steps p { margin: 0 6px; color: var(--sub); font-size: .95rem; line-height: 1.75; }
.num { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--jelly); color: var(--white); font-size: 1rem; flex: none; }
.card-art { position: relative; aspect-ratio: 4 / 3.4; border-radius: 18px; overflow: hidden; background: var(--paper); border: 1.5px solid var(--grid); }
.art-map img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; }
.art-letter { aspect-ratio: auto; background: var(--plum); display: grid; justify-items: center; align-content: center; gap: 4px; padding: 12px; }
.art-letter img { width: 44%; }
.quote { background: var(--card); color: var(--plum); border-radius: 12px; padding: 8px 12px; font-size: .72rem; line-height: 1.6; font-weight: 700; }
.art-trade { background: #FFEFF6; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px; }
.art-trade .t1 { transform: rotate(-6deg); }
.art-trade .t2 { transform: rotate(6deg); }
.swap { font-size: 2rem; font-weight: 900; }
.stamp-osoroi { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%) rotate(-5deg); border: 2px solid var(--rose); color: var(--rose); border-radius: 8px; padding: 0 .6em; font-weight: 900; font-size: .9rem; background: var(--card); white-space: nowrap; }
.art-book { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 14px; background: var(--mount); }
.art-book img { width: 100%; }
.slot { border: 2px dashed #C9B8C6; border-radius: 14px; background: rgba(255, 255, 255, .45); }

/* 版 */
.ed-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(8px, 3vw, 28px); margin-top: 28px; max-width: 820px; }
.ed-row li { position: relative; display: grid; justify-items: center; gap: 6px; }
.ed-label { font-weight: 900; display: grid; justify-items: center; line-height: 1.3; font-size: clamp(.85rem, 3.4vw, 1.05rem); }
.ed-label small { color: var(--sub); font-size: .78rem; }
.holo::after {
  content: ""; position: absolute; inset: 0 0 auto 0; aspect-ratio: 576 / 520;
  -webkit-mask: var(--src) center / contain no-repeat; mask: var(--src) center / contain no-repeat;
  background: linear-gradient(115deg, transparent 20%, #FFC2E6 35%, #C9B4FF 45%, #8FE3FF 55%, #C8FFE0 65%, transparent 80%) 0 0 / 300% 100%;
  mix-blend-mode: soft-light; opacity: .8; pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) { .holo::after { animation: holo 3.6s ease-in-out infinite; } }
@keyframes holo { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

/* 特典 */
.bonus-cards { display: grid; gap: 18px; margin-top: 28px; }
@media (min-width: 760px) { .bonus-cards { grid-template-columns: 1fr 1fr; } }
.bonus-card { position: relative; padding: 22px 22px 26px; }
.badge { display: inline-block; background: var(--plum); color: var(--paper); border-radius: 999px; padding: .1em .9em; font-size: .8rem; letter-spacing: .14em; }
.bonus-art { position: relative; height: 180px; display: grid; place-items: center; margin: 10px 0 6px; }
.pet-holo { height: 170px; width: auto; max-width: none; filter: drop-shadow(0 8px 12px rgba(59, 35, 64, .14)); }
.pm-ticket { right: 8%; top: 16px; width: 82px; height: 82px; font-size: .8rem; }
.pm-ticket::after { display: none; }
.env { height: 150px; width: auto; max-width: none; transform: rotate(-4deg); filter: drop-shadow(0 6px 10px rgba(59, 35, 64, .14)); }
.bonus-card h3 { font-size: 1.05rem; font-weight: 900; line-height: 1.5; color: var(--sub); }
.bonus-name { font-size: 1.3rem; color: var(--plum); }
.bonus-card p:last-child { margin-top: .5em; color: var(--sub); font-size: .95rem; }

.fog { margin-top: 22px; padding: 22px clamp(14px, 4vw, 22px); display: grid; gap: 18px; }
@media (min-width: 900px) { .fog { grid-template-columns: 1fr 1.05fr; grid-template-areas: "head map" "goals map" "fine fine"; padding: 32px; column-gap: 32px; } .fog-head { grid-area: head; } .fog-map { grid-area: map; } .goals { grid-area: goals; } .fine { grid-area: fine; } }
.fog h3 { font-size: 1.45rem; font-weight: 900; }
.fog-head p { margin-top: .5em; color: var(--sub); font-size: .95rem; }
.fog-head strong { color: var(--plum); }
.count { display: flex; align-items: baseline; gap: .3em; margin-top: .6em !important; color: var(--plum) !important; font-weight: 900; }
.count-num { font-size: clamp(2.6rem, 11vw, 3.6rem); color: var(--rose); line-height: 1; letter-spacing: .02em; }
.fog-map { position: relative; border-radius: 20px; overflow: hidden; border: 1.5px solid var(--grid); align-self: start; }
.fog-map .map { width: 100%; }
.map-title { position: absolute; left: 5.2%; top: 5.6%; transform: rotate(-3deg); transform-origin: left top; font-weight: 900; font-size: clamp(.7rem, 2.6vw, 1.05rem); line-height: 1; display: flex; align-items: baseline; gap: .6em; }
.map-title small { font-size: .55em; color: var(--sub); letter-spacing: .08em; }
.isl { position: absolute; transform: translate(-50%, -50%); width: 22%; aspect-ratio: 1; display: grid; place-items: center; pointer-events: none; }
.isl::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; background: radial-gradient(closest-side, rgba(251, 246, 238, .97) 55%, rgba(251, 246, 238, .7) 75%, rgba(251, 246, 238, 0)); transition: opacity .8s ease; }
.isl img { position: relative; width: 92%; transition: opacity .8s ease, transform .8s ease; }
.isl[data-done]::before { opacity: 0; }
.isl b { position: absolute; top: 74%; font-size: clamp(.6rem, 2.3vw, .8rem); font-weight: 900; white-space: nowrap; padding: 0 .3em; border-radius: 6px; background: rgba(255, 253, 248, .9); opacity: 0; transition: opacity .8s ease .3s; }
.isl[data-done] img { opacity: 0; transform: scale(1.3) translateY(-8px); }
.isl[data-done] b { opacity: 1; }
.goals { display: grid; gap: 8px; align-content: start; }
.goals li { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-areas: "n isl" "gift gift"; column-gap: 10px; padding: 10px 60px 10px 14px; border-radius: 16px; background: var(--paper); border: 1.5px dashed #C9B8C6; }
.goal-n { grid-area: n; font-size: 1rem; color: var(--sub); }
.goal-isl { grid-area: isl; align-self: center; }
.goal-gift { grid-area: gift; }
@media (min-width: 480px) { .goals li { grid-template-columns: 4.4em 1fr; grid-template-areas: "n isl" "n gift"; } .goal-n { align-self: center; font-size: 1.15rem; } }
.goal-isl { font-size: .78rem; color: var(--sub); font-weight: 700; }
.goal-gift { font-weight: 900; line-height: 1.5; }
.goal-mark { position: absolute; right: 12px; top: 50%; width: 44px; height: 44px; margin-top: -22px; display: grid; place-items: center; border-radius: 50%; border: 2.5px solid var(--rose); color: var(--rose); font-weight: 900; font-size: .78rem; transform: rotate(-14deg) scale(.6); opacity: 0; transition: .4s cubic-bezier(.3, 1.6, .5, 1); }
.goals li[data-done] { background: #FFF3F8; border-style: solid; border-color: var(--mark); }
.goals li[data-done] .goal-n { color: var(--rose); }
.goals li[data-done] .goal-mark { opacity: 1; transform: rotate(-14deg) scale(1); }
.fine { font-size: .8rem; color: var(--sub); }

/* 旅BASE */
.plans { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(5, 1fr); } }
.plans a { display: grid; gap: 2px; padding: 10px 14px; height: 100%; border-radius: 18px; background: var(--card); border: 2px solid var(--plum); text-decoration: none; transition: transform .15s ease; box-shadow: 0 3px 0 rgba(59, 35, 64, .12); }
.plans a:hover { transform: translateY(-2px); }
.plans b { font-weight: 900; font-size: 1.05rem; display: flex; align-items: center; gap: .45em; }
.plans b::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--c, var(--mount)); border: 2px solid var(--l, var(--plum)); flex: none; }
.plans span { font-size: .8rem; color: var(--sub); line-height: 1.5; }
.plans span::after { content: " ↗"; }
.land-yu { --c: #FF9E7A; --l: #C9583A; }
.land-um { --c: #3CCFCF; --l: #1E8F96; }
.land-mo { --c: #8BE0A4; --l: #3E9A5E; }
.land-yk { --c: #C4DAFF; --l: #6C86C4; }
.land-ma { --c: #FFE45C; --l: #B08A00; }
.land-ko { --c: #A98BFF; --l: #6A4FC4; }

/* よくある質問 */
.faq dl { margin-top: 24px; display: grid; gap: 10px; max-width: 820px; }
.faq dl > div { background: var(--card); border: 2px solid var(--plum); border-radius: 20px; padding: 14px 18px; }
.faq dt { font-weight: 900; }
.faq dt::before { content: "Q"; font-family: "DM Mono", monospace; color: var(--rose); margin-right: .6em; }
.faq dd { color: var(--sub); font-size: .95rem; margin-top: .2em; }

/* フッター */
.foot { background: var(--plum); color: var(--paper); text-align: center; padding: 48px var(--gut) calc(env(safe-area-inset-bottom) + 36px); margin-top: 32px; border-radius: 36px 36px 0 0; }
.foot-pet { width: 110px; margin: -100px auto 0; }
.foot-logo { font-size: 2.2rem; margin-top: 8px; }
.foot-sns { justify-content: center; }
.foot-sns a { color: var(--paper); font-weight: 900; text-decoration: none; border: 2px solid rgba(251, 246, 238, .5); border-radius: 999px; padding: .3em 1.1em; }
.foot-note { margin-top: 1em; font-size: .85rem; opacity: .85; }
.foot-docs { font-size: .8rem; }
.foot-docs a { white-space: nowrap; }
.foot-note.small { font-size: .7rem; opacity: .6; }
