/* おしぴよ 先行公開LP（lp）
   色：紙と濃紺が土台。色みは、選ばれた推しカラーだけ。ぴよイエローはロゴとマスコット専用。
   --oshi-* の初期値はピンク（#e8478b）を color.js の theme() で計算した値。
   tests/lp.test.js が、ここの値と計算結果が同じであることを確かめる。 */
:root {
  --ink: #26314d;
  --ink2: #43506e;
  --muted: #5b657d;
  --paper: #f6f4ef;
  --white: #ffffff;
  --rule: #e6dfd0;
  --rule2: #efe9db;
  --beige: #f1eee3;

  --oshi: #e8478b;
  --oshi-wash: #f4dce1;
  --oshi-soft: #fdedf3;
  --oshi-marker: #f2c0d1;
  --oshi-line: #f1b2c9;
  --oshi-fill: #cc3e7a;
  --oshi-on: #ffffff;
  --oshi-text: #b0366a;

  --round: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Tsukushi A Round Gothic", "Kosugi Maru", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", sans-serif;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic Medium", "Yu Gothic", Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .22em; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

h1, h2, h3 {
  font-family: var(--round);
  font-weight: 500;
  font-synthesis: none;
  font-feature-settings: "palt";
  letter-spacing: .02em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
h2 { font-size: clamp(28px, 7.4vw, 46px); line-height: 1.35; }
h3 { font-size: clamp(22px, 5.6vw, 30px); line-height: 1.45; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 792px; }
.sec { padding: 72px 0; }
.lead { max-width: 36em; margin-top: 16px; }

/* ---- ボタンとリンク ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border-radius: 999px;
  background: var(--oshi-fill); color: var(--oshi-on);
  font-weight: 700; font-size: 16px; text-decoration: none;
}
.link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 700; text-decoration-line: underline; text-decoration-thickness: 2px;
  text-decoration-color: var(--oshi-text);
}
.btn:hover { text-decoration: underline; text-decoration-thickness: 2px; }

/* ---- ヘッダー ---- */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px; background: var(--oshi-wash);
}
.brand {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--round); font-size: 19px; letter-spacing: .06em; text-decoration: none;
}
.brand-mark { background: #fff7dd; border: 1.5px solid #f5c542; border-radius: 50%; padding: 3px; }
.top-state {
  font-size: 13px; font-weight: 700; line-height: 1;
  padding: 8px 12px; border: 1.5px solid var(--ink); border-radius: 999px;
}

/* ---- ヒーロー ---- */
.hero { background: var(--oshi-wash); overflow: hidden; }
.hero-in {
  max-width: 1120px; margin: 0 auto; padding: 12px 16px 0;
  display: grid; grid-template-columns: minmax(0, 1fr);
}
.release {
  display: inline-block; background: var(--ink); color: var(--white);
  font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .04em;
  padding: 8px 12px; border-radius: 6px;
}
.h1-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.h1-catch { display: block; margin-top: 18px; font-size: clamp(34px, 9.6vw, 56px); line-height: 1.28; }
.hero-what { margin-top: 14px; max-width: 30em; color: var(--ink); }

.picker { margin-top: 22px; }
html:not(.js) .picker { display: none; }
.picker-say { font-size: 14px; font-weight: 700; line-height: 1.6; }
.swatches { display: flex; justify-content: space-between; max-width: 400px; margin: 6px -7px 0; }
.sw {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: none; display: grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sw i {
  width: 30px; height: 30px; border-radius: 50%; background: var(--c);
  box-shadow: inset 0 0 0 1.5px rgba(38, 49, 77, .28);
  transition: transform .15s ease;
}
.sw:hover i { transform: scale(1.1); }
.sw[aria-pressed="true"] i { outline: 3px solid var(--ink); outline-offset: 3px; }
.sw:focus-visible { outline-offset: 0; border-radius: 50%; }
.sw-pink { --c: #e8478b; }
.sw-orange { --c: #ff8a3d; }
.sw-yellow { --c: #f2c230; }
.sw-green { --c: #2fbf9b; }
.sw-sky { --c: #48b4ff; }
.sw-purple { --c: #8a3ffc; }
.sw-red { --c: #e14b4b; }
.sw-navy { --c: #26314d; }
.picker-now { margin-top: 2px; font-size: 13px; color: var(--ink2); }
.picker-now b { color: var(--ink); }

.hero-stage { position: relative; margin-top: 30px; display: grid; justify-items: center; padding-bottom: 8px; }
.disc {
  position: absolute; left: 50%; top: 50%; width: 500px; height: 500px;
  margin: -250px 0 0 -250px; border-radius: 50%; background: var(--oshi);
}
.piyo { position: absolute; right: -14px; bottom: -4px; width: 118px; height: auto; overflow: visible; }
.pl-light { fill: var(--oshi); }
.piyo-arm { transform-origin: 152px 168px; }
.piyo.cheer .piyo-arm { animation: cheer .9s ease-in-out; }
@keyframes cheer {
  0%, 100% { transform: rotate(0); }
  25% { transform: rotate(-16deg); }
  50% { transform: rotate(8deg); }
  75% { transform: rotate(-10deg); }
}

.hero-more { padding: 28px 0 48px; max-width: 34em; }
.hero-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 20px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--ink2); line-height: 1.8; }
.hero-note a { font-weight: 700; color: var(--ink); }

/* ---- スマホの見本（アプリの画面） ---- */
.ph {
  position: relative; width: 300px; flex: none;
  border: 8px solid var(--ink); border-radius: 42px; background: var(--ink);
  line-height: 1.5; text-align: left;
}
.ph-screen { border-radius: 34px; overflow: hidden; background: var(--paper); display: flex; flex-direction: column; }
.ph p, .ph b, .ph span, .frag p, .frag b, .frag span { font-family: var(--body); }
.ph b, .frag b, .share b { font-weight: 800; }
.ph-head { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; }
.ph-logo { width: 34px; height: 34px; border-radius: 50%; background: #fff7dd; border: 1.5px solid #f5c542; display: grid; place-items: center; }
.ph-title b { display: block; font-size: 14px; line-height: 1.2; }
.ph-title span { display: block; font-size: 9.5px; color: var(--muted); }
.ph-body { padding: 2px 12px 12px; }
.ph-h { font-size: 17px; font-weight: 800; line-height: 1.35; margin: 8px 2px 8px; }
.ph-p { font-size: 11px; color: var(--muted); margin: -4px 2px 10px; }
.ph-card { background: var(--white); border: 1px solid var(--rule); border-radius: 14px; padding: 12px; margin-bottom: 10px; }
.ph-list { padding-top: 3px; padding-bottom: 3px; }
.ph-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { display: inline-block; font-size: 10px; font-weight: 700; line-height: 1; padding: 5px 9px; border-radius: 999px; }
.pill-oshi { background: var(--oshi-fill); color: var(--oshi-on); }
.pill-date { background: var(--white); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--rule); }
.ph-event { font-size: 14px; font-weight: 800; margin-top: 8px; }
.ph-sub { font-size: 10.5px; color: var(--muted); line-height: 1.55; }
.ph-ch { font-size: 12px; font-weight: 800; }
.count { display: flex; align-items: baseline; gap: 5px; margin: 6px 0 2px; }
.count b { font-size: 46px; line-height: 1; letter-spacing: -.02em; color: var(--oshi-text); }
.count span { font-size: 15px; font-weight: 800; }
.ph-btn {
  display: flex; align-items: center; justify-content: center; min-height: 38px; margin-top: 10px;
  border-radius: 999px; background: var(--oshi-fill); color: var(--oshi-on); font-size: 12.5px; font-weight: 800;
}
.ph-btn-ghost { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule); margin-top: 0; }
.ph-label { display: flex; justify-content: space-between; font-size: 11px; font-weight: 800; color: var(--ink2); margin: 12px 2px 6px; }
.ph-label span { font-weight: 700; color: var(--muted); }

.task, .row { display: flex; align-items: center; gap: 9px; padding: 9px 0; border-bottom: 1px solid var(--rule2); }
.task:last-child, .row:last-child { border-bottom: 0; }
.check { position: relative; flex: none; width: 20px; height: 20px; border-radius: 6px; border: 2px solid #c9c2ae; background: var(--white); }
.task.done .check { background: var(--oshi-fill); border-color: var(--oshi-fill); }
.task.done .check::after {
  content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px;
  border: solid var(--oshi-on); border-width: 0 2.5px 2.5px 0; transform: rotate(42deg);
}
.t-main, .r-main, .s-main { flex: 1; min-width: 0; }
.t-main b, .r-main b { display: block; font-size: 12.5px; line-height: 1.4; }
.t-main span, .r-main span { display: block; font-size: 10px; color: var(--muted); line-height: 1.5; }
.task.done .t-main b { color: var(--muted); text-decoration: line-through; font-weight: 700; }
.t-when { font-size: 10px; font-weight: 800; color: var(--oshi-text); white-space: nowrap; }
.t-when.soft { color: var(--muted); }
.ico { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 12.5px; font-weight: 800; }
.ico-a, .ico-o { background: var(--oshi-soft); color: var(--oshi-text); }
.ico-b { background: #eaf0fe; color: #1d4fb8; }
.ico-c { background: #e6f4f1; color: #0f766e; }
.ico-d { background: #fdf3d7; color: #8a5705; }
.r-side { font-size: 10px; font-weight: 800; color: var(--oshi-text); text-align: right; line-height: 1.35; white-space: nowrap; }
.chip { flex: none; font-size: 10px; font-weight: 800; line-height: 1; padding: 6px 8px; border-radius: 999px; background: var(--beige); color: var(--ink2); box-shadow: inset 0 0 0 1px var(--rule); }
.chip-near { background: var(--ink); color: var(--white); box-shadow: none; }
.branch { font-size: 10.5px; line-height: 1.5; padding: 8px 10px; border-radius: 10px; margin-bottom: 6px; background: var(--beige); box-shadow: inset 0 0 0 1px var(--rule); color: var(--ink2); }
.branch b { display: block; font-size: 11px; color: var(--ink); }
.branch-win { background: var(--oshi-soft); box-shadow: inset 0 0 0 1px var(--oshi-line); }
.money { font-size: 24px; font-weight: 800; line-height: 1.3; }
.money small { font-size: 10.5px; font-weight: 700; color: var(--muted); margin-left: 4px; }
.outlook { display: flex; align-items: flex-end; gap: 6px; height: 100px; margin-top: 6px; }
.col { flex: 1; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; }
.col b { font-size: 8.5px; }
.col i { width: 100%; max-width: 34px; border-radius: 6px 6px 3px 3px; background: #d9d2bd; }
.col.now i { background: var(--oshi); }
.col span { font-size: 9.5px; font-weight: 700; color: var(--muted); }
.col.now span { color: var(--oshi-text); }
.h26 { height: 26%; } .h44 { height: 44%; } .h52 { height: 52%; } .h62 { height: 62%; } .h80 { height: 80%; }
.bar { height: 8px; border-radius: 999px; background: #eee7d6; overflow: hidden; margin: 8px 0 5px; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--oshi); }
.w54 { width: 54%; } .w70 { width: 70%; } .w72 { width: 72%; }
.bar i.bg-blue { background: #5b8def; }
.bar-row { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); }
.bar-row b { color: var(--ink); }
.dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.dot-oshi { background: var(--oshi); box-shadow: 0 0 0 1px var(--oshi-text); }
.dot-blue { background: #5b8def; }
.switch { position: relative; flex: none; width: 38px; height: 22px; border-radius: 999px; background: #cfc8b2; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); }
.switch.on { background: var(--oshi-fill); }
.switch.on::after { left: 19px; background: var(--oshi-on); }

/* 画面の一部を切り出した見本（スマホの枠なし） */
.frag { width: 100%; max-width: 300px; background: var(--white); border: 1px solid var(--rule); border-radius: 18px; padding: 14px 14px 10px; line-height: 1.5; text-align: left; }
.frag .ph-label { margin-left: 0; margin-right: 0; }
.frag .ph-btn { margin: 8px 0 4px; }
.f-label { font-size: 10px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.f-input { font-size: 12.5px; font-weight: 700; padding: 8px 10px; margin-top: 3px; border-radius: 9px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule); }
.f-dots { display: flex; gap: 7px; margin-top: 6px; }
.f-dots i { width: 20px; height: 20px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(38, 49, 77, .25); }
.f-paste { font-size: 10px; line-height: 1.6; color: var(--ink2); padding: 8px 10px; margin: 8px 0 6px; border-radius: 9px; background: var(--beige); }
.f-draft { display: grid; gap: 1px; font-size: 10.5px; padding: 8px 10px; border-radius: 10px; background: var(--oshi-soft); box-shadow: inset 0 0 0 1px var(--oshi-line); }
.f-draft b { font-size: 11.5px; }
.f-draft span { color: var(--ink2); }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--rule); font-size: 11px; }
.kv:last-of-type { border-bottom: 0; }
.kv span { color: var(--muted); flex: none; }
.kv b { text-align: right; }
.kv b.empty { font-weight: 700; color: var(--muted); }
.row.go::after { content: ""; flex: none; width: 7px; height: 7px; margin-right: 4px; border: solid #b3ab97; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ph-tabs { display: flex; margin-top: auto; background: var(--white); border-top: 1px solid var(--rule); padding: 5px 5px 9px; }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 4px 0; border-radius: 10px; font-size: 8.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.tab svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tab svg.solid, svg.solid { fill: currentColor; stroke: none; }
.tab.on { background: var(--oshi-soft); color: var(--oshi-text); font-weight: 800; }

/* ---- できること ---- */
.features { overflow: hidden; }
.feat { margin-top: 72px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.feat-text p { margin-top: 14px; max-width: 34em; }
.feat-fig {
  background: var(--oshi-wash); border-radius: 28px; padding: 28px 16px;
  display: grid; justify-items: center;
}
.feat-fig:has(.ph) { position: relative; background: none; padding: 0; }
.feat-fig:has(.ph)::before {
  content: ""; position: absolute; top: 50%; left: 50%; width: 360px; height: 360px;
  margin: -150px 0 0 -70px; border-radius: 50%; background: var(--oshi-marker);
}
.feat-flip .feat-fig:has(.ph)::before { margin-left: -290px; }
.feat-fig .ph { z-index: 1; }

.say { width: 100%; max-width: 400px; display: grid; justify-items: center; gap: 10px; }
.say p { width: 100%; background: var(--white); border-radius: 18px; padding: 16px 18px; font-family: var(--round); font-size: 18px; line-height: 1.6; }
.say p span { display: block; font-family: var(--body); font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.say-from { box-shadow: inset 0 0 0 1px var(--rule); }
.say-to { box-shadow: inset 0 0 0 2px var(--ink); }
.say-arrow { width: 22px; height: 36px; fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chip-magenta { display: inline-block; width: 14px; height: 14px; border-radius: 50%; background: #d6336c; margin-right: 6px; vertical-align: -1px; }

.guide { width: 100%; max-width: 420px; background: var(--white); border-radius: 20px; overflow: hidden; line-height: 1.5; }
.map { display: block; width: 100%; height: auto; }
.map text { font-family: var(--body); }
.map-route { stroke: var(--oshi-text); }
.map-venue { fill: var(--oshi-soft); stroke: var(--oshi-text); }
.shops { padding: 4px 16px 8px; }
.shops li { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--rule2); }
.shops li:last-child { border-bottom: 0; }
.num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.s-main b { display: block; font-size: 14.5px; }
.s-main span { display: block; font-size: 12.5px; color: var(--muted); }
.dist { font-size: 12.5px; font-weight: 700; white-space: nowrap; }

.feat-fig.duo { padding-bottom: 0; }
.frag-sheet { position: relative; z-index: 2; max-width: 264px; margin: -72px 0 0 auto; border-color: var(--ink); border-radius: 18px 18px 6px 6px; box-shadow: 6px 6px 0 var(--oshi-marker); }

.trio { display: flex; gap: 14px; margin: 44px -16px 0; padding: 0 16px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; -webkit-overflow-scrolling: touch; }
.trio li { flex: none; width: 276px; scroll-snap-align: start; display: flex; flex-direction: column; gap: 12px; }
.trio h4 { font-size: 15px; font-weight: 700; line-height: 1.6; padding-top: 12px; border-top: 2px solid var(--ink); min-height: calc(3.2em + 12px); }

.share { width: 100%; max-width: 360px; line-height: 1.5; }
.share-card { background: var(--oshi-fill); color: var(--oshi-on); border-radius: 20px; padding: 20px; }
.share-card p { font-family: var(--body); }
.s-kind { font-size: 11.5px; font-weight: 700; }
.s-title { font-family: var(--round) !important; font-size: 23px; line-height: 1.45; margin: 6px 0 14px; }
.s-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center; }
.s-grid span { font-size: 10.5px; font-weight: 700; padding: 10px 2px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px currentColor; }
.s-grid b { display: block; font-size: 16px; }
.s-foot { display: flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; font-weight: 700; }
.s-foot svg { background: #fff7dd; border-radius: 50%; }
.s-toggle { background: var(--white); border-radius: 14px; padding: 10px 14px; margin-top: 10px; border-bottom: 0; }
.s-toggle b { font-size: 13px; }
.s-toggle .r-main span { font-size: 11px; }

/* ---- 使い方は3ステップ（ホーム画面に追加・推しの登録・現場の日） ---- */
.start { background: var(--oshi-wash); }
.start-say { font-family: var(--round); font-size: clamp(20px, 5.4vw, 26px); line-height: 1.5; margin-top: 14px; }
.start .lead { margin-top: 8px; }
.st-list { counter-reset: st; display: grid; gap: 56px; grid-template-columns: minmax(0, 1fr); margin-top: 44px; }
.st { counter-increment: st; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); align-content: start; padding-top: 14px; border-top: 2px solid var(--ink); }
.st-text { position: relative; padding-left: 58px; min-height: 60px; }
.st-text::before { content: counter(st); position: absolute; left: 0; top: -8px; font-family: var(--round); font-size: 56px; line-height: 1; }
.st-text p { margin-top: 8px; }
.st-text .why-h { font-weight: 700; margin-top: 14px; }
.st-1 .st-text { padding-left: 0; }
.st-1 .st-text h3 { padding-left: 58px; min-height: 52px; }
.st > .frag { justify-self: center; }
.hs-why { max-width: 36em; }
.hs-why li { position: relative; padding: 12px 0 12px 22px; border-bottom: 1px solid var(--oshi-line); }
.hs-why li::before { content: ""; position: absolute; left: 2px; top: 1.55em; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.st-fig { display: grid; justify-items: center; }
.ph-home .ph-screen { background: var(--white); min-height: 350px; }
.clock { font-family: var(--round) !important; font-size: 40px; text-align: center; margin-top: 26px; line-height: 1.2; letter-spacing: .04em; }
.icons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 14px; padding: 22px 20px 0; }
.app { display: block; min-height: 68px; }
.app i { display: grid; place-items: center; aspect-ratio: 1; border-radius: 13px; background: var(--beige); box-shadow: inset 0 0 0 1px var(--rule); }
.app-piyo i { background: var(--ink); box-shadow: 0 0 0 4px var(--oshi-marker); }
.app b { display: block; text-align: center; font-size: 9px; font-weight: 700 !important; margin-top: 5px; line-height: 1.2; }
.dock { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: auto 12px 12px; padding: 10px; border-radius: 22px; background: var(--oshi-wash); }
.dock i { aspect-ratio: 1; border-radius: 13px; background: var(--white); }

.steps { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.os h4 { font-size: 15px; font-weight: 700; }
.os ol { counter-reset: step; display: grid; gap: 14px; margin-top: 8px; }
.os li { counter-increment: step; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px 10px; align-items: start; }
.os li::before {
  content: counter(step); grid-row: 2; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 700; line-height: 28px; text-align: center; margin-top: 2px;
}
.os li p { grid-row: 2; grid-column: 2; line-height: 1.7; }
.dia { grid-column: 1 / -1; background: var(--white); border-radius: 16px; padding: 14px; line-height: 1.4; }
.dia .bar { height: auto; margin: 0; background: none; overflow: visible; display: flex; align-items: center; }
.bar-ios { justify-content: space-around; }
.dia svg { width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; padding: 9px; }
.dia svg.solid { fill: var(--muted); stroke: none; }
.dia svg.hit { border-radius: 50%; background: var(--oshi-soft); box-shadow: 0 0 0 2.5px var(--oshi-text); stroke: var(--ink); }
.dia svg.hit.solid { fill: var(--ink); stroke: none; }
.bar-and { gap: 10px; }
.url { flex: 1; background: var(--beige); border-radius: 999px; padding: 10px 16px; font-size: 13px; color: var(--ink2); }
.menu { display: grid; }
.menu span { display: flex; align-items: center; justify-content: space-between; min-height: 40px; padding: 0 12px; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--rule2); }
.menu span:last-child { border-bottom: 0; }
.menu .hit { color: var(--ink); font-weight: 700; background: var(--oshi-soft); border-radius: 10px; border-bottom: 0; box-shadow: 0 0 0 2.5px var(--oshi-text); position: relative; }
.menu svg { padding: 0; stroke: var(--ink); }
.note { font-size: 14px; color: var(--ink2); max-width: 40em; line-height: 1.8; }

/* ---- 約束 ---- */
.vow { margin-top: 56px; }
.vow h3 { font-size: clamp(30px, 8vw, 72px); line-height: 1.5; letter-spacing: .01em; }
.vow h3 span {
  background: linear-gradient(transparent 58%, var(--oshi-marker) 58%, var(--oshi-marker) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .08em;
}
.vow p { margin-top: 14px; max-width: 36em; }
.frag-set { margin-top: 20px; max-width: 320px; }
.vow-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 4px 28px; }

/* ---- やらないこと ---- */
.nope { background: var(--ink); color: var(--paper); }
.nope ul { margin-top: 20px; max-width: 40em; }
.nope li { padding: 16px 0; border-top: 1px solid rgba(246, 244, 239, .28); font-size: 17px; }
.nope :focus-visible { outline-color: var(--paper); }

/* ---- 具体例 ---- */
.ex-kind { font-size: 14px; font-weight: 700; color: var(--ink2); margin-bottom: 6px; }
.tl { margin-top: 32px; background: var(--white); border: 1px solid var(--rule); border-radius: 22px; padding: 20px 18px; max-width: 760px; }
.tl-head { padding-bottom: 16px; border-bottom: 1px solid var(--rule2); line-height: 1.5; }
.tl-head .pill { font-size: 12px; padding: 6px 11px; }
.tl-title { font-size: 19px; font-weight: 800; margin-top: 8px; }
.tl-when { font-size: 14px; color: var(--muted); }
.tl ol { position: relative; margin-top: 20px; }
.tl ol::before { content: ""; position: absolute; left: 8px; top: 10px; bottom: 14px; width: 2px; background: var(--rule); }
.tl li { position: relative; padding: 0 0 20px 34px; line-height: 1.7; }
.tl li:last-child { padding-bottom: 4px; }
.tl li::before, .lg::before {
  content: ""; position: absolute; left: 1px; top: 6px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--oshi); border: 2px solid var(--oshi-text);
}
.tl li.tl-pre::before, .lg-pre::before { background: var(--white); border-width: 3px; }
.tl li.tl-day::before, .lg-day::before { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px var(--oshi-marker); }
.when { display: block; font-weight: 800; font-size: 15px; }
.what { display: block; font-size: 15px; }
.tl-day .what { font-weight: 800; font-size: 17px; }
.tl-legend { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--rule2); font-size: 12.5px; color: var(--muted); }
.lg { position: relative; padding-left: 22px; }
.lg::before { top: 50%; left: 0; width: 12px; height: 12px; margin-top: -8px; }
.after { margin-top: 24px; max-width: 36em; }

.sheet-row { margin-top: 72px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.sheet-text p { margin-top: 14px; max-width: 34em; }
.sheet {
  background: var(--white); border: 1px solid var(--ink); border-radius: 4px; padding: 6px 20px;
  box-shadow: 7px 7px 0 var(--oshi-marker); max-width: 460px; line-height: 1.7; margin-right: 7px;
}
.sheet div { padding: 12px 0; border-bottom: 1px dashed #cfc8b2; }
.sheet div:last-child { border-bottom: 0; }
.sheet dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.sheet dd { font-size: 16px; }

/* ---- よくある質問 ---- */
.faq { padding-top: 0; }
.faq h2 { margin-bottom: 20px; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 8px 0; cursor: pointer; list-style: none;
  font-family: var(--round); font-size: 18px; line-height: 1.5;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 16px; height: 16px;
  background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 16px no-repeat;
}
.faq details[open] summary::after { background: linear-gradient(var(--ink), var(--ink)) center / 16px 2px no-repeat; }
.faq details p { padding: 0 32px 20px 0; max-width: 38em; }

/* ---- 運営者・お問い合わせ・フッター ---- */
.about { border-top: 1px solid var(--rule); }
.about p { margin-top: 18px; }
.contact { padding-top: 0; }
.contact p { margin-top: 18px; }
.contact p + p { margin-top: 24px; }
.foot { background: var(--ink); color: var(--paper); padding: 36px 0 44px; font-size: 13.5px; line-height: 1.8; }
.foot ul { display: flex; flex-wrap: wrap; gap: 0 24px; margin-bottom: 16px; }
.foot a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14.5px; }
.foot :focus-visible { outline-color: var(--paper); }

/* ---- 広い画面 ---- */
@media (min-width: 900px) {
  body { font-size: 17px; }
  .wrap { padding: 0 40px; }
  .sec { padding: 120px 0; }
  .top { padding: 14px 40px; }
  .hero-in {
    padding: 8px 40px 0; column-gap: 64px;
    grid-template-columns: minmax(0, 1fr) 440px;
    grid-template-areas: "copy stage" "picker stage" "more stage";
    grid-template-rows: auto auto 1fr;
  }
  .hero-copy { grid-area: copy; padding-top: 36px; }
  .picker { grid-area: picker; margin-top: 32px; }
  .hero-more { grid-area: more; padding: 32px 0 72px; max-width: 30em; }
  .hero-stage { grid-area: stage; margin-top: 0; align-self: start; padding: 0 0 56px; }
  .disc { width: 600px; height: 600px; margin: -328px 0 0 -300px; }
  h3 { font-size: 34px; }
  .ph-hero { width: 320px; }
  .piyo { width: 150px; right: -34px; bottom: 26px; }
  .swatches { margin-left: -7px; }

  .feat { margin-top: 120px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: center; }
  .feat-flip .feat-fig { order: -1; }
  .feat-fig { padding: 44px 32px; }
  .feat-fig:has(.ph)::before { width: 440px; height: 440px; margin: -190px 0 0 -90px; }
  .feat-flip .feat-fig:has(.ph)::before { margin-left: -350px; }
  .feat-fig.duo { display: block; justify-items: start; position: relative; padding: 0 0 56px; }
  .frag-sheet { position: absolute; right: 0; bottom: 0; margin: 0; }
  .trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; margin: 64px 0 0; padding: 0; overflow: visible; }
  .trio li { width: auto; }
  .trio h4 { font-size: 16px; }
  .trio .frag { max-width: none; }

  .st-list { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; row-gap: 72px; margin-top: 64px; }
  .st-1 { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 72px; align-items: center; }
  .st-1 .steps, .st-1 .note { grid-column: 1 / -1; }
  .st > .frag { justify-self: start; max-width: 340px; }
  .vow-fig { display: grid; grid-template-columns: minmax(0, 36em) 320px; column-gap: 72px; align-items: start; }
  .vow-fig h3 { grid-column: 1 / -1; }
  .frag-set { margin-top: 18px; }
  .steps { grid-template-columns: 1fr 1fr; column-gap: 56px; }

  .vow { margin-top: 84px; }
  .vow p { margin-top: 18px; }
  .tl { padding: 28px 32px; }
  .tl li { display: grid; grid-template-columns: 190px minmax(0, 1fr); column-gap: 20px; }
  .sheet-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 72px; align-items: center; margin-top: 110px; }
  .sheet { transform: rotate(-1.2deg); }
}

/* ---- 色が広がる動き（押した色から、ページ全体へ） ---- */
@keyframes dye {
  from { clip-path: circle(0 at var(--dye-x, 50%) var(--dye-y, 50%)); }
  to { clip-path: circle(var(--dye-r, 150vmax) at var(--dye-x, 50%) var(--dye-y, 50%)); }
}
html.dyeing::view-transition-old(root) { animation: none; mix-blend-mode: normal; }
html.dyeing::view-transition-new(root) { animation: dye .75s cubic-bezier(.3, .55, .2, 1) both; mix-blend-mode: normal; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sw i { transition: none; }
  .piyo.cheer .piyo-arm { animation: none; }
  html.dyeing::view-transition-old(root), html.dyeing::view-transition-new(root) { animation: none; }
}

/* ヘッダーの「アプリを開く」 */
.open-app { margin-left: 8px; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--oshi-fill); color: var(--oshi-on); font-size: 14px; font-weight: 700; text-decoration: none; }
