@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+JP:wght@400;500;700&family=Zen+Kaku+Gothic+New:wght@400;500;700&display=swap');

:root {
  --background: hsl(30, 23%, 92%);
  --foreground: hsl(0, 0%, 10%);
  --primary: hsl(3, 70%, 36%);
  --primary-fg: hsl(30, 23%, 92%);
  --secondary: hsl(30, 15%, 82%);
  --muted-fg: hsl(0, 0%, 35%);
  --border: hsl(30, 15%, 78%);
  --font-serif: 'Noto Serif JP', serif;
  --font-sans: 'Zen Kaku Gothic New', sans-serif;
}

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

body {
  font-family: var(--font-sans);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-serif); }

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

/* Layout */
.page-content { padding-bottom: 5rem; }
.container { max-width: 800px; margin: 0 auto; padding: 0 1.5rem; position: relative; }
.full-bleed { width: 100vw; margin-left: calc(-50vw + 50%); }

/* Bottom Nav */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--foreground); color: var(--background);
}
.bottom-nav .nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 800px; margin: 0 auto; padding: 0.75rem 1.5rem;
}
.bottom-nav a {
  font-family: var(--font-serif); text-transform: uppercase; font-size: 0.875rem;
  letter-spacing: 1px; color: var(--background); transition: color 0.3s;
}
.bottom-nav a:hover, .bottom-nav a.active { color: var(--primary); }
.bottom-nav .nav-links { display: flex; gap: 2rem; }
.nav-logo { height: 2.5rem; width: 2.5rem; border-radius: 50%; }

/* Hero */
.hero { position: relative; }
.hero img.banner { width: 100%; height: 28rem; object-fit: cover; }
.hero .overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); }
.hero .hero-content {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  animation: fadeIn 1s ease;
}
.hero .hero-logo { height: 9rem; width: 9rem; margin-bottom: 1.5rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
.hero h1 {
  font-size: 2.5rem; letter-spacing: 0.05em; margin-bottom: 0.75rem;
  color: var(--primary-fg); font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.7);
}
.hero .subtitle {
  font-family: var(--font-serif); font-size: 1.25rem; color: var(--primary-fg);
  text-shadow: 0 2px 6px rgba(0,0,0,0.6); font-weight: 500;
}
.hero .location {
  margin-top: 0.75rem; font-size: 1rem; color: var(--primary-fg);
  text-shadow: 0 2px 4px rgba(0,0,0,0.5); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.15em;
}

/* Divider */
.sakura-divider { display: flex; justify-content: center; padding: 1.5rem 0; }
.sakura-divider img { height: 3rem; width: auto; opacity: 0.6; }

/* Section */
section { padding: 3rem 0; }
section h2 { font-size: 1.5rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.5rem; }

.about p { margin-bottom: 1rem; font-size: 1rem; }

/* Values grid */
.values-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.value-card { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.value-card h3 { font-family: var(--font-serif); font-size: 1.125rem; margin-bottom: 0.5rem; }
.value-card p { font-size: 0.875rem; color: var(--muted-fg); }

/* Full bleed images */
.dojo-img { width: 100%; height: 24rem; object-fit: cover; }

/* Gallery */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.75rem; }
.gallery-item {
  position: relative; aspect-ratio: 1; overflow: hidden;
  border: 1px solid var(--border); cursor: pointer; background: var(--secondary);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .ig-placeholder {
  width: 100%; height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem;
}
.gallery-item .ig-placeholder span { font-size: 0.75rem; color: var(--muted-fg); text-align: center; padding: 0 0.5rem; }

/* Lightbox */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.92); align-items: center; justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; }
.lightbox iframe { width: min(540px, 90vw); height: 80vh; border: none; background: #fff; border-radius: 4px; }
.lightbox .close-btn {
  position: absolute; top: 1rem; right: 1rem; background: none; border: none;
  color: #fff; font-size: 2rem; cursor: pointer; z-index: 10; line-height: 1;
}

/* Contact form */
.contact-form { max-width: 32rem; }
.contact-form label {
  display: block; font-size: 0.875rem; text-transform: uppercase;
  letter-spacing: 0.05em; font-family: var(--font-serif); margin-bottom: 0.5rem;
}
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); background: transparent;
  padding: 0.75rem 1rem; font-size: 0.875rem; font-family: var(--font-sans);
  transition: border-color 0.3s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--foreground); }
.contact-form .field { margin-bottom: 1.5rem; }
.contact-form textarea { resize: none; }
.btn-submit {
  background: var(--primary); color: var(--primary-fg); border: none;
  padding: 0.75rem 2rem; font-family: var(--font-serif); text-transform: uppercase;
  letter-spacing: 0.15em; font-size: 0.875rem; cursor: pointer; transition: opacity 0.3s;
}
.btn-submit:hover { opacity: 0.9; }

/* Social */
.social-links { display: flex; gap: 1.5rem; }
.social-links a { transition: color 0.3s; }
.social-links a:hover { color: var(--primary); }
.social-links svg { width: 1.25rem; height: 1.25rem; fill: currentColor; }

/* Map */
.map-wrapper { width: 100%; aspect-ratio: 16/9; border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.map-wrapper iframe { width: 100%; height: 100%; border: 0; }

.section-border { border-top: 1px solid var(--border); }

/* Petal animation */
@keyframes petalFall {
  0% { opacity: 0; transform: translate(0, -20px) rotate(0deg) scale(0.8); }
  10% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate(-300px, 100vh) rotate(720deg) scale(0.4); }
}
.petal {
  position: fixed; top: -30px; z-index: 100; pointer-events: none;
  animation: petalFall linear infinite;
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Thank you */
.thank-you { text-align: center; padding: 4rem 0; }
.thank-you .jp { font-family: var(--font-serif); font-size: 1.25rem; margin-bottom: 0.5rem; }
.thank-you p { color: var(--muted-fg); }

/* Page header */
.page-header { padding-top: 4rem; padding-bottom: 2rem; position: relative; }
.page-header h1 { font-size: 1.875rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 0.5rem; }
.page-header p { color: var(--muted-fg); font-size: 0.875rem; margin-bottom: 2rem; }
.page-header .deco { position: absolute; top: 1rem; right: 0; width: 14rem; opacity: 0.25; pointer-events: none; transform: scaleX(-1); }
.page-header .deco-petals { position: absolute; top: 0; right: 0; width: 12rem; opacity: 0.15; pointer-events: none; }

.values-section { position: relative; }
.values-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0.1; pointer-events: none; }

@media (max-width: 640px) {
  .hero img.banner { height: 18rem; }
  .hero h1 { font-size: 1.75rem; }
  .hero .hero-logo { height: 7rem; width: 7rem; }
  .hero .subtitle { font-size: 1rem; }
  .dojo-img { height: 16rem; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .sakura-divider img { height: 2.5rem; }
  .page-header .deco { width: 9rem; }
}
