/* ============================================================
   安曇野ログハウス — style.css
   Aesthetic: Natural luxury / Japanese forest retreat
   Palette: Deep forest brown, warm cream, muted sage green
   ============================================================ */

/* ── CSS VARIABLES ── */
:root {
  --color-dark:       #1e1a14;
  --color-brown:      #3b3228;
  --color-brown-mid:  #6b5b48;
  --color-brown-light:#a8956e;
  --color-cream:      #faf8f4;
  --color-cream-mid:  #f0ece0;
  --color-sand:       #e8e2d4;
  --color-sage:       #4a7c4a;
  --color-sage-light: #6da06d;
  --color-text:       #2c2820;
  --color-text-muted: #7a6a58;

  --font-serif:  'Noto Serif JP', 'Cormorant Garamond', serif;
  --font-sans:   'Noto Sans JP', sans-serif;
  --font-latin:  'Cormorant Garamond', Georgia, serif;

  --max-width: 1160px;
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── RESET & BASE ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ── UTILITY ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.25em;
  color: var(--color-sage);
  margin-bottom: 0.6rem;
}

.section-label.center { text-align: center; }

.section-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 36px);
  color: var(--color-brown);
  line-height: 1.5;
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}

.section-title.center { text-align: center; }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

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

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background: rgba(30, 26, 20, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-en {
  font-family: var(--font-latin);
  font-size: 13px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.85);
  line-height: 1;
}

.logo-ja {
  font-family: var(--font-serif);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-brown-light);
  line-height: 1;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.site-nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.75);
  transition: color 0.25s;
}

.site-nav a:hover {
  color: rgba(255,255,255,1);
}

.site-nav .nav-cta {
  background: var(--color-sage);
  color: #fff;
  padding: 8px 18px;
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background 0.25s;
}

.site-nav .nav-cta:hover {
  background: var(--color-sage-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: rgba(255,255,255,0.85);
  border-radius: 1px;
  transition: 0.3s;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(30, 26, 20, 0.97);
  padding: 1.5rem 2rem;
  gap: 1.2rem;
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.08em;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding-bottom: 1rem;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: heroZoom 12s var(--ease-out) forwards;
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to   { transform: scale(1.0); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 12, 8, 0.72) 0%,
    rgba(15, 12, 8, 0.40) 60%,
    rgba(15, 12, 8, 0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  animation: fadeUp 1.2s 0.3s var(--ease-out) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 14px;
  letter-spacing: 0.3em;
  color: var(--color-brown-light);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-serif);
  font-weight: 300;
  font-size: clamp(36px, 6vw, 72px);
  color: #fff;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 1.2rem;
}

.hero-title em {
  font-style: normal;
  color: var(--color-brown-light);
}

.hero-desc {
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.08em;
  margin-bottom: 2.5rem;
  max-width: 440px;
  line-height: 2;
}

.hero-btn {
  display: inline-block;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  color: rgba(255,255,255,0.9);
  padding: 14px 36px;
  font-size: 13px;
  letter-spacing: 0.15em;
  font-family: var(--font-sans);
  border-radius: 2px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}

.hero-btn:hover {
  background: var(--color-sage);
  border-color: var(--color-sage);
  color: #fff;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
  animation: fadeUp 1.2s 1.2s var(--ease-out) both;
}

.hero-scroll span {
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(255,255,255,0.5);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.5), rgba(255,255,255,0));
  animation: scrollPulse 2.4s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ============================================================
   ABOUT
   ============================================================ */
.about {
  padding: 8rem 0;
  background: var(--color-cream);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text { }

.about-body {
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 2;
  margin-bottom: 1.2rem;
}

.feature-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--color-text);
  letter-spacing: 0.04em;
}

.feature-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 28px;
  text-align: center;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.about-image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 1px solid var(--color-brown-light);
  border-radius: 2px;
  z-index: -1;
  opacity: 0.4;
}

/* ============================================================
   GALLERY & SLIDERS
   ============================================================ */
.gallery {
  padding: 8rem 0 6rem;
  background: var(--color-brown);
}

.gallery .section-label { color: var(--color-brown-light); }
.gallery .section-title { color: var(--color-cream); }

.gallery .container {
  padding-bottom: 3rem;
}

/* 3列グリッド */
.gallery-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── 個別サムネイルスライダー ── */
.slider {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

.slider-viewport {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slider-track {
  display: flex;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.slider-slide {
  flex: 0 0 100%;
  height: 100%;
}

.slider-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* ‹ › ナビゲーションボタン（サムネイル） */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 10, 5, 0.55);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}

.slider:hover .slider-btn { opacity: 1; }
.slider-btn:hover { background: rgba(74, 124, 74, 0.85); }
.slider[data-count="1"] .slider-btn { display: none; }
.slider-btn--prev { left: 10px; }
.slider-btn--next { right: 10px; }

/* ドット */
.slider-dots {
  position: absolute;
  bottom: 38px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.slider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.slider-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.slider[data-count="1"] .slider-dots { display: none; }

/* カテゴリラベル */
.slider-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem 1.2rem 0.8rem;
  background: linear-gradient(to top, rgba(10,6,2,0.72), transparent);
  font-family: var(--font-serif);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.9);
  pointer-events: none;
  z-index: 5;
}

/* 拡大ボタン（右上） */
.slider-expand {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 15;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(15, 10, 5, 0.55);
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: background 0.2s, opacity 0.2s;
}

.slider:hover .slider-expand { opacity: 1; }
.slider-expand:hover { background: rgba(74, 124, 74, 0.85); }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(8, 6, 4, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

/* ライトボックス内ビューポート：デバイス横幅フル */
.lb-viewport {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.lb-track {
  display: flex;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  transition: transform 0.5s var(--ease-out);
  will-change: transform;
}

.lb-slide {
  flex: 0 0 100vw;
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lb-slide img {
  max-width: 100vw;
  max-height: 100vh;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  user-select: none;
  pointer-events: none;
}

/* 閉じるボタン */
.lb-close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 1010;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50%;
  background: rgba(20,15,10,0.6);
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}

.lb-close:hover {
  background: rgba(74, 124, 74, 0.85);
  border-color: transparent;
}

/* ‹ › ナビゲーションボタン（ライトボックス） */
.lb-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1010;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  background: rgba(20,15,10,0.55);
  color: rgba(255,255,255,0.9);
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, opacity 0.2s;
}

.lb-btn:hover {
  background: rgba(74, 124, 74, 0.85);
  border-color: transparent;
}

.lb-btn--prev { left: 16px; }
.lb-btn--next { right: 16px; }

/* スライドが1枚のとき非表示 */
.lightbox[data-count="1"] .lb-btn { display: none; }

/* ドット */
.lb-dots {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 1010;
}

.lb-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  padding: 0;
  transition: background 0.25s, transform 0.25s;
}

.lb-dot.active {
  background: #fff;
  transform: scale(1.35);
}

.lightbox[data-count="1"] .lb-dots { display: none; }

/* カウンター（例: 1 / 3） */
.lb-counter {
  position: fixed;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1010;
  font-family: var(--font-latin);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
}

/* ============================================================
   PLAN / RATE
   ============================================================ */
.plan {
  padding: 8rem 0;
  background: var(--color-cream-mid);
}

.plan-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  background: var(--color-brown);
  border-radius: 4px;
  padding: 2.5rem 3rem;
  margin-top: 3rem;
  flex-wrap: wrap;
}

.plan-type {
  font-family: var(--font-serif);
  font-size: 20px;
  color: var(--color-cream);
  letter-spacing: 0.08em;
  margin-bottom: 0.3rem;
}

.plan-note {
  font-size: 12px;
  color: var(--color-brown-light);
  letter-spacing: 0.06em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.plan-from {
  font-size: 13px;
  color: var(--color-brown-light);
  letter-spacing: 0.1em;
}

.plan-amount {
  font-family: var(--font-latin);
  font-size: 42px;
  font-weight: 300;
  color: var(--color-cream);
  line-height: 1;
}

.plan-unit {
  font-size: 13px;
  color: var(--color-brown-light);
  letter-spacing: 0.06em;
}

.plan-children {
  font-size: 11.5px;
  color: var(--color-brown-light);
  margin-top: 0.6rem;
  letter-spacing: 0.04em;
}

.plan-notice {
  margin-top: 2rem;
  background: #fff;
  border-left: 3px solid var(--color-sage);
  padding: 1.2rem 1.6rem;
  border-radius: 0 4px 4px 0;
}

.notice-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--color-sage);
  letter-spacing: 0.1em;
  margin-bottom: 0.4rem;
}

.notice-body {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 2;
}

/* ============================================================
   ACCESS
   ============================================================ */
.access {
  padding: 8rem 0;
  background: var(--color-cream);
}

.access-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.access-detail {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.access-row {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-sand);
  font-size: 14px;
  line-height: 1.8;
}

.access-label {
  color: var(--color-brown-light);
  font-size: 12px;
  letter-spacing: 0.1em;
  padding-top: 2px;
}

.access-value {
  color: var(--color-text);
}

.access-map {
  height: 380px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.access-map iframe {
  border: 0;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: 8rem 0;
  background: var(--color-brown);
}

.contact .section-label { color: var(--color-brown-light); }
.contact .section-title { color: var(--color-cream); }

.contact-lead {
  text-align: center;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 2.2;
  letter-spacing: 0.06em;
  margin-bottom: 3rem;
}

.contact-card {
  max-width: 480px;
  margin: 0 auto;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 2.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.contact-mail-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--color-brown-light);
}

.contact-mail {
  font-family: var(--font-latin);
  font-size: 20px;
  color: var(--color-cream);
  letter-spacing: 0.05em;
  transition: color 0.25s;
}

.contact-mail:hover { color: var(--color-sage-light); }

.contact-btn {
  display: inline-block;
  margin-top: 0.5rem;
  background: var(--color-sage);
  color: #fff;
  padding: 12px 32px;
  border-radius: 2px;
  font-size: 13px;
  letter-spacing: 0.1em;
  transition: background 0.25s;
}

.contact-btn:hover { background: var(--color-sage-light); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--color-dark);
  padding: 3rem 0 2rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-info {
  text-align: right;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  line-height: 2;
}

.footer-info a {
  color: var(--color-brown-light);
  transition: color 0.25s;
}

.footer-info a:hover { color: #fff; }

.footer-copy {
  text-align: center;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  letter-spacing: 0.08em;
  margin-top: 1.5rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-image img { height: 340px; }
  .about-image-accent { display: none; }

  /* gallery: 3列 → 1列 */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ライトボックスボタンは常に表示（タッチデバイスはhoverなし） */
  .lb-btn { opacity: 1; }

  .plan-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

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

  .access-map { height: 280px; }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-info { text-align: left; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hamburger { display: flex; }

  .hero-title { font-size: clamp(28px, 8vw, 48px); }

  .plan-amount { font-size: 34px; }

  .contact-mail { font-size: 16px; word-break: break-all; }
}
