/* top.css — トップページ固有スタイル */

/* NEWS TOP SECTION */
.news-top {
  background: var(--color-gray-light);
  padding-bottom: 5rem;
}

.news-top__list {
  max-width: var(--content-width);
  margin: 3rem auto 0;
  padding: 0 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.news-top__item {
  border-bottom: 1px solid #e0e0e0;
}

.news-top__link {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 0.25rem;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-top__link:hover {
  opacity: 0.7;
}

.news-top__date {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: var(--color-accent);
  white-space: nowrap;
  min-width: 8rem;
}

.news-top__cat {
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 0.2rem 0.85rem;
  border-radius: 9999px;
  white-space: nowrap;
  line-height: 1.7;
}

.news-top__title {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-black);
}

.news-top__arrow {
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  line-height: 1;
}

.news-top__cta {
  text-align: center;
  margin-top: 4rem;
}

@media (max-width: 768px) {
  .news-top__link {
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1rem 0.25rem;
  }

  .news-top__date {
    min-width: auto;
    font-size: 0.8rem;
  }

  .news-top__title {
    width: 100%;
    font-size: 0.875rem;
  }

  .news-top__arrow {
    display: none;
  }
}

/* HERO */
.hero {
  position: relative;
  height: 100vh;
  margin-bottom: 5rem;
  padding-top: 3.2rem;
  background: var(--color-white);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  opacity: .2;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 1.5rem;
}

.hero__title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 2;
  letter-spacing: .75em;
  color: var(--color-primary);
  margin-bottom: 3.125rem;
}

.hero__title-line {
  display: block;
}

.hero__subtitle {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.8rem;
  line-height: 2;
  letter-spacing: .4em;
  color: var(--color-primary);
}

/* SERVICE */
.service {
  background: var(--color-white);
  padding-bottom: 5rem;
}

.service__description {
  text-align: center;
  margin: 6.4rem auto;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  letter-spacing: .5rem;
  line-height: 2;
}

.service__cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto;
}

.service__card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  height: 19rem;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.service__card:nth-child(1) {
  background-image: url('../img/top_service_item-bg-sales.webp');
}

.service__card:nth-child(2) {
  background-image: url('../img/top_service_item-bg-management.webp');
}

.service__card:nth-child(3) {
  background-image: url('../img/top_service_item-bg-consulting.webp');
}

.service__card-title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 2;
  color: var(--color-white);
  position: relative;
  z-index: 1;
  text-shadow: 0 .0625rem .25rem rgba(0, 0, 0, .5);
}

.service__card-text {
  font-family: var(--font-serif);
  font-size: 1rem;
  line-height: 2;
  letter-spacing: .25rem;
  color: var(--color-white);
  margin-top: 1rem;
  position: relative;
  z-index: 1;
  text-shadow: 0 .0625rem .25rem rgba(0, 0, 0, .5);
}

.service__cta {
  text-align: center;
  margin-top: 4rem;
}

/* STRENGTH */
.strength {
  background: linear-gradient(to bottom, var(--color-primary), #f3f8f0);
  margin-bottom: 4rem;
  padding-bottom: 10rem;
}

.strength__items {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: var(--content-width);
  margin: 6rem auto 0;
  padding: 0 1.5rem;
}

.strength__item {
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: 9999px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 15.625rem;
  margin: 0 auto;
  width: 100%;
}

.strength__item-inner {
  padding: 1.25rem;
}

.strength__item-line {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 2;
  color: var(--color-primary);
}

.strength__item-cross {
  font-family: var(--font-en);
  font-weight: 400;
  font-size: 1.5625rem;
  line-height: 3.125rem;
  color: var(--color-primary);
}

/* WORKS */
.works {
  background: var(--color-white);
  padding-bottom: 5rem;
}

.works__cta {
  text-align: center;
  margin-top: 4rem;
}

/* RESPONSIVE */
@media (max-width: 64rem) {
  .hero__title {
    font-size: 1.625rem;
    letter-spacing: 1.25rem;
    line-height: 3.5rem;
  }

  .hero__subtitle {
    font-size: 1.125rem;
    letter-spacing: .5rem;
  }

  .strength__items {
    margin-top: 7.5rem;
  }

}

@media (max-width: 768px) {
  .hero {
    height: 31.25rem;
  }

  .hero__title {
    font-size: 1.25rem;
    letter-spacing: .75rem;
    line-height: 3rem;
  }

  .hero__subtitle {
    font-size: .875rem;
    letter-spacing: .375rem;
  }

  .service__cards {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding: 0 1.5rem;
  }

  .service__card-title {
    margin-top: -5rem;
  }

  .service__description {
    letter-spacing: .125rem;
    font-size: .875rem;
    padding: 0 1.5rem;
  }

  .strength__items {
    grid-template-columns: 1fr;
    margin-top: 3.75rem;
    gap: 1.5rem;
  }

  .strength__item {
    max-width: 12.5rem;
  }

}
