/* 125naroom アプリの一覧「ちいさな、どうぐ」（2026-11-07）。デザイン：reference/design_handoff_125naroom_apps
   このページはスクロールする（アプリのような1画面固定にしない）。1023px 以下はスマホの形 */
:root {
  --bg: #faf8f3; --ink: #2b2a27; --sub: #77736a; --line: #e8e3d8; --soft: #f3efe6; --scrim: rgba(43,42,39,.16);
  --o: #ffffff; --k: #e8e3d8; --face: #ffffff;
  --d: 92px; --col: clamp(96px, calc((100vw - 72px) / 3), 106px); --px: 24px; /* 幅 360〜390 でも3つが入るよう、間隔だけ少し詰める */
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #2b2a27; --ink: #f3efe6; --sub: #a9a397; --line: #45433e; --soft: #34322f; --scrim: rgba(0,0,0,.4); --o: #2b2a27; --k: #45433e; --face: #f3efe6; color-scheme: dark; }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Zen Kaku Gothic New", sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
p, h1, h2 { margin: 0; }
[hidden] { display: none !important; }
svg { display: block; }
.open svg, .tip svg, .links svg, .close svg { flex: none; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
:focus { outline: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.en { font-family: "Jost", sans-serif; letter-spacing: .04em; }

.page { max-width: 1280px; min-height: 100svh; margin: 0 auto; display: flex; flex-direction: column;
  padding: max(44px, calc(env(safe-area-inset-top, 0px) + 12px)) var(--px) max(22px, env(safe-area-inset-bottom, 0px)); }

/* ヘッダー */
.head { height: 44px; display: flex; align-items: center; justify-content: space-between; flex: none; }
.head h1, .head h2 { font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.home { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .2em; color: var(--sub); }
.home:hover { color: var(--ink); }
.intro { margin-top: 20px; font-size: 13px; line-height: 1.9; letter-spacing: .04em; color: var(--sub); max-width: 34em; text-wrap: pretty; }

/* 線とまる（左右いっぱい。増えたら帯ごと横スクロール） */
.shelf { margin: 36px calc(-1 * var(--px)) 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch; flex: none; }
.shelf::-webkit-scrollbar { display: none; }
.rail { display: inline-flex; min-width: 100%; padding: 8px var(--px) 0; position: relative; vertical-align: top; }
.rail .line { position: absolute; left: 0; right: 0; top: calc(8px + var(--d)); height: 1.5px; background: var(--ink); }
.app { width: var(--col); flex: none; display: flex; flex-direction: column; align-items: center; color: var(--ink); border-radius: 12px; }
.app .ball { width: var(--d); height: var(--d); border-radius: 50%; border: 1px solid var(--line); background: var(--bg); overflow: hidden; position: relative; z-index: 1; transition: border-color 160ms, background 160ms; }
.app .ball svg { width: 100%; height: 100%; }
.app .ball svg .s { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.app .ball svg .s.l { stroke: var(--line); }
.app .ball svg .y { fill: #e8dc6a; }
.app[aria-current="true"] .ball { border: 1.5px solid var(--ink); }
.app .lab { margin-top: 14px; display: flex; flex-direction: column; align-items: center; gap: 3px; transition: opacity 300ms ease; }
.app .lab .no { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .12em; color: var(--sub); }
.app .lab .nm { font-size: 13px; letter-spacing: .06em; color: var(--sub); white-space: nowrap; }
.app[aria-current="true"] .lab .nm { color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .app:hover .ball { background: var(--soft); } }
/* 転がってくる（いちばん新しい まる1つだけ。JS が付ける） */
.app.is-roll-start .ball { transition: none; }
.app.is-rolling .ball { transition: transform 1400ms cubic-bezier(.22,.8,.28,1), border-color 160ms, background 160ms; }
.app.is-roll-start .lab, .app.is-rolling .lab { opacity: 0; }
/* 幅 390 で3つがちょうど入るよう、スマホは すきまを小さく（増えたら横スクロール） */
.rest { flex: 1; min-width: 6px; }
.omi-dot { flex: none; width: 24px; height: 24px; margin-top: calc(var(--d) - 12px + .75px); margin-right: -6px; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; }
.omi-dot i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); display: block; }
@media (hover: hover) and (pointer: fine) { .omi-dot:hover { background: var(--soft); } }
.scroll-hint { margin-top: 8px; font-family: "Jost", sans-serif; font-size: 10px; letter-spacing: .12em; color: var(--sub); text-align: right; }

/* えらんだアプリ */
.detail { margin-top: 40px; display: flex; flex-direction: column; gap: 20px; }
.title-row { display: flex; align-items: flex-end; gap: 18px; }
.big-no { font-family: "Jost", sans-serif; font-weight: 200; font-size: 72px; line-height: .82; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.name-col { display: flex; flex-direction: column; gap: 4px; padding-bottom: 2px; }
.cur-name { font-size: 20px; font-weight: 500; letter-spacing: .08em; }
.cur-date { font-family: "Jost", sans-serif; font-size: 12px; letter-spacing: .1em; color: var(--sub); font-variant-numeric: tabular-nums; }
.open-pc { display: none; }
.open { height: 52px; border-radius: 999px; border: 1px solid var(--ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15px; letter-spacing: .1em; }
.open svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .open:hover, .links a:hover, .again:hover, .close:hover { background: var(--soft); } }
.open-note { font-size: 11px; letter-spacing: .06em; color: var(--sub); }
.open-sp { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.open-sp .open-note { text-align: center; }

/* ふたりのひとこと */
.talk { background: var(--soft); border-radius: 20px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.say { display: flex; align-items: flex-start; gap: 10px; }
.say.k { flex-direction: row-reverse; }
.say img { width: 34px; height: 34px; border-radius: 50%; flex: none; background: var(--face); }
.say p { padding: 9px 14px; font-size: 14px; line-height: 1.8; letter-spacing: .05em; text-wrap: pretty; max-width: min(78%, 420px); white-space: pre-line; }
.say.o p { background: var(--o); border-radius: 4px 18px 18px 18px; }
.say.k p { background: var(--k); border-radius: 18px 4px 18px 18px; }
.say.gap { margin-top: 8px; }

/* さいご */
.tip { margin-top: 40px; display: flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .04em; color: var(--sub); }
.tip svg { width: 18px; height: 18px; }
.links { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--line); }
.links a { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); font-size: 14px; letter-spacing: .06em; padding-right: 4px; }
.links svg { width: 18px; height: 18px; }
.foot { margin-top: auto; padding-top: 28px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.since { font-family: "Jost", sans-serif; font-size: 10px; letter-spacing: .08em; color: var(--sub); }
.logo img { display: block; height: 13px; width: auto; }
.logo-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  .logo-light { display: none !important; }
  .logo-dark { display: block !important; }
}

/* ふたりの小言おみくじ（スマホは全画面、PC は 520×640 のカード） */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 10; }
.omi { position: fixed; inset: 0; z-index: 11; background: var(--bg); display: flex; flex-direction: column; overflow: auto;
  padding: max(44px, calc(env(safe-area-inset-top, 0px) + 12px)) 24px max(28px, env(safe-area-inset-bottom, 0px)); }
.omi .head h2 { font-size: 18px; }
.close { width: 44px; height: 44px; margin-right: -12px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.close svg { width: 22px; height: 22px; }
.omi-body { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; }
.omi-card { display: flex; flex-direction: column; transition: opacity 300ms ease; }
.omi-card.is-out { opacity: 0; }
.omi-no { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.omi-no .k { font-size: 11px; letter-spacing: .2em; color: var(--sub); }
.omi-no .n { font-family: "Jost", sans-serif; font-weight: 200; font-size: 88px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.omi-no small { font-size: .32em; font-weight: 300; letter-spacing: .06em; margin-right: 6px; }
/* おみくじだけは ふたりの小言 の色（明るい箱・デザコトは黄色） */
.talk.kogoto { margin-top: 28px; background: #f3efe6; color: #2b2a27; }
.talk.kogoto .say img { background: #fff; }
.talk.kogoto .say.o p { background: #fff; }
.talk.kogoto .say.k p { background: #e8dc6a; }
.omi-src { margin-top: 16px; display: flex; flex-direction: column; gap: 4px; }
.omi-src .d { font-family: "Jost", sans-serif; font-size: 11px; letter-spacing: .1em; color: var(--sub); }
.omi-src a { font-size: 12px; line-height: 1.7; text-decoration: underline; text-underline-offset: 3px; text-wrap: pretty; }
.omi-foot { display: flex; flex-direction: column; align-items: center; gap: 14px; flex: none; padding-top: 20px; }
.again { height: 52px; width: 100%; max-width: 320px; border-radius: 999px; border: 1px solid var(--ink); font-size: 15px; letter-spacing: .1em; }
.omi-foot .all { font-size: 12px; color: var(--sub); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- PC ---------- */
@media (min-width: 1024px) {
  :root { --d: 148px; --col: 220px; --px: 56px; }
  .page { padding: 40px 56px 28px; }
  .intro { margin-top: 28px; font-size: 14px; }
  .shelf { margin-top: 56px; }
  .app .lab { margin-top: 18px; }
  .app .lab .nm { font-size: 14px; }
  .rest { min-width: 40px; }
  .detail { margin-top: 56px; display: grid; grid-template-columns: 440px minmax(0, 1fr); gap: 56px; align-items: start; }
  .meta { display: flex; flex-direction: column; gap: 16px; }
  .big-no { font-size: 112px; }
  .cur-name { font-size: 24px; }
  .open-pc { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
  .open-pc .open { width: 280px; height: 48px; }
  .open-sp { display: none; }
  .talk { padding: 24px; }
  .tip { margin-top: 56px; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .links a + a { border-left: 1px solid var(--line); padding-left: 24px; }
  .omi { inset: auto; left: 50%; top: 50%; width: 520px; height: 640px; max-height: calc(100vh - 32px); transform: translate(-50%, -50%); border-radius: 24px; padding: 24px 32px 32px; }
  .omi-no .n { font-size: 96px; }
}
@media (prefers-reduced-motion: reduce) { .app.is-rolling .ball, .omi-card { transition: none; } }
