/* ==========================================================================
   採用情報ページ — design/Recruit.dc.html
   ========================================================================== */

/* --- 01 SPECIAL ---------------------------------------------------------
   写真を背景に敷き、オフホワイトを不透明度80%で重ねる。
   80%より下げると本文16pxの可読性が落ちる（写真の暗部と重なるため）。 */
.rc-special {
  position: relative;
  padding: clamp(56px, 10vw, 180px) clamp(20px, 8vw, 100px);
  overflow: hidden;
}
/* 敷き込みは components.css の .fill-photo。ここでは出し分けだけ持つ */
.rc-special__photo--sp { display: none; }
.rc-special__veil { position: absolute; inset: 0; background: rgba(247, 247, 245, .8); }
.rc-special__body { position: relative; z-index: 2; }

.rc-special__h2 {
  font-family: var(--f-head);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(34px, 8vw, 72px);
  line-height: 1.3;
  color: var(--c-navy);
  margin: 0 0 24px;
  max-width: 1100px;
}
.rc-special p { max-width: 820px; }
.rc-p--lead  { font-size: clamp(16px, 3.5vw, 19px); font-weight: 700; line-height: 1.8; color: var(--c-navy); margin: 0 0 36px; }
.rc-p--body  { font-size: 16px; line-height: 2.1; color: var(--c-text); margin: 0 0 28px; }
.rc-p--punch {
  font-family: var(--f-head);
  font-size: clamp(20px, 4.5vw, 26px);
  font-weight: 900;
  font-style: italic;
  color: var(--c-navy);
  line-height: 1.6;
  margin: 0 0 32px;
}
.rc-p--close { font-size: 18px; font-weight: 700; line-height: 1.9; color: var(--c-navy); margin: 0; }

/* 赤い下線ハイライト。折り返しても下線が続くよう box-decoration-break を使う */
.rc-hl {
  color: var(--c-navy);
  font-size: clamp(18px, 4vw, 22px);
  font-weight: 900;
  border-bottom: 4px solid var(--c-red);
  padding-bottom: 2px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --- 02 CAREER ----------------------------------------------------------- */
.rc-career { background: var(--bg-section); padding: clamp(48px, 10vw, 160px) clamp(20px, 8vw, 100px); }
.rc-career .sec__h2 { margin: 0 0 20px; }
.rc-career__lead { font-size: 15px; color: var(--c-muted); line-height: 1.9; margin: 0 0 36px; max-width: 640px; }

.rc-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line-navy); margin: 0 0 28px; }
.rc-tab {
  appearance: none;
  border: none;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 4px;
  margin-right: 28px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  color: var(--c-muted);
}
.rc-tab[aria-selected="true"] { color: var(--c-navy); border-bottom-color: var(--c-red); }

.rc-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: 16px;
}
.rc-step {
  min-width: 0;
  background: #fff;
  padding: 18px 16px;
  border: 1px solid var(--line-navy);
  border-left-width: 6px;
  border-left-style: solid;
}
/* 左の縦帯は5段階で濃くなる */
.rc-step:nth-child(1) { border-left-color: rgba(16, 28, 76, .35); }
.rc-step:nth-child(2) { border-left-color: rgba(16, 28, 76, .5); }
.rc-step:nth-child(3) { border-left-color: rgba(16, 28, 76, .68); }
.rc-step:nth-child(4) { border-left-color: rgba(16, 28, 76, .84); }
.rc-step:nth-child(5) { border-left-color: rgba(16, 28, 76, 1); }

.rc-step__n     { font-family: var(--f-en); font-size: 11px; font-weight: 800; color: var(--c-red); letter-spacing: .05em; margin-bottom: 6px; }
.rc-step__role  { font-size: 14px; font-weight: 800; color: var(--c-navy); margin-bottom: 8px; line-height: 1.4; }
.rc-step__sal   { font-size: 11px; color: var(--c-muted); margin-bottom: 14px; }
.rc-step__num   { color: var(--c-red); font-size: 15px; font-weight: 800; }
.rc-step__label { font-size: 10px; color: var(--c-muted); letter-spacing: .03em; margin-bottom: 6px; }
.rc-step__tags  { display: flex; flex-wrap: wrap; gap: 5px; }
.rc-step__tag {
  font-size: 10.5px;
  color: var(--c-text);
  background: var(--bg-section);
  padding: 3px 8px;
  border-radius: 2px;   /* design の実値 */
  white-space: nowrap;
}

/* --- 03 REQUIREMENTS ----------------------------------------------------- */
.rc-req { background: #fff; padding: clamp(48px, 10vw, 160px) clamp(20px, 8vw, 100px); }
.rc-req__table { max-width: 1100px; }
.rq-row {
  display: flex;
  gap: clamp(24px, 4.4vw, 64px);
  padding: 32px 0;
  border-top: 1px solid var(--line-navy);
}
.rq-row:last-child { border-bottom: 1px solid var(--line-navy); }
.rq-label { flex: 0 0 clamp(120px, 14vw, 200px); font-size: 15px; font-weight: 700; color: var(--c-navy); }
.rq-value { flex: 1; font-size: 15px; line-height: 1.9; color: var(--c-text); }
.rq-grid  { line-height: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.rq-note  { font-size: 13px; color: var(--c-muted); }

/* --- 04 FLOW ------------------------------------------------------------- */
.rc-flow { background: var(--bg-section); padding: clamp(48px, 10vw, 160px) clamp(20px, 8vw, 100px); }
.rc-flow__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  align-items: stretch;
  gap: 1px;
}
.rc-flow__step {
  min-width: 0;
  background: #fff;
  padding: clamp(32px, 3vw, 44px) clamp(24px, 2.4vw, 32px);
}
.rc-flow__step--last { background: var(--c-navy); }
.rc-flow__n     { font-family: var(--f-en); font-weight: 900; font-size: 32px; color: var(--c-red); margin-bottom: 18px; }
.rc-flow__title { font-size: 16px; font-weight: 700; color: var(--c-navy); margin-bottom: 10px; }
.rc-flow__text  { font-size: 13px; line-height: 1.7; color: var(--c-text); }
.rc-flow__step--last .rc-flow__n     { color: var(--c-offwhite); }
.rc-flow__step--last .rc-flow__title { color: var(--c-offwhite); }
.rc-flow__step--last .rc-flow__text  { color: rgba(242, 243, 243, .7); }

/* ==========================================================================
   SP（768px 以下）
   ========================================================================== */
@media (max-width: 768px) {
  /* SP は縦位置に合わせた専用素材に差し替え、下端をマスクでぼかす */
  .rc-special__photo--pc { display: none; }
  .rc-special__photo--sp {
    display: block;
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: auto;
    aspect-ratio: 370 / 700;
    object-fit: cover;
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0) 100%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 74%, rgba(0, 0, 0, 0) 100%);
  }

  /* SP ではキャリアのカードを縦積みにし、文字を通常サイズまで拡大する */
  .rc-steps { display: flex; flex-direction: column; gap: 16px; }
  .rc-step  { width: 100%; padding: 22px 20px; }
  .rc-step__n     { font-size: 13px; }
  .rc-step__role  { font-size: 17px; }
  .rc-step__sal   { font-size: 13px; }
  .rc-step__num   { font-size: 19px; }
  .rc-step__label { font-size: 12px; }
  .rc-step__tag   { font-size: 12.5px; padding: 5px 10px; }

  .rq-row { flex-direction: column; gap: 12px; padding: 24px 0; }
  .rq-grid { grid-template-columns: 1fr; }

  .rc-flow__row { display: flex; flex-direction: column; gap: 1px; }
  .rc-flow__step { padding: 32px 28px; }
}
