/* 注記(2026-10-26): このファイル内のscroll-margin-topは削除した。base-typography.cssのhtml{scroll-padding-top:70px}と二重に加算され、アンカー移動時に本来より余計にスクロールが止まり、前のセクションの要素が見えてしまう不具合があったため。 */
/* 想い出・てんこ盛り(omoide01.html) 専用スタイル。topc2mozaemonsekigun.css等と同じ基本デザイン。 */
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);
}

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

.page-center > p:first-of-type {
  text-align: center;
}

/* ナビ(他ページと同じ .link-nav 白い角丸ボタン形式) */
.link-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 10px;
  max-width: 760px;
  margin: 16px auto 24px;
}

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

section > p,
section > p.dialogue,
section > p.credit,
section > h2,
section > h3,
section > ul {
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

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

h3 {
  text-align: center;
  color: #7a4a10;
  font-size: 1.05em;
  margin: 20px 0 14px;
}

.num {
  font-size: 1.1em;
  font-weight: 700;
  color: #cc9933;
  margin-right: 6px;
}

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

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

p.credit {
  text-indent: 0;
  text-align: center;
  font-size: 13px;
  color: #6b5a3a;
  margin: 4px 0 14px;
}

p.emphasis {
  font-size: 1.15em;
  color: #990000;
}

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

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

.illustration img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.photo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  margin: 20px 0;
}

.photo-row figure {
  margin: 0;
}

.photo-row img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

.photo-row figcaption {
  text-align: center;
  font-size: 13px;
  color: #6b5a3a;
  margin-top: 4px;
}

.castaway-list {
  line-height: 1.8;
  margin: 14px 0;
  padding-left: 1.6em;
}

.castaway-list li {
  margin: 4px 0;
}

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