/* ===========================
   Modern Reset (JP site friendly)
   - Edge/Chrome/Firefox/Safari対応
   - A11y: focus-visible / reduced motion
   - 余白ゼロ、box-sizing、媒体の収まり、フォーム継承
   =========================== */

/* 1) 基本ボックスモデルと余白初期化 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}

/* 2) 基本タイポ＆描画設定 */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  line-height: 1.5;
  hanging-punctuation: first last;
  color-scheme: light dark; /* OSのダークモードに追従（任意） */
}
body {
  min-height: 100vh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; /* macOS Safari向け */
  -moz-osx-font-smoothing: grayscale;
}

/* 3) 画像・メディアのはみ出し防止＆表示改善 */
img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block;
  max-width: 100%;
}
img,
video {
  height: auto;
}

/* 4) 見出し・本文の初期余白だけゼロ（サイズはUAに任せる） */
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd {
  margin: 0;
}

/* 5) リスト：デフォは中黒を消さない。役割指定時だけ消す */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

/* 6) アンカー：下線の視認性を少し改善 */
a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .15em;
  text-decoration-skip-ink: auto;
}
a:not([href]) { text-decoration: none; }

/* 7) フォーム要素：フォント継承＋リセット最小限 */
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  background: transparent;
  border: 1px solid transparent;
}
button,
[role="button"] {
  cursor: pointer;
}
textarea {
  resize: vertical;
}
input::placeholder,
textarea::placeholder {
  opacity: .6;
}
label,
button,
select {
  touch-action: manipulation; /* モバイルの遅延軽減 */
}

/* 8) フォーカス可視化（アクセント色に依存・上書き前提） */
:root {
  --focus: 2px solid currentColor;
  accent-color: auto; /* ラジオ/チェックの色を自動で */
}
:focus {
  outline: none;
}
:focus-visible {
  outline: var(--focus);
  outline-offset: .15em;
}

/* 9) テーブルの基本整形 */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* 10) コード系の扱い */
code, kbd, samp, pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .95em;
}
pre {
  overflow: auto;
}

/* 11) スクロール挙動（ユーザー設定尊重） */
html:focus-within {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 12) ユーティリティ（よく使うやつ） */
.visually-hidden:not(:focus):not(:active) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}


/* ============================================
   Common
   ============================================ */
body {
    font-family: "Source Serif 4", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    position:relative;
    z-index:0;
}
.container {
    width: 80%;
    margin: 0 auto;
    box-sizing: border-box;
    max-width: 72rem;
}
.content {
  padding-top: 6rem;
  padding-bottom: 10rem;
}
.translucent {
    background-color: rgba(44,44,44,0.6);
}
.opaque {
    background-color: rgba(44,44,44,0.95);
}
.content-catch {
    font-size: 2rem;
    font-weight: 300;
    line-height: 1.2;
    margin: 0;
    box-sizing: border-box;
    padding: 3rem 0 3rem 3rem;
    border-left: 1px solid #672D2D;
}
.content-text {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.8;
    margin: 0;
    box-sizing: border-box;
    padding: 2rem 0 2rem 2rem;
    border-left: 1px solid #7B7B7B;
    color: #d2d2d2;
}
.button {
  display: block;
  width: 250px;
  color: #fff;
  border-top: 1px solid #d2d2d2;
  border-bottom: 1px solid #d2d2d2;
  box-sizing: border-box;
  padding: .8rem 0;
  margin: 0 auto;
  text-align: center;
  text-decoration: none;
}
.image {
  width: 100%;
}
h1,h2,h3,h4,h5 {
  color: #ffffff;
}
/* ============================================
   First View
   ============================================ */
#first-view {
  height: 100vh;
  display: flex;
  align-items: center;
}
#first-view .title {
    width: 80%;
    margin: 0 auto;
}
#first-view .title h1 {
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #ffffff;
}
#first-view .title h1 span {
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.2;
}
#first-view .title p {
    font-size: 1.2rem;
    font-weight: 300;
    line-height: 1.2;
    color: #d2d2d2;
}



/* ============================================

/* ==== Fullscreen Background Video ==== */
.bg-video{
    position: fixed;
    inset: 0;                 /* top:0 right:0 bottom:0 left:0 */
    width: 100vw;
    height: 100dvh;           /* モバイルの動的ビューポートに追従 */
    object-fit: cover;        /* 画面全体にカバー */
    object-position: center;
    z-index: -1;              /* すべてのコンテンツの背面へ */
    pointer-events: none;     /* クリック等を透過 */
    background: #000;         /* 読み込み中の下地 */
  }
  
  /* 旧ブラウザfallback（100dvhが無い場合） */
  @supports not (height: 100dvh){
    .bg-video{ height: 100vh; }
  }
  
  /* 動きが苦手なユーザー設定を尊重 */
  @media (prefers-reduced-motion: reduce){
    .bg-video{ display: none; }
  }
  
  /* 画面に薄い暗幕やグラデを足したい場合（任意） */
  .bg-overlay{
    position: fixed;
    inset: 0;
    z-index: -1;              /* 背景扱いのまま */
    pointer-events: none;
    /* 例：下部に向かって暗くする */
    background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55));
  }
  
  /* コンテンツ側の積層を安定させる（任意） */
  .header, .main, .footer{
    position: relative;
    z-index: 0;
  }
  
  #book {
    display: block;
    position: fixed;
    top: 4rem;
    right: 4rem;
    z-index: 100;
    width: 170px;
    height: 52px;
    box-sizing: border-box;
    text-align: center;
    background-color:rgba(210,210,210,1);
    color: #000;
    padding: .8rem 0;
    border-radius: 50px;
    font-size: 1.1rem
  }
  #map {
    display: block;
    position: fixed;
    top: 4rem;
    right: calc(4rem + 190px);
    z-index: 100;
    width: 52px;
    height: 52px;
    box-sizing: border-box;
  }
  /* 初期は非表示。閾値を超えたら .is-visible を付ける */
#book, #map{
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity .28s ease, transform .28s ease;
  pointer-events: none; /* 非表示時はクリック不可 */
}
#book.is-visible, #map.is-visible{
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
@media (prefers-reduced-motion: reduce){
  #book, #map{ transition: none; }
}

    /* ============================================
       Rooms
       ============================================ */
  #rooms {
    padding-top: 0;
  }
  #rooms .room-title {
    position: relative;
    margin-bottom: 6rem;
  }
  #rooms .room-title h2 {
    position: absolute;
    bottom: 1rem;
    right: 10%;
    font-weight: 500;
    font-size: 9.5rem;
    color: rgba(255,255,255,0.5);
    z-index: 1;
  }
  #rooms .room-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding-top: 6rem;
  }
  #rooms .room-item {
    width: 31%;
    margin-bottom: 2rem;
  }
    #rooms .room-item img {
      width: 100%;
      margin-bottom: 1rem;
    }
    #rooms .room-item h4 {
      font-size: 1rem;
      font-weight: 400;
      line-height: 1.2;
      margin-bottom: 0.5rem;
    }
    #rooms .room-item p {
      color: #d2d2d2;
      font-size: 0.9rem;
      font-weight: 300;
      line-height: 1.2;
    }
#rooms-list{
      overflow: hidden;
      transition: height .35s ease;
      will-change: height;
    }
    .room-item{
      transition: opacity .28s ease, transform .28s ease;
    }
    .room-item.__enter{
      opacity: 0;
      transform: translateY(-6px);
}
/* ===== 無限スクロール・装飾スライド ===== */
:root{
  --marquee-height: 280px;   /* 見せたい高さに合わせて調整 */
  --marquee-gap: 0px;        /* 画像間の隙間。例: 16px */
  --marquee-speed: 60s;      /* 1ループの時間。ゆっくり=長め */
}

.marquee{
  overflow: hidden;
  width: 100%;
  --marquee-height: 457px;
  height: var(--marquee-height);
  position: relative;
  pointer-events: none;            /* 完全に装飾として */
  /* 下の2行はお好みで：両端をフェードさせるマスク */
  /* -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); */
}

.marquee__track{
  display: flex;
  gap: var(--marquee-gap);
  align-items: center;
  height: 100%;
  will-change: transform;
  animation: marquee-scroll var(--marquee-speed) linear infinite;
}

.marquee__track img{
  height: 100%;
  width: auto;                 /* 縦基準で横は自動 */
  object-fit: cover;           /* 画像が縦に余る場合の見栄え */
  flex: 0 0 auto;
  user-select: none;
  -webkit-user-drag: none;
  backface-visibility: hidden;
  max-width: none;
}

/* 2周分を横に並べ、トラック幅の半分(-50%)だけ流すと継ぎ目なくループ */
@keyframes marquee-scroll{
  from{ transform: translateX(0); }
  to  { transform: translateX(-90%); }
}

/* 動きが苦手なユーザー設定を尊重（停止） */
@media (prefers-reduced-motion: reduce){
  .marquee__track{ animation: none; }
}




    /* ============================================
       ONSEN
       ============================================ */
.ond .title {
  width: 100%;
  position: relative;
  margin-bottom: 6rem;
}
.ond .title h2 {
  position: absolute;
  bottom: 1rem;
  right: 10%;
  font-weight: 500;
  font-size: 9.5rem;
  color: rgba(255,255,255,0.5);
}
.ond .title img {
  width: 100%;
}
/* ============================================
   Facilities
   ============================================ */
#facilities .container .content-text table {
  width: 100%;
  border-top: 1px solid #7B7B7B;
  line-height: 1.3;

}

#facilities .container .content-text table th {
  width: 200px;
  font-weight: 400;
  line-height: 1.5;
  border-bottom: 1px solid #7B7B7B;
  padding: 1rem 0;
  box-sizing: border-box;
}

#facilities .container .content-text table td {
  padding: 0.8rem 0;
  box-sizing: border-box;
  border-bottom: 1px solid #7B7B7B;
  padding: 1rem 0;
  box-sizing: border-box;}
  #facilities .container .content-text table td p {
    margin-bottom: 0.8rem;
  }
/* ============================================
   Footer
   ============================================ */

footer.content {
  background-color: #242424;
  padding-bottom: 3rem;
  padding-top: 0;
}
footer .footer-image {
  width: 100%;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6rem 0;
  box-sizing: border-box;
  flex-wrap: wrap;
}
footer .miyamaso-info {
  width: 60%;
}
footer .container .miyamaso-info h4 {
  width: 200px;
  margin-bottom: 3rem;
}
footer .container .miyamaso-info h5 {
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1.5;
}
footer .container .miyamaso-info p {
  font-size: 0.9rem;
  font-weight: 300;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: #d2d2d2;
}
footer .container .miyamaso-info .button {
  margin-left: 0;
}
footer .container .miyamaso-info .copyright {
  font-size: 0.8rem;
  font-weight: 300;
  margin-top: 3rem;
}
footer .container .ajy-info {
  width: 30%;
}
footer .container .ajy-info h4 {
  width: 300px;
  margin: 0 auto 1rem;
}
footer .container .ajy-info p {
  font-size: 1rem;
  font-weight: 300;
  margin-bottom: 4rem;
  line-height: 1.5;
  color: #d2d2d2;
  text-align: center;
}



@media screen and (max-width: 768px) {
.content {
  padding-top: 0;

}
.content-text {
  line-height: 1.5;
}
.container {
    width: 90%;
}
.content-catch {
  padding: 2rem 0 2rem 2rem;
  font-size: 1.5rem;
}
footer .miyamaso-info {
  width: 100%;
}
#rooms .room-title h2 {
  font-size: 3.5rem;
}
.ond .title h2 {
  font-size: 3.5rem;
}
#facilities .container .content-text table th,
#facilities .container .content-text table td {
  width: 100%;
  display: block;
}
#facilities .container .content-text table th {
  border-bottom: none;
  text-align: left;
  padding-bottom: 0;
}
#book {
  top: 1rem;
  right: 1rem;
}
#map {
  top: 1rem;
  right: calc(1rem + 180px);
}
#rooms .room-item {
  width: 100%;
}
.marquee{
  --marquee-height: 228px;
  height: var(--marquee-height);
}
footer .container {
  padding-bottom: 1rem;
  padding-top: 4rem;
}
footer .container .miyamaso-info {
  padding-bottom: 2rem;
  border-bottom: 1px solid #4b4b4b;
}
footer .container .miyamaso-info h4 {
  width: 150px;
  margin: 0 auto 3rem;
}
footer .container .miyamaso-info h5,
footer .container .miyamaso-info p {
  text-align: center;
}
footer .container .miyamaso-info .button {
  margin-left: auto;
  margin-right: auto;
}
footer .container .ajy-info {
  width: 100%;
  padding-top: 3rem;
}
}