:root {
  --ink: #1a1410;
  --paper: #faf8f5;
  --accent: #8b3a2a;
  --accent2: #c9a96e;
  --mid: #6b6056;
  --light: #e8e3dc;
  --nav-h: 64px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
}

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(250,248,245,0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--light);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300; font-style: italic;
  letter-spacing: 0.08em; color: var(--ink); text-decoration: none;
}
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--mid); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--accent); }

/* ===== PAGE WRAPPER ===== */
.page-main {
  margin-top: var(--nav-h);
  min-height: calc(100vh - var(--nav-h));
  padding: 72px 80px 100px;
}

/* ===== SECTION HEADER ===== */
.section-header {
  display: flex; align-items: baseline; gap: 20px; margin-bottom: 56px;
  padding-bottom: 20px; border-bottom: 1px solid var(--light);
}
.section-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem; font-weight: 300; font-style: italic;
  color: var(--ink);
}
.section-jp {
  font-size: 0.8rem; letter-spacing: 0.2em; color: var(--mid);
}

/* ===== FOOTER ===== */
footer {
  text-align: center; padding: 40px;
  border-top: 1px solid var(--light);
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem; letter-spacing: 0.2em; color: var(--mid);
  font-style: italic;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(26,20,16,0.96);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img-wrap {
  max-width: 88vw; max-height: 88vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-img-wrap img {
  max-width: 100%; max-height: 88vh; object-fit: contain;
  display: block;
}
.lightbox-close {
  position: absolute; top: 20px; right: 28px;
  color: var(--paper); font-size: 2rem; cursor: pointer;
  background: none; border: none;
  font-family: 'Cormorant Garamond', serif; line-height: 1;
}
.lightbox-prev, .lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  color: var(--paper); font-size: 3rem; cursor: pointer;
  background: none; border: none;
  font-family: 'Cormorant Garamond', serif; opacity: 0.5;
  transition: opacity 0.2s; line-height: 1;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { opacity: 1; }
.lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: rgba(250,248,245,0.5); font-size: 0.9rem; letter-spacing: 0.2em;
}

/* ===== MANGA MODAL ===== */
.manga-modal {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: rgba(26,20,16,0.97);
  flex-direction: column;
}
.manga-modal.open { display: flex; }
.manga-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px;
  border-bottom: 1px solid rgba(250,248,245,0.1);
  flex-shrink: 0;
}
.manga-modal-title {
  font-family: 'Cormorant Garamond', serif; font-style: italic;
  color: var(--paper); font-size: 1.1rem; letter-spacing: 0.1em;
}
.manga-modal-close {
  color: var(--paper); font-size: 1.8rem; cursor: pointer;
  background: none; border: none;
  font-family: 'Cormorant Garamond', serif; line-height: 1; opacity: 0.7;
  transition: opacity 0.2s;
}
.manga-modal-close:hover { opacity: 1; }
.manga-modal-body {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center;
  padding: 32px 20px 60px;
  gap: 3px;
}
.manga-modal-body img {
  width: 100%; max-width: 720px; display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 0.82rem; }
  .page-main { padding: 48px 24px 80px; }
}
@media (max-width: 600px) {
  .nav-links { gap: 12px; }
  .nav-links a { letter-spacing: 0.05em; }
}
