/* もやポ 公式サイト。**アプリのデザイントークンに揃える**
   （色は lib/core の値、書体はアプリと同じ M PLUS Rounded 1c）。 */

:root {
  --moyashi-white: #FAF7EF;
  --bean-yellow:   #F2CE4B;
  --leaf-green:    #4E9E6A;
  --leaf-dark:     #3B7A52;
  --tokubai-orange:#F26A21;
  --price-red:     #D93A2B;
  --ink:           #2E3A32;
  --mute:          #8B948D;
  --line:          #E8E3D4;
  --card:          #fff;
  --radius:        18px;
  --shadow:        0 6px 20px rgba(46,58,50,.08);
}

/* UA の [hidden] に自分で勝たせておく。あとから display を書いた要素が
   透明なまま画面に残ってクリックを奪う事故を、CSS の先頭で1回だけ潰す */
[hidden] { display: none !important; }

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

body {
  font-family: "M PLUS Rounded 1c", -apple-system, BlinkMacSystemFont,
               "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  background: var(--moyashi-white);
  color: var(--ink);
  line-height: 1.9;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf-dark); }

/* ------------------------------------------------------------------ 共通 */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }

h2 {
  font-size: 22px; font-weight: 800; letter-spacing: -.01em;
  text-align: center; margin-bottom: 6px;
}
h2 .sub { display: block; font-size: 12px; font-weight: 700; color: var(--leaf-green); letter-spacing: .12em; }
.lead { text-align: center; color: var(--mute); font-size: 14px; margin-bottom: 28px; }
h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
p, li, td, th { font-size: 14.5px; }
.note { font-size: 12.5px; color: var(--mute); line-height: 1.8; }

.card {
  background: var(--card); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow);
}

/* ------------------------------------------------------- ヘッダー / ナビ */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250,247,239,.92);
  backdrop-filter: saturate(150%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 16px; height: 58px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 17px; text-decoration: none; color: var(--ink); }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand .moya { color: var(--leaf-green); }
.brand .po   { color: var(--tokubai-orange); }
.topnav { margin-left: auto; display: flex; gap: 18px; font-size: 13.5px; }
.topnav a { color: var(--mute); text-decoration: none; font-weight: 700; white-space: nowrap; }
.topnav a:hover { color: var(--leaf-dark); }
@media (max-width: 640px) { .topnav { display: none; } }

/* ---------------------------------------------------------------- ヒーロー */
.hero { padding: 44px 0 8px; text-align: center; }
.hero .badge {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .04em;
  color: var(--leaf-dark); background: #E7F1EA;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(26px, 6.4vw, 40px); font-weight: 800; line-height: 1.45; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--tokubai-orange); }
.hero .tagline { color: var(--mute); font-size: 15px; margin-top: 14px; }
.hero-art { width: min(300px, 74vw); margin: 22px auto 4px; }

/* ------------------------------------------------------------------- CTA */
/* App Store バッジは Apple の公式素材をそのまま置く。
   ガイドラインどおり**加工しない**（色・比率・角丸を触らない）。
   周囲の余白はバッジ高さの1/10以上を確保する（padding で取る） */
.cta-wrap { margin: 22px 0 0; text-align: center; }
.cta {
  display: inline-block; padding: 6px; line-height: 0;
  transition: transform .1s ease, opacity .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.cta img { height: 60px; width: auto; }
.cta:hover { opacity: .85; }
.cta:active { transform: translateY(1px); }
/* 🔴 **枠を出さない。** ブラウザの既定のフォーカスリングは `currentColor` を使うので、
   `a { color: var(--leaf-dark) }` を継いで**緑の枠**になっていた（押した直後に出る）。
   キーボード操作のときだけ、緑でない控えめな枠を出す（マウスのクリックでは出ない）。 */
.cta:focus { outline: none; }
.cta:focus-visible { outline: 2px solid var(--mute); outline-offset: 2px; }

/* ------------------------------------------------------------- できること */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 720px) { .features { grid-template-columns: 1fr; } }
.feature { text-align: center; }
.feature .emoji { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.feature p { color: var(--mute); font-size: 13.5px; }

/* ------------------------------------------------------------------ 成長 */
/* **7段すべてを必ず見せる。** 横スクロールにすると Lv.50（王様）が
   画面外に出て、上の「最後は王様に」が画面の中で確かめられなくなる */
.growth-row {
  display: grid; gap: 14px; padding: 4px;
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
  justify-items: center;
}
.growth figure { width: 100%; max-width: 132px; text-align: center; }
.growth img { width: 100%; aspect-ratio: 1 / 1; object-fit: contain;
              background: #fff; border-radius: 16px; box-shadow: var(--shadow); }
.growth figcaption { font-size: 12px; font-weight: 800; color: var(--mute); margin-top: 8px; }

/* ------------------------------------------------------------------- 表 */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 4px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--mute); font-weight: 700; width: 40%; white-space: nowrap; }
tr:last-child th, tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ FAQ */
.faq { border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 22px;
  font-weight: 800; font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "Q"; color: var(--leaf-green); font-weight: 800; flex: 0 0 auto; }
.faq details[open] summary { color: var(--leaf-dark); }
.faq .a { padding: 0 22px 18px 44px; font-size: 14px; color: #4A554D; }

/* --------------------------------------------------------------- 帯 CTA */
.band { background: var(--leaf-green); color: #fff; text-align: center; padding: 48px 0; }
.band h2, .band p { color: #fff; }
.band 
/* ---------------------------------------------------------------- 運営者 */
footer { background: #F3EFE3; padding: 40px 0 48px; text-align: center; }
footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 18px; font-size: 13.5px; }
footer nav a { color: var(--leaf-dark); font-weight: 700; }
footer .copy { font-size: 12px; color: var(--mute); }

/* -------------------------------------------- 下層ページ（規約など）用 */
.doc { padding: 36px 0 56px; }
.doc h1 { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.doc h2 { font-size: 16px; text-align: left; margin: 28px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--leaf-green); }
.doc h3 { font-size: 14.5px; margin: 18px 0 4px; }
.doc ul, .doc ol { padding-left: 1.4em; margin: 8px 0; }
.doc li { margin: 4px 0; }
.doc .updated { color: var(--mute); font-size: 12.5px; margin-bottom: 20px; }
.warn { color: var(--price-red); font-weight: 700; }

/* まだ見ていない段階。**実物の絵は配信しない**（シルエットPNGを別に作ってある） */
.growth .unknown figcaption { color: var(--leaf-green); letter-spacing: .1em; }
