/*
| 案2「キャストが表紙になる」（試作）
| 人の詳細を雑誌の表紙に。誌名＝お店の名前、号数＝その人の番号、大きな縦書きの名前、
| 表紙の見出し文句＝本人の Q&A の答え。下に「この号の中身」の目次があり、本人が書いたものが記事として続く。
| 色は紙とインクだけ（生成りと墨）。差し色はお店の色を1色だけ。
| 画面の組み立ては resources/views/themes/cover/site/ にある。
*/
body[data-theme="cover"] {
  --ink: #1f1c1a;
  --muted: #5a544e;
  --paper: #f6f2ea;
  --line: #d9d1c3;
  --t-mast: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --display: "Shippori Mincho B1", "Shippori Mincho", var(--serif);
  --radius: 0;
  background: #e9e3d6;
}
[data-theme="cover"] .site-shell { background: var(--paper); }
[data-theme="cover"] .site-header { background: var(--paper); border-bottom: 2px solid var(--ink); }
[data-theme="cover"] .menu-toggle { background: transparent; border: 1px solid var(--ink); color: var(--ink); }
[data-theme="cover"] .eyebrow { font-family: var(--t-mast); font-style: italic; font-weight: 500; font-size: .875rem; letter-spacing: .06em; color: var(--accent); }
[data-theme="cover"] .section-heading .eyebrow::before { background: var(--ink); opacity: 1; }
[data-theme="cover"] .section-heading h2 { font-family: var(--display); font-weight: 800; letter-spacing: .04em; font-feature-settings: "palt"; }
[data-theme="cover"] .section + .section { border-top: 1px solid var(--ink); }
[data-theme="cover"] .button-primary, [data-theme="cover"] .bottom-nav a:last-child { background: var(--ink); color: var(--paper); border-color: var(--ink); border-radius: 0; }
[data-theme="cover"] .button-outline { border-radius: 0; background: transparent; border-color: var(--ink); }
[data-theme="cover"] .bottom-nav { background: #f6f2eaf5; border-top: 2px solid var(--ink); border-radius: 0; }
[data-theme="cover"] .bottom-nav a { border-radius: 0 !important; color: var(--ink); }
[data-theme="cover"] .bottom-nav a[aria-current]:not(:last-child) { background: #e9e3d6; }
[data-theme="cover"] .cast-picture, [data-theme="cover"] .photo-stage, [data-theme="cover"] .photo-thumb, [data-theme="cover"] .story-image { border-radius: 0; }
[data-theme="cover"] .section-new, [data-theme="cover"] .section-diary, [data-theme="cover"] .section-blog, [data-theme="cover"] .site-footer { background: transparent; }

/* ───── 表紙 ───── */
.cover {
  position: relative; aspect-ratio: 3 / 4.3; overflow: hidden; isolation: isolate;
  background: #d9d1c3; color: #fff; container-type: inline-size;
}
.cover-photo { position: absolute; inset: 0; z-index: -2; }
.cover-photo > img, .cover-photo > .portrait-placeholder { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; aspect-ratio: auto; }
/* 文字を読ませるために、上と下だけ暗くする */
.cover::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, #0000008c 0, #00000000 26%, #00000000 52%, #000000b3 100%);
}
.cover-mast { position: absolute; left: 5cqw; right: 5cqw; top: 3.5cqw; margin: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cover-title {
  font-family: var(--t-mast); font-weight: 700; font-size: 11cqw; line-height: .95; letter-spacing: -.02em;
  text-transform: uppercase; text-shadow: 0 2px 20px #0005; max-width: 76%;
  overflow-wrap: anywhere;
}
.cover-issue { text-align: right; font-family: var(--t-mast); font-style: italic; font-size: 4.2cqw; line-height: 1.2; white-space: nowrap; }
.cover-issue small { display: block; font-style: normal; font-family: var(--sans); font-size: max(10px, 2.4cqw); font-weight: 700; letter-spacing: .14em; }
/* 大きな縦書きの名前 */
.cover-name {
  position: absolute; right: 4cqw; top: 26cqw; margin: 0;
  writing-mode: vertical-rl; text-orientation: upright;
  font-family: var(--display); font-weight: 800; font-size: 15cqw; line-height: 1; letter-spacing: .06em;
  text-shadow: 0 4px 30px #0007;
}
.cover-name small { position: absolute; left: 0; right: 0; top: 100%; display: block; margin-top: .25em; font-family: var(--t-mast); font-style: italic; font-weight: 500; font-size: .36em; text-orientation: mixed; writing-mode: horizontal-tb; text-align: center; }
.cover-lines { position: absolute; left: 5cqw; bottom: 17cqw; width: 64%; display: grid; gap: 2.2cqw; }
.cover-flag {
  justify-self: start; padding: .6cqw 2cqw; background: var(--accent); color: #fff;
  font-family: var(--t-mast); font-style: italic; font-weight: 700; font-size: max(11px, 3.4cqw); letter-spacing: .04em;
}
.cover-lead { margin: 0; font-family: var(--display); font-weight: 800; font-size: max(15px, 5.4cqw); line-height: 1.45; text-shadow: 0 2px 14px #0008; word-break: keep-all; overflow-wrap: anywhere; }
.cover-line { margin: 0; font-weight: 700; font-size: max(12px, 3.6cqw); line-height: 1.45; text-shadow: 0 1px 10px #0009; padding-left: 2.2cqw; border-left: 2px solid var(--accent); }
.cover-line small { display: block; font-size: max(10px, 2.5cqw); font-weight: 600; opacity: .88; letter-spacing: .04em; }
.cover-tags { margin: 0; display: flex; flex-wrap: wrap; gap: .4em 1em; font-size: max(11px, 3cqw); font-weight: 700; text-shadow: 0 1px 8px #0009; }
.cover-strip {
  position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 3cqw 5cqw;
  display: flex; align-items: center; gap: 3cqw; background: var(--paper); color: var(--ink);
}
.cover-strip span { font-family: var(--t-mast); font-style: italic; font-weight: 700; font-size: max(12px, 3.6cqw); }
.cover-strip strong { font-size: max(12px, 3.8cqw); font-variant-numeric: tabular-nums; }
.cover.is-mini .cover-mast { top: 4cqw; }
.cover.is-mini .cover-title { font-size: 12cqw; }
.cover.is-mini .cover-name { font-size: 17cqw; top: 30cqw; }
.cover.is-mini .cover-lines { width: 70%; bottom: 20cqw; }

.cover-link { display: block; text-decoration: none; color: inherit; }
.cover-back { position: relative; z-index: 3; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; font-size: .8125rem; font-weight: 600; text-decoration: none; }
.issue-page .cast-photo-area > .back-link { display: none; }

/* トップ: 今日の表紙と本棚 */
.today-cover { padding: 0 0 8px; }
.today-cover-label { display: flex; align-items: baseline; justify-content: space-between; margin: 0; padding: 14px 20px 10px; border-bottom: 1px solid var(--ink); }
.today-cover-label span { font-family: var(--t-mast); font-style: italic; font-weight: 700; font-size: 1.125rem; }
.today-cover-label small { font-size: .75rem; font-weight: 700; }
.shelf { list-style: none; margin: 0 -24px; padding: 4px 24px 12px; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.shelf::-webkit-scrollbar { display: none; }
.shelf li { flex: 0 0 62%; max-width: 240px; scroll-snap-align: start; box-shadow: 6px 8px 0 #1f1c1a1f; }

/* 目次 */
.issue-contents { margin: 0; padding: 28px 24px 18px; border-bottom: 1px solid var(--ink); }
.issue-contents-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; }
.issue-contents-head span { font-family: var(--t-mast); font-weight: 700; font-size: 1.5rem; letter-spacing: -.01em; }
.issue-contents-head small { font-family: var(--t-mast); font-style: italic; font-size: .9375rem; }
.issue-contents ol { list-style: none; margin: 0; padding: 0; }
.issue-contents a { display: flex; align-items: center; gap: 16px; min-height: 52px; border-top: 1px dashed var(--line); text-decoration: none; }
.issue-contents em { font-family: var(--t-mast); font-style: italic; font-weight: 700; font-size: 1.625rem; min-width: 2.2ch; white-space: nowrap; flex: none; font-variant-numeric: lining-nums; }
.issue-contents span { font-weight: 700; font-size: .9375rem; }
.issue-contents small { display: block; font-family: var(--t-mast); font-style: italic; font-weight: 500; font-size: .75rem; color: var(--muted); }

/* 記事のページ番号（右上に小さく） */
.issue-page { position: relative; border-top: 1px solid var(--ink); }
.issue-page::before {
  content: "p." attr(data-page); position: absolute; right: 20px; top: 14px; z-index: 2;
  font-family: var(--t-mast); font-style: italic; font-size: .8125rem; color: var(--muted);
}
.issue-page .section + .section, .issue-page .section { border-top: 0; }
.issue-page .section-heading h2 { font-size: 1.5rem; }
[data-theme="cover"] .prose { font-family: var(--display); font-weight: 500; line-height: 2.1; }
[data-theme="cover"] .faq summary { font-family: var(--display); font-weight: 800; }

/* ───── 料金ページ「PRICE LIST」 ───── */
.pricebook { padding: 0 24px 8px; }
.pricebook-head { padding: 22px 0 18px; border-bottom: 2px solid var(--ink); }
.pricebook-kicker { display: flex; justify-content: space-between; margin: 0; padding-bottom: 8px; border-bottom: 1px solid var(--ink); font-family: var(--t-mast); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pricebook-head h1 { margin: 14px 0 6px; font-family: var(--t-mast); font-weight: 700; font-size: 4rem; line-height: .9; letter-spacing: -.03em; }
.pricebook-head h1 em { display: block; margin-left: 1.1em; font-style: italic; font-weight: 500; color: var(--accent); }
.pricebook-lead { margin: 12px 0 0; font-size: .8125rem; color: var(--muted); }

.pricebook-section { padding: 22px 0 8px; }
.pricebook-label {
  display: flex; align-items: baseline; gap: 10px; margin: 0 0 10px;
  font-family: var(--display); font-weight: 800; font-size: 1.125rem; letter-spacing: .08em;
}
.pricebook-label span { font-family: var(--t-mast); font-style: italic; font-weight: 700; font-size: .9375rem; color: var(--accent); letter-spacing: .02em; }

/* 紙のメニュー表: 名前と金額を点線でつなぐ */
.menu-rows { list-style: none; margin: 0; padding: 0; }
.menu-rows li { display: flex; align-items: baseline; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.menu-rows li:last-child { border-bottom: 0; }
.menu-time { flex: none; min-width: 3.1em; white-space: nowrap; font-family: var(--t-mast); line-height: .9; }
.menu-time strong { font-size: 2.125rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.menu-time small { display: block; font-style: italic; font-size: .8125rem; color: var(--muted); margin-top: 2px; }
.menu-name { font-weight: 700; font-size: .9375rem; line-height: 1.5; min-width: 0; }
.menu-name small { display: block; font-weight: 400; font-size: .75rem; color: var(--muted); }
.menu-leader { flex: 1; min-width: 12px; align-self: center; height: 1px; background: radial-gradient(circle, var(--ink) .8px, transparent 1px) center / 6px 2px repeat-x; opacity: .55; }
.menu-price { flex: none; font-family: var(--t-mast); font-weight: 700; font-size: 1.75rem; letter-spacing: -.01em; font-variant-numeric: lining-nums; white-space: nowrap; }
.menu-price small { font-size: .875rem; margin-right: 2px; font-style: italic; color: var(--accent); }
.menu-rows.is-small li { padding: 9px 0; }
.menu-rows.is-small .menu-price { font-size: 1.25rem; }

/* 延長とオプションは囲み記事 */
.pricebook-columns { display: grid; gap: 14px; padding: 8px 0 18px; }
.pricebook-box { padding: 14px 16px 10px; border: 1px solid var(--ink); background: #fffdf8; box-shadow: 5px 5px 0 #1f1c1a14; }
.pricebook-box .pricebook-label { padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.pricebook-aside { margin: 8px 0 0; font-size: .75rem; line-height: 1.7; color: var(--muted); }

/* 注意事項は脚注 */
.pricebook-notes { padding: 20px 0 6px; border-top: 2px solid var(--ink); }
.pricebook-note { padding: 10px 0; border-top: 1px dashed var(--line); }
.pricebook-note:first-of-type { border-top: 0; }
.pricebook-note h3 { margin: 0 0 4px; font-size: .875rem; font-weight: 800; }
.pricebook-note h3 sup { font-family: var(--t-mast); font-style: italic; font-size: .75rem; color: var(--accent); margin-right: 4px; }
.pricebook-note .text-rows > div { border-top-color: var(--line); padding: 6px 0; }
.pricebook-note .text-rows dd { font-family: var(--t-mast); font-weight: 700; font-size: 1rem; }
.pricebook-note .text-rows > .is-note dd { font-family: var(--sans); font-weight: 400; font-size: .875rem; }

.pricebook-cta { padding: 6px 0 20px; }
.pricebook-terms { margin-top: 22px; border: 0; border-top: 1px solid var(--ink); border-radius: 0; background: transparent; }
.pricebook-terms summary { padding-left: 0; padding-right: 0; font-family: var(--t-mast); font-weight: 700; }
.pricebook-terms .terms-body { padding: 0; }
.pricebook-terms .terms-article p { font-size: .8125rem; }

/* ───── フッター＝裏表紙と奥付 ───── */
.site-footer.backcover { text-align: left; background: var(--paper); color: var(--ink); border-top: 3px double var(--ink); padding-top: 26px; }
.backcover-kicker { display: flex; align-items: baseline; justify-content: space-between; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
.backcover-kicker span:first-child { font-family: var(--t-mast); font-weight: 700; font-style: italic; font-size: 1.125rem; }
.backcover-kicker span:last-child { font-size: .6875rem; font-weight: 700; letter-spacing: .2em; color: var(--muted); }
.backcover-note { margin: 0 0 26px; }
.backcover-text { margin: 0; font-family: var(--display); font-weight: 500; font-size: .9375rem; line-height: 2.05; }
.backcover-text::first-letter { font-family: var(--t-mast); font-size: 2.6em; float: left; line-height: .9; margin: 6px 6px 0 0; color: var(--accent); }
.backcover-sign { margin: 8px 0 0; text-align: right; font-family: var(--display); font-weight: 800; }
.backcover-sign::before { content: "文・"; font-weight: 500; font-size: .75rem; color: var(--muted); }

.backcover-index { margin: 0 0 28px; }
.backcover-index ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; }
.backcover-index li { break-inside: avoid; }
.backcover-index a { display: flex; align-items: baseline; gap: 8px; min-height: 48px; padding: 8px 0; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.backcover-index em { font-family: var(--t-mast); font-style: italic; font-weight: 700; font-size: 1.125rem; color: var(--accent); min-width: 1.6em; font-variant-numeric: lining-nums; }
.backcover-index span { font-size: .8125rem; font-weight: 700; line-height: 1.4; }
.backcover-index small { display: block; font-family: var(--t-mast); font-style: italic; font-weight: 500; font-size: .6875rem; color: var(--muted); }

/* 奥付。細い枠で囲み、項目名は字間を空けた小さな文字 */
.colophon { padding: 18px 16px 14px; border: 1px solid var(--ink); box-shadow: inset 0 0 0 3px var(--paper), inset 0 0 0 4px var(--line); background: #fffdf8; }
.colophon-title { margin: 0; font-family: var(--t-mast); font-weight: 700; font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; text-transform: uppercase; }
.colophon-issue { margin: 6px 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: .75rem; font-weight: 700; }
.colophon dl { margin: 0; display: grid; gap: 0; }
.colophon dl > div { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px dotted var(--line); font-size: .8125rem; line-height: 1.6; }
.colophon dt { font-size: .6875rem; font-weight: 700; letter-spacing: .3em; color: var(--muted); padding-top: 1px; }
.colophon dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.colophon dd a { color: var(--ink); text-underline-offset: 3px; }
.colophon dd b { margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: .625rem; background: var(--line); color: var(--muted); vertical-align: 1px; }
.colophon dd b.is-open { background: #2e9b7a; color: #fff; }
.colophon-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 12px; }
.colophon-rules { margin: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.colophon-rules a { display: inline-flex; align-items: center; min-height: 44px; font-size: .75rem; color: var(--ink); }
.colophon-note, .colophon-copy { margin: 8px 0 0; font-size: .6875rem; color: var(--muted); }
.colophon-foot { flex-wrap: wrap; }

/* ───── 人のカード: 1枚の切り抜きのように墨色の細い枠で囲む ───── */
[data-theme="cover"] .cast-grid { gap: 18px 8px; }
[data-theme="cover"] .cast-card {
  display: flex; flex-direction: column; padding: 6px 6px 10px;
  background: #fffdf8; border: 1px solid var(--ink);
  box-shadow: 4px 5px 0 #1f1c1a1a;
}
[data-theme="cover"] .cast-picture { border-radius: 0; box-shadow: none; }
[data-theme="cover"] .cast-picture::after { border-radius: 0; box-shadow: inset 0 0 0 1px #ffffff66; }
[data-theme="cover"] .cast-info { padding: 10px 4px 0; border-top: 0; }
[data-theme="cover"] .cast-info h3 { font-family: var(--display); font-weight: 800; letter-spacing: .04em; padding-bottom: 6px; border-bottom: 1px solid var(--ink); }
[data-theme="cover"] .cast-meta, [data-theme="cover"] .cast-measurements { font-size: .6875rem; font-variant-numeric: tabular-nums; }
[data-theme="cover"] .cast-tags span { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 0; }
[data-theme="cover"] .cast-info .shift-state { background: var(--ink); color: var(--paper); border-radius: 0; }
[data-theme="cover"] .cast-info .shift-state.is-quiet { background: var(--line); color: var(--muted); }
[data-theme="cover"] .new-label { background: var(--accent); color: #fff; border-radius: 0; font-family: var(--t-mast); font-style: italic; letter-spacing: .04em; }
[data-theme="cover"] .cast-tagline { border-top: 1px dashed var(--line); padding-top: 6px; margin-top: 6px; }
[data-theme="cover"] .costume-box { border-radius: 0; border-color: var(--ink); background: #fffdf8; }
[data-theme="cover"] .costume-count { border-radius: 0; background: var(--ink); color: var(--paper); font-family: var(--t-mast); }
[data-theme="cover"] .costume-open { border-radius: 0; background: var(--ink); color: var(--paper); }
[data-theme="cover"] .costume-list li { border-radius: 0; background: transparent; border: 1px solid var(--line); }

/* 今日の表紙: 重ねて置き、ふわっと入れ替える（拡大の動きは付けない＝YUTAKAさんの以前の指示） */
.today-cover-stage { display: grid; }
.today-cover-slide { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity 1s ease, visibility 0s linear 1s; }
.today-cover-slide.is-active { opacity: 1; visibility: visible; transition: opacity 1s ease, visibility 0s; z-index: 1; }
.today-cover-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.today-cover-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, width .3s; }
.today-cover-dots i.is-active { width: 18px; border-radius: 3px; background: var(--ink); }

/* 本日の出勤の枠（2026-09-19 YUTAKAさん「テンプレごとに変えて」）: 雑誌の表紙。黒い太枠と赤い帯 */
[data-theme="cover"] .rail-frame { border: 0; border-radius: 0; padding: 0; }
[data-theme="cover"] .rail-frame::after { display: none; }
[data-theme="cover"] .rail-people-stage { border-radius: 0; border: 3px solid var(--ink); box-shadow: 8px 8px 0 #c23b4e; }
[data-theme="cover"] .rail-people-stage::after { display: none; }
[data-theme="cover"] .rail-frame-ornament { font-size: 0; top: 12px; left: 12px; transform: none; text-shadow: none; }
[data-theme="cover"] .rail-frame-ornament::before {
  content: "TODAY'S COVER"; display: block; padding: 3px 8px; background: #c23b4e; color: #fff;
  font-family: "Bodoni Moda", var(--serif); font-size: .625rem; font-weight: 700; letter-spacing: .16em;
}
[data-theme="cover"] .rail-person-info { text-align: left; padding: 40px 14px 14px; background: linear-gradient(transparent, #1f1c1acc); }
[data-theme="cover"] .rail-person-info strong { justify-content: flex-start; font-family: "Bodoni Moda", "Shippori Mincho B1", var(--serif); font-size: 1.5rem; }
[data-theme="cover"] .rail-person-info strong i { display: none; }
[data-theme="cover"] .rail-dots i.is-active { background: #c23b4e; }
