/* ==========================================================
   Rinoa Private Salon — style.css
   ========================================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:        #FAFAF8;
  --accent:    #C9A97A;
  --accent-dk: #a8865c;
  --text:      #3D3D3D;
  --sub:       #8A8A8A;
  --white:     #ffffff;
  --header-h:  72px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Typography helpers ---------- */
.en {
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.12em;
}

.section-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 24px;
}

.section-lead {
  color: var(--sub);
  font-size: 0.95rem;
  line-height: 2;
  max-width: 520px;
}

/* ---------- Fade-in animation ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Header ---------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0 40px;
  transition: background 0.4s, box-shadow 0.4s;
}

#header.scrolled {
  background: rgba(250, 250, 248, 0.97);
  box-shadow: 0 1px 0 rgba(0,0,0,0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  color: var(--text);
  line-height: 1.2;
}

.logo span {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  color: var(--sub);
  font-family: 'Cormorant Garamond', serif;
  margin-top: 2px;
}

nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
}

nav ul a {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--text);
  position: relative;
  padding-bottom: 3px;
}

nav ul a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

nav ul a:hover::after {
  width: 100%;
}

/* Hamburger (mobile) */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text);
  transition: all 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  background: rgba(250,250,248,0.98);
  padding: 24px 0 32px;
  z-index: 99;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav ul a {
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  color: var(--text);
}

/* ---------- Hero ---------- */
#hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../img/S__116097059_0.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 8s ease;
}

#hero.loaded .hero-bg {
  transform: scale(1);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(30,28,25,0.28) 0%,
    rgba(30,28,25,0.18) 50%,
    rgba(30,28,25,0.52) 100%
  );
}

.hero-content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  color: var(--white);
}

.hero-catch {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 300;
  letter-spacing: 0.1em;
  line-height: 1.3;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: clamp(0.78rem, 1.5vw, 0.9rem);
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 48px;
}

.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.75);
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  font-family: 'Cormorant Garamond', serif;
}

.hero-scroll::after {
  content: '';
  display: block;
  width: 1px;
  height: 48px;
  background: rgba(255,255,255,0.5);
  animation: scrollLine 1.8s ease infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: bottom; opacity: 0; }
}

/* ---------- Section wrapper ---------- */
.section {
  padding: 100px 24px;
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

/* ---------- Concept ---------- */
#concept {
  background: var(--white);
}

.concept-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.concept-text {
  order: 1;
}

.concept-images {
  order: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.concept-images img:first-child {
  grid-column: 1 / 3;
  height: 280px;
  object-fit: cover;
  width: 100%;
}

.concept-images img:last-child {
  grid-column: 1 / 3;
  height: 180px;
  object-fit: cover;
  width: 100%;
}

/* ---------- Menu ---------- */
#menu {
  background: var(--bg);
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}

.menu-card {
  background: var(--white);
  overflow: hidden;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
}

.menu-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.menu-card-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

.menu-card-body {
  padding: 28px 28px 32px;
}

.menu-card-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.menu-card-title {
  font-size: 1.15rem;
  font-weight: 500;
  margin-bottom: 12px;
  letter-spacing: 0.05em;
}

.menu-card-desc {
  font-size: 0.84rem;
  color: var(--sub);
  line-height: 1.85;
  margin-bottom: 20px;
}

.menu-card-price {
  border-top: 1px solid #efefed;
  padding-top: 16px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-label {
  font-size: 0.72rem;
  color: var(--sub);
  letter-spacing: 0.08em;
}

.price-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  color: var(--accent-dk);
  letter-spacing: 0.04em;
}

.price-unit {
  font-size: 0.72rem;
  color: var(--sub);
}

/* ---------- Access ---------- */
#access {
  background: var(--white);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 56px;
}

.access-map {
  width: 100%;
  aspect-ratio: 4/3;
  border: none;
  display: block;
}

.access-info table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.access-info th,
.access-info td {
  padding: 14px 0;
  border-bottom: 1px solid #efefed;
  vertical-align: top;
  text-align: left;
}

.access-info th {
  width: 120px;
  color: var(--sub);
  font-weight: 400;
  letter-spacing: 0.08em;
  padding-right: 16px;
  white-space: nowrap;
}

.access-info td {
  line-height: 1.75;
}

/* ---------- Reserve / CTA ---------- */
#reserve {
  background: var(--bg);
  text-align: center;
}

#reserve .section-lead {
  margin: 0 auto 48px;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  border: 1px solid currentColor;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dk);
  border-color: var(--accent-dk);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--text);
}

.btn-outline:hover {
  background: var(--text);
  color: var(--white);
}

/* ---------- Footer ---------- */
#footer {
  background: #2a2825;
  color: rgba(255,255,255,0.55);
  text-align: center;
  padding: 56px 24px;
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem;
  font-weight: 400;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.footer-address {
  font-size: 0.78rem;
  line-height: 1.8;
  margin-bottom: 32px;
}

.footer-copy {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

/* ---------- Divider ---------- */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin-bottom: 32px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .concept-grid,
  .access-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .concept-images {
    order: -1;
  }

  .menu-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  :root {
    --header-h: 60px;
  }

  #header {
    padding: 0 20px;
  }

  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .section {
    padding: 72px 20px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }

  .hero-catch {
    font-size: 2rem;
  }

  .concept-images img:first-child {
    height: 200px;
  }

  .concept-images img:last-child {
    height: 130px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }
}
