/* 下層ページの冒頭に、明るいモノクロ写真の帯を敷く（2026-11-13。トップ nah.css と同じ写真・同じ考え方）。
   写真は画面の幅いっぱい、題はその下の明るい面に墨色で載る。対象: 事前準備、安全、お題の一覧、当日資料の表紙。
   写真は assets/tccsg-2026/nah/（AIで生成。断り書きは足元に出す）。 */

.page-prep .page-head,
.page-safety .page-head,
body.uc .uc-intro,
.rd-hero {
  position: relative;
  isolation: isolate;
  --head-pad: clamp(240px, 44svh, 460px);
  padding-top: var(--head-pad);
}

.page-prep .page-head::before,
.page-safety .page-head::before,
body.uc .uc-intro::before,
.rd-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background:
    /* 写真は上の余白（--head-pad）の中で見せ、題の高さから下は紙の色に溶かす。題や文が長くても写真にかからない */
    linear-gradient(to bottom, rgba(247, 246, 243, 0) 0, rgba(247, 246, 243, 0) calc(var(--head-pad) * 0.55), rgba(247, 246, 243, 0.9) var(--head-pad), #f7f6f3 calc(var(--head-pad) + 96px)),
    var(--head-photo) center top / 100% auto no-repeat;
  filter: grayscale(1);
}

.page-prep .page-head { --head-photo: url("assets/tccsg-2026/nah/mono-desk.jpg"); }
.page-safety .page-head { --head-photo: url("assets/tccsg-2026/nah/mono-slides.jpg"); }
body.uc .uc-intro { --head-photo: url("assets/tccsg-2026/nah/bright-lab.jpg"); }
.rd-hero { --head-photo: url("assets/tccsg-2026/nah/mono-hall.jpg"); }

/* 題はトップと同じ太いゴシックで大きく */
.page-prep .page-head h1,
.page-safety .page-head h1,
body.uc .uc-intro h1,
.rd-hero h1 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.page-prep .page-head,
.page-safety .page-head { padding-bottom: clamp(24px, 3vw, 40px); }

@media (max-width: 760px) {
  .page-prep .page-head,
  .page-safety .page-head,
  body.uc .uc-intro,
  .rd-hero { --head-pad: clamp(200px, 36svh, 320px); }
  .page-prep .page-head::before,
  .page-safety .page-head::before,
  body.uc .uc-intro::before,
  /* 紙色のぼかしは帯の全体に1枚だけ敷く（写真と同じ高さで繰り返すと、写真の下端が細い線になって本文に重なった。2026-11-14） */
  .rd-hero::before { background-size: 100% 100%, auto calc(var(--head-pad) + 120px); background-repeat: no-repeat; background-position: center top; }
}

@media print {
  .page-prep .page-head,
  .page-safety .page-head,
  body.uc .uc-intro,
  .rd-hero { --head-pad: 0px; }
  .page-prep .page-head::before,
  .page-safety .page-head::before,
  body.uc .uc-intro::before,
  .rd-hero::before { display: none; }
}

/* ---------- 点検（2026-11-13）で足した、全ページ共通の直し ---------- */
/* スマホでは「Claudeを開く」が消えていた。メニューを開いたときに、その下に出す */
@media (max-width: 760px) {
  .has-menu .menu-toggle[aria-expanded="true"] ~ .site-header__cta { display: inline-flex; justify-content: center; width: 100%; min-height: 48px; margin-top: 12px; }
}
/* 黒い足元: キーボードの枠は白く。リンクは指で押せる高さに */
.site-footer a:focus-visible { outline: 3px solid #faf9f5; outline-offset: 3px; }
.site-footer nav a, .site-footer li a { display: inline-block; padding-block: 8px; }
