/* app だけの上書き（生成物ではない）。app-reader.css・app-site.css の後に読む */
.mg {
  --f-mincho: var(--font-mg-mincho), "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-ui: var(--font-mg-ui), "Hiragino Sans", "Yu Gothic", sans-serif;
  --f-letter: var(--font-mg-letter), "Hiragino Sans", "Yu Gothic", sans-serif;
  --display: var(--f-mincho);
  --body: var(--f-ui);
}
/* 読み手はサイトの帯の上に全画面で（STORY の読み手と同じ）。目次と Review の欄はさらに上 */
.mg-reader .v { position: fixed; inset: 0; z-index: 60; overflow-y: auto; }
.mg-reader .v-drawer, .mg-reader .v-rvpanel { z-index: 70; }
/* 本番では Review の札を出さない */
.mg-prod .review, .mg-prod .v-rv { display: none !important; }
/* 本棚・作品の頁の HP の案内（読む前の一行） */
.mg .mg-hp-note { margin: 0; padding: 10px 14px; border-radius: 8px; background: var(--water-soft); color: var(--ink); font-size: 13.5px; line-height: 1.8; }
.mg .mg-hp-note a { color: var(--water); font-weight: 700; }
/* 試作の .v は min-height: 100dvh で中の段が伸び、頁が画面より高ければ body が流れる。
   app では .v を画面に固定するので、中の段が縮んで頁の上下が切れる → 段は中身の高さまで伸ばし、.v の中で流す */
.mg-reader .v-stage { min-height: auto; }

/* 上巻・下巻（2026-10-26）：作品トップの表紙は二冊を並べ、話の一覧は巻ごとに見出しを入れる */
.mg .hero .wrap:has(.cover.is-pair) { grid-template-columns: minmax(0, 440px) minmax(0, 1fr); }
.mg .hero .cover.is-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.mg .hero .cover.is-pair .vol-cover { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-width: 0; }
.mg .hero .cover.is-pair .vol-cover:nth-child(2) { margin-top: 28px; }
.mg .hero .cover.is-pair .vol-cap { font: 800 15px/1 var(--f-mincho); letter-spacing: .3em; text-align: center; }
.mg .hero .cover.is-pair .vol-cover:hover .mb-cover { transform: translateY(-3px); }
.mg .hero .cover.is-pair .mb-cover { transition: transform .25s ease; }
@media (max-width: 860px) {
  .mg .hero .wrap:has(.cover.is-pair) { grid-template-columns: 1fr; }
  .mg .hero .cover.is-pair { width: min(92%, 420px); margin: 0 auto; gap: 14px; }
}
.mg .vol-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 34px 0 16px; padding-top: 18px; border-top: 1px solid var(--rule); }
.mg .vol-head:first-of-type { margin-top: 8px; }
.mg .vol-head h3 { margin: 0; font: 800 22px/1.2 var(--f-mincho); letter-spacing: .2em; }
.mg .vol-head p { margin: 0; font-size: 13px; color: var(--muted); min-width: 0; }
.mg .vol-head .vol-read { margin-left: auto; font: 700 13px/1 var(--f-ui); color: var(--water); text-decoration: none; }
.mg .vol-head .vol-read::after { content: " →"; }

/* Review だけ：装丁の候補の比較（Owner の選定用） */
.mg .picks { border-bottom: 1px solid var(--rule); background: var(--paper-2); }
.mg .picks .wrap { padding-block: 28px 36px; display: flex; flex-direction: column; gap: 22px; }
.mg .pick-row { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 760px) { .mg .pick-row { grid-template-columns: 1fr; gap: 10px; } }
.mg .pick-head { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mg .pick-head b { font: 800 16px/1.4 var(--f-mincho); }
.mg .pick-head span { font: 700 12px/1 var(--f-ui); color: var(--water); letter-spacing: .1em; }
.mg .pick-head small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.mg .pick-opts { display: flex; flex-wrap: wrap; gap: 12px; min-width: 0; }
.mg .pick-opt { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; border: 2px solid transparent; border-radius: 6px; background: none; color: inherit; cursor: pointer; font: 700 12px/1 var(--f-ui); }
.mg .pick-opt img { width: 104px; max-width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; display: block; box-shadow: 0 6px 16px -10px rgba(0,0,0,.6); }
.mg .pick-opt.is-on { border-color: var(--water); }
.mg .pick-opt:disabled { cursor: default; }
.mg .pick-opt:disabled:not(.is-on) { opacity: .45; }
.mg .pick-opt:focus-visible { outline: 2px solid var(--water); outline-offset: 2px; }

/* 装丁の絵が入った時の組み（2026-10-26 納品）。
   裏表紙：絵は全面（下の 6 割は階段の静かな面として描かれている）。紹介文は下側に、紙の色の薄い面を敷いて読ませる */
.mg .mb-backcover.has-art .mb-back-art { inset: 0; height: 100%; }
.mg .mb-backcover.has-art .mb-back-art::after { background: linear-gradient(180deg, rgba(251,251,250,0) 40%, rgba(251,251,250,.55) 62%, rgba(251,251,250,.82) 100%); }
.mg .mb-backcover.has-art .mb-back-in { top: auto; left: 6cqw; right: 6cqw; bottom: 6cqw; padding: 5cqw 5.5cqw 4.5cqw; background: rgba(251,251,250,.9); border-radius: .8cqw;
  box-shadow: 0 1cqw 4cqw rgba(0,0,0,.18); }
/* 本扉：静物は下 4 割弱、壁は上 6 割（絵によって 57〜63%）。字は壁の中だけに組む：右に題、左に巻と作者（縦組み） */
.mg .ed-title.has-art .tp-in { display: grid; grid-template-columns: auto auto; grid-template-rows: auto 1fr; grid-template-areas: "label label" "meta name";
  justify-content: center; align-items: start; column-gap: 8cqw; row-gap: 5cqw; padding: 8cqw 10cqw 46cqw; }
.mg .ed-title.has-art .tp-label { grid-area: label; }
.mg .ed-title.has-art .tp-name { grid-area: name; margin: 0; font-size: 7.6cqw; max-height: 44cqw; }
.mg .ed-title.has-art .tp-meta { grid-area: meta; writing-mode: vertical-rl; display: flex; gap: 4cqw; align-items: flex-start; padding-top: 14cqw; }
.mg .ed-title.has-art .tp-meta .tp-vol, .mg .ed-title.has-art .tp-meta .tp-by { writing-mode: vertical-rl; }
.mg .ed-title.has-art .tp-meta .tp-by { display: flex; gap: 1.6cqw; align-items: center; }
.mg .ed-title.has-art .tp-meta .tp-by b { font-size: 4.6cqw; text-orientation: upright; }
/* 下巻の本扉は夜の壁（暗い）。字を明るくする */
.mg .ed-title.is-light { color: #f4efe4; }
.mg .ed-title.is-light .tp-name { color: #f7f1e3; text-shadow: 0 0 2cqw rgba(0,0,0,.35); }
.mg .ed-title.is-light .mb-label { color: #f4efe4; }
