/* mingo LP
   色はアプリと同じ：背景 #F5FCF5、コーラル #FF737D、ミント #45D6A6。
   --me は「えらんだフラミンゴの色」。JS が書き換える。 */
:root {
  --back: #f5fcf5;
  --paper: #ffffff;
  --pink: #fff5fa;
  --ink: #3f3636;
  --soft: #675b5b;
  --line: #e4ebe2;
  --coral: #ff737d;
  --mint: #45d6a6;
  --me: #ff737d;
  --me-wash: color-mix(in srgb, var(--me) 16%, var(--back));
  --r-panel: 24px;
  --r-card: 16px;
  --wrap: 1120px;
  --spring: linear(0, 0.36 8%, 0.86 17%, 1.1 26%, 1.13 31%, 1.06 42%, 0.99 53%, 0.98 62%, 1 78%, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--back);
  color: var(--ink);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.9;
  letter-spacing: 0.02em;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img, video { height: auto; }
h1, h2, h3, p, ul, ol, dl, dd, figure, fieldset { margin: 0; padding: 0; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
h2, h3 { font-weight: 900; line-height: 1.4; letter-spacing: 0.03em; word-break: keep-all; overflow-wrap: anywhere; }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.25rem); }
h3 { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem); }
strong { font-weight: 900; }
.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.note { font-size: 0.875rem; line-height: 1.75; color: var(--soft); }
section { padding-block: clamp(72px, 10vw, 136px); }

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

/* ボタン：色の上の文字は、濃い方（アプリの主ボタンと同じ決め方） */
.btn {
  display: inline-flex; align-items: center; min-height: 52px; padding: 8px 28px;
  border-radius: 26px; background: var(--coral); color: #2e1f21; font-weight: 900; text-decoration: none;
  box-shadow: 0 2px 0 rgba(120, 40, 50, 0.25), 0 12px 24px -12px rgba(255, 115, 125, 0.9);
  transition: transform 0.18s ease-out, box-shadow 0.18s ease-out;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.link { color: var(--ink); font-weight: 700; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--coral); padding: 12px 4px; }
.link:hover { text-decoration-color: var(--ink); }

/* ------------------------------ ヒーロー ------------------------------ */
.hero { position: relative; min-height: min(100svh, 900px); display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; z-index: -1; }
.hero-in { width: min(100% - 48px, 1240px); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); align-items: end; gap: 24px; padding-block: 48px 0; }
.hero-copy { align-self: center; padding-bottom: 48px; }
.hero h1 { display: grid; gap: clamp(20px, 3vw, 36px); }
.tagline { font-weight: 900; font-size: clamp(1.6rem, 1rem + 2.3vw, 2.75rem); line-height: 1.45; letter-spacing: 0.04em; word-break: keep-all; }
.lead { margin-top: 20px; max-width: 34em; font-weight: 700; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.hero-bird { width: min(100%, 520px); justify-self: center; margin-bottom: -4%; filter: drop-shadow(0 30px 30px rgba(110, 60, 60, 0.12)); }

/* ロゴ：アプリの起動画面と同じ部品。位置は 621×241 の枠に対する割合 */
.logo { position: relative; display: block; width: clamp(240px, 40vw, 540px); aspect-ratio: 621 / 241; }
.logo .pc { position: absolute; transform-origin: 50% 100%; }
.logo .pc img, .logo .fe { width: 100%; height: 100%; }
.logo .pc img { transform-origin: 50% 100%; }
.logo .fe { position: absolute; left: 29.95%; top: 0; width: 11.76%; height: 26.56%; transform-origin: 0 100%; }

/* ------------------------------ なぜ色か ------------------------------ */
.why { background: var(--pink); }
.why-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.why-text p + p { margin-top: 1.2em; }
.why-text { font-size: 1.125rem; max-width: 30em; }
.why-text strong { background: linear-gradient(transparent 62%, color-mix(in srgb, var(--coral) 38%, transparent) 62%); }
.steps-fig figcaption { font-weight: 700; color: var(--soft); }
.steps-fig dl { margin-block: 8px 12px; display: grid; gap: 4px; }
.steps-fig dl > div { display: flex; align-items: baseline; gap: 20px; border-bottom: 2px solid #f0dfe6; padding-block: 8px; }
.steps-fig dt { font-weight: 700; width: 3em; }
.steps-fig dd { font-weight: 900; font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.steps-fig dd span { font-size: 1rem; font-weight: 700; margin-left: 8px; }

/* 手順の数字（1〜4。順番そのものが情報なので、数字で示す） */
.num {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 20px; border-radius: 50%;
  background: var(--me); color: #2e1f21; font-weight: 900; font-size: 1.75rem; line-height: 1;
  transition: background-color 0.5s ease;
}

/* ------------------------------ 色をえらぶ ------------------------------ */
.pick-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.pick-stage { position: relative; display: grid; place-items: center; min-height: 420px; }
.pick-glow { position: absolute; inset: 4% 6%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--me) 42%, transparent), transparent); transition: background 0.5s ease; }
.bird { position: relative; width: min(78%, 360px); }
.bird svg { width: 100%; height: auto; overflow: visible; }
.bird.pop { animation: pop 0.7s var(--spring); transform-origin: 50% 100%; }
@keyframes pop { from { transform: scale(0.9, 0.84); } to { transform: none; } }
.pick-copy > p { max-width: 30em; }
.pick-copy h2 { margin-bottom: 20px; }
.swatches { margin-top: 32px; }
.swatches legend { font-weight: 700; color: var(--soft); margin-bottom: 8px; }
#swatches { display: flex; flex-wrap: wrap; gap: 12px; }
.sw { position: relative; }
.sw input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.sw span {
  display: block; width: 52px; height: 62px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0) 42%), var(--c);
  box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.35s var(--spring);
}
.sw input:hover + span { transform: translateY(-4px); }
.sw input:checked + span { transform: translateY(-8px) scale(1.08); box-shadow: inset 0 -8px 12px rgba(0, 0, 0, 0.08), 0 0 0 3px var(--back), 0 0 0 6px var(--ink); }
.sw input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 8px; }
.picked { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; }
.picked strong { font-size: 1.5rem; }
.picked span { color: var(--soft); font-weight: 700; }
.hint { margin-top: 8px; font-size: 0.9375rem; color: var(--soft); }

/* ------------------------------ 歩く ------------------------------ */
.walk { background: linear-gradient(var(--back), var(--me-wash) 30%, var(--me-wash) 70%, var(--back)); transition: background 0.5s; padding-bottom: 48px; }
.walk-title { margin-bottom: 24px; }
.walk-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.map-sticky { position: sticky; top: max(24px, calc(50svh - 360px)); }
.map-card { background: var(--paper); border-radius: var(--r-panel); padding: 12px; box-shadow: 0 30px 60px -30px rgba(80, 60, 50, 0.35); max-width: 520px; margin-inline: auto; }
#map { width: 100%; height: auto; overflow: visible; max-height: calc(100svh - 190px); }
.route { fill: none; stroke: var(--me); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke 0.5s; }
#route { stroke-width: 15; opacity: 0.92; }
#route-glow { stroke-width: 40; opacity: 0.45; }
#turfs circle { transition: opacity 0.6s ease, r 0.6s ease; }
.map-stats { display: flex; align-items: center; gap: 24px; padding: 12px 12px 4px; font-weight: 700; }
.map-stats li { display: flex; align-items: baseline; gap: 6px; }
.map-stats span { font-size: 0.8125rem; color: var(--soft); }
.map-stats b { font-size: 1.5rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; min-width: 1.3em; text-align: right; }
.map-stats i { font-style: normal; font-size: 0.8125rem; color: var(--soft); }
.map-feathers { margin-left: auto; gap: 2px !important; align-items: center !important; min-height: 36px; }
.map-feathers svg { width: 34px; height: 34px; animation: pop 0.6s var(--spring); }
.walk-steps li { min-height: 78svh; display: flex; flex-direction: column; justify-content: center; opacity: 0.32; transition: opacity 0.4s ease; }
.walk-steps li.on { opacity: 1; }
.walk-steps h3 { margin-bottom: 16px; }
.walk-steps p:last-child { max-width: 28em; }

/* ------------------------------ 羽根 ------------------------------ */
.fe-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.fe-count { font-weight: 700; color: var(--soft); }
.fe-count b { font-size: 2rem; font-weight: 900; color: var(--ink); font-variant-numeric: tabular-nums; }
.fe-lead { margin-top: 12px; max-width: 34em; }
.fe-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 8px; }
.fe { position: relative; display: grid; justify-items: center; gap: 4px; width: 100%; padding: 16px 4px 12px; border: 0; border-radius: var(--r-card); background: none; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.fe:disabled { cursor: default; color: inherit; }
.fe svg { width: 84px; height: 84px; overflow: visible; }
.fe small { font-size: 0.75rem; color: var(--soft); min-height: 1.4em; }
.fe .shade path { fill: #d9dbd9; stroke: #b9bcb9; stroke-width: 2; stroke-dasharray: 5 5; }
.fe:not(:disabled):hover svg { transform: rotate(-6deg) scale(1.05); }
.fe svg { transition: transform 0.35s var(--spring); }
.fe::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 45%, transparent), transparent); opacity: 0; transform: scale(0.4); pointer-events: none; }
.fe.open::before { opacity: 1; transform: scale(1); transition: opacity 0.5s, transform 0.6s var(--spring); }
.fe.charge svg { animation: charge 0.35s linear; }
.fe.reveal svg { animation: reveal 0.7s var(--spring); }
@keyframes charge { 0%, 100% { transform: scale(0.92) rotate(0); } 15%, 45%, 75% { transform: scale(0.9) rotate(-5deg); } 30%, 60%, 90% { transform: scale(0.9) rotate(5deg); } }
@keyframes reveal { from { transform: scale(0.3) rotate(-18deg); } to { transform: none; } }
.spark { position: absolute; left: 50%; top: 58px; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--c); pointer-events: none; animation: spark 0.6s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; } }

/* ------------------------------ 画面と動画 ------------------------------ */
.screens { background: var(--paper); }
.sc-row { margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.sc-row img { border-radius: clamp(18px, 2.6vw, 34px); border: 6px solid #1b1b1f; background: #1b1b1f; box-shadow: 0 24px 40px -24px rgba(60, 50, 50, 0.45); }
.sc-row figcaption { margin-top: 16px; text-align: center; font-weight: 700; }
.movie { margin-top: clamp(72px, 9vw, 120px); }
.movie h2 { margin-bottom: 32px; }
.movie video { width: 100%; border-radius: var(--r-panel); background: var(--back); box-shadow: 0 30px 60px -30px rgba(80, 60, 50, 0.4); }
.movie .note { margin-top: 12px; }

/* ------------------------------ ためす（TestFlight） ------------------------------ */
.try { padding-block: clamp(56px, 8vw, 104px); }
.try-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px); border-radius: var(--r-panel);
  background: linear-gradient(120deg, color-mix(in srgb, var(--coral) 16%, var(--paper)), var(--paper) 62%);
  box-shadow: 0 30px 60px -36px rgba(120, 60, 60, 0.45);
}
/* アプリアイコン：iOS のホーム画面と同じ角の丸み */
.app-icon { width: clamp(96px, 12vw, 148px); border-radius: 22.5%; box-shadow: 0 2px 0 rgba(255, 255, 255, 0.8) inset, 0 18px 30px -14px rgba(120, 60, 60, 0.55); rotate: -4deg; }
.try-copy h2 { font-size: clamp(1.6rem, 1.1rem + 1.8vw, 2.5rem); }
.try-copy p { margin-top: 12px; max-width: 30em; }
.try-copy .try-actions { margin-top: 24px; }
.try-qr { display: grid; justify-items: center; gap: 8px; }
.try-qr a { display: block; padding: 10px; border-radius: var(--r-card); background: #fff; border: 2px solid var(--line); }
.try-qr img { width: 148px; height: 148px; }
.try-qr figcaption { font-size: 0.8125rem; font-weight: 700; color: var(--soft); }
.foot a { color: inherit; text-underline-offset: 4px; }

/* ------------------------------ コンセプト ------------------------------ */
.concept { position: relative; text-align: center; padding-bottom: clamp(200px, 26vw, 360px); overflow: hidden; }
.concept h2 { font-size: clamp(2.2rem, 1.2rem + 4.4vw, 4.75rem); }
.concept p { margin: 24px auto 0; max-width: 32em; text-align: left; }
.values { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
.values li { display: grid; place-items: center; width: clamp(92px, 12vw, 128px); aspect-ratio: 1; border-radius: 50%; background: color-mix(in srgb, var(--coral) 88%, transparent); color: #2e1f21; font-weight: 900; margin-inline: -6px; mix-blend-mode: multiply; }
.ribbons { position: absolute; left: 0; bottom: 0; width: 100%; height: clamp(180px, 24vw, 340px); }
.ribbons path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.ribbons.in path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(0.6, 0, 0.2, 1); }

/* ------------------------------ フッター ------------------------------ */
.foot { background: #2b3230; color: #f1f6f1; padding-block: 56px 72px; }
.foot .wrap { display: grid; gap: 12px; }
.foot-logo { display: flex; align-items: center; gap: 12px; font-weight: 900; font-size: 1.5rem; }
.foot-logo img { border-radius: 10px; }
.foot .note { color: #b9c4bf; max-width: 60em; }

/* ------------------------------ 狭い画面 ------------------------------ */
@media (max-width: 860px) {
  body { font-size: 1rem; }
  .hero { min-height: 0; }
  .hero-in { grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { padding-bottom: 0; }
  .hero-bird { width: min(72%, 340px); margin-top: 8px; }
  .why-grid, .pick-grid { grid-template-columns: 1fr; }
  .pick-stage { min-height: 300px; order: 2; }
  .bird { width: min(62%, 280px); }
  .walk-grid { grid-template-columns: 1fr; gap: 0; }
  .map-sticky { top: 0; z-index: 2; margin-inline: -24px; padding: 12px 24px 8px; background: linear-gradient(var(--me-wash) 92%, transparent); }
  .map-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; max-width: none; padding: 8px; }
  #map { height: 38svh; width: auto; max-height: none; }
  .map-stats { flex-direction: column; align-items: flex-start; gap: 8px; padding: 4px 8px; white-space: nowrap; }
  .map-stats li { flex-wrap: wrap; }
  .map-stats span { flex-basis: 100%; }
  .map-stats b { min-width: 0; text-align: left; }
  .map-feathers { margin-left: 0; }
  .walk-steps li { min-height: 62svh; justify-content: flex-start; padding-top: 40px; }
  .sc-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  /* スマホで見ている人は、その場でボタンを押せる。QRは出さない */
  .try-card { grid-template-columns: 1fr; justify-items: start; }
  .try-qr { display: none; }
  .try-actions .btn { text-align: center; }
}

/* 動きを減らす設定：自動の動きは止め、すぐ結果を見せる */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
