@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;0,700;1,300;1,400;1,600&family=IM+Fell+English:ital@0;1&display=swap');

:root {
  --burgundy: #6b1a2a;
  --deep-burgundy: #3d0a15;
  --gold: #c9a84c;
  --gold-light: #e8c96a;
  --cream: #faf6ef;
  --cream-dark: #f0e8d6;
  --ink: #1a1208;
  --text: #2c1a10;
  --muted: #8a6a5a;
  --border: rgba(201, 168, 76, 0.4);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--cream);
  color: var(--text);
  font-family: 'Cormorant Garamond', '游明朝', 'Yu Mincho', 'YuMincho', serif;
  font-size: 16px;
  line-height: 1.8;
  min-height: 100vh;
}

/* ── HEADER ── */
header {
  background: var(--deep-burgundy);
  border-bottom: 2px solid var(--gold);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-wrap img {
  height: 52px;
  filter: brightness(0) invert(1);
}

.logo-tagline {
  color: var(--gold-light);
  font-size: 0.78rem;
  font-style: italic;
  letter-spacing: 0.05em;
  opacity: 0.85;
  line-height: 1.4;
}

nav {
  display: flex;
  align-items: center;
  gap: 0;
}

nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  padding: 8px 18px;
  border-left: 1px solid rgba(201,168,76,0.3);
  transition: all 0.25s ease;
  position: relative;
}

nav a:first-child { border-left: none; }

nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; right: 50%;
  height: 2px;
  background: var(--gold);
  transition: left 0.25s, right 0.25s;
}

nav a:hover {
  color: var(--gold-light);
}
nav a:hover::after {
  left: 18px; right: 18px;
}

/* ── HERO ── */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  background: var(--deep-burgundy);
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(107,26,42,0.6) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 30%, rgba(201,168,76,0.12) 0%, transparent 70%),
    linear-gradient(135deg, var(--deep-burgundy) 0%, #1a0510 60%, #0d0208 100%);
}

/* Decorative stars */
.hero-bg::before {
  content: '✦  ✦  ✦  ✦  ✦';
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 1.5em;
  opacity: 0.5;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(201,168,76,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.4;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text {
  flex: 1;
  padding-right: 40px;
}

.hero-label {
  display: inline-block;
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
  padding: 5px 16px;
  margin-bottom: 24px;
  opacity: 0.9;
}

.hero-title {
  color: var(--cream);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 300;
  line-height: 1.2;
  letter-spacing: 0.04em;
  margin-bottom: 16px;
}

.hero-title em {
  color: var(--gold-light);
  font-style: italic;
}

.hero-subtitle {
  color: rgba(250,246,239,0.65);
  font-size: 1.0rem;
  font-style: italic;
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: 12px 28px;
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
}

.hero-cta:hover {
  background: var(--gold);
  color: var(--deep-burgundy);
}

.hero-ornament {
  position: relative;
  flex: 0 0 340px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-ornament .book-showcase {
  width: 200px;
  transform: perspective(800px) rotateY(-8deg);
  filter: drop-shadow(-20px 20px 40px rgba(0,0,0,0.7));
  transition: transform 0.4s ease;
}

.hero-ornament:hover .book-showcase {
  transform: perspective(800px) rotateY(-2deg) scale(1.03);
}

/* Decorative ring */
.hero-ring {
  position: absolute;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: spinRing 30s linear infinite;
}
.hero-ring::before {
  content: '';
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px dashed rgba(201,168,76,0.15);
  border-radius: 50%;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes spinRing {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ── ORNAMENTAL DIVIDER ── */
.ornament-divider {
  text-align: center;
  margin: 48px 0 40px;
  position: relative;
}

.ornament-divider::before,
.ornament-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 80px);
  height: 1px;
  background: linear-gradient(to right, transparent, var(--gold));
}
.ornament-divider::before { left: 0; }
.ornament-divider::after {
  right: 0;
  background: linear-gradient(to left, transparent, var(--gold));
}

.ornament-divider span {
  color: var(--gold);
  font-size: 1.2rem;
  letter-spacing: 0.3em;
  padding: 0 16px;
}

/* ── MAIN CONTAINER ── */
.main-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px 80px;
}

/* ── SECTION TITLE ── */
.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--burgundy);
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 12px auto 0;
}

.section-title .en {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

/* ── BOOK GRID ── */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 36px;
}

.book-card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  position: relative;
}

.book-card:hover {
  transform: translateY(-6px);
}

.book-cover-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3/4;
  overflow: hidden;
  box-shadow: 4px 8px 24px rgba(61,10,21,0.3), 0 2px 6px rgba(0,0,0,0.2);
  border: 1px solid rgba(201,168,76,0.2);
}

.book-cover-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover-wrap img {
  transform: scale(1.04);
}

.book-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, rgba(61,10,21,0.5));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-card:hover .book-cover-wrap::after {
  opacity: 1;
}

.book-info {
  margin-top: 14px;
  text-align: center;
  padding: 0 4px;
}

.book-info .book-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: var(--deep-burgundy);
  letter-spacing: 0.04em;
  line-height: 1.4;
  margin-bottom: 4px;
}

.book-info .book-author {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  letter-spacing: 0.04em;
}

.book-info .book-badge {
  display: inline-block;
  margin-top: 6px;
  background: var(--burgundy);
  color: var(--gold-light);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  padding: 2px 10px;
  text-transform: uppercase;
}

/* ── SHOP BANNER ── */
.shop-banner {
  margin: 70px 0 0;
  background: linear-gradient(135deg, var(--deep-burgundy) 0%, var(--burgundy) 100%);
  border: 1px solid var(--gold);
  padding: 48px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  position: relative;
  overflow: hidden;
}

.shop-banner::before {
  content: '✦';
  position: absolute;
  font-size: 200px;
  color: rgba(201,168,76,0.06);
  right: 60px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
}

.shop-banner-text h3 {
  color: var(--gold-light);
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.shop-banner-text p {
  color: rgba(250,246,239,0.7);
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 0.06em;
}

.shop-banner-btn {
  flex-shrink: 0;
  display: inline-block;
  background: var(--gold);
  color: var(--deep-burgundy);
  text-decoration: none;
  padding: 14px 36px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.shop-banner-btn:hover {
  background: var(--gold-light);
  transform: scale(1.03);
}

/* ── FOOTER ── */
footer {
  background: var(--deep-burgundy);
  border-top: 1px solid var(--gold);
  padding: 48px 30px 32px;
  text-align: center;
}

.footer-logo {
  height: 48px;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
  opacity: 0.8;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.footer-nav a {
  color: rgba(250,246,239,0.6);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: var(--gold-light);
}

.footer-copyright {
  color: rgba(250,246,239,0.3);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ── BOOK DETAIL PAGE ── */
.page-hero {
  background: var(--deep-burgundy);
  padding: 36px 30px 28px;
  border-bottom: 1px solid var(--gold);
  text-align: center;
}

.breadcrumb {
  color: rgba(201,168,76,0.7);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}

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

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

.page-hero h1 {
  color: var(--cream);
  font-size: 1.7rem;
  font-weight: 300;
  letter-spacing: 0.1em;
}

/* Book detail layout */
.book-detail {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 30px 80px;
}

.book-detail-header {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 48px;
}

.book-detail-cover {
  flex: 0 0 220px;
}

.book-detail-cover img {
  width: 100%;
  box-shadow: 6px 12px 36px rgba(61,10,21,0.4);
  border: 1px solid var(--border);
}

.book-detail-meta {
  flex: 1;
}

.book-detail-meta h2 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--deep-burgundy);
  letter-spacing: 0.06em;
  line-height: 1.3;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 16px;
}

.book-meta-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.9rem;
}

.book-meta-table td {
  padding: 6px 12px 6px 0;
  border-bottom: 1px dotted rgba(201,168,76,0.3);
  vertical-align: top;
}

.book-meta-table td:first-child {
  color: var(--muted);
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  white-space: nowrap;
  padding-right: 20px;
}

.catchcopy {
  background: linear-gradient(135deg, rgba(107,26,42,0.06), rgba(201,168,76,0.08));
  border-left: 3px solid var(--gold);
  padding: 20px 24px;
  margin: 28px 0;
  font-style: italic;
  font-size: 1.0rem;
  line-height: 1.8;
  color: var(--deep-burgundy);
  letter-spacing: 0.04em;
}

.book-story h3 {
  font-size: 1.0rem;
  color: var(--burgundy);
  letter-spacing: 0.1em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
  margin: 32px 0 16px;
}

.book-story p {
  margin-bottom: 1.1em;
  text-indent: 1em;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--text);
}

.review-box {
  background: rgba(61,10,21,0.04);
  border: 1px solid var(--border);
  padding: 20px 24px;
  margin: 28px 0;
  position: relative;
}

.review-box::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 20px;
  font-size: 3rem;
  color: var(--gold);
  line-height: 1;
  font-family: Georgia, serif;
}

.review-box p {
  font-style: italic;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--text);
  line-height: 1.7;
}

.review-box .review-source {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  font-style: normal;
}

.author-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.author-section h3 {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.author-section h4 {
  color: var(--deep-burgundy);
  font-size: 1.1rem;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}

.author-section p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--muted);
}

/* ── OFFICE PAGE ── */
.office-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  background: var(--deep-burgundy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.office-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.office-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  transform: scale(1.05);
  filter: saturate(0.6) sepia(0.3);
}

.office-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(61,10,21,0.4) 0%, rgba(61,10,21,0.7) 100%);
}

.office-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--cream);
}

.office-hero-content h1 {
  font-size: 2.6rem;
  font-weight: 300;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}

.office-hero-content .sub {
  color: var(--gold-light);
  font-style: italic;
  font-size: 1.0rem;
  letter-spacing: 0.1em;
}

.office-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 30px 80px;
}

.office-intro {
  text-align: center;
  margin-bottom: 56px;
}

.office-intro p {
  font-size: 1.05rem;
  line-height: 2.0;
  color: var(--text);
  letter-spacing: 0.04em;
}

.office-ballet-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 48px 0;
  border: 1px solid var(--gold);
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px 16px;
  background: linear-gradient(to top, rgba(61,10,21,0.85), transparent);
  color: var(--cream);
  font-size: 0.82rem;
  font-style: italic;
  letter-spacing: 0.06em;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
}

.office-info-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 28px;
  margin: 40px 0;
  font-size: 0.95rem;
}

.office-info-grid dt {
  color: var(--gold);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-top: 3px;
  font-weight: 600;
}

.office-info-grid dd {
  color: var(--text);
  padding-bottom: 14px;
  border-bottom: 1px dotted var(--border);
  line-height: 1.7;
}

/* ── SHOP PAGE ── */
.shop-content {
  max-width: 860px;
  margin: 0 auto;
  padding: 60px 30px 80px;
}

.shop-intro-text {
  text-align: center;
  font-size: 1.05rem;
  line-height: 2.0;
  color: var(--text);
  margin-bottom: 48px;
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
}

.shop-item {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shop-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(61,10,21,0.2);
}

.shop-item-img {
  aspect-ratio: 3/4;
  overflow: hidden;
}

.shop-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.shop-item:hover .shop-item-img img {
  transform: scale(1.04);
}

.shop-item-info {
  padding: 16px;
  background: white;
  border-top: 1px solid var(--border);
  flex: 1;
}

.shop-item-info .title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--deep-burgundy);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.shop-item-info .author {
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
  margin-bottom: 8px;
}

.shop-item-info .price {
  font-size: 0.9rem;
  color: var(--burgundy);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.shop-item-info .price span {
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: normal;
}

/* ── ANIMATION ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in {
  animation: fadeInUp 0.7s ease both;
}

.fade-in-delay-1 { animation-delay: 0.1s; }
.fade-in-delay-2 { animation-delay: 0.2s; }
.fade-in-delay-3 { animation-delay: 0.3s; }
.fade-in-delay-4 { animation-delay: 0.4s; }

/* ── BACK BUTTON ── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  padding: 8px 18px;
  margin-top: 48px;
  transition: all 0.25s ease;
}

.back-link:hover {
  background: var(--gold);
  color: var(--deep-burgundy);
  border-color: var(--gold);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 20px;
  }
  nav { flex-wrap: wrap; gap: 0; }
  nav a { font-size: 0.8rem; padding: 6px 12px; }
  
  .hero { height: auto; padding: 60px 0; }
  .hero-content { flex-direction: column; text-align: center; gap: 40px; }
  .hero-text { padding-right: 0; }
  .hero-ornament { flex: none; }
  
  .books-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  
  .book-detail-header { flex-direction: column; }
  .book-detail-cover { flex: none; width: 180px; align-self: center; }
  
  .office-ballet-gallery { grid-template-columns: 1fr; }
  
  .shop-banner { flex-direction: column; text-align: center; }
}
