/*
Theme Name: 麓 Minpaku Roku
Description: 麓（ろく）民泊 カスタムテーマ
Version: 1.0
*/

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

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

:root {
  --bg: #f9f7f2;
  --text: #2a2420;
  --text-light: #6b5f55;
  --accent: #7a6348;
  --accent-light: #c8b49a;
  --white: #ffffff;
  --border: #e0d8ce;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }

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

/* ─── HEADER ─── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 48px;
  background: rgba(249, 247, 242, 0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}

.site-header.scrolled { border-bottom-color: var(--border); }

.site-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--text);
}

.site-logo span {
  display: block;
  font-size: 10px;
  font-family: 'Noto Sans JP', sans-serif;
  letter-spacing: 0.2em;
  color: var(--text-light);
  font-weight: 300;
}

.site-nav { display: flex; align-items: center; gap: 36px; }

.site-nav a {
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-light);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

.nav-book {
  padding: 10px 24px;
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  font-size: 11px !important;
  letter-spacing: 0.2em !important;
  transition: background 0.2s, color 0.2s !important;
}

.nav-book:hover {
  background: var(--accent) !important;
  color: var(--white) !important;
}

/* ─── HERO ─── */
.hero {
  padding: 24px 48px 24px;
  background: var(--bg);
}

.hero-inner {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-slide.active { opacity: 1; }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: absolute;
  bottom: 48px;
  left: 48px;
  z-index: 2;
  color: var(--white);
}

.hero-content h1 {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 1.4;
  margin-bottom: 12px;
}

.hero-content p {
  font-size: 13px;
  letter-spacing: 0.25em;
  opacity: 0.85;
  font-weight: 300;
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.hero-dots span {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: background 0.3s;
}

.hero-dots span.active { background: rgba(255,255,255,0.9); }

/* ─── SECTIONS ─── */
section { padding: 54px 48px; }

.section-label {
  font-size: 10px;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.5;
  margin-bottom: 32px;
}

.section-text {
  font-size: 14px;
  line-height: 2;
  color: var(--text-light);
  max-width: 560px;
}

/* ─── ABOUT ─── */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 600px;
}

.about-image { height: 600px; }

.about-body {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--white);
}

/* ─── FEATURES ─── */
.features { background: var(--white); text-align: center; }

.features-header { max-width: 560px; margin: 0 auto 64px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.feature-item { padding: 24px; }

.feature-icon {
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-title {
  font-family: 'Noto Serif JP', serif;
  font-size: 16px;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  color: var(--text);
}

.feature-desc {
  font-size: 13px;
  line-height: 1.9;
  color: var(--text-light);
}

/* ─── GALLERY ─── */
.gallery { padding: 54px 48px; }

.gallery-header { margin-bottom: 48px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: auto;
  gap: 8px;
}

.gallery-item { overflow: hidden; cursor: pointer; }
.gallery-item img { transition: transform 0.6s ease; aspect-ratio: 4/3; }
.gallery-item:hover img { transform: scale(1.04); }

.gallery-item.wide { grid-column: span 2; }
.gallery-item.tall { grid-row: span 2; }

/* ─── STAY INFO ─── */
.stay {
  background: var(--text);
  color: var(--white);
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
}

.stay-body {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stay-body .section-label { color: var(--accent-light); }
.stay-body .section-title { color: var(--white); }
.stay-body .section-text { color: rgba(255,255,255,0.65); max-width: 480px; }

.stay-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.stay-detail-item {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 16px;
}

.stay-detail-label {
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--accent-light);
  margin-bottom: 6px;
}

.stay-detail-value {
  font-family: 'Noto Serif JP', serif;
  font-size: 15px;
  color: var(--white);
}

.stay-image { height: 100%; min-height: 500px; }

/* ─── ACCESS ─── */
.access {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 500px;
}

.access-map { height: 500px; }
.access-map iframe { width: 100%; height: 100%; border: none; }

.access-body {
  padding: 80px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}

.access-list { margin-top: 32px; }

.access-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.access-item:first-child { border-top: 1px solid var(--border); }

.access-item-label {
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--accent);
  white-space: nowrap;
  min-width: 80px;
  padding-top: 2px;
}

.access-item-value {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
}

/* ─── CTA ─── */
.cta {
  text-align: center;
  padding: 100px 48px;
  background: var(--white);
}

.cta .section-title { margin-bottom: 16px; }
.cta .section-text { margin: 0 auto 40px; text-align: center; }

.btn-book {
  display: inline-block;
  padding: 16px 48px;
  background: var(--accent);
  color: var(--white);
  font-size: 12px;
  letter-spacing: 0.25em;
  transition: background 0.2s;
}

.btn-book:hover { background: var(--text); }

/* ─── FOOTER ─── */
.site-footer {
  background: var(--text);
  color: rgba(255,255,255,0.5);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.15em;
}

.footer-logo {
  font-family: 'Noto Serif JP', serif;
  font-size: 18px;
  color: var(--white);
  font-weight: 400;
}

.footer-info { text-align: right; line-height: 2; }

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open { display: flex; }

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  width: auto;
  height: auto;
}

.lightbox-close {
  position: absolute;
  top: 24px; right: 32px;
  color: white;
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .site-header { padding: 16px 24px; }
  .site-nav { gap: 20px; }
  .site-nav a:not(.nav-book) { display: none; }

  section { padding: 64px 24px; }
  .hero-content { left: 24px; bottom: 60px; }
  .hero-dots { right: 24px; }

  .about { grid-template-columns: 1fr; }
  .about-image { height: 300px; }
  .about-body { padding: 48px 24px; }

  .features-grid { grid-template-columns: 1fr; gap: 24px; }

  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.wide { grid-column: span 1; }

  .stay { grid-template-columns: 1fr; }
  .stay-body { padding: 48px 24px; }
  .stay-image { height: 300px; }

  .access { grid-template-columns: 1fr; }
  .access-map { height: 300px; }
  .access-body { padding: 48px 24px; }

  .site-footer { flex-direction: column; gap: 16px; text-align: center; }
  .footer-info { text-align: center; }
}
