/*
 * 採用情報 (page-recruit.php) と、社員インタビュー (templates/interview.php)、
 * 募集要項のカード（job-cards.php。エントリーのページでも使う）、よくあるご質問（job-faq.php）。
 * モニターの場面（.rc-dive）は recruit-dive.css。
 */

/* ---------- メッセージと数字（紺の場面の続き） ---------- */
.rc-msg { padding-block: clamp(64px, 8vw, 120px) var(--section); }
.rc-msg__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 112px); align-items: center; }
.rc-msg__text p + p { margin-top: 1.4em; }
.rc-msg__text p { font-size: clamp(16px, 1.4vw, 19px); line-height: 2.3; color: #fff; }
/* 1文ずつ（recruit.js が .rc-line で囲み、--o を動かす）。画面の下から上へ来るにつれて白くなる */
.js-motion .rc-msg__text.rv { opacity: 1; transform: none; }
.rc-line { opacity: var(--o, 1); }
.rc-msg .photo-rows .ph { background: rgba(255, 255, 255, .06); }
.rc-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: clamp(64px, 8vw, 120px) 0 0; border-top: 1px solid var(--line-dark); }
.rc-stats > div { padding: 16px 16px 0 0; }
.rc-stats dt { color: rgba(255, 255, 255, .6); }
.rc-stats dd { margin: 0; }
.rc-stats__v { margin-top: 20px !important; font-family: var(--font-en); font-weight: 500; font-size: clamp(44px, 5vw, 80px); letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.rc-stats__v small { font-family: var(--font-jp); font-size: 15px; margin-left: 6px; letter-spacing: .04em; }
.rc-stats__k { margin-top: 8px !important; font-size: 14px; font-weight: 700; }
.rc-stats__note { font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ---------- 研修：2つの段階を点線でつなぐ ---------- */
.rc-train { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); }
.rc-train::before { content: ""; position: absolute; left: 25%; right: 25%; top: 140px; height: 1px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); transform-origin: left; transition: transform 1.4s var(--ease-out) .6s; }
.js-motion .rc-train::before { transform: scaleX(0); }
.js-motion .rc-train.in::before { transform: none; }
.rc-train__fig { position: relative; }
.rc-train__fig .wire { height: 280px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.rc-train__fig .mono { position: absolute; left: 16px; top: 14px; color: var(--accent); }
.rc-train h3 { margin: 24px 0 0; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--navy); display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.rc-train h3 small { font-size: 13px; color: var(--muted); font-weight: 500; }
.rc-train p { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ---------- 働き方・福利厚生：3つ並びのカード ---------- */
.rc-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rc-card { position: relative; padding: 24px 24px 28px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rc-card:nth-child(even) { background: var(--card-2); }
.rc-card::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.rc-card:hover::after { transform: scaleX(1); }
.rc-card__num { font-family: var(--font-en); font-size: 56px; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--navy-soft); opacity: .6; }
.rc-card h3 { margin: 16px 0 0; font-size: 17px; font-weight: 700; letter-spacing: .05em; color: var(--navy); line-height: 1.6; }
.rc-card p:last-child { margin-top: 10px; color: var(--muted); font-size: 14px; }

/* ---------- 社員インタビュー（interview-cards.php）：横に送るレール ---------- */
.iv-section { padding-top: var(--section); }
.iv__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.iv__head .sec-head { margin-bottom: 0; flex: 1; }
.iv__ctrl { display: flex; align-items: center; gap: 16px; padding-bottom: 6px; color: var(--muted); }
.iv__ctrl b { color: var(--navy); font-weight: 500; }
.iv__ctrl button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--navy); cursor: pointer; transition: background-color .3s, color .3s, border-color .3s, opacity .3s; }
.iv__ctrl button:hover:not(:disabled) { background: var(--navy); border-color: var(--navy); color: #fff; }
.iv__ctrl button:disabled { opacity: .3; cursor: default; }
.iv__rail { margin: clamp(40px, 5vw, 64px) calc(-1 * var(--gutter)) 0 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.iv__rail::-webkit-scrollbar { display: none; }
.iv__rail.is-drag { scroll-snap-type: none; }
.iv__rail.is-drag a { pointer-events: none; }
.iv__track { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0 var(--gutter) 0 0; }
.iv__card { flex: 0 0 min(480px, 86vw); scroll-snap-align: start; }
/* 全員が1画面に入るときは横いっぱいに広げ、送る部品は隠す（recruit.js が .is-fit を付ける） */
.iv.is-fit .iv__ctrl, .iv.is-fit .iv__bar { display: none; }
.iv.is-fit .iv__rail { margin-right: 0; }
.iv.is-fit .iv__track { padding-right: 0; }
.iv.is-fit .iv__card { flex: 1 1 0; }
.iv.is-fit h3 { font-size: 24px; }
.iv__card a { position: relative; display: grid; grid-template-columns: 180px 1fr; gap: 28px; padding: 24px 24px 24px 0; border-top: 1px solid var(--line); }
.iv__card a::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease-out); }
.iv__card a:hover::before { transform: scaleX(1); }
.iv__photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--paper-2); }
.iv__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.iv__card a:hover .iv__photo img { transform: scale(1.05); }
/* 画面に入ると、紺の幕が左から順に開く */
.js-motion .iv__photo::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--navy); transform-origin: right; transition: transform .9s var(--ease-out) var(--d, 0s); }
.js-motion .iv__card.in .iv__photo::before { transform: scaleX(0); }
/* マウスを乗せると、写真の四隅にだけ朱の角を出す（顔には重ならない） */
.iv__photo::after { content: ""; position: absolute; inset: 12px; z-index: 2; pointer-events: none; opacity: 0; transform: scale(1.08); transition: opacity .4s, transform .6s var(--ease-out);
  background:
    linear-gradient(var(--accent), var(--accent)) left top / 14px 1px, linear-gradient(var(--accent), var(--accent)) left top / 1px 14px,
    linear-gradient(var(--accent), var(--accent)) right top / 14px 1px, linear-gradient(var(--accent), var(--accent)) right top / 1px 14px,
    linear-gradient(var(--accent), var(--accent)) left bottom / 14px 1px, linear-gradient(var(--accent), var(--accent)) left bottom / 1px 14px,
    linear-gradient(var(--accent), var(--accent)) right bottom / 14px 1px, linear-gradient(var(--accent), var(--accent)) right bottom / 1px 14px;
  background-repeat: no-repeat; }
.iv__card a:hover .iv__photo::after { opacity: 1; transform: none; }
.iv__body { display: flex; flex-direction: column; min-width: 0; }
.iv__num { font-family: var(--font-en); font-weight: 500; font-size: 72px; line-height: .9; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1px var(--navy-soft); transition: color .4s, -webkit-text-stroke-color .4s; }
.iv__card a:hover .iv__num { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.iv__body .mono { margin-top: auto; color: var(--muted); font-size: 11px; }
.iv h3 { margin: 6px 0 0; font-size: 20px; font-weight: 700; letter-spacing: .06em; color: var(--navy); }
.iv__year { margin-top: 4px; color: var(--muted); font-size: 13px; }
.iv__body .circle-arrow { margin-top: 16px; }
.iv__card a:hover .circle-arrow { background: var(--accent); border-color: var(--accent); color: #fff; transform: rotate(-45deg); }
.js-motion .iv__body > * { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s var(--ease-out); transition-delay: calc(var(--d, 0s) + .3s); }
.js-motion .iv__card.in .iv__body > * { opacity: 1; transform: none; }
.iv__bar { position: relative; height: 1px; margin-top: 24px; background: var(--line); }
.iv__bar span { position: absolute; left: 0; top: -1px; height: 3px; width: 100%; background: var(--navy); transition: left .3s, width .3s; }
/* レールの上では、マウスの代わりに「DRAG」の丸がついてくる（マウスで、送れるときだけ） */
.iv-cursor { position: fixed; left: 0; top: 0; z-index: 50; width: 84px; height: 84px; margin: -42px 0 0 -42px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .15em; pointer-events: none; transform: scale(0); transition: transform .35s var(--ease-out); }
.iv-cursor.on { transform: scale(1); }
.iv__rail.has-cursor, .iv__rail.has-cursor a { cursor: none; }

/* ---------- 募集要項のカード（job-cards.php） ---------- */
.jobs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.job { display: grid; grid-template-rows: auto 1fr; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.job__photo { aspect-ratio: 16 / 7; border-radius: 0; }
.job__body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.job__body .mono, .job__body > p:not(.mono) { color: var(--muted); }
.job__body > p:not(.mono) { font-size: 14px; }
.job h3 { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: .08em; color: var(--navy); }
.job__acts { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- よくあるご質問（job-faq.php）：開閉は滑らかに（対応しないブラウザーはすぐ開く） ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .5s var(--ease-out), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 56px 1fr 32px; gap: 16px; align-items: center; padding: 22px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .mono { color: var(--accent); }
.faq summary i { position: relative; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1px; margin-left: -5px; background: currentColor; transition: transform .4s var(--ease-out); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: none; }
.faq summary:hover { color: var(--navy); }
.faq__a { display: grid; grid-template-columns: 56px 1fr 32px; gap: 16px; padding: 0 0 24px; color: var(--muted); }
.faq__a .mono { color: var(--navy); }

/* ---------- エントリー（紺の場面） ---------- */
.rc-entry { padding-block: var(--section); text-align: center; }
.rc-entry .label { justify-content: center; color: rgba(255, 255, 255, .6); }
.rc-entry__big { margin-top: 16px; font-family: var(--font-en); font-weight: 500; text-transform: uppercase; font-size: clamp(72px, 14vw, 220px); line-height: .9; letter-spacing: -.05em; }
/* マウスのある端末では、ENTRY は線だけの文字にして、マウスの周りだけ白く塗る（recruit.js が --mx・--my を動かす） */
@media (hover: hover) {
  .rc-entry__big { color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .7); background: radial-gradient(circle 180px at var(--mx, -999px) var(--my, -999px), #fff 0 60%, rgba(255, 255, 255, 0) 100%); -webkit-background-clip: text; background-clip: text; }
}
.rc-entry__ja { margin: 16px 0 0; font-size: 18px; letter-spacing: .1em; }
.rc-entry__text { margin-top: 16px; color: rgba(255, 255, 255, .75); }
.rc-entry__acts { margin-top: 40px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 社員インタビューのページ（templates/interview.php） ---------- */
.interview { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(32px, 6vw, 112px); align-items: start; padding-block: var(--section); }
.interview__profile { position: sticky; top: calc(var(--header) + 40px); }
.interview__profile .ph { aspect-ratio: 3 / 4; }
.interview__profile p { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.interview__profile .mono { color: var(--muted); }
.interview-others { padding-bottom: var(--section); }
.interview-others .btn { margin-top: 40px; }

@media (max-width: 960px) {
  .rc-msg__grid, .rc-train, .jobs, .interview { grid-template-columns: 1fr; }
  .rc-train::before { display: none; }
  .iv__card a { grid-template-columns: 120px 1fr; gap: 20px; }
  .iv__num { font-size: 52px; }
  .rc-stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .rc-cards { grid-template-columns: 1fr; }
  .faq summary, .faq__a { grid-template-columns: 40px 1fr 32px; gap: 8px; }
  .interview__profile { position: static; max-width: 260px; }
}
