/* --------------------------------------------------------------------------
  Services common
--------------------------------------------------------------------------- */

.service-top,
.service-detail {
  color: #111;
  background: #fff;
}

.service-top-container,
.service-detail-container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.service-top-section,
.service-detail-section {
  padding: 80px 0;
}

.service-top-section--gray,
.service-detail-section--gray {
  background: #f7f7f7;
}

/* Hero
--------------------------------------------------------------------------- */

.service-top-hero,
.service-detail-hero {
  background: linear-gradient(
    90deg,
    #fff 0%,
    #fff 48%,
    #f4f6f8 48%,
    #f4f6f8 100%
  );
  overflow: hidden;
}

.service-top-hero__inner,
.service-detail-hero__inner {
  width: min(1180px, calc(100% - 40px));
  min-height: 440px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 48px;
}

.service-detail-hero__inner {
  min-height: 420px;
}

.service-top-hero__label,
.service-detail-hero__label {
  margin: 0 0 12px;
  color: #9b001f;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.service-top-hero__title,
.service-detail-hero__title {
  margin: 0;
  color: #111;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-top-hero__text,
.service-detail-hero__text {
  margin: 28px 0 0;
  max-width: 520px;
  font-size: 1.05rem;
  line-height: 2;
  font-weight: 600;
}

.service-top-hero__text span,
.service-detail-hero__text span {
  white-space: nowrap;
}

.service-top-hero__image img,
.service-detail-hero__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 0 0 40px;
  object-fit: cover;
}

/* Lead
--------------------------------------------------------------------------- */

.service-top-lead,
.service-detail-lead {
  padding: 48px 0 0;
}

.service-top-lead p,
.service-detail-lead p {
  max-width: 880px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 2;
  text-align: center;
}

.service-top-lead span,
.service-detail-lead span {
  white-space: nowrap;
}

/* Heading
--------------------------------------------------------------------------- */

.service-top-heading,
.service-detail-heading {
  margin-bottom: 40px;
  text-align: center;
}

.service-top-heading__en,
.service-detail-heading__en {
  margin: 0 0 8px;
  color: #9b001f;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.service-top-heading__ja,
.service-detail-heading__ja {
  position: relative;
  margin: 0;
  padding-bottom: 18px;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-top-heading__ja::after,
.service-detail-heading__ja::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 48px;
  height: 3px;
  transform: translateX(-50%);
}

/* CTA
--------------------------------------------------------------------------- */

.service-top-cta,
.service-detail-cta {
  padding: 80px 0 90px;
}

.service-detail-cta {
  padding-bottom: 32px;
}

.service-top-cta__inner,
.service-detail-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 44px 48px;
  color: #fff;
  background: linear-gradient(135deg, #9b001f 0%, #c40028 100%);
  border-radius: 12px;
}

.service-top-cta__label,
.service-detail-cta__label {
  margin: 0 0 8px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.9;
}

.service-top-cta__title,
.service-detail-cta__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-top-cta__text,
.service-detail-cta__text {
  margin: 14px 0 0;
  max-width: 620px;
  font-size: 0.95rem;
  line-height: 1.9;
}

.service-top-cta__text span {
  white-space: nowrap;
}

.service-top-cta__button,
.service-detail-cta__button {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 240px;
  padding: 16px 24px;
  color: #9b001f;
  font-weight: 800;
  text-decoration: none;
  background: #fff;
  border-radius: 6px;
  transition: 0.2s ease;
}

.service-top-cta__button::after,
.service-detail-cta__button::after {
  content: "→";
  margin-left: 10px;
}

.service-top-cta__button:hover,
.service-detail-cta__button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

/* Back link
--------------------------------------------------------------------------- */

.service-detail-back {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  text-align: center;
}

.service-detail-back a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  color: #333;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  transition: 0.2s ease;
}

.service-detail-back a::before {
  content: "←";
  margin-right: 10px;
}

.service-detail-back a:hover {
  color: #9b001f;
  border-color: #9b001f;
}

/* Responsive
--------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .service-top-hero,
  .service-detail-hero {
    background: #fff;
  }

  .service-top-hero__inner,
  .service-detail-hero__inner {
    min-height: auto;
    padding: 48px 0 0;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-top-hero__text,
  .service-detail-hero__text {
    max-width: none;
  }

  .service-top-hero__image img,
  .service-detail-hero__image img {
    border-radius: 12px;
  }

  .service-top-cta__inner,
  .service-detail-cta__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .service-top-cta__button,
  .service-detail-cta__button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .service-top-container,
  .service-detail-container,
  .service-top-hero__inner,
  .service-detail-hero__inner,
  .service-detail-back {
    width: min(100% - 28px, 1120px);
  }

  .service-top-hero__text span,
  .service-detail-hero__text span {
    white-space: normal;
  }

  .service-top-section,
  .service-detail-section {
    padding: 56px 0;
  }

  .service-top-lead,
  .service-detail-lead {
    padding: 36px 0 0;
  }

  .service-top-lead span,
  .service-detail-lead span {
    white-space: normal;
  }

  .service-top-lead p,
  .service-detail-lead p {
    text-align: left;
  }

  .service-top-cta,
  .service-detail-cta {
    padding: 64px 0 64px;
  }

  .service-detail-cta {
    padding-bottom: 28px;
  }

  .service-top-cta__inner,
  .service-detail-cta__inner {
    padding: 32px 24px;
  }

  .service-top-cta__text span {
    white-space: normal;
  }

  .service-top-cta__button,
  .service-detail-cta__button {
    min-width: auto;
  }

  .service-detail-back {
    margin-bottom: 56px;
  }
}

/* Showcase
--------------------------------------------------------------------------- */

.service-top-section--showcase,
.service-detail-section--showcase {
  padding-top: 64px;
}

.service-top-showcase,
.service-detail-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 44px;
  padding: 40px;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.service-top-showcase__image img,
.service-detail-showcase__image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  object-fit: cover;
}

.service-top-showcase__label,
.service-detail-showcase__label {
  margin: 0 0 10px;
  color: #9b001f;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-top-showcase__body h2,
.service-detail-showcase__body h2 {
  margin: 0 0 20px;
  color: #111;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.service-top-showcase__br {
  display: block;
}

.service-top-showcase__body p,
.service-detail-showcase__body p {
  margin: 0;
  color: #333;
  font-size: 0.96rem;
  line-height: 2;
}

.service-top-showcase__body p + p,
.service-detail-showcase__body p + p {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .service-top-showcase,
  .service-detail-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .service-top-showcase__br {
    display: none;
  }
}

@media (max-width: 600px) {
  .service-top-section--showcase,
  .service-detail-section--showcase {
    padding-top: 48px;
  }

  .service-top-showcase,
  .service-detail-showcase {
    padding: 24px 20px;
  }

  .service-top-showcase__body h2,
  .service-detail-showcase__body h2 {
    font-size: 1.45rem;
    line-height: 1.5;
  }

  .service-top-showcase__br {
    display: block;
  }
}
