:root {
  --bg: #0a0a0a;
  --bg-soft: #141414;
  --text: #f2f2f2;
  --muted: #a8a8a8;
  --line: #2c2c2c;
  --accent: #ffffff;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { opacity: 0.75; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(10, 10, 10, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 15px;
}

.brand img { border-radius: 50%; display: block; }

.site-header nav { display: flex; gap: 22px; }
.site-header nav a {
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-header nav a:hover { color: var(--text); opacity: 1; }

/* ---------- slideshow hero ---------- */
.slideshow {
  position: relative;
  height: min(88vh, 820px);
  min-height: 480px;
  overflow: hidden;
  background: #000;
}

.slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.9s ease;
}
.slide.is-active { opacity: 1; }

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.35) 0%, rgba(0,0,0,0.15) 40%,
    rgba(0,0,0,0.25) 75%, rgba(0,0,0,0.55) 100%);
}

.slide-caption {
  position: absolute;
  left: 22px;
  bottom: 20px;
  z-index: 2;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 1px 6px rgba(0,0,0,0.8);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  pointer-events: none;
}

.hero-logo {
  width: min(150px, 32vw);
  height: auto;
  border-radius: 50%;
  box-shadow: 0 4px 30px rgba(0,0,0,0.55);
}

.hero-overlay h1 {
  margin-top: 20px;
  font-size: clamp(28px, 5.4vw, 48px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.85);
}

.tagline {
  margin-top: 10px;
  font-size: clamp(14px, 2.4vw, 18px);
  letter-spacing: 0.08em;
  text-shadow: 0 1px 10px rgba(0,0,0,0.9);
}

.tagline-en {
  margin-top: 4px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.9);
}

.slide-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  background: rgba(0,0,0,0.35);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}
.slide-arrow:hover { background: rgba(0,0,0,0.6); }
.slide-arrow.prev { left: 16px; }
.slide-arrow.next { right: 16px; }

.slide-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 9px;
}
.slide-dots button {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.7);
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.slide-dots button.is-active { background: #fff; }

/* ---------- sections ---------- */
.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 64px 24px 8px;
}

.section h2 {
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
  margin-bottom: 28px;
}

.section p { max-width: 720px; }
.section p.en { color: var(--muted); margin-top: 14px; font-size: 15px; }
.note { color: var(--muted); margin-top: 18px; font-size: 14px; }

/* ---------- books ---------- */
.book-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 28px;
  max-width: 720px;
}

.book-card h3 { font-size: 20px; letter-spacing: 0.06em; margin-bottom: 8px; }

.button {
  display: inline-block;
  margin-top: 14px;
  padding: 9px 22px;
  border: 1px solid var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.button:hover { background: var(--accent); color: #000; opacity: 1; }

/* ---------- footer ---------- */
footer {
  margin-top: 88px;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.06em;
}

@media (max-width: 560px) {
  .site-header { padding: 10px 16px; }
  .site-header nav { gap: 14px; }
  .slideshow { min-height: 420px; }
  .slide-arrow { display: none; }
  .section { padding: 48px 16px 4px; }
}
