/**
 * 福利厚生 ページスタイル
 * recruit-benefits.css
 */

/* ========== 共通設定 ========== */
.recruit-benefits {
  background-color: transparent;
}

/* ========== 制度カードセクション ========== */
.rbe-benefits {
  padding: 30px 0 40px;
}

.rbe-benefits__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 100px;
}

.rbe-benefits__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

.rbe-benefits__card {
  display: flex;
  flex-direction: column;
  padding: 30px 30px;
  border-bottom: 1px solid #0064FF;
  position: relative;
}

.rbe-benefits__card:nth-child(odd)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 45px;
  bottom: 45px;
  width: 1px;
  background-color: #0064FF;
}

.rbe-benefits__card:nth-last-child(-n+2) {
  border-bottom: none;
}

.rbe-benefits__card-image {
  width: 100%;
  overflow: hidden;
}

.rbe-benefits__card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.rbe-benefits__card-body {
  padding: 20px 0 30px;
}

.rbe-benefits__card-text {
  font-family: var(--recruit-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
}

.rbe-benefits__card-note {
  font-family: var(--recruit-font-family);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-text);
  margin-top: 8px;
}

/* ========== 社内イベントセクション ========== */
.rbe-events {
  padding: 80px 0 0;
}

.rbe-events__header {
  max-width: 1280px;
  margin: 0 auto 50px;
  padding: 0 100px;
}

.rbe-events__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 100px;
}

.rbe-events__lead {
  font-family: var(--recruit-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 30px;
}

/* 全社会・社内懇親会 */
.rbe-events__items {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 100px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.rbe-events__photo {
  overflow: hidden;
  margin-bottom: 30px;
}

.rbe-events__photo img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  display: block;
}

.rbe-events__desc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}

.rbe-events__desc-icon {
  flex-shrink: 0;
}

.rbe-events__desc-title span {
  font-family: var(--recruit-font-family);
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  color: var(--recruit-primary);
}

.rbe-events__desc-text {
  font-family: var(--recruit-font-family);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  color: var(--color-text);
}

/* マーキー（無限スクロール） */
.rbe-events__marquee {
  padding: 40px 0;
  overflow: hidden;
  height: 420px;
  margin-bottom: 120px;
}

.rbe-events__marquee-track {
  display: flex;
  align-items: flex-start;
  gap: 25px;
  width: max-content;
  height: 100%;
  animation: rbe-marquee-scroll 50s linear infinite;
}

@keyframes rbe-marquee-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.rbe-events__marquee-item {
  flex-shrink: 0;
  overflow: hidden;
}

.rbe-events__marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* マーキーアイテムサイズ（10枚ループ） */
.rbe-events__marquee-item:nth-child(10n+1) {
  width: 340px;
  height: 340px;
  margin-top: 20px;
}

.rbe-events__marquee-item:nth-child(10n+2) {
  width: 170px;
  height: 170px;
  margin-top: 140px;
}

.rbe-events__marquee-item:nth-child(10n+3) {
  width: 280px;
  height: 280px;
  margin-top: 80px;
}

.rbe-events__marquee-item:nth-child(10n+4) {
  width: 200px;
  height: 200px;
  margin-top: 10px;
}

.rbe-events__marquee-item:nth-child(10n+5) {
  width: 320px;
  height: 320px;
  margin-top: 60px;
}

.rbe-events__marquee-item:nth-child(10n+6) {
  width: 180px;
  height: 180px;
  margin-top: 120px;
}

.rbe-events__marquee-item:nth-child(10n+7) {
  width: 150px;
  height: 210px;
  margin-top: 35px;
}

.rbe-events__marquee-item:nth-child(10n+8) {
  width: 300px;
  height: 260px;
  margin-top: 160px;
}

.rbe-events__marquee-item:nth-child(10n+9) {
  width: 220px;
  height: 240px;
  margin-top: 100px;
}

.rbe-events__marquee-item:nth-child(10n+10) {
  width: 260px;
  height: 300px;
  margin-top: 50px;
}

/* ========== レスポンシブ（タブレット） ========== */
@media (max-width: 1023px) {
  .rbe-benefits {
    padding: 80px 0 60px;
  }

  .rbe-benefits__inner {
    padding: 0 50px;
  }

  .rbe-benefits__grid {
    gap: 20px;
  }

  .rbe-benefits__card-body {
    padding: 16px 0 20px;
  }

  .rbe-events {
    padding: 60px 0 0;
  }

  .rbe-events__header {
    margin-bottom: 40px;
    padding: 0 50px;
  }

  .rbe-events__inner {
    padding: 0 50px;
  }

  .rbe-events__lead {
    margin-bottom: 40px;
  }

  .rbe-events__items {
    padding: 0 50px 50px;
    gap: 20px;
  }

  .rbe-events__photo img {
    height: 280px;
  }

  .rbe-events__desc-title span {
    font-size: 26px;
  }

  .rbe-events__marquee {
    height: 350px;
    padding: 30px 0;
  }

  .rbe-events__marquee-item:nth-child(10n+1) { width: 260px; height: 260px; margin-top: 15px; }
  .rbe-events__marquee-item:nth-child(10n+2) { width: 130px; height: 130px; margin-top: 110px; }
  .rbe-events__marquee-item:nth-child(10n+3) { width: 220px; height: 220px; margin-top: 60px; }
  .rbe-events__marquee-item:nth-child(10n+4) { width: 160px; height: 160px; margin-top: 8px; }
  .rbe-events__marquee-item:nth-child(10n+5) { width: 250px; height: 250px; margin-top: 45px; }
  .rbe-events__marquee-item:nth-child(10n+6) { width: 140px; height: 140px; margin-top: 90px; }
  .rbe-events__marquee-item:nth-child(10n+7) { width: 120px; height: 165px; margin-top: 25px; }
  .rbe-events__marquee-item:nth-child(10n+8) { width: 230px; height: 200px; margin-top: 130px; }
  .rbe-events__marquee-item:nth-child(10n+9) { width: 170px; height: 185px; margin-top: 75px; }
  .rbe-events__marquee-item:nth-child(10n+10) { width: 200px; height: 230px; margin-top: 40px; }
}

/* ========== レスポンシブ（スマートフォン） ========== */
@media (max-width: 767px) {
  .rbe-benefits {
    padding: 60px 0 40px;
  }

  .rbe-benefits__inner {
    padding: 0 20px;
  }

  .rbe-benefits__grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .rbe-benefits__card {
    padding: 15px 0;
  }

  .rbe-benefits__card:nth-child(odd)::after {
    display: none;
  }

  .rbe-benefits__card:nth-last-child(-n+2) {
    border-bottom: 1px solid #0064FF;
  }

  .rbe-benefits__card:last-child {
    border-bottom: none;
  }

  .rbe-benefits__card-body {
    padding: 12px 0 20px;
  }

  .rbe-benefits__card-text {
    font-size: 14px;
  }

  .rbe-benefits__card-note {
    font-size: 12px;
  }

  .rbe-events {
    padding: 40px 0 0;
  }

  .rbe-events__header {
    margin-bottom: 30px;
    padding: 0 20px;
  }

  .rbe-events__inner {
    padding: 0 20px;
  }

  .rbe-events__lead {
    font-size: 14px;
    margin-bottom: 30px;
  }

  .rbe-events__lead br {
    display: none;
  }

  .rbe-events__items {
    padding: 0 20px 40px;
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .rbe-events__photo img {
    height: 220px;
  }

  .rbe-events__desc-title span {
    font-size: 24px;
  }

  .rbe-events__desc-text {
    font-size: 14px;
  }

  .rbe-events__marquee {
    height: 300px;
    padding: 20px 0;
  }

  .rbe-events__marquee-item:nth-child(10n+1) { width: 200px; height: 200px; margin-top: 10px; }
  .rbe-events__marquee-item:nth-child(10n+2) { width: 110px; height: 110px; margin-top: 80px; }
  .rbe-events__marquee-item:nth-child(10n+3) { width: 180px; height: 180px; margin-top: 50px; }
  .rbe-events__marquee-item:nth-child(10n+4) { width: 130px; height: 130px; margin-top: 5px; }
  .rbe-events__marquee-item:nth-child(10n+5) { width: 190px; height: 190px; margin-top: 40px; }
  .rbe-events__marquee-item:nth-child(10n+6) { width: 120px; height: 120px; margin-top: 70px; }
  .rbe-events__marquee-item:nth-child(10n+7) { width: 100px; height: 140px; margin-top: 20px; }
  .rbe-events__marquee-item:nth-child(10n+8) { width: 170px; height: 155px; margin-top: 95px; }
  .rbe-events__marquee-item:nth-child(10n+9) { width: 140px; height: 150px; margin-top: 55px; }
  .rbe-events__marquee-item:nth-child(10n+10) { width: 160px; height: 175px; margin-top: 30px; }
}
