/* DAY//ZERO — 紹介・サポートサイト。スクリプトも外部の読み込みもなし。 */

:root {
  --bg: #fbf8f3;
  --card: #ffffff;
  --ink: #1d1626;
  --sub: #675d72;
  --faint: #9a90a4;
  --line: #ece5da;
  --gold: #f2b674;
  --gold-deep: #c9853f;
  --red: #d65e52;
  --plum: #2c1e4a;
  --night: #16121d;
  --cream: #f6ecd8;
  --sunset: linear-gradient(180deg, #2c1e4a 0%, #703a70 38%, #d66868 66%, #f6a262 86%, #fcd68c 100%);
  --radius: 28px;
  --shadow: 0 1px 0 rgba(29, 22, 38, .04), 0 18px 48px -24px rgba(44, 30, 74, .28);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --round: "Hiragino Maru Gothic ProN", "Zen Maru Gothic", "Hiragino Sans", "Yu Gothic", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.8 var(--font);
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.3; letter-spacing: .01em; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

/* ---- 上の帯 ---- */
.bar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(20px, env(safe-area-inset-left)) 14px max(20px, env(safe-area-inset-right));
  background: rgba(251, 248, 243, .82);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid rgba(236, 229, 218, .7);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-icon { width: 32px; height: 32px; border-radius: 8px; }
.brand-mark { width: 106px; height: auto; image-rendering: pixelated; }
.bar-nav { display: flex; gap: 22px; font-size: 14px; font-weight: 600; }
.bar-nav a { text-decoration: none; color: var(--sub); }
.bar-nav a:hover { color: var(--ink); }

/* ---- はじめの画面 ---- */
.hero { text-align: center; padding: 56px 20px 40px; max-width: 1120px; margin: 0 auto; position: relative; }
.hero-icon {
  width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 22px;
  box-shadow: 0 20px 40px -18px rgba(214, 94, 82, .55), 0 2px 0 rgba(0, 0, 0, .04);
  animation: float 5s ease-in-out infinite;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--sub);
  background: var(--card); border: 1px solid var(--line);
  padding: 5px 14px 5px 12px; border-radius: 999px;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(242, 182, 116, .22); }
.pill .sep { color: var(--faint); }
h1 {
  margin-top: 22px;
  font-size: clamp(40px, 8vw, 76px);
  font-weight: 800;
  letter-spacing: .02em;
  line-height: 1.18;
}
h1 mark {
  background: linear-gradient(transparent 62%, rgba(242, 182, 116, .55) 62%, rgba(242, 182, 116, .55) 92%, transparent 92%);
  color: inherit; padding: 0 .06em;
}
.lead { margin: 22px auto 0; max-width: 34em; color: var(--sub); font-size: clamp(15px, 2.2vw, 18px); }
.cta { margin-top: 30px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.store, .ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15px; text-decoration: none;
}
.store { background: var(--ink); color: #fff; box-shadow: 0 10px 24px -12px rgba(29, 22, 38, .6); }
.ghost { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.ghost:hover { border-color: #d9cfc1; }
.note {
  position: absolute; left: calc(50% + 214px); top: 548px;
  display: flex; align-items: flex-end; gap: 4px;
  font: 700 15px/1.2 var(--round); color: var(--gold-deep);
  transform: rotate(-6deg);
}
.note-arrow { transform: scaleX(-1) rotate(10deg); color: var(--gold-deep); }

/* 歩いていく景色。森の絵（左右反転をつないだ一周ぶん）を、足の運びと同じ速さで流す。 */
.stage { margin: 54px auto 0; max-width: 1040px; }
.scene {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 7;
  border-radius: var(--radius);
  background: var(--plum);
  box-shadow: 0 40px 80px -40px rgba(44, 30, 74, .6), 0 0 0 1px rgba(29, 22, 38, .06);
}
.scroll {
  position: absolute; left: 0; top: 0; height: 100%;
  aspect-ratio: 6 / 1; /* 景色の一周（幅は高さの3倍）を2回ぶん */
  background: url("/assets/forest-loop.webp") 0 0 / auto 100% repeat-x;
  animation: road 35.7s linear infinite;
}
/* 旅人の背丈は景色の高さの48%。一周1秒で背丈の28/160進む。一周ぶんの景色（高さの3倍）を流す時間は 3/(0.48×0.175)。 */
.walker {
  position: absolute; left: 30%; bottom: 24%;
  height: 48%; aspect-ratio: 128 / 160;
  transform: translateY(4.375%);
  background: url("/assets/walk-01.webp") 0 0 / 1600% 100% no-repeat;
  image-rendering: pixelated;
  animation: walk 1s steps(16, jump-none) infinite;
}
.shadow {
  position: absolute; left: calc(30% + 1%); bottom: calc(24% - 2.2%);
  width: 16%; height: 5%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .42), transparent);
  border-radius: 50%;
  transform: translateX(-6%);
}
.tag {
  position: absolute; left: 18px; top: 16px;
  padding: 6px 12px; border-radius: 6px;
  background: rgba(22, 18, 29, .82); color: var(--cream);
  font-size: 13px; letter-spacing: .04em;
  box-shadow: inset 0 0 0 2px rgba(246, 236, 216, .12);
}
.tag b { color: var(--gold); margin-right: 6px; }
.hud {
  position: absolute; right: 18px; bottom: 16px;
  display: flex; flex-direction: column; align-items: flex-start;
  padding: 10px 16px 12px; border-radius: 16px;
  background: rgba(22, 18, 29, .78); color: var(--cream);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hud-label { font-size: 11px; color: #cbbfd2; letter-spacing: .08em; }
.hud-count { display: flex; align-items: flex-end; gap: 6px; }
.hud-count img { width: 72px; height: auto; image-rendering: pixelated; }
.hud-unit { font-weight: 700; font-size: 15px; padding-bottom: 2px; }

.trail { list-style: none; padding: 0; margin: 16px auto 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 1040px; }
.trail li { position: relative; padding-top: 12px; font-size: 12px; color: var(--faint); font-weight: 600; }
.trail li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: #e7dfd3; border-radius: 2px; }
.trail li.on { color: var(--ink); }
.trail li.on::after { content: ""; position: absolute; left: 0; top: 0; height: 6px; width: 64%; background: var(--gold); border-radius: 2px; animation: fill 6s ease-out both; }

/* ---- 見出しのそろえ ---- */
section > h2 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; text-align: center; }
.kicker { text-align: center; font: 700 13px/1 var(--font); letter-spacing: .14em; color: var(--gold-deep); margin-bottom: 14px; }
.section-lead { max-width: 36em; margin: 16px auto 0; text-align: center; color: var(--sub); }
.journey, .features, .travelers, .faq { padding: 88px 20px 0; max-width: 1120px; margin: 0 auto; }

/* ---- 章 ---- */
.chapters { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.chapters li { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.chapters img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.chapters .no { margin: 12px 14px 0; font-size: 12px; font-weight: 700; color: var(--gold-deep); letter-spacing: .06em; }
.chapters b { margin: 0 14px 14px; font-size: 16px; }

/* ---- できること ---- */
.bento { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px;
}
.card h3 { font-size: 20px; font-weight: 800; }
.card p { color: var(--sub); font-size: 15px; line-height: 1.75; }
.card.wide { grid-column: span 2; flex-direction: row; align-items: center; gap: 24px; }
.card-text { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.flip { position: relative; width: 260px; height: 132px; flex: none; border-radius: 20px; background: #f6f0e6; }
.face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 22px; gap: 6px; }
.face small { font-size: 12px; font-weight: 700; color: var(--sub); letter-spacing: .06em; }
.face .num { display: flex; align-items: flex-end; gap: 8px; font-weight: 800; font-size: 17px; }
.face img { width: 96px; image-rendering: pixelated; }
.face.a { animation: face-a 7s infinite; }
.face.b { animation: face-b 7s infinite; }

.boss-art { width: 132px; height: 132px; image-rendering: pixelated; margin: -6px 0 2px -8px; animation: sway 3.2s ease-in-out infinite; }

.widget-mock {
  position: relative; width: 156px; height: 156px; border-radius: 34px; overflow: hidden;
  background: url("/assets/road.webp") 40% 70% / auto 150% no-repeat;
  box-shadow: 0 18px 30px -18px rgba(44, 30, 74, .7), 0 0 0 1px rgba(0, 0, 0, .05);
}
.wm-walker {
  position: absolute; left: 14px; bottom: 30px; height: 62px; aspect-ratio: 128 / 160;
  background: url("/assets/idle-01.webp") 0 0 / 800% 100% no-repeat; image-rendering: pixelated;
  animation: idle 1.7s steps(8, jump-none) infinite;
}
.wm-count {
  position: absolute; right: 10px; top: 10px; display: flex; align-items: flex-end; gap: 3px;
  padding: 5px 8px; border-radius: 12px; background: rgba(22, 18, 29, .78); color: var(--cream);
}
.wm-count small { font-size: 10px; font-weight: 700; }
.wm-count img { width: 44px; image-rendering: pixelated; }

.goal-list { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 8px; }
.goal-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 14px; background: #f6f0e6;
  font-weight: 700; font-size: 14px;
}
.goal-list li:first-child { background: #fff3e3; box-shadow: inset 0 0 0 2px rgba(242, 182, 116, .6); }
.goal-list em { margin-left: auto; font-style: normal; color: var(--sub); font-size: 12px; }
.flag { width: 12px; height: 14px; background: linear-gradient(var(--red), var(--red)) 0 0 / 2px 100% no-repeat, linear-gradient(90deg, var(--gold), var(--gold)) 2px 0 / 10px 8px no-repeat; }

.push {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px; border-radius: 18px;
  background: rgba(246, 240, 230, .9); box-shadow: 0 10px 24px -18px rgba(29, 22, 38, .5);
  font-size: 13px; line-height: 1.5;
  animation: drop 6s ease-in-out infinite;
}
.push img { width: 36px; height: 36px; border-radius: 9px; }
.push b { display: block; font-size: 12px; }

.hop { position: relative; height: 120px; width: 200px; flex: none; }
.tap .hop { border-radius: 20px; background: url("/assets/forest.webp") 50% 78% / cover; overflow: hidden; }
.tap .joy { left: 54px; bottom: 6px; }
.tap .heart { left: 124px; top: 12px; }
.share-mock { position: relative; height: 132px; border-radius: 18px; overflow: hidden; box-shadow: 0 14px 26px -18px rgba(44, 30, 74, .7); }
.sm-scene { position: absolute; inset: 0; background: url("/assets/snow.webp") 50% 60% / cover; }
.sm-text { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 8px 12px; border-radius: 12px; background: rgba(22, 18, 29, .8); color: var(--cream); font-size: 13px; font-weight: 700; }
.sm-text b { color: var(--gold); }
.joy {
  position: absolute; left: 4px; bottom: 0; height: 104px; aspect-ratio: 128 / 160;
  background: url("/assets/joy-01.webp") 0 0 / 800% 100% no-repeat; image-rendering: pixelated;
  animation: idle 1.7s steps(8, jump-none) infinite, hop 2.4s ease-out infinite;
}
.heart { position: absolute; left: 72px; top: 0; width: 18px; height: 16px; animation: heart 2.4s ease-out infinite; }
.heart::before, .heart::after { content: ""; position: absolute; top: 0; width: 10px; height: 15px; background: var(--red); border-radius: 10px 10px 0 0; }
.heart::before { left: 8px; transform: rotate(-45deg); transform-origin: 0 100%; }
.heart::after { left: 0; transform: rotate(45deg); transform-origin: 100% 100%; }

/* ---- アプリの画面 ---- */
.screens { padding: 88px 20px 0; max-width: 1120px; margin: 0 auto; }
.phones { list-style: none; padding: 0; margin: 40px 0 0; display: flex; justify-content: center; gap: 28px; }
.phones li { width: 290px; flex: none; padding: 10px; border-radius: 52px; background: #0e0b13; box-shadow: 0 40px 70px -40px rgba(44, 30, 74, .7), inset 0 0 0 2px #2b2433; }
.phones li:nth-child(2) { transform: translateY(-28px); }
.phones img { border-radius: 42px; }

/* ---- 旅人 ---- */
.cast { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.cast li {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  padding: 14px 6px 12px; text-align: center; display: flex; flex-direction: column; align-items: center;
}
.cast b { font-size: 15px; margin-top: 6px; }
.cast small { font-size: 11px; color: var(--sub); line-height: 1.4; }
.sprite {
  height: 104px; aspect-ratio: 128 / 160;
  background: 0 0 / 800% 100% no-repeat; image-rendering: pixelated;
  animation: idle 1.7s steps(8, jump-none) infinite;
}
.secret .sprite { filter: brightness(0) opacity(.32); }
.secret b { color: var(--faint); }
.t01 { background-image: url("/assets/idle-01.webp"); }
.t02 { background-image: url("/assets/idle-02.webp"); animation-delay: -.3s; }
.t03 { background-image: url("/assets/idle-03.webp"); animation-delay: -.7s; }
.t04 { background-image: url("/assets/idle-04.webp"); animation-delay: -1.1s; }
.t06 { background-image: url("/assets/idle-06.webp"); animation-delay: -.5s; }
.t07 { background-image: url("/assets/idle-07.webp"); animation-delay: -1.4s; }
.t09 { background-image: url("/assets/idle-09.webp"); animation-delay: -.9s; }
.t10 { background-image: url("/assets/idle-10.webp"); animation-delay: -.2s; }
.t12 { background-image: url("/assets/idle-12.webp"); animation-delay: -1.2s; }
.t13 { background-image: url("/assets/idle-13.webp"); animation-delay: -.6s; }
.t14 { background-image: url("/assets/idle-14.webp"); animation-delay: -1s; }
.t16 { background-image: url("/assets/idle-16.webp"); animation-delay: -.4s; }
.t17 { background-image: url("/assets/idle-17.webp"); animation-delay: -1.5s; }
.t18 { background-image: url("/assets/idle-18.webp"); animation-delay: -.8s; }
.whisper { margin: 36px auto 0; text-align: center; color: var(--sub); font: 700 14px/1.7 var(--round); }
.spark { display: inline-block; color: var(--gold); margin-right: 8px; animation: twinkle 2s ease-in-out infinite; }

/* ---- 記録の扱い ---- */
.private {
  margin: 96px auto 0; max-width: 1080px; padding: 56px 28px;
  border-radius: 36px; text-align: center; color: var(--cream);
  background: radial-gradient(120% 140% at 80% 0%, #4a2c5e 0%, var(--night) 60%);
}
.private h2 { color: var(--cream); }
.promises { list-style: none; padding: 0; margin: 32px auto 26px; max-width: 860px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.promises li { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: 20px; background: rgba(246, 236, 216, .06); box-shadow: inset 0 0 0 1px rgba(246, 236, 216, .1); }
.promises b { color: var(--gold); font-size: 17px; }
.promises span { font-size: 13px; color: #cbbfd2; }
.text-link { font-weight: 700; font-size: 14px; color: var(--cream); text-underline-offset: 4px; }

/* ---- よくある質問 ---- */
.faq { max-width: 760px; }
.faq h2 { margin-bottom: 28px; }
details { border-bottom: 1px solid var(--line); }
summary {
  cursor: pointer; list-style: none; padding: 20px 4px; font-weight: 700; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--gold-deep); font-weight: 800; font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding: 0 4px 22px; color: var(--sub); }

/* ---- おわりの一言 ---- */
.final { text-align: center; padding: 96px 20px 88px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.final img { width: 72px; height: 72px; border-radius: 17px; }

.foot {
  border-top: 1px solid var(--line);
  padding: 28px max(20px, env(safe-area-inset-left)) calc(28px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap; color: var(--sub); font-size: 13px;
}
.foot img { image-rendering: pixelated; }
.foot nav { display: flex; gap: 18px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.foot small { margin-left: auto; }

/* ---- 法務・サポートのページ ---- */
.doc { max-width: 760px; margin: 0 auto; padding: 56px 20px 72px; }
.doc h1 { font-size: clamp(30px, 6vw, 42px); margin: 0; }
.doc .updated { color: var(--faint); font-size: 13px; margin-top: 10px; }
.doc .intro { margin-top: 22px; color: var(--sub); }
.doc h2 { font-size: 20px; margin: 44px 0 12px; text-align: left; }
.doc p + p { margin-top: 12px; }
.doc ul, .doc ol { padding-left: 1.3em; color: var(--ink); }
.doc li + li { margin-top: 6px; }
.doc .contact { margin-top: 44px; padding: 24px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.doc .contact h2 { margin-top: 0; }
.doc .mail { font-weight: 800; font-size: 18px; }
.doc .muted { color: var(--sub); font-size: 14px; }
.doc details summary { font-size: 16px; }

.lost { min-height: 70vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; text-align: center; padding: 40px 20px; }
.lost .sprite { height: 140px; }

/* ---- 動き ---- */
@keyframes road { to { transform: translateX(-50%); } }
@keyframes walk { to { background-position: 100% 0; } }
@keyframes idle { to { background-position: 100% 0; } }
@keyframes float { 50% { transform: translateY(-6px); } }
@keyframes fill { from { width: 0; } }
@keyframes sway { 50% { transform: translateY(-4px) rotate(-1.5deg); } }
@keyframes face-a { 0%, 42% { opacity: 1; transform: none; } 50%, 92% { opacity: 0; transform: translateY(-8px); } 100% { opacity: 1; transform: none; } }
@keyframes face-b { 0%, 42% { opacity: 0; transform: translateY(8px); } 50%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(8px); } }
@keyframes drop { 0%, 8% { opacity: 0; transform: translateY(-10px); } 16%, 84% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-10px); } }
@keyframes hop { 0%, 60%, 100% { transform: none; } 70% { transform: translateY(-16px); } 80% { transform: none; } }
@keyframes heart { 0%, 62% { opacity: 0; transform: translateY(10px) scale(.6); } 72% { opacity: 1; transform: none; } 92% { opacity: 1; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes twinkle { 50% { opacity: .35; transform: scale(.8) rotate(20deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; }
  .face.b { opacity: 0; }
}

/* ---- 幅のせまい画面 ---- */
@media (max-width: 960px) {
  .chapters { grid-template-columns: repeat(5, 72%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-left: -20px; margin-right: -20px; padding-left: 20px; padding-right: 20px; }
  .chapters li { scroll-snap-align: start; }
  .bento { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: span 2; }
  .cast { grid-template-columns: repeat(4, 1fr); }
  .note { display: none; }
}
@media (max-width: 640px) {
  .bar-nav { gap: 16px; font-size: 13px; }
  .bar-nav a:nth-child(2) { display: none; }
  .hero { padding-top: 40px; }
  .scene { aspect-ratio: 4 / 3.4; border-radius: 22px; }
  .stage { margin-top: 40px; }
  .walker { left: 24%; }
  .shadow { left: calc(24% + 1%); width: 26%; }
  .tag { left: 12px; top: 12px; font-size: 12px; }
  .hud { right: 12px; bottom: 12px; padding: 8px 12px 10px; }
  .hud-count img { width: 56px; }
  .chapters { grid-template-columns: repeat(5, 78%); }
  .bento { grid-template-columns: 1fr; }
  .card.wide { grid-column: auto; flex-direction: column; align-items: stretch; }
  .flip { width: 100%; }
  .cast { grid-template-columns: repeat(3, 1fr); }
  .phones { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; margin-left: -20px; margin-right: -20px; padding: 36px 20px 20px; }
  .phones li { width: 240px; scroll-snap-align: center; }
  .phones li:nth-child(2) { transform: none; }
  .promises { grid-template-columns: 1fr; }
  .private { margin-left: 12px; margin-right: 12px; border-radius: 28px; }
  .foot small { margin-left: 0; width: 100%; }
}
