@charset "utf-8";
/* =========================================
   Hero（TOPメインビジュアル／背景スライド）
   株式会社スリーエス
   ・PC（1920-1440）を基準に記述
   ・以降は 1439 / 1199 / 700 / 349 の4段のみ
========================================= */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(880px, calc(100svh - var(--header-h)));
  overflow: hidden;
  background: var(--color-surface-blue);
}

/* -----------------------------------------
   背景スライド
----------------------------------------- */
.hero__slider {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__slide {
  position: absolute;
  inset: 0;
  /* background-image は hero.php 側でインライン指定（相対URLの解決先が
     カスタムプロパティ経由だと参照元CSSファイル基準になるため） */
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  opacity: 0;
  transition: opacity 1.2s ease;
  will-change: opacity;
}

.hero__slide.is-active {
  opacity: 1;
}

/* 文字の可読性を確保する左側のグラデーション */
.hero__slider::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.28) 34%,
    rgba(255, 255, 255, 0) 62%
  );
  pointer-events: none;
}

/* -----------------------------------------
   コピーエリア
----------------------------------------- */
.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero__body {
  max-width: 900px;
  min-width: 0;
}

.hero__copy {
  color: var(--color-navy);
  font-size: clamp(3.25rem, 2.1rem + 2.4vw, 4.75rem);
  font-weight: 900;
  line-height: 1.24;
  letter-spacing: 0.01em;
  line-break: strict;
  -webkit-text-stroke: 9px var(--color-white);
  paint-order: stroke fill;
}

.hero__copy-line {
  display: block;
}

.hero__accent {
  color: var(--color-red);
}

.hero__lead {
  margin-top: 20px;
  color: var(--color-navy);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem);
  font-weight: 700;
  line-height: 1.6;
  -webkit-text-stroke: 5px var(--color-white);
  paint-order: stroke fill;
}

/* -----------------------------------------
   ボタン
----------------------------------------- */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
  padding-left: 100px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: 280px;
  padding: 20px 34px;
  border-radius: 999px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 8px 20px rgba(23, 55, 85, 0.18);
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(23, 55, 85, 0.24);
}

.hero__button i {
  flex: 0 0 auto;
  font-size: 19px;
  line-height: 1;
}

.hero__button--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.hero__button--secondary {
  background: var(--color-white);
  color: var(--color-navy);
}

.hero__button .hero__button-arrow {
  font-size: 15px;
}

/* -----------------------------------------
   スライドインジケーター
----------------------------------------- */
.hero__dots {
  position: absolute;
  right: clamp(20px, 3vw, 56px);
  bottom: 32px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid var(--color-white);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.hero__dot.is-active {
  background: var(--color-white);
  transform: scale(1.2);
}

/* =========================================
   1439px以下：small-pc
========================================= */
@media screen and (max-width: 1439px) {
  .hero {
    min-height: min(760px, calc(100svh - var(--header-h)));
  }

  .hero__copy {
    -webkit-text-stroke-width: 8px;
  }

  .hero__actions {
    gap: 16px;
    margin-top: 34px;
    padding-left: 60px;
  }

  .hero__button {
    min-width: 250px;
    padding: 18px 28px;
    font-size: 1.125rem;
  }
}

/* =========================================
   1199px以下：タブレット
========================================= */
@media screen and (max-width: 1199px) {
  .hero {
    min-height: min(620px, calc(100svh - var(--header-h)));
  }

  .hero__slider::after {
    background: linear-gradient(
      100deg,
      rgba(255, 255, 255, 0.6) 0%,
      rgba(255, 255, 255, 0.3) 45%,
      rgba(255, 255, 255, 0) 78%
    );
  }

  .hero__inner {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  .hero__body {
    max-width: 700px;
  }

  .hero__copy {
    font-size: clamp(2.375rem, 1.5rem + 3.4vw, 3.5rem);
    -webkit-text-stroke-width: 7px;
  }

  .hero__lead {
    margin-top: 16px;
  }

  .hero__actions {
    margin-top: 28px;
    padding-left: 0;
  }

  .hero__button {
    min-width: 230px;
    padding: 16px 24px;
    font-size: 1.0625rem;
  }

  .hero__dots {
    bottom: 24px;
  }
}

/* =========================================
   700px以下：スマートフォン
========================================= */
@media screen and (max-width: 700px) {
  .hero {
    min-height: min(520px, calc(100svh - var(--header-h)));
  }

  .hero__slider::after {
    background: linear-gradient(
      170deg,
      rgba(255, 255, 255, 0.55) 0%,
      rgba(255, 255, 255, 0.25) 48%,
      rgba(255, 255, 255, 0) 82%
    );
  }

  .hero__inner {
    padding-top: 32px;
    padding-bottom: 40px;
  }

  .hero__body {
    max-width: 100%;
  }

  .hero__copy {
    font-size: clamp(1.75rem, 1.05rem + 4.2vw, 2.375rem);
    line-height: 1.3;
    -webkit-text-stroke-width: 5px;
  }

  .hero__lead {
    margin-top: 14px;
    font-size: 0.9375rem;
    line-height: 1.7;
    -webkit-text-stroke-width: 4px;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    margin-top: 24px;
  }

  .hero__button {
    width: 100%;
    min-width: 0;
    padding: 15px 20px;
    font-size: 1rem;
  }

  .hero__dots {
    right: 50%;
    bottom: 14px;
    transform: translateX(50%);
    gap: 10px;
  }
}

/* =========================================
   349px以下：mini SP
========================================= */
@media screen and (max-width: 349px) {
  .hero {
    min-height: min(440px, calc(100svh - var(--header-h)));
  }

  .hero__copy {
    font-size: 1.5rem;
    -webkit-text-stroke-width: 4px;
  }

  .hero__lead {
    font-size: 0.875rem;
  }

  .hero__button {
    padding: 13px 14px;
    font-size: 0.9375rem;
    gap: 8px;
  }
}

/* =========================================
   モーション低減
========================================= */
@media (prefers-reduced-motion: reduce) {
  .hero__slide {
    transition: none;
  }
}
