:root {
  --bg: #faf8f4;
  --ink: #2b2926;
  --sub: #6f6a60;
  --accent: #3a5a72;
  --line: #e6e0d4;
  --dark-bg: #1b1a18;
  --dark-ink: #f2efe8;
  font-size: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-weight: 300;
  overflow-x: hidden;
}

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

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

.br-pc { display: inline; }

section { position: relative; }

/* ---------- reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(.2,.6,.2,1), transform 0.9s cubic-bezier(.2,.6,.2,1);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 22px 0;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}
.site-header.scrolled {
  background: rgba(250, 248, 244, 0.96);
  padding: 12px 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  color: #fff;
  transition: color 0.4s ease;
}
.site-header.scrolled .logo { color: var(--ink); }
.logo-sub { font-size: 0.65rem; letter-spacing: 0.2em; opacity: 0.85; }
.logo-main { font-family: "Noto Serif JP", serif; font-size: 1.5rem; font-weight: 600; letter-spacing: 0.08em; }

.nav-desktop { display: flex; gap: 34px; }
.nav-desktop a {
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  color: #fff;
  position: relative;
  padding-bottom: 4px;
  transition: color 0.4s ease;
}
.site-header.scrolled .nav-desktop a { color: var(--ink); }
.nav-desktop a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 0; height: 1px;
  background: currentColor;
  transition: width 0.3s ease;
}
.nav-desktop a:hover::after { width: 100%; }

.header-right { display: flex; align-items: center; gap: 24px; }
.header-tel {
  font-family: "Noto Serif JP", serif;
  font-size: 0.95rem;
  color: #fff;
  letter-spacing: 0.03em;
  transition: color 0.4s ease;
}
.site-header.scrolled .header-tel { color: var(--ink); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px; height: 32px;
  background: none; border: none; cursor: pointer;
  position: relative; z-index: 300;
}
.hamburger span {
  display: block; width: 100%; height: 2px;
  background: #fff;
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.site-header.scrolled .hamburger span { background: var(--ink); }
.hamburger.active span { background: var(--ink); }
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- mobile nav (opaque bg + explicit z-index + will-change, per known compositing bug) ---------- */
.mobile-nav {
  position: fixed;
  top: 0; right: 0;
  width: 78%;
  max-width: 340px;
  height: 100vh;
  background: #ffffff;
  z-index: 250;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 26px;
  padding: 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  will-change: transform;
  box-shadow: -8px 0 24px rgba(0,0,0,0.08);
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav a {
  font-family: "Noto Serif JP", serif;
  font-size: 1.15rem;
  color: var(--ink);
}
.mobile-nav-tel {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--sub);
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center 76%;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,20,28,0.35) 0%, rgba(10,20,28,0.25) 45%, rgba(10,15,20,0.65) 100%);
}
.hero-text {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 24px;
}
.hero-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.35em;
  margin-bottom: 22px;
  opacity: 0.9;
}
.hero-copy {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.65;
  letter-spacing: 0.04em;
}
.hero-copy span { display: block; }
.hero-sub {
  margin-top: 26px;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  opacity: 0.9;
}
.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  z-index: 2;
  opacity: 0.85;
}
.hero-scroll span {
  width: 1px; height: 34px;
  background: rgba(255,255,255,0.7);
  position: relative;
  overflow: hidden;
}
.hero-scroll span::after {
  content: "";
  position: absolute; top: -100%; left: 0;
  width: 100%; height: 100%;
  background: #fff;
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ---------- lead ---------- */
.lead {
  padding: 120px 24px;
  text-align: center;
}
.lead-text {
  max-width: 640px;
  margin: 0 auto;
  font-family: "Noto Serif JP", serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 2.2;
  color: var(--ink);
}

/* ---------- section common ---------- */
.section-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-eyebrow.light { color: #b9c7cf; }
.section-title {
  font-family: "Noto Serif JP", serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.6;
  letter-spacing: 0.03em;
  margin-bottom: 28px;
}
.section-title.light { color: var(--dark-ink); }
.center { text-align: center; }

/* ---------- omoya ---------- */
.omoya { padding: 40px 24px 100px; max-width: 1240px; margin: 0 auto; }
.omoya-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
.omoya-image img { border-radius: 2px; }
.omoya-text p { color: var(--sub); margin-bottom: 18px; font-size: 0.95rem; }
.omoya-strip { margin-top: 60px; }
.omoya-strip img { width: 100%; border-radius: 2px; }

/* ---------- facility ---------- */
.facility { padding: 100px 24px; background: #f2ede1; }
.facility-grid {
  max-width: 1000px;
  margin: 50px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.facility-card { position: relative; }
.facility-image { overflow: hidden; border-radius: 2px; aspect-ratio: 4/5; }
.facility-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.facility-card:hover .facility-image img { transform: scale(1.05); }
.facility-tag {
  position: absolute; top: 16px; left: 16px;
  background: var(--accent); color: #fff;
  font-size: 0.65rem; letter-spacing: 0.1em;
  padding: 5px 10px; border-radius: 2px;
}
.facility-card h3 { font-family: "Noto Serif JP", serif; font-size: 1.2rem; margin: 22px 0 10px; }
.facility-card p { color: var(--sub); font-size: 0.9rem; margin-bottom: 14px; }
.facility-note { text-align: center; margin-top: 36px; font-size: 0.75rem; color: var(--sub); }

/* ---------- room ---------- */
.room { padding: 110px 24px; max-width: 1240px; margin: 0 auto; }
.room-lead { max-width: 560px; margin: 0 auto 56px; color: var(--sub); font-size: 0.92rem; }
.room-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.room-image { overflow: hidden; border-radius: 2px; aspect-ratio: 4/3; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.room-card:hover .room-image img { transform: scale(1.06); }
.room-card h3 { font-family: "Noto Serif JP", serif; font-size: 1.1rem; margin: 20px 0 8px; }
.room-card p { color: var(--sub); font-size: 0.88rem; margin-bottom: 12px; }
.text-link { font-size: 0.82rem; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }

/* ---------- cuisine ---------- */
.cuisine { background: var(--dark-bg); color: var(--dark-ink); padding: 110px 24px; }
.cuisine-inner { max-width: 1160px; margin: 0 auto; }
.cuisine-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 60px;
}
.cuisine-chef { position: relative; }
.cuisine-chef img { border-radius: 2px; }
.cuisine-chef-caption { margin-top: 14px; font-size: 0.78rem; color: #a9a297; }
.cuisine-text p { color: #cfc8ba; margin-bottom: 18px; font-size: 0.95rem; }
.food-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.food-grid img { aspect-ratio: 1/1; object-fit: cover; border-radius: 2px; }

/* ---------- nature ---------- */
.nature-banner {
  height: 60vh;
  min-height: 380px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.nature-banner::before {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8,16,24,0.4);
}
.nature-banner-text { position: relative; z-index: 1; text-align: center; color: #fff; }
.nature-banner-text .section-eyebrow { color: #cfe4ee; }
.nature-grid {
  max-width: 1160px; margin: 0 auto;
  padding: 70px 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.nature-item img { border-radius: 2px; aspect-ratio: 4/3; object-fit: cover; }
.nature-item p { margin-top: 16px; font-size: 0.88rem; color: var(--sub); }

/* ---------- sns ---------- */
.sns { padding: 110px 24px; background: #f2ede1; }
.sns-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.sns-image img { border-radius: 2px; max-width: 340px; margin: 0 auto; }
.sns-text p { color: var(--sub); margin-bottom: 22px; font-size: 0.95rem; }
.sns-link {
  display: inline-block;
  font-size: 0.85rem;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
}

/* ---------- access ---------- */
.access { background: var(--dark-bg); color: var(--dark-ink); padding: 100px 24px 110px; }
.access-grid {
  max-width: 1100px; margin: 40px auto 0;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 50px;
}
.access-info p { margin-bottom: 16px; color: #cfc8ba; font-size: 0.92rem; }
.access-name { font-family: "Noto Serif JP", serif; font-size: 1.15rem; color: #fff; }
.access-map { border-radius: 2px; overflow: hidden; min-height: 280px; }
.access-map iframe { width: 100%; height: 100%; min-height: 280px; border: 0; }

/* ---------- footer ---------- */
.site-footer {
  background: #14130f;
  color: #8a8478;
  text-align: center;
  padding: 40px 24px;
}
.footer-logo { font-family: "Noto Serif JP", serif; color: #d8d2c4; font-size: 1.1rem; margin-bottom: 10px; }
.footer-copy { font-size: 0.72rem; letter-spacing: 0.05em; }

/* ================= responsive ================= */
@media (max-width: 860px) {
  .br-pc { display: none; }
  .nav-desktop { display: none; }
  .header-tel { display: none; }
  .hamburger { display: flex; }

  .omoya-grid { grid-template-columns: 1fr; gap: 36px; }
  .facility-grid { grid-template-columns: 1fr; gap: 50px; }
  .room-grid { grid-template-columns: 1fr; gap: 44px; }
  .cuisine-grid { grid-template-columns: 1fr; gap: 30px; }
  .food-grid { grid-template-columns: repeat(3, 1fr); }
  .nature-grid { grid-template-columns: 1fr; }
  .sns-inner { grid-template-columns: 1fr; text-align: center; }
  .sns-image img { max-width: 220px; }
  .access-grid { grid-template-columns: 1fr; }

  .lead { padding: 90px 24px; }
  .omoya, .room { padding: 80px 24px; }
  .facility, .cuisine, .sns { padding: 80px 24px; }
}

@media (max-width: 480px) {
  .header-inner { padding: 0 20px; }
  .logo-main { font-size: 1.25rem; }
}
