/* ハイハイレースページ（グルメ・ステージ系のトーンに合わせる） */

.hihilace-hero {
  position: relative;
  padding: 4rem 1.5rem 3rem;
  overflow: hidden;
  border-bottom: var(--kfb-border);
  box-shadow: 0 8px 0 var(--kfb-black);
  min-height: min(92vh, 900px);
}

.hihilace-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('images/hero-bg.jpg') center / cover no-repeat;
}

/* 写真がよく見えるよう白ベールを弱く（文字は内側カードで担保） */
.hihilace-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hihilace-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 1.15rem 1.25rem;
  background: rgba(255, 255, 255, 0.55);
  border: var(--kfb-border);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    var(--kfb-shadow);
  border-radius: 12px;
}

.hihilace-hero-tag {
  display: inline-block;
  font-family: var(--font-pop);
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 2px solid var(--kfb-black);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 2px 2px 0 var(--kfb-black);
  margin-bottom: 1.2rem;
}

.hihilace-hero-title {
  margin: 0 0 0.75rem;
}

.hihilace-hero-title-main {
  display: block;
}

.hihilace-hero-logo {
  display: block;
  max-width: min(280px, 70vw);
  height: auto;
  margin: 0 auto 0.5rem;
}

.hihilace-hero-title-text {
  display: block;
  font-family: var(--font-pop);
  font-weight: 800;
  font-size: clamp(1.45rem, 4.2vw, 2rem);
  color: var(--kfb-black);
  text-shadow: 3px 3px 0 #fff, 5px 5px 0 var(--kfb-black);
  line-height: 1.35;
}

.hihilace-hero-lead {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  line-height: 1.8;
  color: var(--kfb-black);
}

/* スマホ：ヒーロー下部の装飾画像（デスクトップでは非表示） */
.hihilace-hero-bottom-sp {
  display: none;
}

@keyframes hihilace-hero-bottom-sp-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hihilace-section {
  padding: 3rem 0;
  background: #fff;
}

.hihilace-section.hihilace-section--stripe {
  background-color: #e6f4ff;
  background-image: repeating-linear-gradient(
    90deg,
    #e6f4ff 0px,
    #e6f4ff 40px,
    #e8e0f2 40px,
    #e8e0f2 80px,
    #ffdde8 80px,
    #ffdde8 120px,
    #ffddc8 120px,
    #ffddc8 160px,
    #fff4c8 160px,
    #fff4c8 200px,
    #d8f0e8 200px,
    #d8f0e8 240px,
    #e6f4ff 240px,
    #e6f4ff 280px
  );
  background-position: 0 0;
  background-repeat: repeat;
  background-size: 280px 100%;
}

.hihilace-section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.hihilace-section-title {
  font-family: var(--font-pop);
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  margin: 0 0 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 3px solid var(--kfb-black);
}

.hihilace-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: rgba(255, 255, 255, 0.94);
  border: var(--kfb-border);
  border-radius: 10px;
  padding: 1.35rem 1.35rem 1.5rem;
  box-shadow: 3px 3px 0 rgba(26, 26, 26, 0.08);
}

.hihilace-detail-block {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}

.hihilace-detail-block:not(:first-child) {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(26, 26, 26, 0.28);
}

.hihilace-detail-title {
  font-family: var(--font-pop);
  font-size: clamp(1.1rem, 2.8vw, 1.3rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  padding: 0;
  border: none;
  color: var(--kfb-black);
}

.hihilace-detail-block .hihilace-section-body {
  margin: 0;
}

.hihilace-inline-apply {
  display: inline-block;
  margin-left: 0.25rem;
  font-weight: 800;
  color: var(--kfb-magenta);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.hihilace-inline-apply:hover {
  color: var(--kfb-black);
}

.hihilace-section-body {
  font-size: 0.98rem;
  line-height: 1.9;
  color: var(--kfb-black);
}

.hihilace-section-body p {
  margin: 0 0 1rem;
}

.hihilace-section-body p:last-child {
  margin-bottom: 0;
}

.hihilace-section-body ul {
  margin: 0;
  padding-left: 1.25rem;
}

.hihilace-section-body li {
  margin: 0.35rem 0;
}

/* お申し込み（目立つCTA） */
.hihilace-apply-banner {
  padding: 2.75rem 0 3rem;
  background: linear-gradient(
    125deg,
    var(--kfb-yellow) 0%,
    #ffe566 38%,
    var(--kfb-magenta) 100%
  );
  border-top: var(--kfb-border);
  border-bottom: var(--kfb-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.hihilace-apply-banner-inner {
  text-align: center;
}

.hihilace-apply-banner-title {
  font-family: var(--font-pop);
  font-size: clamp(1.4rem, 3.8vw, 1.85rem);
  font-weight: 800;
  margin: 0 0 0.65rem;
  color: var(--kfb-black);
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.9);
}

.hihilace-apply-banner-lead {
  margin: 0 auto 1.65rem;
  max-width: 36rem;
  font-weight: 700;
  font-size: clamp(0.95rem, 2.5vw, 1.08rem);
  line-height: 1.65;
  color: var(--kfb-black);
}

.hihilace-apply-cta {
  display: flex;
  justify-content: center;
}

.hihilace-apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: min(100%, 440px);
  padding: 1.2rem 1.6rem;
  border-radius: 999px;
  border: 4px solid var(--kfb-black);
  background: #fff;
  color: var(--kfb-black);
  font-family: var(--font-pop);
  font-weight: 900;
  font-size: clamp(1.05rem, 3.2vw, 1.28rem);
  letter-spacing: 0.05em;
  text-decoration: none;
  box-shadow: var(--kfb-shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  animation: hihilace-apply-pulse 2.5s ease-in-out infinite;
}

.hihilace-apply-btn:hover {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--kfb-black);
  filter: saturate(1.08);
  animation: none;
}

.hihilace-apply-btn:active {
  transform: translate(5px, 5px);
  box-shadow: 1px 1px 0 var(--kfb-black);
}

.hihilace-apply-btn:focus-visible {
  outline: 3px solid var(--kfb-black);
  outline-offset: 4px;
}

.hihilace-apply-btn-label {
  flex: 0 1 auto;
}

.hihilace-apply-btn-arrow {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--kfb-cyan), var(--kfb-magenta));
  border: 3px solid var(--kfb-black);
  font-weight: 900;
  line-height: 1;
  box-shadow: 2px 2px 0 var(--kfb-black);
}

@keyframes hihilace-apply-pulse {
  0%,
  100% {
    box-shadow: var(--kfb-shadow);
  }

  50% {
    box-shadow:
      6px 6px 0 var(--kfb-black),
      0 0 0 3px rgba(0, 206, 209, 0.65),
      0 0 28px rgba(255, 20, 147, 0.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hihilace-apply-btn {
    animation: none;
  }

  .hihilace-hero-bottom-sp img {
    animation: none;
  }
}

/* 協賛（シェア！コラボブース「子育てヒント箱ぷにぷに」と同一ロゴ） */
.hihilace-sponsor {
  padding: 1.75rem 0 2.5rem;
  background: #fff;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}

.hihilace-sponsor .hihilace-section-inner {
  text-align: center;
}

.hihilace-sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem 1.25rem;
}

.hihilace-sponsor-logo-wrap {
  flex: 0 0 auto;
  min-width: 0;
}

.hihilace-sponsor-logo {
  display: block;
  max-width: min(220px, 65vw);
  width: auto;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.hihilace-sponsor-presents {
  flex: 0 0 auto;
  margin: 0;
  font-family: var(--font-gothic);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  color: var(--kfb-black);
}

@media (max-width: 768px) {
  .hihilace-hero-bg {
    background-image: url('images/hero-bg-sp.jpg');
  }

  .hihilace-hero {
    padding: 3rem 1.25rem 0;
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
  }

  /* 下部画像と重ならないようカード下に余白 */
  .hihilace-hero-inner {
    margin-bottom: min(38vw, 220px);
    padding-bottom: 1.25rem;
  }

  .hihilace-hero-bottom-sp {
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    pointer-events: none;
    line-height: 0;
    text-align: center;
  }

  .hihilace-hero-bottom-sp img {
    display: block;
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    height: auto;
    max-height: min(42vh, 280px);
    object-fit: contain;
    object-position: bottom center;
    filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.18));
    animation: hihilace-hero-bottom-sp-in 0.8s ease-out 0.35s both;
  }

  .hihilace-section {
    padding: 2.5rem 0;
  }

  .hihilace-section-inner {
    padding: 0 1.25rem;
  }
}
