/* home.css
   - トップページ固有
   - heroの背景・オーバーレイ
   - CTAのグラデーション
*/

.hero {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, .9);
}

.hero__bg-image {
  position: absolute;
  inset: 0;
  background-image: url("../img/main.png");
  background-position: center;
  background-size: cover;
  opacity: .4;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, .7) 0%, rgba(15, 23, 42, .0) 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding: 4.5rem 0 5rem;
}

@media (min-width: 768px) {
  .hero__inner {
    grid-template-columns: 1.05fr .75fr;
    align-items: center;
    min-height: 25rem;
  }
}

.hero__content {
  max-width: 34rem;
  display: grid;
  gap: 1.25rem;
}

.hero__title {
  font-size: clamp(2.15rem, 4vw, 3.1rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.15;
}

.hero__text {
  color: rgba(248, 250, 252, .7);
  font-size: 1rem;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  align-items: center;
}

.hero__link {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  color: rgba(248, 250, 252, .8);
  font-size: .85rem;
}

.hero__link:hover {
  color: #fff;
}

.hero__note {
  font-size: .75rem;
  color: rgba(248, 250, 252, .5);
}

/* hero mockup */
.hero__mockup {
  display: none;
}

@media (min-width: 1024px) {
  .hero__mockup {
    display: block;
  }
}

.hero-card {
  background: rgba(255, 255, 255, .95);
  border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .35);
  border-radius: 1.5rem;
  padding: 1.5rem;
  max-width: 24rem;
  margin-left: auto;
}

.hero-card__title {
  display: flex;
  gap: .5rem;
  align-items: center;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #0f172a;
}

.hero-card__title i {
  color: var(--color-primary);
}

.hero-card__img {
  border-radius: 1.1rem;
  border: 1px solid #e2e8f0;
}

.hero-card__note {
  margin-top: .65rem;
  color: #94a3b8;
  font-size: .7rem;
}

/* CTA */
.section--cta {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 70%);
  color: #fff;
  text-align: center;
}

.section--cta__inner {
  max-width: 46rem;
}

.section-title--light {
  color: #fff;
}

.section-lead--light {
  color: rgba(255, 255, 255, .8);
}

/* small helpers for scroll anchoring */
#service,
#features,
#flow,
#contact {
  scroll-margin-top: 5.2rem;
}

@media (min-width: 768px) {
  #service,
  #features,
  #flow,
  #contact {
    scroll-margin-top: 6rem;
  }
}
