/* 凪間 — 色・書体・余白は 素材/DESIGN.md */
:root {
  --bg: #F5F1EA;
  --surface: #FFFFFF;
  --ink: #2B2724;
  --ink-soft: #6E655C;
  --indigo: #2B211B; /* お膳・縁側の焦茶(動画の実測から。10/9 優奈さんがA藍・B茄子紺・C焦茶からCを選択) */
  --indigo-hover: #3D3029;
  --accent: #A0582F; /* 夕陽の朱。文字にも使うので背景との差4.7(目安4.5)まで濃くした */
  --line: rgba(43, 39, 36, .14);
  --gutter: 80px;
  --section-y: 160px;
  --max: 1280px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --serif: "Shippori Mincho", serif;
  --sans: "Zen Kaku Gothic New", sans-serif;
  --en: "Cormorant Garamond", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: .04em;
  text-autospace: normal;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; word-break: auto-phrase; text-wrap: balance; }

/* 紙の手ざわり(固定・押せない層) */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 上の帯 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 88px; padding: 0 48px;
  color: #fff;
  transition: background-color .5s var(--ease), color .5s var(--ease), height .5s var(--ease);
}
.site-header.is-solid { background: rgba(245, 241, 234, .96); color: var(--ink); height: 72px; box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; align-items: baseline; gap: 14px; justify-self: start; }
.logo-ja { font-family: var(--serif); font-size: 26px; letter-spacing: .2em; font-weight: 600; }
.logo-en { font-family: var(--en); font-size: 13px; letter-spacing: .35em; font-weight: 300; }
.gnav { display: flex; gap: 32px; font-size: 13px; letter-spacing: .12em; }
.gnav a { position: relative; padding: 6px 0; }
.gnav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.gnav a:hover::after { transform: scaleX(1); transform-origin: left; }
.btn-reserve {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--indigo); color: #fff;
  padding: 12px 28px; font-size: 13px; letter-spacing: .2em;
  transition: background-color .4s var(--ease), transform .2s var(--ease);
}
.btn-reserve:hover { background: var(--indigo-hover); }
.btn-reserve:active { transform: scale(.98); }
.menu-btn { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; color: #fff; background: var(--indigo); }
.hero-media, .hero-slide { position: absolute; inset: 0; }
.hero-slide { opacity: 0; transition: opacity 1.2s ease-in-out; }
.hero-slide.is-active { opacity: 1; }
.hero-slide video { width: 100%; height: 100%; object-fit: cover; }
/* 文字の読みやすさのため、上と左下だけ少し暗くする(映像そのものは暗くしない) */
.hero-shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(20, 24, 30, .42) 0, rgba(20, 24, 30, 0) 22%),
    linear-gradient(to top right, rgba(20, 24, 30, .5) 0, rgba(20, 24, 30, 0) 48%);
}
.hero-captions { position: absolute; left: var(--gutter); bottom: 120px; width: min(460px, calc(100% - 2 * var(--gutter))); }
.hero-caption { position: absolute; left: 0; bottom: 0; width: 100%; visibility: hidden; transition: visibility 0s .4s; }
.hero-caption.is-active { visibility: visible; transition-delay: 0s; }
.hero-caption > * { opacity: 0; transform: translateY(10px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hero-caption.is-active > * { opacity: 1; transform: none; transition-duration: .8s; }
.hero-caption.is-active .hero-caption-text { transition-delay: .15s; }
.hero-caption-title {
  font-family: var(--serif); font-size: 30px; letter-spacing: .3em; margin-bottom: 14px;
  display: flex; align-items: center; gap: 18px;
}
.hero-caption-title::after { content: ""; width: 48px; height: 1px; background: rgba(255, 255, 255, .7); }
.hero-caption-text { font-size: 14px; line-height: 2.1; letter-spacing: .12em; text-shadow: 0 1px 12px rgba(0, 0, 0, .25); }
.hero-dots { position: absolute; left: var(--gutter); bottom: 56px; display: flex; gap: 12px; }
.hero-dot { width: 56px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; }
.hero-dot span { position: relative; display: block; width: 100%; height: 1px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.hero-dot span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.hero-dot.is-active span::after { animation: dotFill var(--slide-ms, 6000ms) linear forwards; }
@keyframes dotFill { to { transform: scaleX(1); } }
.hero-place { position: absolute; right: var(--gutter); bottom: 56px; font-family: var(--en); font-size: 13px; letter-spacing: .35em; opacity: .85; }

/* 開いた直後 */
.is-loading .site-header, .is-loading .hero-captions, .is-loading .hero-dots, .is-loading .hero-place { opacity: 0; }
.site-header, .hero-captions, .hero-dots, .hero-place { transition-property: opacity, background-color, color, height; }
.hero-captions { transition: opacity 1.2s var(--ease) .3s; }

/* ---------- 共通 ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section > * { max-width: var(--max); margin-inline: auto; }
.label { font-family: var(--en); font-size: 14px; letter-spacing: .35em; color: var(--accent); margin-bottom: 18px; }
.label--light { color: #E3B597; }
.sec-head { margin-bottom: 72px; }
.sec-title {
  font-family: var(--serif); font-size: clamp(28px, 3.2vw, 40px); line-height: 1.6; letter-spacing: .14em;
  font-feature-settings: "palt"; display: flex; align-items: center; flex-wrap: wrap; gap: 0 28px;
}
.sec-lead { margin-top: 20px; color: var(--ink-soft); }
/* 見出し横の波の細い線(飾り) */
.wave {
  display: inline-block; width: 72px; height: 10px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='10' viewBox='0 0 72 10'%3E%3Cpath d='M0 5 Q 6 0 12 5 T 24 5 T 36 5 T 48 5 T 60 5 T 72 5' fill='none' stroke='%23A0582F' stroke-width='1'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* スクロールで出てくる */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 宿について ---------- */
.about-inner { display: grid; grid-template-columns: auto 1.4fr 1fr; gap: 64px; align-items: start; }
.v-title {
  writing-mode: vertical-rl; font-family: var(--serif); font-size: 34px; letter-spacing: .24em; line-height: 1.9;
  height: 15em;
}
.v-title span { display: block; }
.v-title span + span { margin-top: 3em; }
.about-text { padding-top: 120px; display: grid; gap: 1.4em; }

/* ---------- 客室 ---------- */
.room-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 40px; }
.room:nth-child(2) { margin-top: 80px; }
.room figure { overflow: hidden; aspect-ratio: 4 / 5; margin-bottom: 28px; }
.room figure img { height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.room:hover figure img { transform: scale(1.04); }
.room-no { font-family: var(--en); font-size: 14px; color: var(--accent); letter-spacing: .2em; }
.room-name { font-family: var(--serif); font-size: 26px; letter-spacing: .2em; display: flex; align-items: baseline; gap: 14px; margin: 4px 0 10px; }
.room-name span { font-family: var(--en); font-size: 13px; letter-spacing: .3em; color: var(--ink-soft); font-weight: 300; }
.room-meta { font-size: 13px; color: var(--ink-soft); padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }

/* ---------- 温泉 ---------- */
.onsen { display: grid; grid-template-columns: 1.5fr 1fr; gap: 80px; align-items: center; max-width: none; }
.onsen > * { max-width: none; margin: 0; }
.onsen-photo { margin-left: calc(-1 * var(--gutter)); }
.onsen-body .sec-title { margin-bottom: 32px; }
.spec { margin: 40px 0 0; border-top: 1px solid var(--line); }
.spec div { display: grid; grid-template-columns: 5em 1fr; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec dt { color: var(--accent); letter-spacing: .2em; }
.spec dd { margin: 0; }

/* ---------- お料理 ---------- */
.cuisine { background: var(--surface); }
.cuisine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.cuisine-item:nth-child(2) { margin-top: 120px; }
.cuisine-photo { overflow: hidden; aspect-ratio: 3 / 2; margin-bottom: 32px; }
.cuisine-photo img { height: 100%; object-fit: cover; }
.cuisine-item h3 { font-family: var(--serif); font-size: 24px; letter-spacing: .24em; display: flex; align-items: baseline; gap: 16px; margin-bottom: 14px; }
.cuisine-item h3 span { font-family: var(--en); font-size: 13px; letter-spacing: .3em; color: var(--ink-soft); font-weight: 300; }

/* ---------- プラン ---------- */
.plan-list { display: grid; gap: 40px; }
.plan { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface); }
.plan figure { overflow: hidden; }
.plan figure img { height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.plan-body { padding: 48px 56px; display: flex; flex-direction: column; gap: 12px; }
.plan-tag { align-self: flex-start; font-size: 12px; letter-spacing: .2em; color: var(--accent); border: 1px solid var(--accent); padding: 2px 12px; }
.plan h3 { font-family: var(--serif); font-size: 24px; letter-spacing: .12em; line-height: 1.6; }
.plan-price { font-family: var(--en); font-size: 36px; letter-spacing: .04em; margin-top: auto; line-height: 1.3; }
.plan-price span { display: block; font-family: var(--sans); font-size: 12px; color: var(--ink-soft); letter-spacing: .1em; }
.plan-price small { font-family: var(--sans); font-size: 13px; margin-left: 4px; }
.btn-primary {
  align-self: flex-start; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 16px;
  background: var(--indigo); color: #fff; padding: 16px 32px; font-size: 14px; letter-spacing: .14em;
  transition: background-color .4s var(--ease), transform .2s var(--ease);
}
.btn-primary::after { content: ""; width: 24px; height: 1px; background: currentColor; transition: transform .4s var(--ease); }
.btn-primary:hover { background: var(--indigo-hover); }
.btn-primary:hover::after { transform: translateX(4px); }
.btn-primary:active { transform: scale(.98); }

/* ---------- アクセス ---------- */
.access-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 80px; align-items: center; }
.access-body .sec-title { margin-bottom: 40px; }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.route li { display: grid; grid-template-columns: 3em 1fr; }
.route span { font-family: var(--en); color: var(--accent); font-size: 18px; line-height: 1.7; }
.note { margin-top: 24px; font-size: 13px; color: var(--ink-soft); }

/* ---------- 予約の帯 ---------- */
.reserve { background: var(--indigo); color: #fff; padding: 140px var(--gutter); text-align: center; }
.reserve-title { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 42px); letter-spacing: .2em; margin-bottom: 20px; font-feature-settings: "palt"; }
.reserve p:not(.label) { color: rgba(255, 255, 255, .78); }
.reserve-actions { display: flex; justify-content: center; align-items: center; gap: 56px; margin-top: 48px; flex-wrap: wrap; }
.btn-light {
  background: #fff; color: var(--indigo); padding: 20px 56px; font-size: 15px; letter-spacing: .2em;
  transition: background-color .4s var(--ease), transform .2s var(--ease);
}
.btn-light:hover { background: #ECE6DC; }
.btn-light:active { transform: scale(.98); }
.tel { font-family: var(--en); font-size: 32px; letter-spacing: .1em; text-align: left; line-height: 1.3; }
.tel small { display: block; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; opacity: .75; }

/* ---------- フッター ---------- */
.site-footer { padding: 72px var(--gutter) 48px; font-size: 13px; color: var(--ink-soft); }
.footer-inner { max-width: var(--max); margin: 0 auto; display: grid; gap: 8px; }
.footer-logo { font-family: var(--serif); font-size: 20px; color: var(--ink); letter-spacing: .2em; }
.footer-logo span { font-family: var(--en); font-size: 12px; letter-spacing: .35em; margin-left: 14px; }
.footer-note { margin-top: 16px; font-size: 12px; }
.copy { margin-top: 24px; font-family: var(--en); letter-spacing: .2em; }

/* ---------- タブレット ---------- */
@media (max-width: 1100px) {
  .gnav { display: none; }
  .site-header { grid-template-columns: 1fr auto auto; gap: 16px; }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  :root { --gutter: 20px; --section-y: 96px; }
  body { font-size: 14px; }
  .site-header, .site-header.is-solid { height: 64px; padding: 0 0 0 20px; grid-template-columns: 1fr auto auto; gap: 0; }
  .logo-ja { font-size: 22px; }
  .logo-en { display: none; }
  .btn-reserve { padding: 0 16px; height: 64px; font-size: 12px; letter-spacing: .12em; }
  .menu-btn {
    display: block; position: relative; width: 60px; height: 64px; border: 0; background: none; color: inherit; cursor: pointer; z-index: 60;
  }
  .menu-btn span { position: absolute; left: 18px; width: 24px; height: 1px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
  .menu-btn span:first-child { top: 27px; }
  .menu-btn span:last-child { top: 36px; }
  .menu-open .menu-btn span:first-child { top: 32px; transform: rotate(30deg); }
  .menu-open .menu-btn span:last-child { top: 32px; transform: rotate(-30deg); }
  .menu-open .site-header { color: var(--ink); }

  .hero-captions { bottom: 104px; }
  .hero-caption-title { font-size: 24px; margin-bottom: 10px; }
  .hero-caption-text { font-size: 13px; }
  .hero-dots { bottom: 52px; }
  .hero-dot { width: 40px; }
  .hero-place { display: none; }

  .about-inner { grid-template-columns: 1fr; gap: 40px; }
  .v-title { writing-mode: horizontal-tb; height: auto; font-size: 26px; letter-spacing: .14em; line-height: 1.7; }
  .v-title span + span { margin-top: 0; }
  .about-photo { margin-inline: calc(-1 * var(--gutter)); }
  .about-text { padding-top: 0; }

  .sec-head { margin-bottom: 48px; }
  .room-list { grid-template-columns: 1fr; gap: 64px; }
  .room:nth-child(2) { margin-top: 0; }
  .room figure { aspect-ratio: 4 / 3; }

  .onsen { grid-template-columns: 1fr; gap: 40px; }
  .onsen-photo { margin-inline: calc(-1 * var(--gutter)); }

  .cuisine-grid { grid-template-columns: 1fr; gap: 64px; }
  .cuisine-item:nth-child(2) { margin-top: 0; }

  .plan { grid-template-columns: 1fr; }
  .plan-body { padding: 28px 24px 32px; }
  .plan-price { font-size: 30px; margin-top: 8px; }
  .btn-primary { align-self: stretch; justify-content: center; }

  .access-inner { grid-template-columns: 1fr; gap: 40px; }
  .access-photo { order: -1; margin-inline: calc(-1 * var(--gutter)); }

  .reserve { padding: 96px var(--gutter); }
  .reserve-actions { flex-direction: column; gap: 32px; }
  .btn-light { width: 100%; }
  .tel { text-align: center; font-size: 28px; }
}

/* スマホのメニュー(全画面) */
.sp-menu {
  position: fixed; inset: 0; z-index: 40; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 48px; padding: 96px 40px 48px;
  opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s;
}
.menu-open .sp-menu { opacity: 1; visibility: visible; }
.sp-menu nav { display: grid; gap: 4px; }
.sp-menu nav a {
  font-family: var(--serif); font-size: 22px; letter-spacing: .2em; padding: 12px 0; border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu-open .sp-menu nav a { opacity: 1; transform: none; }
.menu-open .sp-menu nav a:nth-child(2) { transition-delay: .05s; }
.menu-open .sp-menu nav a:nth-child(3) { transition-delay: .1s; }
.menu-open .sp-menu nav a:nth-child(4) { transition-delay: .15s; }
.menu-open .sp-menu nav a:nth-child(5) { transition-delay: .2s; }
.menu-open .sp-menu nav a:nth-child(6) { transition-delay: .25s; }
.btn-reserve--lg { justify-self: stretch; justify-content: center; height: auto; padding: 18px; font-size: 14px; }
.menu-open { overflow: hidden; }
@media (min-width: 768px) { .sp-menu { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-slide, .hero-caption > * { transition: none; }
}
