@import url("page-common.css");

body.service-page {
  position: relative;
  isolation: isolate;
}

body.service-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: url("../img/service.jpeg") center / cover no-repeat;
  opacity: 1;
  pointer-events: none;
}

.sector-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
  justify-items: center;
}

.sector-card {
  width: min(980px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.section-title,
.eyebrow {
  text-align: center;
}

.solution-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.solution {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0;
  text-align: center;
  font-size: 13px;
  width: 280px;
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  justify-items: center;
  overflow: hidden;
}

.solution-thumb {
  width: 100%;
  height: 140px;
  border-radius: 0;
  background: linear-gradient(140deg, rgba(33, 87, 214, 0.35), rgba(123, 199, 255, 0.35));
  flex-shrink: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.solution-body {
  display: grid;
  gap: 6px;
  text-align: center;
  padding: 0 12px 14px;
}

.solution-body strong {
  font-size: 13px;
}

.solution-body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.sector-card h3 {
  margin: 0 0 8px;
}

.sector-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: clamp(13px, 1vw, 15px);
}

.sector-community-dx .sector-card,
.sector-edu-wellness .sector-card {
  display: grid;
  grid-template-columns: minmax(300px, 42%) 1fr;
  grid-template-areas:
    "thumb title"
    "thumb text";
  gap: 10px 24px;
  align-items: start;
}

.sector-community-dx .sector-card h3,
.sector-edu-wellness .sector-card h3 {
  grid-area: title;
  margin: 0;
  text-align: left;
}

.sector-community-dx .sector-card p,
.sector-edu-wellness .sector-card p {
  grid-area: text;
  text-align: left;
}

.sector-community-dx .sector-thumb,
.sector-edu-wellness .sector-thumb {
  grid-area: thumb;
  display: block;
  width: 73%;
  max-width: 100%;
  aspect-ratio: 1024 / 571;
  object-fit: cover;
  margin: 0;
  border-radius: 12px;
  border: 1px solid var(--line);
  margin-left: 13.5%;
}


main {
  padding: 48px 0 96px;
}

.page-hero {
  position: relative;
  padding: 24px 0 20px;
  overflow: hidden;
}

.page-hero::after {
  content: none;
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(33, 87, 214, 0.2), transparent);
}

.page-hero-inner {
  display: grid;
  gap: 16px;
  padding: 32px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgb(237, 241, 252), rgb(229, 244, 255));
  border: 1px solid rgb(228, 235, 250);
}

.page-title-en {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: 2px;
  margin: 0;
  color: var(--ink-strong);
  text-transform: uppercase;
  text-align: left;
}

.page-title-jp {
  font-size: 15px;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}

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

.section {
  margin-bottom: 72px;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeUp 0.7s ease forwards;
}

.section:nth-of-type(2) {
  animation-delay: 0.08s;
}

.section:nth-of-type(3) {
  animation-delay: 0.14s;
}

.section:nth-of-type(4) {
  animation-delay: 0.2s;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 12px;
  color: #c9c5fc;
  margin: 0 0 12px;
  font-family: "Barlow Condensed", sans-serif;
}

.section-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(28px, 3.2vw, 40px);
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.884);
  letter-spacing: 1px;
}

.section-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  text-align: left;
}

.grid {
  display: grid;
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.card h3{
  text-align: center;
  margin-bottom: 20px;
}

main p {
    text-align: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 22px;
  border-radius: 12px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  line-height: 1;
  font-size: 14px;
}

.button.secondary {
  background: transparent;
  color: var(--accent);
  color: #fff;
  border-color: #fff;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 900px) {
  .sector-community-dx .sector-card,
  .sector-edu-wellness .sector-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "thumb"
      "text";
    gap: 12px;
  }

  .sector-community-dx .sector-card h3,
  .sector-edu-wellness .sector-card h3 {
    text-align: center;
  }

  .sector-community-dx .sector-card p,
  .sector-edu-wellness .sector-card p {
    text-align: center;
  }

  main {
    padding-top: 32px;
  }
}

@media (max-width: 1030px) {
  .sector-community-dx .sector-card p br,
  .sector-edu-wellness .sector-card p br {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

