/* =========================
   TOP PAGE
========================= */

/* =========================
   Hero / Card Slider
========================= */
.hero {
  position: relative;
  padding: 110px 0 80px;
  background: linear-gradient(180deg, #eef7ff 0%, #f8fbff 100%);
  overflow: hidden;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero::before {
  width: 360px;
  height: 900px;
  left: -150px;
  top: -180px;
  background: rgba(47, 95, 227, 0.18);
  transform: rotate(42deg);
}

.hero::after {
  width: 420px;
  height: 900px;
  right: -160px;
  top: -80px;
  background: rgba(111, 211, 232, 0.28);
  transform: rotate(42deg);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-swiper {
  width: 100vw;
  margin-left: 50%;
  transform: translateX(-50%);
  overflow: visible;
}

.hero-swiper .swiper-slide {
  position: relative;
  width: min(60vw, 820px);
  height: 520px;
  border-radius: 24px;
  overflow: hidden;
  background: #fff;
  opacity: 0.36;
  transform: scale(0.86);
  transition: transform 0.35s ease, opacity 0.35s ease;
  box-shadow: 0 24px 60px rgba(28, 63, 158, 0.18);
}

.hero-swiper .swiper-slide-active {
  opacity: 1;
  transform: scale(1);
}

.hero-swiper .swiper-slide-prev,
.hero-swiper .swiper-slide-next {
  opacity: 0.42;
  transform: scale(0.86);
}

.hero-swiper .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.hero-swiper .swiper-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.04) 0%,
    rgba(0, 0, 0, 0.16) 45%,
    rgba(0, 0, 0, 0.68) 100%
  );
  pointer-events: none;
}

.slide-text {
  position: absolute;
  z-index: 2;
  left: 40px;
  right: 40px;
  bottom: 38px;
  color: #fff;
}

.slide-text h2 {
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.35;
  margin-bottom: 10px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

.slide-text p {
  max-width: 46ch;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #fff;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.6);
}

.slide-buttons {
  display: flex;
  gap: 12px;
}

.slide-buttons .btn {
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  transition: 0.3s;
}

.slide-buttons .btn-secondary,
.slide-buttons .btn-white {
  background: #fff;
  color: #2f5fe3;
  border: 2px solid #2f5fe3;
}

.slide-buttons .btn-primary {
  background: linear-gradient(135deg, #2f5fe3, #4aa3ff);
  color: #fff;
  border: none;
}

.slide-buttons .btn-primary:hover,
.slide-buttons .btn-secondary:hover,
.slide-buttons .btn-white:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  color: #2f5fe3;
}

.hero-swiper .swiper-pagination {
  margin-top: 28px;
  text-align: center;
}

.hero-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background: #c8d5df;
  opacity: 1;
}

.hero-swiper .swiper-pagination-bullet-active {
  background: #2f5fe3;
  box-shadow: 0 0 0 3px rgba(47, 95, 227, 0.18);
}

/* =========================
   Section Common
========================= */
section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
}

.section-kicker,
.section-label {
  color: #2f5fe3;
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 10px;
}

.section-title {
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.35;
  color: #2f3b4a;
  margin-bottom: 16px;
}

.section-lead {
  max-width: 820px;
  margin: 0 auto 48px;
  text-align: center;
  color: #4b5563;
  line-height: 1.9;
}

.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.outline-btn {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 26px;
  border: 1px solid #2f5fe3;
  border-radius: 999px;
  color: #2f5fe3;
  background: #fff;
  text-decoration: none !important;
  text-align: center;
}

/* =========================
   STRENGTH
========================= */
.top-strength {
  background: #fff;
}

.strength-problem-title {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.05rem;
  color: #2f3b4a;
  margin: 32px auto 28px;
  font-weight: 600;
}

.strength-problem-box {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px;
  background: #f8fbff;
  border: 1px solid #dbe5f0;
  border-radius: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.strength-problem-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.strength-card-head {
  background: #5a5a5a;
  color: #fff;
  text-align: center;
  padding: 16px;
  font-size: 1.05rem;
  font-weight: 600;
}

.strength-card-body {
  padding: 36px 28px;
}

.strength-icon {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
}

.strength-problem-card ul {
  padding-left: 1.2em;
  margin: 0;
}

.strength-problem-card li {
  line-height: 1.8;
  margin-bottom: 8px;
}

.top-arrow {
  width: 0;
  height: 0;
  margin: 60px auto;
  border-left: 80px solid transparent;
  border-right: 80px solid transparent;
  border-top: 40px solid #2f5fe3;
}

.optimize-block {
  text-align: center;
}

.optimize-block h3 {
  font-size: 1.8rem;
  margin-bottom: 40px;
  color: #2f3b4a;
}

.optimize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.optimize-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  border: 1px solid #e3e8f0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.optimize-head {
  background: #2f5fe3;
  color: #fff;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 700;
}

/* =========================
   SERVICE SHOWCASE
========================= */
.top-service,
.service-showcase {
  background: #eef7ff;
  overflow: hidden;
}

.service-tab-nav {
  max-width: 980px;
  margin: 0 auto 90px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: #fff;
  border-radius: 999px;
  overflow: hidden;
  box-shadow: 0 12px 32px rgba(28, 63, 158, 0.08);
}

.service-tab-nav a {
  padding: 18px 16px;
  text-align: center;
  color: #1f2937;
  font-size: 0.95rem;
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
  border-right: 1px solid #e5ecf7;
}

.service-tab-nav a:last-child {
  border-right: none;
}

.service-showcase-list {
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.service-showcase-item {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 80px;
  align-items: center;
}

.service-showcase-visual {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.service-showcase-visual::before {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  top: 50%;
  transform: translateY(-50%);
  width: 65vw;
  height: 320px;
  background: linear-gradient(135deg, #2f5fe3, #4aa3ff);
  z-index: 0;
}

.service-number {
  position: absolute;
  z-index: 1;
  left: 40px;
  top: 10px;
  font-size: 5rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.25);
}

.service-showcase-visual img {
  position: relative;
  z-index: 2;
  width: min(560px, 82%);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(28, 63, 158, 0.22);
}

.service-showcase-text {
  max-width: 460px;
}

.service-small-title {
  color: #1c3f9e;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 14px;
}

.service-showcase-text h3 {
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1.35;
  color: #2f3b4a;
  margin-bottom: 20px;
}

.service-showcase-text > p:not(.service-small-title) {
  color: #374151;
  line-height: 1.9;
  margin-bottom: 28px;
}

.service-showcase-text .outline-btn {
  margin-top: 0;
}

/* =========================
   REASON
========================= */
.top-reason {
  background: #fff;
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 60px;
}

.reason-card {
  text-align: center;
  padding: 36px 32px;
  border-left: 1px solid #cfd8ea;
}

.reason-card:first-child {
  border-left: none;
}

.reason-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #f1f6ff;
  color: #2f5fe3;
  font-size: 2rem;
  font-weight: 700;
}

.reason-card h3 {
  color: #2f5fe3;
  font-size: 1.15rem;
  line-height: 1.45;
  margin-bottom: 18px;
}

.reason-card p {
  text-align: left;
  color: #222;
  line-height: 1.9;
}

/* =========================
   USE CASE
========================= */
.top-usecase {
  background: #f7fbff;
}

.usecase-box {
  max-width: 900px;
  margin: 40px auto;
  border: 2px solid #2f5fe3;
  border-radius: 14px;
  padding: 48px 42px 36px;
  position: relative;
  background: #fff;
}

.usecase-title {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #2f5fe3, #4a7bff);
  color: #fff;
  padding: 12px 36px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 10px 24px rgba(47, 95, 227, 0.22);
}

.usecase-list {
  padding-left: 1.2em;
}

.usecase-list li {
  margin-bottom: 12px;
  line-height: 1.8;
}

.usecase-bottom {
  text-align: center;
  margin-top: 20px;
}

/* =========================
   NEWS
========================= */
.top-news {
  background: #fff;
}

.news-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.news-heading h2 {
  font-size: 2rem;
  color: #2f3b4a;
}

.news-list {
  list-style: none;
  padding: 0;
}

.news-list li {
  display: grid;
  grid-template-columns: 120px 100px 1fr;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #ddd;
}

.top-news .news-button-area {
  display: flex;
  justify-content: flex-end;
}

/* =========================
   CONTACT
========================= */
.top-contact {
  position: relative;
  background:
    linear-gradient(rgba(15, 35, 80, 0.72), rgba(15, 35, 80, 0.72)),
    url("/img/contact-bg.jpg") center / cover no-repeat;
  color: #fff;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-kicker {
  letter-spacing: 0.2em;
  font-size: 0.9rem;
}

.contact-card {
  background: #fff;
  color: #333;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
}

.contact-main-btn {
  display: inline-block;
  padding: 14px 28px;
  background: #2f5fe3;
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 16px;
  text-decoration: none !important;
}

/* =========================
   Footer link override
========================= */
footer .company-info a {
  color: rgba(255,255,255,0.9) !important;
  text-decoration: none !important;
}

footer .company-info a:hover {
  color: #6fd3e8 !important;
}

/* =========================
   SP
========================= */
@media (max-width: 768px) {
  section {
    padding: 60px 0;
  }

  .hero {
    padding: 96px 0 56px;
  }

  .hero-swiper {
    width: 100%;
    margin-left: 0;
    transform: none;
    overflow: visible;
  }

  .hero-swiper .swiper-slide {
    width: calc(100vw - 48px) !important;
    height: 460px !important;
    border-radius: 20px;
    overflow: hidden;
    background: #000;
    position: relative;
  }

  .hero-swiper .swiper-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block;
  }

  .hero-swiper .swiper-slide::after {
    display: block !important;
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.04) 0%,
      rgba(0, 0, 0, 0.2) 38%,
      rgba(0, 0, 0, 0.72) 100%
    );
    pointer-events: none;
  }

  .slide-text {
    position: absolute !important;
    left: 22px !important;
    right: 22px !important;
    bottom: 28px !important;
    padding: 0 !important;
    background: none !important;
    color: #fff !important;
    z-index: 2;
  }

  .slide-text h2 {
    font-size: clamp(1.18rem, 4.6vw, 1.42rem) !important;
    line-height: 1.35 !important;
    letter-spacing: -0.07em !important;
    margin-bottom: 10px;
    color: #fff !important;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.45);
    word-break: normal;
    overflow-wrap: normal;
  }

  .slide-text p {
    font-size: 0.9rem !important;
    line-height: 1.65 !important;
    margin-bottom: 16px;
    color: #fff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  }

  .slide-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center !important;
  }

  .slide-buttons .btn {
    width: 58% !important;
    max-width: 210px !important;
    min-width: 0 !important;
    padding: 10px 14px !important;
    border-radius: 999px;
    font-size: 0.88rem !important;
  }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none !important;
  }

  .hero-swiper .swiper-pagination {
    position: absolute !important;
    bottom: 12px !important;
    left: 0;
    width: 100%;
    z-index: 3;
  }

  .section-title {
    font-size: clamp(1.7rem, 7vw, 2.1rem);
  }

  .section-lead {
    text-align: left;
    line-height: 1.9;
  }

  .optimize-grid,
  .strength-problem-box,
  .service-showcase-item,
  .reason-grid,
  .news-layout,
  .contact-inner {
    grid-template-columns: 1fr !important;
  }

  .strength-problem-box {
    padding: 24px;
    gap: 20px;
  }

  .strength-card-body {
    padding: 26px 20px;
  }

  .optimize-grid {
    gap: 20px;
  }

  .service-tab-nav {
    grid-template-columns: 1fr !important;
    border-radius: 16px;
    margin-bottom: 48px;
  }

  .service-tab-nav a {
    padding: 16px;
    font-size: 0.95rem;
    white-space: normal;
    line-height: 1.5;
    border-right: none;
    border-bottom: 1px solid #e5ecf7;
  }

  .service-tab-nav a:last-child {
    border-bottom: none;
  }

  .service-showcase-list {
    gap: 56px;
  }

  .service-showcase-item {
    gap: 24px;
  }

  .service-showcase-visual {
    min-height: 240px;
    justify-content: center;
  }

  .service-showcase-visual::before {
    left: -20px;
    width: calc(100% + 40px);
    height: 200px;
  }

  .service-number {
    top: -14px;
    left: 20px;
    font-size: 3.5rem;
  }

  .service-showcase-visual img {
    width: 90%;
  }

  .service-showcase-text {
    max-width: 100%;
    text-align: left;
  }

  .service-showcase-text h3 {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .reason-grid {
    gap: 24px;
  }

  .reason-card {
    border-left: none;
    border-top: 1px solid #cfd8ea;
    padding: 28px 20px;
  }

  .reason-card:first-child {
    border-top: none;
  }

  .reason-card p {
    text-align: center;
  }

  .usecase-title {
    top: -22px;
    width: calc(100% - 48px);
    padding: 11px 18px;
    text-align: center;
    white-space: normal;
  }

  .usecase-box {
    padding: 56px 22px 28px;
  }

  .news-list li {
    grid-template-columns: 1fr;
  }

  .top-news .news-button-area {
    justify-content: flex-end;
  }
}