/* ========================================================================
   Benefit Card Component (Benefits Page)
   ======================================================================== */

/* グリッド内のカードを均等な高さに（福利厚生ページ専用） */
.grid-2 > .card {
  height: 330px;
  display: flex;
  flex-direction: column;
}

/* トップページの社員の声セクション: カード高さをautoに */
#voices .grid-2 > .card {
  height: auto;
}

@media (max-width: 768px) {
  .grid-2 > .card {
    height: auto;
  }
}

.grid-2 > .card .box--padding-md {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* カードの上下パディングを削減 */
.card .box--padding-md {
  padding: 12px 16px;
}

/* SP表示ではさらに縮小 */
@media (max-width: 768px) {
  .card .box--padding-md {
    padding: 10px 12px;
  }
}

.benefit-card-icon {
  font-size: 3.5rem;
  color: var(--color-blue);
  margin-bottom: 6px;
  margin-top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.benefit-card-icon img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.benefit-card-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-text-dark);
  margin-bottom: 6px;
}

.benefit-card-text {
  color: var(--color-text-light);
  line-height: 1.8;
  font-size: 0.9rem;
  padding: 0 8px;
  margin-bottom: 0;
}

.benefit-card-text strong {
  color: var(--color-blue);
  font-weight: 700;
  display: inline-block;
}

/* ========================================================================
   Benefit Detail Component (Benefits Page - Zigzag Sections)
   ======================================================================== */

.benefit-detail-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: var(--color-blue);
  margin-bottom: 24px;
  font-weight: 300;
}

.benefit-detail-text {
  color: var(--color-text-dark);
  line-height: 1.8;
  margin-bottom: 24px;
}

.benefit-detail-list {
  list-style: none;
  padding: 0;
}

.benefit-detail-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--color-border-light);
  color: var(--color-text-dark);
}

.benefit-detail-item:last-child {
  border-bottom: none;
}

.benefit-detail-label {
  font-weight: bold;
}

/* ========================================================================
   Vacation Box Component (Benefits Page)
   ======================================================================== */

.vacation-box {
  background-color: var(--color-white);
  padding: 40px;
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.vacation-box h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--color-blue);
  margin-bottom: 24px;
}

.vacation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.vacation-stat__number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--color-blue);
  margin-bottom: 8px;
}

.vacation-stat__label {
  font-size: 0.875rem;
  color: var(--color-text-light);
}

.vacation-list {
  list-style: none;
  padding: 0;
}

.vacation-list-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.vacation-list-item:last-child {
  border-bottom: none;
}

.vacation-list-item__label {
  color: var(--color-text-dark);
  font-weight: bold;
}

.vacation-list-item__value {
  color: var(--color-text-light);
}

/* 募集職種一覧グリッド */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 360px);
  gap: 32px;
  justify-content: start;
}

.jobs-grid .card {
  max-width: 360px;
}

/* レスポンシブ: モバイル */
@media (max-width: 768px) {
  .jobs-grid {
    grid-template-columns: 1fr;
    justify-content: center;
  }

  .jobs-grid .card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }

  /* 年間休日セクションをセンタリング */
  .vacation-box {
    text-align: center;
  }

  .vacation-grid {
    justify-items: center;
  }

  .vacation-stat__number,
  .vacation-stat__label {
    text-align: center;
  }
}
