@import url("fonts.css");

/*
  SERVICE page styles.
  Sections: hero, lead, service detail blocks, contact CTA.
*/

* {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "NotoSansJP-VariableFont_wght", "ZenKakuGothicNew-Regular", sans-serif;
  color: #ffffff;
  background-color: #00193b;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

/* Page hero. */
.service-hero {
  min-height: 420px;
  margin-top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  background:
    linear-gradient(rgba(0, 25, 59, 0.46), rgba(0, 25, 59, 0.7)),
    url("image/サービス.jpg") center center / cover no-repeat;
}

.service-hero-text h1 {
  margin: 0 0 14px;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: clamp(2.1rem, 6.4vw, 2.8rem);
  line-height: 1.25;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
}

.hero-subtitle {
  margin: 0;
  font-family: "ShipporiMincho-Medium", "NotoSansJP-VariableFont_wght", serif;
  font-size: 1rem;
  letter-spacing: 0.18em;
}

/* Lead section and service-detail two-column layout. */
.lead-section,
.service-item {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px;
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
}

.lead-section {
  max-width: none;
  padding-left: max(32px, calc((100vw - 1180px) / 2 + 32px));
  padding-right: max(32px, calc((100vw - 1180px) / 2 + 32px));
  background-color: #00193b;
  color: #ffffff;
}

.service-lead-body {
  max-width: 920px;
}

.section-heading p {
  margin: 0 0 8px;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #b9c8dd;
}

.service-label {
  margin: 0 0 10px;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #b9c8dd;
}

.section-heading h2,
.contact-section h2 {
  margin: 0;
  font-family: "Playfair Display", "ShipporiMincho-Bold", serif;
  font-size: 2rem;
  letter-spacing: 0.06em;
}

.section-body h3 {
  margin: 0 0 20px;
  font-size: 1.35rem;
  line-height: 1.7;
}

.section-body p,
.service-content p,
.service-content li,
.consulting-list p,
.contact-section p {
  line-height: 1.9;
}

.section-body p,
.service-content p {
  margin: 0;
}

.service-section {
  background-color: #00193b;
}

/* Individual service blocks alternate dark/light backgrounds. */
.service-item {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.service-item-light {
  max-width: none;
  padding-left: max(32px, calc((100vw - 1180px) / 2 + 32px));
  padding-right: max(32px, calc((100vw - 1180px) / 2 + 32px));
  background-color: #ffffff;
  color: #00193b;
}

.service-heading {
  align-self: start;
}

.service-number {
  display: block;
  margin-bottom: 18px;
  font-family: "Playfair Display", "Georgia", serif;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1;
  color: rgba(185, 200, 221, 0.28);
}

.service-item-light .service-number {
  color: rgba(0, 25, 59, 0.14);
}

.service-item-light .service-label {
  color: #557095;
}

/* Service title, number, and content list styling. */
.service-heading h2 {
  margin: 0;
  font-family: "ShipporiMincho-Bold", "NotoSansJP-VariableFont_wght", serif;
  font-size: clamp(1.25rem, 1.9vw, 1.55rem);
  line-height: 1.45;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.service-content ul {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.service-content li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.service-item-light .service-content li {
  border-top-color: #d9e0ea;
}

.service-content li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #b9c8dd;
}

.service-item-light .service-content li::before {
  background-color: #557095;
}

.consulting-list {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.consulting-list section {
  padding-top: 0;
  border-top: 0;
}

.consulting-list section + section {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.service-item-light .consulting-list section + section {
  border-top-color: #d9e0ea;
}

.consulting-list h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  letter-spacing: 0.06em;
}

.consulting-list p {
  margin: 0;
}

/* Bottom contact CTA. */
.contact-section {
  padding: 76px 24px;
  text-align: center;
  background-color: #f4f7fb;
  color: #00193b;
}

.contact-section p {
  max-width: 720px;
  margin: 18px auto 0;
}

.contact-button {
  display: inline-block;
  margin-top: 28px;
  padding: 12px 36px;
  border-radius: 999px;
  background-color: #00193b;
  color: #ffffff;
  text-decoration: none;
  font-family: "Montserrat", "Oswald-VariableFont_wght", sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  transition: transform 0.3s, opacity 0.3s;
}

.contact-button:hover {
  opacity: 0.84;
  transform: translateY(-2px);
}

/* Tablet: stack heading and service content columns. */
@media (max-width: 1180px) {
.service-hero {
    margin-top: 0;
  }

  .lead-section,
  .service-item {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 58px 24px;
  }

  .service-number {
    margin-bottom: 12px;
  }

  .service-heading h2 {
    white-space: normal;
  }
}

/* Smartphone. */
@media (max-width: 560px) {
.service-hero {
    min-height: 340px;
    padding: 64px 18px;
  }

  .section-heading h2,
  .service-heading h2,
  .contact-section h2 {
    font-size: 1.65rem;
  }

  .section-body h3 {
    font-size: 1.12rem;
  }
}

/* Narrow smartphone. */
@media (max-width: 420px) {
  .lead-section,
  .service-item {
    padding: 48px 18px;
  }

  .service-hero {
    min-height: 300px;
  }

  .hero-subtitle {
    letter-spacing: 0.12em;
    line-height: 1.7;
  }

  .service-number {
    font-size: 2.3rem;
  }

  .service-content li {
    padding-left: 18px;
  }

  .contact-button {
    width: 100%;
  }
}
