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

:root {
  --red: #C8271A;
  --red-light: #E54030;
  --red-pale: #F5907A;
  --deep: #0D0806;
  --ink: #1A0F0B;
  --bone: #F5EEE6;
  --mist: #EDE4D8;
  --warm: #D4C4B0;
  --cream: #FAF6F0;
  --gold: #C8A050;
}

html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--bone);
  font-family: 'Noto Serif JP', 'Georgia', serif;
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(13,8,6,0.95) 0%, transparent 100%);
  backdrop-filter: blur(4px);
}
.nav-logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300;
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--bone);
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300;
  font-size: 0.65rem;
  letter-spacing: 0.3em;
  color: rgba(245,238,230,0.6);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--red-light); }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 30%, rgba(200,39,26,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 70% at 15% 70%, rgba(200,39,26,0.06) 0%, transparent 60%),
    #0D0806;
  z-index: 0;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 860px; width: 100%;
}
.hero-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100; font-size: 0.65rem;
  letter-spacing: 0.5em; color: var(--red-light);
  text-transform: uppercase; margin-bottom: 28px;
  opacity: 0; animation: fadeUp 1s ease 0.3s forwards;
}
.hero-title-ja {
  font-size: clamp(2.2rem, 7vw, 5rem);
  font-weight: 300;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--bone);
  opacity: 0; animation: fadeUp 1.2s ease 0.6s forwards;
  text-shadow: 0 0 60px rgba(200,39,26,0.2);
}
.hero-title-ja strong { color: var(--red-light); font-weight: 600; }
.hero-divider {
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 28px auto;
  opacity: 0; animation: fadeIn 1s ease 0.9s forwards;
}
.hero-subtitle {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem; font-weight: 300;
  color: var(--mist); line-height: 1.8;
  letter-spacing: 0.05em;
  opacity: 0; animation: fadeUp 1s ease 1.0s forwards;
}
.hero-byline {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 0.72rem;
  letter-spacing: 0.3em; color: var(--gold);
  text-transform: uppercase; margin-top: 20px;
  opacity: 0; animation: fadeUp 1s ease 1.2s forwards;
}
.hero-cta {
  margin-top: 44px;
  display: flex; gap: 18px;
  justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s ease 1.4s forwards;
}
.hero-books {
  display: flex; gap: 24px;
  justify-content: center; align-items: flex-end;
  margin-top: 48px;
  opacity: 0; animation: fadeUp 1.2s ease 1.7s forwards;
}
.hero-books img {
  max-height: 260px;
  box-shadow: 0 20px 56px rgba(0,0,0,0.8), 0 0 40px rgba(200,39,26,0.15);
  border: 1px solid rgba(200,39,26,0.15);
  transition: transform 0.4s ease;
}
.hero-books img:hover { transform: translateY(-6px) scale(1.02); }
.hero-books .book-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.3em;
  color: rgba(200,39,26,0.5); text-transform: uppercase;
  text-align: center; margin-top: 10px;
}
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  opacity: 0; animation: fadeIn 1s ease 2.2s forwards;
}
.scroll-hint span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.4em;
  color: rgba(245,238,230,0.3); text-transform: uppercase;
}
.scroll-line {
  width: 1px; height: 32px;
  background: linear-gradient(180deg, var(--red), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

/* BUTTONS */
.btn-primary {
  display: inline-block; padding: 13px 36px;
  background: var(--red); color: var(--bone);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--red);
  transition: all 0.3s ease; cursor: pointer;
}
.btn-primary:hover {
  background: var(--red-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,39,26,0.5);
}
.btn-ghost {
  display: inline-block; padding: 13px 36px;
  background: transparent; color: var(--mist);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 300; font-size: 0.7rem;
  letter-spacing: 0.3em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid rgba(245,238,230,0.25);
  transition: all 0.3s ease;
}
.btn-ghost:hover { border-color: var(--red); color: var(--red-pale); }

/* SECTIONS */
section { padding: 96px 24px; }
.container { max-width: 1000px; margin: 0 auto; }
.container-narrow { max-width: 720px; margin: 0 auto; }
.section-label {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100; font-size: 0.62rem;
  letter-spacing: 0.5em; color: var(--red-light);
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.8rem, 4.5vw, 2.8rem);
  font-weight: 300; letter-spacing: 0.05em;
  line-height: 1.5; color: var(--bone); margin-bottom: 24px;
}
.section-title em { font-style: italic; color: var(--red-light); }
.section-rule {
  width: 50px; height: 1px;
  background: var(--red); opacity: 0.6;
  margin: 0 0 44px 0;
}

/* ABOUT */
#about {
  background: var(--deep); position: relative;
}
#about::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.book-intro-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: start; margin-top: 52px;
}
.book-intro-text {
  font-size: 1.05rem; font-weight: 300;
  line-height: 1.9; color: var(--mist);
  font-family: 'Noto Sans JP', sans-serif;
}
.book-intro-text p + p { margin-top: 16px; }
.book-intro-text strong { color: var(--red-light); font-weight: 400; }
.book-meta {
  border-left: 1px solid rgba(200,39,26,0.3);
  padding-left: 36px;
}
.book-meta-item { margin-bottom: 24px; }
.book-meta-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.57rem; letter-spacing: 0.4em;
  color: var(--red-light); text-transform: uppercase; margin-bottom: 6px;
}
.book-meta-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem; font-weight: 300;
  color: var(--bone); line-height: 1.6;
}
.isbn-badge {
  display: inline-block; padding: 6px 12px;
  border: 1px solid rgba(200,39,26,0.35);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.12em;
  color: var(--gold); margin-top: 6px;
}

/* BOOK COVERS */
.book-covers-row {
  display: flex; gap: 36px;
  align-items: flex-start; justify-content: center;
  margin-top: 64px; flex-wrap: wrap;
}
.book-cover-item { text-align: center; }
.book-cover-item img {
  max-height: 400px;
  box-shadow: 0 20px 52px rgba(0,0,0,0.7), 0 0 28px rgba(200,39,26,0.1);
  border: 1px solid rgba(200,39,26,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.book-cover-item img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 28px 64px rgba(0,0,0,0.75), 0 0 36px rgba(200,39,26,0.25);
}
.book-cover-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.55rem; letter-spacing: 0.35em;
  color: var(--red-light); text-transform: uppercase; margin-top: 12px;
}

/* QUOTE */
.quote-block {
  text-align: center; padding: 72px 24px;
  background: linear-gradient(180deg, var(--deep) 0%, rgba(200,39,26,0.05) 50%, var(--deep) 100%);
}
.quote-mark {
  font-size: 5rem; line-height: 0.5;
  color: var(--red); opacity: 0.2;
  font-family: Georgia, serif; margin-bottom: 16px;
}
.quote-text {
  font-size: clamp(1.1rem, 2.8vw, 1.7rem);
  font-weight: 300; line-height: 1.9;
  color: var(--bone); font-family: 'Noto Serif JP', serif;
  max-width: 700px; margin: 0 auto 20px;
  letter-spacing: 0.05em;
}
.quote-source {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.65rem; letter-spacing: 0.35em;
  color: var(--red-light); text-transform: uppercase;
}

/* CHAPTERS */
#chapters { background: var(--ink); }
.chapters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1px; margin-top: 52px;
  border: 1px solid rgba(200,39,26,0.1);
}
.chapter-card {
  padding: 30px 28px;
  border: 1px solid rgba(200,39,26,0.07);
  background: rgba(13,8,6,0.6);
  transition: all 0.35s ease; position: relative; overflow: hidden;
}
.chapter-card::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 2px; height: 0; background: var(--red);
  transition: height 0.4s ease;
}
.chapter-card:hover::before { height: 100%; }
.chapter-card:hover { background: rgba(200,39,26,0.05); }
.chapter-num {
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 100; font-size: 0.56rem;
  letter-spacing: 0.4em; color: var(--red-light);
  text-transform: uppercase; margin-bottom: 10px;
}
.chapter-title {
  font-size: 1rem; font-weight: 400;
  line-height: 1.6; color: var(--bone); margin-bottom: 10px;
  font-family: 'Noto Serif JP', serif;
}
.chapter-desc {
  font-size: 0.82rem; font-weight: 300;
  line-height: 1.75; color: rgba(245,238,230,0.5);
  font-family: 'Noto Sans JP', sans-serif;
}

/* AUTHOR */
#author {
  background: linear-gradient(180deg, var(--ink) 0%, var(--deep) 100%);
  position: relative;
}
#author::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.author-grid {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 64px; align-items: start; margin-top: 52px;
}
.author-photo {
  width: 100%; max-width: 280px; display: block;
  filter: grayscale(10%) contrast(1.05);
  border: 1px solid rgba(200,39,26,0.2);
  box-shadow: 0 20px 48px rgba(0,0,0,0.55), 0 0 28px rgba(200,39,26,0.08);
  transition: filter 0.4s, transform 0.4s;
  border-radius: 2px;
}
.author-photo:hover {
  filter: grayscale(0%) contrast(1.08);
  transform: scale(1.01);
}
.author-photo-caption {
  margin-top: 12px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.58rem; letter-spacing: 0.35em;
  color: var(--red-light); text-transform: uppercase; text-align: center;
}
.author-credentials {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 20px; margin-bottom: 24px;
}
.credential-tag {
  padding: 4px 12px;
  border: 1px solid rgba(200,39,26,0.3);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.56rem; letter-spacing: 0.2em;
  color: var(--gold); text-transform: uppercase;
}
.author-bio {
  font-size: 0.98rem; font-weight: 300;
  line-height: 1.95; color: var(--mist);
  font-family: 'Noto Sans JP', sans-serif;
}
.author-bio p + p { margin-top: 16px; }
.author-philosophy {
  margin-top: 36px; padding: 28px;
  border-left: 2px solid var(--red);
  background: rgba(200,39,26,0.04);
}
.author-philosophy p {
  font-size: 0.95rem; font-style: italic;
  font-weight: 300; line-height: 1.85;
  color: var(--bone); font-family: 'Noto Serif JP', serif;
}

/* CONTACT */
#contact {
  background: var(--deep); padding: 100px 24px;
  position: relative;
}
#contact::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
}
.contact-sub {
  font-size: 1rem; font-weight: 300; font-style: italic;
  color: var(--mist); max-width: 560px;
  margin: 0 auto 52px; line-height: 1.8;
  text-align: center; font-family: 'Noto Serif JP', serif;
}
.contact-layout {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 64px; align-items: start;
}
.contact-item { margin-bottom: 28px; }
.contact-item-label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.57rem; letter-spacing: 0.4em;
  color: var(--red-light); text-transform: uppercase; margin-bottom: 7px;
}
.contact-item-value {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem; font-weight: 300;
  color: var(--bone); line-height: 1.6;
}
.contact-item-value a {
  color: var(--red-pale); text-decoration: none; transition: color 0.3s;
}
.contact-item-value a:hover { color: var(--bone); }
.contact-form-wrap {
  border: 1px solid rgba(200,39,26,0.22);
  padding: 40px; background: rgba(200,39,26,0.03);
}
.form-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.15rem; font-weight: 300;
  font-style: italic; color: var(--red-light); margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.56rem; letter-spacing: 0.35em;
  color: var(--red-light); text-transform: uppercase; margin-bottom: 6px;
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: rgba(245,238,230,0.04);
  border: 1px solid rgba(200,39,26,0.22);
  color: var(--bone);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.92rem; font-weight: 300;
  padding: 10px 14px; outline: none;
  transition: border-color 0.3s, background 0.3s;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.form-input::placeholder, .form-textarea::placeholder {
  color: rgba(245,238,230,0.18); font-style: italic;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--red); background: rgba(200,39,26,0.06);
}
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23C8271A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px; cursor: pointer;
}
.form-select option { background: #1A0F0B; color: var(--bone); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.7; }
.form-submit {
  width: 100%; padding: 14px;
  background: var(--red); border: none;
  color: var(--bone);
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 400; font-size: 0.7rem;
  letter-spacing: 0.35em; text-transform: uppercase;
  cursor: pointer; transition: all 0.3s ease; margin-top: 4px;
}
.form-submit:hover {
  background: var(--red-light);
  box-shadow: 0 6px 22px rgba(200,39,26,0.45);
}
.form-success {
  display: none; text-align: center; padding: 40px 24px;
}
.form-success-icon {
  font-size: 2rem; color: var(--red); margin-bottom: 16px;
}
.form-success-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 1.35rem; font-weight: 300;
  font-style: italic; color: var(--bone); margin-bottom: 10px;
}
.form-success-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.85rem; font-weight: 300;
  color: rgba(245,238,230,0.55); line-height: 1.7;
}

/* FOOTER */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(200,39,26,0.08);
  padding: 32px 48px;
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-weight: 300; font-size: 0.8rem;
  letter-spacing: 0.15em; color: var(--bone);
}
.footer-copy {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 0.56rem; letter-spacing: 0.2em;
  color: rgba(245,238,230,0.25); text-transform: uppercase;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; } 50% { opacity: 1; }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* RESPONSIVE */
@media (max-width: 800px) {
  nav { padding: 14px 18px; }
  .nav-links { display: none; }
  .book-intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .author-grid { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form-wrap { padding: 24px 18px; }
  .hero-books img { max-height: 180px; }
  .book-cover-item img { max-height: 300px; }
  footer { flex-direction: column; text-align: center; padding: 24px; }
  .hero-title-ja { white-space: normal; }
}