/* 注記(2026-10-26): このファイル内のscroll-margin-topは削除した。base-typography.cssのhtml{scroll-padding-top:70px}と二重に加算され、アンカー移動時に本来より余計にスクロールが止まり、前のセクションの要素が見えてしまう不具合があったため。 */
/* マルタ島の1ヶ月(maltahyousikaitei.html) 専用スタイル。旧Homepage Builder形式(背景画像・表組み・回り込み画像)から、章(section)・図(figure)の構造に作り直した。 */
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 0 10px;
  line-height: 1;
}

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

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

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

.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;
}

.link-nav small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  text-shadow: none;
}

/* 章: 読みやすい行長。回り込み画像が次の章に食い込まないよう章の終わりで解除 */
.chapter {
  max-width: 760px;
  margin: 0 auto;
  padding-top: 8px;
}

.chapter:not(.preface) {
  margin-top: 40px;
  border-top: 2px solid #cc9933;
}

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

.chapter > h2 {
  clear: both;
  margin: 22px 0 14px;
  padding: 4px 0 4px 14px;
  border-left: 5px solid #cc9933;
  font-size: 21px;
  line-height: 1.4;
  color: #7a4a10;
}

/* 見出しがロゴ画像のとき */
.chapter > h2:has(img) {
  padding: 0;
  border: 0;
  text-align: center;
  line-height: 1;
}

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

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

.separator {
  text-indent: 0;
  text-align: center;
  color: #8a6a30;
  letter-spacing: 0.2em;
}

.credit {
  text-indent: 0;
  text-align: right;
  margin: 2px 0;
  font-size: 14px;
}

/* 図 */
figure {
  margin: 18px 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;
}

/* 元ページで文章に回り込んでいた写真 */
.fig-left,
.fig-right {
  max-width: 46%;
  margin-top: 6px;
  margin-bottom: 10px;
}

.fig-left {
  float: left;
  margin-right: 20px;
  margin-left: 0;
}

.fig-right {
  float: right;
  margin-left: 20px;
  margin-right: 0;
}

@media (max-width: 600px) {
  .fig-left,
  .fig-right {
    float: none;
    max-width: 100%;
    margin: 18px auto;
  }
}

hr {
  border: none;
  border-top: 1px solid #cc9933;
  margin: 24px auto;
  max-width: 640px;
  clear: both;
}

/* 章の終わりの「▲ ナビに戻る」ボタン: 回り込み写真の下に回り込まないよう解除 */
.back-to-header {
  clear: both;
}
