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-bottom: 16px;
}

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

h2 {
  text-align: center;
  margin: 24px 0 12px;
}

/* ナビ(他の旅ページ austriatop.html 等と同じ travel-hub.css の .link-nav ボタン形式・アコーディオン) */
.link-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto 16px;
}

.link-nav .section-heading,
.nav-group summary.section-heading {
  margin: 8px 0 0;
  padding-left: 6px;
  border-left: 6px solid #2f6fb3;
  font-weight: 700;
  color: #1a3a5c;
  flex-basis: 100%;
  cursor: pointer;
}

.nav-group {
  flex-basis: 100%;
}

.nav-group::details-content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 10px;
}

.link-nav a {
  display: block;
  box-sizing: border-box;
  padding: 8px 14px;
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  color: #1a1a2e;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25);
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link-nav a:hover,
.link-nav a:focus-visible {
  background-color: rgba(255, 255, 255, 1);
  transform: scale(1.1);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.35);
}

.link-nav a.nav-link-last-clicked {
  background-color: rgba(90, 58, 122, 0.18);
  border-color: rgba(90, 58, 122, 0.5);
  color: #5a3a7a;
}

.part2-link {
  text-align: center;
  margin-top: 32px;
}

/* 第２部へ(2026-09-27、gif表示からテキスト+矢印の疑似要素に変更) */
.part2-link-btn {
  display: inline-block;
  padding: 10px 28px;
  background-color: #7a4a10;
  color: #ffffcc;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border-radius: 24px;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.part2-link-btn::after {
  content: "→";
  margin-left: 8px;
}

.part2-link-btn:hover,
.part2-link-btn:focus-visible {
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.container p {
  line-height: 1.8;
  text-indent: 1em;
  margin: 14px 0;
}

/* 副題(第Ⅰ部 ラリー・モンゴリア追走記) */
.page-subtitle {
  text-align: center;
  font-weight: 700;
  color: #7a4a10;
  margin: 4px 0 20px;
}

/*
 * 章(旧・right.htmlの内容、2026-09-27に本ページへ統合)。
 * croaciasougou.html / austriatop.html と同じ形式: .container ごとに見出し(h2)+本文。
 * 見出しの番号(.num)は画像ではなく丸数字の文字。写真の回り込みは img-left/img-right(float-fix.cssと組み合わせ)。
 */
.container {
  max-width: 960px;
  margin: 0 auto 28px;
  padding: 0 4px;
  box-sizing: border-box;
}

.container::after {
  content: "";
  display: block;
  clear: both;
}

.container > h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  border-top: 2px solid #cc9933;
  padding-top: 16px;
}

.container > h2 img {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  height: auto;
  flex: 0 1 auto;
}

.container > h2 .num {
  font-size: 1.2em;
  font-weight: 700;
  color: #7a4a10;
}

.container > h2 .sub {
  display: block;
  font-size: 0.6em;
  color: #7a4a10;
  margin-top: 4px;
}

.chapter-note {
  text-align: center;
  margin: -8px 0 14px;
  font-size: 13px;
  color: #6b5a3a;
}

h3 {
  text-align: center;
  color: #7a4a10;
  margin: 24px 0 10px;
}

p img.img-left {
  float: left;
  max-width: 46%;
  margin: 4px 16px 10px 0;
  border-radius: 4px;
}

p img.img-right {
  float: right;
  max-width: 46%;
  margin: 4px 0 10px 16px;
  border-radius: 4px;
}

@media (max-width: 600px) {
  p img.img-left,
  p img.img-right {
    float: none;
    display: block;
    max-width: 100%;
    margin: 12px auto;
  }
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 10px auto;
}

.photo-row img {
  margin: 0;
}

/* 会話文(元は「」で囲われた一文だけの行) */
.container p.dialogue {
  text-indent: 0;
  margin: 10px 0;
  padding: 6px 14px;
  background-color: #fff8e0;
  border-left: 4px solid #cc9933;
  border-radius: 0 6px 6px 0;
}
