/* 旅館タイトル */
.p-lineup.ryokan{
  padding-top: 64px;
  background-color: #DF0212;
}
.ryokan .c-section-title {
  text-align: center;
  margin-bottom: 16px;
  color: #fff;
}
.ryokan .c-section-title__en{
      display: block;
  font-size: 12px;
}
/* .ryokan .c-section-title__ja{
  font-size: 28px;
  line-height: 1.5;
} */
.c-section-description{
  text-align: center;
  line-height: 1.5;
  font-size: 10px;
}
.c-section-description{
  color: #fff;
  font-size: 10px;
  line-height: 1.5;
}

/* 旅館部分 */
ul.image-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  justify-content: center;
  padding: 0;
  margin-top: 24px;
  list-style: none;
}

ul.image-list li {
  position: relative;
  width: 50%; /* スマホ：2列 */
  background-color: #eee;
  overflow: hidden;
  background-position: center;
  background-size: 200% 100%;
  background-repeat: no-repeat;
}
@supports (aspect-ratio: 1 / 1) {
  ul.image-list li {
    aspect-ratio: 1 / 1;
  }
}
@supports not (aspect-ratio: 1 / 1) {
  ul.image-list li {
    width: 50%;
    height: 50vw;
  }
}
ul.image-list li:nth-child(1) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn1_1@2x.jpg);
}
ul.image-list li:nth-child(2) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn2_1@2x.jpg);
}
ul.image-list li:nth-child(3) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn3_1@2x.jpg);
}
ul.image-list li:nth-child(4) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn4_1@2x.jpg);
}
ul.image-list li:nth-child(5) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn5_1@2x.jpg);
}
ul.image-list li:nth-child(6) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn6_1@2x.jpg);
}
ul.image-list li:nth-child(7) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn7_1@2x.jpg);
}
ul.image-list li:nth-child(8) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn8_1@2x.jpg);
}
ul.image-list li:nth-child(9) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn9_1@2x.jpg);
}
ul.image-list li:nth-child(10) {
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/inn10_1@2x.jpg);
}

/* ul.image-list img {
  object-fit: cover;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;

} */
ul.image-list .p-inn-card__overlay{
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 16px 16px 10px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 50%);
  color: #fff;
}
ul.image-list .p-inn-card__overlay::after{
  content: "";
  position: absolute;
  bottom: 14px;
  right: 17px;
  width: 7px;
  height: 7px;
  border-top: #fff solid 1px;
  border-right: #fff solid 1px;
  transform: rotate(45deg);
  transition: all 0.2s ease;
}
.p-inn-card__region {
    display: block;
    font-size: 13px;
}
.p-inn-card__name{
    font-size: 14px;
    font-weight: bold;
    line-height: 1.4;
}

body.modal-open {
  position: fixed;
  width: 100%;
  overflow: hidden;
  touch-action: none;
  top: 0;
  left: 0;
}



/* モーダル全体ラッパー */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.modal.active {
  display: flex;
}

/* モーダル内ラッパー */
.modal-content-wrapper {
  position: relative;
  max-width: calc(100% - 32px);
  overflow: auto;
}

/* Chrome / Safari */
.modal-content-wrapper::-webkit-scrollbar {
  width: 12px;          /* 縦スクロールバーの幅 */
  height: 12px;         /* 横スクロールバーの高さ */
}

.modal-content-wrapper::-webkit-scrollbar-track {
  background: transparent; /* 背景なし */
}

.modal-content-wrapper::-webkit-scrollbar-thumb {
  background-color: #DF0212;
  border-radius: 4px;
  border: 4px solid transparent; /* ← 見えないスペース確保 */
  background-clip: padding-box;  /* ← 内側に色だけ残す */
}
@-moz-document url-prefix() {
  .modal-content-wrapper {
    scrollbar-width: none; /* Firefoxでスクロールバー非表示 */
  }
}

/* メイン横並び */
.modal-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

/* 中央の本文 */
.modal-body {
  background: white;
  border-radius: 4px;
  max-width: 680px;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

/*  */
#modalBodiesWrapper {
  position: relative;
  width: 100%;
  height: auto;
}

.modal-body {
  width: 100%;
  transition: opacity 0.6s ease-in-out;
  opacity: 0;
  pointer-events: none;
}

.modal-body.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;

}

.modal-body.inactive {
  z-index: 0;
  position: absolute;
  top: 0;
  left: 0;
}
/*  */
/* タイトルなど */
.modal-header{
  padding: 12px;
}
#modalTitle {
  font-size: 16px;
  line-height: 1.2;
  font-weight: bold;
  color: #111;
  margin-bottom: 6px;
}
#modalText {
  font-size: 12px;
  line-height: 1.6;
  font-weight: bold;
  color: #111;
  padding: 2px 1px 2px 21px;
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/icon-map.png);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: left center;
}
#modalMap{
  font-weight: normal;
  color: #DF0212;
  padding: 2px 16px 3px 1px;
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/icon-link_s.png);
  background-size: 16px 16px;
  background-repeat: no-repeat;
  background-position: right center;
}
#modalImage {
  margin-bottom: 16px;
  border-radius: 4px;
}
.modal-link-wrap{
  padding: 12px;
}
#modalLink {
  display: block;
  text-align: center;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: bold;
  color: #DF0212;
  text-decoration: none;
  border: 1px solid #DF0212;
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/icon-link_l.png);
  background-size: 22px 22px;
  background-repeat: no-repeat;
  background-position: right 9px center;
  transition: background 0.2s;
}


/* ナビゲーションボタン */
.nv-button {
  display: block;
  background: #fff;
  border: none;
  /* font-size: 40px; */
  font-weight: bold;
  color: #333;
  width: 40px;
  height: 40px !important;
  line-height: 40px!important;
  background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/icon-arrow.png);
  background-size: 18px;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}
.sp-buttonWrap{
  padding-top: 22px;
  display: flex;
  justify-content: center;
  gap: 24px;
}
.nv-button.pre_,
.nv-button.nex_ {
}
.nv-button.pre_{
  transform: rotate(180deg);
}
.nv-button.nex_{
}

/* クローズボタン */
.modal-close {
  display: block;
  margin-left: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: center;

}
.modal-close .close-icon {
  display: block;
  width: 24px;
  height: 24px;
  position: relative;
  margin: 0 auto;
}
.modal-close .close-icon::before,
.modal-close .close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  background: #fff;
  transform: rotate(45deg);
  transform-origin: center;
}
.modal-close .close-icon::after {
  transform: rotate(-45deg);
}
.modal-close .close-text {
  display: block;
  font-size: 12px;
  color: #fff;
  margin-top: 4px;
  font-size: 14px;
}

/* フェードイン */
@keyframes fadeIn {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
#slider_area.fade-in {
  animation: fadeIn 0.4s ease-in-out;
}
/* フェードアウト */
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 1; }
}
#slider_area.fade-out {
  animation: fadeOut 1s ease-in-out;
}


/* モーダル内スライダー */
.mainSwiper {
  width: 100%;
  margin-bottom: 4px;
}
.mainSwiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
@supports (aspect-ratio: 1 / 1) {
  .mainSwiper {
    aspect-ratio: 343 / 228.67;
  }
  .mainSwiper .swiper-slide img {
    aspect-ratio: 343 / 228.67;
  }
}
@supports not (aspect-ratio: 1 / 1) {
  .mainSwiper {
    width: calc(343 / 375 * 100vw);
    height: calc(228.67 / 375 * 100vw);
    max-width: 680px;
    max-height: 453px;
  }
  .mainSwiper .swiper-slide img {
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    object-position: center;
  }
}


.thumbSwiper {
  width: 100%;
}

.thumbSwiper .swiper-slide {
  position: relative;
  width: 24.3% !important; /* 4枚表示 */
  margin-right: 1%;
  opacity: 1;
  cursor: pointer;
  transition: opacity 0.3s;
}

.thumbSwiper .swiper-slide:last-child{
  margin-right: 0;
}
.thumbSwiper .swiper-slide::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transition: background-color 0.3s;
}
.thumbSwiper .swiper-slide-thumb-active,
.thumbSwiper .swiper-slide:hover {
  opacity: 0.6;
}
.thumbSwiper .swiper-slide-thumb-active.swiper-slide::after,
.thumbSwiper .swiper-slide:hover:after {
  background-color: rgba(223, 2, 18, 0.24);
  opacity: 0.6;

}
.thumbSwiper .swiper-slide img {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}
@supports (aspect-ratio: 1 / 1) {
.thumbSwiper .swiper-slide img {
    aspect-ratio: 82.75 / 55.17;
  }
}
@supports not (aspect-ratio: 1 / 1) {
.thumbSwiper .swiper-slide img {
    width: calc(80 / 375 * 100vw);
    height: calc(53 / 375 * 100vw);
    max-width: 165px;
    max-height: 110px;
  }
}

/* sp -768px
------------------------------------*/
@media (max-width:767px) {


}

/* sp -374px
------------------------------------*/
@media (max-width:374px) {



}
@media (max-width:320px) {
ul.image-list .p-inn-card__overlay{
  padding: 16px 8px 10px;
}


}
/* pc 768px-
---------------------------------- */
@media (min-width:768px) {
  /* 旅館タイトル */
  .p-lineup.ryokan{
    padding-top: 72px;
  }
  .ryokan .c-section-title__en{
  font-size: 12px;
  }
/*   .ryokan .c-section-title__ja{
    font-size: 28px;
  } */
  .ryokan .c-section-description{
    font-size: 14px;
  }
  .ryokan .c-section-description{
    font-size: 14px;
}
  /* 旅館部分 */
    
  ul.image-list {
    margin-top: 32px;
  }
  ul.image-list li {
    cursor: pointer;
    width: 20%;
    font-size: 0;
    box-sizing: border-box;
    gap: 0;
    transition: background-size 0.2s ease;
  }
  @supports (aspect-ratio: 1 / 1) {
    ul.image-list li {
      aspect-ratio: 1 / 1;
    }
  }
  @supports not (aspect-ratio: 1 / 1) {
    ul.image-list li {
      width: 20%;
      height: 20vw;
      min-width: 256px;
      min-height: 256px;
    }
  }

  ul.image-list li:hover{
    background-size: 220% 110%;
  }

  ul.image-list li:hover .p-inn-card__overlay::after{
    right: 12px;
  }
  .p-inn-card__region {
    display: block;
    font-size: 15px;
  }
  .p-inn-card__name{
    font-size: 20px;
  }


  /* ここからモーダル */
  .modal-content-wrapper{
    padding: 0 64px;
  }
  .modal-content {
    gap: 24px;
  }
  .modal-header{
    padding: 16px;
  }
  #modalTitle {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .nv-button {
    position: absolute;
    width: 44px;
    height: 44px !important;
    line-height: 44px !important;
    top: calc(50% + 22px);
  }
  .nv-button.pre_{
    left: 0;
  }
  .nv-button.nex_{
    right: 0;
  }
  .nv-button:hover {
    background-color: #DF0212;
    background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/icon-arrow-w.png);
  }
  #modalLink {
    font-size: 16px;
    padding: 14px 16px;
  }
  #modalLink:hover {
    background-color: #DF0212;
    background-image: url(https://img.goo-net.com/cache/lp/search/kankoucp202508/icon-link_l-w.png);
    color: #fff;
  }
  @supports (aspect-ratio: 1 / 1) {
    .mainSwiper {
      min-width: 608px;
      min-height: 304px;
      aspect-ratio: 680 / 340;
    }
  }
  @supports not (aspect-ratio: 1 / 1) {
    .mainSwiper {
      width: calc(596 / 768 * 100vw);
      height: calc(298 / 768 * 100vw);
      max-width: 680px;
      max-height: 340px;
    }

    .mainSwiper .swiper-slide img {
      min-width: 100%;
      min-height: 100%;
      object-fit: cover;
      object-position: center;
    }
  }

  @supports (aspect-ratio: 1 / 1) {
  .thumbSwiper .swiper-slide img {
      aspect-ratio: 167 / 83.5;
    }
  }
  @supports not (aspect-ratio: 1 / 1) {
  .thumbSwiper .swiper-slide img {
      object-fit: cover;
      object-position: center;
      width: calc(144.81 / 768 * 100vw);
      height: calc(72.41 / 768 * 100vw);
      max-width: 167px;
      max-height: 83.5px;
    }
  }
  /* /モーダル */







}

/* -360px
------------------------------------------ */
@media (max-width:360px) {

}

/* -320px
------------------------------------------ */
@media (max-width:320px) {

}

/* 970px ----------------- */
@media (min-width:970px) {
  /* .pc-noneM{display: none;}  */
}

/* 961px ----------------- */
@media (min-width:961px) {

}

/* -960px ----------------- */
@media (min-width:961px) {

}

/* -1281px ----------------- */
@media (min-width:1281px) {

}
