/* ==========================================================
   おもひで野じんで — style.css
   ========================================================== */

:root {
  --indigo: #7a4a2f;
  --indigo-dark: #5c3821;
  --gold: #c47a3d;
  --gold-light: #dd9c5e;
  --cream: #15110d;
  --cream-alt: #1f1811;
  --text: #ece1d0;
  --text-soft: #b6a891;
  --ink: #3f362c;
  --ink-soft: #6b6053;
  --pill: #f3e9d9;
  --white: #ffffff;
  --shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  --radius: 10px;
  --serif: "Shippori Mincho", serif;
  --sans: "Noto Sans JP", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--serif);
  color: var(--text);
  background: var(--cream);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  margin: 0;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.pc-only { display: inline; }
@media (max-width: 600px) {
  .pc-only { display: none; }
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-block;
  padding: 14px 34px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--gold-light); }

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

.btn-plan {
  display: block;
  text-align: center;
  margin-top: 16px;
  padding: 10px 20px;
  font-size: 0.85rem;
  background: var(--indigo);
  color: var(--white);
}
.btn-plan:hover { background: var(--indigo-dark); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease, padding 0.35s ease;
  padding: 18px 0;
}
.site-header.scrolled {
  background: rgba(21, 17, 13, 0.96);
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  padding: 8px 0;
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand-ja {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
  transition: color 0.35s ease;
  letter-spacing: 0.04em;
}
.site-header.scrolled .brand-ja { color: var(--gold-light); }

.site-nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-link {
  font-size: 0.92rem;
  color: var(--white);
  position: relative;
  transition: color 0.35s ease;
  padding-bottom: 4px;
}
.site-header.scrolled .nav-link { color: var(--text); }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  padding: 8px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
}
.nav-cta::after { display: none; }

.lang-toggle {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  color: var(--white);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.25s ease;
}
.lang-toggle:hover { background: rgba(255,255,255,0.15); }
.site-header.scrolled .lang-toggle {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 32px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}
.nav-toggle span {
  height: 2px;
  background: var(--white);
  transition: background 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}
.site-header.scrolled .nav-toggle span { background: var(--text); }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 118%;
  object-fit: cover;
  transform: translateY(var(--hero-parallax, 0px));
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .hero-bg img { transform: none !important; }
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(50,32,20,0.5) 0%, rgba(50,32,20,0.3) 45%, rgba(50,32,20,0.7) 100%);
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 0 20px;
}
.hero-overline {
  letter-spacing: 0.3em;
  font-size: 0.85rem;
  margin-bottom: 18px;
  opacity: 0.9;
}
.hero-title {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: 0.08em;
  margin-bottom: 22px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.35);
}
.hero-title-line {
  display: block;
}
.hero-title-line-2 {
  margin-left: clamp(0px, 12vw, 2.6em);
}
@media (max-width: 600px) {
  .hero-title-line-2 { margin-left: 1.2em; }
}
.hero-lead {
  font-size: clamp(1rem, 2vw, 1.2rem);
  margin-bottom: 40px;
  font-weight: 300;
}
.hero-actions {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-cue {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  width: 24px;
  height: 40px;
  border: 1.5px solid rgba(255,255,255,0.7);
  border-radius: 14px;
}
.scroll-cue span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  background: var(--white);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; top: 8px; }
  100% { opacity: 0; top: 20px; }
}

/* ---------- セクション共通 ---------- */
.section {
  padding: 110px 0;
}
.section-alt {
  background: var(--cream-alt);
}
.section-head {
  margin-bottom: 28px;
}
.section-overline {
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--gold);
  margin-bottom: 14px;
  font-weight: 500;
}
.section-title {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--gold-light);
}
.section-lead {
  max-width: 640px;
  margin: 0 0 60px;
  color: var(--text-soft);
}

/* ---------- 写真枠 ---------- */
.photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--cream-alt);
}
.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  --photo-scale: 1.1;
  transform: translateY(var(--photo-parallax, 0px)) scale(var(--photo-scale));
  transition: transform 0.6s ease;
  will-change: transform;
}
.photo:hover img { --photo-scale: 1.16; }
@media (prefers-reduced-motion: reduce) {
  .photo img { --photo-parallax: 0px !important; }
}

/* ---------- コンセプト ---------- */
.concept-grid {
  display: grid;
  margin-bottom: 60px;
}
.concept-text { max-width: 640px; }
.concept-text p { margin: 0 0 20px; color: var(--text-soft); }
.concept-text p:last-child { margin-bottom: 0; }

.stat-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  padding: 10px 20px;
  background: var(--pill);
  border-radius: 999px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--ink);
}

.gallery {
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
}
.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
}
.gallery-item {
  width: 260px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  flex: none;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ---------- 貸切風呂 ---------- */
.bath-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
}
.bath-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bath-body { padding: 22px 24px 26px; }
.bath-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--indigo);
}
.bath-body p { color: var(--ink-soft); margin: 0; font-size: 0.94rem; }

.onsen-info {
  margin-top: 44px;
  padding: 32px 36px;
  background: var(--pill);
  border-radius: var(--radius);
}
.onsen-info h3 {
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 18px;
}
.onsen-info dl { margin: 0; }
.onsen-info-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  margin-bottom: 10px;
}
.onsen-info-row dt {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.92rem;
}
.onsen-info-row dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.onsen-info-note {
  margin: 16px 0 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  opacity: 0.85;
}
@media (max-width: 600px) {
  .onsen-info { padding: 26px 22px; }
  .onsen-info-row { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- 安心ポイント ---------- */
.trust-band { padding: 60px 0; }
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  text-align: center;
}
.trust-item p {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.trust-icon { font-size: 1.9rem; }

/* ---------- モバイル固定予約バー ---------- */
.mobile-reserve-bar {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 950;
  background: var(--white);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.12);
}
.mrb-btn {
  flex: 1;
  text-align: center;
  padding: 14px 10px;
  font-family: var(--serif);
  font-size: 0.92rem;
}
.mrb-tel { background: var(--indigo); color: var(--white); }
.mrb-cta { background: var(--gold); color: var(--white); }

/* ---------- 客室 ---------- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
}
.room-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.room-grid .room-card:first-child {
  grid-column: 1 / -1;
  display: flex;
}
.room-grid .room-card:first-child .photo {
  width: 56%;
  aspect-ratio: auto;
  flex: none;
}
.room-grid .room-card:first-child .room-body {
  width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 42px;
}
.room-grid .room-card:first-child .room-body h3 {
  font-size: 1.5rem;
}
.room-body { padding: 22px 24px 26px; }
.room-body h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--indigo);
}
.room-meta {
  font-size: 0.82rem;
  color: var(--gold);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}
.room-body p:not(.room-meta) { color: var(--ink-soft); margin: 0; font-size: 0.94rem; }

/* ---------- お食事（split） ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 80px;
}
.split:last-child { margin-bottom: 0; }
.split-reverse .split-image { order: 2; }
.split-reverse .split-text { order: 1; }
.split-text h3 {
  font-size: 1.3rem;
  color: var(--gold-light);
  margin-bottom: 18px;
}
.split-text p { color: var(--text-soft); margin: 0 0 10px; }
.note { font-size: 0.85rem; color: var(--text-soft); opacity: 0.85; }

/* ---------- 宿泊プラン ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.plan-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.plan-body { padding: 20px 20px 24px; flex: 1; display: flex; flex-direction: column; }
.plan-body h3 { font-size: 1rem; color: var(--indigo); margin-bottom: 10px; }
.plan-body p { color: var(--ink-soft); font-size: 0.88rem; margin: 0; flex: 1; }
.plan-body p.plan-note { flex: none; font-size: 0.76rem; opacity: 0.75; margin-top: 10px; }

/* ---------- 周辺観光 ---------- */
.spot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 28px;
}
.spot-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.spot-icon {
  font-size: 1.8rem;
  margin-bottom: 14px;
}
.spot-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  color: var(--indigo);
}
.spot-tag {
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0 0 12px;
  letter-spacing: 0.03em;
}
.spot-card p:not(.spot-tag) {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0 0 20px;
  flex: 1;
}
.spot-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 500;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.spot-link span { transition: transform 0.25s ease; }
.spot-link:hover {
  background: var(--gold);
  color: var(--white);
}
.spot-link:hover span { transform: translateX(3px); }

/* ---------- アクセス ---------- */
.access-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: stretch;
}
.access-info dl { margin: 0; }
.access-info dt {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 0.95rem;
  margin-top: 22px;
}
.access-info dt:first-child { margin-top: 0; }
.access-info dd {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 0.92rem;
}
.access-info a { color: var(--gold-light); border-bottom: 1px solid currentColor; }
.access-map {
  min-height: 320px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.access-map iframe { width: 100%; height: 100%; min-height: 320px; }

/* ---------- ご予約 ---------- */
.reservation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.reservation-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  text-align: center;
}
.reservation-card h3 {
  font-size: 1.15rem;
  color: var(--indigo);
  margin-bottom: 20px;
}
.reservation-card p { color: var(--ink-soft); margin: 18px 0 0; font-size: 0.9rem; }
.reservation-card .note { color: var(--ink-soft); }
.phone-number {
  font-family: var(--serif);
  font-size: 2rem;
  color: var(--gold);
  letter-spacing: 0.05em;
}

/* ---------- フッター ---------- */
.site-footer {
  background: var(--indigo-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 0 20px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 30px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-title {
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 10px;
}
.footer-brand p { margin: 4px 0; font-size: 0.9rem; }
.footer-brand a:hover { text-decoration: underline; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  align-content: flex-start;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: var(--gold-light); }
.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
  margin: 24px 0 0;
}

/* ---------- トップへ戻る ---------- */
.to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--indigo);
  color: var(--white);
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 900;
}
.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- スクロールリビール ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- レスポンシブ ---------- */
/* ヘッダーのナビは項目数が多いため、通常のタブレット幅でも
   折り返し崩れが起きないよう早めにハンバーガーメニューへ切り替える */
@media (max-width: 1150px) {
  .nav-toggle { display: flex; }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(78vw, 320px);
    background: var(--cream);
    box-shadow: -8px 0 30px rgba(0,0,0,0.15);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    padding: 100px 36px;
  }
  .site-nav.open { transform: translateX(0); }
  .site-nav ul {
    flex-direction: column;
    gap: 26px;
  }
  .nav-link { color: var(--text) !important; }
  .nav-cta { display: inline-block; width: fit-content; }
  .lang-toggle { color: var(--text) !important; border-color: var(--text) !important; align-self: flex-start; }

  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle.open span { background: var(--text) !important; }
}

@media (max-width: 900px) {
  .concept-grid, .split, .access-grid, .reservation-grid {
    grid-template-columns: 1fr;
  }
  .split-reverse .split-image, .split-reverse .split-text { order: 0; }
  .room-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .room-grid { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .bath-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 20px; }
  .room-grid .room-card:first-child { flex-direction: column; }
  .room-grid .room-card:first-child .photo,
  .room-grid .room-card:first-child .room-body { width: 100%; }
  .room-grid .room-card:first-child .room-body { padding: 22px 24px 26px; }

  .mobile-reserve-bar { display: flex; }
  body { padding-bottom: 54px; }
  .to-top { bottom: 70px; }
}
