/* ----------------------------------------------
共通
----------------------------------------------- */

:root {
  --bgColor: #f5f3ed;
  --bgColor-opacity: #fbfaf8;
  --bgColor-white: #fff;

  --pointColor: #d96e52;
  --pointColor-opacity: #f4d3cb;

  --textColor: #4a3f35;
}

/* ----------------------------------------------
トップページ
----------------------------------------------- */

/* - hero
----------------------------------------------- */

.p-topHero {
  position: relative;
  padding-right: 6.94444444444%;
}

.p-topHero__MV {
  position: relative;
  display: block;
  width: 100%;

  height: calc(95vh - 140px);
  min-height: 700px;
}

.p-topHero__MV img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 700px;
  object-fit: cover;
}

.p-topHero::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: -1px;
  width: 100%;
  height: 150px;
  background: url("../img/topMV_wave.svg") bottom center/contain no-repeat;
}

.p-topHero__copy {
  position: absolute;
  bottom: clamp(8.125rem, 7.67rem + 2.27vw, 9.375rem);
  left: 5.97014925373%;

  color: #fff;
  font-size: clamp(1.5rem, 1.071rem + 2.14vw, 3rem);
  font-weight: 600;
  text-shadow: 0px 0px 5px rgba(74, 63, 53, 1);
}

.p-topHero__bus {
  position: absolute;
  top: -20px;
  right: calc(6.94444444444% - 20px);

  width: 125px;
  height: 125px;

  background-color: var(--pointColor);
  border-radius: 100px;
  box-shadow: 0px 0px 10px rgba(74, 63, 53, 0.1);
  transition: 0.4s ease;
}

.p-topHero__busLink {
  height: 125px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.p-topHero__bus img {
  width: 50px;
  height: 50px;
}

.p-topHero__busLabel {
  font-size: 0.75rem;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.p-topHero__news {
  position: absolute;
  right: 0;
  bottom: 10px;
  z-index: 1;

  display: flex;
  gap: 20px;
  width: 48.6111111111%;
  min-width: 500px;
  padding: 20px 40px;
  border-radius: 10px 0 0 10px;

  backdrop-filter: blur(5px);
  background-color: rgba(255, 255, 255, 0.75);
}

.p-topHero__newsLabel {
  color: var(--pointColor);
  font-weight: 600;
}

.p-topHero__newsLink {
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-topHero__bus:hover {
    transform: scale(1.1);
  }
  .p-topHero__newsLink:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .p-topHero__MV {
    height: calc(95vh - 120px);
    min-height: 350px;
  }
  .p-topHero__MV img {
    min-height: 350px;
  }

  .p-topHero::after {
    height: 100px;
    background: url("../img/topMV_wave-sp.svg") bottom center/contain no-repeat;
  }

  .p-topHero__news {
    bottom: 0px;
    width: 90%;
    min-width: auto;
    flex-direction: column;
    gap: 0px;
    padding: 16px 20px;
  }

  .p-topHero__bus {
    position: absolute;
    top: -20px;
    right: calc(6.94444444444% - 20px);

    width: 100px;
    height: 100px;
  }

  .p-topHero__busLink {
    height: 100px;
  }

  .p-topHero__bus img {
    width: 35px;
    height: 35px;
  }

}

/* - お知らせ
----------------------------------------------- */

.p-topNews {
  position: relative;
}

.p-topNews__btnWrap {
  position: absolute;
  top: 16px;
  right: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--textColor);
  transition: 0.4s ease;
}

.p-topNews__btn {
  display: block;
  font-weight: 600;
}

.p-topNews__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  /* [p-topNews__item]は最小200px、200px以下になる場合は自動で折り返し */
  gap: 32px 4.36363636364%;
  line-height: 1.4;
}

.p-topNews__img {
  aspect-ratio: 335 / 200;
  width: 100%;
  height: auto;
  object-fit: cover;

  margin-bottom: 16px;
}

.p-topNews__img img{
  aspect-ratio: 335 / 200;
  width: 100%;
  height: auto;
}

.p-topNews__item {
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-topNews__btnWrap:hover {
    color: var(--pointColor);
    border-color: var(--pointColor);
  }

  .p-topNews__item:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .p-topNews {
    padding-bottom: 80px;
  }

  .p-topNews__btnWrap {
    position: absolute;
    top: auto;
    bottom: 0;
    right: 0;
    left: 50%;
    transform: translateX(-50%);
    width: fit-content;
  }

  .p-topNews__img {
    margin-bottom: 8px;
  }
}

/* - 導入
----------------------------------------------- */

.p-topIntro {
  position: relative;
  background-color: var(--bgColor-white);

  padding-top: 120px;
  padding-bottom: 145px;
}

.p-topIntro::before,
.p-topIntro::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100px;
}

.p-topIntro::before {
  bottom: 100%;
  background: url("../img/section_wave-wh.svg") bottom center/contain no-repeat;
}

.p-topIntro::after {
  bottom: 0;
  background: url("../img/section_wave-beige.svg") bottom center/contain
    no-repeat;
}

.p-topIntro__inner {
  display: flex;
  justify-content: space-between;
}

.p-topIntro__imgBox {
  width: 36.3636363636%;
  height: 400px;
}

.p-topIntro__imgBox img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.p-topIntro__textBox {
  position: relative;
  width: 54.5454545455%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.p-topIntro__copy {
  font-size: clamp(1.25rem, -0.079rem + 2.77vw, 2rem);
  font-weight: 600;
  line-height: 2;
}

.p-topIntro__text {
  line-height: 2.4;
}

.p-topIntro__textBox::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 185px;
  height: 185px;
  background: url("../img/icon-onsen.svg");
  background-size: contain;
  opacity: 0.2;
}

@media screen and (max-width: 767px) {
  .p-topIntro {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .p-topIntro__inner {
    flex-direction: column;
    gap: 40px;
  }

  .p-topIntro__imgBox {
    width: 36.3636363636%;
    height: 400px;
  }

  .p-topIntro__imgBox {
    width: 100%;
    height: auto;
  }

  .p-topIntro__imgBox img {
    height: auto;
  }

  .p-topIntro__textBox {
    width: 100%;
    gap: 20px;
  }

  .p-topIntro__textBox::after {
    width: clamp(6.25rem, 2.447rem + 19.02vw, 11.563rem);
    height: clamp(6.25rem, 2.447rem + 19.02vw, 11.563rem);
  }
}

/* - 温泉・お食事処
----------------------------------------------- */

.p-topOnsenDining__list {
  display: flex;
  justify-content: space-between;
}

.p-topOnsenDining__item {
  width: 48.5454545455%;
}

.p-topOnsenDining__link {
  display: block;
  padding: 32px;
  background-color: var(--bgColor-white);
  border-radius: 10px;
}

.p-topOnsenDining__img {
  width: 100%;
  height: 260px;
  overflow: hidden;
  border-radius: 10px;
}

.p-topOnsenDining__img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  transition: 0.4s ease;
}

.p-topOnsenDining__heading {
  display: inline-block;
  font-size: 2rem;
  font-weight: 600;
  margin-top: 16px;
  margin-bottom: 16px;
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-topOnsenDining__link:hover .p-topOnsenDining__img img {
    transform: scale(1.1);
  }

  .p-topOnsenDining__link:hover .p-topOnsenDining__heading {
    color: var(--pointColor);
  }
}

@media screen and (max-width: 767px) {
  .p-topOnsenDining__list {
    flex-direction: column;
    gap: 20px;
  }

  .p-topOnsenDining__item {
    width: 100%;
  }

  .p-topOnsenDining__link {
    display: block;
    padding: 24px;
  }

  .p-topOnsenDining__heading {
    font-size: 1.5rem;
  }
}

/* - ご利用案内
----------------------------------------------- */
.p-topGuide__list {
  display: flex;
  justify-content: space-between;
}

.p-topGuide__item {
  width: 30.9090909091%;
  padding: 0 20px 20px 20px;
  border-bottom: 1px solid var(--textColor);
  transition: 0.4s ease;
}

.p-topGuide__link {
  display: block;
}

.p-topGuide__heading {
  display: inline-block;
  font-size: 1.5rem;
  font-weight: 600;

  margin-top: 16px;
  margin-bottom: 16px;
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-topGuide__item:hover {
    border-bottom: 1px solid var(--pointColor);
  }

  .p-topGuide__item:hover .p-topGuide__heading {
    color: var(--pointColor);
  }
}

@media screen and (max-width: 767px) {
  .p-topGuide__list {
    flex-direction: column;
    gap: 20px;
  }

  .p-topGuide__item {
    width: 100%;
  }

  .p-topGuide__heading {
    display: inline-block;
    font-size: 1.25rem;
  }
}

/* - アクセス
----------------------------------------------- */

.p-topAccess {
  position: relative;
}

.p-topAccess__map {
  width: 100%;
  height: 500px;
  padding-bottom: 80px;
}

.p-topAccess__map iframe {
  width: 100%;
  height: 100%;
}

.p-topAccess__info {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
}

.p-topAccess__infoList {
  display: flex;
  padding: 20px 2.7vw;
  background-color: var(--bgColor-white);
  border-radius: 10px;
}

.p-topAccess__infoItem {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: calc(320px + 5.4vw);
  padding: 0px 2.7vw;
}

.p-topAccess__infoItem:first-child {
  border-right: 1px solid rgba(74, 63, 53, 0.5);
}

.p-topAccess__icon {
  width: 60px;
  height: 60px;
}

.p-topAccess__title {
  font-size: 1.5rem;
  font-weight: 600;
}

.p-topAccess__infoItem.-tel .p-topAccess__text {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 2em;
}

@media screen and (max-width: 767px) {
  .p-topAccess__map {
    padding-bottom: 120px;
  }

  .p-topAccess__info {
    width: 100%;
    padding-inline: 20px;
  }

  .p-topAccess__infoList {
    flex-direction: column;
    gap: 20px;
    width: 100%;
    padding: 20px 2.7vw;
  }

  .p-topAccess__infoItem:first-child {
    border-right: none;
  }

  .p-topAccess__infoItem {
    min-width: unset;
    width: 100%;
    padding: 0;
    gap: 8px;
  }

  .p-topAccess__icon {
    width: 50px;
    height: 50px;
  }

  .p-topAccess__textBox {
    display: flex;
    align-items: center;
    gap: 20px;
  }

  .p-topAccess__title {
    white-space: nowrap;
    font-size: 1.25rem;
  }

  .p-topAccess__infoItem.-tel .p-topAccess__text {
    font-size: 1.25rem;
    line-height: 1em;
  }
}

/* - バナー
----------------------------------------------- */

.p-topBanner {
  margin-top: 80px;
}

.p-topBannerList {
  display: grid;
  justify-content: center; /* 要素数が少ないとき中央寄せっぽく */
  grid-template-columns: repeat(auto-fit, minmax(200px, 350px));
  gap: 32px;
}

/* 3つ以上あるときは3カラム固定で左寄せ */
.p-topBannerList:has(:nth-child(3)) {
  grid-template-columns: repeat(3, 1fr);
  justify-content: start;
}

.p-topBannerItem {
  border: 1px solid var(--textColor);
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-topBannerItem:hover {
    opacity: 0.6;
  }
}

@media screen and (max-width: 767px) {
  .p-topBannerList,
  .p-topBannerList:has(:nth-child(3)) {
    grid-template-columns: repeat(2, 1fr); 
    gap: 16px;
  }
}

/* ----------------------------------------------
下層
----------------------------------------------- */

/* - お知らせ
----------------------------------------------- */

.p-newsList {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.p-newsItem {
  padding-bottom: 80px;
  border-bottom: 1px solid rgba(74, 63, 53, 0.5);
}

.p-news__date {
  font-weight: 300;
}

.p-news__title {
  color: var(--pointColor);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 16px;
}

.p-news__textBox {
  margin-top: 20px;
  /* line-height: 2.5; */
}

.p-news__textBox h4{
  font-size: 1.125rem;
  font-weight: 600;
}

.p-news__textBox h4 + p,
.p-news__textBox h4 + figure,
.p-news__textBox p + h4,
.p-news__textBox figure + h4,
.p-news__textBox p + p, 
.p-news__textBox figure + figure,
.p-news__textBox p + figure,
.p-news__textBox figure + p {
    margin-top: 1.25em;
}
   

@media screen and (max-width: 767px) {
  .p-newsList {
    gap: 40px;
  }

  .p-newsItem {
    padding-bottom: 40px;
  }

  .p-news__title {
    margin-top: 8px;
  }

  .p-news__textBox {
    margin-top: 16px;
    /* line-height: 2.5; */
  }
}

/* - 温泉・お食事処
----------------------------------------------- */

.p-onsenDining__content + .p-onsenDining__content {
  margin-top: 80px;
}

.p-onsenDining__flexBox {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.p-onsenDining__bg {
  background-color: var(--bgColor-opacity);
  border-radius: 10px;
  padding: 80px 20px;
}

.p-onsenDining__inner {
  width: 100%;
  max-width: 840px;
  margin-inline: auto;
}

.p-onsenDining__slideList {
  width: 47.4545454545%;
  padding: 0 20px;
}

.p-onsenDining__textBox {
  width: 48.1818181818%;
  padding-top: 20px;
}

.p-onsenDining__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 40px;
}

.p-onsenDining__text {
  line-height: 2.5;
}

.p-dining .c-dlItem{
  align-items: center;
}

@media screen and (max-width: 767px) {
  .p-onsenDining__flexBox {
    flex-direction: column;
  }

  .p-onsenDining__bg {
    padding: 40px 20px;
  }

  .p-onsenDining__slideList {
    width: 100%;
  }

  .p-onsenDining__textBox {
    width: 100%;
  }

  .p-onsenDining__title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 16px;
  }

  .p-onsenDining__text {
    line-height: 1.6;
  }

  .p-dining .c-dlItem{
  align-items: start;
}
}

/* - スライド
----------------------------------------------- */

/* ドット */
.slick-dots {
  display: flex;
  justify-content: center;
}

.slick-dots li {
  margin: 0 4px;
}

.slick-dots li button {
  font-size: 0; /* 数字を非表示 */
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #d9d9d9;
  cursor: pointer;
}

.slick-dots li.slick-active button {
  background-color: var(--pointColor);
}

/* 矢印 */
.slick-prev,
.slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: none;
  background: none;
  cursor: pointer;
  z-index: 10;
}

.slick-prev {
  left: 0px;
}

.slick-next {
  right: 0px;
}

.slick-prev::before,
.slick-next::before {
  content: "";
  width: 8px;
  height: 8px;
  border: 0;

  position: absolute;
  top: 0;

  bottom: 0;
  margin: auto;
  transition: 0.4s ease;
}

.slick-prev::before {
  left: 6px;
  border-top: solid 2px var(--pointColor);
  border-left: solid 2px var(--pointColor);
  transform: rotate(-45deg);
}

.slick-next::before {
  right: 6px;
  border-top: solid 2px var(--pointColor);
  border-right: solid 2px var(--pointColor);
  transform: rotate(45deg);
}

@media screen and (min-width: 768px) {
  .slick-prev:hover::before,
  .slick-next:hover::before {
    opacity: 0.6;
  }
}

/* - ご利用ガイド
----------------------------------------------- */

.p-guide__title{
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
}

/* 料金 */
.p-guideFee .c-dlItem dd{
  line-height: 2.5;
}

/* 施設案内 */
.p-guideFacility__floormap{
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.p-guideFacility__photoList{
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3列だけ固定 */
  gap: 40px;
  margin-top: 40px;
}

.p-guideFacility__photoItem figcaption{
  font-size: 0.875rem;
}

/* シャトルバス */
.p-bus__tableWrap{
  display: flex;
  gap: 20px;
  margin-top: 40px;
  margin-bottom: 40px;
}

@media screen and (max-width: 767px) {
.p-guide__title{
  font-size: 1.25rem;
    margin-bottom: 20px;
}

  .p-guideFacility__photoList{
    grid-template-columns: repeat(2, 1fr); /* 3列だけ固定 */
    gap: 20px;
  }

  .p-guideFacility__photoItem figcaption{
  font-size: 0.75rem;
}
}


/* - 404
----------------------------------------------- */

.p-404{
  text-align: center;
}

.p-404__text{
  margin-bottom: 80px;
}

.p-404__link{
  text-decoration: underline;
  transition: 0.4s ease;
}

@media screen and (min-width: 768px) {
  .p-404__link:hover {
    opacity: 0.6;
  }
}
