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

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

/* 背景装飾：CREAブルー */
.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内は横幅制限を外して左右チラ見せ */
.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* Swiper本体 */
.hero-swiper {
  width: 100vw;
  max-width: none;
  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;
  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 {
  color: #fff;
  font-size: clamp(1.8rem, 2.6vw, 2.8rem);
  line-height: 1.25;
  margin-bottom: 10px;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.65);
}

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

/* スライド内ボタン */
.slide-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.slide-buttons .btn {
  min-width: 170px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

.slide-buttons .btn-white {
  background: #2F5FE3;
  color: #fff;
}

.slide-buttons .btn-secondary {
  background: #00C2A8;
  color: #fff;
}

/* 矢印 */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: #2F5FE3;
  box-shadow: 0 10px 24px rgba(28, 63, 158, 0.22);
  z-index: 10;
}

.hero-swiper .swiper-button-prev::after,
.hero-swiper .swiper-button-next::after {
  font-size: 18px;
  font-weight: 700;
}

.hero-swiper .swiper-button-prev {
  left: 36px;
}

.hero-swiper .swiper-button-next {
  right: 36px;
}

/* ドット */
.hero-swiper .swiper-pagination {
  position: relative;
  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);
}

/* ===== Common Section Head ===== */
.section-head {
  text-align: center;
  margin-bottom: 36px;
}

.section-kicker {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  color: var(--dark);
  margin-bottom: 10px;
  border-bottom: none;
  padding-bottom: 0;
}

.section-lead {
  color: var(--gray);
  line-height: 1.8;
}

/* ===== 業界別入口セクション ===== */
.solutions-switch {
  padding: 90px 0;
  background: #fff;
}

.solutions-switch .section-title {
  text-align: center;
}

.solutions-switch .section-lead {
  text-align: center;
  margin-bottom: 44px;
}

.solutions-grid {
  display: grid;
  gap: 40px;
}

.solution-row {
  display: flex;
  align-items: center;
  gap: 40px;
  background: #fff;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.solution-row:nth-child(2) {
  flex-direction: row-reverse;
}

.solution-image,
.solution-content {
  flex: 1;
}

.solution-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.solution-content h3 {
  color: var(--dark);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.45;
  margin-bottom: 18px;
}

.solution-content p {
  line-height: 1.9;
  margin-bottom: 18px;
}

.solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.solution-tags li {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  line-height: 1;
  padding: 8px 14px;
  border-radius: 999px;
  background: #eef3ff;
  color: #3454d1;
  border: 1px solid #dbe5ff;
  white-space: nowrap;
}

.solution-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.95em 1.8em;
  border-radius: 999px;
  background: #2F5FE3;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.solution-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(47, 95, 227, 0.3);
  background: #1C3F9E;
  color: #fff;
}

/* ===== Value Intro ===== */
.value-intro {
  padding: 90px 0;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.value-flex {
  display: flex;
  gap: 60px;
  align-items: center;
}

.value-text {
  flex: 1.15;
}

.value-image {
  flex: 1;
}

.value-image img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  display: block;
}

.value-text h2 {
  color: var(--primary);
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 20px;
}

.value-text p {
  line-height: 1.9;
  margin-bottom: 20px;
}

.value-text ul {
  padding-left: 1.2em;
  margin-bottom: 28px;
}

.value-text li {
  line-height: 1.8;
  margin-bottom: 4px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Reasons ===== */
.reasons-section {
  padding: 90px 0;
  background: #fff;
}

.reasons-section .section-title {
  text-align: center;
  margin-bottom: 36px;
}

.reasons-list {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}

.reasons-list li {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 18px;
  padding: 22px 26px;
  line-height: 1.8;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.reasons-list strong {
  color: var(--primary);
}

/* ===== Client Logos ===== */
.logo-section {
  padding: 70px 0;
  background: #fff;
}

.logo-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.logo-card {
  min-height: 90px;
  border: 1px solid #e8edf5;
  border-radius: 16px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.logo-card img {
  max-width: 150px;
  max-height: 54px;
  object-fit: contain;
}

/* ===== Strength ===== */
.strength-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #f7fbff 0%, #fff 100%);
}

.strength-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
}

.problem-box,
.solution-box {
  background: #fff;
  border-radius: 20px;
  padding: 34px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.problem-box {
  border-left: 5px solid var(--secondary);
}

.solution-box {
  border-left: 5px solid var(--primary);
}

.problem-box h3,
.solution-box h3 {
  color: var(--dark);
  margin-bottom: 18px;
}

.check-list,
.problem-list {
  list-style: none;
  padding-left: 0;
}

.check-list li,
.problem-list li {
  position: relative;
  padding-left: 1.6em;
  margin-bottom: 12px;
  line-height: 1.8;
}

.problem-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 0.12em;
  width: 1.1em;
  height: 1.1em;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== Use Cases ===== */
.usecase-section {
  padding: 90px 0;
  background: linear-gradient(180deg, #fff 0%, #f7fbff 100%);
}

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

.usecase-card {
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.usecase-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
}

.usecase-card-body {
  padding: 24px;
}

.usecase-card h3 {
  color: var(--dark);
  margin-bottom: 10px;
}

/* ===== Bottom CTA ===== */
.bottom-cta {
  padding: 90px 0;
  background: linear-gradient(135deg, #2F5FE3, #4AA3FF);
  color: #fff;
  text-align: center;
}

.bottom-cta h2 {
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 16px;
}

.bottom-cta p {
  margin-bottom: 28px;
}

/* ===== Utility ===== */
.sp-only {
  display: none;
}

.pc-only {
  display: inline;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .hero-swiper .swiper-slide {
    width: 78vw;
    height: 480px;
  }

  .logo-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .strength-grid {
    grid-template-columns: 1fr;
  }

  .usecase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 96px 0 64px;
  }

  .hero::before {
    width: 260px;
    height: 700px;
    left: -160px;
  }

  .hero::after {
    width: 280px;
    height: 700px;
    right: -170px;
  }

  .hero-swiper .swiper-slide {
    width: 86vw;
    height: 420px;
    border-radius: 20px;
  }

  .slide-text {
    left: 22px;
    right: 22px;
    bottom: 26px;
  }

  .slide-text h2 {
    font-size: 1.5rem;
  }

  .slide-text p {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .slide-buttons {
    justify-content: flex-start;
  }

  .slide-buttons .btn {
    min-width: 150px;
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    width: 40px;
    height: 40px;
  }

  .hero-swiper .swiper-button-prev {
    left: 8px;
  }

  .hero-swiper .swiper-button-next {
    right: 8px;
  }

  .solutions-switch,
  .value-intro,
  .reasons-section,
  .logo-section,
  .strength-section,
  .usecase-section,
  .bottom-cta {
    padding: 64px 0;
  }

  .solutions-switch .container,
  .value-intro .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-title {
    font-size: 1.75rem;
    line-height: 1.45;
    word-break: keep-all;
  }

  .section-lead {
    font-size: 0.98rem;
  }

  .solution-row,
  .solution-row:nth-child(2) {
    flex-direction: column;
    gap: 18px;
    padding: 22px;
  }

  .solution-image,
  .solution-content {
    width: 100%;
  }

  .solution-image img {
    aspect-ratio: 16 / 9;
  }

  .solution-content h3 {
    font-size: 1.6rem;
  }

  .solution-tags {
    gap: 8px;
  }

  .solution-tags li {
    font-size: 0.8rem;
    padding: 7px 12px;
  }

  .solution-btn {
    font-size: 0.92rem;
    padding: 0.9em 1.3em;
  }

  .value-flex {
    flex-direction: column;
    gap: 28px;
  }

  .logo-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .problem-box,
  .solution-box {
    padding: 24px;
  }

  .sp-only {
    display: block;
  }

  .pc-only {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero-swiper .swiper-slide {
    height: 380px;
  }

  .slide-buttons .btn {
    width: 100%;
    min-width: auto;
  }

  .logo-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .logo-card {
    min-height: 72px;
    padding: 12px;
  }
}

/* =========================
   Hero arrow click fix
========================= */
.hero::before,
.hero::after {
  pointer-events: none !important;
}

.hero-content,
.hero-swiper {
  position: relative;
  z-index: 5;
}

.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  z-index: 999;
  pointer-events: auto !important;
}

.hero-swiper .swiper-button-next {
  right: 32px;
}

.hero-swiper .swiper-button-prev {
  left: 32px;
}


/* =========================
   下部セクション復旧
========================= */
main.container {
  padding-top: 80px;
  padding-bottom: 80px;
}

main.container section {
  margin-top: 80px;
  margin-bottom: 80px;
}

main.container h2 {
  font-size: clamp(1.8rem, 2.4vw, 2.4rem);
  color: var(--primary);
  margin-bottom: 1.5rem;
  padding-bottom: .5rem;
  border-bottom: 3px solid var(--primary);
}

.philosophy-box,
.creed-list li,
.sustainability-item {
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  box-shadow: 0 8px 24px rgba(0,0,0,.06);
}

.creed-list {
  list-style: none;
  padding-left: 0;
}

.creed-list li {
  margin-bottom: 16px;
  line-height: 1.8;
}

.message-container {
  display: flex;
  gap: 40px;
  background: #fff;
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,.06);
}

.message-image {
  flex: 0 0 320px;
}

.message-image img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 18px;
}

.message-content {
  flex: 1;
}

.ceo-title {
  color: var(--primary);
  font-weight: 700;
}

.ceo-name {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.message-motto {
  color: var(--primary);
  font-size: 1.6rem;
  margin: 24px 0;
}

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

.sustainability-item h3 {
  color: var(--primary);
  margin-bottom: 12px;
}


/* =========================
   Contact復旧
========================= */
.contact {
  padding: 90px 0;
  background: linear-gradient(135deg, #2F5FE3, #4AA3FF);
  color: #fff;
  text-align: center;
}

.contact h2 {
  color: #fff;
  border-bottom: none;
  padding-bottom: 0;
}

.contact p {
  color: #fff;
}


/* =========================
   SP調整
========================= */
@media (max-width: 768px) {
  main.container {
    padding-top: 48px;
    padding-bottom: 48px;
  }

  main.container section {
    margin-top: 56px;
    margin-bottom: 56px;
  }

  .message-container {
    flex-direction: column;
    padding: 24px;
  }

  .message-image {
    flex: none;
  }

  .message-image img {
    height: auto;
  }

  .sustainability-grid {
    grid-template-columns: 1fr;
  }

  .hero-swiper .swiper-button-next {
    right: 10px;
  }

  .hero-swiper .swiper-button-prev {
    left: 10px;
  }
}

/* スマホで透明レイヤーがクリックを邪魔しないようにする */
.menu-overlay {
  display: none;
  pointer-events: none;
}

.menu-overlay.active {
  display: block;
  pointer-events: auto;
}

/* Hero内のボタン・矢印を押せるようにする */
.hero-swiper,
.hero-swiper * {
  pointer-events: auto;
}

.hero::before,
.hero::after,
.hero-swiper .swiper-slide::after {
  pointer-events: none;
}

/* スマホのスワイプ反応を安定させる */
.hero-swiper {
  touch-action: pan-y;
}

.slide-buttons,
.slide-buttons a,
.swiper-button-prev,
.swiper-button-next,
.swiper-pagination {
  position: relative;
  z-index: 50;
}

/* =========================
   SP Hero fix
========================= */
@media (max-width: 768px) {
  .hero {
    padding: 72px 0 48px;
    overflow: hidden;
  }

  .hero-content {
    width: 100%;
    padding: 0;
    overflow: hidden;
  }

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

  .hero-swiper .swiper-slide {
    width: calc(100vw - 48px);
    height: 420px;
    border-radius: 20px;
    opacity: 0.35;
    transform: scale(0.94);
  }

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

  .slide-text {
    left: 24px;
    right: 24px;
    bottom: 28px;
  }

  .slide-text h2 {
    font-size: 1.45rem;
    line-height: 1.35;
  }

  .slide-text p {
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .slide-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .slide-buttons .btn {
    width: 100%;
    min-width: auto;
    padding: 12px 18px;
  }

  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    width: 42px;
    height: 42px;
    top: 50%;
  }

  .hero-swiper .swiper-button-prev {
    left: 8px;
  }

  .hero-swiper .swiper-button-next {
    right: 8px;
  }
}

/* =========================
   SP section title fix
========================= */
@media (max-width: 768px) {
  .solutions-switch {
    overflow: hidden;
  }

  .solutions-switch .section-title {
    max-width: calc(100vw - 40px);
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.65rem, 7vw, 2rem);
    line-height: 1.45;
    text-align: center;

    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .solutions-switch .section-lead {
    max-width: calc(100vw - 40px);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
  }
}
/* =========================
   SP最終調整：Hero矢印非表示＋見出しはみ出し修正
========================= */
@media (max-width: 768px) {
  .hero-swiper .swiper-button-prev,
  .hero-swiper .swiper-button-next {
    display: none !important;
  }

  .solutions-switch {
    overflow: hidden;
  }

  .solutions-switch .section-title {
    width: calc(100vw - 40px);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.45;
    text-align: center;
    letter-spacing: -0.03em;

    word-break: normal;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .solutions-switch .section-title br {
    display: none;
  }

  .solutions-switch .section-lead {
    width: calc(100vw - 40px);
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.95rem;
    line-height: 1.8;
    text-align: center;
  }
}

/* 見出しの変な改行防止 */
.solution-card h3 {
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}

.solution-card h3 {
  line-height: 1.4;
  letter-spacing: -0.01em;
}

/* Hero 矢印を完全非表示（PC含む） */
.hero-swiper .swiper-button-prev,
.hero-swiper .swiper-button-next {
  display: none !important;
}

.hero-swiper .swiper-slide:hover {
  transform: scale(1.02);
}

/* =========================
   ヘッダーだけ折り返し禁止
========================= */
@media (min-width: 769px) {
  header .nav-menu {
    flex-wrap: nowrap !important;
  }

  header .nav-menu li,
  header .nav-menu a {
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    flex-shrink: 0 !important;
  }

  header .nav-menu a {
    line-height: 1 !important;
  }
}