/* ==============================
  Index Page
============================== */

.index-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #f4fbff 100%);
}

.index-hero-mosaic {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 1;
  padding-top: 28px;
  display: grid;
  gap: 6px;
  pointer-events: none;
}

.index-hero-mosaic-row {
  overflow: hidden;
}

.index-hero-mosaic-track {
  width: max-content;
  display: flex;
  gap: 6px;
  animation: indexHeroMosaicScroll 184s linear infinite;
  will-change: transform;
}

.index-hero-mosaic-row-bottom .index-hero-mosaic-track {
  animation-direction: reverse;
}

.index-hero-mosaic-track img {
  width: 320px;
  height: 170px;
  flex: 0 0 auto;
  object-fit: cover;
}

@keyframes indexHeroMosaicScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - 3px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .index-hero-mosaic-track {
    animation: none;
  }
}

.index-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 36% 50%,
      rgba(247, 251, 255, 0.92) 0%,
      rgba(247, 251, 255, 0.82) 24%,
      rgba(247, 251, 255, 0.42) 42%,
      rgba(247, 251, 255, 0.12) 62%,
      rgba(247, 251, 255, 0.02) 100%
    ),
    linear-gradient(
      90deg,
      rgba(247, 251, 255, 0.18) 0%,
      rgba(247, 251, 255, 0.34) 28%,
      rgba(247, 251, 255, 0.22) 58%,
      rgba(247, 251, 255, 0.08) 100%
    );
}

@media (min-width: 521px) {
  .index-hero::before {
    content: none;
  }
}

.index-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 20px;
  background: #ffffff;
  border-top: 1px solid rgba(0, 137, 232, 0.16);
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.06);
  pointer-events: none;
}

.index-hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--pc-width), calc(100% - var(--side-space)));
  min-height: 720px;
  margin: 0 auto;
  padding: 42px 0 390px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.index-hero-copy {
  position: relative;
  z-index: 3;
  width: min(760px, 100%);
  padding: 0;
  text-align: center;
}

@media (min-width: 901px) {
  .index-hero-copy {
    margin-left: auto;
    margin-right: auto;
    transform: none;
  }
}

.index-hero-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 14px;
  color: #ffffff;
  background: rgba(0, 137, 232, 0.92);
  border-radius: 999px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.index-hero h1 {
  margin: 0 0 20px;
  color: #001b3f;
  font-size: clamp(44px, 6.2vw, 68px);
  line-height: 1.12;
  letter-spacing: -0.045em;
  font-weight: 900;
  text-shadow: none;
}

.index-hero-lead {
  width: min(620px, 100%);
  margin: 0 auto;
  padding: 0;
  color: #08213f;
  background: transparent;
  border: none;
  border-radius: 0;
  font-size: 17px;
  line-height: 1.85;
  font-weight: 800;
  box-shadow: none;
}

.index-service-intro {
  position: relative;
  overflow: hidden;
  padding: 78px 0 120px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.34)),
    url("images/index-culture-bg.webp") center / cover no-repeat;
}

.intro-message {
  width: min(860px, 100%);
  margin: 0 auto;
}

.intro-message-block {
  padding: 44px 48px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 137, 232, 0.08);
  border-radius: 28px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.intro-message-block + .intro-message-block {
  margin-top: 28px;
}

.intro-section-title {
  margin-bottom: 34px;
}

.intro-message h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.3;
  text-align: left;
}

.intro-message p {
  margin-bottom: 0;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 700;
}

.index-strength {
  padding: 110px 0;
  background: #ffffff;
}

.index-strength h2 {
  margin-bottom: 12px;
  font-size: clamp(34px, 4vw, 46px);
}

.index-strength h3 {
  margin-bottom: 22px;
  color: var(--color-main);
  font-size: clamp(22px, 3vw, 29px);
}

.index-strength p {
  font-size: 15px;
  font-weight: 700;
}

.index-problem {
  padding: 86px 0;
  background: #f4f8fc;
}

.index-problem h2 {
  font-size: clamp(32px, 4vw, 44px);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
}

.problem-card {
  position: relative;
  display: block;
  min-height: 310px;
  padding: 30px 34px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  border-radius: 6px;
}

.problem-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 58%;
  background: center / cover no-repeat;
}

.problem-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.94) 34%, rgba(255, 255, 255, 0.48) 56%, rgba(255, 255, 255, 0.06) 100%);
}

.problem-security::before {
  background-image: url("images/problem-security.png");
}

.problem-data::before {
  background-image: url("images/problem-data.png");
}

.problem-dx::before {
  background-image: url("images/problem-dx.png");
}

.problem-trouble::before {
  background-image: url("images/problem-trouble.png");
}

.problem-card h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 54px;
  color: #003f8f;
  font-size: 22px;
  text-align: center;
}

.problem-card ul {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  list-style: none;
}

.problem-card li {
  margin-bottom: 0;
  padding: 10px 12px;
  color: #003b70;
  background: rgba(255, 255, 255, 0.76);
  border-radius: 4px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 800;
}

.index-case-study {
  padding: 110px 0 96px;
  background: #ffffff;
}

.index-case-study .intro-section-title h2 {
  margin-top: 22px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4vw, 56px);
}

.case-study-lead {
  margin: 0 auto 42px;
  color: #4b5563;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.case-slider-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
}

.case-slider-viewport {
  overflow: hidden;
  flex: 1;
}

.case-slider-track {
  display: flex;
  gap: 24px;
}

.case-card {
  flex: 0 0 calc((100% - 48px) / 3);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #d8e2ee;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.case-card-image-wrap {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.case-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.case-card-category {
  position: absolute;
  top: 16px;
  left: 0;
  margin: 0;
  padding: 10px 18px;
  color: #ffffff;
  background: #10b6df;
  font-size: 16px;
  font-weight: 900;
}

.case-card-body {
  padding: 24px 24px 24px;
}

.case-card h3 {
  margin-bottom: 16px;
  color: #0b1f59;
  font-size: 22px;
  line-height: 1.65;
}

.case-card-text {
  margin: 0;
  color: #334155;
  font-size: 15px;
  line-height: 1.85;
  font-weight: 700;
}

.case-slider-arrow {
  width: 52px;
  height: 52px;
  padding: 0;
  flex: 0 0 52px;
  color: #ffffff;
  background: #374151;
  border: none;
  border-radius: 999px;
  font-size: 18px;
  cursor: pointer;
}

.index-contact {
  padding: 130px 0 120px;
  background:
    repeating-linear-gradient(
      -12deg,
      rgba(15, 23, 42, 0.04) 0,
      rgba(15, 23, 42, 0.04) 1px,
      transparent 1px,
      transparent 7px
    ),
    #ffffff;
}

.contact-copy {
  width: min(720px, 100%);
}

.index-contact h2 {
  margin-bottom: 24px;
  font-size: clamp(34px, 4vw, 48px);
  text-align: left;
}

.index-contact p {
  font-size: 16px;
  font-weight: 700;
}

.index-contact .button {
  margin-top: 18px;
}

@media (max-width: 1440px) {
  .index-hero {
    background-position: center top;
  }
}

@media (max-width: 1200px) {
  .index-hero {
    background-position: center top;
  }
}

@media (max-width: 900px) {
  .index-hero {
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #f4fbff 100%);
  }

  .index-hero-inner {
    min-height: 640px;
    padding: 56px 0 300px;
  }

  .index-strength {
    padding: 82px 0;
  }

  .problem-grid {
    grid-template-columns: 1fr;
  }

  .index-case-study {
    padding: 88px 0 82px;
  }

  .case-card {
    flex: 0 0 calc((100% - 24px) / 2);
  }

  .case-card h3 {
    font-size: 20px;
  }

  .index-contact {
    padding: 88px 0;
  }
}

@media (min-width: 521px) and (max-width: 900px) {
  .index-hero {
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 54%, #f4fbff 100%);
  }

  .index-hero-mosaic {
    bottom: 16px;
    gap: 5px;
    padding-top: 22px;
  }

  .index-hero-mosaic-track {
    gap: 5px;
    animation-duration: 216s;
  }

  .index-hero-mosaic-track img {
    width: 260px;
    height: 140px;
  }

  .index-hero::before {
    content: "";
    background:
      radial-gradient(
        ellipse at 50% 46%,
        rgba(247, 251, 255, 0.22) 0%,
        rgba(247, 251, 255, 0.18) 28%,
        rgba(247, 251, 255, 0.12) 52%,
        rgba(247, 251, 255, 0.08) 72%,
        rgba(247, 251, 255, 0.02) 100%
      ),
      linear-gradient(
        90deg,
        rgba(247, 251, 255, 0.08) 0%,
        rgba(247, 251, 255, 0.12) 22%,
        rgba(247, 251, 255, 0.16) 50%,
        rgba(247, 251, 255, 0.12) 78%,
        rgba(247, 251, 255, 0.08) 100%
      );
  }

  .index-hero-copy {
    width: min(560px, calc(100% - 48px));
    margin: 0 auto;
    text-align: center;
  }

  .index-hero-lead {
    margin: 0 auto;
  }
}

@media (max-width: 520px) {
  .index-hero {
    background:
      linear-gradient(180deg, #ffffff 0%, #ffffff 52%, #f4fbff 100%);
  }

  .index-hero-mosaic {
    bottom: 14px;
    gap: 4px;
    padding-top: 18px;
  }

  .index-hero-mosaic-track {
    gap: 4px;
    animation-duration: 232s;
  }

  .index-hero-mosaic-track img {
    width: 210px;
    height: 116px;
  }

  .index-hero::before {
    background:
      linear-gradient(
        180deg,
        rgba(247, 251, 255, 0.02) 0%,
        rgba(247, 251, 255, 0.16) 28%,
        rgba(247, 251, 255, 0.30) 48%,
        rgba(247, 251, 255, 0.16) 68%,
        rgba(247, 251, 255, 0.02) 100%
      ),
      linear-gradient(
        90deg,
        rgba(247, 251, 255, 0.88) 0%,
        rgba(247, 251, 255, 0.72) 45%,
        rgba(247, 251, 255, 0.42) 74%,
        rgba(247, 251, 255, 0.14) 100%
      );
  }

  .index-hero-inner {
    width: min(calc(100% - var(--side-space-sp)), var(--pc-width));
    min-height: 500px;
    padding: 34px 0 32px;
  }

  .index-hero-copy {
    padding: 0;
  }

  .index-hero-kicker {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .index-hero h1 {
    font-size: 38px;
  }

  .index-hero-lead {
    padding: 10px 12px;
    font-size: 14px;
    transform: translateY(-1em);
  }

  .index-service-intro {
    padding: 72px 0 78px;
    background-position: center top;
  }

  .intro-section-title {
    margin-bottom: 24px;
  }

  .intro-section-title .section-outline-badge {
    min-width: 170px;
    height: 30px;
    padding: 0 18px;
    font-size: 14px;
  }

  .intro-message-block {
    padding: 28px 24px;
    border-radius: 20px;
  }
  .intro-message-block + .intro-message-block {
    margin-top: 22px;
  }

  .index-strength {
    padding: 86px 0 70px;
  }

  .intro-message h2 {
    font-size: 30px;
  }

  .problem-card {
    min-height: 360px;
    padding: 24px;
  }

  .problem-card h3 {
    margin-bottom: 48px;
    font-size: 20px;
  }

  .problem-card ul {
    grid-template-columns: 1fr;
  }

  .problem-card li {
    background: rgba(255, 255, 255, 0.82);
    font-size: 13px;
  }

  .index-case-study {
    padding: 72px 0 70px;
  }

  .case-study-lead {
    margin-bottom: 28px;
    font-size: 15px;
  }

  .case-slider-wrap {
    gap: 10px;
  }

  .case-card {
    flex: 0 0 100%;
  }

  .case-card-body {
    padding: 20px 18px 20px;
  }

  .case-card h3 {
    font-size: 18px;
  }

  .case-card-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .case-slider-arrow {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    font-size: 15px;
  }

  .index-contact h2 {
    text-align: left;
  }
}