/* ============================================================
   Solution Page — New Branding  (solution/solution.css)
   1440px design, 130px side padding = 1180px content width
   ============================================================ */

/* ---- Reset / scope ---- */
#container.sol-new {
  background: #fff;
  font-family: proxima-nova, 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', sans-serif;
  color: #111;
}

/* ---- Shared inner wrapper ---- */
.sol-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 130px;
  box-sizing: border-box;
}

/* ============================================================
   HERO
   white bg, illustration left (652×649), text right
   ============================================================ */
.sol-hero {
  background: #fff;
  overflow: hidden;
}
.sol-hero__row {
  display: flex;
  align-items: center;
  min-height: 649px;
}
.sol-hero__img {
  flex: 0 0 652px;
  width: 652px;
  height: 649px;
  margin-right: 56px;
}
.sol-hero__img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sol-hero__content {
  flex: 1;
}
.sol-hero__title {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.35;
  color: #111;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.sol-hero__desc {
  font-size: 18px;
  line-height: 1.85;
  color: #595959;
  margin: 0;
}
.sol-hero__desc + .sol-hero__desc {
  margin-top: 20px;
}

/* ============================================================
   4D SECTION
   bg #fbfbfb, centered layout
   ============================================================ */
.sol-4d {
  background: #fbfbfb;
  padding: 80px 0 88px;
}
.sol-4d__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 130px;
  box-sizing: border-box;
}
.sol-4d__head {
  text-align: center;
  margin-bottom: 48px;
}
.sol-4d__head h2 {
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0;
}
.sol-4d__icons {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-bottom: 48px;
}
.sol-4d__icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.sol-4d__icon-circle {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sol-4d__icon-circle img {
  display: block;
}
.sol-4d__icon-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.sol-4d__icon-en {
  font-family: proxima-nova, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #E60012;
}
.sol-4d__icon-jp {
  font-size: 14px;
  font-weight: 700;
  color: #111;
}
.sol-4d__video {
  max-width: 832px;
  margin: 0 auto;
}
.sol-4d__video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.sol-4d__video-wrap iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ============================================================
   SERVICE SECTIONS
   Each section: label → subtitle → desc → [panel + cards]
   ============================================================ */
.sol-section {
  background: #fff;
  padding: 75px 0;
}
.sol-section + .sol-section {
  border-top: 1px solid #f0f0f0;
}

.sol-section__inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 130px;
  box-sizing: border-box;
}

/* Section header text (above the panel+cards row) */
.sol-section__label {
  font-family: proxima-nova, sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #111;
  margin: 0 0 16px;
}
.sol-section__subtitle {
  font-size: 20px;
  font-weight: 700;
  color: #111;
  margin: 0 0 12px;
  line-height: 1.5;
}
.sol-section__desc {
  font-size: 18px;
  line-height: 1.85;
  color: #595959;
  margin: 0 0 40px;
  white-space: pre-line;
}

/* Panel + Cards row */
.sol-section__row {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  min-width: 0;
}

/* Colored panel (left, 558px wide) */
.sol-panel {
  flex: 0 0 558px;
  width: 558px;
  border-radius: 20px;
  overflow: hidden;
}
.sol-panel__img {
  width: 100%;
  height: auto;
  display: block;
}
.sol-panel__logo-enechange {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}
.sol-panel__logo-badge {
  height: 20px;
  width: auto;
  flex-shrink: 0;
}

/* Cards grid (right side) - カード幅はデザインどおり280px */
.sol-cards-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 280px);
  gap: 16px;
  align-content: start;
}

/* Carousel */
.sol-carousel {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
}
.sol-carousel__track {
  display: flex;
  transition: transform 0.4s ease;
}
.sol-carousel__slide {
  flex: 0 0 100%;
  min-width: 0;
}
/* カルーセル内グリッドは親幅に収める（右にはみ出し防止） */
.sol-carousel .sol-cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.sol-carousel .sol-card {
  width: 100%;
  min-width: 0;
  max-width: 280px;
}
.sol-carousel__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
}
.sol-carousel__prev,
.sol-carousel__next {
  width: 40px;
  height: 40px;
  border: 1px solid #d0d0d0;
  border-radius: 50%;
  background: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
}
.sol-carousel__prev:hover,
.sol-carousel__next:hover {
  background: #f5f5f5;
}
.sol-carousel__dots {
  display: flex;
  gap: 8px;
}
.sol-carousel__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #d0d0d0;
  cursor: pointer;
  padding: 0;
}
.sol-carousel__dot--active {
  background: #333;
}

/* Individual card (padding含めて280px) */
.sol-card {
  width: 280px;
  min-width: 280px;
  box-sizing: border-box;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  padding: 32px 16px 16px;
  min-height: 200px;
}
.sol-card__logo {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.sol-card__logo-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 56px;
  width: auto;
  object-fit: contain;
}
.sol-card__desc {
  font-size: 14px;
  line-height: 1.75;
  color: #595959;
  flex: 1;
  margin: 0 0 16px;
}
.sol-card__link {
  display: flex;
  justify-content: flex-end;
  margin-top: auto;
}
.sol-card__link a {
  font-family: proxima-nova, sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #111;
  text-decoration: none;
  border-bottom: 1.5px solid #E60012;
  padding-bottom: 2px;
  letter-spacing: 0.05em;
}
.sol-card__link a:hover {
  opacity: 0.75;
}

/* EV notice text */
.sol-ev-note {
  font-size: 14px;
  line-height: 1.75;
  color: #595959;
  margin-top: 24px;
}
.sol-ev-note a {
  color: #E60012;
  text-decoration: underline;
}

/* Utility expand button (SP only, hidden on PC) */
.sol-carousel__expand {
  display: none;
}

/* ============================================================
   MOBILE (max-width: 767px)
   SP design: 393px wide, 20px side padding
   ============================================================ */
@media (max-width: 767px) {

  /* ---- Shared inner wrapper ---- */
  .sol-inner,
  .sol-4d__inner,
  .sol-section__inner {
    padding: 0 20px;
  }

  /* ---- HERO ---- */
  .sol-hero__row {
    flex-direction: column;
    min-height: auto;
  }
  .sol-hero__img {
    flex: none;
    width: 100%;
    height: auto;
    margin: 0 0 24px;
  }
  .sol-hero__img img {
    height: auto;
  }
  .sol-hero__content {
    width: 100%;
  }
  .sol-hero__title {
    font-size: 28px;
    margin-bottom: 24px;
  }
  .sol-hero__desc {
    font-size: 16px;
  }

  /* ---- 4D SECTION ---- */
  .sol-4d {
    padding: 48px 0 40px;
  }
  .sol-4d__inner {
    padding: 0 20px;
  }
  .sol-4d__head {
    margin-bottom: 32px;
  }
  .sol-4d__head h2 {
    font-size: 22px;
  }
  .sol-4d__icons {
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-bottom: 32px;
  }
  .sol-4d__icon-item {
    width: calc(50% - 12px);
    gap: 8px;
  }
  .sol-4d__icon-circle {
    width: 56px;
    height: 56px;
  }
  .sol-4d__icon-circle img {
    transform: scale(0.583); /* 56/96 ≈ 0.583 */
  }
  .sol-4d__icon-en {
    font-size: 9px;
  }
  .sol-4d__icon-jp {
    font-size: 12px;
  }
  .sol-4d__video {
    max-width: 100%;
  }

  /* ---- SERVICE SECTIONS ---- */
  .sol-section {
    padding: 43px 0;
  }
  .sol-section__label {
    font-size: 22px;
    margin-bottom: 12px;
  }
  .sol-section__subtitle {
    font-size: 18px;
  }
  .sol-section__desc {
    font-size: 16px;
    margin-bottom: 24px;
  }

  /* Panel + Cards row → vertical stack */
  .sol-section__row {
    flex-direction: column;
    gap: 16px;
  }
  .sol-panel {
    flex: none;
    width: 100%;
    border-radius: 16px;
  }
  .sol-cards-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* ---- CAROUSEL → vertical stack on SP ---- */
  .sol-carousel {
    overflow: visible;
  }
  .sol-carousel__track {
    flex-direction: column;
    gap: 0;
    transform: none !important;
  }
  .sol-carousel__slide {
    flex: none;
    width: 100%;
  }
  .sol-carousel__slide:nth-child(n+2) {
    display: none;
  }
  .sol-carousel__slide.sol-carousel__slide--expanded {
    display: grid;
    margin-top: 12px;
  }
  .sol-carousel__nav {
    display: none;
  }
  .sol-carousel__expand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 16px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #595959;
    width: 100%;
    padding: 8px 0;
  }
  .sol-carousel__expand svg {
    transition: transform 0.3s;
  }
  .sol-carousel__expand--open svg {
    transform: rotate(180deg);
  }

  /* ---- CARDS ---- */
  .sol-card {
    width: 100%;
    min-width: 0;
    padding: 24px 16px 16px;
    min-height: auto;
    border-radius: 16px;
  }
}
