/*
|---------------------------------------------------------------
| qinc2026-btob-services.css - BtoB サービスセクション共通
|   Section 02: BtoB EC定着化支援サービス
|   Section 03: UX/UI継続的改善サービス
|   カード/グリッドは miga-reasons と同一パターン
|---------------------------------------------------------------
*/

/* ==========================================================================
   Section Wrapper
   ========================================================================== */
.btob-service {
  padding: 120px 0;
}

.btob-service--bcart {
  background-color: #e6f0fc;
}

.btob-service--teichaku {
  background-color: #f0faff;
}

.btob-service--uxui {
  background-color: #e7f3fe;
}

/* ==========================================================================
   Section Heading (number + title with underline)
   ========================================================================== */
.btob-service__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  max-width: 1232px;
  margin: 0 auto;
  padding: 0 var(--container-padding-x) 32px;
  border-bottom: 2px solid var(--color-blue01, #020441);
}

.btob-service__num {
  font-family: "Oswald", sans-serif;
  font-size: 100px;
  font-weight: 700;
  color: #003176;
  opacity: 0.2;
  line-height: 1;
  white-space: nowrap;
}

.btob-service__num span {
  font-weight: 200;
  font-size: 60px;
}

.btob-service__heading-title {
  /* 48px @1920 → 28px @768 */
  font-size: clamp(28px, calc(14.63px + 1.74vw), 48px);
  font-weight: 900;
  color: var(--color-blue01, #020441);
  line-height: 1.2;
  margin: 0;
}

/* ==========================================================================
   Grid Layout (same as miga-reasons)
   ========================================================================== */
.btob-service__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 60px 62px;
  max-width: 1232px;
  margin: 72px auto 0;
  padding: 0 var(--container-padding-x);
}

/* Intro (top-left)
   ========================================================================== */
.btob-service__intro {
  grid-column: 1;
  grid-row: 1;
}

.btob-service__intro-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-blue01, #020441);
  margin: 0 0 32px;
  line-height: 1.5;
}

.btob-service__intro-text {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--color-blue01, #020441);
  margin: 0 0 24px;
}

.btob-service__intro-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   Cards (same as miga-reasons)
   ========================================================================== */
.btob-service__card {
  display: grid;
  grid-template-columns: 143px 1fr;
  grid-template-rows: auto 1fr;
  gap: 0 30px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.btob-service__card:hover {
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.btob-service__card--top-right {
  grid-column: 2;
  grid-row: 1;
}

.btob-service__card--bottom-left {
  grid-column: 1;
  grid-row: 2;
}

.btob-service__card--bottom-right {
  grid-column: 2;
  grid-row: 2;
}

/* Card Icon */
.btob-service__card-icon {
  grid-column: 1;
  grid-row: 1 / -1;
  width: 143px;
  height: 143px;
  background: #f7f7f9;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btob-service__card-icon img,
.btob-service__card-icon svg {
  width: 70%;
  height: auto;
  object-fit: contain;
}

/* Wide icon (~76% of container) */
.btob-service__card-icon--wide img,
.btob-service__card-icon--wide svg {
  width: 80%;
}

/* Full-width icon (fills container) */
.btob-service__card-icon--full img,
.btob-service__card-icon--full svg {
  width: 100%;
}

/* Card Title */
.btob-service__card-title {
  grid-column: 2;
  grid-row: 1;
  font-size: 18px;
  font-weight: 700;
  color: var(--color-blue01, #020441);
  margin: 5px 0 12px;
  line-height: 1.35;
}

/* Card List */
.btob-service__card-list {
  grid-column: 2;
  grid-row: 2;
  list-style: none;
  padding: 0;
  margin: 0;
  align-self: start;
}

.btob-service__card-list li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  font-weight: 350;
  line-height: 1.43;
  color: var(--color-blue01, #020441);
  margin-bottom: 10px;
}

.btob-service__card-list li:last-child {
  margin-bottom: 0;
}

.btob-service__card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1px;
  width: 21px;
  height: 19px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 21 19' fill='none'%3E%3Cg clip-path='url(%23a)'%3E%3Cpath d='M8.761 14.405a.07.07 0 01-.045-.019L2.666 8.197a.06.06 0 01-.018-.044c0-.017.005-.032.018-.044l1.784-1.824a.07.07 0 01.043-.019.07.07 0 01.042.018l4.225 4.321L19.112.019A.07.07 0 0119.155 0a.07.07 0 01.043.019l1.784 1.824a.06.06 0 01.018.044.06.06 0 01-.018.043L8.803 14.387a.07.07 0 01-.042.018z' fill='%230367A5'/%3E%3Cpath d='M16.894 7.78v8.506c0 .618-.49 1.12-1.095 1.12H2.653c-.604 0-1.095-.502-1.095-1.12V8.553a1.6 1.6 0 01-.065-.4c0-.137.023-.272.065-.399V2.84c0-.618.491-1.12 1.095-1.12h13.147l1.243-1.27A2.6 2.6 0 0115.799.127H2.653C1.19.128 0 1.345 0 2.84v13.446C0 17.782 1.19 19 2.653 19h13.146c1.463 0 2.653-1.217 2.653-2.714V6.187l-1.558 1.594z' fill='%23020441'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='a'%3E%3Crect width='21' height='19' fill='%23fff'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .btob-service {
    padding: 80px 0;
  }

  .btob-service__num {
    font-size: 72px;
  }

  .btob-service__num span {
    font-size: 44px;
  }

  .btob-service__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 32px;
  }

  .btob-service__intro {
    grid-column: 1;
    grid-row: 1;
  }

  .btob-service__card--top-right {
    grid-column: 1;
    grid-row: 2;
  }

  .btob-service__card--bottom-left {
    grid-column: 1;
    grid-row: 3;
  }

  .btob-service__card--bottom-right {
    grid-column: 1;
    grid-row: 4;
  }

  /* Card: switch to single-column with full-width icon strip */
  .btob-service__card {
    grid-template-columns: 1fr;
    gap: 16px 0;
  }

  .btob-service__card-icon {
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: auto;
    padding: 24px 0;
  }

  .btob-service__card-icon img,
  .btob-service__card-icon svg,
  .btob-service__card-icon--wide img,
  .btob-service__card-icon--wide svg,
  .btob-service__card-icon--full img,
  .btob-service__card-icon--full svg {
    width: auto;
    max-height: 100px;
  }

  .btob-service__card-title {
    grid-column: 1;
    grid-row: 2;
    margin: 0 0 8px;
  }

  .btob-service__card-list {
    grid-column: 1;
    grid-row: 3;
  }
}

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

  .btob-service__heading {
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
  }

  .btob-service__num {
    font-size: 56px;
  }

  .btob-service__num span {
    font-size: 34px;
  }

  .btob-service__intro-title {
    font-size: 18px;
  }

  .btob-service__intro-text {
    font-size: 14px;
  }

  .btob-service__grid {
    margin-top: 40px;
  }

  .btob-service__card {
    padding: 24px;
  }

  .btob-service__card-title {
    font-size: 16px;
  }

  .btob-service__card-list li {
    font-size: 13px;
  }
}
