/* ========== top ========== */

.top-main > section {
  padding: 0 0 4rem;
}
@media (max-width: 600px) {
  .top-main > section {
    padding: 0 0 3rem;
  }
}

.sec-ttl-en {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.1;
  text-transform: uppercase;
}

.sec-message,
.sec-consultant {
  background: var(--red);
  color: #fff;
}

.sec-contact {
  background: url("/assets/img/bg-contact.webp") center/cover no-repeat;
  color: #fff;
}

/* ========== hero ========== */
.hero {
  --accent: #f5c400; /* アクティブ●と線の色 */
  --track: rgba(255, 255, 255, 0.55);
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--red); /* 縮小時に見える下地 */
  margin-top: calc(var(--header-h) * -1);
  padding: 0;
}

.hero__slider {
  position: absolute;
  inset: 0;
}
.swiper,
.swiper-wrapper,
.swiper-slide {
  height: 100%;
}

.heroSlide {
  width: 100%;
  height: 100%;
}
.heroSlide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% top; /* 顔を右寄せ想定（必要に応じて調整） */
  display: block;
}
@media (max-width: 900px) {
  .heroSlide__img {
    object-position: center top;
  }
}

/* ----- hero slide motion（要望の動き）----- */
.hero {
  --hero-scale: 0.7;
  --hero-radius: 24px;
  --hero-shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
  box-shadow: var(--shadow-inset);
}

/* 中身だけを縮める */
.heroSlide {
  transform: scale(1);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
  will-change: transform, border-radius, box-shadow;
  transition:
    transform 260ms cubic-bezier(0.2, 0.85, 0.2, 1),
    border-radius 260ms cubic-bezier(0.2, 0.85, 0.2, 1),
    box-shadow 260ms cubic-bezier(0.2, 0.85, 0.2, 1);
}

.swiper-slide.is-small .heroSlide {
  transform: scale(var(--hero-scale));
  border-radius: var(--hero-radius);
}

/* Overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  z-index: 10;
  box-shadow: var(--shadow-inset);
}

/* テキストのパネル */
.heroPanel {
  pointer-events: none;
  width: 100%;
  padding: clamp(24px, 4vw, 64px);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin: auto 0 2rem;
}

.hero .heroPanel p {
  margin: 0;
  color: #fff;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}
.hero p.heroPanel__catch {
  font-weight: 800;
  line-height: 1.3;
  font-size: 3rem;
  letter-spacing: 0;
  position: relative;
  z-index: 10;
}

/* meta：最初は非表示、拡大後に表示 */
.heroPanel__meta {
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}
.heroPanel__meta.is-show {
  opacity: 1;
  transform: translateY(0);
}
.heroPanel__role {
  font-size: 1rem;
  opacity: 1;
}
.heroPanel__name {
  font-size: 2.6rem;
  line-height: 1.2;
  font-weight: 800;
}
.heroPanel__en {
  font-size: 1rem;
  opacity: 1;
}

/* 文字を1文字ずつ：無→小→通常（ふわっと） */
.char {
  display: inline-block;
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
  animation: charIn 700ms cubic-bezier(0.2, 0.85, 0.2, 1) both;
  animation-delay: var(--d);
}
@keyframes charIn {
  0% {
    opacity: 0;
    transform: translateY(0.12em) scale(0);
    /*filter: blur(10px);*/
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    /*filter: blur(0);*/
  }
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Progress（●—●—●—●） */
.heroProgress {
  position: absolute;
  left: clamp(16px, 4vw, 64px);
  right: clamp(16px, 4vw, 64px);
  bottom: clamp(16px, 3.2vh, 44px);
  height: 24px;
  pointer-events: auto;
  z-index: 10;
}
.heroProgress__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--track);
  transform: translateY(-50%);
}
.heroProgress__bar {
  --p: 0;
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: translateY(-50%) scaleX(var(--p));
}
.heroProgress__dots {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.heroDot {
  width: 1rem;
  height: 1rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 1);
  border: none;
  cursor: pointer;
  padding: 0;
}
.heroDot.is-active {
  background: var(--accent);
}
.heroDot.is-done {
  background: rgba(245, 196, 0, 0.9);
}

/* 動き苦手な人向け */
@media (prefers-reduced-motion: reduce) {
  .char {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
}

@media (max-width: 600px) {
  .hero p.heroPanel__catch {
    line-height: 1.3;
    font-size: 2rem;
  }

  .heroPanel__role {
    font-size: 0.9rem;
  }
  .heroPanel__name {
    font-size: 1.6rem;
    line-height: 1.2;
  }
}

/* PURPOSE */
.message-dl dd p:first-child {
  margin-top: 1rem;
}
@media (max-width: 600px) {
  .message-dl dd p:first-child {
    margin-top: 0.5rem;
  }
}
