/* app/static/css/hero.css */

/* 基本 hero レイアウト */
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 68vh;           /* 少し高めに調整 */
    min-height: 420px;
    overflow: hidden;
    display: grid;
    place-items: center start;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: #000;
}

/* スライド群 */
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* 各スライド */
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity 0.9s ease, transform 6s ease;
    will-change: opacity, transform;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
    pointer-events: none;
}

/* オーバーレイ（画像の上に薄くかぶせる） */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.12));
    z-index: 2;
    pointer-events: none;
}

/* hero 内テキスト・ボタン */
.hero-inner {
    position: relative;
    z-index: 10; /* テキストやボタンはプリズムより上に出す */
    padding: 48px 24px 72px;
    color: #fff;
    max-width: var(--max, 1100px);
    width: 100%;
}

.hero-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 4vw, 48px);
    letter-spacing: .06em;
    text-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}

.hero-sub {
    margin: 0;
    opacity: .95;
    letter-spacing: .06em;
}

/* コントロール / ドット */
.hero-controls {
    position: absolute;
    right: 18px;
    bottom: 28px;
    z-index: 11;
    display: flex;
    gap: 8px;
}

.hero-controls button {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    backdrop-filter: blur(4px);
}

.hero-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 28px;
    z-index: 11;
    display: flex;
    gap: 10px;
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.28);
    border: none;
    cursor: pointer;
}

.hero-dot.is-active {
    background: #fff;
}

/* レスポンシブ */
@media (max-width:900px) {
    .hero-slideshow {
        height: 52vh;
        min-height: 300px;
    }

    .hero-title {
        font-size: clamp(20px, 6.5vw, 36px);
    }

    .hero-inner { padding: 28px 16px 48px; }
    .hero-dot { width: 10px; height: 10px; }
}

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
        transform: none;
    }

    .hero-slide.is-active {
        opacity: 1;
    }
}

/* ===== hero center reserve button ===== */
.hero-reserve-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 18px;
  z-index: 12;  /* テキストより上に出したい場合はさらに上げる */
  pointer-events: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-reserve-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 28px;
  background: linear-gradient(180deg,#1458bd,#405cba);
  color: #fff;
  font-weight: 900;
  letter-spacing: .02em;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(11, 109, 206, 0.28), inset 0 -2px 0 rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.04);
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  min-width: 180px;
  text-align: center;
}

.hero-reserve-btn:hover,
.hero-reserve-btn:focus {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(9, 88, 167, 0.36), inset 0 -2px 0 rgba(255,255,255,0.04);
  opacity: 0.98;
  outline: none;
}

.hero-reserve-btn:focus-visible {
  box-shadow: 0 18px 40px rgba(32, 109, 186, 0.36), 0 0 0 4px rgba(226,59,59,0.12);
}

@media (max-width: 920px) {
  .hero-reserve-wrap { bottom: 12px; }
  .hero-reserve-btn { padding: 10px 16px; min-width: 140px; font-size: 15px; border-radius: 22px; }
}

/* ===== Prism light overlay for hero (production) ===== */
.hero-slideshow { position: relative; }

#prism {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mix-blend-mode: screen; 
  z-index: 3;              
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  #prism .p { animation: none; opacity: .35; filter: blur(6px); }
}

.hero-overlay { z-index: 2; }
#prism { z-index: 3; }
.hero-inner { z-index: 10; }
.hero-slides { z-index: 1 !important; }
.hero-overlay { z-index: 2 !important; pointer-events: none !important; }
#prism {
  z-index: 3 !important;
  position: absolute !important;
  inset: 0 !important;
  mix-blend-mode: screen !important;
  pointer-events: none !important;
  display: block !important;
  opacity: 1 !important;
}
.hero-inner { z-index: 10 !important; position: relative !important; }

/* RECRUIT TEASER */
.recruit-teaser { padding: 48px 0; background: linear-gradient(180deg,#fff,#fbfbfb); }
.recruit-teaser-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 44% 56%;
  gap: 28px;
  align-items: center;
  padding: 0 20px;
}
.recruit-media {
  width: 100%;
  height: 320px;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(2,6,10,0.06);
}
.recruit-copy { padding: 8px 4px; }
.recruit-kicker { font-size: 13px; letter-spacing: .12em; color:#999; margin:0 0 8px; text-transform:uppercase; }
.recruit-head { margin:0 0 12px; font-size:20px; color:#111; line-height:1.5; }
.recruit-lead { margin:0 0 14px; color:#555; line-height:1.8; max-width: 56ch; }
.recruit-features { list-style: none; padding:0; margin:0 0 18px; color:#666; display:flex; gap:12px; flex-wrap:wrap; }
.recruit-features li { background:#fff; padding:8px 12px; border-radius:8px; box-shadow:0 6px 18px rgba(2,6,10,0.03); font-size:13px; }

.recruit-cta { display:flex; gap:12px; align-items:center; }
.btn-primary {
  background: linear-gradient(180deg,#111,#333);
  color:#fff;
  padding:10px 18px;
  border-radius:26px;
  text-decoration:none;
  font-weight:700;
  box-shadow:0 12px 30px rgba(0,0,0,0.18);
}
.btn-outline {
  background:transparent;
  color:#111;
  padding:8px 14px;
  border-radius:20px;
  text-decoration:none;
  border:1px solid rgba(0,0,0,0.06);
}

@media (max-width: 980px) {
  .recruit-teaser-inner { grid-template-columns: 1fr; }
  .recruit-media { height: 260px; }
  .recruit-features { justify-content:flex-start; }
}


/* ========================================================
   🛠️ 【超強力上書き】他ファイルの干渉をねじ伏せて隙間を消滅させる設定
   ======================================================== */
@media (max-width: 768px) {
  /* ① 正方形への強制変形を解除し、スマホに最適なダイナミックな高さを確保 */
  body .hero-slideshow {
    height: 60vh !important;       /* スマホ画面で一番映える縦幅 */
    min-height: 340px !important;
    aspect-ratio: auto !important; /* overrides.cssの1/1を無効化 */
  }

  /* ② 画像を「枠内全体表示」から「隙間なき敷き詰め（cover）」に強制復帰 */
  body .hero-slideshow .hero-slide {
    background-size: cover !important;        /* containからcoverに戻して黒い隙間を完全シャットアウト */
    background-repeat: no-repeat !important;
    background-position: center 20% !important; /* 💡 スマホでもモデルの髪型や顔が絶対に切れない神バランス */
  }
}