/* ========================================
  Service Page Styles
======================================== */

/* ========================================
  Service Intro Section
======================================== */

main {
  background-color: #F9FAFB;
}

.service-intro {
  padding: 0 0 10rem;
  background-color: #f9fafb;
}

.service-intro__inner {
  max-width: 120rem;
  margin: 0 auto;
}

.service-intro__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.9;
  color: #444;
}

.service-intro__divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d1d5db, transparent);
  margin: 4.6rem 0;
}

.service-intro__cards {
  display: flex;
  gap: 2rem;
  justify-content: center;
}

.service-intro__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 59rem;
  height: 20rem;
  padding: 0 3.4rem 0 3.9rem;
  background: linear-gradient(105.33deg, rgba(3, 80, 194, 0.9) 57.76%, rgb(0, 153, 225) 92.68%);
  border-radius: 12px;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.service-intro__card:hover {
  opacity: 0.85;
}

.service-intro__card-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.service-intro__card-en {
  font-family: 'Poppins', sans-serif;
  font-size: 5.2rem;
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.service-intro__card-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1.87;
  letter-spacing: 0.05em;
}

.service-intro__card-arrow {
  flex-shrink: 0;
}

.service-intro__card-arrow img {
  width: 4.2rem;
  height: 4.2rem;
}

/* ========================================
  Service Detail Section
======================================== */
.service-detail {
  padding: 9.6rem 0;
  background-color: #fff;
  scroll-margin-top: 12rem;
}

.service-detail__inner {
  max-width: 120rem;
  margin: 0 auto;
}

.service-detail__main {
  display: flex;
  gap: 7rem;
  align-items: flex-start;
  margin-bottom: 9rem;
}

.service-detail__content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3.8rem;
}

.service-detail__heading {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-detail__title-en {
  font-family: 'Poppins', sans-serif;
  font-size: 6.4rem;
  font-weight: 500;
  line-height: 0.94;
  letter-spacing: 0.05em;
  color: #0055b8;
  text-transform: uppercase;
}

.service-detail__title-ja {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.13em;
  color: #64748b;
}

.service-detail__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 2;
  color: #444;
}

.service-detail__image {
  flex: 1;
  max-width: 56rem;
  height: 35rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

/* Reverse layout for Consulting */
.service-detail--reverse .service-detail__main {
  flex-direction: row-reverse;
}

/* Flow Section */
.service-detail__flow {
  background-color: #eff7ff;
  border-radius: 16px;
  padding: 6.6rem 4.8rem;
}

.service-detail__flow-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.5rem;
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: 0.03em;
  color: #0055b8;
  text-align: center;
  margin-bottom: 4.8rem;
}

.service-detail__flow-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
}

.service-detail__flow-step {
  flex: 1;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-detail__flow-icon {
  width: 100%;
  margin-bottom: 2rem;
  border-radius: 4px;
  overflow: hidden;
}

.service-detail__flow-icon img {
  width: 100%;
  height: auto;
}

.service-detail__flow-step-title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.27;
  color: #0055b8;
  margin-bottom: 1.8rem;
}

.service-detail__flow-step-text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  color: #444;
  text-align: left;
}

.service-detail__flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding-top: 14rem;
}

.service-detail__flow-arrow img {
  width: 2rem;
  height: auto;
}

/* ========================================
  Responsive Styles (SP)
======================================== */
@media (max-width: 767px) {

  /* Service Intro Section SP */
  .service-intro {
    padding: 4rem 2rem 5rem;
  }

  .service-intro__text {
    font-size: 1.4rem;
    line-height: 1.8;
    text-align: left;
  }

  .service-intro__divider {
    margin: 3rem 0;
  }

  .service-intro__cards {
    flex-direction: column;
    gap: 1.6rem;
  }

  .service-intro__card {
    width: 100%;
    height: 12rem;
    padding: 0 2rem 0 2.4rem;
  }

  .service-intro__card-en {
    font-size: 3.2rem;
  }

  .service-intro__card-ja {
    font-size: 1.2rem;
  }

  .service-intro__card-arrow img {
    width: 3.6rem;
    height: 3.6rem;
  }

  /* Service Detail Section SP */
  .service-detail {
    padding: 5rem 2rem;
    scroll-margin-top: 8rem;
  }

  .service-detail__main {
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 5rem;
  }

  .service-detail--reverse .service-detail__main {
    flex-direction: column;
  }

  .service-detail__content {
    gap: 2.4rem;
  }

  .service-detail__heading {
    gap: 0.4rem;
  }

  .service-detail__title-en {
    font-size: 4rem;
  }

  .service-detail__title-ja {
    font-size: 1.2rem;
  }

  .service-detail__text {
    font-size: 1.5rem;
    line-height: 1.9;
  }

  .service-detail__image {
    width: 100%;
    max-width: 100%;
    height: 22rem;
  }

  /* Flow Section SP */
  .service-detail__flow {
    padding: 4rem 2rem;
    border-radius: 12px;
  }

  .service-detail__flow-title {
    font-size: 2rem;
    margin-bottom: 3rem;
  }

  .service-detail__flow-steps {
    flex-direction: column;
    gap: 3rem;
  }

  .service-detail__flow-step {
    max-width: 100%;
  }

  .service-detail__flow-icon {
    margin-bottom: 1.6rem;
  }

  .service-detail__flow-step-title {
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
  }

  .service-detail__flow-step-text {
    font-size: 1.4rem;
    line-height: 1.75;
  }

  .service-detail__flow-arrow {
    display: none;
  }
}