/* 6-1 表紙 — 天気で組み方を変える（秋晴れ・雨の日・冷え込み・夏日の 4 冊） */
.cover { --W: min(100vw, var(--col)); --H: calc(var(--W) * 1.46); position: relative; }
.cover[data-sky="rain"] { --H: calc(var(--W) * 1.5); }
.cover[data-sky="cold"] { --H: calc(var(--W) * 1.52); }
.cover[data-sky="summer"] { --H: calc(var(--W) * 1.52); }

/* カラーバー（週間の最高気温）。曜日は日本語を主に */
.colorbar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 22px 16px 0; position: relative; }
/* 見出しは右端に（左端は「きょう」の赤い印と重なるため） */
.cb-cap { position: absolute; right: 16px; top: 4px; font-size: 11px; color: var(--ink-2); letter-spacing: .08em; }
.cb { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1; }
.cb i { display: block; width: 100%; height: 14px; background: color-mix(in srgb, var(--spot) var(--p), var(--paper)); }
.cb.sel i { outline: 1px solid var(--ink); outline-offset: 1px; }
.cb b { margin-top: 5px; font: 500 11.5px var(--f-gothic); color: var(--ink-2); }
.cb em { margin-top: 2px; font: 700 13px var(--f-bodoni); font-style: normal; }
.cb.today::after { content: ""; position: absolute; left: 50%; top: -7px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--red); }

.mast-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 16px 0; }
.issue-line { margin: 0; font: 500 12px var(--f-gothic); white-space: nowrap; }
.issue-line .num { font-family: var(--f-bodoni); font-weight: 700; letter-spacing: .04em; }
.issue-line .sep { margin: 0 6px; color: var(--ink-2); }
.mast-links { margin: 0; display: flex; gap: 4px; flex: none; }
.mast-links button { min-height: 44px; padding: 0 6px; font: 500 12.5px var(--f-gothic); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
/* 夜の号＝暗い表示：添え書きを言葉の下に小さく */
.mast-links .ml-theme { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.2; text-decoration: none; }
.mast-links .ml-w { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.mast-links .ml-theme small { font-size: 9.5px; color: var(--ink-2); text-decoration: none; display: block; letter-spacing: .02em; }

/* 表紙の絵の場 */
.cover-art { position: relative; height: var(--H); margin-top: -2px; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -1; }
.sky-media {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
  mix-blend-mode: multiply; filter: var(--sky-filter);
}
html[data-theme="dark"] .sky-media { mix-blend-mode: normal; opacity: .62; }
/* 雨の空の動画：垂れた筋が「14°」の細い線と重ならないよう、下は早めに紙へ逃がす */
.cover[data-sky="rain"] .sky-video { -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 52%, transparent 74%); mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 52%, transparent 74%); }
.sky-ph { position: absolute; right: 16px; bottom: 30%; font: 400 11px var(--f-bodoni); letter-spacing: .14em; color: var(--ink-2); border: 1px solid var(--ink-2); padding: 2px 6px; }

.crop { position: absolute; width: 12px; height: 12px; z-index: 0; opacity: .55; }
.crop::before, .crop::after { content: ""; position: absolute; background: var(--ink); }
.crop::before { width: 12px; height: 1px; } .crop::after { width: 1px; height: 12px; }
.crop.c1 { left: 6px; top: 6px; } .crop.c1::before { top: 0; } .crop.c1::after { left: 0; }
.crop.c2 { right: 6px; top: 6px; } .crop.c2::before { top: 0; } .crop.c2::after { right: 0; }
.crop.c3 { left: 6px; bottom: 6px; } .crop.c3::before { bottom: 0; } .crop.c3::after { left: 0; bottom: 0; }
.crop.c4 { right: 6px; bottom: 6px; } .crop.c4::before { bottom: 0; right: 0; } .crop.c4::after { right: 0; bottom: 0; }

/* ── 共通の部品（位置は天気ごとに下で決める） ── */
.mast-en { position: absolute; margin: 0; z-index: 1; font: 400 italic 13px/1 var(--f-bodoni); letter-spacing: .62em; text-transform: uppercase; }
.mast { position: absolute; margin: 0; z-index: 1; display: flex; font: 800 calc(var(--W) * .3) / 1 var(--f-mincho); letter-spacing: -.035em; color: var(--ink); font-feature-settings: "palt" 1; }
.mast span { display: inline-block; }
.mast-sub { position: absolute; margin: 0; z-index: 1; font: 500 11px/1 var(--f-mincho); letter-spacing: .32em; }
.daytoggle { position: absolute; z-index: 3; gap: 0 14px; }
.daytoggle button { font-size: 14px; }
.daytoggle .num { font-size: 13px; letter-spacing: .02em; }
.hero { position: absolute; margin: 0; z-index: 2; }
.hero a, .hero .cut { width: 100%; height: 100%; display: flex; }
.hero .cut img { width: 100%; height: 100%; object-fit: contain; }
.hero .ph { aspect-ratio: 1 / 1.15; height: auto; }
.coverlines { position: absolute; margin: 0; padding: 0; list-style: none; z-index: 3; }
.coverlines li { display: grid; grid-template-columns: 22px 1fr; gap: 0 4px; padding: 7px 0 8px; border-top: 1px solid var(--ink); }
.coverlines li:nth-last-child(2) { border-bottom: 1px solid var(--ink); }
.coverlines li.cl-memo { display: none; border-top: 0; }
.cl-no { font: 400 italic 12px/1.5 var(--f-bodoni); color: var(--ink-2); }
.cl-t { font: 800 15.5px/1.34 var(--f-mincho); font-feature-settings: "palt" 1; letter-spacing: .02em; }
.cl-memo .hand { font-size: 20px; transform: rotate(-3deg); transform-origin: left; }
.cover-memo { position: absolute; z-index: 4; font-size: 21px; transform: rotate(-4deg); white-space: nowrap; margin: 0; }
.temps { position: absolute; z-index: 3; display: flex; align-items: flex-end; gap: 2px; }
.temps .t { display: flex; flex-direction: column; }
.temps small { font: 700 12px var(--f-gothic); margin: 0 0 2px 4px; }
/* 行の高さを字より低く（.86）し、字間を詰めると、Chrome で「14°」の 4 の太い縦棒が描かれない（線だけ残る）。
   行の高さは 1・字間は 0 にする（負の余白で詰めても同じく消えるので、詰めない） */
.temps b { font-family: var(--f-bodoni); font-weight: 400; line-height: 1; letter-spacing: 0; text-shadow: 0 0 1px var(--paper), 0 0 8px var(--paper), 0 0 16px var(--paper); }
.t-m b { font-size: calc(var(--W) * .2); font-weight: 600; }
.t-n b { font-size: calc(var(--W) * .31); font-weight: 900; }
.t-arrow { width: 40px; height: 16px; margin: 0 2px calc(var(--W) * .07); overflow: visible; flex: none; }
.t-arrow path { fill: none; stroke: var(--ink); stroke-width: 1.4; }

/* ── 秋晴れ：横組みの誌名、服が右から誌名に重なる、数字は下 ── */
.mast-en { left: 18px; top: 16px; }
.mast { left: 10px; top: 30px; }
.mast-sub { left: 18px; top: calc(30px + var(--W) * .315); }
.daytoggle { left: 14px; top: calc(40px + var(--W) * .34); }
.hero { right: -7%; top: calc(var(--W) * .25); width: 58%; height: var(--W); transform: rotate(-5deg); }
.coverlines { left: 16px; top: calc(var(--W) * .56); width: 44%; }
.cover-memo { left: 14px; top: calc(var(--W) * 1.0); } /* 「昼」の字にかからないよう左へ寄せる */
.temps { left: 12px; bottom: 6px; }

/* ── 雨の日：誌名を縦組みで右端に。レインコートは左〜中央に大きく。数字は右下に縦に積む ── */
.cover[data-sky="rain"] .mast { writing-mode: vertical-rl; left: auto; right: 4px; top: 12px; font-size: calc(var(--W) * .25); letter-spacing: -.04em; line-height: 1; }
.cover[data-sky="rain"] .mast-en { top: 14px; }
.cover[data-sky="rain"] .mast-sub { writing-mode: vertical-rl; left: auto; right: calc(var(--W) * .25 + 8px); top: 22px; letter-spacing: .4em; }
.cover[data-sky="rain"] .daytoggle { top: 30px; }
.cover[data-sky="rain"] .hero { left: -7%; right: auto; top: calc(var(--W) * .2); width: 66%; height: calc(var(--W) * .84); transform: rotate(4deg); }
.cover[data-sky="rain"] .coverlines { top: calc(var(--W) * 1.04); width: 56%; }
.cover[data-sky="rain"] .cover-memo { left: auto; right: 4%; top: calc(var(--W) * .775); }
.cover[data-sky="rain"] .temps { left: auto; right: 10px; bottom: 12px; flex-direction: column; align-items: flex-end; gap: 0; }
.cover[data-sky="rain"] .t-m b { font-size: calc(var(--W) * .16); }
.cover[data-sky="rain"] .t-n b { font-size: calc(var(--W) * .28); }
.cover[data-sky="rain"] .t-arrow { transform: rotate(90deg); width: 34px; margin: 0 18px 0 0; }

/* ── 冷え込み：極太の数字が主役。誌名は上の帯に小さく。ダッフルは下半分に ── */
.cover[data-sky="cold"] .mast { top: 14px; left: 14px; font-size: calc(var(--W) * .135); letter-spacing: 0; }
.cover[data-sky="cold"] .mast-en { left: calc(var(--W) * .44); top: 22px; letter-spacing: .5em; }
.cover[data-sky="cold"] .mast-sub { left: calc(var(--W) * .44); top: 44px; }
.cover[data-sky="cold"] .daytoggle { top: calc(var(--W) * .19); }
.cover[data-sky="cold"] .temps { left: 10px; right: 10px; top: calc(var(--W) * .3); bottom: auto; justify-content: space-between; }
.cover[data-sky="cold"] .t-m b { font-size: calc(var(--W) * .3); font-weight: 700; }
.cover[data-sky="cold"] .t-n b { font-size: calc(var(--W) * .5); }
.cover[data-sky="cold"] .t-arrow { width: 54px; margin-bottom: calc(var(--W) * .12); }
.cover[data-sky="cold"] .temps::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; border-bottom: 3px solid var(--ink); }
.cover[data-sky="cold"] .hero { right: -6%; top: calc(var(--W) * .86); width: 56%; height: calc(var(--W) * .66); transform: rotate(-6deg); }
.cover[data-sky="cold"] .coverlines { top: calc(var(--W) * .945); width: 46%; }
/* 赤ペンは、太い罫と見出しのあいだの余白に（枠の線に重ねない） */
.cover[data-sky="cold"] .cover-memo { left: 22px; top: calc(var(--W) * .945 - 32px); font-size: 20px; }

/* ── 夏日：空を裁ち落としで全面に、誌名と数字は白抜き、白い服が大きくはみ出す ── */
/* 下をぼかすと白抜きの数字が紙の上に乗って読めなくなるので、空は下まで裁ち落とし（数字は濃い青の上） */
.cover[data-sky="summer"] .sky-media { object-position: 50% 60%; -webkit-mask-image: none; mask-image: none; }
/* 夏の空の絵は上と中央が白い雲（紙の白）なので、誌名は墨のまま。数字は下の濃い青の上で白抜き */
.cover[data-sky="summer"] .temps { color: #FBF8F2; }
.cover[data-sky="summer"] .crop.c3::before, .cover[data-sky="summer"] .crop.c3::after, .cover[data-sky="summer"] .crop.c4::before, .cover[data-sky="summer"] .crop.c4::after { background: #FBF8F2; }
.cover[data-sky="summer"] .hero { right: -24%; top: calc(var(--W) * .3); width: 76%; height: calc(var(--W) * .86); transform: rotate(6deg); }
.cover[data-sky="summer"] .coverlines { top: calc(var(--W) * .56); width: 46%; }
.cover[data-sky="summer"] .coverlines li { background: color-mix(in srgb, var(--paper) 88%, transparent); padding-left: 5px; padding-right: 5px; border-color: var(--ink); }
.cover[data-sky="summer"] .coverlines li.cl-memo { display: grid; padding-top: 4px; }
.cover[data-sky="summer"] .cover-memo { display: none; }
.cover[data-sky="summer"] .temps b { text-shadow: 0 2px 14px rgba(20, 60, 130, .45); }
.cover[data-sky="summer"] .temps small { color: #FBF8F2; text-shadow: 0 1px 4px rgba(20, 60, 130, .8); }
.cover[data-sky="summer"] .t-arrow path { stroke: #FBF8F2; }
/* 夏日の夜の号：雲を灰色にくすませず、紺の夜空に染める（明るさを落として、色だけ紺に） */
html[data-theme="dark"] .cover[data-sky="summer"] .sky-media { filter: brightness(.5) saturate(1.05) contrast(1.05); opacity: 1; }
html[data-theme="dark"] .cover[data-sky="summer"] .sky::after { content: ""; position: absolute; inset: 0; background: #22406F; mix-blend-mode: color; pointer-events: none; }
html[data-theme="dark"] .cover[data-sky="summer"] .daytoggle button { color: var(--ink); }
html[data-theme="dark"] .cover[data-sky="summer"] .coverlines li { background: color-mix(in srgb, var(--paper) 86%, transparent); }

/* 天気の言葉（奥付に寄せる） */
.wx { margin: 0 16px; padding: 10px 0 12px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.wx-main { margin: 0; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.wx-main .mincho { font-weight: 800; font-size: 20px; }
.wx-pop { font-size: 12.5px; }
.wx-pop b { font-size: 21px; font-weight: 700; }
.wx .note { margin: 2px 0 0; font-size: 11.5px; }

/* あしたの支度（目次） */
.toc { padding: 16px 16px 0; position: relative; }
.toc .rule-head .ja { font-size: 19px; }
.toc .folio-r { font-size: 12.5px; font-family: var(--f-gothic); letter-spacing: 0; color: var(--ink); }
.toc .folio-r .num { font-family: var(--f-bodoni); font-size: 17px; font-weight: 700; }
/* 「校了！」は見出しの字にかけず、見出しと「5 人中…」のあいだに */
.kouryou { position: absolute; right: 128px; top: -16px; margin: 0; font-size: 40px; transform: rotate(-9deg); z-index: 5; pointer-events: none; animation: write .5s steps(8, end) both; }
.toc-row { position: relative; display: grid; grid-template-columns: 1fr 56px; align-items: center; border-bottom: 1px solid var(--ink); }
.toc-link { display: grid; grid-template-columns: 54px 1fr 80px; align-items: center; gap: 0 10px; min-height: 108px; padding: 8px 0; text-decoration: none; color: inherit; }
.toc-link:active { background: var(--paper-2); }
.toc-fig { height: 92px; display: flex; align-items: flex-end; justify-content: center; }
.toc-fig .sk { height: calc(100% * var(--h, 1)); width: 100%; }
.toc-fig .sk img { height: 100%; width: 100%; object-fit: contain; object-position: bottom; }
.toc-fig .ph { aspect-ratio: auto; height: 100%; font-size: 9px; padding: 4px; }
.toc-txt { display: flex; flex-direction: column; min-width: 0; }
.toc-name { font-size: 19px; font-weight: 800; line-height: 1.3; }
.toc-sum { font-size: 12.5px; line-height: 1.55; color: var(--ink-2); }
.toc-memo { font-size: 15px; transform: rotate(-2deg); transform-origin: left; margin-top: 1px; }
.toc-items { position: relative; height: 84px; }
.toc-g { position: absolute; width: calc(58px * (.55 + .45 * var(--s, 1))); }
.toc-g:nth-child(1) { right: 18px; top: 2px; transform: rotate(-6deg); }
.toc-g:nth-child(2) { right: 0; top: 22px; transform: rotate(5deg); }
.toc-g .ph { font-size: 8px; padding: 2px; aspect-ratio: 1 / 1.1; }
.toc-g .ph small { display: none; }
.toc-g img { max-height: calc(70px * (.55 + .45 * var(--s, 1))); width: auto; margin: 0 auto; }
.toc-ok { position: relative; width: 56px; min-height: 64px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.ok-ring { width: 30px; height: 30px; border: 1px solid var(--ink); border-radius: 50%; }
.ok-circle { left: 6px; top: 8px; width: 44px; height: 34px; }
.ok-t { font-size: 11.5px; color: var(--ink-2); }
.toc-ok .ok-t.hand { margin-top: 34px; font-size: 14px; color: var(--red); }
.toc-p { position: absolute; right: 2px; bottom: 6px; font: 400 11px var(--f-bodoni); letter-spacing: .06em; color: var(--ink-2); }
.toc-note { margin: 8px 0 0; }
.colophon { padding: 14px 16px 0; margin: 0; }
.colophon .en { font-size: 11px; }

/* 開いた瞬間に「刷り上がる」：特色の版 → 墨の版（見当がずれて合う）→ 赤（1.4 秒以内） */
.cover.opening .plate-spot, .cover.opening .cb i { animation: spotin .42s ease-out both; }
.cover.opening .plate-ink { animation: inkreg .5s cubic-bezier(.3,.7,.2,1) .3s both; }
.cover.opening .hero { animation: place .55s cubic-bezier(.2,.8,.25,1) .5s both; }
.cover.opening .plate-red { animation: write .4s steps(9, end) .95s both; }
@keyframes spotin { from { opacity: 0; } to { opacity: 1; } }
@keyframes inkreg { 0% { opacity: 0; transform: translate(2px, -1.5px); } 55% { opacity: 1; transform: translate(1px, -1px); } 100% { opacity: 1; transform: none; } }
@keyframes place { from { opacity: 0; translate: 10px -16px; } to { opacity: 1; translate: 0 0; } }
@keyframes write { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -10% 0 0); } }

/* 768px 以上は見開き：左＝表紙、右＝あしたの支度。真ん中にのど */
@media (min-width: 768px) {
  .issue.spread { max-width: 900px; }
  .issue.spread .tabs { max-width: 900px; }
  .issue.spread .cover { --W: 450px; display: grid; grid-template-columns: 1fr 1fr; }
  .issue.spread .cover::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 40px; margin-left: -20px; pointer-events: none; z-index: 6;
    background: linear-gradient(90deg, transparent, rgba(40, 30, 15, .07) 45%, rgba(40, 30, 15, .13) 50%, rgba(40, 30, 15, .07) 55%, transparent); }
  html[data-theme="dark"] .issue.spread .cover::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .3) 50%, transparent); }
  .issue.spread .pg-r { padding-top: 40px; border-left: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
  .issue.spread .toc { padding: 0 28px 0 30px; }
  .issue.spread .colophon { padding-left: 30px; }
}

/* まとめ撮りのコマ（写真）が主役の服になったとき：写真のプリントを置いたように */
.hero .fcut { height: auto; width: 78%; margin: auto; }
