/* Slider Styles */

.slider {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
@media screen and (max-width: 768px) {
  .slider {
    height: calc(var(--vh, 1vh) * 100 - 60px);
  }
}
.slider .l-main_section {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  /* GSAPでアニメーションを制御するため、transitionは削除 */
}

.slider .l-main_section.is-active {
  opacity: 1;
  visibility: visible!important;
  z-index: 9999;
}

/* l-main_side スタイル */
.l-main_side {
  width: 5vw;
  background-color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
  gap: clamp(20px, 3vh, 40px);
  padding: clamp(24px, 4vh, 56px) 0;
  box-sizing: border-box;
}

/* ドットナビゲーション */
.indicator-dots {
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 110;
  pointer-events: none;
  padding: 0;
  background: transparent;
  border-radius: 0;
  backdrop-filter: none;
  align-items: flex-start;
}

.l-main_side .indicator-dots {
  margin-top: clamp(12px, 6vh, 60px);
  align-self: center;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7d7d7;
  opacity: 1;
  transition: background-color 200ms ease, transform 200ms ease;
  display: block;
  cursor: pointer;
  pointer-events: auto;
}

.indicator-dot.is-active {
  background: #111111;
  transform: scale(1.1);
}

/* 上下ナビゲーション */
.arrow-controls {
  position: relative;
  right: auto;
  bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  z-index: 120;
}

.nav-button {
  width: auto;
  height: auto;
  border: none;
  border-radius: 0;
  background: transparent;
  padding: 12px;
  color: #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
  backdrop-filter: none;
}

.nav-button:hover:not(:disabled) {
  color: #000000;
  transform: translateY(-1px);
}

.nav-button:active:not(:disabled) {
  transform: translateY(1px);
}

.nav-button:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-button__icon {
  position: relative;
  width: 20px;
  height: 20px;
  display: block;
  transform: rotate(-90deg);
  transition: transform 180ms ease;
}

.nav-button__icon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin-left: -0.25em;
  border-left: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translate(-50%, -50%) rotate(-135deg);
  transform-origin: center;
}

.slider .l-main_section:first-of-type > * {
  opacity: 0;
}
.slider .l-main_section:first-of-type > *:not(.is-visible) {
  transition: opacity 0.3s ease;
}

.nav-button--down .nav-button__icon {
  transform: rotate(90deg);
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
  .l-main_side {
    display: flex;
    flex-direction: row;
    width: 100%;
    /*min-height: 18.6666666667vw;*/
    /*height: auto;*/
    top: auto;
    bottom: 0;
    justify-content: center;
    align-items: center;
    gap: 5.3333333333vw;
    /*padding: 2.6666666667vw 8vw;*/
    padding: 0 8vw;
    grid-template-rows: none;
  }
  
  .l-main_side .indicator-dots {
    margin-top: 0;
    align-self: auto;
    flex-direction: row;
    gap: 12px;
  }
  
  .l-main_side .arrow-controls {
    margin-left: auto;
    flex-direction: row;
    gap: 8px;
  }
  
  .indicator-dot {
    width: 6px;
    height: 6px;
  }
  
  .indicator-dot.is-active {
    transform: scale(1.1);
  }
  
  .nav-button {
    padding: 10px;
  }
  
  .nav-button__icon {
    width: 18px;
    height: 18px;
  }
  
  .nav-button__icon::before {
    width: 10px;
    height: 10px;
  }
}

/* Loading Screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.7s ease, visibility 0.7s ease;
  pointer-events: auto;
}
.loading-screen.is-loaded {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-screen__inner {
  text-align: center;
  color: #111;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loading-screen__spinner {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #111;
  border-right-color: #111;
  animation: loading-rotate 1.1s linear infinite;
}
@keyframes loading-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loading-screen__spinner {
    animation: none;
    border-top-color: rgba(0, 0, 0, 0.65);
    border-right-color: rgba(0, 0, 0, 0.65);
  }
}


