@charset "utf=8";

:root {
  --header-h: 92px;
  /* ヘッダー高さ */
  --paper-h: 560px;
  /* .paper の高さ（スタックごとに変えるなら上書き可） */
  --label-overhang: 128px;
  /* 見出しの上のはみ出し量 */
}

*,
::before,
::after {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

img {
  max-width: 100%;
  vertical-align: bottom;
}

body {
  font-family: "Zen Old Mincho", serif;
  font-size: 18px;
  color: #000;
  line-height: 1;
}

ul {
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover,
.menu-item a:hover {
  color: #c66a0e;
}

body {
  overflow-y: scroll;
}

/* ===== Opening layer ===== */
#opening {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  overflow: hidden;
  opacity: 1;
  /* 5s後に2sかけてフェードアウト */
  animation: openingFadeOut 2s ease forwards;
  animation-delay: 5s;
  /* 2sフェードイン + 5sパン = 7s */
}

/* 縦長画像：transform で上下にパン */
.opening-rail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 220vh;
  background-image: url("../img/exterior1.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  will-change: transform, opacity;
  opacity: 0;
  /* 最上部100vhが見える状態から開始 */
  transform: translateY(0);
  animation:
    /* 0〜2sでopacity:0→1 */
    railFadeIn 2s ease forwards,
    /* 同時に5sで下→上へ移動 */
    railPan 5s ease-in forwards;
}

/* ロゴ：中央に配置して2秒フェードイン（静止） */
.opening-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(80px, 15vw, 160px);
  height: auto;
  pointer-events: none;
  user-select: none;
  opacity: 0;
  animation: logoFadeIn 2s ease forwards;
  z-index: 2;
}

/* スキップボタン */
.opening-skip {
  position: absolute;
  bottom: 50px;
  right: 50px;
  padding: 8px 12px;
  font: inherit;
  background: rgba(0, 0, 0, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  cursor: pointer;
  transition: opacity 0.2s ease, background-color 0.2s ease;
  z-index: 3;
}

.opening-skip:hover,
.opening-skip:focus-visible {
  background-color: rgba(0, 0, 0, 0.4);
}

@keyframes railFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes railPan {
  0% {
    /* 上端100vh */
    transform: translateY(0);
  }

  100% {
    /* 下端100vh */
    transform: translateY(-120vh);
  }
}

@keyframes logoFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes openingFadeOut {
  to {
    opacity: 0;
  }
}

#opening.is-skip {
  animation: none;
  transition: opacity 0.25s ease;
  opacity: 0;
}

#opening.is-skip .opening-rail,
#opening.is-skip .opening-logo {
  animation: none;
}

/* 動きを苦手とする環境配慮 */
@media (prefers-reduced-motion: reduce) {

  #opening,
  .opening-rail,
  .opening-logo {
    animation: none !important;
  }

  #opening {
    opacity: 0;
  }
}

/* ===== header ===== */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.7);
  display: flex;
  /* 横方向の中央揃え */
  justify-content: center;
  /* 縦方向の中央揃え */
  align-items: center;
  padding-inline: 1rem;
  opacity: 0;
  transform: translateY(calc(-1 * (var(--header-h) + env(safe-area-inset-top, 0))));
  transition: transform 0.3s ease, opacity 0.3s ease;
}

#site-header.show {
  opacity: 1;
  transform: translateY(0);
}

/* iOSノッチ対応（対応端末のみ有効） */
@supports (padding: max(0px)) {
  #site-header {
    padding-top: max(env(safe-area-inset-top), 0px);
  }
}

header a img {
  height: 73px;
  width: auto;
}

/* toggleMenuのbuttonの設定 */
.menu {
  position: relative;
  z-index: 1000;
}

.menu button {
  position: absolute;
  top: -18px;
  left: 34vw;
  background-color: transparent;
  border: none;
  cursor: pointer;
  width: 50px;
  height: 30px;
}

.menu button:focus {
  outline: none;
}

/* ハンバーガーメニューのスタイル設定基本 */
.menu button span,
.menu button span:before,
.menu button span:after {
  content: "";
  display: block;
  height: 3px;
  width: 35px;
  border-radius: 3px;
  background-color: #626262;
  position: absolute;
  transition: all 0.25s;
}

.menu button span:before {
  top: -8px;
}

.menu button span:after {
  top: 8px;
}

.menu button.on span {
  background: transparent;
}

.menu button.on span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu button.on span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ナビゲーションの設定 */
.menu-inner {
  /* 最初は非表示 */
  display: none;
  /* メニューが開いた時にメイン部分が下にいかない様にpositionを設定 */
  position: absolute;
  top: 46px;
  left: 12vw;
  /* position: absolute;が設定されるとコンテンツ幅になるのでwidthを設定 */
  width: 30vw;
}

.menu-item a {
  text-decoration: none;
  font-weight: 500;
  display: block;
  padding: 17px 25px;
  color: #333;
  background: rgba(255, 255, 255, 0.97);
  text-align: center;
  /* border-bottom: 1px solid #dcece9; */
}

.menu-item:first-child a {
  padding-top: 32px;
}

.menu-item:last-child a {
  /* border-bottom: none; */
  padding-bottom: 28px;
}

/* ===== TOPページ ===== */
/* ===== トップ動画 ====  */
.top-video {
  position: relative;
  width: 100%;
  height: 696px;
  overflow: hidden;
}

/* 黒を敷いてフレーム間のチラつきを隠す */
.top-video video {
  height: 696px;
  width: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.top-content {
  max-width: 1440px;
  margin: 0 auto;
}

/* ※動画に入れ替える */
/* .top-image {
  height: 696px;
  width: 100%;
  position: relative;
  display: inline-block;
}

.top-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-image h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 2rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
} */

.top-lead {
  padding: 112px 15% 0;
}

.top-lead p {
  text-align: center;
  line-height: 2;
}

.top-section {
  /* margin-block: clamp(24px, 6vw, 80px); */
  margin: 0;
}

/* 配置の土台 */
.stack {
  position: relative;
  margin-top: 168px;
  /* 見出しが紙から上にはみ出す分の高さを確保（重要） */
  padding-top: var(--label-overhang);
}

.top-content-info .stack {
  margin-top: 0;
}

.top-content-activity .stack {
  margin-top: 200px;
}

/* 背景色＋余白の“色紙”＝高さを作る（通常フロー） */
.paper {
  /* 画像の重なり基準用 */
  position: relative;
  height: var(--paper-h);
  /* 画像より下 */
  z-index: 1;
}

.info-text-color {
  background: #effbe1;
  padding: 25px 15px;
  --paper-h: 400px;
}

.room-text-color {
  background: #f9eeff;
  padding: clamp(16px, 3vw, 40px);
  --paper-h: 784px;
}

.onsen-text-color {
  background: #e1fafe;
  padding: clamp(16px, 3vw, 40px);
}

.cuisine-text-color {
  background: #fafae8;
  padding: clamp(16px, 3vw, 40px);
}

.activity-text-color {
  background: #effbe1;
  padding: clamp(16px, 3vw, 40px);
  --paper-h: 628px;
}

/* 縦書き小見出し（h2）を .stack 基準で絶対配置 */
.top-section-title {
  position: absolute;
  /* 上へはみ出すが.stackのpadding内に収まる */
  top: 0;
  z-index: 3;
  inline-size: 226px;
  block-size: 96px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 400;
  font-size: 36px;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  /* 出現アニメ初期値 */
  transform: translateY(-50px);
  opacity: 0;
  transition: transform 1.2s ease, opacity 2.2s ease;
}

.top-section-title.is-in {
  transform: translateY(0);
  opacity: 1;
}

/* 動きが苦手な利用者向け */
@media (prefers-reduced-motion: reduce) {

  #site-header,
  .top-section-title {
    transition: none;
  }
}

/* お知らせ */
.top-content-info .top-section-title {
  background-color: rgba(63, 119, 109, 0.85);
  left: 14%;
}

/* お部屋 */
.top-content-room .top-section-title {
  background-color: rgba(98, 63, 119, 0.85);
  left: 35%;
}

/* 温泉 */
.top-content-onsen .top-section-title {
  background-color: rgba(63, 101, 119, 0.85);
  right: 14%;
}

/* お食事 */
.top-content-cuisine .top-section-title {
  background-color: rgba(119, 65, 63, 0.85);
  left: 10%;
}

/* 過ごし方 */
.top-content-activity .top-section-title {
  background-color: rgba(119, 63, 107, 0.85);
  left: 56%;
}

.paper .info-text {
  padding: 0 20px 15px 350px;
  line-height: 1.5em;
}

.paper .info-text span {
  font-size: 15px;
  line-height: 2.5em;
}

.paper-text {
  line-height: 1.8;
  position: absolute;
}

.paper .room-text1 {
  top: 30px;
  left: 46%;
  width: 48%;
  padding: 28px;
}

.paper .room-text2 {
  top: 256px;
  left: 31%;
  width: 32%;
  padding-left: 28px;
}

.paper .room-text3 {
  top: 536px;
  left: 2%;
  width: 34%;
  padding: 26px;
}

.paper .onsen-text1 {
  top: 100px;
  left: 60%;
  width: 38%;
  padding: 32px;
}

.paper .onsen-text2 {
  top: 80%;
  left: 3%;
  width: 90%;
  padding: 30px;
}

.paper .cuisine-text1 {
  top: 3%;
  left: 20%;
  width: clamp(250px, 45%, 480px);
  padding: 30px;
}

.paper .cuisine-text2 {
  top: 50%;
  left: 64%;
  width: 36%;
  padding: 30px;
}

.paper .activity-text1 {
  bottom: 2%;
  left: 50%;
  width: 52%;
  padding: 30px;
}

/* 画像は“色紙”の上に浮かせる */
.photo {
  /* .stack を基準に配置 */
  position: absolute;
  z-index: 2;
  /* 行間の隙間対策 */
  display: block;
  height: auto;
  object-fit: cover;
  /* box-shadow: 0 8px 24px rgba(0, 0, 0, .15); */
}

.ph-info1 {
  top: var(--label-overhang);
  left: 0;
  height: 400px;
}

.ph-info2 {
  top: 492px;
  right: 3%;
  width: clamp(230px, 30%, 300px);
}

.ph-room1 {
  top: -7%;
  left: 0;
  width: 29%;
}

.ph-room2 {
  top: 42%;
  right: 0;
  width: 37%;
}

.ph-room3 {
  top: 692px;
  right: 32%;
  width: 35%;
}

.ph-onsen1 {
  top: 11%;
  left: -20%;
  width: clamp(540px, 80%, 1120px);
}

.ph-onsen2 {
  bottom: 22%;
  right: 8%;
  width: clamp(202px, 26%, 252px);
}

.ph-cuisine1 {
  top: 45%;
  left: 5%;
  width: clamp(300px, 64%, 680px);
}

.ph-cuisine2 {
  top: 10%;
  right: 0%;
  width: clamp(200px, 36%, 448px);
}

.ph-activity1 {
  top: 10%;
  right: 0;
  width: clamp(440px, 68%, 824px);
}

.ph-activity2 {
  left: 2%;
  bottom: 32%;
  width: clamp(220px, 34%, 420px);
}

.ph-activity3 {
  bottom: -4%;
  left: 12%;
  width: clamp(240px, 38%, 420px);
}

@media (min-width: 1140px) {
  .activity-text-color {
    --paper-h: 662px;
  }

  .paper .onsen-text2 {
    top: 71%;
    left: 60%;
    width: 38%;
    padding: 32px;
  }

  .paper .cuisine-text2 {
    left: 62%;
    width: 35%;
  }

  .ph-cuisine2 {
    top: 10%;
    right: 5%;
    width: clamp(260px, 36%, 448px);
  }
}

@media (max-width: 1100px) {
  .info-text-color {
    --paper-h: 480px;
  }

  .ph-info1 {
    height: 480px;
    left: -60px;
  }

  .ph-info2 {
    top: 568px;
  }

  .ph-onsen2 {
    bottom: 16%;
  }

  .paper .cuisine-text2 {
    top: 40%;
    left: 68%;
    width: 32%;
    padding: 30px;
  }
}

@media (max-width: 1000px) {
  .paper .room-text2 {
    top: 256px;
    left: 12%;
    width: 53%;
    padding: 28px;
  }

  .paper .room-text3 {
    top: 530px;
    left: 34%;
    width: 62%;
    padding: 28px;
  }

  .ph-room3 {
    top: 672px;
    left: 0;
    width: 33%;

  }

  .ph-activity2 {
    left: 2%;
    bottom: 32%;
  }

  .ph-activity3 {
    bottom: -4%;
    left: 12%;
  }
}

@media (max-width: 800px) {
  .stack {
    --label-overhang: 96px;
    margin-top: 148px;
  }

  .top-content-activity .stack {
    margin-top: 152px;
  }

  .top-section-title {
    inline-size: 168px;
    block-size: 76px;
    font-size: 31px;
  }

  .activity-text-color {
    --paper-h: 600px;
  }

  .paper .activity-text1 {
    bottom: 4%;
    right: 2%;
    width: 51%;
  }

  .paper .room-text1 {
    top: 48px;
    left: 38%;
    width: 56%;
    padding: 28px 0 28px 14px;
  }

  .paper .room-text2 {
    top: 240px;
    left: 5%;
    width: 60%;
    padding: 28px;
  }

  .paper .info-text {
    padding: 0 20px 10px 200px;
  }

  .info-text-color {
    --paper-h: 520px;
  }

  .ph-info1 {
    height: 520px;
    left: -100px;
  }

  .ph-info2 {
    top: 97%;
  }

  .paper .onsen-text1 {
    top: 54%;
    left: 3%;
    width: 90%;
    padding: 32px;
  }

  .paper .onsen-text2 {
    top: 75%;
  }

  .ph-onsen1 {
    top: 4%;
    left: -16%;
  }

  .ph-onsen2 {
    bottom: 39%;
  }

  .ph-activity1 {
    right: 0;
  }

  .ph-activity2 {
    left: 0%;
    top: 34%;
  }

  .ph-activity3 {
    top: 66%;
    left: 12%;
  }

}

/* スマホでの再配置（重なりすぎ防止） */
@media (max-width: 600px) {

  .info-text-color {
    --paper-h: 542px;
  }

  .ph-info1 {
    height: 542px;
    left: -100px;
  }

  .ph-onsen1 {
    top: 4%;
    left: -30%;
  }

  .ph-onsen2 {
    top: 34%;
    left: 58%;
  }

  .paper .cuisine-text1 {
    top: 46%;
    left: 3%;
    width: 93%;
    padding: 15px;
  }

  .paper .cuisine-text2 {
    top: 64%;
    left: 3%;
    width: 93%;
    padding: 15px;
  }

  .ph-cuisine1 {
    top: 4%;
    left: 28%;
  }

  .ph-cuisine2 {
    top: 32%;
    left: 3%;
  }

  .ph-activity2 {
    top: 40%;
  }
    .ph-activity3 {
    left: 7%;
  }
}


/* フッター*/
.footer-upper {
  /* 中身の幅だけに縮める */
  width: max-content;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  height: 56px;
  margin-top: 140px;
  margin-bottom: 56px;
  font-size: 14px;
  /* 画面中央に */
  margin-inline: auto;
  /* 線を置くため */
  position: relative;
  padding-top: 8px;
}

.footer-upper::before {
  content: "";
  position: absolute;
  left: 0;
  /* 中身の左端から */
  right: 0;
  /* 中身の右端まで（＝max-content幅）*/
  top: 0;
  /* ul の上端に線 */
  border-top: 1px solid #333;
}

.footer-disclaimer {
  color: red;
  font-weight: bold;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-align: center; 
}

.footer-lower {
  background-color: #caf7ff;
  width: 100%;
  height: 140px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.footer-campany {
  padding: 20px 0;
  line-height: 1.6em;
}

.footer-logo {
  display: block;
  width: 235px;
}

.copyright {
  font-size: 14px;
  margin-top: 20px;
}