/* ============================================
   リクルート サブページ コンテンツ共通CSS
   全サブページで使用するコンポーネントスタイル
============================================ */

/* ========== セクション ========== */
.rct-section {
  margin-bottom: 60px;
}

.rct-section:last-child {
  margin-bottom: 0;
}

.rct-section__header {
  margin-bottom: 32px;
}

.rct-section__label {
  display: block;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary, #1a73e8);
  margin-bottom: 8px;
  font-weight: 600;
}

.rct-section__title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--color-text, #2c3e50);
  letter-spacing: 0.03em;
  line-height: 1.5;
  position: relative;
  padding-left: 16px;
  border-left: 4px solid var(--color-primary, #1a73e8);
}

.rct-section__title--center {
  text-align: center;
  border-left: none;
  padding-left: 0;
}

.rct-section__title--center::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--color-primary, #1a73e8);
  margin: 12px auto 0;
  border-radius: 2px;
}

.rct-section__desc {
  font-size: 1.5rem;
  line-height: 1.9;
  color: var(--color-text-light, #5a6d80);
  margin-top: 16px;
}

/* ========== リード文 ========== */
.rct-lead {
  font-size: 1.8rem;
  line-height: 2;
  color: var(--color-text, #2c3e50);
  text-align: center;
  margin-bottom: 48px;
  font-weight: 500;
}

.rct-lead__highlight {
  color: var(--color-primary, #1a73e8);
  font-weight: 700;
}

.rct-lead--compact {
  margin-bottom: 0;
}

/* ========== カードグリッド ========== */
.rct-cards {
  display: grid;
  gap: 24px;
}

.rct-cards--interview {
  gap: 32px;
}

.rct-cards--2col {
  grid-template-columns: repeat(2, 1fr);
}

.rct-cards--3col {
  grid-template-columns: repeat(3, 1fr);
}

.rct-cards--4col {
  grid-template-columns: repeat(4, 1fr);
}

.rct-card {
  background: #fff;
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: center;
}

.rct-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.rct-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(26,115,232,0.1) 0%, rgba(74,154,245,0.15) 100%);
  color: var(--color-primary, #1a73e8);
}

.rct-card__icon .material-symbols-outlined {
  font-size: 2.8rem;
}

.rct-card__title {
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--color-text, #2c3e50);
  margin-bottom: 8px;
}

.rct-card__text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--color-text-light, #5a6d80);
}

.rct-card__value {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--color-primary, #1a73e8);
  line-height: 1.2;
}

.rct-card__unit {
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--color-text-muted, #7a8d9e);
}

/* ========== テーブル（募集要項等） ========== */
.rct-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.rct-table caption {
  text-align: left;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text, #2c3e50);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--color-primary, #1a73e8);
  margin-bottom: 0;
}

.rct-table th,
.rct-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border-light, #e8eef5);
  text-align: left;
  vertical-align: top;
  line-height: 1.7;
}

.rct-table th {
  width: 180px;
  background: var(--color-bg-beige, #f6f9fc);
  font-weight: 600;
  color: var(--color-text, #2c3e50);
  white-space: nowrap;
}

.rct-table td {
  color: var(--color-text-light, #5a6d80);
}

/* ========== タイムライン（沿革） ========== */
.rct-timeline {
  position: relative;
  padding-left: 32px;
}

.rct-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 8px;
  width: 2px;
  background: var(--color-border, #dce6f0);
}

.rct-timeline__item {
  position: relative;
  padding-bottom: 32px;
}

.rct-timeline__item:last-child {
  padding-bottom: 0;
}

.rct-timeline__item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-primary, #1a73e8);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--color-primary, #1a73e8);
}

.rct-timeline__year {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary, #1a73e8);
  margin-bottom: 4px;
}

.rct-timeline__text {
  font-size: 1.5rem;
  line-height: 1.7;
  color: var(--color-text-light, #5a6d80);
}

/* ========== インタビューカード ========== */
.rct-interview-card {
  display: flex;
  gap: 24px;
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  transition: transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.rct-interview-card:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.rct-interview-card__photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-bg-beige, #f6f9fc);
}

.rct-interview-card__body {
  flex: 1;
}

.rct-interview-card__role {
  font-size: 1.2rem;
  color: var(--color-primary, #1a73e8);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.rct-interview-card__name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text, #2c3e50);
  margin-bottom: 8px;
}

.rct-interview-card__desc {
  font-size: 1.4rem;
  line-height: 1.7;
  color: var(--color-text-light, #5a6d80);
}

/* ========== フォーム ========== */
.rct-form {
  max-width: 700px;
  margin: 0 auto;
}

.rct-form__group {
  margin-bottom: 24px;
}

.rct-form__label {
  display: block;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--color-text, #2c3e50);
  margin-bottom: 8px;
}

.rct-form__required {
  display: inline-block;
  padding: 2px 8px;
  margin-left: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  background: var(--color-accent, #ff6d3f);
  border-radius: 3px;
  vertical-align: middle;
}

.rct-form__input,
.rct-form__select,
.rct-form__textarea {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.5rem;
  border: 1px solid var(--color-border, #dce6f0);
  border-radius: 8px;
  background: #fff;
  color: var(--color-text, #2c3e50);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.rct-form__input:focus,
.rct-form__select:focus,
.rct-form__textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1a73e8);
  box-shadow: 0 0 0 3px rgba(26,115,232,0.15);
}

.rct-form__textarea {
  min-height: 150px;
  resize: vertical;
}

.rct-form__note {
  font-size: 1.3rem;
  color: var(--color-text-muted, #7a8d9e);
  margin-top: 6px;
}

.rct-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
  margin: 32px auto 0;
  padding: 16px 32px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-accent, #ff6d3f);
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.3s ease;
}

.rct-form__submit:hover {
  background: #e55a2f;
  transform: translateY(-2px);
}

/* ========== ボタン ========== */
.rct-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1.5rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.rct-btn--primary {
  background: var(--color-primary, #1a73e8);
  color: #fff;
}

.rct-btn--primary:hover {
  background: var(--color-primary-light, #4a9af5);
  transform: translateY(-2px);
  opacity: 1;
}

.rct-btn--accent {
  background: var(--color-accent, #ff6d3f);
  color: #fff;
}

.rct-btn--accent:hover {
  background: #e55a2f;
  transform: translateY(-2px);
  opacity: 1;
}

.rct-btn--outline {
  background: transparent;
  color: var(--color-primary, #1a73e8);
  border: 2px solid var(--color-primary, #1a73e8);
}

.rct-btn--outline:hover {
  background: var(--color-primary, #1a73e8);
  color: #fff;
  opacity: 1;
}

/* ========== CTA セクション ========== */
.rct-section--cta {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* ========== 職種リンクグリッド ========== */
.rct-job-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.rct-job-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  color: var(--color-text, #2c3e50);
  font-size: 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
  border-left: 4px solid var(--color-primary, #1a73e8);
}

.rct-job-link:hover {
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  opacity: 1;
}

.rct-job-link .material-symbols-outlined {
  color: var(--color-primary, #1a73e8);
  font-size: 2rem;
}

/* ========== ニュースリスト ========== */
.rct-news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rct-news-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border-light, #e8eef5);
}

.rct-news-item:first-child {
  padding-top: 0;
}

.rct-news-date {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 1.3rem;
  color: var(--color-text-muted, #7a8d9e);
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 2px;
}

.rct-news-badge {
  display: inline-block;
  padding: 2px 10px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 3px;
  background: var(--color-primary, #1a73e8);
  color: #fff;
  white-space: nowrap;
  flex-shrink: 0;
}

.rct-news-title {
  font-size: 1.5rem;
  line-height: 1.6;
  color: var(--color-text, #2c3e50);
}

.rct-news-title a {
  color: inherit;
  text-decoration: none;
}

.rct-news-title a:hover {
  color: var(--color-primary, #1a73e8);
  opacity: 1;
}

/* ========== 注意書きボックス ========== */
.rct-note-box {
  padding: 24px;
  background: var(--color-bg-beige, #f6f9fc);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary, #1a73e8);
  margin-top: 32px;
}

.rct-note-box__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #2c3e50);
  margin-bottom: 8px;
}

.rct-note-box__text {
  font-size: 1.4rem;
  line-height: 1.8;
  color: var(--color-text-light, #5a6d80);
}

/* ========== ハイライトセクション (背景色付き) ========== */
.rct-highlight {
  background: var(--color-bg-beige, #f6f9fc);
  border-radius: 16px;
  padding: 48px 40px;
  margin-bottom: 48px;
}

/* ========== フローステップ ========== */
.rct-steps {
  display: flex;
  gap: 16px;
  counter-reset: step;
}

.rct-step {
  flex: 1;
  position: relative;
  text-align: center;
  padding: 32px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.rct-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 auto 12px;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  background: var(--color-primary, #1a73e8);
  border-radius: 50%;
}

.rct-step__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text, #2c3e50);
  margin-bottom: 8px;
}

.rct-step__text {
  font-size: 1.3rem;
  line-height: 1.7;
  color: var(--color-text-light, #5a6d80);
}

/* ========== 地図セクション ========== */
.rct-map {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 32px;
}

.rct-map iframe {
  width: 100%;
  height: 400px;
  border: 0;
}

/* ========== フォトギャラリー ========== */
.rct-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-block: 32px;
}

.rct-gallery--2col { grid-template-columns: 1fr; }
.rct-gallery--3col { grid-template-columns: 1fr; }

.rct-gallery__item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--color-bg-beige, #f6f9fc);
}

.rct-gallery__item--wide {
  grid-column: 1 / -1;
}

.rct-gallery__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.rct-gallery__item:hover .rct-gallery__img {
  transform: scale(1.03);
}

.rct-gallery__caption {
  position: absolute;
  inset-block-end: 0;
  inset-inline: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 1.2rem;
  line-height: 1.5;
  font-weight: 500;
}

/* フォトバナー（セクション間の画像ブレイク） */
.rct-photo-banner {
  position: relative;
  margin-block: 48px;
  border-radius: 16px;
  overflow: hidden;
}

.rct-photo-banner__img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}

.rct-photo-banner__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,115,232,0.25);
  padding: 20px;
}

.rct-photo-banner__text {
  color: #fff;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.4);
  letter-spacing: 0.05em;
}

/* ========== レスポンシブ Mobile First ========== */

/* Mobile base */
.rct-section {
  margin-bottom: clamp(2.5rem, 6vw, 3.75rem);
}

.rct-section__title {
  font-size: clamp(1.75rem, 4vw, 2.4rem);
}

.rct-lead {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.rct-cards--2col,
.rct-cards--3col,
.rct-cards--4col {
  grid-template-columns: 1fr;
}

.rct-table th,
.rct-table td {
  display: block;
  width: 100%;
  padding: 10px 16px;
}

.rct-table th {
  border-bottom: none;
  padding-bottom: 4px;
}

.rct-steps {
  flex-direction: column;
}

.rct-highlight {
  padding: clamp(2rem, 5vw, 3rem) clamp(1.25rem, 3vw, 2rem);
  border-radius: 12px;
}

.rct-job-links {
  grid-template-columns: 1fr;
}

.rct-news-item {
  flex-direction: column;
  gap: 8px;
}

.rct-map iframe {
  height: clamp(17.5rem, 40vw, 25rem);
}

.rct-card {
  padding: clamp(1.5rem, 4vw, 2rem) clamp(1rem, 3vw, 1.5rem);
}

.rct-card__value {
  font-size: clamp(2.25rem, 5vw, 3rem);
}

/* Tablet (768px+) */
@media (min-width: 768px) {
  .rct-gallery--2col,
  .rct-gallery { grid-template-columns: repeat(2, 1fr); }
  .rct-gallery--3col { grid-template-columns: repeat(2, 1fr); }

  .rct-cards--2col {
    grid-template-columns: repeat(2, 1fr);
  }

  .rct-cards--3col,
  .rct-cards--4col {
    grid-template-columns: repeat(2, 1fr);
  }

  .rct-table th,
  .rct-table td {
    display: table-cell;
    padding: 12px 16px;
  }

  .rct-table th {
    width: 140px;
    border-bottom: 1px solid var(--rct-border);
  }

  .rct-interview-card {
    flex-direction: row;
    text-align: left;
  }

  .rct-steps {
    flex-direction: row;
  }

  .rct-job-links {
    grid-template-columns: repeat(2, 1fr);
  }

  .rct-news-item {
    flex-direction: row;
  }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
  .rct-gallery--3col { grid-template-columns: repeat(3, 1fr); }

  .rct-cards--3col {
    grid-template-columns: repeat(3, 1fr);
  }

  .rct-cards--4col {
    grid-template-columns: repeat(4, 1fr);
  }

  .rct-table th {
    width: 180px;
  }
}
