/**
 * CSS File: business.css
 * 2026-06-16 | Final checked
 */

.l-business-section {
  background-color: #f9f1e5;
}

.p-business-slider {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  width: calc(100% - 40px);
}

.p-business-slider__viewport {
  overflow: hidden;
  border-radius: 20px;
}

.p-business-slider__container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.p-business-slide {
  flex: 0 0 100%;
  padding: 5px 10px;
  box-sizing: border-box;
}

.p-business-slide__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.p-business-slide__image-wrap {
  width: 240px;
  max-width: 100%;
  height: 240px;
  flex-shrink: 0;
}

.p-business-slide__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  filter: drop-shadow(5px 5px 5px #aaa);
}

.p-business-slide__content {
  text-align: center;
  width: 100%;
  height: auto;
}

.p-business-slide__title {
  font-size: 1.25rem;
  color: #555;
  margin-bottom: 10px;
  font-weight: bold;
}

.p-business-slide__desc {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  padding: 15px;
  text-align: left;
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.85);
  box-sizing: border-box;
}

.p-business-slider__nav {
  position: absolute;
  top: 120px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  border: none;
  z-index: 10;
}

.p-business-slider__nav svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: #555;
  stroke-width: 2;
}

.p-business-slider__nav--prev {
  left: -15px;
}

.p-business-slider__nav--next {
  right: -15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.p-business-nav {
  display: none;
}

@media screen and (min-width: 768px) {
  .p-business-slider {
    margin: 0 auto;
    width: calc(100% - 120px);
  }

  .p-business-slider__nav {
    top: 50%;
  }

  .p-business-slide__inner {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 30px;
  }

  .p-business-slide__image-wrap {
    width: 45%;
    max-width: 520px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .p-business-slide__content {
    text-align: left;
    flex: 1;
    min-width: 0;
  }

  .p-business-slide__title {
    font-size: 1.875rem;
  }

  .p-business-slide__desc {
    font-size: 1.1rem;
  }

  .p-business-slider__nav {
    width: 44px;
    height: 44px;
  }

  .p-business-slider__nav--prev {
    left: -44px;
  }

  .p-business-slider__nav--next {
    right: -44px;
  }

  .p-business-slider__nav--next:hover {
    box-shadow: 0 0 15px 4px rgba(124, 58, 237, 0.2);
    background-color: #ffffff;
  }

  .p-business-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
  }

  .p-business-nav__item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 8px;
    background: #eee6dc;
    color: #555;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  }

  .p-business-nav__item:hover:not(.is-active) {
    background: #e5dcd0;
    color: #7c3aed;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(124, 58, 237, 0.15);
  }

  .p-business-nav__item.is-active {
    background: #7c3aed;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(124, 58, 237, 0.3);
  }
}

@media screen and (max-height: 500px) and (orientation: landscape) {
  .l-data-section {
    padding-bottom: 100px;
  }
  .p-data-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .p-data-card {
    padding: 12px;
  }
  .p-data-card__icon {
    width: 80px;
    height: 80px;
  }
  .p-data-card__value {
    font-size: 1.75rem;
  }
  .p-data-card__label {
    font-size: 1rem;
  }
}
