/* 注記(2026-10-26): このファイル内のscroll-margin-topは削除した。base-typography.cssのhtml{scroll-padding-top:70px}と二重に加算され、アンカー移動時に本来より余計にスクロールが止まり、前のセクションの要素が見えてしまう不具合があったため。 */
/* 旅は道連れ 恥はかきすて(iseizumo.html: 伊勢・志摩・松阪を統合) 専用スタイル。サイトの基本デザイン(方針2-11/2-12/2-17)に統一。 */
body {
  background-color: #0b0231;
  color: #3b2412;
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
}

/* 方針2-12: body直下は div.page-center */
.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);
}

.illustration {
  text-align: center;
  margin: 20px 0;
}

/* 方針2-17/2-20: display:block の img は必ず margin auto を併記 */
.illustration img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
  border-radius: 4px;
}

/* ナビ: 他の旅・神話の記事ページと同じ travel-hub.css の .link-nav ボタン形式(方針2-27) */
.link-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 20px auto 32px;
}

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

section {
  max-width: 760px;
  margin: 0 auto 32px;
}

section::after {
  content: "";
  display: block;
  clear: both;
}

/* 見出しのロゴ画像は元の大きさのまま(章番号の文字の隣に置く) */
h2 img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 0;
  vertical-align: middle;
}

h2 .num {
  margin-right: 10px;
  font-weight: 700;
  color: #7a4a10;
}

/* ページの表題ロゴ(旅の恥は掻き捨て/伊勢・志摩・松阪): 中央に置き、縦線は付けない */
h2.logo-title {
  margin: 8px 0 12px;
  padding: 0;
  border: 0;
  text-align: center;
  line-height: 1;
}

/* ページ先頭のタイトル画像(3枚を横に並べる) */
.page-title {
  text-align: center;
  margin-bottom: 16px;
}

.page-title .illustration {
  margin: 8px 0;
}

.page-title .illustration img {
  display: inline-block;
  vertical-align: middle;
  margin: 4px 6px;
}

/* 写真と説明(ひとつの図として置く写真・写真の並び) */
figure {
  margin: 18px auto;
  text-align: center;
}

figure img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

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

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

.photo-row img {
  margin: 0;
}

h2 {
  margin: 0 0 14px;
  padding: 4px 0 4px 14px;
  border-left: 6px solid #cc9933;
  color: #7a4a10;
  line-height: 1.4;
}

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

/* 文中の写真(元ページで本文に挿し込まれていたもの): 文章に回り込ませる。段落の最初にある写真(.img-left)は左、文章の途中にある写真は右 */
p img {
  float: right;
  max-width: 46%;
  margin: 4px 0 10px 16px;
  border-radius: 4px;
}

p img.img-left {
  float: left;
  margin: 4px 16px 10px 0;
}

/* 右寄せ写真の段落は、直前の左寄せ写真の下から始める(先頭の1文字だけが横に取り残されるのを防ぐ) */
p.clear-left {
  clear: left;
}

/* 右寄せ写真が横に2枚並んで文章が細くなる箇所は、2枚目を1枚目の下に積む */
p img.stack-right {
  float: right;
  clear: right;
  margin: 4px 0 10px 16px;
}

/* 左寄せ写真が横に並んで文章が細くなる箇所は、2枚目を1枚目の下に積む */
p img.stack-left {
  float: left;
  clear: left;
  margin: 4px 16px 10px 0;
}

/* 直前の左寄せ写真に押し出されて文章の幅が細くなる箇所は、写真を右寄せにする */
p img.img-right {
  float: right;
  margin: 4px 0 10px 16px;
}

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

/* 冒頭の説明文も、記事本文と同じ幅760pxの中央カラムにそろえる */
.page-center > p {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

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

/* 章末の「▲ ナビに戻る」ボタンは IzumoHonbun8nichi2.js が追加する */
.back-to-header {
  clear: both;
}
