/* ============================================================
   page.css — 下層ページの共通部品
   会社概要・インタビュー・採用情報・規約類で使う。tokens.css → base.css の次に読む
   見出しは base.css の .sec / .sec-head / .sec-title / .sec-lead をそのまま使う

   部品の一覧
   .page-sub   body に付ける（ページ内リンクの着地位置をヘッダーの下にする）
   .ph         ページの頭（背景素材＋パンくず＋大見出し＋リード）
   .crumb      パンくず
   .toc        ページ内の目次（PCは横一列、スマホは2列）
   .is-paper   明るい読む面。中の部品は色の変数が切り替わるので、そのまま置ける
   .prose      長文の文字組み（規約・お知らせ本文）
   .dtable     項目と内容の表（会社概要・募集要項）。スマホは項目の下に内容
   .golinks    次に読むページへのリンク列
   .pcta       ページ末の導線（背景素材＋見出し＋ボタン）
   .tag        日本語の小さな札（「最新」など）
   .ico        文字の横に置く線のアイコン（SVG をそのまま書く）
   ============================================================ */
:root {
  --ico-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4v15M6 13l6 6 6-6' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E");
}
.page-sub [id] { scroll-margin-top: 84px; }
/* スマホ幅だけで効く改行（見出しを文節で折るため） */
.br-sp { display: none; }
@media (max-width: 767px) { .br-sp { display: inline; } }

/* ---------- ページの頭 ---------- */
.ph { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  min-height: min(76svh, 760px); padding: 196px 0 var(--s5); }
.ph-bg { position: absolute; inset: -18% 0; z-index: -2; }
.ph-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.34) saturate(1.05); }
/* 下の面へなじませる（色ではなく、夜の地に溶かす） */
.ph::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 42%; z-index: -1; pointer-events: none;
  background: linear-gradient(rgba(13, 10, 11, 0), var(--night)); }
.ph-inner { position: relative; }
.ph-title { font-size: var(--fs-h1); font-weight: 900; line-height: 1.25; letter-spacing: .01em; margin: 20px 0 24px; }
.ph-lead { max-width: 36em; color: var(--text-2); }
/* 見出し横の短い説明は文節で折る（対応していない環境では通常の折り返し） */
.page-sub .sec-lead, .page-sub .ph-lead { word-break: auto-phrase; }
@media (max-width: 767px) {
  .ph { min-height: 0; padding: 116px 0 56px; }
  .ph-title { font-size: 30px; line-height: 1.4; margin: 12px 0 16px; }
}

/* ---------- パンくず ---------- */
.crumb ol { display: flex; flex-wrap: wrap; align-items: center; font-size: 13px; letter-spacing: .06em; color: var(--text-3); }
.crumb li { display: inline-flex; align-items: center; }
.crumb li + li::before { content: "／"; margin: 0 .6em; }
.crumb a { display: inline-flex; align-items: center; min-height: 44px; color: var(--text-2); transition: color var(--t-state); }
.crumb a:hover { color: var(--text); }

/* ---------- ページ内の目次 ---------- */
.toc { margin-top: var(--s5); border-top: 1px solid var(--line); }
.toc ol { display: flex; flex-wrap: wrap; gap: 0 40px; }
.toc a { display: inline-flex; align-items: center; gap: 8px; min-height: 56px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--text-2); white-space: nowrap; transition: color var(--t-state); }
.toc a::after { content: ""; flex: none; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--ico-down) center / contain no-repeat; mask: var(--ico-down) center / contain no-repeat;
  transition: transform var(--t-state) var(--ease-out); }
.toc a:hover { color: var(--text); }
.toc a:hover::after { transform: translateY(3px); }
.toc small { font-size: 12px; font-weight: 500; color: var(--text-3); }
@media (max-width: 767px) {
  .toc { margin-top: var(--s4); }
  .toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
  .toc li { border-bottom: 1px solid var(--line); }
  .toc a { display: flex; justify-content: space-between; min-height: 52px; }
  .toc small { margin-right: auto; margin-left: 2px; }
}

/* ---------- 明るい読む面 ---------- */
.is-paper { background: var(--paper); color: var(--ink);
  --text: var(--ink); --text-2: var(--ink-2); --text-3: var(--ink-3); --line: var(--line-ink); --line-2: #c3b8ad; }
.is-paper :focus-visible { outline-color: var(--ink); }
.is-paper { --btn-ink: var(--paper); }

/* ---------- 長文の文字組み ---------- */
.prose { max-width: 42em; }
.prose > * + * { margin-top: 1em; }
.prose h2 { margin-top: 2.6em; padding-top: 1.4em; border-top: 1px solid var(--line); font-size: 24px; font-weight: 900; line-height: 1.5; }
.prose h3 { margin-top: 2em; font-size: 18px; font-weight: 700; line-height: 1.6; }
.prose h2 + *, .prose h3 + * { margin-top: .8em; }
.prose p, .prose li { color: var(--text-2); line-height: 1.8; line-break: strict; overflow-wrap: break-word; }
.prose ol { list-style: decimal; padding-left: 1.6em; }
.prose ol ol { list-style: none; counter-reset: paren; padding-left: 1.2em; }
.prose ol ol > li { counter-increment: paren; }
.prose ol ol > li::before { content: "（" counter(paren) "）"; margin-left: -1.2em; }
.prose ul { padding-left: 1.2em; list-style: "・"; }
.prose li + li { margin-top: .4em; }
.prose a { color: var(--text); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.prose strong, .prose b { color: var(--text); font-weight: 700; }
.prose .note, .prose small { font-size: 14px; color: var(--text-3); }
@media (max-width: 767px) { .prose h2 { font-size: 22px; } }

/* ---------- 項目と内容の表 ---------- */
.dtable { width: 100%; border-collapse: collapse; font-size: 16px; }
.dtable tr { border-top: 1px solid var(--line); }
.dtable tr:last-child { border-bottom: 1px solid var(--line); }
.dtable th, .dtable td { padding: 22px 0; text-align: left; vertical-align: top; line-height: 1.75; }
.dtable th { width: 16em; padding-right: 32px; font-size: 14px; font-weight: 700; letter-spacing: .06em; color: var(--text-3); overflow-wrap: break-word; }
.dtable td { color: var(--text); overflow-wrap: break-word; word-break: auto-phrase; }
.dtable a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; overflow-wrap: anywhere; }
.dtable a:hover { color: var(--red); }
@media (max-width: 767px) {
  .dtable tr, .dtable th, .dtable td { display: block; }
  .dtable th { width: auto; padding: 18px 0 2px; }
  .dtable td { padding: 0 0 18px; }
}

/* ---------- 次に読むページへのリンク列 ---------- */
.golinks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 32px; }
.golink { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 22px 4px; border-top: 1px solid var(--line-2); }
.golink::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.golink-name { font-size: 20px; font-weight: 900; line-height: 1.4; }
.golink-desc { grid-column: 1; font-size: 14px; color: var(--text-3); }
.golink .arw { grid-column: 2; grid-row: 1 / span 2; width: 22px; height: 22px; color: var(--text-2); transition: transform .4s var(--ease-out), color .3s; }
.golink:hover::before, .golink:focus-visible::before { transform: scaleX(1); }
.golink:hover .arw, .golink:focus-visible .arw { transform: translateX(6px); color: var(--text); }

/* ---------- ページ末の導線 ---------- */
.pcta { position: relative; overflow: hidden; isolation: isolate; padding: var(--s7) 0; }
.pcta-bg { position: absolute; inset: -18% 0; z-index: -1; }
.pcta-bg img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.46); }
.pcta-title { font-size: clamp(32px, 4.4vw, 64px); font-weight: 900; line-height: 1.35; margin-bottom: 24px; }
/* base.css の見出しは overflow-wrap:anywhere。溢れたときに禁則を無視して「。」だけ次行へ落ちるので、下層の大見出しは break-word に戻す */
.page-sub .ph-title, .page-sub .pcta-title, .page-sub .sec-title { overflow-wrap: break-word; }
.pcta-title.mincho { font-weight: 800; }
.pcta p { max-width: 34em; color: var(--text-2); }
.pcta-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
@media (max-width: 767px) {
  .pcta { padding: var(--s6) 0; }
  .pcta-title { font-size: 26px; }
  .pcta-btns .btn { flex: 1 1 100%; }
}

/* ---------- 小さな札・線のアイコン ---------- */
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; border-radius: 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1; white-space: nowrap; background: var(--night-3); color: var(--text); }
.tag--red { background: var(--red); color: #fff; }
.ico { flex: none; width: 16px; height: 16px; }
.ico path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
