/* hero.css */

.hero {
  position: relative;
  display: flex;
  margin-top: var(--header-h);
  padding: 100px 0 120px;
  background: var(--bg);
  overflow: hidden;
}

.hero-overlay {
  display: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--mx);
  margin: 0 auto;
  padding: 0 24px;
  
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start; 
  text-align: left;
}

.hero-main-copy {
  font-size: 72px; 
  font-weight: 900;
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.05em;
  margin-top: 0;
  margin-bottom: 24px;
}

.hero-sub-copy {
  font-size: 24px;
  font-weight: var(--fw-b);
  line-height: 1.5;
  color: var(--text);
  margin-bottom: 32px;
}

.hero-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 40px;
}

.hero-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cta); 
  color: var(--text); 
  font-size: 14px;
  font-weight: var(--fw-b);
  padding: 6px 12px;
  border-radius: 4px; 
}

.hero-tagline {
  font-size: 14px;
  font-weight: var(--fw-b);
  color: var(--text);
  margin-bottom: 8px; 
  display: inline-block;
}

/* Ver.2 お客様の声 引用 */
.hero-voice {
  font-size: 18px;
  font-weight: 900;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--accent);
}
.hero-voice-attr {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 6px;
  padding-left: 0;
}

.hero-tagline::before {
  content: "［ ";
  color: var(--text-light);
}

.hero-tagline::after {
  content: " ］";
  color: var(--text-light);
}

.hero .btn-cta {
  background: var(--cta);
  color: var(--text);
  border-color: var(--cta);
  font-size: 20px;
  font-weight: var(--fw-b);
  padding: 20px 48px;
  border-radius: var(--pill);
  box-shadow: 0 4px 12px var(--cta-shadow);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero .btn-cta:hover {
  background: var(--cta-hover);
  border-color: var(--cta-hover);
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--cta-shadow);
}

/* =========================================================
   HERO VISUAL (RIGHT SIDE GRID)
   ========================================================= */
.hero-visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  height: 600px;
  overflow: hidden;
  position: relative;
}

/* 擬似的なフェードアウト（上下） */
.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 80px;
  z-index: 2;
  pointer-events: none;
}
.hero-visual::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg) 0%, transparent 100%);
}
.hero-visual::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg) 0%, transparent 100%);
}

.hero-visual-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* アニメーション用 */
.col-down {
  animation: scrollDown 20s linear infinite;
}
.col-up {
  animation: scrollUp 20s linear infinite;
  transform: translateY(-50%);
}

@keyframes scrollDown {
  0% { transform: translateY(-50%); }
  100% { transform: translateY(0); }
}

@keyframes scrollUp {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.hero-ph {
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #E5F3FB; /* 薄いブルー系のプレースホルダ */
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-weight: var(--fw-b);
  box-shadow: var(--shadow);
}

/* =========================================================
   STATS LINE
   ========================================================= */
.stats-line {
  background: var(--bg);
  color: var(--text);
  padding: 20px 0 80px;
  border-top: 1px solid var(--border-light);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 100px;
  text-align: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  display: block;
  font-size: 48px; 
  font-weight: 900;
  color: var(--accent); 
  margin-bottom: 4px;
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 16px;
  font-weight: var(--fw-b);
  color: var(--text);
}

.stats-line .section-cta {
  margin-top: 48px;
}

.stats-line .btn-cta {
  color: var(--text);
  font-weight: var(--fw-b);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media(max-width: 992px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero-visual {
    height: 400px;
  }
}

@media(max-width: 768px) {
  .hero {
    padding: 60px 0 80px;
  }
  .hero-main-copy {
    font-size: 48px;
    margin-bottom: 20px;
  }
  .hero-sub-copy {
    font-size: 18px;
    margin-bottom: 24px;
  }
  .hero-labels {
    margin-bottom: 32px;
  }
  .hero .btn-cta {
    font-size: 18px;
    padding: 16px 36px;
  }

  .stats-grid {
    gap: 40px;
  }
  .stat-value {
    font-size: 36px;
  }
}

@media(max-width: 480px) {
  .hero {
    padding: 40px 0 60px;
  }
  .hero-main-copy {
    font-size: 36px;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .hero-sub-copy {
    font-size: 16px;
  }
  .hero-labels {
    gap: 8px;
  }
  .hero-label {
    font-size: 12px;
    padding: 4px 12px;
  }
  .hero-tagline {
    font-size: 13px;
  }
  .hero .btn-cta {
    width: 100%;
    padding: 16px 20px;
  }

  .stats-grid {
    flex-direction: column;
    gap: 32px;
  }
}

@media(min-width: 1280px) {
  .hero-inner {
    max-width: calc(var(--mx) * 1.1); /* 1040px → 1144px */
  }
  .hero-main-copy {
    font-size: 80px; 
  }
  .hero-sub-copy {
    font-size: 28px;
  }
}
