/* ============================================
   NATURAROOM eight — Shared Styles
   ============================================ */

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

:root {
  --ivory: #F7F6F3;
  --mist: #EFEDE7;
  --stone: #D9D5CD;
  --greige: #A89F92;
  --sumi: #2A2826;
  --sumi-soft: #4A4642;
  --brass: #A88B5C;

  --ff-mincho: "Shippori Mincho B1", "Noto Serif JP", serif;
  --ff-sans: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  --ff-en: "Cormorant Garamond", serif;

  --max: 1280px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 14vw, 180px);

  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: 0.04em;
  color: var(--sumi);
  background: var(--ivory);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity .3s var(--ease), color .3s var(--ease);
}

a:hover { opacity: 0.6; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--sumi); color: var(--ivory); }

/* ============================================
   Topbar
   ============================================ */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px var(--pad-x);
  mix-blend-mode: difference;
  color: #FFFFFF;
  pointer-events: none;
}

.topbar > * { pointer-events: auto; }

.topbar__brand {
  font-family: var(--ff-en);
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.topbar__brand small {
  display: block;
  font-family: var(--ff-mincho);
  font-size: 9px;
  letter-spacing: 0.5em;
  margin-top: 2px;
  opacity: 0.7;
}

/* Hamburger */
.hamburger {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 110;
}

.hamburger__lines {
  position: relative;
  width: 28px;
  height: 10px;
}

.hamburger__lines::before,
.hamburger__lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition: transform .5s var(--ease), top .3s var(--ease), bottom .3s var(--ease);
}

.hamburger__lines::before { top: 0; }
.hamburger__lines::after { bottom: 0; }

.hamburger.is-open .hamburger__lines::before {
  top: 4px;
  transform: rotate(45deg);
}

.hamburger.is-open .hamburger__lines::after {
  bottom: 5px;
  transform: rotate(-45deg);
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: var(--ivory);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--pad-x);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s var(--ease), visibility .6s var(--ease);
}

.menu-overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url('img/bg-linen.png') center/cover;
  opacity: 0.35;
  pointer-events: none;
}

.menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.menu-overlay__inner {
  position: relative;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
}

.menu-overlay__nav {
  list-style: none;
}

.menu-overlay__nav li {
  overflow: hidden;
  border-bottom: 1px solid var(--stone);
}

.menu-overlay__nav a {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 22px 4px;
  font-family: var(--ff-mincho);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--sumi);
  transform: translateY(110%);
  transition: transform .8s var(--ease), opacity .3s;
}

.menu-overlay__nav a .num {
  font-family: var(--ff-en);
  font-size: 0.32em;
  letter-spacing: 0.2em;
  color: var(--brass);
  font-style: italic;
  font-weight: 300;
}

.menu-overlay__nav a .ja {
  font-size: 0.4em;
  letter-spacing: 0.2em;
  color: var(--greige);
  margin-left: auto;
  font-family: var(--ff-mincho);
}

.menu-overlay.is-open .menu-overlay__nav a {
  transform: translateY(0);
}

.menu-overlay.is-open .menu-overlay__nav li:nth-child(1) a { transition-delay: 0.15s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(2) a { transition-delay: 0.25s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(3) a { transition-delay: 0.35s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(4) a { transition-delay: 0.45s; }
.menu-overlay.is-open .menu-overlay__nav li:nth-child(5) a { transition-delay: 0.55s; }

.menu-overlay__aside {
  font-family: var(--ff-mincho);
  font-size: 13px;
  line-height: 2.2;
  color: var(--sumi-soft);
  letter-spacing: 0.12em;
  padding-bottom: 22px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease) 0.7s, transform 0.8s var(--ease) 0.7s;
}

.menu-overlay.is-open .menu-overlay__aside {
  opacity: 1;
  transform: translateY(0);
}

.menu-overlay__aside dt {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--brass);
  margin-bottom: 6px;
  margin-top: 18px;
}

.menu-overlay__aside dt:first-child { margin-top: 0; }

@media (max-width: 768px) {
  .menu-overlay__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .menu-overlay__nav a .ja { display: none; }
}

/* ============================================
   Footer
   ============================================ */

.footer {
  background: var(--ivory);
  border-top: 1px solid var(--stone);
  padding: 80px var(--pad-x) 40px;
  margin-top: var(--section);
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.footer__brand {
  font-family: var(--ff-en);
  font-size: 22px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.footer__brand small {
  display: block;
  font-family: var(--ff-mincho);
  font-size: 10px;
  letter-spacing: 0.4em;
  margin-top: 6px;
  color: var(--greige);
}

.footer__tagline {
  margin-top: 20px;
  font-family: var(--ff-mincho);
  font-size: 13px;
  line-height: 2.2;
  color: var(--sumi-soft);
  letter-spacing: 0.1em;
}

.footer h5 {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.32em;
  font-weight: 400;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer dl {
  font-family: var(--ff-mincho);
  font-size: 13px;
  line-height: 2;
  color: var(--sumi-soft);
}

.footer dt {
  color: var(--greige);
  font-size: 11px;
  letter-spacing: 0.18em;
  margin-top: 10px;
}
.footer dt:first-child { margin-top: 0; }

.footer ul { list-style: none; font-family: var(--ff-mincho); font-size: 13px; line-height: 2.4; }

.footer__bottom {
  max-width: var(--max);
  margin: 60px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--stone);
  display: flex;
  justify-content: space-between;
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--greige);
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .footer__inner { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
}

/* ============================================
   Page Shell
   ============================================ */

main { padding-top: 72px; }

.page-hero {
  padding: 80px var(--pad-x) 40px;
  max-width: var(--max);
  margin: 0 auto;
}

.page-hero .eyebrow {
  font-family: var(--ff-en);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--brass);
  margin-bottom: 18px;
}

.page-hero h1 {
  font-family: var(--ff-mincho);
  font-weight: 400;
  font-size: clamp(36px, 6vw, 76px);
  line-height: 1.3;
  letter-spacing: 0.06em;
  color: var(--sumi);
}

.page-hero h1 .en {
  display: block;
  font-family: var(--ff-en);
  font-style: italic;
  font-weight: 300;
  font-size: 0.42em;
  letter-spacing: 0.18em;
  color: var(--greige);
  margin-top: 8px;
  text-transform: capitalize;
}

/* Section heading shared */
.section-label {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.36em;
  color: var(--brass);
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.section-label::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--brass);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
