/* =====================
   Photo Gallery
===================== */
.photo-gallery-section {
  position: relative;
  color: #fff;
  background-image: url("https://snow-resort-hermitage.com/wp-content/uploads/2026/06/bg555-7.webp");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.photo-gallery__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 15, 28, .74);
}



.photo-gallery__heading {
  margin-bottom: 54px;
  text-align: center;
}

.photo-gallery__heading p,
.photo-gallery__heading h2,
.photo-gallery__heading span {
  color: #fff;
}

.photo-gallery__inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 88vw);
  margin: 0 auto;
  padding: 74px 0 96px;
}
.photo-gallery__layout {
  display: grid;
  grid-template-columns: .95fr .75fr;
  gap: 28px;
  align-items: start;
}

.photo-gallery__main img {
  width: 100%;
  max-height: 520px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: 22px;
margin-top: 100px;

}

.photo-gallery__categories,
.gallery-modal__categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.photo-gallery__categories button,
.gallery-modal__categories button {
  border: 1px solid rgba(255,255,255,.45);
  background: rgba(255,255,255,.08);
  color: #fff;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 12px;
  letter-spacing: .06em;
  cursor: pointer;
}

.photo-gallery__categories button.is-active,
.gallery-modal__categories button.is-active {
  background: #fff;
  color: #111;
}

.photo-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.photo-gallery__thumb {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  opacity: .62;
}

.photo-gallery__thumb.is-active,
.photo-gallery__thumb:hover {
  opacity: 1;
}

.photo-gallery__thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.photo-gallery__more {
  margin-top: 22px;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: .08em;
  cursor: pointer;
}

/* Modal */
.gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  background: rgba(4, 10, 16, .96);
  color: #fff;
  overflow-y: auto;
}

.gallery-modal.is-open {
  display: block;
}

.gallery-modal__close {
  position: fixed;
  top: 24px;
  right: 28px;
  z-index: 2;
  border: 0;
  background: none;
  color: #fff;
  font-size: 38px;
  cursor: pointer;
}

.gallery-modal__inner {
  width: min(1120px, 88vw);
  margin: 0 auto;
  padding: 86px 0;
}

.gallery-modal__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.gallery-modal__item {
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.gallery-modal__item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 21000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.9);
}

.gallery-lightbox.is-open {
  display: flex;
}

.gallery-lightbox img {
  max-width: 82vw;
  max-height: 82vh;
  object-fit: contain;
}

.gallery-lightbox__close,
.gallery-lightbox__arrow {
  position: fixed;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
}

.gallery-lightbox__close {
  top: 24px;
  right: 28px;
  font-size: 38px;
}

.gallery-lightbox__arrow {
  top: 50%;
  transform: translateY(-50%);
  font-size: 70px;
}

.gallery-lightbox__arrow--prev {
  left: 32px;
}

.gallery-lightbox__arrow--next {
  right: 32px;
}

/* SP */
@media (max-width: 768px) {
  .photo-gallery-section,
  .photo-gallery-section * {
    box-sizing: border-box;
  }

  .photo-gallery__inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 58px 20px 76px;
  }

  .photo-gallery__layout {
    width: 100%;
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .photo-gallery__main,
  .photo-gallery__side {
    width: 100%;
    max-width: 100%;
  }

  .photo-gallery__main img {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
  }

  .photo-gallery__categories {
    justify-content: center;
  }

  .photo-gallery__thumbs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .photo-gallery__more {
    width: 100%;
  }
  .gallery-modal__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .gallery-modal__item img {
    aspect-ratio: 1 / 1;
  }
}

@media (min-width:1025px) and (max-width:1799px){

.photo-gallery__inner{

    width:min(1040px,calc(100vw - 500px));

    margin-left:auto;

    margin-right:40px;

}

}
@media (min-width:1800px){

.photo-gallery__inner{

    width:min(1180px,74vw);

    margin:auto;

}

}

/* Tablet Gallery Fix */
@media (min-width: 769px) and (max-width: 1024px) {
  .photo-gallery-section,
  .photo-gallery-section * {
    box-sizing: border-box;
  }

  .photo-gallery__inner {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding: 64px 40px 82px;
  }

  .photo-gallery__layout {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .photo-gallery__main,
  .photo-gallery__side {
    width: 100%;
    max-width: 100%;
  }

  .photo-gallery__main {
    margin-top: 0;
  }

  .photo-gallery__main img {
    width: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 16 / 10;
  }

  .photo-gallery__thumbs {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width:1800px) {

  .photo-gallery__inner {
    width: min(1560px, 76vw);

    margin-left: auto;
    margin-right: 280px;   
    padding: 100px 0 120px;
  }

  .photo-gallery__thumbs {
    gap: 14px;
  }

  .photo-gallery__layout {
    grid-template-columns: 1.05fr .75fr;
    gap: 44px;
  }

  .photo-gallery__main img {
    max-height: 720px;
  }
}


/* =====================
   Season / Experience
===================== */

.season-section {
  position: relative;
  padding: 12rem 0;
  background: #fff;
  overflow: hidden;
}

.season-section__inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 88vw);
  margin: 0 auto;
  padding: 0;
}

/* PC：Galleryと同じように左ドロワーを避ける */
@media (min-width:1025px) and (max-width:1799px) {
  .season-section__inner {
    width: min(1040px, calc(100vw - 500px));
    margin-left: auto;
    margin-right: 40px;
  }
}

@media (min-width:1800px) {
  .season-section__inner {
    width: min(1560px, 76vw);
    margin-left: auto;
    margin-right: 280px;
  }
}

/* Heading：Galleryと同じ形、ただし白背景用に色だけ上書き */
.season-heading {
  margin-bottom: 54px;
  text-align: center;
}

.season-heading .section-label {
  display: block;
  color: var(--color-main-dark) !important;
  font-family: var(--font-en);
  font-size: clamp(5rem, 7vw, 8.8rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.season-heading p {
  color: var(--color-muted) !important;
}

.season-heading p:not(.section-label) {
  max-width: 680px;
  margin: 2rem auto 0;
  font-size: 1.5rem;
  line-height: 2;
}

/* Slider */
.season-slider {
  display: flex;
  gap: 2.4rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 2px;
  padding: 0 0 2.4rem;
  -webkit-overflow-scrolling: touch;
}

.season-slider::-webkit-scrollbar {
  height: 6px;
}

.season-slider::-webkit-scrollbar-thumb {
  background: rgba(0, 93, 139, .25);
  border-radius: 999px;
}

.season-card {
  flex: 0 0 31%;
  min-width: 320px;
  scroll-snap-align: start;
  background: rgba(248, 250, 251, .96);
  border: 1px solid rgba(0, 93, 139, .16);
  box-shadow: 0 20px 48px rgba(0, 63, 95, .08);
  overflow: hidden;
}

.season-card__image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.season-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}

.season-card:hover .season-card__image img {
  transform: scale(1.06);
}

.season-card__body {
  padding: 2.4rem;
}

.season-card__body h3 {
  margin: 0 0 1rem;
  color: var(--color-main-dark);
  font-size: 2rem;
  letter-spacing: .06em;
}

.season-card__body p {
  margin: 0 0 1.8rem;
  color: var(--color-muted);
  font-size: 1.4rem;
  line-height: 1.9;
}

.season-card__body a {
  display: inline-flex;
  align-items: center;
  gap: .8rem;
  color: var(--color-main);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 93, 139, .35);
  padding-bottom: .4rem;
}

/* Activity Banner */
.activity-banner {
  position: relative;
  margin-top: 8rem;
  min-height: 420px;
  background: #111820;
  color: #fff;
  box-shadow: 0 28px 70px rgba(0, 63, 95, .16);
  overflow: hidden;
  isolation: isolate;
}

.activity-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg,
      rgba(17, 24, 32, .98) 0%,
      rgba(17, 24, 32, .9) 34%,
      rgba(17, 24, 32, .55) 58%,
      rgba(17, 24, 32, .18) 100%);
  pointer-events: none;
}

.activity-banner::after {
  content: "";
  position: absolute;
  left: 5.6rem;
  top: 4.8rem;
  z-index: 4;
  width: 42px;
  height: 1px;
  background: rgba(255,255,255,.72);
}


.activity-banner__body {
  position: relative;
  z-index: 5;
  width: min(58%, 720px);
  min-height: 420px;
  padding: 7.2rem 5.6rem 5.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-banner__label {
  margin: 0 0 3.2rem;
  color: rgba(255,255,255,.28);
  font-family: var(--font-en);
  font-size: clamp(3.2rem, 4vw, 5.8rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: .34em;
  text-transform: uppercase;
}

.activity-banner__body h3 {
  margin: 0 0 2rem;
  color: #fff;
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  line-height: 1.45;
  letter-spacing: .05em;
}

.activity-banner__body p:not(.activity-banner__label) {
  margin: 0 0 2.8rem;
  color: rgba(255,255,255,.76);
  font-size: 1.4rem;
  line-height: 2;
}

.activity-banner__body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 210px;
  min-height: 5.6rem;
  padding: 1.4rem 3.4rem;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1.7rem;
  letter-spacing: .12em;
  text-decoration: none;
  transition: .25s ease;
}

.activity-banner__body a:hover {
  background: #fff;
  color: #111820;
}

.activity-banner__link::after {
  content: "↗";
  margin-left: 1rem;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .25s ease, color .25s ease;
}

.activity-banner__link:hover::after {
  color: #111820;
  transform: translate(2px, -2px);
}

.activity-banner__body {
  padding: 5.6rem 4.8rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.activity-banner__label {
  margin: 0 0 1.4rem;
  color: rgba(255,255,255,.66);
  font-family: var(--font-en);
  font-size: 1.5rem;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.activity-banner__body h3 {
  margin: 0 0 2rem;
  color: #fff;
  font-size: clamp(2.4rem, 3vw, 3.6rem);
  line-height: 1.45;
  letter-spacing: .05em;
}

.activity-banner__body p {
  margin: 0 0 2.8rem;
  color: rgba(255,255,255,.72);
  font-size: 1.4rem;
  line-height: 2;
}

.activity-banner__body a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 210px;
  min-height: 5.6rem;
  padding: 1.4rem 3.4rem;
  border: 1px solid #fff;
  border-radius: 999px;
  color: #fff;
  font-family: var(--font-en);
  font-size: 1.7rem;
  letter-spacing: .12em;
  text-decoration: none;
  transition: .25s ease;
}

.activity-banner__body a:hover {
  background: #fff;
  color: #111820;
}
.activity-banner__link::after {
  content: "↗";
  margin-left: 1rem;
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  transition: transform .25s ease, color .25s ease;
}

.activity-banner__link:hover::after {
  color: #111820;
  transform: translate(2px, -2px);
}

.activity-banner__visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.activity-banner__scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: activitySceneSwitch 10s infinite;
}

.activity-banner__scene--split {
  opacity: 1;
  animation-delay: 0s;
}

.activity-banner__scene--single {
  animation-delay: 5s;
}

.activity-banner__photo {
  position: absolute;
  top: 0;
  height: 100%;
  overflow: hidden;
}

.activity-banner__photo img,
.activity-banner__scene--single img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 左の斜め写真 */
.activity-banner__photo--main {
  left: 26%;
  width: 53%;
  clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
}

/* 右の斜め写真：隙間が出ないように少し重ねる */
.activity-banner__photo--sub {
  right: -1px;
  width: 38%;
  clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%);
}

/* 1枚全面 */
.activity-banner__scene--single img {
  transform: scale(1.03);
}

/* 斜め2枚 → 1枚全面 */
@keyframes activitySceneSwitch {
  0%, 44% {
    opacity: 1;
    transform: scale(1);
  }

  50%, 94% {
    opacity: 0;
    transform: scale(1.04);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .season-section {
    width: 100%;
    max-width: 100vw;
    padding: 8rem 0;
    margin-left: 0;
    overflow-x: hidden;
  }

  .season-section__inner {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 18px;
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .season-slider {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .activity-banner {
    width: 100%;
    max-width: 100%;
    margin: 5.6rem auto 0;
    min-height: auto;
    overflow: hidden;
    box-sizing: border-box;
  }

  .activity-banner,
  .activity-banner * {
    box-sizing: border-box;
  }

  .activity-banner::before {
    background:
      linear-gradient(180deg,
        rgba(17, 24, 32, .18) 0%,
        rgba(17, 24, 32, .92) 42%,
        rgba(17, 24, 32, 1) 100%);
  }

  .activity-banner::after {
    left: 2rem;
    top: 30rem;
    width: 38px;
  }



  .activity-banner__body {
    width: 100%;
    min-height: auto;
    padding: 3.6rem 2rem 3.2rem;
  }

  .activity-banner__label {
    margin-bottom: 2.2rem;
    font-size: 2.8rem;
    letter-spacing: .28em;
  }

  .activity-banner__body h3 {
    font-size: 2.3rem;
  }

  .activity-banner__body a {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding-left: 1.6rem;
    padding-right: 1.6rem;
  }
  .activity-banner__visual {
    position: relative;
    height: 300px;
  }

  .activity-banner__photo--main {
    left: 0;
    width: 74%;
    clip-path: polygon(0 0, 100% 0, 78% 100%, 0 100%);
  }

  .activity-banner__photo--sub {
    right: -1px;
    width: 44%;
    clip-path: polygon(34% 0, 100% 0, 100% 100%, 0 100%);
  }

  .activity-banner__scene--single img {
    transform: scale(1.03);
  }
}


/* =====================
   Winter CTA
===================== */

.winter-cta {
  position: relative;
  padding: 11rem 0;
  background:
    linear-gradient(135deg, rgba(0, 63, 95, .92), rgba(17, 24, 32, .96)),
    url("https://snow-resort-hermitage.com/wp-content/uploads/2026/06/bg555-7.webp") center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.winter-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.18), transparent 32%),
    radial-gradient(circle at 80% 78%, rgba(255,255,255,.10), transparent 34%);
  pointer-events: none;
}

.winter-cta__inner {
  position: relative;
  z-index: 1;
  width: min(900px, 88vw);
  margin: 0 auto;
  text-align: center;
}


@media (min-width:1025px) {
  .winter-cta__inner {
    width: min(860px, calc(100vw - 460px));

    margin-left: calc(
      360px +
      ((100vw - 360px - min(860px, calc(100vw - 460px))) / 2)
      + 40px
    );

    margin-right: 0;
  }
}
@media (min-width:1800px) {
  .winter-cta__inner {
    width: min(1100px, 72vw);
    margin-left: auto;
    margin-right: 280px;
  }
}

.winter-cta__label {
  margin: 0 0 2rem;
  font-family: var(--font-en);
  font-size: clamp(5.2rem, 7vw, 9rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}

.winter-cta h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.4rem, 3vw, 3.8rem);
  line-height: 1.55;
  letter-spacing: .08em;
}

.winter-cta__lead {
  margin: 0 auto 3.8rem;
  max-width: 640px;
  color: rgba(255,255,255,.76);
  font-size: 1.5rem;
  line-height: 2;
}

.winter-cta__buttons {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.winter-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 220px;
  min-height: 5.8rem;
  padding: 1.4rem 3.4rem;
  border-radius: 999px;
  font-family: var(--font-en);
  font-size: 1.8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-decoration: none;
  transition: .25s ease;
}

.winter-cta__button--faq {
  border: 1px solid rgba(255,255,255,.72);
  color: #fff;
  background: transparent;
}

.winter-cta__button--reserve {
  border: 1px solid #fff;
  color: var(--color-main-dark);
  background: #fff;
}

.winter-cta__button--faq:hover {
  background: rgba(255,255,255,.12);
  transform: translateY(-2px);
}

.winter-cta__button--reserve:hover {
  background: var(--color-main);
  border-color: var(--color-main);
  color: #fff;
  transform: translateY(-2px);
}

.winter-cta__button--reserve::after {
  content: "↗";
  margin-left: 1rem;
  font-size: 1.4rem;
}

@media (max-width:768px) {
  .winter-cta {
    padding: 8rem 2rem;
  }

  .winter-cta__inner {
    width: 100%;
    text-align: left;
  }

  .winter-cta__label {
    font-size: 4.8rem;
  }

  .winter-cta__lead {
    margin-left: 0;
  }

  .winter-cta__buttons {
    flex-direction: column;
  }

  .winter-cta__button {
    width: 100%;
  }
}


/* CTA button overflow fix */
.winter-cta,
.winter-cta * {
  box-sizing: border-box;
}

.winter-cta {
  max-width: 100%;
  overflow: hidden;
}

.winter-cta__buttons {
  width: 100%;
}

.winter-cta__button {
  max-width: 100%;
}

/* Photo Marquee */
.winter-cta__photo-marquee {
  position: relative;
  width: 100vw;
  margin-top: 6.4rem;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: hidden;
}

.winter-cta__photo-track {
  display: flex;
  align-items: center;
  gap: 1.8rem;
  width: max-content;
  animation: winterCtaMarquee 42s linear infinite;
  will-change: transform;
}

.winter-cta__photo {
  flex: 0 0 auto;
  margin: 0;
  overflow: hidden;
  background: rgba(255,255,255,.12);
  box-shadow: 0 18px 44px rgba(0,0,0,.18);
}

.winter-cta__photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

/* あえてサイズをバラす */
.winter-cta__photo--wide {
  width: 340px;
  height: 210px;
}

.winter-cta__photo--square {
  width: 230px;
  height: 230px;
}

.winter-cta__photo--tall {
  width: 190px;
  height: 290px;
}

@keyframes winterCtaMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-33.333%);
  }
}



/* Mobile */
@media (max-width: 768px) {
  .winter-cta {
    padding-left: 0;
    padding-right: 0;
    overflow-x: hidden;
  }

  .winter-cta__inner {
    width: 100%;
    max-width: 100%;
    padding: 0 2rem;
    box-sizing: border-box;
  }

  .winter-cta__buttons {
    width: 100%;
    max-width: 100%;
  }

  .winter-cta__button {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .winter-cta__photo-marquee {
    margin-top: 4.8rem;
  }

  .winter-cta__photo-track {
    gap: 1.2rem;
    animation-duration: 34s;
  }

  .winter-cta__photo--wide {
    width: 220px;
    height: 138px;
  }

  .winter-cta__photo--square {
    width: 148px;
    height: 148px;
  }

  .winter-cta__photo--tall {
    width: 120px;
    height: 184px;
  }
}