/* ===== ヒーローセクション ===== */
.hero-section.hero-section {
  margin-block-start: 68px;
  margin-block-end: 60px;
  margin-inline: 0;
  height: calc(100vh - 88px);
  position: relative;
  overflow: visible;
  width: 100%;
  padding: 30px 20px 0;
  box-sizing: border-box;

  .hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
  }

  .hero-overlay {
    position: absolute;
    pointer-events: none;
    z-index: 1;

    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      object-position: var(--hero-overlay-position, center);
    }
  }

  .hero-overlay-t {
    top: -20px;
    left: 40px;
    --hero-overlay-position: top left;

    img {
      object-fit: contain;
      width: 180%;
      height: auto;
      object-position: top left;
    }
    @media (max-width: 768px) {
      left: 0px;
      img {
        width: 100%;
      }
    }
  }

  .hero-overlay-lb {
    bottom: -20px;
    left: -20px;
    height: 65%;

    img {
      object-position: bottom left;
      width: 80%;
    }
    @media (max-width: 768px) {
      left: -60px;
      img {
        width: 40%;
      }
    }
  }

  .hero-overlay-rb {
    bottom: -20px;
    right: 220px;

    img {
      object-fit: contain;
      object-position: bottom right;
      width: 180%;
    }
    @media (max-width: 768px) {
      right: 40px;
      img {
        width: 120%;
      }
    }
  }

  .hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    margin: 0;
    padding: 0 20px;
    box-sizing: border-box;
    border-radius: 20px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    &.active {
      opacity: 1;
      z-index: 1;
    }
  }

  .hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding-right: 8%;
    min-height: 50vh;

    p {
      font-size: 20px;
      color: var(--color-yellow);
      letter-spacing: 0.15em;
      margin: 0;
      align-self: flex-start;
      margin-left: 17%;
      margin-top: auto;
      margin-bottom: -10%;
      font-family: var(--font-rokkitt);
      font-weight: 700;
      font-style: normal;
      text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    }
  }

  h1 {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    margin: 0 0 20px;
    font-size: 46px;
    font-weight: 700;
    letter-spacing: 0.02em;
    font-family: var(--font-zen-kaku-gothic-new);
    color: #fff;
    text-shadow:
      1px 1px 2px rgba(0, 0, 0, 0.25),
      0 0 12px rgba(0, 0, 0, 0.15);

    .hero-text-col {
      font-family: var(--font-zen-kaku-gothic-new);
      writing-mode: vertical-rl;
      text-orientation: mixed;
      letter-spacing: 0.02em;
      text-align: start;
    }
  }

  .hero-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
    z-index: 100;
    pointer-events: none;
    box-sizing: border-box;
  }

  .hero-prev,
  .hero-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--color-border);
    border-radius: 50%;
    font-size: 30px;
    color: var(--color-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    pointer-events: auto;
    position: relative;
    z-index: 101;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);

    &:hover {
      background: #fff;
      transform: scale(1.1);
    }
  }

  .hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 10;
  }

  .hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;

    &.active {
      background: #fff;
    }

    &:hover {
      transform: scale(1.2);
    }
  }

  .scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
    z-index: 10;
    color: var(--color-primary);
  }

  @media (max-width: 768px) {
    margin-block-start: 100px;
    margin-block-end: 30px;
    height: calc(100svh - 90px - 30px);
    max-width: 100%;
    width: 100%;
    padding: 0 20px;
    margin-inline: 0;

    .hero-slider {
      width: 100%;
    }

    .hero-slide {
      border-radius: 12px;
    }

    .hero-content {
      align-items: flex-end;
      justify-content: flex-start;
      padding-right: 20px;
      padding-left: 20px;
      padding-top: 24px;

      p {
        margin-left: -20px;
        font-size: 14px;
        text-align: left;
      }
    }

    h1 {
      font-size: 26px;
      writing-mode: horizontal-tb;
      text-orientation: unset;
      text-align: right;
    }

    .hero-controls {
      padding: 0 5px;
    }

    .hero-prev,
    .hero-next {
      width: 40px;
      height: 40px;
      font-size: 24px;
    }

    .hero-indicators {
      bottom: 70px;
    }

    .hero-indicator {
      width: 10px;
      height: 10px;
    }
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(10px);
  }
}
