/**
 * CSS File: rc-environment.css
 * 2026-05-13 | Final checked
 */

.l-rec-car-environment-section {
  background-color: #fce7cf;
}

.p-rec-car-environment__pc-layout {
  display: none;
}

.p-rec-car-environment__sp-layout {
  display: block;
}

.career-carousel {
  position: relative;
  padding: 0 10px;
}

.career-carousel-container {
  overflow: hidden;
}

.career-carousel-track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  transition: transform 0.5s ease-in-out;
}

.career-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.p-rec-car-environment-item__img-unit {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto 16px;
}

.p-rec-car-environment-item__img-box {
  aspect-ratio: 2 / 3;
  border-radius: 12px;
  overflow: hidden;
}

.p-rec-car-environment-item__img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.c-rec-car-step-badge {
  display: none;
}

.p-rec-car-environment-item__title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.4;
  min-height: 2.8em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.p-rec-car-environment-item__text {
  font-size: 0.75rem;
  color: #666;
  text-align: center;
  line-height: 1.6;
}

.c-carousel-arrow {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  z-index: 1;
}

.career-carousel-prev {
  left: -10px;
}

.career-carousel-next {
  right: -10px;
}

.c-carousel-arrow svg {
  width: 20px;
  color: #666;
}

.career-carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.career-carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  border: none;
  cursor: pointer;
}

.career-carousel-indicator.is-active {
  background: #c98c4b;
}

.p-rec-car-job-detail {
  margin-top: 40px;
  width: 100%;
}

.p-rec-car-job-detail__main-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.p-rec-car-job-detail__table-wrapper {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.p-rec-car-job-detail__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.p-rec-car-job-detail__table th {
  background-color: #f4f6f9;
  color: #333;
  font-weight: 700;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid #eef1f5;
}

.p-rec-car-job-detail__table td {
  padding: 16px;
  border-bottom: 1px solid #eef1f5;
  color: #444;
  vertical-align: middle;
}

.p-rec-car-job-detail__table tr:last-child td {
  border-bottom: none;
}

.p-rec-car-job-detail__type {
  font-weight: 700;
  color: #222;
  white-space: nowrap;
}

.p-rec-car-job-detail__content {
  color: #555;
}

@media screen and (min-width: 768px) {
  .p-rec-car-environment__pc-layout {
    display: block;
    width: 100%;
    position: relative;
  }

  .p-rec-car-environment__sp-layout {
    display: none;
  }

  .p-rec-car-environment__grid {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    overflow-x: auto;
    padding: 10px 15px 30px;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(201, 140, 75, 0.6) rgba(0, 0, 0, 0.05);
  }

  .p-rec-car-environment__grid::-webkit-scrollbar {
    height: 6px;
    display: block;
  }

  .p-rec-car-environment__grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
  }

  .p-rec-car-environment__grid::-webkit-scrollbar-thumb {
    background: rgba(201, 140, 75, 0.6);
    border-radius: 10px;
  }

  .p-rec-car-environment-item {
    flex: 0 0 auto;
    width: 220px;
    max-width: 80vw;
  }

  .p-rec-car-environment-item__text {
    text-align: left;
  }

  .p-rec-car-environment-item__image {
    transition: filter 0.3s ease;
  }

  .p-rec-car-environment-item:hover .p-rec-car-environment-item__image {
    filter: drop-shadow(0 10px 15px rgba(201, 140, 75, 0.3));
  }

  .p-rec-car-job-detail {
    margin-top: 60px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }

  .p-rec-car-job-detail__main-title {
    font-size: 1.375rem;
    margin-bottom: 30px;
  }

  .p-rec-car-job-detail__table-wrapper {
    padding: 24px 32px;
  }

  .p-rec-car-job-detail__table {
    font-size: 0.9375rem;
  }

  .p-rec-car-job-detail__table th {
    padding: 16px 24px;
  }

  .p-rec-car-job-detail__table td {
    padding: 20px 24px;
  }

  .p-rec-car-job-detail__table th:nth-child(1),
  .p-rec-car-job-detail__table td:nth-child(1) {
    width: 30%;
  }

  @media (min-width: 1024px) {
    .p-rec-car-environment__grid {
      justify-content: center;
      padding: 0;
      max-width: 1160px;
      margin: 0 auto;
      overflow: visible;
    }

    .p-rec-car-environment__grid::-webkit-scrollbar {
      display: none;
    }

    .p-rec-car-environment-item {
      flex: 1;
      max-width: 280px;
      text-align: center;
    }

    .p-rec-car-environment-item__title {
      font-size: 1rem;
      padding: 0 10px;
    }

    .p-rec-car-environment-item__text {
      font-size: 0.8125rem;
      max-width: 260px;
      margin: 0 auto;
      text-align: center;
    }

    .p-rec-car-environment-item__img-unit {
      max-width: 260px;
      margin: 0 auto 20px;
    }
  }

  @media (max-height: 500px) and (orientation: landscape) {
    .p-rec-car-environment__container {
      max-width: 100%;
      padding-left: 0;
      padding-right: 0;
    }

    .p-rec-car-environment-item {
      width: 180px;
    }

    .p-rec-car-environment__pc-layout::after {
      content: "SCROLL ➔";
      position: absolute;
      bottom: 2px;
      right: 15px;
      font-size: 0.625rem;
      font-weight: bold;
      color: #c98c4b;
      animation: scroll-hint 1.5s infinite;
      pointer-events: none;
    }

    .p-rec-car-environment-item__img-unit {
      max-width: 90px;
      margin: 0 auto 5px;
    }

    .p-rec-car-environment-item__img-box {
      aspect-ratio: 1 / 1;
    }

    .p-rec-car-environment-item__title {
      font-size: 0.6875rem;
      line-height: 1.3;
      min-height: auto;
    }

    .p-rec-car-environment-item__text {
      font-size: 0.625rem;
      padding: 0 10px;
      -webkit-line-clamp: 2;
      display: -webkit-box;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }
  }
}

@media screen and (max-width: 767px) {
  .p-rec-car-job-detail__table th,
  .p-rec-car-job-detail__table td {
    padding: 12px 10px;
    font-size: 0.75rem;
  }

  .p-rec-car-job-detail__type {
    white-space: normal;
    word-break: break-all;
  }
}

@keyframes scroll-hint {
  0% {
    transform: translateX(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(5px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 0.5;
  }
}
