/* =====================
   Autumn Top Hero
===================== */
.autumn-top-hero {
  background-position: center center;
}

.autumn-top-hero .top-hero__overlay {
  background:
    linear-gradient(
      90deg,
      rgba(35, 16, 6, .74) 0%,
      rgba(70, 34, 10, .40) 45%,
      rgba(95, 54, 18, .12) 100%
    ),
    radial-gradient(
      ellipse at 28% 74%,
      rgba(20, 8, 2, .72) 0%,
      rgba(20, 8, 2, .36) 42%,
      rgba(20, 8, 2, 0) 72%
    );
}

/* 秋の四角写真 */
.autumn-hero-photo--rect {
  top: clamp(115px, 15vh, 180px);
  right: clamp(80px, 8vw, 160px);
  width: clamp(430px, 40vw, 740px);
  height: clamp(310px, 31vw, 500px);
  border-radius: clamp(26px, 3vw, 46px);
}

/* 秋の丸写真 */
.autumn-hero-photo--circle {
  top: clamp(400px, 51vh, 560px);
  right: clamp(34px, 4vw, 86px);
  width: clamp(230px, 22vw, 380px);
  height: clamp(230px, 22vw, 380px);
  border-radius: 50%;
}

/* 左下タイトル */
.autumn-top-hero__content {
  left: 420px;
  bottom: 7vh;
  width: min(50vw, 720px);
  gap: 2.2rem;
}

.autumn-top-hero__title {
  width: min(34vw, 520px);
  filter:
    drop-shadow(0 5px 14px rgba(0, 18, 32, .72))
    drop-shadow(0 0 12px rgba(255,255,255,.18));
}

.autumn-top-hero__title svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.autumn-top-hero__facts {
  width: 100%;
}

/* SVGレイヤー順番アニメーション */
.autumn-top-hero__title svg g[id^="_レイヤー_"] {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: autumnLayerPop .8s cubic-bezier(.2, 1.1, .35, 1) forwards;
}

.autumn-top-hero__title svg #_レイヤー_4 {
  animation-delay: .25s;
}

.autumn-top-hero__title svg #_レイヤー_5 {
  animation-delay: .45s;
}

.autumn-top-hero__title svg #_レイヤー_6 {
  animation-delay: .65s;
}

.autumn-top-hero__title svg #_レイヤー_7 {
  animation-delay: .85s;
}

.autumn-top-hero__title svg #_レイヤー_8 {
  animation-delay: 1.05s;
}

@keyframes autumnLayerPop {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(.96);
    filter: blur(6px);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .autumn-top-hero .top-hero__inner {
    padding: 0;
  }

  .autumn-hero-photo--rect {
    top: 15svh;
    right: -24px;
    width: 82vw;
    height: 52vw;
    max-height: 520px;
    border-radius: 34px 0 0 34px;
  }

  .autumn-hero-photo--circle {
    top: calc(15svh + 35vw);
    left: 7vw;
    right: auto;
    width: 28vw;
    height: 28vw;
    max-width: 260px;
    max-height: 260px;
  }

  .autumn-top-hero__content {
    left: 4vw;
    right: 4vw;
    bottom: 8svh;
    width: auto;
  }

  .autumn-top-hero__title {
    width: min(68vw, 620px);
  }
}

/* SP */
@media (max-width: 768px) {
  .autumn-top-hero {
    min-height: 100svh;
    background-position: center center;
  }

  .autumn-top-hero .top-hero__inner {
    min-height: 100svh;
    padding: 0;
  }

  .autumn-hero-photo--rect {
    top: 17svh;
    right: -38px;
    width: 98vw;
    height: 68vw;
    max-height: 310px;
    border-radius: 28px 0 0 28px;
  }

  .autumn-hero-photo--circle {
    top: calc(27svh + 40vw);
    left: 22px;
    right: auto;
    width: 42vw;
    height: 42vw;
    max-width: 185px;
    max-height: 185px;
  }

  .autumn-top-hero__content {
    left: 1.8rem;
    right: 1.8rem;
    bottom: 3.2rem;
    width: auto;
    gap: 1.8rem;
  }

  .autumn-top-hero__title {
    width: min(88vw, 390px);
  }

  .autumn-top-hero__facts {
    width: 100%;
    padding-top: 1.4rem;
  }

  .autumn-top-hero__facts::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 58px;
    height: 1px;
    background: rgba(255,255,255,.72);
  }
}

/* Large */
@media (min-width: 1800px) {
  .autumn-hero-photo--rect {
    width: clamp(700px, 44vw, 940px);
    height: clamp(480px, 30vw, 640px);
    right: clamp(110px, 7vw, 210px);
  }

  .autumn-hero-photo--circle {
    width: clamp(340px, 21vw, 500px);
    height: clamp(340px, 21vw, 500px);
    top: clamp(510px, 52vh, 720px);
    right: clamp(60px, 4vw, 130px);
  }

  .autumn-top-hero__title {
    width: min(38vw, 720px);
  }
}


/* =====================
   Autumn Concept
===================== */
.autumn-concept .winter-concept__bg {
  background-image:
    linear-gradient(
      90deg,
      rgba(45, 20, 8, .54) 0%,
      rgba(92, 45, 16, .24) 45%,
      rgba(38, 18, 8, .48) 100%
    ),
    url("https://snow-resort-hermitage.com/wp-content/uploads/2026/06/k6s-7.webp");
}

/* SVGのフィルター衝突対策 */
.autumn-concept .winter-concept__title svg g,
.autumn-concept .winter-concept__title svg path {
  filter: none !important;
}

/* SVG表示 */
.autumn-concept .winter-concept__title svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.autumn-concept .winter-concept__title svg path {
  fill: #fff !important;
}

/* PC */
@media (min-width: 1025px) {
  .autumn-concept .winter-concept__heading {
    top: 10vh;
    right: 7vw;
    overflow: visible;
  }

  .autumn-concept .winter-concept__title {
    width: clamp(150px, 12vw, 260px);
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .autumn-concept .winter-concept__heading {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-bottom: 7vh;
    overflow: visible;
  }

  .autumn-concept .winter-concept__title {
    width: clamp(120px, 20vw, 190px);
    margin-left: auto;
    margin-right: 3vw;
  }
}

/* SP */
@media (max-width: 768px) {
  .autumn-concept .winter-concept__heading {
    position: relative;
    width: 100%;
    margin-bottom: 60px;
    overflow: visible;
  }

  .autumn-concept .winter-concept__title {
    width: 44vw;
    margin-left: 52vw;
    position: relative;
    z-index: 3;
  }
}




/* =====================
   Experience Intro
===================== */
.experience-section {
  position: relative;
  overflow: visible;
  background:
    linear-gradient(rgba(255,255,255,.72), rgba(255,255,255,.82)),
    url("https://snow-resort-hermitage.com/wp-content/uploads/2026/06/as077-1.webp");
  background-size: cover;
  background-position: center;
  color: var(--color-text);
}

.experience-intro {
  position: relative;
  z-index: 2;
  padding: 110px 0 90px;

  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .72fr);
  gap: clamp(40px, 5vw, 86px);
  align-items: center;
}

@media (min-width: 1025px) {
  .experience-intro {
    width: min(1280px, calc(100vw - 500px));
    margin-left: auto;
    margin-right: 40px;
  }
}

.experience-intro__text {
  min-width: 0;
}

.experience-intro__title {
  width: 100%;
}

.experience-intro__title svg {
  display: block;
  width: clamp(520px, 42vw, 820px);
  max-width: 100%;
  height: auto;
  overflow: visible;
}

.experience-intro__title svg > g {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: translateY(26px) scale(.92) rotate(-2deg);
  filter: blur(8px);
}

.experience-intro__title.is-show svg > g {
  animation: titlePop .72s cubic-bezier(.22, 1.35, .36, 1) forwards;
}

.experience-intro__title.is-show svg > g:nth-of-type(1) { animation-delay: .05s; }
.experience-intro__title.is-show svg > g:nth-of-type(2) { animation-delay: .18s; }
.experience-intro__title.is-show svg > g:nth-of-type(3) { animation-delay: .31s; }
.experience-intro__title.is-show svg > g:nth-of-type(4) { animation-delay: .44s; }
.experience-intro__title.is-show svg > g:nth-of-type(5) { animation-delay: .57s; }
.experience-intro__title.is-show svg > g:nth-of-type(6) { animation-delay: .70s; }
.experience-intro__title.is-show svg > g:nth-of-type(7) { animation-delay: .83s; }

@keyframes titlePop {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(.92) rotate(-2deg);
    filter: blur(8px);
  }

  65% {
    opacity: 1;
    transform: translateY(-5px) scale(1.04) rotate(1deg);
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0);
    filter: blur(0);
  }
}

.experience-intro__body {
  margin-top: 100px;
  margin-left: 18px;
  max-width: 620px;
}

.experience-intro__en {
  margin: 0 0 22px;
  font-family: var(--font-en);
  font-size: clamp(38px, 3vw, 58px);
  line-height: .9;
  font-weight: 500;
  letter-spacing: .18em;
color: var(--color-base);
}

.experience-intro__lead {
  margin: 0;
  max-width: 540px;
  font-size: 15.5px;
  line-height: 2.15;
  letter-spacing: .08em;
color: var(--color-base);
}

/* 右にはみ出す写真 */
.experience-intro__visual {
  position: relative;
  width: clamp(360px, 34vw, 620px);
  height: clamp(460px, 46vw, 760px);
  margin-right: -10vw;
  overflow: hidden;
  box-shadow:
    0 28px 80px rgba(0, 45, 75, .18),
    0 0 0 1px rgba(255,255,255,.5) inset;
}

.experience-intro__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s ease;
}

.experience-intro__visual img.is-active {
  opacity: 1;
  animation: experienceIntroZoom 7s ease forwards;
}

@keyframes experienceIntroZoom {
  from {
    transform: scale(1.04);
  }
  to {
    transform: scale(1.16);
  }
}
.experience-intro__title.is-show svg > g:last-of-type{
    animation:
      titlePop .72s cubic-bezier(.22,1.35,.36,1) forwards,
      titleBounce .7s ease .95s forwards;
}

@keyframes titleBounce{

  0%{
    transform:translateY(0);
  }

  35%{
    transform:translateY(-8px);
  }

  60%{
    transform:translateY(2px);
  }

  100%{
    transform:translateY(0);
  }

}


/* 4K */
@media (min-width: 1800px) {
  .experience-intro {
    width: min(1580px, 82vw);
    margin: 0 auto;
  }

  .experience-intro__title svg {
    width: clamp(620px, 34vw, 860px);
  }

  .experience-intro__visual {
    width: clamp(520px, 30vw, 760px);
    height: clamp(640px, 38vw, 900px);
    margin-right: -9vw;
  }
}

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
  .experience-intro {
    width: 100%;
    padding: 82px 6vw 60px;
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .experience-intro__title svg {
    width: min(520px, 76vw);
  }

  .experience-intro__visual {
    width: min(680px, 88vw);
    height: 420px;
    margin: 0 auto;
  }
}

/* SP */
@media (max-width: 768px) {
  .experience-intro {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 0;
    gap: 34px;
  }

  .experience-intro__visual {
    order: 1;
    width: calc(100% + 48px);
    height: 340px;
    margin-left: -24px;
    margin-right: -24px;
    margin-bottom: 18px;
  }

  .experience-intro__text {
    order: 2;
  }

  .experience-intro__title svg {
    width: min(360px, 90vw);
  }

  .experience-intro__body {
    margin: 68px 20px;
    max-width: 100%;
  }

  .experience-intro__en {
    font-size: 28px;
    letter-spacing: .12em;
  }

  .experience-intro__lead {
    font-size: 14px;
    line-height: 2;
  }
}


/* =====================
   Experience Horizontal Stack
===================== */
.experience-section {
  position: relative;
  overflow: visible;
  background: none;
}

.experience-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
url("https://snow-resort-hermitage.com/wp-content/uploads/2026/06/as077-1.webp");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  pointer-events: none;
}

.experience-intro,
.experience-stack {
  position: relative;
  z-index: 1;
}


/* =====================
   PC (デフォルト)
===================== */
.experience-stack {
  height: calc(135vh * var(--card-count));
  width: min(1680px, calc(100vw - 500px));
  margin-left: auto;
  margin-right: 40px;
}

.experience-stack__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.experience-track {
  display: flex;
  width: 100%;
  height: 74vh;
  gap: 0;
  will-change: transform;
}

.experience-card {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 74vh;
  margin: 0;
  padding: clamp(34px, 2vw, 64px);

  display: grid;
  grid-template-columns: .95fr .85fr;
  gap: clamp(34px, 5vw, 72px);
  align-items: center;

  background: rgba(255,255,255,.96);
  color: var(--color-text);

  box-shadow:
    0 34px 90px rgba(0,45,75,.18),
    0 0 0 1px rgba(0,93,139,.12) inset;
}

.experience-card--blue {
  background: var(--color-main-dark);
  color: #fff;
}

.experience-card__number {
  position: absolute;
  top: 30px;
  right: 6vw;
  font-family: var(--font-en);
  font-size: clamp(42px, 4vw, 74px);
  letter-spacing: .1em;
}

.experience-card__image {
    align-self: stretch;

    margin-top: calc(clamp(34px, 2vw, 64px) * -1);
    margin-bottom: calc(clamp(34px, 2vw, 64px) * -1);
    margin-left: calc(clamp(34px, 2vw, 64px) * -1);

    overflow: hidden;

    clip-path: polygon(
        0 0,
        88% 0,
        100% 50%,
        88% 100%,
        0 100%
    );
}

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

.experience-card__content h3 {
  margin: 0 0 28px;
  font-family: var(--font-en);
  font-size: clamp(48px, 5vw, 92px);
  line-height: .92;
  font-weight: 500;
}

.experience-card__lead {
  margin: 0 0 28px;
  max-width: 420px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: .07em;
}

.experience-card__place {
  margin-top: 30px;
  padding: 18px 20px;
  border: 1px solid rgba(0,93,139,.32);
  display: block;
  width: fit-content;
  max-width: 420px;
  overflow: hidden;
}

.experience-card--blue .experience-card__place {
  border-color: rgba(255,255,255,.45);
}

.experience-card__sign {
  position: absolute;
  right: clamp(110px, 4vw, 120px);
  bottom: clamp(22px, 3vw, 42px);
  width: clamp(120px, 15vw, 300px);
}


/* =====================
   Place / Map
===================== */
.experience-card__place-text p {
  font-size: 13px;
  letter-spacing: .06em;
  margin: 0 0 18px;
  line-height: 1.8;
}

.experience-card__place-text p:last-child {
  margin-bottom: 0;
}

.experience-card__place-text a {
  display: inline-block;
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: .08em;
}


/* =====================
   Sign アニメーション
===================== */
.experience-card__sign svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.experience-card__sign svg path {
  stroke-dasharray: 520;
  stroke-dashoffset: 520;
  opacity: 0;
}

.experience-card.is-sign-show .experience-card__sign svg path {
  animation: signDraw 1.25s ease forwards;
}

.experience-card.is-sign-show .experience-card__sign svg path:nth-of-type(2) {
  animation-delay: .72s;
}

@keyframes signDraw {
  0%  { stroke-dashoffset: 520; opacity: 0; }
  1%  { opacity: 1; }
  100%{ stroke-dashoffset: 0;   opacity: 1; }
}


/* =====================
   4K
===================== */
@media (min-width: 1800px) {
  .experience-stack {
    width: min(1680px, 82vw);
    margin-left: auto;
    margin-right: auto;
  }
}


/* =====================
   Tablet (max 1024px)
===================== */
@media (max-width: 1024px) {
  .experience-section::before {
    background-attachment: scroll;
  }

  .experience-stack {
    height: calc(135vh * var(--card-count));
    width: 100%;
    margin: 0;
    padding: 0;
  }

  .experience-stack__sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
    display: flex;
    align-items: center;
  }

  .experience-track {
    width: 100%;
    height: auto;
  }

  .experience-card {
    flex: 0 0 100%;
    width: 100%;
    height: auto;
    min-height: 74svh;
    margin: 0;
    padding: 28px 20px 34px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .experience-card__number {
    position: relative;
    top: auto;
    right: auto;
    font-size: 42px;
  }

  .experience-card__content h3 {
    font-size: 40px;
  }

  .experience-card__lead {
    font-size: 14px;
    line-height: 2;
  }

  .experience-card__sign {
    position: relative;
    right: auto;
    bottom: auto;
    width: 170px;
    margin-top: 8px;
  }
}


/* =====================
   SP (max 768px)
===================== */
@media (max-width: 768px) {
  html,
  body {
    overflow-x: hidden;
  }

  .experience-section {
    overflow: hidden;
  }

  .experience-stack {
    box-sizing: border-box;
    height: auto !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 20px 64px !important;
  }

  .experience-stack__sticky {
    box-sizing: border-box;
    position: relative !important;
    top: auto !important;
    height: auto !important;
    overflow: visible !important;
    display: block !important;
  }

  .experience-track {
    box-sizing: border-box;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    width: 100% !important;
    height: auto !important;
    transform: none !important;
  }

  .experience-card {
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 28px 20px 32px !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    overflow: hidden !important;
  }

  .experience-card * {
    box-sizing: border-box;
  }

  .experience-card__number {
    position: relative;
    top: auto;
    right: auto;
    font-size: 34px;
    line-height: 1;
  }

  .experience-card__image img {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 10;
  }

  .experience-card__content h3 {
    margin: 0 0 16px;
    font-size: 34px;
    line-height: 1;
    word-break: break-word;
    overflow-wrap: anywhere;
  }

  .experience-card__content,
  .experience-card__lead,
  .experience-card__place {
    min-width: 0;
    max-width: 100%;
  }

  .experience-card__lead {
    font-size: 13.5px;
    line-height: 1.85;
    letter-spacing: .04em;
    overflow-wrap: break-word;
  }

  .experience-card__place {
    width: 100%;
    margin-top: 18px;
    padding: 13px 15px;
  }

  .experience-card__place p {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: break-word;
  }

  .experience-card__sign {
    position: relative;
    right: auto;
    bottom: auto;
    width: 130px;
    margin-top: 4px;
  }

}

.experience-card__place--link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: .35s ease;
}

.experience-card__place--link:hover {
  background: #fff;
  color: var(--color-main-dark);
  transform: translateY(-3px);
  box-shadow: 0 14px 35px rgba(0,0,0,.16);
}
.experience-card__place--link {
  position: relative;
  display: block;
  width: min(100%, 420px);
  padding: 34px 36px;
  border: 1px solid rgba(255,255,255,.78);
  color: #fff;
  text-decoration: none;
  overflow: visible;
  transition: .35s ease;
}

.experience-card__place-label {
  display: block;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: .12em;
  font-weight: 600;
  text-align: center;
}

.experience-card__click {
  position: absolute;
  left: -18px;
  top: -24px;
  z-index: 2;

  font-family: var(--font-en);
  font-size: 28px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .04em;

  color: currentColor;

  transform: rotate(-18deg);

  /* 削除 */
  text-shadow: none;

  pointer-events: none;
}

.experience-card__click::before,
.experience-card__click::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 1px;
  background: currentColor;
  left: -24px;
  top: 18px;
  transform-origin: right center;
}

.experience-card__click::before {
  transform: rotate(38deg);
}

.experience-card__click::after {
  transform: rotate(-38deg);
  top: 26px;
}

.experience-card__place--link:hover {
  background: rgba(255,255,255,.96);
  color: var(--color-main-dark);
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(0,0,0,.18);
}

.experience-card__place--link:hover .experience-card__click {
  color: #fff;
  transform: rotate(-18deg) translateY(-3px);
}
@media (max-width: 768px) {
  .experience-card__place--link {
    width: 100%;
    padding: 28px 22px;
  }

  .experience-card__click {
    left: 2px;
    top: -20px;
    font-size: 23px;
  }

  .experience-card__place-label {
    font-size: 13px;
    letter-spacing: .08em;
  }
}

@media (max-width: 1024px) {
  .experience-card__image {
    height: auto;
    min-height: auto;
    margin: 0;
    clip-path: none;
  }

  .experience-card__image img {
    width: 100%;
    height: auto;
    min-height: auto;
    aspect-ratio: 16 / 10;
  }
}
.experience-card__click {
  color: var(--color-main-dark);
}

.experience-card--blue .experience-card__click {
  color: #fff;
}
.experience-card__place {
  position: relative;
  overflow: visible;
}


.photo-gallery-section {
    background-image: url(https://snow-resort-hermitage.com/wp-content/uploads/2026/06/kj9g-8.webp);
}
/* 青カードのリンクボタン */
.experience-card--blue .experience-card__place--link {
  background: #fff;
  color: var(--color-main-dark);
}

/* 青カードのクリック文字 */
.experience-card--blue .experience-card__place--link .experience-card__click {
  color: var(--color-main-dark);
}

/* 白カードのリンクボタン */
.experience-card--white .experience-card__place--dark {
  background: #163b63;
  color: #fff;
}

/* 白カードのクリック文字だけ青 */
.experience-card--white .experience-card__place--dark .experience-card__click {
  color: #163b63;
}

/* 白カードのラベル文字 */
.experience-card--white .experience-card__place--dark .experience-card__place-label {
  color: #fff;
}