/* 注記(2026-10-26): このファイル内のscroll-margin-topは削除した。base-typography.cssのhtml{scroll-padding-top:70px}と二重に加算され、アンカー移動時に本来より余計にスクロールが止まり、前のセクションの要素が見えてしまう不具合があったため。 */
/* 中国を駆ける(tonko.html) 専用スタイル。旧Homepage Builder形式(表組み)から、見出し・図・節の構造に作り直した。 */
body {
  background-color: #0b0231;
  color: #3b2412;
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}

.page-center {
  max-width: 960px;
  margin: 0 auto;
  padding: 16px 12px 72px;
  box-sizing: border-box;
  background-color: #ffffcc;
  border-radius: 14px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.page-title {
  text-align: center;
  margin: 8px 0 16px;
}

.page-title h1 {
  margin: 0;
  line-height: 1;
}

/* 目次: 画像ロゴのリンクを縦に中央そろえ */
.toc-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto 32px;
  padding: 14px 12px;
  background-color: #ffffff;
  border-radius: 8px;
}

.toc-nav a {
  display: block;
  max-width: 100%;
  border-radius: 4px;
  transition: transform 0.2s ease;
}

.toc-nav a:hover,
.toc-nav a:focus-visible {
  transform: scale(1.04);
}

.toc-nav a.nav-link-last-clicked {
  outline: 2px solid #5a3a7a;
  outline-offset: 4px;
}

/* 本文の幅: 読みやすい行長に収めて中央に置く */
.intro,
.chapter {
  max-width: 760px;
  margin: 0 auto;
}

.chapter {
  margin-top: 44px;
  padding-top: 8px;
  border-top: 2px solid #cc9933;
}

.chapter > h2,
.chapter > h3 {
  margin: 24px 0 12px;
  line-height: 1;
  text-align: center;
}

.chapter > h2 img + img {
  margin-top: 8px;
}

/* 図(写真＋キャプション) */
figure {
  margin: 20px auto;
  text-align: center;
}

figure img {
  border-radius: 4px;
}

figcaption {
  max-width: 640px;
  margin: 8px auto 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5a3a1a;
}

.photo-pair {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}

.photo-pair img {
  margin: 0;
}

/* 本文 */
p {
  line-height: 1.8;
  text-indent: 1em;
  margin: 14px 0;
}

p small {
  font-size: 14px;
}

.dialogue {
  text-indent: 0;
  margin: 10px 0;
  padding: 6px 14px;
  background-color: #fff8e0;
  border-left: 4px solid #cc9933;
  border-radius: 0 6px 6px 0;
}

.emphasis {
  text-indent: 0;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: #7a4a10;
}

.memorial {
  margin: 28px 0 8px;
  padding: 6px 18px;
  background-color: #fff8e0;
  border-radius: 8px;
}

.memorial p {
  font-size: 14px;
}

/* 歴代優勝者 */
.winners-title {
  margin: 24px 0 8px;
  font-size: 18px;
  color: #7a4a10;
}

.winners {
  margin: 0 0 24px;
  padding: 12px 18px 12px 2.2em;
  background-color: #fff8e0;
  border-radius: 8px;
  line-height: 1.8;
}

.winners li {
  margin: 2px 0;
}

/* 新聞紙面のスキャン: 縦に並べ、画面幅に収める */
.scans {
  display: grid;
  gap: 22px;
  margin: 20px 0;
}

.scans img {
  width: min(583px, 100%);
  border: 1px solid #d8c68a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 章末の「▲ ナビに戻る」ボタン(tonko.js が追加): 回り込みの下に回り込まないよう解除 */
.back-to-header {
  clear: both;
}
