/* ============================================
   BrownBunny Inc. — Light Theme
   Palette: Warm Parchment × Espresso Brown
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@300;400;600&family=Noto+Sans+JP:wght@300;400;500&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

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

:root {
  --bg:         #f6f2ea;
  --bg2:        #ede8dc;
  --surface:    #e6e0d4;
  --border:     #d0c9b8;
  --text:       #1c1812;
  --text-muted: #6a5e4e;
  --text-dim:   #a89e8e;
  --accent:     #7b4521;
  --accent2:    #b87535;
  --white:      #1c1812;
  --font-serif: 'Cormorant Garamond', 'Noto Serif JP', serif;
  --font-sans:  'Noto Sans JP', sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition: 0.4s var(--ease);
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.8;
  letter-spacing: 0.06em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: 0.45;
  mix-blend-mode: multiply;
}

h1, h2, h3 { font-family: var(--font-serif); font-weight: 300; line-height: 1.2; letter-spacing: 0.1em; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 clamp(24px, 5vw, 80px); height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, rgba(246,242,234,0.97) 0%, transparent 100%);
  transition: var(--transition);
}
.nav.scrolled { background: rgba(246,242,234,0.97); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
.nav-logo { font-family: var(--font-serif); font-size: 1.15rem; letter-spacing: 0.18em; color: var(--text); text-transform: uppercase; }
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; gap: 40px; list-style: none; }
.nav-links a { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); transition: color var(--transition); position: relative; }
.nav-links a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width var(--transition); }
.nav-links a:hover, .nav-links .current-menu-item a { color: var(--accent); }
.nav-links a:hover::after, .nav-links .current-menu-item a::after { width: 100%; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 1px; background: var(--text); transition: var(--transition); }
.nav-mobile { display: none; position: fixed; inset: 0; background: rgba(246,242,234,0.98); z-index: 999; flex-direction: column; align-items: center; justify-content: center; gap: 48px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.nav-mobile.open { opacity: 1; pointer-events: all; }
.nav-mobile a { font-family: var(--font-serif); font-size: clamp(1.6rem, 5vw, 2.8rem); letter-spacing: 0.12em; color: var(--text-muted); transition: color var(--transition); }
.nav-mobile a:hover { color: var(--accent); }

.section { padding: clamp(80px, 12vw, 160px) clamp(24px, 8vw, 120px); }
.section-label { font-size: 0.65rem; letter-spacing: 0.35em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.section-title { font-size: clamp(2rem, 5vw, 4rem); color: var(--text); margin-bottom: 8px; }
.section-sub { font-size: 0.75rem; letter-spacing: 0.2em; color: var(--text-muted); margin-bottom: 60px; }
.divider { width: 40px; height: 1px; background: var(--accent); margin: 24px 0 40px; }

.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; border: 1px solid var(--accent); color: var(--accent); font-size: 0.7rem; letter-spacing: 0.25em; text-transform: uppercase; transition: var(--transition); position: relative; overflow: hidden; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--accent); transform: translateX(-101%); transition: transform var(--transition); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateX(0); }
.btn span { position: relative; }
.btn-arrow { display: inline-block; width: 20px; height: 1px; background: currentColor; position: relative; transition: width 0.3s var(--ease); }
.btn-arrow::after { content: ''; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1px solid currentColor; border-right: 1px solid currentColor; transform: rotate(45deg); }
.btn:hover .btn-arrow { width: 30px; }

.page-hero { min-height: 40vh; display: flex; align-items: flex-end; padding: 140px clamp(24px, 8vw, 120px) 80px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background: linear-gradient(135deg, var(--bg2) 0%, var(--bg) 100%); }
.page-hero-content { position: relative; }

.footer { padding: clamp(48px, 8vw, 80px) clamp(24px, 8vw, 120px); border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 40px; background: var(--bg2); }
.footer-logo { font-family: var(--font-serif); font-size: 1.3rem; letter-spacing: 0.18em; color: var(--text); }
.footer-copy { font-size: 0.65rem; letter-spacing: 0.15em; color: var(--text-dim); }
.footer-nav { list-style: none; display: flex; gap: 32px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-muted); transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
.fade-up { opacity: 0; animation: fadeUp 0.9s var(--ease) forwards; }
.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.5s; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-mobile { display: flex; }
  .footer { flex-direction: column; align-items: flex-start; }
}
