/*トップイメージ*/
.top-area {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.top-area::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgb(0 0 0 / 0.45) 0%,
    rgb(0 0 0 / 0.3) 40%,
    rgb(0 0 0 / 0.35) 100%
  );
}
.top-area__video-wrap,
.top-area__video {
  width: 100%;
  height: 100%;
}
.top-area__video {
  object-fit: cover;
}
#video-mobile {
  display: none;
}
.top-area__copy {
  position: absolute;
  left: 5%;
  bottom: 15%;
  z-index: 2;
  color: #fff;
  font-family: var(--font-mincho);
}
.top-area__main-copy {
  font-size: clamp(1.875rem, 3.4091vw + 1.1932rem, 3.75rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.top-area__main-copy--accent {
  color: #e4c17e;
  font-size: 1.6em;
  letter-spacing: -0.1em;
}
.top-area__copy-text {
  font-size: clamp(0.875rem, 0.4545vw + 0.7841rem, 1.125rem);
  line-height: 2.4;
  letter-spacing: 0.15em;
}
.scroll-indicator {
  position: absolute;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #fff;
  z-index: 10;
  opacity: 0;
  animation: fadeInScroll 1.2s ease forwards;
  animation-delay: 1.5s;
}
.scroll-indicator__text {
  font-size: 11px;
  letter-spacing: 0.4em;
}
.scroll-indicator__arrow {
  width: 30px;
  height: 30px;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  transform: rotate(45deg);
  animation: arrowFloat 3.5s ease-in-out infinite;
}
@keyframes fadeInScroll {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}
@keyframes arrowFloat {
  0%,
  100% {
    transform: translateY(0px) rotate(45deg);
  }
  50% {
    transform: translateY(6px) rotate(45deg);
  }
}

.main-area {
  position: relative;
}
.section1 {
  position: relative;
  z-index: 2;
  /*background-color: #eee;*/
  overflow: hidden;
}

/* ピックアップ中のお知らせ */
.news-featured {
  background-color: #ffe7e9;
  padding: 1.5em 1.5em 0.7em;
  display: flex;
}
.news-featured__inner {
  max-width: 1000px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
}
.news-featured__label {
  font-size: 0.8rem;
  color: #fff;
  background-color: #e12b3f;
  border-radius: 50px;
  padding: 0.3em 0.9em;
  margin-bottom: 0.8em;
}
.news-featured__content {
  padding-left: 1.5em;
}
.news-featured__item {
  display: flex;
  gap: 1em;
  padding-bottom: 0.8em;
}
.news-featured__link {
  color: #fb384f;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.15em;
}
.news-featured__link:hover {
  text-decoration: underline;
}


/* 主要施設紹介 */
.facility-section__block {
  display: flex;
  flex-direction: column;
  padding-block: 2rem;
}
.facility-section__visual-wrap {
  display: flex;
  align-items: flex-end;
  column-gap: 2.3rem;
  position: relative;
}
.facility-section__main-visual,
.facility-section__sub-visual {
  position: relative;
  z-index: 2;
}
.facility-section__main-visual {
  width: 60%;
}
.facility-section__sub-visual {
  position: relative;
  width: 40%;
}
.facility-section__sub-pic {
  max-width: 563px;
  margin-bottom: -2.5rem;
}
.facility-section__leaf-shadow-wrap {
  max-width: 400px;
  width: 100%;
  aspect-ratio: 520/656;
  position: absolute;
  bottom: -20rem;
  right: calc((100vw - 100%) / -2);
  z-index: 1;
}
.facility-section__leaf-shadow {
  width: 100%;
  height: 100%;
  background-image: url(/hattori-ryokuchi/images/leafshadow2.png);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  transform: translateY(var(--parallax-y, 0));
  will-change: transform;
}
.facility-section__block--onsen .facility-section__leaf-shadow {
  background-image: url(/hattori-ryokuchi/images/leafshadow2-blue.png);
}
.facility-section__block--ganban .facility-section__leaf-shadow {
  background-image: url(/hattori-ryokuchi/images/leafshadow2-red.png);
}
.facility-section__title,
.facility-section__text {
  width: min(1200px, calc(100% - 4rem));
  margin-inline: auto;
  position: relative; /*重なり調整*/
  z-index: 2;
}
.facility-section__text-inner {
  width: 50%;
}
.facility-section__title {
  margin-block: 1.5rem 2rem;
}
.facility-section__title h2 {
  font-family: var(--font-mincho);
  font-size: clamp(3.125rem, 2.8409vw + 2.5568rem, 4.6875rem);
  font-weight: normal;
  color: var(--title-color);
}
.facility-section__title-eng {
  font-size: clamp(1rem, 0.9091vw + 0.8182rem, 1.5rem);
  font-weight: bold;
  letter-spacing: 0.18rem;
  color: var(--title-eng-color);
  margin-left: 0.5rem;
}
.facility-section__text p {
  line-height: 2.6;
  margin-bottom: 2.5rem;
}
.facility-section__btn {
  display: block;
  border-radius: 3px;
  border: 1px solid;
  font-size: 1.125rem;
  width: min(300px, 100%);
  padding: 1.4rem 0.5rem;
  text-align: center;
  position: relative;
}
.facility-section__btn::before,
.facility-section__btn::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 50px;
  background-color: #000;
  position: absolute;
  right: 13px;
  top: calc(50% - 1px);
  transform-origin: calc(100% - 1px) 50%;
  transition:
    margin-right 0.5s ease,
    background-color 0.5s ease;
}
.facility-section__btn::before {
  transform: rotate(45deg);
}
.facility-section__btn::after {
  transform: rotate(-45deg);
}
/* 偶数ブロック左右逆 */
.facility-section__block--reverse .facility-section__visual-wrap {
  flex-direction: row-reverse;
}
.facility-section__block--reverse .facility-section__sub-visual {
  text-align: right;
}
.facility-section__block--reverse .facility-section__text-inner {
  margin-left: auto;
}
.facility-section__block--reverse .facility-section__leaf-shadow-wrap {
  right: unset;
  left: calc((100vw - 100%) / -2);
  transform: scaleX(-1);
}
/* 各ブロックの色 */
.facility-section__block--onsen {
  --title-color: #202633;
  --title-eng-color: #a8c8c8;
}
.facility-section__block--ganban {
  --title-color: #2e0f09;
  --title-eng-color: #e3bab0;
}

.section-title {
  margin-bottom: 3rem;
}
.section-title h2 {
  font-size: clamp(2.1875rem, 3.9773vw + 1.392rem, 4.375rem);
  font-family: var(--font-mincho);
  font-weight: normal;
  color: #432908;
}
.section-title--white h2 {
  color: #fff;
}
.section-title__eng {
  font-size: clamp(0.875rem, 0.6818vw + 0.7386rem, 1.25rem);
  font-weight: bold;
  color: #baa066;
  opacity: 0.7;
  letter-spacing: 0.2em;
  margin-left: 0.4em;
}
.section__inner {
  width: min(1200px, calc(100% - 4rem));
  margin-inline: auto;
}
.link-btn {
  display: block;
  border-radius: 3px;
  border: 1px solid #000;
  font-size: 1rem;
  width: min(270px, 100%);
  padding: 1.5rem 1.1rem 1.5rem 0.2rem;
  line-height: 1;
  margin-inline: auto;
  text-align: center;
  position: relative;
  background-color: rgb(255 255 255 / 0.3);
  transition:
    background-color 0.5s ease-in-out,
    color 0.5s ease-in-out;
}
.link-btn::before,
.link-btn::after {
  content: "";
  display: block;
  width: 12px;
  height: 2px;
  border-radius: 50px;
  background-color: #000;
  position: absolute;
  right: 13px;
  top: calc(50% - 1px);
  transform-origin: calc(100% - 1px) 50%;
  transition:
    margin-right 0.5s ease-in-out,
    background-color 0.5s ease-in-out;
}
.link-btn::before {
  transform: rotate(45deg);
}
.link-btn::after {
  transform: rotate(-45deg);
}
.link-btn:hover {
  background-color: rgb(65 36 0 / 0.6);
  color: #fff;
}
.link-btn:hover::before,
.link-btn:hover::after {
  margin-right: -0.25em;
  background-color: #fff;
}

/* 施設カード */
.card-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
}
.card-section .section-title {
  padding-block: 5rem 3rem;
  margin-bottom: 0;
}
.card-section__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  background-image: url(/hattori-ryokuchi/images/bg_card-bath.jpg);
  transition: opacity 0.5s ease;
}
.card-section__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
}
.card-section__bg--current {
  opacity: 1;
}
.card-section__bg--next {
  opacity: 0;
}
.card-section__list {
  flex: 1;
  position: relative;
  z-index: 1;
  display: flex;
  gap: 2rem;
  width: max-content;
  align-items: center;
  padding-left: max(2rem, calc((100vw - 1200px) / 2));
  padding-right: max(2rem, calc((100vw - 1200px) / 2));
  padding-bottom: 6rem;
}
.card-section__item {
  width: 400px;
  height: 510px;
  border-radius: 15px;
  border: 1px solid #cec0ad;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s ease;
  box-shadow: 15px 15px 25px rgba(0 0 0 / 0.2);
}
.card-section__item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 1) 75%,
    rgba(255, 255, 255, 1) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.card-section__item:hover {
  transform: translateY(-15px);
}
.card-section__link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.card-section__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  transition: transform 0.6s;
}
.card-section__link:hover .card-section__img {
  transform: scale(1.03);
}
.card-section__content {
  position: relative;
  z-index: 2;
  padding: 1.8rem;
}
.card-section__item-title {
  font-size: clamp(1.875rem, 0.9091vw + 1.6932rem, 2.375rem);
  font-family: var(--font-mincho);
  font-weight: normal;
  margin-bottom: 0.6rem;
}

/* イベントエリア */
.event-section {
  background-image:
    linear-gradient(180deg, rgb(253, 245, 208) 0%, rgb(218, 166, 104) 100%),
    url(/hattori-ryokuchi/images/bg_noise2.webp);
  background-blend-mode: screen;
  padding-block: 4.5rem 6rem;
}
.event-section__slider-wrap {
  position: relative;
}
.event-section__slider {
  overflow-x: scroll;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  margin-bottom: 2rem;
}
.event-section__slider:active {
  cursor: grabbing;
}
.event-section__list {
  display: flex;
  column-gap: 2rem;
  width: max-content;
  padding: 0;
  padding-bottom: 1.5rem;
  margin: 0;
}
.event-section__arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 2;
  width: 78px;
  animation: eventArrow 3.5s ease-in-out infinite;
}
.event-section__arrow img {
  width: 100%;
  height: auto;
  display: block;
}
@keyframes eventArrow {
  0% {
    opacity: 0.25;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-50%) translateX(7px);
  }
  100% {
    opacity: 0.25;
    transform: translateY(-50%) translateX(0);
  }
}
.event-section__item {
  width: 210px;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: auto;
}
.event-section__item img {
  box-shadow: 10px 10px 15px rgb(0 0 0 / 0.1);
}
.event-section__item-title {
  margin-top: 0.4rem;
}

/* お知らせ */
.news-section {
  background-color: #f8f3ec;
  padding-block: 4.5rem 6rem;
}
.news-section__list {
  margin-bottom: 4rem;
}
.news-section__item {
  border-bottom: 1px solid #73603b;
}
.news-section__item:first-child {
  border-top: 1px solid #73603b;
}
.news-section__link {
  display: flex;
  flex-direction: row;
  padding: 2.3rem 0.3rem;
}
.news-section__time {
  color: #a7884c;
  width: 20%;
  letter-spacing: 0.15em;
  font-weight: bold;
  line-height: 1.8;
}
.news-section__item-title {
  font-weight: normal;
}


@media screen and (max-width: 900px) {
  .header-nav .plain-item {
    display: none;
  }
  .header-nav .round-btn {
    display: none;
  }

  .intro-area .text-box {
    position: static;
    width: 90%;
    padding: 2em;
  }
  .intro-area .text-box .catch-copy {
    font-size: 1.2rem;
  }
  .intro-area .text-box p {
    font-size: 0.9rem;
  }

  /* 主要施設紹介 */
  .facility-section__visual-wrap {
    display: block;
    order: 2;
  }
  .facility-section__main-visual {
    width: 100%;
    padding-right: 1rem;
  }
  .facility-section__sub-visual {
    width: 60%;
    aspect-ratio: 3/2;
    margin-left: auto;
    margin-top: -1rem;
    text-align: right;
  }
  .facility-section__leaf-shadow-wrap {
    width: 60%;
    bottom: -8rem;
    right: unset;
    left: calc((100vw - 100%) / -2);
    transform: scaleX(-1);
  }
  .facility-section__title {
    order: 1;
    width: calc(100% - 2rem);
    margin-block: 1.5rem 1rem;
  }
  .facility-section__text {
    order: 3;
    margin-top: 1rem;
  }
  .facility-section__text-inner {
    width: 100%;
  }
  .facility-section__btn {
    margin-inline: auto;
  }

  /*施設カード*/
  .card-section__list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 0.8rem;
    transform: none !important;
  }
  .card-section__item {
    width: auto;
    height: 350px;
  }

  /*お知らせ*/
  .news-section__link {
    flex-direction: column;
    padding-block: 1.5rem;
  }
  .news-section__time {
    width: 100%;
    margin-bottom: 0.4rem;
  }
}
@media screen and (max-width: 768px) {
  #video-desktop {
    display: none;
  }
  #video-mobile {
    display: block;
  }
}
@media screen and (max-width: 550px) {
  /* トップ―イメージ */
  .top-area__copy-text {
    letter-spacing: 0;
  }

  /* ピックアップ中のお知らせ */
  .news-featured__inner {
    align-items: center;
    flex-direction: column;
  }
  .news-featured__content {
    padding-left: 0;
  }
  .news-featured__item {
    display: block;
  }
  .news-featured__date {
    display: block;
  }
  /*施設カード*/
  .card-section__list {
    grid-template-columns: 1fr;
  }
  .card-section__item {
    height: 300px;
  }
  .card-section__content {
    padding: 1rem;
  }
}
