/* hero-kind-slideshow — 小児科向け「優しい」メインビジュアル
 * 写真スライドショー + 手描き風の装飾(ぞう/雲/植物/星) + 中央キャッチ + 2ボタン。
 * 背景は白〜淡いピンクのグラデーション。余白を大きく取り、詰め込みすぎない構成。 */

.hero-kind-slideshow {
  position: relative;
  min-height: min(82vh, 760px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(160deg, #fffaf9 0%, #fdf1f3 55%, #fbe4ea 100%);
  isolation: isolate;
}

/* ── 写真スライドショー(背面いっぱい、やわらかく透過) ── */
.hks-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hks-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hks-slide.is-active { opacity: 1; }
.hks-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-height: none;
  display: block;
}
/* 写真の上に淡いピンク〜白のスクリムをかけ、イラストと文字を主役にする */
.hks-slides::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,250,249,0.55) 0%, rgba(255,250,249,0.72) 45%, rgba(255,250,249,0.92) 100%);
  z-index: 1;
}

/* ── 手描き風の装飾イラスト(ぞう・雲・植物・星) ── */
.hks-deco { position: absolute; z-index: 2; pointer-events: none; opacity: 0.9; filter: drop-shadow(0 6px 14px rgba(217,138,158,0.18)); }
.hks-deco--cloud1 { top: 8%; left: 6%; width: clamp(70px, 8vw, 120px); animation: hks-float 7s ease-in-out infinite; }
.hks-deco--cloud2 { top: 14%; right: 9%; width: clamp(56px, 7vw, 96px); animation: hks-float 8s ease-in-out infinite 0.6s; }
.hks-deco--star1 { top: 22%; left: 16%; width: clamp(20px, 2.4vw, 32px); animation: hks-twinkle 3.2s ease-in-out infinite; }
.hks-deco--star2 { bottom: 30%; right: 14%; width: clamp(16px, 2vw, 26px); animation: hks-twinkle 3.6s ease-in-out infinite 0.8s; }
.hks-deco--star3 { top: 46%; right: 22%; width: clamp(14px, 1.6vw, 20px); animation: hks-twinkle 4s ease-in-out infinite 1.4s; }
.hks-deco--elephant { bottom: 4%; left: 4%; width: clamp(90px, 11vw, 160px); animation: hks-float 9s ease-in-out infinite 0.3s; }
.hks-deco--leaf1 { bottom: 6%; right: 5%; width: clamp(80px, 10vw, 140px); animation: hks-sway 6s ease-in-out infinite; }
.hks-deco--leaf2 { top: 60%; left: 3%; width: clamp(56px, 7vw, 96px); animation: hks-sway 7s ease-in-out infinite 0.5s; }

@keyframes hks-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes hks-sway { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes hks-twinkle { 0%,100% { opacity: 0.4; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
  .hks-deco { animation: none !important; }
  .hks-slide { transition: none; }
}

/* ── 中央キャッチコピー・ボタン ── */
.hks-content {
  position: relative;
  z-index: 3;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 2rem);
  text-align: center;
}
.hks-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.92rem;
  letter-spacing: 0.12em;
  color: var(--color-accent, #f2788f);
  margin-bottom: 1.25rem;
}
.hks-eyebrow::before, .hks-eyebrow::after {
  content: "✿";
  font-size: 0.8rem;
  opacity: 0.7;
}
.hks-title {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-heading-ink, #3960a7);
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.5;
  margin: 0 0 1.5rem;
}
.hks-lead {
  font-size: var(--fs-lead, 1.08rem);
  line-height: 1.9;
  color: var(--color-text, #4a3b36);
  margin: 0 0 2.25rem;
}
.hks-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}
.hks-actions .btn { min-width: 200px; }
.hks-actions .btn-outline {
  background: rgba(255,255,255,0.7);
  color: var(--color-heading-ink, #3960a7);
  border-color: var(--color-heading-ink, #3960a7);
}
.hks-actions .btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

@media (max-width: 768px) {
  .hero-kind-slideshow { min-height: 62vh; }
  .hks-content { padding: 2.5rem 1.25rem; }
  .hks-title { font-size: clamp(1.6rem, 6.5vw, 2.1rem); }
  .hks-lead { font-size: 1rem; }
  .hks-actions { flex-direction: column; align-items: stretch; }
  .hks-actions .btn { min-width: 0; width: 100%; }
  .hks-deco--elephant { width: 70px; }
  .hks-deco--leaf1 { width: 60px; }
  .hks-deco--cloud1, .hks-deco--cloud2 { width: 50px; }
}
