:root {
  --bg: #1A2540;
  --accent: #E6E8FF;
  --card: #172036;
  --card-border: #58618C;
  --text: #FFFFFF;
  --max: 900px;
  font-family: "Merriweather", "Noto Serif JP", serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0
}

/* ---------- 共通レイアウト ---------- */
body {
  background: var(--bg);
  color: var(--text);
  padding: 40px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
}

h1 {
  font-size: 2.4rem;
  margin-bottom: 48px;
  text-align: center;
}

/* ---------- パンくず ---------- */
nav.breadcrumb {
  font-size: .85rem;
  margin-bottom: 24px;
  width: 100%;
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px;
  text-align: center;
}

nav.breadcrumb ol {
  list-style: none;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

nav.breadcrumb li {
  display: flex;
  align-items: center;
}

nav.breadcrumb li::after {
  content: "›";
  margin-left: 6px;
  color: var(--accent)
}

nav.breadcrumb li:last-child::after {
  content: ""
}

nav.breadcrumb a {
  color: var(--accent);
  text-decoration: none;
}

nav.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---------- トップのレベルカード ---------- */
.levels {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  max-width: var(--max);
}

a.card {
  flex: 1 1 220px;
  max-width: 260px;
  padding: 32px 16px;
  background: var(--card);
  border: 2px solid var(--card-border);
  border-radius: 14px;
  text-align: center;
  color: var(--accent);
  text-decoration: none;
  transition: transform .2s, background .2s;
}

a.card:hover {
  transform: translateY(-6px);
  background: #1E2A47;
}

.card h2 {
  font-size: 1.6rem;
  margin-bottom: 8px;
  color: var(--text)
}

.card p {
  font-size: .95rem;
  opacity: .85;
}

footer {
  margin-top: auto;
  padding: 32px 0 12px;
  font-size: .8rem;
  opacity: .6;
  text-align: center;
  width: 100%;
}

/* ---------- 物語ページ ---------- */
main {
  max-width: var(--max);
  margin: auto;
  display: block;
  padding: 0 16px;
}

div.pair {
  margin-bottom: 28px;
}

/* 英日セット間の余白 */
p.en {
  font-style: italic;
  color: var(--accent);
  margin-bottom: 6px;
  /* 英文と和訳の間 */
  line-height: 1.7;
}

p.jp {
  line-height: 1.8;
}

.back {
  display: inline-block;
  margin: 32px 0;
  color: var(--accent);
  text-decoration: none;
}

.caption {
  margin-top: 48px;
  font-size: .8rem;
  opacity: .6;
  text-align: center;
}

/* ---------- ストーリータイトルのリンク色 ---------- */
a.story {
  color: var(--accent);
  /* 平常時：ラベンダー */
  text-decoration: none;
  transition: color .2s;
}

a.story:visited {
  color: #BDB5FF;
  /* 訪問済み：少し淡いラベンダー */
}

a.story:hover {
  color: #FFFFFF;
  /* ホバー：白で強調 */
  text-decoration: underline;
}