/* 30 BOOK CHALLENGE ── 並び・寸法の手本＝Literal（literal.club）のトップと検索（2026-12-02 木原さん「デザイン評価の高いサイトをある程度ぱくって」）
   実測して写したもの：
   ・白地／本文 Inter 14px #444340（行間1.45）／見出しは明朝系の欧文 Libre Baskerville 40px・太さ500・行間1.35・黒
   ・主ボタン 高さ48・角丸5・左右24・15px 500（色は Literal の緑＝ブランド色なので写さず、黒にした）
   ・検索欄 高さ48前後・左に虫めがね（左の余白43）・14px
   ・検索結果 1行58px・表紙28×42 角丸1・題名14px・著者14px #9a988b・区切り線なし・押すと角丸4の薄い地
   ・トップの表紙のコラージュ：幅68〜96px・高さをばらして重ねる・角丸 2/4/4/2（背の側が小さい）・影なし
   ロゴ・ブランド色・文言は写していない
   字は 12/02 夜に入れ替え：Inter＋Libre Baskerville は木原さん「フォントとかがAIっぽい」。見本3つ（蔵書印×明朝／ほぼ日×ゴシック／文喫×太いゴシック）から
   木原さんが A を選んだ＝見出しは Zen Old Mincho 700、本文は Noto Sans JP（ほぼ日 1101.com の実測と同じ字）。上の「Inter」「Libre Baskerville」の数字は寸法の記録として残す */
:root {
  --bg: #ffffff;
  --soft: #f6f6f4;
  --ink: #111111;
  --text: #444340;
  --muted: #73716a; /* Literal の灰 #9a988b は白地で 2.9:1＝小さな字が読みにくい（WCAG AA は 4.5:1）。同じ色味のまま濃くした：白で 4.9:1・--soft で 4.5:1（2026-12-02 仕上げ） */
  --line: #ececea;
  --line-2: #dcdcd8;
  --ink-2: #444340;
  --paper: #f6f6f4;
  --surface: #ffffff;
  --accent: #111111;
  --accent-soft: #f0f0ee;
  --panel: #f8f8f8;   /* Literal の機能紹介のカードの地（実測）。入口と運営者の欄 */
  --panel-2: #f1f1ef; /* その上に指が乗ったとき */
  --focus: #111111;
  --font: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "Yu Gothic UI", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --serif: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", YuMincho, "Noto Serif JP", serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* 端まで広げた表紙の列で横にスクロールしないように（clip は上の固定ヘッダーを壊さない） */
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* 見出しの日本語を語の途中で折らない（「みんなが選んだ／本」のように1字だけ次の行へ落ちていた）。
   Chrome は auto-phrase が文節で折る。Safari は keep-all＋html の <wbr> の位置で折り、入りきらないときだけ anywhere で字の途中で折る */
.hero-title, .lead, .sec-title, .sp, .entry-t, .entries-h, .sheet-head h2, .shop-head, .doc h1, .doc h2, .pk-t {
  word-break: keep-all; word-break: auto-phrase; overflow-wrap: anywhere; text-wrap: balance;
}

/* 開いたときの演出（黒い幕）の見た目は index.html の <head> の中にある（外のCSSを待たずに開いた瞬間から黒を出すため） */

/* ── ヘッダー（Literal：左に名前・下に細い線） ── */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 680px; margin: 0 auto; height: 55px; padding: 0 18px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; letter-spacing: .14em; text-transform: uppercase; }
.brand .logo { width: 25px; height: 20px; flex: none; } /* ロゴ＝③本立て（12/02 木原さんが4案から選んだ）。形の正は app.js の LOGO_RECTS */
.top-count { font-size: 13px; color: var(--muted); text-decoration: none; }
.top-count b { color: var(--ink); font-weight: 600; }

/* ── 本体 ── */
.app { max-width: 680px; margin: 0 auto; padding: 0 18px 48px; }

/* 最初の画面（Literal：中央の見出し・説明・ボタン） */
.hero { text-align: center; padding: 30px 0 0; } /* 12/03 動く表紙を題名の上へ移したので、表紙との間（上の空きとそろえる。.covers の注） */
.hero-title { margin: 0 auto; max-width: 600px; font-family: var(--serif); font-weight: 700; font-size: 29px; line-height: 1.45; color: var(--ink); letter-spacing: .01em; }
@media (min-width: 560px) { .hero-title { font-size: 40px; line-height: 1.35; } }
.lead { margin: 16px auto 0; max-width: 31em; font-size: 15px; line-height: 1.75; color: var(--text); } /* Literal は 16px。スマホの和文は 15px で3行に収める */
@media (min-width: 560px) { .lead { font-size: 16px; } }
.hero-cta { margin-top: 24px; display: grid; justify-items: center; gap: 10px; }
.note { margin: 0; font-size: 12.5px; color: var(--muted); }
.nb { display: inline-block; }

/* 表紙のコラージュ（Literal：高さをばらして重ねる。ゆっくり横へ流れる） */
.covers { position: relative; isolation: isolate; margin: 36px calc(50% - 50vw) 0; height: 172px; /* Literal と同じく画面の端から端まで */ overflow: hidden; }
/* 12/03 木原さん「配置のバランス整えて」「なんかバランス良く無くね」：表紙の上と下の空きを同じ 36px に見せる。
   高さ 172px＝landing.js の TOP と W で一番下に来る表紙の下端（TOP 52＋80×1.5）。前の 210px は下の 38px が空で、上 44px に対して下が 82px 空いて見えた。
   landing.js の TOP・W を変えたら、ここの高さも合わせる。下の空きは .hero の上の余白 30px＋題名の行間（約6px） */
/* 両端のぼかしは白い幕を重ねる（2026-12-03。前は mask-image で、動き続ける中身に毎コマ型抜きがかかり、スマホで重くなりやすかった） */
.covers::before, .covers::after { content: ''; position: absolute; top: 0; bottom: 0; width: 8%; z-index: 1; pointer-events: none; }
.covers::before { left: 0; background: linear-gradient(90deg, var(--bg), rgba(255, 255, 255, 0)); }
.covers::after { right: 0; background: linear-gradient(270deg, var(--bg), rgba(255, 255, 255, 0)); }
.covers-track { position: absolute; left: 0; top: 0; z-index: 0; height: 100%; display: flex; width: max-content; animation: drift 70s linear infinite; } /* 速さは landing.js が並べた幅から決めて上書きする（70s は読めなかったときの控え）。will-change は外した（12/03 消える件） */
.covers-set { position: relative; height: 100%; flex: none; }
.covers-set img { position: absolute; display: block; object-fit: cover; border-radius: 2px 4px 4px 2px; background: var(--soft); }
@keyframes drift { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .covers-track { animation: none; } }

/* お題の見出しと進み具合 */
.progress { margin: 40px 0 6px; scroll-margin-top: 70px; }
.progress-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.sec-title { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 1.3; color: var(--ink); }
.progress-n { font-size: 13px; color: var(--muted); }
.progress-n b { color: var(--ink); font-weight: 600; font-size: 15px; }
.sec-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.progress .resume { font-size: 12px; color: var(--text); background: var(--soft); border-radius: 99px; padding: 1px 10px; }
.progress-bar { margin-top: 14px; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.progress-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s ease; }

/* ── お題（Literal の一覧のように：箱にせず、細い線で区切る） ── */
.list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); } /* 列を中身の幅に広げない */
.card { border-bottom: 1px solid var(--line); scroll-margin-top: 70px; }
/* 本棚の行（2026-12-02 木原さんが案Bを選んだ）。手本＝Literal の本の一覧の行：左に表紙（40×60・角丸 2/4/4/2）、右に題名と著者、区切り線だけ。
   行ぜんたいが1つのボタン（高さ84px）。まだのお題は点線の空の表紙に番号、右に丸い「＋」（開くと45度回って×） */
.srow { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; column-gap: 14px; width: 100%; min-height: 84px; padding: 12px 0; border: 0; background: none; text-align: left; color: inherit; }
.slot { width: 40px; height: 60px; border: 1px dashed var(--line-2); border-radius: 2px 4px 4px 2px; display: grid; place-items: center; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; transition: border-color .15s ease; }
.srow:hover .slot, .srow[aria-expanded="true"] .slot { border-color: var(--ink); }
.srow .thumb { display: block; }
.stx { display: grid; gap: 2px; min-width: 0; }
.sp { font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.sp small { margin-right: 8px; font-size: 12px; font-variant-numeric: tabular-nums; }
.is-filled .sp { font-size: 12px; font-weight: 400; color: var(--muted); }
.sb { font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1.45; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.sa { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sgo { font-size: 13px; font-weight: 500; color: var(--text); white-space: nowrap; }
.sgo.plus { width: 32px; height: 32px; border: 1px solid var(--line-2); border-radius: 50%; display: grid; place-items: center; font-size: 18px; font-weight: 400; line-height: 1; color: var(--ink); transition: transform .2s ease, border-color .15s ease; }
.srow:hover .sgo.plus { border-color: var(--ink); }
.srow[aria-expanded="true"] .sgo.plus { transform: rotate(45deg); }
.body:empty { display: none; }
.card.is-open .body { padding: 2px 0 20px; } /* 開いた検索は行の幅いっぱい（表紙の幅ぶん下げると、スマホで検索欄が狭くなる） */
.card .shop.under { margin: -16px 0 4px; column-gap: 16px; } /* 選んだ本の下の1行。表紙の左端から（題名の左端 54px から始めると、Apple Books まで入れた4つが 375px の画面で1行に収まらなかった） */
.shop a.store { color: var(--muted); text-decoration: none; font-weight: 400; }

/* ── 検索（Literal の検索欄と結果の一覧） ── */
.qmode { display: inline-flex; gap: 2px; margin: 0 0 10px; padding: 3px; background: var(--soft); border-radius: 7px; }
/* 「題名で／著者で」の段の右に「見つからないときは手で書く」（12/03 木原さん「下過ぎて気づけない」）。せまい画面では次の行へ落ちる＝それでも検索欄の上 */
.qbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0 8px; margin: 0 0 10px; }
.qbar .qmode { margin: 0; }
.to-manual { min-height: 44px; font-size: 12.5px; font-weight: 500; white-space: nowrap; } /* 12.5px・間8px＝幅360px の Android でもタブと1行に収まる（13px だと 5px 足りず次の行へ落ちた） */
.qmode button { min-height: 38px; border: 0; background: none; padding: 0 16px; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--muted); } /* 外枠の3px×2と足して44px */
.qmode button[aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.q, .in {
  width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 5px;
  background: var(--bg); font-size: 16px; color: var(--ink); outline: none; -webkit-appearance: none; appearance: none;
}
.q {
  padding-left: 43px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 24 24' fill='none' stroke='%239a988b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 20 20'/%3E%3C/svg%3E") no-repeat 16px 50%;
}
.q::placeholder, .in::placeholder, .narrow::placeholder { color: var(--muted); }
.q:focus, .in:focus { border-color: var(--ink); }
.in.err { border-color: #c2453a; }
.q::-webkit-search-cancel-button { -webkit-appearance: none; }
.status { margin: 8px 2px 0; font-size: 13px; color: var(--muted); }
.status:empty { display: none; }
.results {
  list-style: none; margin: 8px 0 0; padding: 6px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  max-height: 440px; overflow: auto; overscroll-behavior: contain;
}
.results:empty { display: none; }
.result {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; text-align: left; border: 0; background: transparent;
  padding: 8px; border-radius: 4px;
}
.result:hover, .result:focus-visible { background: var(--soft); }
.result img, .result .noimg { width: 32px; height: 48px; object-fit: cover; border-radius: 1px 2px 2px 1px; flex: none; background: var(--soft); }
.result .noimg.text { display: grid; place-items: center; color: #fff; font-size: 7px; font-weight: 600; line-height: 1.2; padding: 2px; text-align: center; overflow: hidden; word-break: break-all; }
.rt { display: grid; gap: 1px; min-width: 0; }
.rt b { font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rt small { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kind { color: var(--text); }
.kind::after { content: "・"; color: var(--muted); } /* 区切りを「・」1つにそろえる（「紙の本 · 著者・年」と2種類まざっていた） */

.row { display: flex; align-items: center; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.link { border: 0; background: none; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link:hover { text-decoration-color: currentColor; }
.link.muted { color: var(--muted); font-size: 13px; text-decoration: none; }
.link.strong { font-weight: 500; font-size: 13.5px; display: inline-block; margin-top: 4px; }

.chips { display: flex; align-items: center; gap: 6px; overflow-x: auto; padding: 6px 1px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips-label { flex: none; font-size: 12.5px; color: var(--muted); }
/* 札は見た目36px。押せる範囲は上下4pxずつ広げて44px（.chips の上下6pxの中に収まる） */
.chip { position: relative; flex: none; min-height: 36px; border: 1px solid var(--line-2); background: var(--bg); border-radius: 99px; padding: 0 14px; font-size: 13px; font-weight: 500; white-space: nowrap; color: var(--ink); }
.chip::after { content: ""; position: absolute; inset: -4px 0; }
.chip:hover { background: var(--soft); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.narrow { width: 100%; height: 44px; margin-top: 10px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 5px; background: var(--bg); font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.narrow:focus { border-color: var(--ink); }
.results .more { padding: 10px 8px 6px; text-align: center; }
.hint-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.hint-row:empty { display: none; }
.hint-row .note { font-size: 13px; color: var(--muted); }

/* 手で書く */
.manual { display: grid; gap: 8px; }
.photo-row { display: flex; align-items: center; gap: 12px; }
.photo-prev { width: 40px; height: 60px; border-radius: 2px 4px 4px 2px; background: var(--soft); display: grid; place-items: center; overflow: hidden; flex: none; border: 1px dashed var(--line-2); }
.photo-prev img { width: 100%; height: 100%; object-fit: cover; }
.photo-prev span { font-size: 10px; color: var(--muted); text-align: center; line-height: 1.3; }
.photo-acts { display: grid; gap: 4px; justify-items: start; }
.sr { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* 選んだ本の表紙（本棚の行の左） */
.thumb { width: 40px; height: 60px; border-radius: 2px 4px 4px 2px; object-fit: cover; flex: none; background: var(--soft); }
.thumb.text { display: grid; place-items: center; color: #fff; font-size: 8px; font-weight: 600; line-height: 1.25; padding: 3px; text-align: center; overflow: hidden; word-break: break-all; }

/* ── 仕上げ ── */
.finish { margin-top: 28px; display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field-label { font-size: 14px; font-weight: 500; color: var(--ink); }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; padding: 0 24px; border-radius: 5px;
  border: 1px solid transparent; font-size: 15px; font-weight: 500; text-decoration: none;
}
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #2b2b2b; }
.btn.primary:disabled { background: #c9c9c5; cursor: default; }
.btn.ghost { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { background: var(--soft); }
.btn.small { height: 44px; font-size: 14px; width: auto; padding: 0 16px; }
.btn.start { width: auto; min-width: 180px; }
.reset { justify-self: center; margin-top: 2px; }

.foot { max-width: 680px; margin: 0 auto; padding: 22px 18px 44px; font-size: 12px; color: var(--muted); line-height: 1.8; }
.foot > p { margin: 0; }
/* 一番下の案内（手本＝musicjuzu のフッター：12px の下線つきリンクを横に並べ、折り返す）。トップと別ページ5つで同じ */
/* ── 一番下（2026-12-02 作り直し）──
   運営者の欄：手本＝木原さんの note のプロフィール（丸いアイコン＋名前＋紹介文）。見た目はこのサイトに合わせた＝白地・細い罫線・名前は Zen Old Mincho・小さな「運営者」の見出し・黒い枠のボタン
   案内のリンク：スマホでは2列のマス（1行44px・下に罫線）。flex の折り返しだと長さのちがうリンクが詰まって並び、木原さん「変にくっついたりしてる」。広い画面では1行に並べる */
.op-card { margin: 0 0 26px; padding: 24px; border-radius: 8px; background: var(--panel); } /* 入口のカードと同じ Literal の面 */
@media (min-width: 560px) { .op-card { padding: 32px; } }
.op-label { margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.op-head { display: flex; align-items: center; gap: 14px; }
.op-icon { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); border: 1px solid var(--line); filter: grayscale(1); }
.op-link, .op-sns { background: var(--bg); } /* 灰色の面の上でボタンが沈まないように白地 */
.op-name { margin: 0; font-family: var(--font); font-size: 17px; font-weight: 700; line-height: 1.4; letter-spacing: .04em; color: var(--ink); } /* 明朝は木原さん「しおりのフォントきもい」（12/02）→ 本文と同じゴシック */
.op-role { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--text); }
.op-bio { margin: 14px 0 0; font-size: 13.5px; line-height: 1.9; color: var(--text); }
.op-link { display: inline-flex; align-items: center; height: 44px; margin-top: 14px; padding: 0 18px; border: 1px solid var(--ink); border-radius: 5px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; }
.op-link:hover { background: var(--ink); color: #fff; }
.op-link span { margin-left: 6px; }
/* note の後に X・Instagram（木原さん 12/02）。note が本題なので黒い枠、X と Instagram は細い枠の小さめ */
.op-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.op-links .op-link { margin-top: 0; }
.op-sns { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none; }
.op-sns:hover { border-color: var(--ink); color: var(--ink); }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; column-gap: 18px; margin: 0; }
.foot-nav a { display: flex; align-items: center; min-height: 44px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--text); text-decoration: none; }
.foot-nav a:hover { color: var(--ink); }
@media (min-width: 560px) {
  .foot-nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
  .foot-nav a { border-bottom: 0; min-height: 36px; }
}
.foot > .foot-mark { display: flex; align-items: center; gap: 12px; margin: 40px 0 0; font-size: 18px; font-weight: 700; line-height: 1; letter-spacing: .14em; color: var(--ink); }
.foot-mark .logo { width: 38px; height: 30px; flex: none; } /* 12/03 木原さん「一番下の30 book challengeのやつもっと大きく、バランスよく」：11px・20×16 → 18px・38×30（ロゴの元の大きさ＝viewBox 38×30）。上の案内（13px）より一段大きい締めの印に */
@media (min-width: 560px) { .foot > .foot-mark { font-size: 20px; } }
.foot > .foot-src { margin: 14px 0 0; font-size: 11.5px; line-height: 1.8; color: var(--muted); } /* 12/03「下の方詰まってる」：.foot > p { margin: 0 } に負けて、すき間が0になっていた → 同じ強さで書き直した */

/* ── できあがり（下から出るシート） ── */
.sheet { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); display: flex; align-items: flex-end; justify-content: center; z-index: 20; }
.sheet-in {
  width: 100%; max-width: 680px; max-height: 88vh; max-height: calc(100dvh - 44px - env(safe-area-inset-top)); overflow: auto; overscroll-behavior: contain; background: var(--bg);
  /* 高さは「いま見えている画面」（dvh）から、上の時刻・電池の帯（safe-area）と 44px を引いた分まで。前の 94vh は iPhone の Safari で
     「ツールバーを隠したときの画面」の高さ＝見えている画面より高く、シートの上端（×のある帯）が画面の上の帯の下へ入って押せなかった（2026-12-03） */
  border-radius: 14px 14px 0 0; padding: 0 18px calc(20px + env(safe-area-inset-bottom)); /* 上の余白は .sheet-head が持つ（シートに余白があると、上に残る帯がその分下で止まる） */
  display: grid; gap: 12px; animation: up .22s ease-out;
}
@keyframes up { from { transform: translateY(24px); } to { transform: none; } } /* 透明から始めない（動きが止まる端末でシートが透けたままになった） */
@media (min-width: 720px) { .sheet { align-items: center; } .sheet-in { border-radius: 12px; } }
.sheet-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; margin: 0 -18px; padding: 16px 18px 8px; background: var(--bg); } /* 送っても上に残る＝本屋さんの一覧まで送っても×が押せる */
.sheet-head h2 { margin: 0; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); }
.grab { position: absolute; top: 6px; left: 50%; width: 36px; height: 5px; margin-left: -18px; border-radius: 3px; background: var(--line-2); } /* 下へ払うと閉じる目印 */
@media (min-width: 720px) { .grab { display: none; } } /* 広い画面のシートは真ん中に出る＝払わない */
.x { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 0; background: none; color: var(--text); }
.x span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--line); } /* 前は薄い灰の「×」の字だけで、押せる所に見えなかった */
.x:hover span { background: var(--line-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--soft); border-radius: 7px; padding: 3px; gap: 3px; }
.seg button { border: 0; background: transparent; border-radius: 5px; padding: 8px 6px; font-size: 14px; font-weight: 500; display: grid; line-height: 1.3; color: var(--muted); }
.seg button small { font-size: 11px; font-weight: 400; color: var(--muted); }
.seg button[aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }
.preview { position: relative; display: grid; place-items: center; min-height: 200px; }
.preview img { display: block; width: auto; max-width: 100%; height: auto; max-height: 56vh; margin: 0 auto; border-radius: 6px; border: 1px solid var(--line); background: var(--bg); } /* 縦長のストーリーでも、画像と保存のボタンが最初の画面に入る高さに */
.preview img:not([src]) { visibility: hidden; }
.wait { position: absolute; margin: 0; font-size: 14px; color: var(--muted); }
.sheet-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sheet-row .btn { height: 44px; font-size: 14px; padding: 0 10px; }
.sheet-row.one { grid-template-columns: 1fr; } /* スマホで「Xにポストする」を出さないときは、コピーを横いっぱいに */
.hint { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.8; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: var(--ink); color: #fff; font-size: 14px; padding: 10px 16px; border-radius: 6px; z-index: 30;
  width: max-content; max-width: calc(100% - 36px); box-shadow: 0 6px 18px rgba(0,0,0,.2);
}

/* ── 本屋さんへのリンク（アフィリエイト広告） ──
   「PR」の札は 2026-12-02 に外した（木原さん）。広告であることはページの一番下の「広告について」（.foot-nav）→ ads.html で言う。 */
/* 字は小さいまま、押せる高さは44px（文字の上下に余白を足す。並びの見た目の間隔は負の余白で前と同じに保つ） */
.shop { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; margin: -8px 0 -10px; font-size: 13px; }
.shop a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.shop a:hover { text-decoration-color: currentColor; }
.shop.under { margin: -2px 0 -10px 54px; } /* 54 = 表紙の幅40＋すき間14。題名の左端にそろえる */

.shop-sec { margin-top: 6px; padding: 14px 14px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); display: grid; gap: 8px; }
.shop-head { margin: 0; display: flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.shop-list { list-style: none; margin: 0; padding: 0; display: grid; }
.shop-list li { display: grid; grid-template-columns: 24px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); }
.shop-list .sn { font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.5; }
.shop-list .st { display: grid; min-width: 0; }
.shop-list .st small { font-size: 12px; color: var(--muted); line-height: 1.5; }
.shop-list .st b { font-family: var(--serif); font-size: 15px; font-weight: 500; line-height: 1.4; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.shop-list .st span { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shop-list .shop { grid-column: 2; gap: 6px; margin: 8px 0 0; }
.shop-list .shop a {
  display: inline-flex; align-items: center; height: 44px; padding: 0 13px; border: 1px solid var(--line-2); border-radius: 5px; /* 左右13px＝3つが 375px の画面で1行に収まる（16pxだと楽天ブックスだけ1px足りず落ちた） */
  background: var(--bg); font-size: 13px; text-decoration: none; color: var(--ink);
}
.shop-list .shop a:hover { background: var(--soft); }
.shop-note { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.7; }
/* Audible だけのカード（.audible）は 2026-12-03 に Kindle+・Audible のバナー（一番下の .promo）へ置きかえた */

/* ── 入口のページ（index.html。2026-12-02 に30のお題を make.html へ分けた）──
   できあがりの見本・Xへの2つのリンク・「みんなの30冊から」の入口。手本は musicjuzu の“機能”だけで、見た目はこのサイト（白地・細い罫線・明朝の見出し・黒いボタン）
   ボタンは「はじめる」→「自分の30冊をつくる」（木原さん「始めるはわかりにくい」） */
.sample { margin: 56px auto 0; max-width: 220px; text-align: center; } /* 12/03 一番下へ移し、少し小さく */
.sample img { display: block; width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0, 0, 0, .10); }
.sample figcaption { margin-top: 8px; font-size: 12px; color: var(--muted); }
/* 見本を5枚重ねて、色と並べ方が移り変わるように（12/03 木原さん「いろいろ色などが移り変わるようなデザインにしたい、実際変えれるし」）。JS なし＝CSS の animation だけ。
   1枚3秒×5枚＝15秒で1周。次の1枚は前の1枚が消える間に重なって出る（約0.6秒）。動きを減らす設定の端末は1枚目だけ */
.sample-stack { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 16px 36px rgba(0, 0, 0, .10); background: var(--soft); }
.sample .sample-stack img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: 0; box-shadow: none; opacity: 0; animation: sample-cycle 15s linear infinite; }
.sample .sample-stack img:nth-child(2) { animation-delay: 3s; }
.sample .sample-stack img:nth-child(3) { animation-delay: 6s; }
.sample .sample-stack img:nth-child(4) { animation-delay: 9s; }
.sample .sample-stack img:nth-child(5) { animation-delay: 12s; }
@keyframes sample-cycle { 0% { opacity: 0; } 4% { opacity: 1; } 20% { opacity: 1; } 24% { opacity: 0; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sample .sample-stack img { animation: none; } .sample .sample-stack img:first-child { opacity: 1; } }
/* ボタンの下：左寄せの小さな注意書き1行、その下に X のリンク2つを右寄せで縦に（12/03 木原さん「たどたどしい」。手本＝musicjuzu の .mh-terms（左寄せ）と .x-reaction-link（右寄せ・13px・太字＋下線）を実測） */
.cta-meta { display: grid; gap: 2px; width: 100%; max-width: 320px; margin-top: -2px; text-align: left; }
.cta-meta .note { margin: 0; }
@media (min-width: 560px) { .hero-cta { width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; justify-items: stretch; } .cta-meta { max-width: none; } } /* 広い画面はボタン2つが横並び＝その幅に下の1行の両端をそろえる */
.x-links { display: grid; justify-items: end; margin: 0; text-align: right; }
.x-links a { display: inline-flex; align-items: center; min-height: 34px; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.x-links a:hover { text-decoration-color: currentColor; }
.x-links a span { margin-left: .3em; } /* inline-flex にすると「見る ↗」の間の空白が消えるため */
/* 2026-12-02 仕上げ（木原さんが案Cを選んだ）：入口は Literal の機能紹介のカードの形を実測して写した
   ＝地 #f8f8f8・角丸8px・枠なし・内側の余白40px（スマホは24px）・カードの間20px。上に中央の明朝の見出し（Literal は 28px 500）を1回だけ */
.entries-h { margin: 56px 0 18px; text-align: center; font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 1.4; color: var(--ink); }
@media (min-width: 560px) { .entries-h { font-size: 28px; } }
.entries { margin: 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .entries { grid-template-columns: 1fr 1fr; gap: 20px; } }
.entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't go' 's go'; align-items: center; padding: 24px; border-radius: 8px; background: var(--panel); color: var(--ink); text-decoration: none; }
@media (min-width: 560px) { .entry { padding: 32px; } }
.entry:hover { background: var(--panel-2); }
.entry { border: 1px solid var(--line-2); } /* 12/03 木原さん「ボタンの境界線がわかりにくいかも」：地 #f8f8f8 だけだと白いページとの境がほぼ見えない。2つ目のボタン（.btn.ghost）と同じ線の色で縁どる */
.entry-t { grid-area: t; font-family: var(--serif); font-size: 19px; font-weight: 700; line-height: 1.45; }
.entry-s { grid-area: s; margin-top: 2px; font-size: 12.5px; color: var(--text); }
.entry-go { grid-area: go; padding-left: 12px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.make-page .progress { margin-top: 26px; }

/* 10冊版への入口（2026-12-02 木原さん「時間がない人向けに10個のver」）：トップのボタンの下と、30のお題のページの見出しの下。本題（30冊）より一段控えめな下線のリンク */
/* 10のお題の入口は、Literal のトップの「主ボタン＋2つ目のボタン」の並び（Join for free ＋ App Store）に合わせて白い2つ目のボタンに。
   スマホは縦に同じ幅で2つ、広い画面は横に2つ。「無料・登録なし」は2つの下（前は字のリンクで、X の2つと合わせて下線のリンクが3段続いていた） */
.cta-row { display: grid; gap: 10px; width: 100%; max-width: 320px; }
.cta-row .btn { width: 100%; min-width: 0; }
.go-quick { font-size: 14px; }
@media (min-width: 560px) { .cta-row { display: flex; justify-content: center; width: auto; max-width: none; } .cta-row .btn { width: auto; } }
.size-switch { margin: 2px 0 0; }
.size-switch a { display: inline-flex; align-items: center; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }

/* ── PR：Amazon の本のサブスク（Kindle+・Audible）のバナー 2026-12-03 ──
   色の地・右上の PR の札・白い丸のボタン「今すぐチェック」は手本＝musicjuzu の 30 MUSIC CHALLENGE の Amazon のバナー（.prime-entry）から。
   **形と大きさは、すぐ上の「みんなの30冊から」の入口（.entries / .entry）にそろえる**（木原さん 12/03「形とか大きさはホームページ全体として統一感とか大事」）
   ＝角丸8px・内側の余白24px（広い画面32px）・影なし・横幅いっぱい・間12px（広い画面は2列で間20px）。
   ボタン（今すぐチェック）は字の下（12/03 木原さん「窮屈だぞ」：字の右にボタンを並べると、スマホでは字・ボタン・飾りが1行に詰まった。手本の Amazon のバナーも字の下）。
   最初の版（角丸16px・影・最大560pxの正方形2枚）は手本の寸法そのままで、ページの中で1か所だけ別物に見えていた。中身は promo.js が描く。
   本文の白黒から外した色の地にするのは、広告だと一目で分かるようにするため（musicjuzu と同じ考え）。
   白い字の読みやすさ：Kindle+ の紺は 9:1 以上、Audible の橙は一番明るい所でも 4.5:1（#b84a06）以上にしてある */
.promo { margin: 12px 0 0; }
.promo[hidden] { display: none; }
.promo-row { display: grid; gap: 12px; }
.promo-ban { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
  padding: 24px; border-radius: 8px; color: #fff; text-decoration: none; transition: filter .15s ease; }
.promo-ku { background: linear-gradient(140deg, #0f3d6e, #1a5fa8); }
.promo-au { background: linear-gradient(140deg, #b84a06, #d9600a); }
.promo-ban:hover { filter: brightness(1.08); }
.promo-pr { position: absolute; top: 8px; right: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .35); font-size: 10px; font-weight: 800; line-height: 1.5; letter-spacing: .02em; }
.promo-txt { position: relative; z-index: 1; display: grid; min-width: 0; }
.promo-brand { overflow: hidden; font-size: 11px; font-weight: 700; letter-spacing: .02em; white-space: nowrap; text-overflow: ellipsis; opacity: .92; } /* 「旧 Kindle Unlimited」「オーディオブック」の小さな1行 */
.promo-name { font-size: 22px; font-weight: 800; line-height: 1.25; letter-spacing: .01em; }

.promo-what { margin-top: 4px; font-size: 13.5px; font-weight: 700; line-height: 1.5; }
.promo-btn { position: relative; z-index: 1; flex: none; padding: 7px 14px; border-radius: 99px; background: #fff; font-size: 12.5px; font-weight: 800; line-height: 1.3; color: #111; white-space: nowrap; }
.promo-art { position: absolute; right: 18px; bottom: -12px; width: 116px; height: auto; color: #fff; opacity: .14; pointer-events: none; } /* 飾りは右下の空いた所へ（字とボタンは左にまとまる） */
@media (min-width: 560px) {
  .promo { margin-top: 20px; }
  .promo-row { grid-template-columns: 1fr 1fr; gap: 20px; }
  .promo-ban { padding: 32px; }
  .promo-name { font-size: 26px; }
}
.promo-note { margin: 10px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
/* できあがりの画面の「この◯冊を、本屋さんで」の中：枠がせまいので、広い画面でも1列・余白は20px */
.shop-sec .promo { margin: 4px 0 0; }
.shop-sec .promo-row { grid-template-columns: 1fr; gap: 10px; }
.shop-sec .promo-ban { padding: 20px; }
.shop-sec .promo-name { font-size: 22px; }

/* ── できあがりの画面：並べ方と色を選ぶ札（2026-12-03 デザイン担当セッション）──
   札は検索の「著者でしぼる」と同じ .chip（見た目36px・押せる範囲44px）。選んでいるものは墨のぬりつぶし。色の札には小さな丸で色を見せる */
.opt-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 6px; padding: 4px 0; }
.opt-label { flex: none; width: 4.2em; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.opt-row .chip[aria-checked="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.opt-row .chip { display: inline-flex; align-items: center; gap: 6px; }
.opt-colors .opt-name { font-size: 13px; font-weight: 500; color: var(--ink); }
/* 色見本：押せる範囲44px・見た目は30pxの丸。選んでいる色は墨の輪。スマホは5つ＋4つの2段、広い画面は1段に9つ */
.swatches { flex-basis: 100%; display: grid; grid-template-columns: repeat(5, 44px); gap: 2px 6px; }
@media (min-width: 480px) { .swatches { grid-template-columns: repeat(9, 44px); } }
.swatch { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; border-radius: 50%; }
.swatch i { display: block; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14); }
.swatch[aria-checked="true"] i { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .14), 0 0 0 2px var(--bg), 0 0 0 4px var(--ink); }

/* ── 右上の三本線（≡）のメニュー 2026-12-03（中身は nav.js）──
   ボタンは押せる大きさ 44px・線は 18px×1.5px（字の色）。開くとヘッダーのすぐ下に、ページと同じ幅の一覧が出る。
   一覧の1行はトップの入口と同じ字の大きさ・区切りは細い線（.line）＝ページの他の部品とそろえる */
.top-in > :nth-child(2) { margin-left: auto; }
.menu-btn { flex: none; display: grid; place-content: center; gap: 4px; width: 44px; height: 44px; margin: 0 -12px 0 4px; padding: 0; border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.menu-btn span { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--ink); transition: transform .2s ease, opacity .2s ease; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }
.menu { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(0, 0, 0, .06); }
.menu[hidden] { display: none; }
.menu ul { list-style: none; max-width: 680px; margin: 0 auto; padding: 4px 18px 10px; }
.menu li + li { border-top: 1px solid var(--line); }
.menu li a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu li a::after { content: "→"; font-size: 13px; color: var(--muted); }
.menu li a[aria-current="page"] { color: var(--muted); }
.menu li a[aria-current="page"]::after { content: "いまのページ"; font-size: 11.5px; }
/* 控えめな行き先（サイトについて）：主な一覧と同じ行（高さ52px・字15px）のまま、区切り線の下の2つ目のまとまりに。字は灰色・細め（12/03「位置もサイズもきもい」。
   手本＝Google Material Design のナビゲーションの引き出し＝まとまりを区切り線で分け、行の形はそろえる。前の「一覧の下に小さな下線の字」は浮いて見えた） */
.menu ul.menu-sub { padding-top: 0; }
.menu ul.menu-sub::before { content: ""; display: block; height: 1px; margin-bottom: 4px; background: var(--line-2); }
.menu ul.menu-sub li a { font-weight: 400; color: var(--muted); }

/* ── 「画像にする」の帯と、できあがりの画面の並び（2026-12-03 木原さん「画像にするのとこUIUXつかいずらい」）──
   ①30のお題のページ：「画像にする（N冊）」を画面の下に固定（前はお題30個の下まで送らないと押せなかった）
   ②できあがり：画像 → 見た目（形・並べ方・色・名前）→ 本屋さん。保存・X・コピーはシートの下に固定（前は見た目の3段が先で、保存が最初の画面の外だった） */
.make-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 10px 18px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(8px); -webkit-backdrop-filter: saturate(1.4) blur(8px); border-top: 1px solid var(--line); }
.make-bar .btn { max-width: 644px; margin: 0 auto; }
.make-page .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); } /* 帯の下に一番下の案内が隠れないように */
.make-page .finish { margin-top: 20px; }
.opts { display: grid; gap: 8px; }
.opts .hint { margin: -2px 0 0; }
.sheet-in { padding-bottom: 0; } /* 下の余白は固定した帯（.sheet-foot）が持つ＝帯の下から本屋さんの欄が透けて見えないように */
.sheet-foot { position: sticky; bottom: 0; z-index: 2; display: grid; gap: 8px; margin: 0 -18px; padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }

/* PR のバナーを一番下の案内のすぐ上に置く入れ物（12/03 木原さん「どのページにも下の方にのせておいて」。30のお題のページと別ページ。トップは「みんなの30冊から」の下にある）
   幅と左右の余白は本文（.app・.doc）と同じ 680px／18px。.doc の中に入れないのは、.doc p の大きな字が注意書きに当たるため */
.promo-wrap { max-width: 680px; margin: 0 auto; padding: 0 18px 40px; }

/* 「本のリストをコピー」（と PC の「Xにポストする」）は、枠つきの大きなボタンではなく、主ボタンの下の小さな字のリンクに
   （2026-12-03 木原さん「本のリストのコピーの配置サイズがきもい」：主ボタンとほぼ同じ大きさの枠が横いっぱいに並び、どちらが本題か分からなかった）。
   押せる高さは 44px のまま。スマホのアプリのボタン（Xに投稿する など）は手順なので、枠つきのボタンのまま（下の .app-btns） */
.sheet-foot { gap: 2px; }
.sheet-foot .sheet-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 24px; }
.sheet-foot #copy, .sheet-foot #post { width: auto; height: auto; min-height: 44px; padding: 0 2px; border: 0; border-radius: 0; background: none; font-size: 13.5px; font-weight: 500; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.sheet-foot #copy:hover, .sheet-foot #post:hover { background: none; text-decoration-color: currentColor; }

/* ── できあがりの画面をそろえる（2026-12-03 木原さん「できあがりのデザイン配置サイズきもい、統一感ない」）──
   ・見た目を選ぶ3つ（形・並べ方・色）は同じ形＝小さな見出し（12px 太字・灰）＋横いっぱいの部品。段の間は 14px
   ・形と並べ方は同じ切り替え（.seg：灰の溝に白い札・高さ40・1行）。色は9つの丸を横いっぱいに等分（丸28px・押せる高さ44px）
   ・本屋さんの欄は枠の箱をやめ、上に細い線を引くだけ。本ごとの Amazon・Kindle・楽天ブックスも、ほかのページと同じ下線の字のリンクに */
.opts { gap: 14px; }
.opt { display: grid; gap: 6px; }
.opt-h { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
.opt-h .opt-name { font-size: 12.5px; font-weight: 500; letter-spacing: 0; color: var(--ink); }
.opts .seg { padding: 3px; border-radius: 8px; }
.opts .seg button { display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 6px; border-radius: 6px; font-size: 14px; line-height: 1; white-space: nowrap; }
.opts .seg button small { font-size: 11.5px; }
.opts .swatches { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0; }
.opts .swatch { width: 100%; height: 44px; }
.opts .swatch i { width: 28px; height: 28px; }
.opts .hint { margin: 2px 0 0; }
.sheet-in .shop-sec { margin-top: 4px; padding: 18px 0 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.shop-list .shop { gap: 0 18px; margin: 2px 0 -6px; }
.shop-list .shop a { height: auto; min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none; font-size: 13px; font-weight: 500; color: var(--text); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.shop-list .shop a:hover { background: none; text-decoration-color: currentColor; }

/* スマホのアプリのボタン（保存のあとに押す）。投稿＝X とインスタの2つを横に、ストーリー＝1つを横いっぱいに。高さ44・角丸は主ボタンと同じ */
.app-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 6px; }
.app-btns.one { grid-template-columns: 1fr; }
.app-btns .btn { height: 44px; padding: 0 8px; font-size: 14px; }
.app-btns[hidden], .app-btns .btn[hidden] { display: none; }

/* ── みんなに公開（できあがりの画面。中身は publish.js）・みんなの投稿（トップ。中身は landing.js）2026-12-03 ──
   手本＝musicjuzu の 30 MUSIC CHALLENGE の働き（ニックネーム＋ひとことで公開／トップに新しい順）。見た目は本屋さんの一覧（.shop-sec）と入口のカード（.entry）にそろえた */
.pub-sec { margin-top: 6px; padding: 16px 14px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); display: grid; gap: 10px; }
.pub-h { margin: 0; font-family: var(--serif); font-size: 17px; font-weight: 500; line-height: 1.4; color: var(--ink); }
.pub-lead, .pub-note, .pub-msg { margin: 0; font-size: 12.5px; line-height: 1.7; color: var(--text); }
.pub-note { color: var(--muted); }
.pub-msg:empty { display: none; }
.pub-lead a { color: var(--ink); word-break: break-all; }
.pub-in { width: 100%; box-sizing: border-box; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 6px; background: var(--bg); font: inherit; font-size: 16px; color: var(--ink); } /* 16px＝iPhone で入力欄を押しても画面が拡大されない */
textarea.pub-in { resize: vertical; line-height: 1.6; }
.pub-in:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.pub-go { width: 100%; }
.pub-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pub-row .btn { width: 100%; min-width: 0; }
.pub-stop { min-height: 44px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.feed { margin: 0; }
.feed-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feed-list li { border-bottom: 1px solid var(--line); }
.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 2px; color: var(--ink); text-decoration: none; }
.feed-item:hover { background: var(--soft); }
.feed-covers { display: flex; gap: 2px; width: 74px; }
.feed-covers img, .feed-covers span { width: 17px; height: 26px; object-fit: cover; border-radius: 1px 2px 2px 1px; background: var(--soft); flex: none; }
.feed-t { display: block; font-size: 15px; font-weight: 500; line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed-s { display: block; font-size: 12px; color: var(--muted); }
.feed-go { font-size: 13px; color: var(--muted); }
.feed-more { display: flex; margin: 16px auto 0; }
.pub-col { display: grid; gap: 4px; justify-items: center; }
.pub-col .btn { width: 100%; }
