/* LP: マインドバディについて (about-service) */

.row-2 {
  align-items: center;
}

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 24px 0;
}

/* Flow */
.flow__steps {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: center;
  gap: 16px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
}

.flow-step__icon {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
}

.flow-step__img {
  width: 120px;
  height: 120px;
  object-fit: contain;
}

.flow-step__title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  text-align: center;
}

.flow-step__title--split {
  font-size: 16px;
}

.flow-step__title-main {
  font-size: 16px;
}

.flow-step__title-sub {
  font-size: 14px;
}

.flow-step__text {
  width: 100%;
}

.flow-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  text-align: left;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  align-self: center;
  min-height: 120px;
}

.flow-arrow--sp {
  display: none;
}

.flow-arrow--pc img {
  width: 18px;
  height: 15px;
}

.flow-arrow--sp img {
  width: 15px;
  height: 18px;
  transform: rotate(90deg);
}

/* Plans */
.plan-cards {
  display: grid;
  gap: 40px;
  padding: 24px 0;
}

.plan__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan--panic .plan__grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.mini {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--color-card-border);
  border-radius: 16px;
}

.mini__info {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.mini__thumb {
  position: relative;
  width: 170px;
  max-width: 100%;
  flex-shrink: 0;
}

.mini__thumb img {
  display: block;
  width: 170px;
  max-width: 100%;
  height: 121px;
  object-fit: cover;
}

.mini__name {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
  text-align: center;
  width: 100%;
}

.mini__count {
  margin: 0;
  margin-top: auto;
  padding-top: 8px;
  font-size: 16px;
  line-height: 1.4;
  text-align: center;
  flex-shrink: 0;
}

/* Skills grid */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 64px 0;
}

.skill {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  background: var(--color-white);
  border: 1px solid var(--color-card-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.skill__icon {
  width: 120px;
  height: 86px;
  flex-shrink: 0;
  position: relative;
}

.skill__img {
  width: 120px;
  height: 86px;
  object-fit: cover;
  display: block;
}

.skill__name {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--color-primary);
}

.skill__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
}

/* AI card */
.ai {
  width: 320px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 24px;
}

.ai__media {
  width: 205px;
  height: 205px;
}

.ai__media img {
  width: 205px;
  height: 205px;
  object-fit: cover;
}

.ai__badge {
  position: absolute;
  left: 19px;
  bottom: 27px;
  height: 31px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}

/* CTA */
.cta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px;
  border-radius: var(--radius-card);
  overflow: hidden;
  color: var(--color-white);
  background: linear-gradient(133.25deg, rgb(47, 165, 123) 0.45%, rgb(60, 176, 168) 100%);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/bg-cta.webp") top left / 298px 210px;
  mix-blend-mode: color-burn;
  opacity: 0.16;
  pointer-events: none;
  border-radius: inherit;
}

.cta__art {
  position: relative;
  z-index: 1;
  width: 380px;
  height: 245px;
  flex-shrink: 0;
}

.cta__img {
  position: absolute;
  left: 0;
  top: 0;
  width: 349px;
  height: 228px;
  object-fit: cover;
}

.cta__img--small {
  left: 283px;
  top: 45px;
  width: 97px;
  height: 197px;
}

.cta__content {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cta__headline {
  margin: 0;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.4;
}

.cta__headline__money,
.cta__money {
  font-family: var(--font-dm);
  font-weight: 500;
  font-size: 1.5em;
}

.cta__headline__big,
.cta__big,
.cta__date {
  font-size: 1.5em;
  letter-spacing: 0.1em;
}

.cta__highlight {
  color: #ffe262;
}

.cta__text {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}

.cta .cta__btn {
  align-self: flex-start;
  width: fit-content;
  max-width: 100%;
  padding: 12px 24px;
  background: #ea9d3a;
  color: #ffffff;
  font-size: 18px;
  font-weight: 500;
  box-sizing: border-box;
}

.cta .cta__btn:hover {
  filter: brightness(0.95);
}

@media (max-width: 768px) {
  .cta {
    flex-direction: column;
    align-items: stretch;
    gap: 48px;
    padding: 40px 24px;
  }

  .cta__art {
    width: 100%;
    height: auto;
    aspect-ratio: 1744 / 1113;
  }

  .cta__img {
    width: 91.74%;
    height: auto;
    top: 0;
    left: 0;
  }

  .cta__img--small {
    left: auto;
    right: 0;
    top: 35px;
    width: 25.52%;
    height: auto;
  }

  .cta__headline,
  .cta__text {
    text-align: center;
  }

  .cta__content {
    align-items: center;
  }

  .btn-cta,
  .cta .cta__btn {
    align-self: center;
    width: 100%;
  }

  .row-2 {
    flex-direction: column-reverse;
    align-items: stretch;
    gap: 24px;
  }

  .row-2__aside.ai-card {
    width: 100%;
  }

  .ai {
    width: 100%;
    height: auto;
  }

  .ai__badge {
    left: 18px;
    bottom: 18px;
  }
}

@media (max-width: 1100px) {
  .skill-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px 0;
  }

  .skill {
    padding: 16px;
  }

  .skill__name {
    font-size: 16px;
  }

  .plan__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    align-items: stretch;
  }

  .plan--panic .plan__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .mini {
    width: auto;
    min-width: 0;
  }

  .plan--depression .mini,
  .plan--panic .mini {
    padding: 8px;
  }

  .mini__info {
    gap: 4px;
  }

  .mini__name {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(1.4em * 2);
  }

  .mini__count {
    padding-top: 4px;
  }

  .mini__thumb {
    width: 100%;
    aspect-ratio: 841 / 601;
    height: auto;
  }

  .mini__thumb .mini__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .flow__steps {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }

  .flow-step {
    flex: 0 1 auto;
    width: 100%;
  }

  .flow-arrow {
    min-height: 0;
  }

  .flow-arrow--pc {
    display: none;
  }

  .flow-arrow--sp {
    display: flex;
  }
}

@media (max-width: 640px) {
  .cards-2 {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 16px 0;
  }

  .plan__grid,
  .plan--panic .plan__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
