/* ============================================================
   COMMON STYLES — Kaori Nakajima Fan Site
   全ページ共通スタイル
============================================================ */

/* --- Google Fonts は各HTMLで読み込む --- */

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

:root {
  --gold:        #c9a96e;
  --gold-light:  #e8d5b0;
  --gold-dark:   #a07840;
  --rose:        #e8c8c0;
  --champagne:   #f7f1e8;
  --cream:       #fdfaf5;
  --white:       #ffffff;
  --text-dark:   #2c2420;
  --text-mid:    #5a4a42;
  --text-light:  #9a8880;
  --border:      rgba(201,169,110,0.25);
  --shadow:      0 8px 40px rgba(44,36,32,0.10);
  --shadow-card: 0 4px 24px rgba(44,36,32,0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif JP', serif;
  background: var(--cream);
  color: var(--text-dark);
  overflow-x: hidden;
  line-height: 1.8;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

/* ============================================================
   UTILITY
============================================================ */
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.65rem, 1.2vw, 0.75rem);
  font-weight: 400;
  letter-spacing: 0.25em;
  color: var(--gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.5rem;
}
.section-title-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 300;
  color: var(--text-dark);
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.section-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.7rem, 1.5vw, 0.85rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--gold-dark);
  text-transform: uppercase;
  margin-top: 0.4rem;
}
.gold-line {
  width: 40px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.2rem auto;
}
.gold-line-left { margin: 1.2rem 0; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; padding-bottom: 3rem; }

/* ============================================================
   FADE-IN ANIMATION
============================================================ */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ============================================================
   NAVIGATION
============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.2rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}
#navbar.scrolled {
  background: rgba(253,250,245,0.96);
  box-shadow: 0 1px 20px rgba(44,36,32,0.08);
  backdrop-filter: blur(10px);
  padding: 0.8rem 2.5rem;
}
#navbar.solid {
  background: rgba(253,250,245,0.98);
  box-shadow: 0 1px 20px rgba(44,36,32,0.08);
  backdrop-filter: blur(10px);
}

.nav-logo { display: flex; flex-direction: column; gap: 0.1rem; }
.nav-logo-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem; font-weight: 500;
  letter-spacing: 0.2em; color: var(--text-dark);
}
.nav-logo-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.65rem; font-weight: 300;
  letter-spacing: 0.15em; color: var(--gold);
}

.nav-links {
  display: flex; list-style: none;
  gap: 2rem; align-items: center;
}
.nav-links li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem; font-weight: 400;
  letter-spacing: 0.18em; color: var(--text-mid);
  text-transform: uppercase;
  transition: color 0.3s;
  position: relative;
}
.nav-links li a::after {
  content: ''; position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links li a:hover,
.nav-links li a.active { color: var(--gold-dark); }
.nav-links li a:hover::after,
.nav-links li a.active::after { width: 100%; }

.nav-hamburger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 1px;
  background: var(--text-dark); transition: all 0.3s;
}

/* ============================================================
   MOBILE NAV DRAWER
============================================================ */
#mobile-nav {
  position: fixed; inset: 0;
  background: var(--cream); z-index: 999;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  transform: translateX(100%);
  transition: transform 0.5s cubic-bezier(0.77,0,0.175,1);
}
#mobile-nav.open { transform: translateX(0); }
.mobile-nav-close {
  position: absolute; top: 2rem; right: 2rem;
  font-size: 1.5rem; color: var(--text-mid); cursor: pointer;
}
.mobile-nav-links {
  list-style: none; text-align: center;
  display: flex; flex-direction: column; gap: 2rem;
}
.mobile-nav-links li a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem; font-weight: 300;
  letter-spacing: 0.3em; color: var(--text-dark);
  text-transform: uppercase; transition: color 0.3s;
}
.mobile-nav-links li a:hover { color: var(--gold); }

/* ============================================================
   PAGE HERO (サブページ用)
============================================================ */
.page-hero {
  padding: 9rem 0 4rem;
  background: linear-gradient(135deg, #fdfaf5 0%, #f5ede0 60%, #edddd0 100%);
  text-align: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 1px; height: 40px;
  background: linear-gradient(to bottom, var(--gold), transparent);
}
.page-hero .section-label { margin-bottom: 0.8rem; }
.page-hero .page-title-jp {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 200; letter-spacing: 0.15em;
  color: var(--text-dark); line-height: 1.3;
}
.page-hero .page-title-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(0.7rem, 1.5vw, 0.9rem);
  letter-spacing: 0.35em; color: var(--gold-dark);
  text-transform: uppercase; margin-top: 0.6rem;
}

/* ============================================================
   BREADCRUMB
============================================================ */
.breadcrumb {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 1rem 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: var(--text-light); text-transform: uppercase;
}
.breadcrumb a { color: var(--gold-dark); transition: color 0.3s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--text-light); }

/* ============================================================
   FOOTER
============================================================ */
footer {
  background: var(--text-dark);
  color: var(--champagne);
  padding: 5rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(201,169,110,0.15);
}
.footer-brand .nav-logo-en { color: var(--champagne); font-size: 1.4rem; }
.footer-brand .nav-logo-jp { color: var(--gold); font-size: 0.7rem; margin-top: 0.3rem; display: block; }
.footer-tagline {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.8rem; font-weight: 300;
  color: rgba(247,241,232,0.55);
  line-height: 2; margin-top: 1.2rem; letter-spacing: 0.05em;
}
.footer-col h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.3em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer-links li a {
  font-family: 'Noto Serif JP', serif;
  font-size: 0.82rem; font-weight: 300;
  color: rgba(247,241,232,0.65); letter-spacing: 0.06em; transition: color 0.3s;
}
.footer-links li a:hover { color: var(--gold); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 2rem; flex-wrap: wrap; gap: 1rem;
}
.footer-copyright {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.15em;
  color: rgba(247,241,232,0.35);
}
.footer-gold-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem; letter-spacing: 0.2em;
  color: var(--gold); opacity: 0.6;
}

/* ============================================================
   BACK TO TOP
============================================================ */
#back-top {
  position: fixed; bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border: 1px solid var(--gold);
  background: rgba(253,250,245,0.9);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0; pointer-events: none;
  transition: opacity 0.3s, transform 0.3s; z-index: 100;
}
#back-top.show { opacity: 1; pointer-events: auto; }
#back-top:hover { transform: translateY(-4px); background: var(--gold); }
#back-top:hover i { color: var(--white); }
#back-top i { color: var(--gold-dark); font-size: 0.8rem; }

/* ============================================================
   CARD SHARED
============================================================ */
.btn-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid var(--gold);
  padding: 0.7rem 2rem;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--gold-dark);
  transition: background 0.3s, color 0.3s;
}
.btn-gold:hover { background: var(--gold); color: var(--white); }

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}
@media (max-width: 640px) {
  .container { padding: 0 1.2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
