/* トップ（索引）だけの CSS。base.css の上に重ねる */

/* ---------- 最新刊: 左にチラシ、右に題と書誌（21_21 の「開催中のプログラム」の型） ---------- */
.hero { padding: 56px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0 48px; align-items: start; }
.hero-fly { display: block; }
.hero .top { display: flex; align-items: baseline; gap: 20px; }
.hero .top .big { font-size: 40px; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.hero h1 { font-size: 56px; line-height: 1.4; letter-spacing: 0.02em; margin-top: 20px; padding-bottom: 28px; border-bottom: 1px solid var(--ink); }
.hero h1 a { text-decoration: none; }
.hero h1 a:hover { text-decoration: underline 3px var(--accent); text-underline-offset: 10px; }
.side { margin-top: 8px; }
.side dl div { padding: 12px 0; border-bottom: 1px solid var(--line); }
.side dt { font-size: 14px; font-weight: 700; letter-spacing: 0.1em; color: var(--dim); line-height: 1.4; }
.side dd { font-size: 15px; line-height: 1.6; margin-top: 4px; }
.side dd.res { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.5; font-feature-settings: "palt" 1; }
.side .lead { font-size: 15px; line-height: 1.9; margin-top: 20px; }
.side .more { margin-top: 20px; }
.tagline { background: var(--tint); padding: 20px 0; }
.tagline .wrap { display: flex; gap: 32px; align-items: baseline; }
.tagline b { font-size: 15px; letter-spacing: 0.08em; }

/* ---------- 題: 地は細い明朝（500）、一語だけ極太（800）。色は足さない ---------- */
.hero h1, .t { font-weight: 500; }
.kw { font-style: normal; font-weight: 800; }

section.block { padding: 128px 0 0; }
.block-head { display: flex; align-items: baseline; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ink); margin-bottom: 40px; }
.block-head h2 { font-size: 40px; line-height: 1.4; letter-spacing: 0.04em; }
.block-head .more { margin-left: auto; }
.t { text-wrap: pretty; font-family: var(--font-display); font-size: 19px; line-height: 1.55; letter-spacing: 0.04em; display: block; margin-top: 8px; font-feature-settings: "palt" 1; }
a.card { text-decoration: none; display: block; }
a.card .txt { margin-top: 14px; }
a.card:hover .t { text-decoration: underline 2px var(--accent); text-underline-offset: 4px; }
a.card:hover .fly, .hero-fly:hover .fly { outline: 2px solid var(--ink); outline-offset: 3px; }

/* 近刊: チラシ ＋ 横に文字 */
.recent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--gutter); }
.recent a.card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.recent a.card .txt { margin-top: 0; }
.recent .t { font-size: 26px; line-height: 1.5; }
.recent .r { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--dim); }
.recent .r b { color: var(--ink); font-weight: 700; }

/* 既刊目録: チラシを6列（21_21 の一覧は 214px 幅） */
.catalog { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 48px 20px; align-items: start; }
.catalog .t { font-size: 16px; line-height: 1.6; }
.catalog .label { font-size: 13px; letter-spacing: 0.06em; }
.catalog .rp { display: none; }   /* 6列だと「REPORT」で2行に割れる */
.shelf { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: start; gap: var(--gutter); }
.shelf .t { font-size: 17px; }
.shelf .d { font-size: 14px; line-height: 1.7; color: var(--dim); margin-top: 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.about { display: grid; grid-template-columns: 4fr 8fr; gap: var(--gutter); }
.about h2 { font-size: 40px; line-height: 1.4; }
.about p { max-width: 40em; }
.about p + p { margin-top: 1.2em; }
.about .sign { color: var(--dim); font-size: 15px; }

/* ---------- チラシ（A判の縦長 1:1.414）。寸法はすべて枠の幅（cqw）で決める＝一覧でも最新刊でも同じ比率 ----------
   固定: 右下の金の判子・刊行日の大きな数字・書誌の小さな文字。本体は型 iro（色面）/ tate（縦組み）/ yami（黒地）
   チラシは絵なのでテーマに追従させない（色は build.py の FLYER_GROUNDS） */
.fly { aspect-ratio: 1 / 1.414; position: relative; overflow: hidden; container-type: inline-size; background: var(--g); color: var(--f);
  border: 1px solid var(--line); font-family: var(--font-body); }
.fly p { margin: 0; }
.fly .hd { position: absolute; left: 6cqw; right: 6cqw; top: 5cqw; display: flex; justify-content: space-between; font-size: 3.4cqw; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; }
.fly .w { position: absolute; font-family: var(--font-display); font-weight: 800; line-height: 1; white-space: nowrap; font-feature-settings: "palt" 1; letter-spacing: -0.03em; }
.fly .q { position: absolute; font-family: var(--font-display); font-weight: 700; line-height: 1.45; font-feature-settings: "palt" 1; }
.fly .q .num, .fly .date .num { font-family: var(--font-body); }
.fly .en { position: absolute; font-size: 2.8cqw; line-height: 1.4; letter-spacing: 0.02em; opacity: 0.85; }
.fly .info { position: absolute; left: 6cqw; right: 30cqw; bottom: 16cqw; display: grid; gap: 0.6cqw; font-size: 2.6cqw; line-height: 1.35; }
.fly .date { position: absolute; left: 6cqw; bottom: 5cqw; font-size: 9cqw; font-weight: 700; line-height: 1; letter-spacing: -0.01em; }
.fly .stamp { position: absolute; right: 5cqw; bottom: 5cqw; background: #e7b540; color: #131825; font-size: 5cqw; font-weight: 700; line-height: 1; padding: 1.6cqw 3cqw; letter-spacing: 0.02em; }

/* iro: 色面いっぱい。一語を横組みで特大、右へ断ち切る */
.f-iro .w { left: 4cqw; top: 14cqw; font-size: min(62cqw, calc(96cqw / var(--len))); }   /* 3字以上でも字の途中で断ち切らない */
.f-iro .q { left: 6cqw; right: 8cqw; top: calc(18cqw + min(62cqw, calc(96cqw / var(--len)))); font-size: 6.2cqw; }
.f-iro .en { left: 6cqw; right: 20cqw; top: calc(44cqw + min(62cqw, calc(96cqw / var(--len)))); }

/* tate: 白地。一語を縦組みで右に、問いを縦組みでその左に（虫展・ゴミうんち展の型） */
.f-tate .w { writing-mode: vertical-rl; right: 4cqw; top: 13cqw; font-size: min(40cqw, calc(96cqw / var(--len))); letter-spacing: -0.02em; }
.f-tate .q { writing-mode: vertical-rl; right: calc(10cqw + min(40cqw, calc(96cqw / var(--len)))); top: 14cqw; height: 78cqw; max-width: 20cqw; font-size: 5.6cqw; line-height: 1.6; }
.f-tate .en { left: 6cqw; width: 30cqw; bottom: 34cqw; }   /* 縦書きの問いと重ならないよう左下へ */

/* yami: 墨の地に白抜き。一語は下へ断ち切る（野生展の型） */
.f-yami .w { left: -2cqw; bottom: 31cqw; font-size: min(62cqw, calc(100cqw / var(--len))); }   /* 下の書誌にかぶらない高さ */
.f-yami .q { left: 6cqw; right: 8cqw; top: 15cqw; font-size: 6.6cqw; }
.f-yami .en { left: 6cqw; right: 20cqw; top: 50cqw; }
.f-yami .info { bottom: 16cqw; }

@media (max-width: 1023px) {
  .catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
}
@media (max-width: 767px) {
  .hero { padding: 28px 0 48px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .hero-fly { max-width: 280px; }
  .hero .top { gap: 12px; flex-wrap: wrap; }
  .hero .top .big { font-size: 32px; }
  .hero h1 { font-size: 30px; line-height: 1.5; margin-top: 14px; padding-bottom: 20px; }
  .side dd.res { font-size: 21px; }
  .tagline .wrap { flex-direction: column; gap: 4px; }
  section.block { padding-top: 80px; }
  .block-head { flex-wrap: wrap; gap: 4px 16px; margin-bottom: 28px; padding-bottom: 14px; }
  .block-head h2 { font-size: 28px; }
  .block-head .meta:last-child { margin-left: 0 !important; }
  .recent { grid-template-columns: 1fr; gap: 32px; }
  .recent a.card { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 16px; }
  .recent .t { font-size: 19px; }
  .catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
  .catalog .t { font-size: 14px; line-height: 1.6; }
  .catalog .label { font-size: 12px; letter-spacing: 0.04em; }
  .shelf { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 12px; }
  .shelf .t { font-size: 14px; }
  .shelf .d { display: none; }
  .about { grid-template-columns: 1fr; gap: 16px; }
  .about h2 { font-size: 28px; }
}
