/* アプリ案内所のスタイル。承認済みの見本（design/poc_2026-10-26.html）と同じ値。
   文字は端末の標準の日本語フォントだけを使う（CSP が外部フォントを許さないため）。 */
:root {
  --paper: oklch(98.5% 0.004 250);
  --raised: oklch(100% 0 0);
  --muted-bg: oklch(96% 0.007 250);
  --ink: oklch(22% 0.016 260);
  --ink-soft: oklch(38% 0.018 257);
  --muted: oklch(51% 0.016 257);
  --rule: oklch(88% 0.010 250);
  --accent: oklch(56% 0.205 256);
  --accent-soft: oklch(94% 0.030 256);
  --on-accent: oklch(99% 0 0);
  --ok: oklch(49% 0.130 153);
  --warn: oklch(52% 0.130 70);
  --warn-soft: oklch(95% 0.042 78);
  --shadow-1: 0 1px 2px oklch(22% 0.016 260 / 8%);
  --shadow-2: 0 4px 14px oklch(22% 0.016 260 / 10%);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --i1: oklch(56% 0.19 256); --i1b: oklch(46% 0.19 270);
  --i2: oklch(58% 0.14 185); --i2b: oklch(46% 0.12 200);
  --i3: oklch(58% 0.17 305); --i3b: oklch(46% 0.17 320);
  --i4: oklch(62% 0.15 60);  --i4b: oklch(52% 0.15 40);
  --i5: oklch(40% 0.03 260); --i5b: oklch(28% 0.03 260);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: oklch(19% 0.014 260); --raised: oklch(23% 0.016 260); --muted-bg: oklch(26% 0.016 260);
    --ink: oklch(95% 0.006 250); --ink-soft: oklch(84% 0.012 250); --muted: oklch(70% 0.016 250);
    --rule: oklch(34% 0.016 260); --accent: oklch(70% 0.160 256); --accent-soft: oklch(30% 0.060 256);
    --on-accent: oklch(16% 0.02 260); --ok: oklch(74% 0.130 153); --warn: oklch(80% 0.130 80);
    --warn-soft: oklch(32% 0.050 78);
    --shadow-1: 0 1px 2px oklch(5% 0 0 / 40%); --shadow-2: 0 4px 14px oklch(5% 0 0 / 45%);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.7;
  word-break: auto-phrase; text-wrap: pretty;
  padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.page { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
h1, h2, p { margin: 0; }
a { color: inherit; }
.small { font-size: 12px; color: var(--muted); }
.muted { color: var(--muted); }

.appbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px 10px; }
.appbar h1 { font-size: 22px; letter-spacing: -.01em; }
.count { font-size: 12px; color: var(--muted); }
.back { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); font-weight: 700; font-size: 15px; text-decoration: none; }
.pad { padding: 0 16px 28px; display: flex; flex-direction: column; gap: 14px; }

/* 一覧 */
.search { width: 100%; min-height: 44px; border: 1px solid var(--rule); background: var(--raised); color: var(--ink); border-radius: 12px; padding: 0 14px; font: inherit; font-size: 16px; box-shadow: var(--shadow-1); }
.search:focus-visible, .seg button:focus-visible, .chip:focus-visible, .item:focus-visible, .link:focus-visible, .open:focus-visible, .back:focus-visible, .linkbtn:focus-visible, .copy:focus-visible, .btn2:focus-visible, .adm summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--muted-bg); border-radius: 10px; padding: 3px; }
.seg button { min-height: 44px; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: 13.5px; font-weight: 500; border-radius: 8px; cursor: pointer; }
.seg button.on { background: var(--raised); color: var(--ink); font-weight: 700; box-shadow: var(--shadow-1); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.chip { white-space: nowrap; min-height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; background: var(--raised); border: 1px solid var(--rule); font-size: 13.5px; text-decoration: none; }
.group-sec { display: flex; flex-direction: column; gap: 8px; scroll-margin-top: 12px; }
.group { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--muted); padding-top: 4px; }
.list { display: flex; flex-direction: column; gap: 8px; }
.item { display: grid; grid-template-columns: 48px 1fr auto; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px; border-radius: 14px; background: var(--raised); border: 1px solid var(--rule); box-shadow: var(--shadow-1); text-decoration: none; color: inherit; }
.item-body { min-width: 0; }
.item .t { font-weight: 700; font-size: 15px; line-height: 1.4; }
.item .d { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.kind { font-size: 11px; font-weight: 700; color: var(--ink-soft); background: var(--muted-bg); border-radius: 999px; padding: 1px 9px; align-self: start; white-space: nowrap; }
.icon { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; color: oklch(99% 0 0); font-weight: 700; font-size: 18px; }
.icon.xl { width: 68px; height: 68px; border-radius: 17px; font-size: 26px; box-shadow: var(--shadow-2); }
.ic1 { background: linear-gradient(145deg, var(--i1), var(--i1b)); }
.ic2 { background: linear-gradient(145deg, var(--i2), var(--i2b)); }
.ic3 { background: linear-gradient(145deg, var(--i3), var(--i3b)); }
.ic4 { background: linear-gradient(145deg, var(--i4), var(--i4b)); }
.ic5 { background: linear-gradient(145deg, var(--i5), var(--i5b)); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); display: inline-block; margin-right: 6px; }
.dot.unk { background: var(--muted); }
.foot { text-align: center; font-size: 12px; color: var(--muted); min-height: 44px; display: grid; place-items: center; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 40px 12px; color: var(--ink-soft); }
.empty b { color: var(--ink); font-size: 16px; }
.btn2 { min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); font: inherit; font-weight: 700; background: var(--raised); cursor: pointer; }

/* 詳細 */
.intro { display: flex; flex-direction: column; gap: 14px; }
.hero { display: grid; grid-template-columns: 68px 1fr; gap: 14px; align-items: center; }
.hero h1 { font-size: 26px; line-height: 1.2; letter-spacing: -.01em; }
.hero h1.h-skill { font-size: 22px; overflow-wrap: anywhere; }
.hero p { margin-top: 2px; color: var(--ink-soft); font-size: 13.5px; line-height: 1.5; }
.open { display: grid; place-items: center; min-height: 52px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 17px; text-decoration: none; box-shadow: var(--shadow-1); }
.note-sm { text-align: center; font-size: 12px; color: var(--muted); margin-top: -6px; }
.shot { align-self: center; width: 62%; max-width: 240px; height: auto; aspect-ratio: 9 / 16; object-fit: cover; object-position: top; border-radius: 16px; border: 1px solid var(--rule); background: var(--raised); box-shadow: var(--shadow-2); }
.can { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; background: var(--raised); border: 1px solid var(--rule); border-radius: 14px; overflow: hidden; }
.can li { padding: 11px 14px; font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); display: grid; grid-template-columns: 8.2em 1fr; gap: 10px; align-items: baseline; border-top: 1px solid var(--rule); }
.can li:first-child { border-top: 0; }
.can b { font-size: 14.5px; color: var(--ink); }
.updated { font-size: 13px; color: var(--ink-soft); }
.stale { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: 13px; line-height: 1.5; }
.sec { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid var(--rule); }
.sec h2 { font-size: 18px; }
.sub { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.link { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--rule); font-size: 15px; font-weight: 500; text-decoration: none; color: var(--ink); }
.link small { color: var(--muted); font-size: 12px; font-weight: 400; white-space: nowrap; margin-left: auto; }
.link::after { content: "›"; color: var(--muted); font-size: 20px; margin-left: 6px; }
.kv { display: grid; grid-template-columns: 8.6em 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.pill-ok { display: inline-flex; align-items: center; color: var(--ok); font-weight: 700; }
.adm { border: 1px dashed var(--rule); border-radius: 12px; }
.adm summary { list-style: none; min-height: 48px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: 14px; color: var(--ink-soft); font-weight: 500; cursor: pointer; }
.adm summary::-webkit-details-marker { display: none; }
.adm summary::after { content: "＋"; color: var(--muted); }
.adm[open] summary::after { content: "－"; }
.adm .in { padding: 4px 14px 14px; }
.adm .kv { grid-template-columns: 9.6em 1fr; font-size: 13.5px; }
.report { text-align: center; padding-top: 6px; }
.linkbtn { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; padding: 0 12px; cursor: pointer; }
.copy { min-height: 48px; border-radius: 12px; border: 1px solid var(--accent); color: var(--accent); font: inherit; font-weight: 700; font-size: 15px; background: var(--raised); cursor: pointer; }
.cmd { font-family: var(--mono); background: var(--muted-bg); border-radius: 8px; padding: 2px 8px; font-size: 14px; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow-2); z-index: 5; }
.fallback-copy { position: fixed; left: 16px; right: 16px; bottom: 80px; min-height: 96px; font: inherit; font-size: 16px; border-radius: 12px; border: 1px solid var(--accent); background: var(--raised); color: var(--ink); padding: 10px; z-index: 6; }

/* 手順 */
.h-howto { font-size: 24px; line-height: 1.3; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.step { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.num { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.step p { font-size: 16px; line-height: 1.6; }
.step .none { margin-top: 6px; font-size: 12.5px; line-height: 1.5; color: var(--muted); background: var(--muted-bg); border-radius: 8px; padding: 6px 10px; }
.step-img { margin-top: 8px; width: 100%; max-width: 240px; height: auto; border-radius: 12px; border: 1px solid var(--rule); }

/* 準備中・見つかりません */
.prep { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.prep h1 { font-size: 24px; }
.prep p { color: var(--ink-soft); font-size: 14px; }
.page > h1 { padding: 24px 16px 0; font-size: 22px; }
.page > p { padding: 8px 16px 0; color: var(--ink-soft); }

@media (prefers-reduced-motion: no-preference) {
  .item, .open, .link { transition: transform .12s ease; }
  .item:active, .open:active, .link:active { transform: scale(.985); }
}
