/* apply-pages（2026-10-30 全画面の見直しで追加。担当ページ専用：募集要項・エントリー・関東/関西・404）
   style.css の後に読み込まれる。色は style.css のトークン（黒＋青1色）だけを使う */

/* ---------- 要点の4つの数字（募集要項の最初・関東/関西の「条件と行き方」） ---------- */
.req-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 40px; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); }
.req-keys > div { padding: 18px 16px 18px 0; }
.req-keys > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.req-keys dt { font-size: 13px; font-weight: 700; color: var(--ink-sub); }
.req-keys dd { margin: 4px 0 0; font-size: clamp(18px, 2vw, 22px); font-weight: 900; line-height: 1.35; font-feature-settings: "palt"; word-break: keep-all; overflow-wrap: anywhere; }
.req-keys .req-keys__sub { margin-top: 4px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ink-sub); word-break: normal; }
.req-keys .req-keys__sub:empty { display: none; }
.req-keys--office { margin-bottom: 0; }
@media (max-width: 760px) {
  .req-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .req-keys > div { padding: 14px 12px 14px 0; }
  .req-keys > div + div { padding-left: 0; border-left: 0; }
  .req-keys > div:nth-child(even) { padding-left: 12px; border-left: 1px solid var(--line); }
  .req-keys > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- 募集要項の表：スマホでも「項目｜内容」の2列にする（縦に1行ずつ積むと約2倍の長さになっていた） ---------- */
@media (max-width: 760px) {
  .req-table, .req-table tbody { display: block; }
  .req-table tr { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); border-bottom: 1px solid var(--line); }
  .req-table tr:first-child { border-top: 2px solid var(--ink); }
  .req-table th, .req-table td { display: block; width: auto; padding: 14px 12px; border: 0 !important; font-size: 15px; line-height: 1.7; }
  .req-table th { padding-left: 10px; font-size: 13px; line-height: 1.6; }
  .req-table .spec-tags li { font-size: 13px; padding: 2px 10px; }
}

/* 選考で重視すること：1行ずつ、右に根拠の先輩へのリンク */
.req-focus { margin: 0; padding: 0; list-style: none; }
.req-focus li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; padding: 6px 0; }
.req-focus li + li { border-top: 1px dashed var(--line); }
.req-focus span { font-weight: 700; }
.req-focus a { flex: none; font-size: 13px; color: var(--accent); }

/* ---------- 1週間のシフト例（templates/_shift_calendar.html。募集要項だけで使用）：普通の大学の時間割。上に月〜金、左に時間 ----------
   目盛りと列は同じ高さ（--wk-h × 9）の格子。線は3時間おき。目盛りの文字は translateY で線の上に中央をそろえる（18:00 だけ最後の行の下端に）
   文字はすべて12px以上。インターンの帯は薄い青の面に濃い文字で、中は開始と終了の時刻だけ。授業・研究室の帯はグレーの面に名前と時刻（インターンより控えめに） */
.wk-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.wk { --wk-axis: 44px; --wk-head: 26px; --wk-h: 24px; --wk-tint: #e4eaff; --wk-class: #efeff2; --wk-lab: #e3e3e7; margin: 0; }
.wk__who { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; font-weight: 700; }
.wk__who span { flex: none; font-size: var(--fs-small); font-weight: 900; color: var(--accent); white-space: nowrap; }
.wk__cal { display: grid; grid-template-columns: var(--wk-axis) minmax(0, 1fr); padding-bottom: 8px; }
.wk__scale { display: grid; grid-template-rows: repeat(9, var(--wk-h)); margin-top: var(--wk-head); font-size: 12px; line-height: 1; color: var(--ink-sub); font-variant-numeric: tabular-nums; }
.wk__scale span { grid-column: 1; align-self: start; justify-self: end; padding-right: 6px; white-space: nowrap; transform: translateY(-50%); }
.wk__scale .wk-e18 { grid-row: 9; align-self: end; transform: translateY(50%); }
.wk__cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.wk__col { min-width: 0; }
.wk__day { display: flex; align-items: center; justify-content: center; height: var(--wk-head); font-size: 14px; font-weight: 700; line-height: 1; }
.wk__track { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: repeat(9, var(--wk-h)); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background:
  linear-gradient(180deg, var(--line) 1px, transparent 1px) 0 0 / 100% calc(var(--wk-h) * 3),
  var(--paper); }
.wk__col:last-child .wk__track { border-right: 1px solid var(--line); }
.wk__bar { grid-column: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; margin: 1px 2px 0; border-radius: 3px; font-size: 12px; line-height: 1.4; text-align: center; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.wk__bar b { font-weight: 700; }
.wk__bar--work { background: var(--wk-tint); }
.wk__bar--class { background: var(--wk-class); color: var(--ink-sub); }
.wk__bar--lab { background: var(--wk-lab); color: var(--ink-sub); }
.wk__off { grid-column: 1; grid-row: 1 / -1; align-self: center; justify-self: center; font-size: 12px; line-height: 1.5; color: var(--ink-sub); text-align: center; }
.wk__note { margin-top: 10px; font-size: var(--fs-small); color: var(--ink-sub); }
/* 帯の意味（カレンダーの上の1行） */
.wk-key { display: flex; align-items: center; gap: 12px; margin: 0 0 20px; font-size: 13px; line-height: 1.4; color: var(--ink-sub); white-space: nowrap; }
.wk-key__bar { display: flex; align-items: center; gap: 6px; }
.wk-key__bar::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 3px; background: #e4eaff; }
.wk-key__bar--class::before { background: #efeff2; }
.wk-key__bar--lab::before { background: #e3e3e7; }
.wk-key__empty { display: none; }
/* 位置（CSP で style が使えないのでクラスで）。9時＝1行目の始まり、18時＝9行目の終わり */
.wk-s9 { grid-row-start: 1; } .wk-s10 { grid-row-start: 2; } .wk-s11 { grid-row-start: 3; } .wk-s12 { grid-row-start: 4; } .wk-s13 { grid-row-start: 5; }
.wk-s14 { grid-row-start: 6; } .wk-s15 { grid-row-start: 7; } .wk-s16 { grid-row-start: 8; } .wk-s17 { grid-row-start: 9; }
.wk-e10 { grid-row-end: 2; } .wk-e11 { grid-row-end: 3; } .wk-e12 { grid-row-end: 4; } .wk-e13 { grid-row-end: 5; } .wk-e14 { grid-row-end: 6; }
.wk-e15 { grid-row-end: 7; } .wk-e16 { grid-row-end: 8; } .wk-e17 { grid-row-end: 9; } .wk-e18 { grid-row-end: 10; }
@media (max-width: 900px) { .wk-list { grid-template-columns: 1fr; } }
/* スマホは列が狭く（360px幅で約55px）「インターン」が端にふれるので、「インターンなし」は読み上げだけに残し、上の1行で補う */
@media (max-width: 480px) {
  .wk { --wk-axis: 40px; --wk-head: 28px; --wk-h: 28px; }
  .wk__off { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wk-key__empty { display: inline; }
}

/* 募集要項の表の勤務地：東京・大阪から関東・関西のページへ。余白で押せる範囲を広げ、負のマージンで行の高さは変えない */
.req-office-link { display: inline-block; margin: -10px -8px; padding: 10px 8px; color: var(--accent); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* よくある質問の回答の下：根拠の先輩の個別ページへ。「A」の幅（約14px＋gap 16px）だけ下げて回答の文にそろえる */
.faq__links { margin: -12px 0 24px; padding: 0 0 0 31px; list-style: none; font-size: var(--fs-small); line-height: 1.6; }
.faq__links li + li { margin-top: 6px; }
.faq__links a { color: var(--accent); font-weight: 700; text-underline-offset: 3px; }

/* 企業情報の直前：関東オフィス・関西オフィスのページへの控えめな案内（templates/sections/req-offices.html） */
.req-offices { padding: 0 0 44px; }
.req-offices__title { margin: 0 0 10px; font-size: var(--fs-small); font-weight: 700; color: var(--ink-sub); }
.req-offices__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.req-offices__list a { display: flex; align-items: baseline; gap: 10px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); font-weight: 700; text-decoration: none; }
.req-offices__list a span { font-size: 13px; font-weight: 500; color: var(--ink-sub); }
.req-offices__list a::after { content: "→"; margin-left: auto; color: var(--accent); }
.req-offices__list a:hover { border-color: var(--accent); }
@media (max-width: 600px) { .req-offices__list { grid-template-columns: 1fr; } }

/* ---------- エントリー ---------- */
.entry-terms { margin-top: 16px; font-size: var(--fs-small); color: var(--ink-sub); text-align: center; }
.entry-terms a { margin-left: .5em; color: var(--ink); font-weight: 700; }
.entry-terms--alt { margin-top: 8px; }
.entry-terms--alt a { font-weight: 400; }
.entry-sub { margin: 44px 0 16px; font-size: var(--fs-h3); font-weight: 900; }
#entry .flow { margin-top: 8px; }
@media (max-width: 600px) { .entry-sub { margin-top: 32px; } }

/* ---------- 関東・関西 ---------- */
.office-hero__work { margin-top: 16px; max-width: 30em; font-weight: 700; line-height: 1.7; color: var(--on-dark); }
.office-hero__work + .office-hero__address { margin-top: 8px; }
/* 行き方：駅 → かかる時間 → オフィス */
.office-route { display: grid; gap: 10px; margin: 24px 0 0; padding: 0; list-style: none; }
.office-route li { display: grid; grid-template-columns: minmax(0, 18em) minmax(8em, 1fr) auto; align-items: center; gap: 12px; }
.office-route__from { justify-self: start; }
.office-route__from, .office-route__to { padding: 8px 14px; border-radius: 999px; font-weight: 900; line-height: 1.4; }
.office-route__from { border: 1px solid var(--ink); }
.office-route__to { background: var(--accent); color: var(--on-dark); }
.office-route__how { position: relative; padding-bottom: 10px; font-size: var(--fs-small); text-align: center; color: var(--ink-sub); }
.office-route__how::before { content: ""; position: absolute; left: 0; right: 6px; bottom: 2px; height: 2px; background: var(--accent); }
.office-route__how::after { content: ""; position: absolute; right: 1px; bottom: -2px; width: 8px; height: 8px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); }
@media (max-width: 600px) {
  .office-route li { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .office-route__from { grid-column: 1 / -1; justify-self: start; padding: 0; border: 0; }
  .office-route__how { text-align: left; }
  .office-route__to { padding: 4px 12px; font-size: 13px; }
}

/* ---------- 404 ---------- */
.notfound__links { display: grid; grid-template-columns: repeat(auto-fit, minmax(9em, 1fr)); gap: 8px; margin: 40px 0 0; padding: 0; list-style: none; }
.notfound__links a { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 700; text-decoration: none; }
.notfound__links a::after { content: "→"; color: var(--accent); }
.notfound__links a:hover { border-color: var(--accent); }
.notfound .actions { margin-top: 32px; }

/* 近くの大学の先輩：枠のカードを並べると縦に長いので、線で区切った一覧に（2026-10-30） */
.office-local .office-local__list { gap: 0 32px; border-top: 1px solid var(--line); }
.office-local .office-local__school { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: none; }

/* ---------- 主なキャンパスから、東京駅・本町駅まで（templates/sections/office.html の「条件と行き方」。2026-10-30） ----------
   地図は office-hero の地図（style.css の .office-map）と同じ見た目：灰色の都府県、黒の点、行き先は青＋波紋 */
.campus-time { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.campus-time__title { margin: 0; font-size: var(--fs-h3); font-weight: 900; line-height: 1.4; }
.campus-time__lead { margin: 8px 0 0; font-size: var(--fs-small); line-height: 1.7; color: var(--ink-sub); }
.campus-time__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: start; margin-top: 20px; }
.campus-map { margin: 0; }
.campus-map svg { display: block; width: 100%; height: auto; background: #f4f4f6; border-radius: var(--radius); }
.campus-map__pref { fill: #e6e6ea; stroke: var(--paper); stroke-width: 1.5; stroke-linejoin: round; }
.campus-map__pref-name { font-size: 11px; font-weight: 700; fill: #9a9aa4; }
.campus-map__ring { fill: none; stroke: var(--accent); stroke-width: 1; stroke-dasharray: 3 4; opacity: .45; }
.campus-map__ring-label { font-size: 10px; font-weight: 700; fill: var(--accent); paint-order: stroke; stroke: #f4f4f6; stroke-width: 3px; }
.campus-map__leader { stroke: var(--ink); stroke-width: 1; }
.campus-map__station { fill: var(--ink); }
.campus-map__dest { fill: var(--accent); stroke: var(--paper); stroke-width: 2.5; }
.campus-map__pulse { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.campus-map__dest-label { font-size: 13px; font-weight: 900; fill: var(--accent); paint-order: stroke; stroke: #f4f4f6; stroke-width: 4px; }
.campus-map__badge circle { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.campus-map__badge text { font-size: 10px; font-weight: 900; fill: var(--paper); }
.campus-map__caption { margin-top: 8px; font-size: 12px; color: var(--ink-sub); }
@media (prefers-reduced-motion: no-preference) {
  .campus-map__pulse { transform-box: fill-box; transform-origin: center; animation: map-pulse 2s ease-out infinite; }
}

.campus-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.45; font-feature-settings: "palt"; }
.campus-table thead th { padding: 0 6px 6px; border-bottom: 2px solid var(--ink); font-size: 12px; font-weight: 700; color: var(--ink-sub); text-align: left; white-space: nowrap; }
.campus-table tbody { border-bottom: 1px solid var(--line); }
.campus-table th[scope="rowgroup"], .campus-table td { padding: 5px 6px; vertical-align: top; text-align: left; }
.campus-table th[scope="rowgroup"] { font-weight: 700; white-space: nowrap; }
.campus-table__num { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 6px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 10px; font-weight: 900; vertical-align: 1px; }
.campus-table__bus { margin-left: 2px; font-size: 11px; color: var(--ink-sub); white-space: nowrap; }
.campus-table__n { white-space: nowrap; text-align: right !important; }
.campus-table__n b { font-weight: 900; }
.campus-table thead th:nth-child(n + 4) { text-align: right; }
@media (max-width: 760px) {
  .campus-time__body { grid-template-columns: 1fr; gap: 20px; }
  .campus-table { font-size: 12.5px; }
  .campus-table th[scope="rowgroup"], .campus-table td { padding: 5px 4px; }
  .campus-table th[scope="rowgroup"] { white-space: normal; word-break: keep-all; }
  .campus-table__num { width: 16px; height: 16px; margin-right: 3px; font-size: 9px; }
}

/* >>> office-2026-11-02 */
/* ---------- 関東・関西 2026-11-02 作り直し（templates/sections/office.html）----------
   白地・罫線・角丸なし。写真は 600px を超えて出さない。派手にするのはキャンパスの地図と表の帯だけ
   あわせて見る・最後の案内は共通の page.html をさわらず main:has(.office-hero) で控えめにする */

/* 最初の画面：関東は左に文字と写真、右に地図。関西は見出しを横一列にして、地図を左、文字と写真を右に */
.breadcrumb + .office-hero { padding: 20px 0 48px; }
.office-hero__inner { display: grid; grid-template-columns: 540px minmax(0, 1fr); gap: 0 48px; grid-template-rows: repeat(4, auto) 1fr; align-items: start; }
.office-hero__text { display: contents; }
.office-hero__title, .office-hero__catch, .office-hero__address, .office-hero__apply, .office-hero__photos { grid-column: 1; }
.office-hero__map { grid-column: 2; grid-row: 1 / -1; }
.office-hero__title { margin: 0; font-size: clamp(40px, 3.6vw, 44px); line-height: 1.28; letter-spacing: 0; font-feature-settings: "palt"; }
.office-hero__title .nowrap:first-child { display: block; }
.office-hero__catch { margin: 12px 0 0; font-weight: 500; font-size: clamp(24px, 2.2vw, 26px); line-height: 1.5; letter-spacing: .04em; color: var(--ink); }
.office-hero__address { margin: 14px 0 0; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-sub); }
.office-hero__apply { margin-top: 24px; }
.office-hero .entry-buttons--left { display: inline-grid; max-width: none; }
.office-hero .entry-button { flex-direction: row; align-items: baseline; gap: 12px; padding: 15px 64px 15px 20px; border-radius: 0; background: var(--ink); }
.office-hero .entry-button:hover { background: var(--accent); transform: none; }
.office-hero .entry-button.is-disabled { background: var(--line); }
.office-hero .entry-button__area { font-size: 17px; }
.office-hero .entry-button__sub { font-size: 13px; }
.office-hero .entry-button .btn__icon { right: 14px; width: 32px; height: 32px; }
.office-hero__photos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; margin-top: 32px; }
.office-hero__photos figure { margin: 0; }
.office-hero__photos img { display: block; width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* 地図：白地向け。来ている都県は濃いめの灰色、拠点は青、矢印は黒 */
.office-hero .office-map svg { width: auto; max-width: 100%; height: min(610px, calc(100vh - 210px)); min-height: 380px; margin: 0 auto; }
.office-hero .office-map__pref { fill: #f0f0f3; stroke: var(--paper); }
.office-hero .office-map__pref.is-on { fill: #c8c8d0; }
.office-hero .office-map__pref.is-pin { fill: var(--accent); }
.office-hero .office-map__label { fill: #8a8a94; stroke: #f0f0f3; font-weight: 500; }
.office-hero .office-map__label.is-on { fill: var(--ink); stroke: var(--paper); stroke-width: 3px; paint-order: stroke; font-weight: 700; }
.office-hero .office-map__arrow { stroke: var(--ink); stroke-width: 2.5; }
.office-hero .office-map__head { fill: var(--ink); }
.office-hero .office-map__dot { fill: var(--paper); stroke: var(--ink); }
.office-hero .office-map__pulse { stroke: var(--accent); }
.office-hero .office-map__caption { margin-top: 8px; font-size: 13px; color: var(--ink-sub); }

/* 関西：見出しを一列に、地図と文字の左右を入れ替え、奥まで写った1枚を大きく */
.office-hero--osaka .office-hero__inner { grid-template-columns: minmax(0, 1fr) 660px; grid-template-rows: repeat(4, auto) 1fr; }
.office-hero--osaka .office-hero__title { grid-column: 1 / -1; margin-bottom: 20px; }
.office-hero--osaka .office-hero__title .nowrap:first-child { display: inline; }
.office-hero--osaka .office-hero__catch, .office-hero--osaka .office-hero__address, .office-hero--osaka .office-hero__apply, .office-hero--osaka .office-hero__photos { grid-column: 2; }
.office-hero--osaka .office-hero__map { grid-column: 1; grid-row: 2 / -1; }
.office-hero--osaka .office-map svg { height: min(500px, calc(100vh - 300px)); min-height: 340px; }
.office-hero--osaka .office-map__label { font-size: 15px; }
.office-hero--osaka .office-hero__catch { margin-top: 0; font-weight: 900; font-size: clamp(28px, 2.8vw, 34px); line-height: 1.3; letter-spacing: 0; }
.office-hero--osaka .office-hero__photos { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); margin-top: 24px; }
.office-hero--osaka .office-hero__photos img { aspect-ratio: auto; height: 320px; }
.office-hero--osaka .office-hero__photos figure:last-child img { object-position: 40% 50%; }

/* 共通：ふだん以下のセクションの間隔と、文末のリンク */
.office-sec.section { padding: 60px 0; }
.office-sec + .office-sec { border-top: 1px solid var(--line); }
.office-sec .head { margin: 0; }
.office-sec .head__title { margin-top: 0; }
.office-sec .daily__more { text-align: left; margin-top: 20px; }
.office-sec .daily__more a { color: var(--ink); text-underline-offset: 4px; }
.office-sec .daily__more a:hover { color: var(--accent); }
.office-sec .daily__more a::after { content: none; }

/* 先輩の言葉（ふだん・チーム共通） */
.office-sec .daily__quotes { gap: 0; margin: 0; }
.office-sec .daily__quotes li { padding: 0; border: 0; }
.office-sec .daily__quote { font-weight: 500; font-size: 16px; line-height: 1.85; }
.office-sec .daily__quote::before { content: none; }
.office-sec .daily__who { margin-top: 6px; font-size: 13px; color: var(--ink-sub); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.office-sec .daily__who::after { content: none; }
.office-sec .daily__who:hover { color: var(--accent); }

/* 2. ふだん：罫線で区切った行。左に項目、右に内容 */
.office-daily .head { margin-bottom: 28px; }
.office-rows > .office-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; padding: 32px 0; border-top: 1px solid var(--line); }
.office-rows > .office-row:first-child { border-top: 2px solid var(--ink); }
.office-rows > .office-row:last-of-type { border-bottom: 1px solid var(--line); }
.office-row__label { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.7; }
.office-row--shift .office-row__body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 48px; align-items: start; }
.office-row .daily__big { font-size: clamp(36px, 3.4vw, 40px); line-height: 1.1; }
.office-row .daily__text { margin-top: 12px; font-size: 16px; line-height: 1.8; color: var(--ink); }
.office-row .daily__note { margin-top: 8px; font-size: 13px; }
.office-row .daybar { margin-top: 6px; }
.office-row .daybar__track, .office-row .daybar__block { border-radius: 0; }
.office-row .daily__lead { margin: 0 0 20px; font-size: var(--fs-h3); font-weight: 700; line-height: 1.6; }
.office-row .daily__quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 48px; }
/* 関西：見出しを左に置き、雰囲気の言葉から大きく始める */
.office-daily--osaka .office-daily__inner { display: grid; grid-template-columns: 340px minmax(0, 1fr); column-gap: 40px; align-items: start; }
.office-daily--osaka .head { margin: 0; word-break: keep-all; }
.office-daily--osaka .office-rows > .office-row { grid-template-columns: minmax(0, 1fr); row-gap: 12px; }
.office-daily--osaka .office-rows > .office-row:first-child { padding-top: 16px; }
.office-daily--osaka .office-row--vibe .daily__quotes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.office-daily--osaka .office-row--vibe .daily__quote { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.7; }

/* 3. チーム：写真と言葉。写真のすぐ下に日付とイベント名 */
.office-team__pair { display: grid; grid-template-columns: 560px minmax(0, 1fr); column-gap: 56px; align-items: start; }
.office-event { display: block; color: var(--ink); text-decoration: none; }
.office-event__img { display: block; }
.office-event__img img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 80%; }
.office-event__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 12px; }
.office-event__date { font-family: var(--font-en); font-size: 14px; font-weight: 700; color: var(--ink-sub); }
.office-event__title { font-size: 17px; font-weight: 700; }
.office-event__facts { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 6px; font-size: var(--fs-small); color: var(--ink-sub); }
.office-event__facts b { margin-right: 6px; color: var(--ink); font-weight: 700; }
.office-event__more { display: inline-block; margin-top: 8px; font-size: var(--fs-small); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.office-event:hover .office-event__more { color: var(--accent); }
.office-team__words .head__sub { margin-top: 12px; font-size: 16px; line-height: 1.8; }
.office-team__words .daily__quotes { margin-top: 28px; }
.office-team__words .daily__quotes li { padding: 20px 0; border-top: 1px solid var(--line); }
.office-team--osaka .office-team__pair { grid-template-columns: minmax(0, 1fr) 560px; }
.office-team--osaka .office-event { grid-column: 2; grid-row: 1; }
.office-team--osaka .office-team__words { grid-column: 1; grid-row: 1; }
.office-team--osaka .office-team__words .daily__quote { font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.7; }

/* 4. 条件と行き方：条件は線で区切った一覧。キャンパスの地図と表は灰色の帯で大きく */
.office-terms.office-sec { padding-bottom: 0; }
.office-terms .head__sub { margin-top: 12px; font-size: 16px; line-height: 1.8; }
.office-terms__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; margin-top: 28px; }
.office-spec { margin: 0; border-top: 2px solid var(--ink); }
.office-spec > div { display: grid; grid-template-columns: 4em minmax(0, 1fr); align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.office-spec dt { font-size: var(--fs-small); color: var(--ink-sub); }
.office-spec dd { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.office-spec small { margin-left: 12px; font-size: 13px; font-weight: 400; color: var(--ink-sub); }
.office-sec .office-route { gap: 0; margin: 0; border-top: 2px solid var(--ink); }
.office-sec .office-route li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.office-sec .office-route__from { padding: 0; border: 0; border-radius: 0; font-weight: 700; font-size: 15px; }
.office-sec .office-route__to { padding: 0; border-radius: 0; background: none; color: var(--ink); font-weight: 700; font-size: 15px; }
.office-sec .office-route__how { font-size: 13px; }
.office-sec .office-route__how::before { background: var(--ink); height: 1px; }
.office-sec .office-route__how::after { width: 7px; height: 7px; border-width: 1px; border-color: var(--ink); bottom: -1px; }

.office-terms .campus-time { margin-top: 48px; padding: 48px 0 56px; border-top: 0; background: var(--gray); }
.office-terms .campus-time__title { font-size: var(--fs-h2); line-height: 1.4; }
.office-terms .campus-time__lead { margin-top: 12px; max-width: 46em; font-size: 15px; }
.office-terms .campus-time__body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; margin-top: 32px; }
.office-terms .campus-map svg { background: var(--paper); border-radius: 0; }
.office-terms .campus-map__ring-label, .office-terms .campus-map__dest-label { stroke: var(--paper); }
.office-terms .campus-map__pulse { animation: none; }
.office-terms .campus-table { font-size: 14px; }
.office-terms .campus-table thead th { padding-top: 0; }
.office-terms .campus-table tbody { border-color: #d4d4da; }
.office-terms .campus-table__n b { font-size: 15px; }
.campus-time--osaka .campus-map { grid-column: 2; grid-row: 1; }
.campus-time--osaka .campus-table { grid-column: 1; grid-row: 1; }

/* 5. 近くの大学の先輩：左に見出し、右に一覧 */
.office-local__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); column-gap: 56px; align-items: start; }
.office-local--rows .head__sub { margin-top: 12px; font-size: 16px; line-height: 1.8; }
.office-local--rows .office-local__list { grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--ink); }
.office-local--rows .office-local__school { padding: 12px 0; flex-wrap: nowrap; gap: 16px; font-weight: 700; }
.office-local--rows .office-local__grades { flex: none; gap: 4px 16px; justify-content: flex-end; }
.office-local--rows .office-local__list .office-local__grades a { padding: 0; border: 0; border-radius: 0; background: none; font-size: var(--fs-small); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }

/* あわせて見る：カードをやめて、線の下の文字リンクに。最後の案内は page-end.css のまま */
main:has(.office-hero) .siblings { padding: 28px 0; background: var(--paper); border-top: 1px solid var(--line); }
main:has(.office-hero) .siblings__title { margin-bottom: 12px; }
main:has(.office-hero) .guide--compact { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
main:has(.office-hero) .guide__item { display: block; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
main:has(.office-hero) .guide__item:hover { box-shadow: none; }
main:has(.office-hero) .guide__item:hover .guide__label { color: var(--accent); }
main:has(.office-hero) .guide__label { display: block; margin: 0; font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
main:has(.office-hero) .guide__desc { display: block; margin-top: 4px; font-size: 13px; line-height: 1.7; }
main:has(.office-hero) .guide__item .btn__icon { display: none; }

@media (max-width: 1100px) {
  .office-hero__inner, .office-hero--osaka .office-hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 32px; }
  .office-team__pair, .office-team--osaka .office-team__pair { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 32px; }
  .office-daily--osaka .office-daily__inner { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
}
@media (max-width: 980px) {
  .office-terms .campus-time__body { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .campus-time--osaka .campus-map, .campus-time--osaka .campus-table { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  /* スマホ：1列。応募バーは data-apply-hero でこの画面の間は出ない */
  .breadcrumb + .office-hero { padding: 12px 0 32px; }
  .office-hero__inner, .office-hero--osaka .office-hero__inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .office-hero__title, .office-hero--osaka .office-hero__title { margin: 0; font-size: clamp(27px, 8.3vw, 34px); line-height: 1.32; }
  .office-hero__title .nowrap:first-child, .office-hero--osaka .office-hero__title .nowrap:first-child { display: block; }
  .office-hero__catch, .office-hero--osaka .office-hero__catch { margin-top: 6px; font-size: 23px; line-height: 1.45; }
  .office-hero__address { margin-top: 6px; font-size: 13px; line-height: 1.55; }
  .office-hero__apply { margin-top: 12px; }
  .office-hero .entry-buttons--left { display: grid; }
  .office-hero .entry-button { padding: 12px 60px 12px 18px; }
  .office-hero__photos, .office-hero--osaka .office-hero__photos { margin: 14px -24px 0; }
  .office-hero .office-map svg, .office-hero--osaka .office-map svg { height: auto; min-height: 0; width: min(100%, 280px); }
  .office-hero .office-map__label, .office-hero--osaka .office-map__label { font-size: 21px; }
  .office-hero__map { margin-top: 12px; }
  /* 関西は写真から始める */
  .office-hero--osaka .office-hero__photos { order: -1; margin: 0 -24px 14px; }
  .office-hero--osaka .office-hero__photos img { height: 160px; }

  .office-sec.section { padding: 40px 0; }
  .office-rows > .office-row, .office-daily--osaka .office-rows > .office-row { grid-template-columns: minmax(0, 1fr); row-gap: 10px; padding: 24px 0; }
  .office-row--shift .office-row__body, .office-row .daily__quotes { grid-template-columns: minmax(0, 1fr); gap: 20px; }

  /* チーム：見出しを先に。関東は写真→言葉、関西は言葉→写真 */
  .office-team__pair, .office-team--osaka .office-team__pair { display: flex; flex-direction: column; gap: 24px; }
  .office-team__words { display: contents; }
  .office-team__words .head { order: -1; }
  .office-team__words .daily__quotes { order: 1; margin-top: 0; }
  .office-team--osaka .office-team__words .daily__quotes { order: 0; }
  .office-team--osaka .office-event { order: 1; }
  .office-event { margin: 0 -24px; }
  .office-event__cap, .office-event__facts, .office-event__more, .office-event .photo-notice { margin-left: 24px; margin-right: 24px; }

  .office-terms__pair { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .office-sec .office-route li { grid-template-columns: minmax(0, 1fr) auto; }
  .office-sec .office-route__from { grid-column: 1 / -1; }
  .office-terms .campus-time { margin-top: 32px; padding: 32px 0 40px; }
  .office-terms .campus-table { font-size: 12.5px; }
  .office-terms .campus-table__n b { font-size: 13px; }

  .office-local__inner { grid-template-columns: minmax(0, 1fr); row-gap: 20px; }
  main:has(.office-hero) .guide--compact { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 400px) {
  .office-terms .campus-table { font-size: 12px; }
  .office-terms .campus-table__n b { font-size: 12px; }
  .office-terms .campus-table th[scope="rowgroup"], .office-terms .campus-table td { padding-left: 3px; padding-right: 3px; }
}
/* 幅320で通学時間の表が画面からはみ出さないよう、文字と余白を詰める */
@media (max-width: 340px) {
  .campus-time__body .campus-table { font-size: 11px; }
  .campus-time__body .campus-table thead th { padding-left: 2px; padding-right: 2px; font-size: 11px; }
  .campus-time__body .campus-table th[scope="rowgroup"], .campus-time__body .campus-table td { padding-left: 2px; padding-right: 2px; }
  .campus-time__body .campus-table__n b { font-size: 11px; }
}
/* <<< office-2026-11-02 */
