/* ====================================
   Base variables
==================================== */
:root {
  --bg-main: #fdfbf6;
  --bg-alt: #f4f2ec;
  --walnut: #6b4e3d;
  --text-main: #4a3a2a;
  --deep-green: #00584d;
  --accent-orange: #c96a30;
  --border-soft: rgba(0, 0, 0, 0.06);
  --max-width: 1120px;
}

/* ====================================
   Reset / Base
==================================== */
* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.8;
}
body.nav-open{
  overflow: hidden;
  touch-action: none;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* ====================================
   Typography
==================================== */
h1, h2, h3 {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.04em;
  margin: 0;
}

.subhead {
  font-family: "Playfair Display", serif;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
  color: var(--walnut);
}

.muted { color: rgba(0,0,0,0.7); }

/* ====================================
   Header / Navigation
==================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(253, 251, 246, 0.96);
  border-bottom: 1px solid var(--border-soft);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
}

.brand-name {
  font-family: "Playfair Display", serif;
  font-size: 1.5rem;
  color: var(--deep-green);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: 4px;
  font-size: 0.95rem;
}

.nav a {
  position: relative;
  padding: 6px 2px;   /* ← 上下 / 左右 */
  color: rgba(0, 0, 0, 0.7);
  white-space: nowrap;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background-color: var(--deep-green);
  transition: width 0.2s ease-out;
}

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

/* Mobile hamburger */
.nav-toggle{
  display:none;
  width:32px;
  height:28px;
  border:none;
  background:transparent;
  padding:0;
  margin-left:12px;
  cursor:pointer;
}

.nav-toggle span{
  display:block;
  width:100%;
  height:2px;
  background-color:#1c3b30;
  border-radius:999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span{ margin-top:6px; }

/* ハンバーガー基本 */
.nav-toggle{
  display:none; /* すでに @media で display:block にしてるならOK */
  position: relative;
}

.nav-toggle span{
  display:block;
  width: 100%;
  height: 2px;
  background-color: #1c3b30;
  border-radius: 999px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle span + span{ margin-top: 6px; }

/* 開いたら × */
.site-header.is-open .nav-toggle span:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.site-header.is-open .nav-toggle span:nth-child(2){
  opacity: 0;
}
.site-header.is-open .nav-toggle span:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

.site-header.is-open .nav-toggle span:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2){ opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px){
  .nav-toggle{ display:block; }
  .header-inner{ position:relative; }

  /* モバイル時：タイトル */
  .site-header .brand-name{
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    line-height: 1.1;
  }

  /* ドロップダウンメニュー */
  .nav{
    position:absolute;
    top:100%;
    right:0;
    left:0;
    background-color:#fdf8f0;
    border-top:1px solid rgba(0,0,0,0.06);
    display:none;
    padding:8px 16px 16px;
  }

  .nav a{
    display:block;
    padding:10px 4px;
    font-size:0.9rem;
  }

  /* nav内に入った言語セレクトを「メニューっぽく」整える */
  .nav .lang-select-wrap{
    margin: 10px 0 0;
    padding: 10px 4px;
    border-top: 1px solid rgba(0,0,0,0.06);
  }

  .nav .lang-select{
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
  }

  /* 開いたときだけ表示 */
  .site-header.is-open .nav{ display:block; }
}

.lang-select-placeholder{
  display:none !important;
}


/* ====================================
   Sections
==================================== */
.section { padding: 80px 0; }
.section--alt { background-color: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-lead{
  font-size: 1rem;
  color: rgba(0,0,0,0.78);
  max-width: 760px;
  margin: 14px auto 0;
  line-height: 1.85;
}

.section-heading-sub {
  text-align: center;
  font-size: 0.95rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(0, 0, 0, 0.45);
  margin-bottom: 40px;
}

.section-heading-main{
  color: var(--walnut);
}

/* ====================================
   Layout helpers
==================================== */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.split--wide {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
}

@media (max-width: 900px){
  .split, .split--wide { grid-template-columns: 1fr; }
}

.two-col{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

@media (max-width: 900px){
  .two-col{ grid-template-columns: 1fr; }
}

.stack-lg > * + *{ margin-top: 44px; }

.block-title{
  font-family: "Playfair Display", serif;
  color: var(--walnut);
  font-size: 1.25rem;
  margin: 0 0 18px;
}

/* ====================================
   Tag / Pills
==================================== */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background-color: rgba(0,0,0,0.04);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(0,0,0,0.6);
  margin-bottom: 16px;
}

/* ====================================
   Buttons
==================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.18s ease-out;
  white-space: nowrap;
}

.btn-primary {
  background-color: #ffffff;
  color: var(--deep-green);
  border-color: rgba(255,255,255,0.8);
}

.btn-primary:hover {
  background-color: rgba(255,255,255,0.95);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.28);
}

.btn-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: rgba(255,255,255,0.7);
}

.btn-outline:hover {
  background-color: rgba(0,0,0,0.18);
  transform: translateY(-1px);
}

.btn-parking {
  background-color: transparent;
  color: var(--deep-green);
  border: 1px solid var(--deep-green);
}

.btn-parking:hover {
  background-color: var(--deep-green);
  color: #ffffff;
}

/* ====================================
   Index Hero (existing)
==================================== */
.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(0, 45, 35, 0.75), rgba(0, 0, 0, 0.45)),
    url("images/hero-golf-course.jpg");
  background-size: cover;
  background-position: center;
  filter: saturate(105%);
}

.hero-inner { position: relative; z-index: 1; width: 100%; }

.hero-content { max-width: 640px; padding: 80px 0 40px; }

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  margin-bottom: 16px;
  opacity: 0.85;
}

.hero-title {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin-bottom: 24px;
}

.hero-sub { font-size: 0.98rem; margin-bottom: 32px; opacity: 0.95; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
/* ====================================
   Index Hero title fix
==================================== */
.hero .hero-title {
  color: #ffffff;
}

/* ====================================
   Cards (base)
==================================== */
.card {
  background-color: #fff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.card-body { padding: 20px 22px 22px; }

.card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* Index card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.card-title { font-size: 1.1rem; margin-bottom: 8px; color: var(--walnut); }

.card-text { font-size: 0.9rem; color: rgba(0,0,0,0.8); }

@media (max-width: 900px){
  .card-grid{ grid-template-columns: 1fr; }
}

/* ====================================
   Page Hero (Sauna/Simulator unified)
==================================== */
.page-hero { padding-top: 72px; padding-bottom: 72px; }

.hero-card{
  background:#fff;
  border-radius:24px;
  box-shadow:0 16px 40px rgba(0,0,0,0.06);
  padding:32px 36px;
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(0, 1fr);
  gap:32px;
  align-items:center;
}

.hero-media img{
  width:100%;
  height:100%;
  max-height:360px;
  object-fit:cover;
  border-radius:18px;
}

.hero-eyebrow{
  font-size:0.8rem;
  letter-spacing:0.18em;
  text-transform:uppercase;
  color:rgba(0,0,0,0.5);
  margin:0 0 10px;
}

.hero-title{
  font-size:clamp(1.9rem, 3vw, 2.4rem);
  margin:0 0 14px;
  color:var(--walnut);
}

.hero-text{
  font-size:0.92rem;
  line-height:1.9;
  color:rgba(0,0,0,0.8);
}

@media (max-width: 900px){
  .page-hero{ padding-top:56px; padding-bottom:56px; }
  .hero-card{
    grid-template-columns:1fr;
    padding:22px 18px;
    border-radius:18px;
    gap:20px;
  }
  .hero-media img{ max-height: 360px; }
}

/* ====================================
   Feature cards (3 columns)
==================================== */
.feature-grid{
  display:grid;
  gap:28px;
}

.feature-grid--3{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-title{
  font-family:"Playfair Display", serif;
  color: var(--walnut);
  font-size: 1.1rem;
  margin: 0 0 10px;
}

.feature-text{
  font-size: 0.95rem;
  color: rgba(0,0,0,0.82);
  margin: 0;
}

@media (max-width: 900px){
  .feature-grid--3{ grid-template-columns: 1fr; }
}

/* ====================================
   Media / Content panels (2-pane sections)
==================================== */
.media-panel img{
  width:100%;
  border-radius:18px;
  box-shadow:0 12px 32px rgba(0,0,0,0.08);
}

.content-panel p{
  font-size:0.95rem;
  color:rgba(0,0,0,0.82);
  margin: 0 0 12px;
}

.bullets{
  padding-left: 1.2em;
  margin: 12px 0 0;
}

.bullets li + li{ margin-top: 6px; }

.note-box{
  background:#fff;
  padding:22px 24px;
  border-radius:16px;
  border:1px solid var(--border-soft);
  box-shadow:0 8px 20px rgba(0,0,0,0.03);
}

/* Data list */
.data-list{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.93rem;
  color: rgba(0,0,0,0.82);
}

.data-list li + li{ margin-top: 8px; }

/* ====================================
   Media grid (manual/materials)
==================================== */
.media-grid{
  display:grid;
  gap:24px;
}

.media-grid--2{
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.media-card img{ width:100%; height:auto; display:block; }

.media-caption{
  padding: 12px 14px 14px;
  line-height: 1.7;
  font-size: 0.9rem;
  color: rgba(0,0,0,0.82);
}

@media (max-width: 900px){
  .media-grid--2{ grid-template-columns: 1fr; }
}

/* ====================================
   Rooms (existing, kept)
==================================== */
.room-summary {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  font-size: 0.9rem;
}

.room-summary li + li { margin-top: 4px; }
.room-summary-label { font-weight: 500; }

.rooms-visual { display: flex; flex-direction: column; gap: 14px; }

.floorplans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.floorplan-img { width: 100%; border-radius: 10px; }

@media (max-width: 768px){
  .floorplans{ grid-template-columns: 1fr; }
}

/* Rooms Page (from previous refactor) */
.rooms-intro{
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
  margin-bottom: 48px;
}

.rooms-intro-plan{ display: flex; justify-content: flex-end; }

.rooms-plan-img{
  width: 100%;
  max-width: 520px;
  border-radius: 14px;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 26px rgba(0,0,0,0.06);
}

.rooms-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.room-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.room-name{
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  margin: 0 0 6px;
  color: var(--walnut);
}

.room-meta{
  font-size: 0.85rem;
  color: #a67c52;
  font-weight: 500;
  margin: 0 0 10px;
}

.room-text{
  font-size: 0.9rem;
  color: rgba(0,0,0,0.82);
  margin: 0 0 10px;
}

.room-list{
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: rgba(0,0,0,0.75);
}

.room-list li + li{ margin-top: 4px; }

@media (max-width: 900px){
  .rooms-intro{ grid-template-columns: 1fr; }
  .rooms-grid{ grid-template-columns: 1fr; }
}

/* ====================================
   Gallery (index)
==================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 95px;
  gap: 8px;
}

.gallery-item {
  border-radius: 14px;
  overflow: hidden;
}

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

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px){
  .gallery-grid{
    grid-template-columns: repeat(2, minmax(0,1fr));
    grid-auto-rows: 110px;
  }
}

/* ====================================
   Access (index)
==================================== */
.access-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 40px;
}

.map-wrapper {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  padding-bottom: 65%;
}

.map-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px){
  .access-grid{ grid-template-columns: 1fr; }
}



/* ====================================
   Golf page fixes (map size + spacing)
==================================== */
.page-golf .page-top-narrow{
  padding-top: 32px;
  padding-bottom: 32px;
}

.page-golf .map-embed{
  width: 100%;
  margin-top: 16px;
}

.page-golf .map-embed iframe{
  width: 100%;
  height: 420px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
}

@media (max-width: 768px){
  .page-golf .map-embed iframe{ height: 320px; }
}

/* ====================================
   Lightbox (single source of truth)
==================================== */
.lightbox-overlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease-out;
  z-index: 1000;
}

.lightbox-overlay.is-active{
  opacity: 1;
  pointer-events: auto;
}

.lightbox-backdrop{
  position: absolute;
  inset: 0;
}

.lightbox-inner{
  position: relative;
  z-index: 1;
  max-width: 92vw;
  max-height: 92vh;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-image{
  max-width: 100%;
  max-height: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  background: #000;
}

.lightbox-nav,
.lightbox-close{
  position: absolute;
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  transition: background 0.15s ease-out, transform 0.15s ease-out;
}

.lightbox-nav:hover,
.lightbox-close:hover{
  background: rgba(0,0,0,0.8);
  transform: translateY(-1px);
}

.lightbox-close{
  top: -16px;
  right: -16px;
}

.lightbox-prev{
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next{
  right: -18px;
  top: 50%;
  transform: translateY(-50%);
}

@media (max-width: 768px){
  .lightbox-inner{ max-width: 96vw; max-height: 86vh; }
  .lightbox-prev{ left: 4px; }
  .lightbox-next{ right: 4px; }
  .lightbox-close{ top: 8px; right: 8px; }
}

body.lightbox-open{ overflow: hidden; }

/* ====================================
   Responsive small
==================================== */
@media (max-width: 600px){
  .section{ padding: 64px 0; }
  .hero-content{ padding: 70px 0 32px; }
  .hero-actions{ flex-direction: column; align-items: stretch; }
}
/* ====================================
   Footer
==================================== */
.site-footer{
  padding: 32px 0 40px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(0,0,0,0.55);
  border-top: 1px solid var(--border-soft);
  background-color: #f7f5f1;
}

.footer-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

@media (max-width: 600px){
  .footer-inner{
    flex-direction: column-reverse;
    align-items: center;
  }
  .footer-copy{
    text-align: center;
  }
}

/* ====================================
   Back to Top Button
==================================== */
.back-to-top{
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background-color: var(--walnut);
  color: #ffffff;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease-out,
    transform 0.2s ease-out,
    visibility 0.2s ease-out;
  z-index: 50;
}

.back-to-top:hover{
  transform: translateY(4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.back-to-top.is-visible{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


/* Utility: force left alignment when needed */
.text-left{ text-align: left !important; }

/* JSの復帰用プレースホルダはレイアウトに影響させない */
.lang-select-placeholder{
  display: none !important;
}

