/* ============================================
   sections.css — 各セクションスタイル
   ============================================ */

/* ════════════════════════════════════════════
   1. メインビジュアル
   ════════════════════════════════════════════ */
#hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

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

.hero-bg .ph {
  width: 100%;
  height: 100%;
}

/* 暗幕グラデーション — 右側をやや暗く */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to left,
    rgba(10,8,5,0.72) 0%,
    rgba(10,8,5,0.30) 50%,
    rgba(10,8,5,0.04) 100%
  );
}

/* 縦書きコピー — 右寄せ */
.hero-copy {
  position: absolute;
  right: clamp(40px, 7vw, 120px);
  top: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
}

.hero-main-copy {
  writing-mode: vertical-rl;
  font-family: var(--ff-ja);
  font-weight: 200;
  font-size: clamp(40px, 9vh, 84px);
  letter-spacing: 0.18em;
  color: var(--c-white);
  line-height: 1.3;
  text-shadow: 0 2px 32px rgba(0,0,0,0.3);
  font-feature-settings: "palt" 1;
}

.hero-sub-copy {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: clamp(11px, 1.05vw, 13px);
  letter-spacing: 0.22em;
  color: rgba(250,247,242,0.72);
  writing-mode: horizontal-tb;
  line-height: 1.9;
  text-align: right;
}

/* ヒーロー下端グラデーション（次セクションへ溶け込む） */
#hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to top, var(--c-bg) 0%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

/* スクロールインジケーター */
.hero-scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.hero-scroll span {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: 9px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.6);
}

.hero-scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(250,247,242,0.4);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(250,247,242,0.9);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { top: -100%; }
  100% { top: 100%; }
}

/* ════════════════════════════════════════════
   2. 旅館紹介
   ════════════════════════════════════════════ */
#about {
  background: var(--c-bg);
}

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.about-photos {
  display: grid;
  grid-template-columns: 1fr 0.42fr;
  grid-template-rows: auto;
  gap: 16px;
  position: relative;
}

.about-photo-main .ph {
  aspect-ratio: 4/5;
  width: 100%;
}

.about-photo-sub .ph {
  aspect-ratio: 3/5;
  width: 100%;
  margin-top: 60px;
}

.about-text {
  display: flex;
  flex-direction: column;
}

.about-text .divider { margin-block: 24px; }

/* ════════════════════════════════════════════
   3. 客室
   ════════════════════════════════════════════ */
#rooms {
  background: var(--c-bg-2);
}

.rooms-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.rooms-hero .ph {
  width: 100%;
  aspect-ratio: 16/7;
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rooms-grid .ph {
  aspect-ratio: 4/3;
  width: 100%;
}

.room-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.room-card img {
  transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.room-card:hover img {
  transform: scale(1.05);
}

.room-card-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(42,33,24,0.7) 0%, transparent 100%);
  padding: 32px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.room-card-label-en {
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(250,247,242,0.7);
}

.room-card-label-ja {
  font-family: var(--ff-ja);
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 300;
  color: var(--c-white);
}

/* ════════════════════════════════════════════
   4. 料理
   ════════════════════════════════════════════ */
#cuisine {
  background: var(--c-bg);
}

.cuisine-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}

.cuisine-photo .ph {
  aspect-ratio: 4/5;
  width: 100%;
}

.cuisine-text {
  display: flex;
  flex-direction: column;
}

.cuisine-text .divider { margin-block: 24px; }

/* ════════════════════════════════════════════
   5. 温泉
   ════════════════════════════════════════════ */
#spa {
  background: var(--c-bg-2);
  position: relative;
  overflow: hidden;
  padding-block: 0;
}

.spa-fullbleed {
  position: relative;
}

.spa-fullbleed .ph {
  width: 100%;
  aspect-ratio: 21/9;
}

/* 縦書きオーバーレイ */
.spa-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  background: linear-gradient(
    to right,
    rgba(42,33,24,0.45) 0%,
    rgba(42,33,24,0.1) 50%,
    rgba(42,33,24,0.4) 100%
  );
}

.spa-copy {
  margin-left: clamp(40px, 8vw, 120px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}

.spa-copy-main {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--ff-ja);
  font-weight: 200;
  font-size: clamp(22px, 3vw, 42px);
  letter-spacing: 0.25em;
  color: var(--c-white);
  line-height: 1.6;
}

.spa-copy-sub {
  font-family: var(--ff-en);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.25em;
  color: rgba(250,247,242,0.7);
  text-transform: uppercase;
}

/* 下部テキストブロック */
.spa-text-block {
  padding-block: clamp(60px, 6vw, 100px);
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
}

.spa-text-block .section-lead {
  text-align: center;
}

/* ════════════════════════════════════════════
   6. 館内・施設
   ════════════════════════════════════════════ */
#facilities {
  background: var(--c-bg-3);
}

.facilities-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: clamp(40px, 5vw, 72px);
}

.facilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.facility-item .ph {
  aspect-ratio: 3/4;
  width: 100%;
  margin-bottom: 16px;
}

.facility-item {
  overflow: hidden;
}

.facility-item img {
  transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.facility-item:hover img {
  transform: scale(1.05);
}

.facility-name-en {
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  display: block;
  margin-bottom: 6px;
}

.facility-name-ja {
  font-family: var(--ff-ja);
  font-size: 15px;
  letter-spacing: 0.12em;
  font-weight: 300;
  color: var(--c-ink);
}

/* ════════════════════════════════════════════
   7. おもてなし
   ════════════════════════════════════════════ */
#omotenashi {
  background: var(--c-bg);
  position: relative;
  overflow: hidden;
}

.omotenashi-inner {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
  position: relative;
}

/* 縦書き装飾 */
.omotenashi-vert {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--ff-ja);
  font-weight: 200;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: rgba(139,115,85,0.3);
  pointer-events: none;
}

.omotenashi-text {
  display: flex;
  flex-direction: column;
  order: -1;
}

.omotenashi-text .divider { margin-block: 24px; }

.omotenashi-photo .ph {
  aspect-ratio: 4/5;
  width: 100%;
}

/* ════════════════════════════════════════════
   8. 宿泊プラン
   ════════════════════════════════════════════ */
#plans {
  background: var(--c-bg-4);
}

.plans-head {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 80px);
}

.plans-head .divider {
  margin-inline: auto;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 32px);
}

.plan-card {
  background: var(--c-white);
  border: 1px solid rgba(139,115,85,0.15);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.plan-card:hover {
  box-shadow: 0 8px 40px rgba(42,33,24,0.08);
  transform: translateY(-4px);
}

.plan-card .ph {
  aspect-ratio: 4/3;
  width: 100%;
}

.plan-card img {
  transition: transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.plan-card:hover img {
  transform: scale(1.05);
}

.plan-card-body {
  padding: 28px 24px 32px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}

.plan-tag {
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
  border: 1px solid var(--c-gold-lt);
  display: inline-block;
  padding: 4px 10px;
  width: fit-content;
}

.plan-name {
  font-family: var(--ff-ja);
  font-size: clamp(16px, 1.6vw, 19px);
  font-weight: 300;
  letter-spacing: 0.1em;
  color: var(--c-ink);
  line-height: 1.5;
}

.plan-desc {
  font-size: 12px;
  color: var(--c-ink-light);
  letter-spacing: 0.06em;
  line-height: 1.9;
  flex: 1;
}

.plan-price {
  font-family: var(--ff-en);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--c-ink-light);
  border-top: 1px solid rgba(139,115,85,0.15);
  padding-top: 16px;
  margin-top: 4px;
}

.plan-price strong {
  font-family: var(--ff-en);
  font-size: 22px;
  font-weight: 400;
  color: var(--c-ink);
  letter-spacing: 0.05em;
  margin-right: 4px;
}

.plan-card-body .btn {
  margin-top: 8px;
  text-align: center;
  display: block;
}

/* ════════════════════════════════════════════
   9. アクセス
   ════════════════════════════════════════════ */
#access {
  background: var(--c-bg-2);
}

.access-inner {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.access-map .ph {
  aspect-ratio: 4/3;
  width: 100%;
}

.access-text {
  display: flex;
  flex-direction: column;
}

.access-text .divider { margin-block: 24px; }

.access-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}

.access-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
  align-items: baseline;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(139,115,85,0.12);
  padding-bottom: 20px;
}

.access-item-label {
  font-family: var(--ff-en);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  padding-top: 3px;
}

.access-item-body {
  color: var(--c-ink);
  line-height: 1.8;
  font-size: 13px;
  font-weight: 300;
}

/* ════════════════════════════════════════════
   10. ご予約
   ════════════════════════════════════════════ */
#reservation {
  background: var(--c-bg);
}

.reservation-head {
  text-align: center;
  margin-bottom: clamp(48px, 5vw, 72px);
}

.reservation-head .divider {
  margin-inline: auto;
}

/* フォームブロック */
.reservation-form-wrap {
  background: var(--c-white);
  border: 1px solid rgba(139,115,85,0.2);
  padding: clamp(32px, 4vw, 60px);
  max-width: 860px;
  margin-inline: auto;
}

.res-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr) repeat(2, 0.6fr);
  gap: 0;
}

.res-field {
  border-right: 1px solid rgba(139,115,85,0.15);
  border-bottom: 1px solid rgba(139,115,85,0.15);
  padding: 16px 20px;
}

.res-field:last-of-type,
.res-field:nth-last-of-type(2) {
  border-right: none;
}

.res-field:focus-within {
  background: rgba(139,115,85,0.05);
  transition: background 0.3s ease;
}

.res-field label {
  display: block;
  font-family: var(--ff-ja);
  font-size: 10px;
  letter-spacing: 0.15em;
  color: var(--c-gold);
  margin-bottom: 8px;
}

.res-field input,
.res-field select {
  width: 100%;
  background: none;
  border: none;
  outline: none;
  font-family: var(--ff-ja);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--c-ink);
  cursor: pointer;
  appearance: none;
}

.res-field input[type="date"]::-webkit-calendar-picker-indicator {
  opacity: 0.4;
  cursor: pointer;
}

.res-submit {
  grid-column: 1 / -1;
  padding: 20px;
  text-align: center;
}

.btn-reserve-main {
  display: inline-block;
  font-family: var(--ff-ja);
  font-weight: 300;
  font-size: 14px;
  letter-spacing: 0.25em;
  color: var(--c-white);
  background: var(--c-gold);
  border: 1px solid var(--c-gold);
  padding: 16px 60px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-reserve-main:hover {
  background: var(--c-ink);
  border-color: var(--c-ink);
}

/* サブ導線 */
.reservation-sub {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 4vw, 60px);
  margin-top: 40px;
  flex-wrap: wrap;
}

.res-sub-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 32px;
  border: 1px solid rgba(139,115,85,0.2);
  min-width: 200px;
  transition: var(--transition);
}

.res-sub-link:hover {
  border-color: var(--c-gold);
  background: rgba(139,115,85,0.04);
}

.res-sub-en {
  font-family: var(--ff-en);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
}

.res-sub-ja {
  font-family: var(--ff-ja);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--c-ink);
}

.res-sub-desc {
  font-size: 11px;
  color: var(--c-ink-light);
  letter-spacing: 0.06em;
}

/* ════════════════════════════════════════════
   レスポンシブ
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .about-inner,
  .cuisine-inner,
  .omotenashi-inner,
  .access-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .omotenashi-text { order: 0; }

  .plans-grid,
  .rooms-grid,
  .facilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .res-form {
    grid-template-columns: 1fr 1fr;
  }

  .reservation-sub {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 600px) {
  #hero {
    align-items: flex-end;
    justify-content: flex-end;
  }

  .hero-copy {
    right: 32px;
    top: auto;
    bottom: 120px;
    transform: none;
    align-items: flex-end;
  }

  .hero-main-copy {
    font-size: clamp(28px, 8vw, 44px);
  }

  .spa-fullbleed .ph {
    aspect-ratio: 4/3;
  }

  .plans-grid,
  .rooms-grid,
  .facilities-grid {
    grid-template-columns: 1fr;
  }

  .rooms-head,
  .facilities-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .res-form {
    grid-template-columns: 1fr;
  }

  .about-photos {
    grid-template-columns: 1fr 0.5fr;
  }
}
