/* Service page only. The shared theme header and footer remain untouched. */
.service-page {
  --service-blue: #087cd0;
  --service-blue-dark: #103454;
  --service-orange: #f88404;
  --service-sky: #f0f8fc;
  --service-sand: #f8f0e8;
  --service-white: #fff;
  --service-text: #143454;
  --service-muted: #5b6876;
  --service-line: #b0dcf8;
  --service-shadow: 0 18px 48px rgba(16, 52, 84, 0.1);
  --service-max: 1120px;
  margin: 0;
  color: var(--service-text);
  background: var(--service-white);
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.85;
}

.service-page,
.service-page *,
.service-page *::before,
.service-page *::after {
  box-sizing: border-box;
}

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

.service-page a {
  color: inherit;
  text-decoration: none;
}

.service-shell {
  width: min(100% - 40px, var(--service-max));
  margin-inline: auto;
}

.service-hero {
  position: relative;
  overflow: hidden;
  background: var(--service-sky);
}

.service-hero__inner {
  min-height: 300px;
  padding-block: 24px 64px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.service-breadcrumb {
  width: 100%;
  margin-bottom: 28px;
  color: var(--service-muted);
  font-size: 13px;
  text-align: left;
}

.service-breadcrumb ol {
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.service-breadcrumb li + li::before {
  content: "/";
  margin-right: 8px;
  color: #8fa6b8;
}

.service-hero__label {
  margin: 0 0 10px;
  color: var(--service-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.service-hero h1 {
  margin: 0;
  color: var(--service-blue-dark);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.42;
}

.service-hero__wave {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 76' preserveAspectRatio='none'%3E%3Cpath d='M0 42c155-42 304-42 448 0s292 42 444 0 335-42 548 0v34H0V42z' fill='%23ffffff'/%3E%3C/svg%3E") center bottom / 100% 100% no-repeat;
}

.service-section {
  position: relative;
  padding-block: 104px;
}

.service-section--sky {
  background: var(--service-sky);
}

.service-section--sand {
  background: var(--service-sand);
}

.service-intro {
  max-width: 820px;
  margin-inline: auto;
  color: var(--service-blue-dark);
  font-size: 19px;
  font-weight: 500;
  text-align: center;
}

.service-intro p {
  margin: 0;
}

.service-intro p + p {
  margin-top: 18px;
}

.service-nav-grid {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-nav-card {
  min-height: 390px;
  border: 1px solid var(--service-line);
  border-radius: 18px;
  background: var(--service-white);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.service-nav-card:hover {
  border-color: var(--service-blue);
  transform: translateY(-4px);
}

.service-nav-card > img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.service-nav-card__body {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
}

.service-nav-card h2 {
  margin: 0;
  color: var(--service-blue-dark);
  font-size: 19px;
  line-height: 1.55;
}

.service-nav-card p {
  margin: 12px 0 18px;
  color: var(--service-muted);
  font-size: 14px;
  line-height: 1.75;
}

.service-nav-card__body > span {
  margin-top: auto;
  color: var(--service-blue);
  font-size: 13px;
  font-weight: 800;
}

.service-detail {
  scroll-margin-top: 88px;
}

.service-detail__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.service-detail--reverse .service-detail__media {
  order: 2;
}

.service-detail__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  object-fit: cover;
  box-shadow: var(--service-shadow);
}

.service-detail__kicker {
  margin: 0 0 12px;
  color: var(--service-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.service-detail__copy h2 {
  margin: 0;
  color: var(--service-blue-dark);
  font-size: clamp(29px, 3.1vw, 40px);
  line-height: 1.45;
}

.service-detail__lead {
  margin: 22px 0 0;
  color: var(--service-blue-dark);
  font-size: 19px;
  font-weight: 700;
}

.service-detail__copy > p:not(.service-detail__kicker):not(.service-detail__lead) {
  margin: 17px 0 0;
}

.service-point-list {
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
}

.service-point-list li {
  position: relative;
  padding-left: 25px;
  font-size: 14px;
  font-weight: 700;
}

.service-point-list li::before {
  content: "✓";
  position: absolute;
  top: 0;
  left: 0;
  color: var(--service-blue);
  font-weight: 900;
}

.service-note {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid #f2c98f;
  border-radius: 16px;
  background: #fffaf2;
}

.service-note h3 {
  margin: 0;
  color: var(--service-blue-dark);
  font-size: 17px;
}

.service-note p {
  margin: 10px 0 0;
  color: #6a4b26;
  font-size: 14px;
}

.service-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
}

.service-button {
  min-height: 50px;
  padding-inline: 28px;
  border-radius: 999px;
  background: var(--service-orange);
  color: var(--service-white) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  line-height: 1.3;
  box-shadow: 0 10px 24px rgba(248, 132, 4, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-button:hover {
  color: var(--service-white) !important;
  transform: scale(1.02);
  box-shadow: 0 14px 30px rgba(248, 132, 4, 0.3);
}

.service-text-link {
  color: var(--service-blue) !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid currentColor;
  font-weight: 800;
  line-height: 1.5;
}

.service-text-link::after {
  content: "→";
}

.service-heading {
  max-width: 820px;
  margin: 0 auto 54px;
  text-align: center;
}

.service-heading > p {
  margin: 0 0 10px;
  color: var(--service-blue);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-heading h2 {
  margin: 0;
  color: var(--service-blue-dark);
  font-size: clamp(30px, 3.7vw, 44px);
  line-height: 1.45;
}

.service-heading span {
  display: block;
  margin-top: 18px;
  color: var(--service-muted);
  font-size: 17px;
}

.service-flow__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-flow__grid article {
  padding: 26px 22px;
  border: 1px solid var(--service-line);
  border-radius: 16px;
  background: var(--service-white);
}

.service-flow__grid b {
  color: var(--service-blue);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
}

.service-flow__grid h3 {
  margin: 14px 0 0;
  color: var(--service-blue-dark);
  font-size: 18px;
}

.service-flow__grid p {
  margin: 10px 0 0;
  color: var(--service-muted);
  font-size: 13px;
}

@media (max-width: 960px) {
  .service-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-detail__grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .service-detail--reverse .service-detail__media {
    order: 0;
  }

  .service-detail__media {
    max-width: 700px;
    margin-inline: auto;
  }

  .service-flow__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .service-page {
    font-size: 15px;
  }

  .service-shell {
    width: min(100% - 32px, var(--service-max));
  }

  .service-hero__inner {
    min-height: 250px;
    padding-block: 18px 52px;
  }

  .service-breadcrumb {
    margin-bottom: 22px;
    font-size: 11px;
  }

  .service-hero__label {
    font-size: 11px;
  }

  .service-hero h1 {
    font-size: 30px;
    line-height: 1.5;
  }

  .service-section {
    padding-block: 70px;
  }

  .service-intro {
    font-size: 16px;
    text-align: left;
  }

  .service-nav-grid {
    margin-top: 34px;
    grid-template-columns: 1fr;
  }

  .service-nav-card {
    min-height: 0;
  }

  .service-nav-card__body {
    padding: 22px;
  }

  .service-detail__grid {
    gap: 30px;
  }

  .service-detail__media img {
    border-radius: 16px;
  }

  .service-detail__copy h2 {
    font-size: 28px;
  }

  .service-detail__lead {
    font-size: 17px;
  }

  .service-point-list,
  .service-flow__grid {
    grid-template-columns: 1fr;
  }

  .service-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .service-button {
    width: 100%;
  }

  .service-heading {
    margin-bottom: 36px;
  }

  .service-heading h2 {
    font-size: 28px;
  }

  .service-heading span {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page,
  .service-page *,
  .service-page *::before,
  .service-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
