/* ============================================
   KAMAKURA KOUMUTEN — SHARED SITE CSS
   header / footer / common section / utilities
   ============================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
body {
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 300;
  color: #1a1a1a;
  background: #f5f0eb;
  line-height: 2;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }

/* HEADER */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  background: transparent;
  transition: background 0.4s ease;
}
.header.scrolled {
  background: rgba(26, 26, 26, 0.92);
  backdrop-filter: blur(10px);
}
.header-logo { justify-self: start; display: flex; align-items: center; }
.header-logo img { height: 36px; width: auto; display: block; }
.header-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 40px;
}
.header-nav a {
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #fff;
  text-transform: uppercase;
  transition: opacity 0.3s;
}
.header-nav a:hover { opacity: 0.6; }
.header-nav a.active { border-bottom: 1px solid #fff; padding-bottom: 4px; }
.header-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.header-logo-text { height: 22px; width: auto; display: block; }
.header-social { display: flex; gap: 12px; }
.header-social a { color: #fff; transition: opacity 0.3s; }
.header-social a:hover { opacity: 0.6; }
.header-social svg { width: 18px; height: 18px; fill: #fff; }

/* HAMBURGER & MOBILE MENU */
.header-burger {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  width: 28px;
  height: 22px;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 1100;
}
.header-burger span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s, top 0.3s;
}
.header-burger span:nth-child(1) { top: 4px; }
.header-burger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.header-burger span:nth-child(3) { top: calc(100% - 5.5px); }
.header-burger.open span:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.header-burger.open span:nth-child(2) { opacity: 0; }
.header-burger.open span:nth-child(3) { top: 50%; transform: translateY(-50%) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1050;
  display: grid;
  place-items: center;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 90px 20px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu-nav { display: flex; flex-direction: column; gap: 26px; text-align: center; }
.mobile-menu-nav a {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: #fff;
  transition: opacity 0.3s;
}
.mobile-menu-nav a:hover { opacity: 0.6; }
.mobile-menu-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 5px;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
  display: block;
  text-transform: uppercase;
}
.mobile-menu-social {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin-top: 36px;
}
.mobile-menu-social a { color: #fff; opacity: 0.7; }
.mobile-menu-social svg { width: 20px; height: 20px; fill: #fff; }

/* PAGE HERO (sub-pages with full-width image hero) */
.page-hero {
  position: relative;
  width: 100%;
  height: 70vh;
  min-height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  z-index: 1;
}
.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 25, 15, 0.45);
  z-index: 2;
}
.page-hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: 0 20px;
}
.page-hero-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 24px;
}
.page-hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 300;
  letter-spacing: 4px;
  line-height: 1.3;
}
.page-hero-sub {
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.85;
  margin-top: 18px;
}

/* SECTION COMMON */
section { padding: 100px 40px; }
.section-inner {
  max-width: 880px;
  margin: 0 auto;
}
.section-inner.wide { max-width: 1100px; }
.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 12px;
  text-align: center;
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 300;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 50px;
  line-height: 1.4;
  text-align: center;
}
.section-jp-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 400;
  letter-spacing: 4px;
  margin-bottom: 50px;
  line-height: 1.6;
  text-align: center;
}
.section-text {
  font-size: 14px;
  line-height: 2.4;
  color: #333;
  font-weight: 400;
}
.section-text p { margin-bottom: 1.8em; }

/* CTA BLOCK */
.cta {
  background: #1a1a1a;
  color: #fff;
  text-align: center;
  padding: 120px 40px;
}
.cta-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 300;
  letter-spacing: 6px;
  margin-bottom: 20px;
}
.cta-text {
  font-size: 14px;
  line-height: 2.2;
  opacity: 0.8;
  margin-bottom: 40px;
}
.cta-btn {
  display: inline-block;
  padding: 16px 60px;
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 30px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: #fff;
  transition: all 0.3s;
}
.cta-btn:hover {
  background: #fff;
  color: #1a1a1a;
}

/* FOOTER (centered cluster, matches index.html footer) */
.footer {
  padding: 30px 60px;
  background: #f5f0eb;
  border-top: 1px solid #ddd5cc;
}
.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-copy {
  font-size: 11px;
  color: #888;
  letter-spacing: 1.5px;
  margin: 0;
}
.footer-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-nav a {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #888;
  transition: color 0.3s;
}
.footer-nav a:hover { color: #1a1a1a; }
.footer-sep {
  color: #c8bdb0;
  font-size: 10px;
  user-select: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .header {
    padding: 0 18px;
    height: 56px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: rgba(20,20,20,0.55);
    backdrop-filter: blur(10px);
  }
  .header-nav,
  .header-right { display: none !important; }
  .header-burger { display: block !important; top: 17px; }
  .header-logo { height: 100%; align-items: center; }
  .header-logo img { height: 24px; display: block; transform: translateY(-3px); }
  section { padding: 70px 20px; }
  .cta { padding: 80px 20px; }
  .footer { padding: 24px 20px; }
  .footer-inner { flex-direction: column; gap: 14px; }
  .footer-nav { justify-content: center; gap: 10px; }
  .page-hero { height: 60vh; min-height: 380px; }
}

/* FADE-IN */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
