/* link下線非表示 */
a {
    text-decoration: none !important;
}

/* ホバー（マウスオーバー）時も下線を表示しない */
a:hover {
    text-decoration: none !important;
}

/* SPmenu */
/* ==========================
   ハンバーガーボタン
========================== */
.sp-hamburger {
  position: fixed;
  top: 8px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: #000;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 10001;
}

/* 三本線 */
.sp-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== アクティブ時（×に変形） ===== */
.sp-hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.sp-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.sp-hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ==========================
   ドロワーメニュー
========================== */
.sp-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  background: #fff;
  padding: 24px;
  transition: right 0.3s ease;
  z-index: 10000;
}

.sp-drawer.active {
  right: 0;
}

/* 閉じるボタン */
.sp-drawer-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  cursor: pointer;
  position: absolute;
  top: 16px;
  right: 16px;
}

/* メニュー */
.sp-drawer-menu {
  list-style: none;
  padding: 0;
  margin-top: 64px;
}

.sp-drawer-menu li {
  margin-bottom: 20px;
}

.sp-drawer-menu a {
  color: #000;
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
}

/* ==========================
   オーバーレイ
========================== */
.sp-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

.sp-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/**********/
/* header固定 */
.fixed-top-header{
  position: fixed;
  z-index: 1500;
}

.fixed-header{
  position: fixed;
  z-index: 1500;
}
@media (max-height: 800px) {
  .fixed-header {
    transform: scale(0.9);
    transform-origin: top right;
  }
}


  /* スクロールアニメーション */
  animation: fadeUpSingle linear forwards;
  animation-timeline: view();
  animation-range: entry 0% entry 40%;

  z-index: 1000;
}

/* アニメーション */
@keyframes fadeUpSingle {
  to {
    opacity: 1;
    margin-bottom: 0;
  }
}

/**********/

/***********/
/* hero */
/***********/

.hero-section {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;

  padding-top: 0 !important;
  padding-bottom: 0 !important;
  overflow: visible !important;
}

.hero-section .elementor-container,
.hero-section .elementor-widget-wrap {
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;

  align-items: flex-start !important;
}

/* Spacerウィジェットが紛れていた場合の保険 */
.hero-section .elementor-widget-spacer {
  display: none !important;
}

/* =====================================================
  ヒーロー画像（高さはここだけで制御）
===================================================== */

.hero-image {
  position: relative;
  width: 100%;

  /* 実ブラウザで増えない設計 */
  min-height: clamp(540px, 38vh, 790px);

  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto !important;
  display: block;
}

/* =====================================================
  ヒーロー上に重なるコンテンツ
===================================================== */

.hero-inner {
  position: absolute;
  z-index: 2;

  /* 1920基準：169px */
  left: clamp(16px, 8.8vw, 169px);

  /* header60px + hero内173px */
  top: clamp(120px, calc(60px + 7vw), 233px);

  /* 1920基準：839px */
  width: clamp(320px, 43.7%, 839px);

  padding: 40px 0;
  box-sizing: border-box;
}

/* =====================================================
  コピー・見出し
===================================================== */

.hero-copy {
  margin-bottom: 12px;
}

.hero-underline {
  width: 64px;
  height: 2px;
  background: #000;
  margin: 12px 0 20px;
}

.hero-heading {
  margin-bottom: 32px;
}

/* =====================================================
  アイコン3つ
===================================================== */

.hero-icons {
  display: flex;
  justify-content: space-between;
  gap: 4%;
}

.hero-icon {
  width: 30.66%;
  text-align: center;
}

/* =====================================================
  次セクション（必ず別セクション）
===================================================== */

.bottom-box {
  width: 100%;
  padding: 56px 6%;
  background: #f5f5f5;
}

/* =====================================================
  タブレット以下
===================================================== */

@media (max-width: 1366px) {
  .hero-inner {
    padding: 32px 0;
  }
}

/* =====================================================
  スマホ
===================================================== */

@media (max-width: 767px) {

  .hero-image {
    min-height: 520px;
  }

  .hero-inner {
    width: 90%;
    left: 5%;
    top: calc(60px + 48px);
    padding: 24px 0;
  }

  .hero-icons {
    flex-direction: column;
    gap: 24px;
  }

  .hero-icon {
    width: 100%;
  }

  .bottom-box {
    padding: 32px 5%;
  }
}


/**********/
/* 旧hero */
/**********/
.hero {
  width: 100%;
  height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  width: 100%;
  height: 100%;
}

/* ===== Slide ===== */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: slideZoom 24s linear infinite;
  animation-fill-mode: both;
}

/* 画像1から必ずスタート（負のdelayなし） */
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: 6s; }
.hero-slide:nth-child(3) { animation-delay: 12s; }
.hero-slide:nth-child(4) { animation-delay: 18s; }

/* ===== Image ===== */
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ===== Fade + Zoom（戻らない） ===== */
@keyframes slideZoom {
  0% {
    opacity: 0;
    transform: scale(1);
  }

  8% {
    opacity: 1;
  }

  30% {
    opacity: 1;
    transform: scale(1.1);
  }

  38% {
    opacity: 0;
  }

  100% {
    opacity: 0;
    transform: scale(1.1);
  }
}

/* iOS 100vh 対策 */
@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: -webkit-fill-available;
  }
}

/* =========================
   slide 
========================= */
.slider {
  width: 100%;
  overflow: hidden;
}

.slider-window {
  width: 100%;
  overflow: hidden;
  touch-action: pan-y;
}

.slider-track {
  display: flex;
  gap: 24px;
  will-change: transform;
}

.slide {
  flex: 0 0 auto;
  width: 272px;
}

.slide img {
  width: 100%;
  height: auto;
  display: block;
}

/* controls */
.slider-controls {
  margin-top: 16px;
  text-align: center;
}

.slider-controls button {
  background: none;
  border: none;
  margin: 0 16px;
  padding: 0;

  font-size: 24px;
  color: #707070;
  cursor: pointer;
  line-height: 1;
}

.slider-controls button:focus {
  outline: none;
}

/* SP */
@media (max-width: 768px) {
  .slide {
    width: 180px;
  }

  .slider-controls button {
    font-size: 20px;
  }
}