/* Showa-modern editorial edition: typographic composition and architectural photographs. */
body.history-page.v5-page {
  --v5-paper: #E5E5DF;
  --v5-light: #F1F1EB;
  --v5-dark: #242827;
  --v5-wood: #414946;
  --v5-red: #8F302A;
  --v5-gold: #8F302A;
  --paper: #E5E5DF;
  --sand: #E5E5DF;
  --reading: #F1F1EB;
  --ink: #242827;
  --green: #242827;
  --gold: #8F302A;
  --line: #929794;
  --oldwood: #414946;
  --muted: #525956;
  --cta-fill: #242827;
  --cta-ink: #242827;
  --cta-paper: #F1F1EB;
  --cta-border: #525956;
  --cta-focus: #8F302A;
  background: #E5E5DF;
  color: #242827;
}
.history-page .history-content { max-width: 1320px; padding: 44px clamp(24px,5vw,72px) 85px; background: transparent; }
.history-page .history-content > .history-opening,
.history-page .history-content > .history-booklet,
.history-page .history-content > .cd-history-chapter,
.history-page .history-content > .cd-history-chapter:nth-of-type(even),
.history-page .history-content > .cd-records,
.history-page .history-content > .history-closing { background: transparent; color: #242827; }
.history-page .history-content > .history-opening :is(h1,p,figcaption,a),
.history-page .history-story-chapter :is(h2,h3,p,figcaption,a),
.history-page .history-story-chapter:nth-of-type(even) :is(h2,h3,p,figcaption,a,.cd-section-label) { color: #242827; }
.history-page .history-content .history-opening {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.25fr);
  gap: 20px 50px;
  align-items: start;
  padding: 0;
}
.history-page .history-content .history-opening > .eyebrow {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0 0 18px;
  padding: 12px 0 10px;
  border-top: 5px solid #242827;
  border-bottom: 1px solid #242827;
  font: 600 12px/1.8 var(--sans);
  letter-spacing: .1em;
}
.history-page .history-opening .eyebrow span { font-size: 10px; letter-spacing: .15em; }
.history-page .history-content .history-opening h1 { grid-column: 1; grid-row: 2; margin: 0; font-weight: 600; }
.history-page .history-content .history-opening .history-subtitle { grid-column: 1; grid-row: 3; margin: 0; }
.history-page .history-content .history-opening > p:not(.eyebrow):not(.history-subtitle) { grid-column: 1; grid-row: 4; margin: 0; }
.history-page .history-content .history-opening figure { grid-column: 2; grid-row: 2 / 5; margin: 0; }
/* Shared chrome keeps its markup and behavior; only this page uses the ink palette. */
.history-page .unified-header, .history-page .unified-footer { background: #242827; }
.history-page .unified-header nav a[aria-current="page"] { background: #F1F1EB; color: #242827; border-color: #F1F1EB; }
.history-page .history-opening h1 { font-size: clamp(32px,3.1vw,46px); line-height: 1.65; letter-spacing: .025em; max-width: 1000px; }
.history-page .history-content > .history-opening .eyebrow { color: #8F302A; }
.history-page .history-opening .history-subtitle { font-size: 17px; margin-block: 24px 16px; }
.history-page .history-opening > p:not(.eyebrow) { max-width: 720px; line-height: 2; }
.history-page .history-opening figure { margin-block: 40px 15px; }
.history-page .history-opening img,
.history-page .history-real img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.history-page .history-opening figcaption, .history-page .history-real figcaption,
.history-page .history-ai figcaption { font: 12px/1.85 var(--sans); color: #242827; margin-top: 12px; }
.history-page .history-content .history-booklet { padding: 26px 0; margin: 55px 0 85px; border-top: 3px double #242827; border-bottom: 1px solid #242827; }
.history-page .history-booklet-label { color: #242827; font: 17px/1.8 var(--serif); }
.history-page .history-booklet .chapter-index { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 20px; }
.history-page .history-booklet .chapter-index a { padding: 0 0 12px; border: 0; border-bottom: 1px solid #24282755; background: transparent; color: #242827; border-radius: 0; }
.history-page .history-booklet .chapter-index a:hover { background: #d7d8d2; border-color: #242827; }
.history-page .history-booklet .chapter-index a img { margin-bottom: 14px; }
.history-page .chapter-index .booklet-number { font-size: 21px; margin-bottom: 7px; color: #8F302A; }
.history-page .chapter-index .booklet-title { font-size: 16px; line-height: 1.8; }
.history-page .chapter-index .booklet-intro { display: none; }
.history-page .chapter-index .booklet-more { font-size: 12px; border: 0; padding-top: 0; color: #242827; }
.history-page .history-booklet::after { display: none; }
.history-page .history-content > .history-story-chapter { padding: 35px 0 0; margin: 85px 0; border-top: 3px double #242827; scroll-margin-top: 30px; }
.history-page .history-story-header { max-width: 760px; margin: 0 0 35px; }
.history-page .history-story-header h2 { font-size: clamp(25px,2.5vw,35px); line-height: 1.65; margin-bottom: 20px; font-weight: 600; }
.history-page .history-story-chapter .history-story-header .cd-section-label {
  display: inline-block;
  padding: 4px 12px;
  background: #8F302A;
  color: #F6F6F0;
  font: 600 11px/1.8 var(--sans);
  letter-spacing: .13em;
  margin-bottom: 20px;
}
.history-page .history-deck { font: 23px/1.9 var(--serif); margin-bottom: 18px; }
.history-page .history-lead { font-size: 17px; line-height: 2; max-width: 720px; }
.history-page .history-body { display: block; width: 100%; max-width: 720px; margin: 45px auto; }
.history-page .history-body .history-passage { width: 100%; margin-bottom: 32px; }
.history-page .history-body .history-passage h3 { font: 400 23px/1.75 var(--serif); margin-bottom: 14px; }
.history-page .history-body .history-passage p { margin: 0; font: 400 17px/2.05 var(--sans); }
.history-page .history-real, .history-page .history-ai { margin: 0; min-width: 0; }
.history-page .history-time-pair { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; align-items: center; }
.history-page .history-time-pair .history-ai { padding-bottom: 45px; }
.history-page .history-ai img { width: 100%; height: auto; }
.history-page .history-photo-essay { position: relative; display: grid; grid-template-columns: .72fr 1.28fr; gap: 30px; align-items: end; padding-left: 40px; }
.history-page .history-photo-essay .history-real:last-child { margin-bottom: 50px; }
.history-page .history-vertical { position: absolute; writing-mode: vertical-rl; top: 0; left: 0; font: 18px/1.8 var(--serif); letter-spacing: .15em; }
.history-page .history-detail-pair { display: grid; grid-template-columns: 1.1fr .9fr; gap: 35px; align-items: start; }
.history-page .history-detail-pair .history-real:last-child { padding-top: 75px; }
.history-page .history-interior-pair { display: grid; grid-template-columns: .65fr 1.35fr; gap: 40px; align-items: center; max-width: 1000px; margin: auto; }
.history-page .history-interior-pair .history-joinery-photo { margin-top: 60px; }
.history-page .history-future-photo { max-width: 1000px; margin: 0 auto; }
.history-page .history-trade .history-body { margin-right: 0; }
.history-page .history-interior .history-body { margin-left: 0; }
.history-page .history-story-chapter .cd-sources { max-width: 720px; margin: 30px auto; font-size: 12px; line-height: 1.95; }
.history-page .history-afterword { max-width: 720px; margin: 45px auto 35px; padding-left: 22px; border-left: 1px solid #8F302A; font: 21px/2 var(--serif); }
.history-page .history-related { max-width: 720px; margin: 25px auto; }
.history-page .history-chapter-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #24282755; padding-top: 20px; }
.history-page .history-chapter-nav a, .history-page .history-related a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 14px; border: 1px solid #525956; color: #242827; text-decoration: none; font: 14px/1.8 var(--sans); }
.history-page .history-story-chapter .history-chapter-nav a:hover, .history-page .history-story-chapter .history-related a:hover { background: #242827; color: #F6F6F0; }
.history-page .history-content > .cd-records { max-width: 760px; padding: 30px 0; margin: 60px auto 25px; border-top: 1px solid #24282799; }
.history-page .cd-records h2 { font-size: 26px; }
.history-page .history-practical-note { max-width: 720px; margin: 35px auto; font-size: 13px; line-height: 1.95; color: #242827; }
.history-page .history-content .history-closing { padding-block: 45px; border-top: 1px solid #24282799; }
.history-page .history-story-chapter .actions { max-width: 720px; margin: 30px auto; }
.history-page .history-story-chapter .actions a.button { color: #F6F6F0; background: #8F302A; border-color: #8F302A; }
.history-page .history-story-chapter .actions a.button.secondary { background: transparent; color: #242827; border-color: #525956; }
.history-page .history-story-chapter .actions a.button:hover { background: #242827; color: #F6F6F0; }
.history-page .history-content :focus-visible,
.history-page .history-content .chapter-index a:focus-visible,
.history-page .history-content .history-story-chapter :focus-visible { outline: 3px solid #8F302A; outline-offset: 4px; }
@media(max-width: 900px) {
 .history-page .history-booklet .chapter-index { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .history-page .history-time-pair { gap: 24px; }
}
@media(max-width: 760px) {
 .history-page .history-content { padding: 38px 20px 55px; }
 .history-page .history-content .history-opening { display: block; }
 .history-page .history-content .history-opening > .eyebrow { display: block; margin-bottom: 28px; padding: 10px 0; font-size: 11px; }
 .history-page .history-opening .eyebrow span { display: block; margin-top: 3px; }
 .history-page .history-content .history-opening h1 { margin-bottom: 24px; }
 .history-page .history-content .history-opening .history-subtitle { margin-bottom: 15px; }
 .history-page .history-content .history-opening > p:not(.eyebrow):not(.history-subtitle) { margin-bottom: 28px; }
 .history-page .history-content .history-opening figure { margin: 0; }
 .history-page .history-opening h1 { font-size: clamp(28px,7.5vw,36px); line-height: 1.75; letter-spacing: .015em; }
 .history-page .history-opening .history-subtitle { font-size: 15px; }
 .history-page .history-opening > p:not(.eyebrow), .history-page .history-lead { font-size: 16px; line-height: 1.95; }
 .history-page .history-content .history-booklet { margin-bottom: 55px; }
 .history-page .history-booklet .chapter-index { gap: 26px 20px; }
 .history-page .chapter-index .booklet-title { font-size: 15px; }
 .history-page .history-content > .history-story-chapter { margin-block: 60px; padding-top: 30px; }
 .history-page .history-story-header { margin-bottom: 28px; }
 .history-page .history-story-header h2 { font-size: 26px; }
 .history-page .history-deck { font-size: 21px; }
 .history-page .history-body { margin-block: 32px; }
 .history-page .history-body .history-passage h3 { font-size: 21px; }
 .history-page .history-body .history-passage p { font-size: 16px; line-height: 1.95; }
 .history-page .history-time-pair, .history-page .history-photo-essay,
 .history-page .history-detail-pair, .history-page .history-interior-pair { display: grid; grid-template-columns: 1fr; gap: 28px; padding: 0; }
 .history-page .history-time-pair .history-ai { padding-bottom: 0; }
 .history-page .history-photo-essay .history-real:last-child,
 .history-page .history-interior-pair .history-joinery-photo { margin: 0; }
 .history-page .history-detail-pair .history-real:last-child { padding: 0; }
 .history-page .history-vertical { display: none; }
 .history-page .history-interior-pair .history-stair-photo { max-width: 270px; margin-inline: auto; }
 .history-page .history-afterword { font-size: 19px; padding-left: 16px; }
 .history-page .history-chapter-nav { display: grid; grid-template-columns: 1fr; }
 .history-page .history-chapter-nav a { width: 100%; }
 .history-page .history-content > .cd-records { padding-inline: 0; }
 .history-page .cd-table > div { grid-template-columns: 1fr; gap: 6px; }
}
@media(prefers-reduced-motion: reduce) { .history-page { scroll-behavior: auto; } }

/* Meaningful Japanese title lines; the wording and heading remain unchanged. */
.history-page .history-opening .showa-title-unit { display: block; white-space: nowrap; }
.history-page .history-content .history-opening > .eyebrow { max-width: none; width: 100%; }
