/* ムーピーのランディング
 *
 * 色も語彙も、アプリの正典（docs/10・app/lib/theme/tokens.dart）から持ってくる。
 * ここで新しい色を作らない。
 *
 * **ダークテーマは持たない。** OS の設定にかかわらず、いつも昼（10 §0）。
 *
 * ## 色の考えかた
 *
 * **地はほとんど無彩色にする。** 彩りは、歩いている人の 10 色だけが持つ。
 * 「10 人いれば 10 色。にぎやかさは、集まった人がつくる」という
 * アプリの原則を、そのまま紙面にしている。
 * 黄色を面で敷かない ── 敷いた瞬間、アプリと似ていない別のものになる。
 *
 * ## 飾りの語彙
 *
 * ステッカー（太い墨線＋ずらしたべた影）／コマ枠／吹き出し／
 * 10 色のテーマカラー／線の顔／しるし。アプリにあるものだけ。
 * 集中線や効果音は入れない。**漫画そのものに見せたいのではない。**
 */

:root {
  --cream: #FFF9E8;
  --paper: #FFFFFF;
  --ground: #FAF3E1;   /* ひろばの地面。アプリの plazaGround */
  --ink: #443C2C;
  --soft: #6E6552;
  --line: #F0E6C8;
  --brand: #BCA0EC;      /* 面に敷く色。墨の字が読める明るさ */
  --brand-deep: #614291; /* 影・ふち・しるしの手 */
  --leaf: #3D9B57;

  /* 10 色のテーマカラー（MuupiePersona）。このページで色を持つのはここだけ */
  --c1: #5BA3D9; --c2: #E58BB0; --c3: #8CBF6C; --c4: #C79A5B; --c5: #9A85C9;
  --c6: #4FB3A5; --c7: #E8785A; --c8: #D8B23F; --c9: #7E93A8; --c10: #B06A9B;

  --step: clamp(1rem, .62rem + 1.5vw, 1.18rem);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  font-weight: 500;
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.skip { position: absolute; left: -999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 30;
  background: var(--paper); color: var(--ink);
  padding: .5rem 1rem; border-radius: 999px; border: 3px solid var(--ink);
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: min(64rem, 100% - 2rem); margin-inline: auto; }
.wrap--narrow { width: min(44rem, 100% - 2rem); margin-inline: auto; }
.center { text-align: center; }

/* ══ しるし ══ */
.mark__body { stroke: var(--ink); }
.mark__hand { stroke: var(--brand-deep); }

.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: inherit; }
.brand__mark { width: 2.1rem; height: 1.96rem; }
.brand__name { font-weight: 800; font-size: 1.08rem; letter-spacing: .04em; }

/* ══ 上の帯。アプリと同じで、地は紙のまま ══ */
.bar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem clamp(.8rem, 4vw, 2rem);
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--ink);
}
.bar__nav { display: flex; gap: clamp(.6rem, 3vw, 1.4rem); }
.bar__nav a {
  color: var(--soft); text-decoration: none;
  font-size: .88rem; font-weight: 800;
  padding: .1rem .45rem; border-radius: .4rem;
}
.bar__nav a:hover, .bar__nav a:focus-visible { color: var(--ink); background: var(--paper); }
@media (max-width: 32rem) { .bar__nav { display: none; } }

/* ══ ヒーロー。うしろで、ほんとうにひろばが動いている ══ */
.hero {
  position: relative;
  min-height: min(86svh, 44rem);
  display: grid; place-items: center;
  overflow: hidden;
  background: var(--ground);
  border-bottom: 3px solid var(--ink);
  padding: 3rem 1rem 4.5rem;
}
.hero__plaza { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* 字が読めるように、まんなかだけそっと明るくする */
.hero__veil {
  position: absolute; inset: 0;
  background: radial-gradient(
    ellipse 58% 52% at 50% 44%,
    color-mix(in srgb, var(--ground) 90%, transparent) 0%,
    color-mix(in srgb, var(--ground) 62%, transparent) 52%,
    transparent 76%
  );
}

.hero__body {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: .85rem; text-align: center;
  max-width: 38rem;
}
.hero__title {
  margin: 0;
  padding: .85rem 1.4rem;
  font-size: clamp(2.1rem, 7.6vw, 4rem);
  font-weight: 800; line-height: 1.24; letter-spacing: -.015em;
  text-wrap: balance;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 1.2rem;
  box-shadow: 8px 8px 0 var(--ink);
}
.hero__lead {
  margin: .35rem 0 0;
  font-size: clamp(1.02rem, 3.6vw, 1.3rem);
  font-weight: 800;
  background: var(--cream);
  border: 3px solid var(--ink);
  border-radius: .9rem;
  padding: .45rem 1.2rem;
  box-shadow: 4px 4px 0 var(--ink);
}

/* ヒーローの隅で、なかまがひとこと言っている。
   行き先は下の絵と同じものに、main.js が定期的に言いかえる */
.hero__aside {
  position: absolute; z-index: 2;
  font-weight: 800; font-size: .9rem;
  transition: opacity .4s ease;
}
@media (prefers-reduced-motion: reduce) { .hero__aside { transition: none; } }
.hero__aside--1 { left: 4%; top: 21%; }
.hero__aside--2 { right: 5%; bottom: 27%; }
@media (max-width: 48rem) { .hero__aside { display: none; } }

/* ══ 吹き出し ══ */
.bubble {
  position: relative; display: inline-block;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  padding: .45rem 1rem;
  box-shadow: 4px 4px 0 var(--ink);
}
.bubble::before, .bubble::after {
  content: ""; position: absolute;
  left: 1.5rem; bottom: -.85rem;
  width: 0; height: 0; border: .5rem solid transparent;
}
.bubble::before { border-top-color: var(--ink); bottom: -1.05rem; }
.bubble::after { border-top-color: var(--paper); }
.bubble--r::before, .bubble--r::after { left: auto; right: 1.5rem; }

/* ══ 帯 ══ */
.band { padding: clamp(3.5rem, 9vw, 6rem) 0; position: relative; }
.band--paper { background: var(--cream); border-block: 3px solid var(--ink); }

.title {
  margin: 0 0 .7rem;
  font-size: clamp(1.6rem, 5.4vw, 2.5rem);
  font-weight: 800; line-height: 1.35; text-wrap: balance;
}
/* 下線は、そのくだりの人の色で引く */
.title em {
  font-style: normal;
  background: linear-gradient(transparent 64%, var(--hi, var(--c1)) 64%);
  padding-inline: .12em;
}
.note b { font-weight: 800; }

/* 節の締め。ひとことだけ、紙に貼って置く */
.note {
  margin: 2rem auto 0;
  max-width: 32rem;
  font-size: var(--step);
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  padding: 1rem 1.3rem;
  box-shadow: 5px 5px 0 var(--ink);
}

/* ══ 輪 ══
 * 中は招んだ人、外は知らない人。ことばで足す説明は、下に一行だけ
 */
.ring {
  display: block;
  width: min(32.5rem, 100%);
  height: auto;
  aspect-ratio: 13 / 6;
  margin: .6rem auto 1.4rem;
}

/* しゃべっている一文。段落ではなく、ひとことずつ置く */
.says {
  margin: 0 auto;
  max-width: 30rem;
  font-size: clamp(1.05rem, 3.6vw, 1.28rem);
  font-weight: 700;
  line-height: 1.9;
}
.says b { font-weight: 800; }
.says--small {
  margin-top: 1.1rem;
  font-size: .95rem; font-weight: 700; color: var(--soft);
}

/* 節のあたまで、なかまがひとこと言っている */
.lede { margin: 0 0 1.4rem; font-size: 1rem; }

/* ══ 集まるところ ══
 * このページで、いちばん見せたいもの。
 * コマ枠に入れて、ここが一場面だとわかるようにする
 */
.stage {
  margin: 2rem auto 1rem;
  max-width: 47.5rem;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: 1rem;
  box-shadow: 8px 8px 0 var(--ink);
  overflow: hidden;
}
.stage canvas {
  display: block;
  width: 100%; height: auto;
  aspect-ratio: 76 / 33;
}
.cap { margin: 0; font-size: .9rem; font-weight: 700; color: var(--soft); }

/* ══ こんなとき ══
 * このページの本体。使う人のことばで、場面をならべる
 */
.scenes {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.scene {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  padding: 1.2rem 1.3rem;
  box-shadow: 6px 6px 0 var(--ink);
}
.scene:nth-child(odd) { transform: rotate(-.5deg); }
.scene:nth-child(even) { transform: rotate(.5deg); }
.scene__face { width: 3.4rem; height: 3.4rem; flex: 0 0 auto; display: block; }
.scene__body { min-width: 0; }
.scene__say {
  margin: 0 0 .4rem;
  font-size: 1.16rem; font-weight: 800;
  line-height: 1.5;
}
.scene__say::before { content: "「"; }
.scene__say::after { content: "」"; }
.scene__body p:last-child { margin: 0; font-size: .95rem; }
.scene b { font-weight: 800; }

/* ══ コマ ══ */
.panels {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}
.panel {
  position: relative;
  background: var(--paper);
  border: 4px solid var(--ink);
  border-radius: .7rem;
  padding: 1.7rem 1.3rem 1.4rem;
  box-shadow: 7px 7px 0 var(--ink);
}
.panel:nth-child(1) { transform: rotate(-1deg); }
.panel:nth-child(3) { transform: rotate(1deg); }
.panel__no {
  position: absolute; top: -1.05rem; left: 1.1rem;
  display: grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  border: 3px solid var(--ink);
  font-size: .95rem; font-weight: 800; line-height: 1;
}
.panel h3 { margin: 0 0 .4rem; font-size: 1.16rem; font-weight: 800; }
.panel p { margin: 0; font-size: .96rem; }

/* ══ CTA ══ */
.cta {
  padding: clamp(4rem, 10vw, 7rem) 0;
  background: var(--cream);
  border-top: 3px solid var(--ink);
}
.cta__mark { width: 5rem; height: 4.67rem; margin-bottom: .7rem; }
.cta__title {
  margin: 0 auto .9rem; display: inline-block;
  font-size: clamp(1.5rem, 5.2vw, 2.4rem); font-weight: 800;
  background: var(--paper);
  border: 4px solid var(--ink); border-radius: 1rem;
  padding: .6rem 1.3rem;
  box-shadow: 7px 7px 0 var(--ink);
  text-wrap: balance;
}
/* はじめかたの 2 つ。並べて、どちらでもいいと分かるように */
.ways {
  list-style: none; margin: 1.6rem auto 1.5rem; padding: 0;
  max-width: 40rem;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  text-align: left;
}
.way {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: .9rem;
  padding: 1.1rem 1.2rem .9rem;
  box-shadow: 5px 5px 0 var(--ink);
}
.way:first-child { transform: rotate(-.6deg); }
.way:last-child { transform: rotate(.6deg); }
.way__no {
  position: absolute; top: -.85rem; left: -.85rem;
  width: 2rem; height: 2rem;
  display: grid; place-items: center;
  font-size: .92rem; font-weight: 800;
  background: var(--brand);
  border: 3px solid var(--ink);
  border-radius: 50%;
}
.way h3 { margin: 0 0 .3rem; font-size: 1.1rem; font-weight: 800; }
.way p { margin: 0; font-size: .93rem; }
.way b { font-weight: 800; }

.cta__lead { margin: 0 0 1.8rem; font-size: var(--step); font-weight: 700; }
.cta__lead b { font-weight: 800; }
.stores { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.1rem; }
.store {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  min-width: 10.5rem; padding: .55rem 1.3rem;
  border: 3px solid var(--ink); border-radius: .8rem;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--ink);
}
.store small { font-size: .7rem; color: var(--soft); line-height: 1.5; font-weight: 700; }
.store b { font-size: 1rem; font-weight: 800; line-height: 1.4; }
.cta__note { margin: 0; font-size: .88rem; color: var(--soft); }

/* ══ 足もと ══ */
.foot { border-top: 3px solid var(--ink); padding: 2.4rem 0 2.6rem; background: var(--ground); }
.foot__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; padding-bottom: 1.2rem;
}
.foot__links { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; }
.foot__links a { color: var(--soft); text-decoration: none; font-size: .88rem; font-weight: 700; }
.foot__links a:hover, .foot__links a:focus-visible { color: var(--ink); text-decoration: underline; }
.foot__legal { color: var(--soft); font-size: .8rem; }
.foot__legal p { margin: 0; }

a:focus-visible, .brand:focus-visible {
  outline: 3px solid var(--ink); outline-offset: 3px; border-radius: .3rem;
}

/* ══ 規約・ポリシー ══
 * terms.html / privacy.html だけが使う。
 * 読ませるための場所なので、飾りは持たせない
 */
.doc {
  width: min(44rem, 100% - 2rem);
  margin-inline: auto;
  padding: 2.5rem 0 4rem;
}
.doc__back {
  display: inline-block;
  margin-bottom: 1.6rem;
  color: var(--soft); text-decoration: none;
  font-size: .9rem; font-weight: 800;
}
.doc__back:hover, .doc__back:focus-visible { color: var(--ink); text-decoration: underline; }

.doc h1 {
  margin: 0 0 .3rem;
  font-size: clamp(1.7rem, 5.6vw, 2.3rem);
  font-weight: 800;
}
.doc__meta { margin: 0 0 2rem; font-size: .88rem; color: var(--soft); font-weight: 700; }

.doc__body {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 1rem;
  padding: clamp(1.3rem, 5vw, 2.2rem);
  box-shadow: 6px 6px 0 var(--ink);
}
.doc__body .lead { margin: 0 0 1.8rem; font-size: var(--step); }
.doc__body h2 {
  margin: 2.2rem 0 .6rem;
  font-size: 1.14rem; font-weight: 800;
  padding-bottom: .35rem;
  border-bottom: 2px solid var(--line);
}
.doc__body h2:first-of-type { margin-top: 0; }
.doc__body p { margin: 0 0 .9rem; font-size: .98rem; }
.doc__body ol, .doc__body ul { margin: 0 0 .9rem; padding-left: 1.4rem; }
.doc__body li { margin-bottom: .35rem; font-size: .98rem; }
.doc__body a { color: var(--ink); font-weight: 800; }

.doc__contact {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 2px solid var(--line);
  font-size: .92rem; color: var(--soft); font-weight: 700;
}
.doc__contact a { color: var(--ink); }

/* ══ みつからなかったとき ══ */
.lost {
  min-height: 70svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.4rem; text-align: center;
  padding: 2rem 1rem;
}
.lost h1 { margin: 0; font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; }
.lost p { margin: 0; }
