@charset "utf-8";

:root {
  --navy: #354767;
  --navy-dark: #24324a;
  --navy-deep: #1b2638;
  --navy-mid: #4a6284;
  --navy-soft: #6d84a3;
  --cream: #f4f0e8;
  --paper: #fffcf7;
  --line: #ddd6c8;
  --ink: #2a2a28;
  --muted: #6a655c;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(36, 50, 74, 0.08);
  --radius: 4px;
  --header-h: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0.04em;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
  -webkit-user-drag: none;
  user-drag: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-mid);
}

h1, h2, h3, h4 {
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; }

/* Header
-------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--navy-dark);
  color: #fff;
  border-bottom: 3px solid #c9b48a;
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: #fff;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.logo:hover { color: #fff; opacity: 0.9; }
.logo-en {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c9b48a;
  font-family: "Noto Sans JP", sans-serif;
}
.logo-ja {
  font-family: "Shippori Mincho", serif;
  font-size: 18px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: #fff;
  margin: 0 auto;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
}
.global-nav a {
  color: rgba(255,255,255,0.82);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.12em;
  padding: 10px 14px;
  display: block;
  border-bottom: 2px solid transparent;
}
.global-nav a:hover,
.global-nav a.is-current {
  color: #fff;
  border-bottom-color: #c9b48a;
}

/* Hero
-------------------------------------------------- */
.hero {
  position: relative;
  min-height: 70vh;
  display: grid;
  place-items: end stretch;
  background: var(--navy-deep) center/cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27,38,56,0.15) 0%, rgba(27,38,56,0.78) 70%, rgba(27,38,56,0.92) 100%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 56px;
}
.hero-kicker {
  color: #c9b48a;
  letter-spacing: 0.28em;
  font-size: 12px;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  font-weight: 600;
}
.hero-lead {
  font-size: clamp(16px, 2vw, 20px);
  opacity: 0.92;
  margin-bottom: 28px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.85);
}

.page-hero {
  position: relative;
  background: #303b68;
  color: #fff;
  min-height: 180px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 42%;
  background: url("../images/obi.jpg") right center / auto 100% no-repeat;
  pointer-events: none;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #303b68 0 58%, rgba(48, 59, 104, 0.78) 70%, transparent 88%);
  pointer-events: none;
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  width: 100%;
}
.page-hero-inner > * {
  max-width: min(34em, 56%);
}
.page-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  margin: 0 0 6px;
}
.page-hero p {
  margin: 0;
  opacity: 0.88;
  font-size: 14px;
  letter-spacing: 0.1em;
}
.page-hero p + p {
  margin-top: 8px;
}
.page-hero .hero-kicker {
  color: #c9b48a;
  letter-spacing: 0.28em;
  font-size: 12px;
  margin: 0 0 8px;
  opacity: 1;
}

/* Layout
-------------------------------------------------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 80px;
}

.section-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-title:has(+ .news-list) {
  margin-bottom: 0;
}
.section-follow {
  margin-top: 56px;
}
.section-title.spaced {
  margin-top: 36px;
}
.section-title.spaced-lg {
  margin-top: 48px;
}
.section-title h2 {
  margin: 0;
  font-size: 26px;
}
.section-title .en {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--navy-soft);
  text-transform: uppercase;
}

.lead {
  font-size: 17px;
  color: var(--navy-dark);
}

/* Cards / grid
-------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 64px;
}
.photo-frame {
  background: var(--paper);
  padding: 12px 12px 36px;
  box-shadow: var(--shadow);
}
.photo-frame img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.photo-frame figcaption,
.caption {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 8px;
}
.byline {
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  text-align: right;
  letter-spacing: 0.12em;
  margin: 0.35em 0 1.4em;
}

.info-board {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 28px 8px;
}
.info-board dl {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  gap: 10px 16px;
  margin: 0 0 20px;
}
.info-board dt {
  color: var(--navy);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.1em;
}
.info-board dd { margin: 0; }

.news-list {
  margin: 0;
}
.news-list div {
  display: grid;
  grid-template-columns: 7.5em 1fr;
  column-gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}
.news-list time {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.08em;
  line-height: 1.9;
}
.news-list p {
  margin: 0;
}

.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 12px;
}
.feature-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 20px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 160px;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: inherit;
}
.feature-card .num {
  color: #c9b48a;
  font-size: 12px;
  letter-spacing: 0.2em;
}
.feature-card h3 {
  font-size: 18px;
  margin: 8px 0 10px;
}
.feature-card p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* Gallery
-------------------------------------------------- */
.gallery-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.gallery-card {
  background: var(--paper);
  border: 1px solid var(--line);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 34%) 1fr;
  align-items: stretch;
}
.gallery-card a.thumb {
  display: block;
  min-height: 240px;
  height: 100%;
  overflow: hidden;
  background: var(--navy-deep);
  cursor: zoom-in;
}
.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.gallery-card:hover img { transform: scale(1.04); }
.gallery-card .body {
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
}
.gallery-card .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--navy-soft);
  margin-bottom: 6px;
}
.gallery-card h3 {
  font-size: 20px;
  margin-bottom: 6px;
}
.gallery-card .byline {
  margin: 0 0 12px;
  font-size: 13px;
}
.gallery-card .kicker {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--navy);
  margin: 0 0 12px;
}
.gallery-card .panel-copy {
  font-size: 14.5px;
  color: var(--ink);
  line-height: 1.9;
  margin-bottom: 16px;
}
.gallery-card .panel-copy p {
  font-size: inherit;
  color: inherit;
  margin-bottom: 0.85em;
}
.gallery-card .panel-copy p:last-child { margin-bottom: 0; }
.gallery-card .works {
  margin: 0 0 1em;
  padding-left: 1.25em;
  font-size: 13.5px;
}
.gallery-card .works li { margin-bottom: 0.4em; }
.gallery-card .work-head {
  font-family: "Shippori Mincho", serif;
  font-size: 14.5px;
  margin: 1em 0 0.25em;
}
.gallery-card .panel-copy > .work-head:first-child { margin-top: 0; }
.gallery-card .org-lines {
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 0;
}
.gallery-card .org-lines p { margin-bottom: 0.4em; }
.gallery-card .btn { align-self: flex-start; margin-top: auto; }
.gallery-card.panel-board {
  grid-template-columns: 1fr;
}
.gallery-card.panel-board a.thumb {
  min-height: 0;
  height: auto;
  background: #fff;
}
.gallery-card.panel-board a.thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.gallery-card.panel-board:hover img { transform: none; }
.gallery-card.panel-board .body {
  padding-top: 16px;
}
.gallery-card.panel-board.is-text-only .thumb-placeholder {
  background: var(--cream);
  min-height: 140px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-card.panel-board.is-text-only .thumb-placeholder p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  line-height: 1.8;
}
.btn {
  display: inline-block;
  background: var(--navy);
  color: #fff !important;
  text-decoration: none;
  padding: 8px 16px;
  font-size: 13px;
  letter-spacing: 0.12em;
  border: 1px solid var(--navy);
}
.btn:hover { background: var(--navy-mid); }
.btn-ghost {
  background: transparent;
  color: var(--navy) !important;
}
.btn-ghost:hover { background: var(--navy); color: #fff !important; }

/* Detail
-------------------------------------------------- */
.detail-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 16px;
}
.toc h2 {
  font-size: 13px;
  letter-spacing: 0.16em;
  margin-bottom: 12px;
  color: var(--navy);
}
.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.toc a {
  display: block;
  text-decoration: none;
  font-size: 13px;
  padding: 7px 8px;
  color: var(--ink);
  border-left: 2px solid transparent;
}
.toc a:hover,
.toc a.is-current {
  color: var(--navy);
  background: var(--cream);
  border-left-color: var(--navy);
}

.article {
  scroll-margin-top: calc(var(--header-h) + 24px);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 36px 40px 32px;
  margin-bottom: 28px;
}
[id^="panel-"] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.article-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.article-head .label {
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--navy-soft);
}
.article h2 {
  font-size: 26px;
  margin: 4px 0 0;
}
.article h3 {
  font-size: 18px;
  margin: 1.6em 0 0.6em;
  padding-left: 12px;
  border-left: 3px solid var(--navy);
}
.article .figure {
  margin: 20px 0 24px;
}
.article .figure img {
  width: 100%;
  display: block;
}
.article .pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 24px;
}
.article .pair .figure {
  margin: 0;
}
.note {
  font-size: 13px;
  color: var(--muted);
  background: var(--cream);
  padding: 16px 18px;
  margin: 20px 0;
}
.fn-ref {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  font-size: 0.72em;
  font-style: normal;
  font-weight: 600;
  line-height: 1;
  margin-left: 0.12em;
}
.fn-ref a {
  color: var(--navy-mid);
  text-decoration: none;
}
.fn-ref a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.fn-mark,
[id^="fn-"] {
  font-weight: 600;
  color: var(--navy-mid);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.source {
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  margin-top: 28px;
  padding-top: 14px;
  overflow-wrap: anywhere;
}
.source a {
  color: var(--navy);
}
.source + .source {
  margin-top: 8px;
}
.byline + .source {
  margin-top: 8px;
}
.article-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 12px 0 24px;
}
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  vertical-align: top;
}
th {
  background: var(--cream);
  color: var(--navy);
  font-weight: 600;
  width: 28%;
  white-space: nowrap;
}
.book-list th:first-child,
.book-list td:first-child {
  width: 1%;
  white-space: nowrap;
}
.book-list th:last-child {
  width: auto;
}

/* Biography timeline
-------------------------------------------------- */
.bio-intro {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  margin-bottom: 48px;
  align-items: start;
}
.facts {
  display: grid;
  grid-template-columns: 9.5em 1fr;
  gap: 8px 12px;
  margin: 0;
}
.facts dt { color: var(--navy); font-weight: 600; font-size: 13px; }
.facts dd { margin: 0; }
.bio-note {
  margin: -24px 0 32px;
  line-height: 1.75;
}

.timeline {
  border-left: 2px solid var(--navy);
  margin: 8px 0 40px 10px;
  padding-left: 28px;
}
.timeline-item {
  position: relative;
  margin-bottom: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -36px;
  top: 8px;
  width: 12px;
  height: 12px;
  background: #c9b48a;
  border: 2px solid var(--navy);
  border-radius: 50%;
}
.year {
  color: var(--navy);
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 600;
}
.timeline-item h3 { margin: 4px 0 10px; font-size: 22px; }
.timeline-item strong {
  font-weight: 700;
}
.timeline-item > figure {
  margin: 16px 0;
}
.timeline-item > figure.book-cover {
  max-width: 260px;
}
.timeline-item > figure.book-cover img {
  width: 100%;
  height: auto;
  display: block;
}
.timeline-item .media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0;
}
.timeline-item .media-3 {
  grid-template-columns: 1fr 1fr 1fr;
}
.timeline-item .media-books {
  grid-template-columns: repeat(3, minmax(0, 140px));
  justify-content: start;
}
.timeline-item .media-books img {
  width: 100%;
  height: auto;
}
.timeline-item.is-letter {
  background: var(--paper);
  border: 1px dashed var(--line);
  padding: 18px 20px 8px;
}
.letter-excerpt {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 20px 24px;
  align-items: start;
  margin: 12px 0 8px;
}
.letter-excerpt .quote {
  margin: 0;
}
.letter-open {
  display: inline-block;
  max-width: 200px;
}
.letter-open img {
  width: 100%;
  height: auto;
  display: block;
}
.letter-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0 16px;
}
.letter-links a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
}
.letter-links a:hover {
  color: var(--navy-mid);
  text-decoration: underline;
}
.letter-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 12px;
}

.letter-pages {
  display: grid;
  gap: 28px;
  max-width: 720px;
  margin: 0 auto;
}
.letter-pages a.thumb {
  display: block;
  background: #fff;
  min-height: 0;
  height: auto;
  aspect-ratio: auto;
  cursor: zoom-in;
  text-decoration: none;
}
.letter-pages a.thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.letter-transcript {
  max-width: 42em;
  margin: 0 auto;
  font-family: "Shippori Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-size: 17px;
  line-height: 2.15;
}
.letter-transcript .addressee {
  font-weight: 600;
  margin-bottom: 1.4em;
}
.letter-transcript .letter-close,
.letter-transcript .letter-to {
  text-align: right;
  margin: 0.2em 0;
}
.letter-transcript .letter-close {
  margin-top: 2em;
}
.letter-back {
  margin: 28px 0 0;
}

.quote {
  border-left: 3px solid #c9b48a;
  padding: 4px 0 4px 18px;
  color: var(--navy-dark);
  font-family: "Shippori Mincho", serif;
  font-size: 16px;
  margin: 18px 0;
}

/* Links
-------------------------------------------------- */
.link-list {
  display: grid;
  gap: 0;
}
.link-item {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.link-group {
  border-bottom: 1px solid var(--line);
}
.link-group > .link-item {
  border-bottom: none;
}
.link-item.is-child {
  margin-left: 28px;
  padding: 16px 0 18px 16px;
  border-top: 1px solid #ebe6da;
  border-left: 2px solid #d4c4a0;
}
.link-item.is-child h3 {
  font-size: 16px;
}
.link-item:hover h3 { color: var(--navy-mid); }
.link-item h3 {
  margin: 0 0 4px;
  font-size: 18px;
}
.link-item .url {
  font-size: 12px;
  color: var(--navy-soft);
  word-break: break-all;
}
.link-item p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.org-block {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
  margin-top: 36px;
}
.org-block h3 { font-size: 16px; color: var(--navy); }
.org-block p { font-size: 14px; margin-bottom: 0.6em; }

/* Footer
-------------------------------------------------- */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.78);
  padding: 24px 24px 22px;
  font-size: 12px;
  letter-spacing: 0.08em;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
}
.site-footer small {
  display: block;
  font-size: inherit;
  line-height: 1.7;
  flex: 1 1 20em;
  min-width: 0;
}
.site-footer a {
  color: #c9b48a;
  text-decoration: none;
  flex: 0 0 auto;
  margin-left: auto;
  white-space: nowrap;
  line-height: 1.7;
}
.site-footer a:hover { color: #fff; }

/* Responsive
-------------------------------------------------- */
@media (max-width: 960px) {
  .intro-grid,
  .bio-intro,
  .detail-layout,
  .feature-cards {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-card {
    grid-template-columns: 1fr;
  }
  .gallery-card a.thumb {
    min-height: 200px;
    aspect-ratio: 16 / 10;
    height: auto;
  }
  .gallery-card.panel-board a.thumb {
    min-height: 0;
    aspect-ratio: auto;
  }
  .detail-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .toc ol {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .global-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-dark);
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .global-nav.is-open { display: block; }
  .global-nav ul { flex-direction: column; padding: 8px 12px 16px; }
  .global-nav a { padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header-inner { position: relative; }
  .logo-ja { font-size: 16px; }

  .intro-grid,
  .bio-intro,
  .feature-cards,
  .article .pair,
  .timeline-item .media,
  .timeline-item .media-3,
  .timeline-item .media-books,
  .letter-excerpt,
  .link-item,
  .toc ol {
    grid-template-columns: 1fr;
  }

  .wrap { padding: 32px 16px 64px; }
  .article { padding: 24px 18px; }
  .hero { min-height: 62vh; }
  .hero-inner { padding: 56px 16px 40px; }
  .page-hero::before,
  .page-hero::after {
    display: none;
  }
  .page-hero-inner > * {
    max-width: none;
  }
  .info-board dl,
  .news-list div { grid-template-columns: 1fr; gap: 6px; }
  .photo-frame img { aspect-ratio: 3 / 4; }
}

@media (min-width: 781px) and (max-width: 1024px) {
  .global-nav a { padding: 10px 10px; font-size: 12px; }
  .page-hero::before { width: 32%; }
}

/* Lightbox
-------------------------------------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(27, 38, 56, 0.88);
  cursor: zoom-out;
}
.lightbox.is-open {
  display: flex;
}
.lightbox img {
  max-width: min(96vw, 1400px);
  max-height: 92vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
body.lightbox-open {
  overflow: hidden;
}

/* Plain-text letter transcript (no site chrome)
-------------------------------------------------- */
body.letter-plain {
  margin: 8px;
  background: #fff;
  color: #000;
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0;
}
body.letter-plain pre {
  margin: 0;
  font: inherit;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
body.letter-hand {
  margin: 0;
  background: #fff;
}
body.letter-hand img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
  margin-inline: auto;
}

/* Content protection (deterrent only)
-------------------------------------------------- */
@media print {
  body > * {
    display: none !important;
  }
  body::after {
    content: "このウェブサイトの印刷はご遠慮ください。";
    display: block;
    padding: 48px 24px;
    text-align: center;
    font-size: 16px;
    color: #2a2a28;
  }
}
