/* ============================================
   INSPIRE LAB - HERO CSS
   ============================================ */

/* bodyのmin-widthを解除してheroをレスポンシブに */
body {
  min-width: 0;
  overflow-x: hidden;
}

.hero-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- BUTTONS ---------- */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #3B9FD9, #50B5E6);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 40px;
  border-radius: 50px;
  letter-spacing: 0.05em;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(59, 159, 217, 0.3);
  text-decoration: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 159, 217, 0.4);
  opacity: 1;
}

.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #06C755;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 36px;
  border-radius: 50px;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
  text-decoration: none;
}

.btn-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
  opacity: 1;
}

.line-icon {
  background: #fff;
  color: #06C755;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 3px 6px;
  border-radius: 4px;
  font-family: 'Poppins', sans-serif;
}

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 12px rgba(59, 159, 217, 0.04);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.65);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7), 0 4px 20px rgba(0, 0, 0, 0.07);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  filter: none;
  transition: filter 0.4s ease;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 300;
  color: #4b5563;
  transition: color 0.4s ease;
  text-decoration: none;
}

.nav-desktop a:hover {
  color: #3B9FD9;
  opacity: 1;
}

.nav-cta {
  background: linear-gradient(135deg, #3B9FD9, #50B5E6);
  color: #fff !important;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  border: none;
  transition: background 0.4s ease, box-shadow 0.3s ease;
  box-shadow: 0 3px 12px rgba(59, 159, 217, 0.3);
}

.nav-cta:hover {
  color: #fff !important;
  opacity: 0.85;
  box-shadow: 0 5px 16px rgba(59, 159, 217, 0.45);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: #333;
  border-radius: 2px;
  position: absolute;
  left: 0;
  transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

.hamburger.active span:nth-child(1) {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

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

.hamburger.active span:nth-child(3) {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 280px;
  height: 100vh;
  background: #fff;
  z-index: 999;
  padding: 100px 32px 40px;
  transition: right 0.3s;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav a {
  font-size: 1rem;
  font-weight: 500;
  color: #4b5563;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  text-decoration: none;
}

.nav-cta-mobile {
  background: linear-gradient(135deg, #3B9FD9, #50B5E6);
  color: #fff !important;
  text-align: center;
  padding: 12px 24px !important;
  border-radius: 50px;
  border-bottom: none !important;
  margin-top: 10px;
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: #EBF5FB;
}

/* 浮遊シェイプ */
.hero-bg-shapes .shape {
  position: absolute;
  border-radius: 50%;
  will-change: transform, opacity;
  --px: 0px;
  --py: 0px;
  transition: translate 0.4s ease;
  translate: var(--px) var(--py);
}

.shape-1 {
  width: 100px;
  height: 100px;
  background: #3B9FD9;
  top: 8%;
  left: 28%;
  animation: shapeIn 1s ease forwards, float1 7s ease-in-out 1s infinite;
}

.shape-2 {
  width: 60px;
  height: 60px;
  background: #50B5E6;
  bottom: 28%;
  left: 32%;
  animation: shapeIn 1s ease 0.2s forwards, float2 9s ease-in-out 1.2s infinite;
}

.shape-3 {
  width: 36px;
  height: 36px;
  background: #3B9FD9;
  top: 42%;
  right: 30%;
  animation: shapeIn 1s ease 0.4s forwards, float3 6s ease-in-out 1.4s infinite;
}

.shape-4 {
  width: 22px;
  height: 22px;
  background: #50B5E6;
  top: 20%;
  right: 6%;
  animation: shapeIn 1s ease 0.3s forwards, float1 8s ease-in-out 1.3s infinite;
}

.shape-5 {
  width: 50px;
  height: 50px;
  background: #3B9FD9;
  bottom: 20%;
  right: 22%;
  animation: shapeIn 1s ease 0.5s forwards, float2 10s ease-in-out 1.5s infinite;
}

@keyframes shapeIn {
  from { opacity: 0; }
  to   { opacity: 0.18; }
}

@keyframes float1 {
  0%, 100% { transform: translateY(0) translateX(0); }
  33%       { transform: translateY(-22px) translateX(10px); }
  66%       { transform: translateY(12px) translateX(-8px); }
}

@keyframes float2 {
  0%, 100% { transform: translateY(0) translateX(0); }
  40%       { transform: translateY(18px) translateX(-12px); }
  70%       { transform: translateY(-14px) translateX(8px); }
}

@keyframes float3 {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%       { transform: translateY(-18px) rotate(15deg); }
}

/* テキスト（左） */
.hero-text {
  position: absolute;
  left: 12%;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 70px;
  padding-bottom: 120px;
  z-index: 10;
  max-width: 520px;
  text-shadow:
    0 0 12px rgba(255,255,255,0.9),
    0 0 24px rgba(255,255,255,0.7),
    0 0 40px rgba(255,255,255,0.5);
}

.hero-sub-copy {
  font-size: 1.2rem;
  font-weight: 600;
  color: #4b5563;
  line-height: 2;
  margin-bottom: 14px;
  letter-spacing: 0.06em;
  text-align: center;
}

.hero-highlight {
  background: linear-gradient(transparent 50%, rgba(255, 220, 50, 0.6) 50%);
  font-weight: 800;
  color: #4b5563;
  padding: 0 2px;
}

.hero-text h1 {
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.3;
  color: #4b5563;
  margin-bottom: 28px;
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-align: center;
}

.hero-line1,
.hero-line2,
.hero-line3 {
  display: block;
}

.hero-text h1 em {
  color: #3B9FD9;
  font-style: normal;
}

.hero-keyword {
  font-size: 1.4em;
}

/* バッジ */
.hero-badges {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(59, 159, 217, 0.2);
  border-radius: 10px;
  padding: 10px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  backdrop-filter: blur(4px);
}

.badge-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #3B9FD9;
  line-height: 1.4;
  text-align: center;
  margin-bottom: 2px;
  white-space: nowrap;
}

.badge-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #4b5563;
  text-align: center;
  white-space: nowrap;
}

/* ヒーローCTAボタン */
.hero-btn {
  display: inline-block;
  font-size: 1rem;
  padding: 16px 44px;
  align-self: center;
  text-shadow: none;
}

/* 円形フォトグループ */
.hero-circles {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  top: 10px;
}

.hc-scene {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hc-scene.active {
  pointer-events: auto;
}

.hc-scene .hc img,
.hc-scene .hc::before {
  opacity: 0;
  transform: scale(0);
  transition: opacity 0s, transform 0s;
}

.hc-scene.active .hc img,
.hc-scene.active .hc::before {
  opacity: 1;
  transform: scale(1);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hc-scene.active .hc::before {
  transform: translate(10px, 12px) scale(1);
}
.hc-scene.active .hc-a-sub::before,
.hc-scene.active .hc-c-mid::before {
  transform: translate(-10px, 10px) scale(1);
}

.hc-scene.active .hc:nth-child(1) img,
.hc-scene.active .hc:nth-child(1)::before { transition-delay: 0s; }
.hc-scene.active .hc:nth-child(2) img,
.hc-scene.active .hc:nth-child(2)::before { transition-delay: 0.15s; }
.hc-scene.active .hc:nth-child(3) img,
.hc-scene.active .hc:nth-child(3)::before { transition-delay: 0.28s; }

.hc-scene.leaving .hc img,
.hc-scene.leaving .hc::before {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hc-scene.leaving .hc:nth-child(1) img,
.hc-scene.leaving .hc:nth-child(1)::before { transition-delay: 0s; }
.hc-scene.leaving .hc:nth-child(2) img,
.hc-scene.leaving .hc:nth-child(2)::before { transition-delay: 0.06s; }
.hc-scene.leaving .hc:nth-child(3) img,
.hc-scene.leaving .hc:nth-child(3)::before { transition-delay: 0.1s; }

.hc {
  position: absolute;
  border-radius: 50%;
  overflow: visible;
  border: none;
  box-shadow: none;
}

.hc img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
  position: relative;
  z-index: 1;
}

.hc::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(59, 159, 217, 0.25);
  transform: translate(10px, 12px);
  z-index: 0;
}

/* シーン A */
.hc-a-main {
  width: 460px;
  height: 460px;
  top: 50%;
  left: 68%;
  transform: translate(-50%, -58%);
}

.hc-a-sub {
  width: 200px;
  height: 200px;
  top: 5%;
  left: 52%;
  animation: floatCircle 8s ease-in-out infinite;
}

.hc-a-sub::before {
  transform: translate(-12px, 12px);
}

/* シーン B */
.hc-b-main {
  width: 500px;
  height: 500px;
  top: 50%;
  left: 72%;
  transform: translate(-50%, -58%);
}

/* シーン C */
.hc-c-main {
  width: 420px;
  height: 420px;
  top: 50%;
  left: 66%;
  transform: translate(-50%, -58%);
}

.hc-c-mid {
  width: 220px;
  height: 220px;
  top: 4%;
  right: 2%;
  animation: floatCircle 8s ease-in-out infinite;
}

.hc-c-mid::before {
  transform: translate(-12px, 12px);
}

.hc-c-small {
  width: 160px;
  height: 160px;
  bottom: 18%;
  right: 18%;
  animation: floatCircle 10s ease-in-out infinite 1.5s;
}

@keyframes floatCircle {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-14px); }
}

/* FV底部円弧 */
.hero-bottom-curve {
  position: absolute;
  bottom: -35%;
  left: 50%;
  transform: translateX(-50%);
  width: 160%;
  padding-top: 28%;
  background: #fff;
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  z-index: 6;
}

/* スクロールインジケーター */
.scroll-indicator {
  position: absolute;
  right: 48px;
  bottom: 80px;
  width: 130px;
  height: 130px;
  z-index: 10;
}

.scroll-indicator .scroll-ring {
  width: 130px;
  height: 130px;
  animation: scrollRingRotate 8s linear infinite;
}

.scroll-indicator .scroll-ring text {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6875rem;
  font-weight: 500;
  fill: #3B9FD9;
  letter-spacing: 1px;
}

.scroll-indicator .scroll-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scroll-indicator .scroll-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(59, 159, 217, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: scrollArrowBounce 1.8s ease-in-out infinite;
}

.scroll-indicator .scroll-arrow::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-right: 2px solid #3B9FD9;
  border-bottom: 2px solid #3B9FD9;
  transform: rotate(45deg) translateY(-3px);
}

@keyframes scrollRingRotate {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

@keyframes scrollArrowBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(6px); }
}

/* ---------- PAGETOP ---------- */
.pagetop {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.pagetop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- HERO ENTRANCE ANIMATIONS ---------- */
.hero-anim {
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeIn 0.7s ease forwards;
}

@keyframes heroFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-anim-delay-1 { animation-delay: 0.2s; }
.hero-anim-delay-2 { animation-delay: 0.45s; }
.hero-anim-delay-3 { animation-delay: 0.7s; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }
}

@media (max-width: 900px) {
  .nav-desktop {
    display: none;
  }

  .hamburger {
    display: block;
  }

  .hero-circles {
    display: none;
  }

  .header-inner {
    height: 60px;
  }

  .hero {
    min-height: 100vh;
    justify-content: center;
  }

  .hero-text {
    position: static;
    max-width: 100%;
    text-align: center;
    padding: 80px 24px 60px;
    z-index: 10;
    display: block;
  }

  .hero-text h1 {
    font-size: 2.6rem;
    margin-bottom: 20px;
    white-space: normal;
  }

  .hero-sub-copy {
    font-size: 1rem;
    text-align: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-badge {
    min-width: 90px;
    padding: 8px 10px;
  }

  .badge-value {
    font-size: 0.9rem;
  }

  .hero-bottom-curve {
    width: 220%;
    padding-top: 30%;
  }

  .hc::before { transform: translate(7px, 8px); }
  .hc-a-sub::before,
  .hc-c-mid::before { transform: translate(-7px, 8px); }

  .hc-scene.active .hc::before { transform: translate(7px, 8px) scale(1); }
  .hc-scene.active .hc-a-sub::before,
  .hc-scene.active .hc-c-mid::before { transform: translate(-7px, 8px) scale(1); }

  .hc-a-main {
    width: 260px;
    height: 260px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -64%);
  }

  .hc-a-sub {
    width: 120px;
    height: 120px;
    top: 8%;
    left: 8%;
  }

  .hc-b-main {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -64%);
  }

  .hc-c-main {
    width: 240px;
    height: 240px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -64%);
  }

  .hc-c-mid {
    width: 130px;
    height: 130px;
    top: 6%;
    right: 5%;
  }

  .hc-c-small {
    display: none;
  }

  .hero-badges {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 16px 16px 28px;
  }

  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.5rem;
  }
}
