/*
  クリップこよみ  work.css（作品・一覧・トップの本番の形）
  site.css の色の名前（--paper ほか）をそのまま使う。画像の上に文字やボタンを重ねない。
*/
/* 作品のページだけ、画面下の固定バーの高さぶん下を空ける（足の文字をバーで隠さない） */
body[data-page="work"] { padding-bottom: 4.5em; }

/* 頭（題名・数字の 1 行・ボタン） */
.clipLeafHead, .clipTopHead {
  margin: 0.4em 0 1.4em; padding: 0.8em 0.9em 0.9em;
  border: 1px solid var(--rule); border-left: 0.35em solid var(--mark);
  background: var(--sheet);
}
.clipDateTag, .clipTopTag { margin: 0 0 0.3em; color: var(--textMuted); font-family: var(--mono); font-size: 0.9em; line-height: 1.5; }
.clipLeafTitle { margin: 0; font-size: 1.12em; font-weight: 800; line-height: 1.5; }
.clipFigureLine {
  margin: 0.6em 0 0; padding: 0.35em 0.6em;
  background: var(--band); color: var(--accentDeep);
  font-size: 0.95em; font-weight: 700; line-height: 1.55;
}
.clipGo { margin: 0.8em 0 0; }
.clipGoBtn {
  display: block; min-height: 2.9em; padding: 0.65em 1em;
  border-radius: 0.3em; background: var(--accent); color: var(--sheet);
  font-weight: 800; line-height: 1.6; text-align: center; text-decoration-line: none;
}
.clipGoBtn:hover { background: var(--accentDeep); color: var(--sheet); }
/* 作品のページの頭は、長い題名でも最初の画面に数字の 1 行が入るよう詰める */
.clipWorkHead { margin-top: 0; padding: 0.6em 0.75em 0.7em; }
.clipWorkHead .clipLeafTitle { font-size: 1em; line-height: 1.45; }
.clipWorkHead .clipFigureLine { margin: 0 0 0.5em; font-size: 0.92em; line-height: 1.5; }
.clipWorkHead .clipGo { margin-top: 0.6em; }
.clipRollLead { margin: 0.6em 0 0; color: var(--textMuted); font-size: 0.95em; }
/* 日付・「数 単位」・名前の途中で折り返さない（wf34 clip-r2-10: 幅 375 で「2026-11-／24 時点」「ほか3／人」「有／岡みう」）。
   塊は短い（いちばん長い「（YYYY-MM-DD 時点）」で 15 字）ので、375 の幅からはみ出さない */
.clipKeep { white-space: nowrap; }

/* 見出し */
.clipH2 {
  margin: 2.2em 0 0.8em; padding: 0.2em 0 0.25em 0.6em;
  border-left: 0.3em solid var(--accent); border-bottom: 1px solid var(--rule);
  font-size: 1.2em; font-weight: 800; line-height: 1.5;
}
.clipH3 { margin: 1.3em 0 0.4em; color: var(--mark); font-size: 1.02em; font-weight: 800; line-height: 1.5; }

/* 出演作の帯＝暦のコマを縦に */
.clipBandList { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.clipBandRow {
  display: grid; grid-template-columns: 7.2em 4.6em minmax(0, 1fr); column-gap: 0.7em; align-items: baseline;
  padding: 0.45em 0.4em; border-bottom: 1px solid var(--rule); background: var(--sheet);
}
/* 1 コマ＝日付・間隔・印を 1 行に（題名は出さない＝wf32） */
.clipBandDate { grid-column: 1; color: var(--mark); font-family: var(--mono); font-size: 0.92em; font-weight: 700; white-space: nowrap; }
.clipBandGap { grid-column: 2; color: var(--textMuted); font-size: 0.85em; white-space: nowrap; }
.clipBandDate a { display: inline-block; padding-block: 0.25em; }
.clipBandMark { grid-column: 3; color: var(--mark); }
.clipBandHere { background: var(--band); box-shadow: inset 0.3em 0 0 var(--mark); }
.clipBandNote { margin: 0.5em 0 0; color: var(--textMuted); font-size: 0.85em; line-height: 1.6; }

/* 作品の記録（事実の表） */
.clipCover { margin: 0 0 1em; }
.clipCover img { display: block; width: 100%; max-width: 800px; height: auto; aspect-ratio: 800 / 538; object-fit: contain; background: var(--band); border: 1px solid var(--rule); }
.clipFacts { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 0.95em; }
.clipFacts th, .clipFacts td { padding: 0.5em 0.6em; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.clipFacts th { width: 6.5em; background: var(--band); font-weight: 700; white-space: nowrap; }
/* 出演・ジャンルは 1 つずつ枠に入れて並べる（区切りの字を使わない＝名前の中の「・」と混ざらない） */
.clipFactNames { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 0.35em 0.5em; }
.clipFactNames li { padding: 0.05em 0.5em 0.05em 0.45em; border-left: 3px solid var(--mark); background: var(--band); line-height: 1.6; }

/* 紹介・数字 */
.clipIntro p { margin: 0; }
.clipCountScope { margin: 0 0 0.8em; color: var(--textMuted); font-size: 0.92em; line-height: 1.6; }
.clipCountItem { margin: 0 0 1em; padding: 0.2em 0.9em 0.8em; border: 1px solid var(--rule); border-top: 3px solid var(--mark); background: var(--sheet); }
.clipCountItem p { margin: 0.3em 0 0; }
.clipCompare { color: var(--textMuted); font-family: var(--mono); font-size: 0.9em; }
.clipCountLink { font-size: 0.95em; color: var(--textMuted); }
.clipCountLinks { margin: 0.2em 0 0; padding-left: 1.4em; font-size: 0.95em; }
.clipCountLinks li { padding-block: 0.2em; }

/* 見本の画像（文字を重ねない） */
.clipShotList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5em; margin: 0; padding: 0; list-style: none; }
.clipShotList img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: var(--band); border: 1px solid var(--rule); }
.clipMore { margin: 0.8em 0 0; }
.clipMore a { display: inline-block; padding-block: 0.5em; font-weight: 700; }

/* 行き先・入口 */
.clipWays ul, .clipSetList, .clipGuideList { margin: 0; padding-left: 1.4em; }
.clipWays li, .clipSetList li, .clipGuideList li { padding-block: 0.3em; }
.clipEntry { margin: 1.6em 0 0; padding: 0.7em 0.9em; border: 1px dashed var(--mark); background: var(--sheet); }
.clipBack { margin: 1.4em 0 0; }
[data-z="credit"] { margin: 2em 0 0; color: var(--textMuted); font-size: 0.9em; }

/* 一覧の表 */
.clipRollTable { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 0.95em; }
.clipRollTable th, .clipRollTable td { padding: 0.55em 0.6em; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.clipRollTable thead th { background: var(--band); font-size: 0.9em; }
.clipRollDate { width: 6.6em; color: var(--mark); font-family: var(--mono); white-space: nowrap; }
.clipRollWho { display: block; color: var(--textMuted); font-size: 0.9em; }
.clipRollTally { margin: 0 0 1.4em; }
.clipRollTallyLead { margin: 0 0 0.5em; color: var(--textMuted); font-size: 0.95em; }
.clipRollTallyTable { width: 100%; border-collapse: collapse; background: var(--sheet); font-size: 0.95em; }
.clipRollTallyTable th, .clipRollTallyTable td { padding: 0.45em 0.6em; border: 1px solid var(--rule); text-align: left; vertical-align: top; }
.clipRollTallyTable th { width: 7em; background: var(--band); font-weight: 700; white-space: nowrap; }

/* トップの暦 */
.clipCalList { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.clipCalList li { display: grid; grid-template-columns: 6.6em minmax(0, 1fr); column-gap: 0.7em; padding: 0.55em 0.3em; border-bottom: 1px solid var(--rule); background: var(--sheet); }
.clipCalDate { color: var(--mark); font-family: var(--mono); font-size: 0.92em; font-weight: 700; }
.clipCalBody { min-width: 0; }

/* 画面下の固定バー（閉じられる・JS なし） */
.clipBarShut { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.clipBar {
  position: fixed; right: 0; bottom: 0; left: 0; z-index: 3;
  display: flex; align-items: center; column-gap: 0.6em;
  padding: 0.4em 0.8em calc(0.4em + env(safe-area-inset-bottom, 0px));
  border-top: 2px solid var(--accent); background: var(--sheet);
}
.clipBarBtn {
  flex: 1 1 auto; min-height: 2.75em; padding: 0.55em 0.8em;
  border-radius: 0.3em; background: var(--accent); color: var(--sheet);
  font-weight: 800; text-align: center; text-decoration-line: none;
}
/* 閉じるの押せる大きさは文字の大きさ（0.9em）に引きずられない rem で取る（wf34 clip-r2-13: 2.75em×15.3px＝約 42px で
   44px に届かなかった。2.75rem＝17px×2.75＝46.75px） */
.clipBarClose {
  flex: 0 0 auto; min-width: 2.75rem; min-height: 2.75rem; padding: 0.55em 0.7em;
  border: 1px solid var(--rule); border-radius: 0.3em; background: var(--paper);
  color: var(--text); font-size: 0.9em; text-align: center; cursor: pointer;
}
.clipBarShut:checked + .clipBar { display: none; }
.clipBarShut:focus-visible + .clipBar .clipBarClose { outline: 0.15em solid var(--mark); outline-offset: 0.15em; }

@media (min-width: 48em) {
  .clipLeafTitle { font-size: 1.4em; }
  .clipWorkHead .clipLeafTitle { font-size: 1.3em; }
  .clipShotList { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .clipBar { justify-content: center; }
  .clipBarBtn { flex: 0 1 22em; }
}

@media print {
  .clipBar, .clipBarShut { display: none; }
}
