/* 株式会社NEXST 新しいホームページ v3/site「写真誌」全27ページ（土台＝v3/a/assets/style.css。24章から下が下層ページの部品）
   このファイルはデザインの責任者だけが直す。班ごとの追加は assets/g-<班の名前>.css（CONCEPT.md）
   白地に大きな写真・墨の大きな見出し・余白で見せる、静かで品のある版
   色：白 #FFFFFF／少し暖かい灰 #F3F1EC／墨 #1A1A1A／補足 #555／黄 #F2C230（細い下線・小さな印・固定バーの主ボタンだけ）／れんが #9C2B1E（満室の札だけ）
   書体：見出し＝Zen Kaku Gothic New 700/900、本文＝BIZ UDPGothic 400/700
   Zen Kaku Gothic New は palt（かな詰め）を持たない＝字間は letter-spacing を負にして詰める。見出し中の「、」は .pk で半分に詰める
   字の大きさ：画面に出る字は16px以上。例外は写真の説明（figcaption）だけ14px＝写真の外に置く小さな札で、実写に替えたら消す前提 */

/* ---------- 1. 土台 ---------- */
:root {
  --white: #FFFFFF;
  --gray: #F3F1EC;
  --ink: #1A1A1A;
  --sub: #555555;
  --line: #D6D6D2;
  --accent: #F2C230;
  --brick: #9C2B1E;
  --ph-bg: #E9E9E5;

  --f-head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --f-body: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --gutter: 20px;
  --wrap: 1200px;
  --measure: 640px;
  --sec: 72px;          /* 段の上下の余白（スマホ） */
  --bar-h: 96px;        /* 下の固定バーの高さ（おおよそ） */
  --tap: 44px;
  --gap: 24px;          /* 部品と部品の間（v2 のページ固有の <style> が使う） */
}
@media (min-width: 960px) {
  :root { --gutter: 40px; --sec: 136px; --bar-h: 60px; --gap: 32px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--f-body); font-size: 17px; line-height: 1.95; letter-spacing: .02em;
}
@media (min-width: 960px) { body { font-size: 18px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1.2em; }
h1, h2, h3 { margin: 0; font-family: var(--f-head); font-weight: 700; line-height: 1.45; letter-spacing: -.03em; word-break: keep-all; overflow-wrap: anywhere; }
p { text-wrap: pretty; }
.pk { margin-right: -.4em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
small { font-size: 16px; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.site-footer :focus-visible { outline-color: #FFFFFF; }   /* フッターは黒地なので白い枠（点検の指摘） */

.wrap { max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.nw { white-space: nowrap; }
.ib { display: inline-block; }
.skip { position: absolute; left: 8px; top: -80px; z-index: 80; background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 700; }
.skip:focus { top: 8px; }
.pc-only { display: none; }
@media (min-width: 960px) { .pc-only { display: inline; } }

/* ---------- 2. 上の帯（提案の見本） ---------- */
.demo-band {
  background: var(--ink); color: var(--white);
  font-size: 16px; line-height: 1.5; text-align: center; letter-spacing: 0;
  padding: 5px var(--gutter);
}
.notes-flag { display: none; }
html.notes .notes-flag { display: inline; }

/* ---------- 3. ヘッダー ---------- */
.site-header { background: var(--white); position: relative; z-index: 30; border-bottom: 1px solid var(--line); }
.site-header:has(.menu[open]) { z-index: 45; }   /* メニューを開いている間は下の固定バー（40）より上に出す */
.header-top {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "logo menu" "desc desc";
  align-items: center; gap: 0 16px; padding-top: 10px; padding-bottom: 10px;
}
.site-logo { grid-area: logo; display: flex; align-items: center; min-height: var(--tap); text-decoration: none; min-width: 0; }
.site-logo-name { font-family: var(--f-head); font-size: 22px; font-weight: 900; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; }
.site-logo-name small { font-family: var(--f-body); font-size: 16px; font-weight: 400; color: var(--sub); margin-left: 8px; letter-spacing: .02em; }
.site-desc { grid-area: desc; font-size: 16px; line-height: 1.5; color: var(--sub); letter-spacing: 0; word-break: keep-all; overflow-wrap: anywhere; }   /* 句の切れ目は HTML の <wbr>（「大東／市」で折らない） */
.header-contact { display: none; }
.header-tel { margin: 0; display: flex; flex-direction: column; align-items: flex-end; line-height: 1.3; }
.header-tel a { display: inline-flex; align-items: center; min-height: var(--tap); font-family: var(--f-head); font-weight: 900; font-size: 24px; letter-spacing: 0; text-decoration: none; }
.header-tel span { font-size: 16px; color: var(--sub); }

.menu { grid-area: menu; }
.menu summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  min-height: var(--tap); min-width: 92px; padding: 0 14px; border: 1px solid var(--ink);
  font-weight: 700; font-size: 16px; letter-spacing: .02em;
}
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: var(--white); }
.menu-panel {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 50; background: var(--white);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--ink);
  padding: 24px var(--gutter) calc(32px + env(safe-area-inset-bottom)); max-height: 78vh; max-height: calc(100svh - var(--menu-top, 190px)); overflow-y: auto; overscroll-behavior: contain;
}
.sitemap-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 48px; max-width: var(--wrap); margin: 0 auto; }
@media (min-width: 640px) { .sitemap-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .sitemap-cols { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.sitemap-h, .sitemap-group h2 {
  margin: 0 0 6px; padding-bottom: 8px; border-bottom: 1px solid var(--ink);
  font-family: var(--f-head); font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: -.02em;
  word-break: keep-all; overflow-wrap: anywhere;
}
.sitemap-group ul { list-style: none; }
/* メニューとフッターの一覧：句の途中（「よくある／質問」「病院の／方へ」）で折らない＝折ってよい所は HTML の <wbr> と .nw だけ */
.sitemap-group li { font-size: 16px; line-height: 1.5; word-break: keep-all; overflow-wrap: anywhere; }
.sitemap-group li a { display: block; padding: 10px 0; text-decoration: none; }
.sitemap-group li a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.sitemap-group li.sub a { padding-left: 14px; }
.sitemap-group a[aria-current="page"] { font-weight: 700; }

.site-nav { display: none; }
.header-info { border-top: 1px solid var(--line); font-size: 16px; color: var(--sub); letter-spacing: 0; }
.header-info .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; min-height: 40px; }
.header-info a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line); }
.header-info a[data-demo] { font-weight: 700; text-decoration: none; }
.header-info .sep { color: var(--line); }
@media (max-width: 959px) {
  .header-info .sep { display: none; }
  .header-info .wrap { justify-content: space-between; white-space: nowrap; }
}

@media (min-width: 960px) {
  .header-top { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: "logo desc contact menu"; gap: 0 28px; padding-top: 18px; padding-bottom: 18px; }
  .site-desc { font-size: 16px; padding-left: 28px; border-left: 1px solid var(--line); }
  .header-contact { grid-area: contact; display: flex; align-items: center; gap: 24px; }
  .site-nav { display: block; border-top: 1px solid var(--line); }
  .site-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0 36px; }
  .site-nav li { font-size: 16px; }
  .site-nav a { display: flex; align-items: center; min-height: 52px; text-decoration: none; font-weight: 700; letter-spacing: 0; }
  .site-nav a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
  .header-info { display: none; }
}
/* 幅960〜1099：ロゴ・電話・お問い合わせ・メニューの間に説明を入れると2字ずつに縦に折れる＝説明はスマホと同じく下の段へ */
@media (min-width: 960px) and (max-width: 1099px) {
  .header-top { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "logo contact menu" "desc desc desc"; }
  .site-desc { padding-left: 0; border-left: 0; }
}

/* ---------- 4. ボタンと文字のリンク ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 6px 28px;
  border: 1px solid var(--ink); background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 16px; letter-spacing: .02em; line-height: 1.4; text-decoration: none; text-align: center;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--ink { background: var(--ink); color: var(--white); }
.btn--ink:hover { background: var(--white); color: var(--ink); }
/* v2 の主ボタン（btn--primary）は A では墨のボタン。黄色は固定バーの「見学予約」だけ */
.btn--primary { background: var(--ink); color: var(--white); }
.btn--primary:hover { background: var(--white); color: var(--ink); }
button.btn { font-family: inherit; cursor: pointer; }
.btn--block { display: flex; width: 100%; min-height: 60px; font-size: 18px; }
.btn-row { margin: 8px 0 20px; }

.text-link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px;
  font-weight: 700; font-size: 16px; letter-spacing: .02em; text-decoration: none;
}
.text-link { position: relative; padding-right: 2px; }
.text-link::before { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 1px; background: var(--ink); transition: background-color .2s, height .2s; }
.text-link:hover::before { height: 3px; background: var(--accent); }
.text-link::after { content: "→"; font-family: var(--f-body); display: inline-block; transition: transform .2s; }
.text-link:hover::after { transform: translateX(4px); }

/* ---------- 5. 写真 ---------- */
.photo { position: relative; margin: 0; background: var(--gray); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* 写真の説明は写真の外（すぐ下）に置く。写真の上には何も貼らない */
.photo figcaption {
  position: absolute; left: 0; top: 100%; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px;
  padding: 8px var(--gutter) 0; color: var(--sub); font-size: 14px; line-height: 1.5; letter-spacing: .02em;
}
.photo .credit { color: var(--sub); }
@media (min-width: 960px) { .bleed--photo-right > .photo figcaption { padding-left: 0; padding-right: 0; } }

/* ---------- 6. 段の共通 ---------- */
.section { padding: var(--sec) 0; }
/* トップだけ：写真から始まる段（下層は .section--photo-top） */
.is-top #s1 { padding-top: 0; }
.section--gray { background: var(--gray); }
.section-head { margin-bottom: 36px; }
.tag {
  display: flex; align-items: center; gap: 14px; margin: 0 0 22px;
  font-size: 16px; font-weight: 700; line-height: 1.5; letter-spacing: .02em; color: var(--ink);
}
.tag::before { content: ""; width: 40px; height: 1px; background: var(--ink); flex: none; }
.section-title { font-size: clamp(24px, 6.4vw, 40px); line-height: 1.5; }
.section-title--sm { font-size: clamp(22px, 5.6vw, 30px); }
@media (min-width: 960px) {
  .section-title { font-size: clamp(30px, 3vw, 40px); }
  .section-title--sm { font-size: 28px; }
  .section-head { margin-bottom: 44px; }
}
.section p:not(.note):not(.tag) { max-width: var(--measure); word-break: auto-phrase; }

/* 写真を画面の端まで伸ばす2列（PC）。スマホは写真を端から端まで→文字 */
.bleed > .photo { margin: 0 0 48px; aspect-ratio: 4 / 3; }
.bleed > .photo:has(figcaption) { margin-bottom: 64px; }
.bleed > .bleed-text { padding: 0 var(--gutter); }
.bleed > .note { margin-left: var(--gutter); margin-right: var(--gutter); }
.bleed--photo-right > .bleed-text { order: 2; }
.bleed--photo-right > .photo { order: 1; }
.bleed--photo-right > .note { order: 3; }
/* スマホ：写真が右の段は「見出し→写真→本文」の順にする（写真が2枚続かないように） */
@media (max-width: 959px) {
  .bleed--photo-right { display: flex; flex-direction: column; }
  .bleed--photo-right > .bleed-text { display: contents; }
  .bleed--photo-right > .bleed-text > * { order: 3; margin-left: var(--gutter); margin-right: var(--gutter); }
  .bleed--photo-right > .bleed-text > .section-head { order: 1; }
  .bleed--photo-right > .photo { order: 2; }
  .bleed--photo-right > .note { order: 4; }
  .bleed--photo-right > .bleed-text > .text-link { align-self: flex-start; }
  .is-top #s6 { padding-top: 0; }
}
@media (min-width: 960px) {
  .bleed {
    display: grid; align-items: center;
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 540px) 100px minmax(0, 560px) minmax(var(--gutter), 1fr);
  }
  .bleed > .bleed-text { padding: 0; }
  .bleed > .photo { margin: 0; aspect-ratio: auto; height: min(82vh, 760px); min-height: 560px; }
  .bleed--photo-left > .photo { grid-column: 1 / 3; grid-row: 1; }
  .bleed--photo-left > .bleed-text { grid-column: 4 / 5; grid-row: 1; }
  .bleed--photo-right > .bleed-text { grid-column: 2 / 3; grid-row: 1; order: 0; }
  .bleed--photo-right > .photo { grid-column: 4 / 6; grid-row: 1; order: 0; }
  .bleed > .note { grid-column: 2 / 5; order: 0; margin-left: 0; margin-right: 0; }
}

/* ---------- 7. 最初の画面 ---------- */
.hero { padding: 0; }
.hero-photo { aspect-ratio: 4 / 3; width: 100%; }
.hero-photo img { object-position: 62% 55%; }
/* スマホ：写真の説明は写真のすぐ下に横書きで置き、見出しは幅いっぱいに使う（2026-10-08 共通の係）。
   以前は白い面を写真に食い込ませ、右の64pxの欄に縦書きの説明を置いていた＝見出しの幅が細くなり、句の途中で4行に割れていた */
@media (max-width: 959px) {
  .hero-photo, .page-hero-photo { aspect-ratio: auto; background: transparent; }
  .hero-photo img, .page-hero-photo img { aspect-ratio: 4 / 3; height: auto; background: var(--gray); }
  .hero-photo figcaption, .page-hero-photo figcaption { position: static; padding: 8px var(--gutter) 0; }
}
.hero-text {
  position: relative; z-index: 3; background: var(--white);
  margin: 0; padding: 28px var(--gutter) 0;
}
.kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font-size: 16px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
}
.kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent); flex: none; }
.hero-title { line-height: 1.3; letter-spacing: -.03em; margin-bottom: 28px; }
.h1-main { display: inline-block; font-weight: 900; font-size: clamp(30px, 8.6vw, 60px); line-height: 1.3; letter-spacing: -.04em; margin-bottom: 8px; }
.h1-sub { display: inline-block; font-weight: 700; font-size: clamp(18px, 4.8vw, 24px); letter-spacing: 0; line-height: 1.6; }
.h1-num { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 10px; margin-top: 6px; font-weight: 700; font-size: clamp(18px, 4.8vw, 24px); letter-spacing: 0; line-height: 1.5; }
.h1-num .big {
  display: inline; font-weight: 900; font-size: clamp(48px, 13vw, 64px); line-height: 1.05; letter-spacing: -.02em;
  font-variant-numeric: proportional-nums;
}
.u { font-size: .42em; font-weight: 700; letter-spacing: 0; margin: 0 .08em; }
.h1-num .big .u:first-child { margin-left: 0; }
.hero-lead { font-size: 17px; color: var(--ink); max-width: 30em; margin-bottom: 0; word-break: auto-phrase; }

@media (min-width: 960px) {
  .hero-grid {
    display: grid; align-items: center;
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 470px) 70px minmax(0, 660px) minmax(var(--gutter), 1fr);
  }
  .hero-photo { grid-column: 4 / 6; grid-row: 1; aspect-ratio: auto; max-height: none; height: min(calc(100svh - 172px - var(--bar-h)), 820px); min-height: 560px; }
  .hero-photo figcaption { padding: 10px 0 0; }
  .hero-text { grid-column: 2 / 3; grid-row: 1; margin: 0; padding: 72px 0; background: transparent; }
  .h1-main { font-size: clamp(40px, 4.1vw, 58px); margin-bottom: 26px; }
  .h1-num .big { font-size: clamp(72px, 7vw, 100px); }
  .hero-lead { font-size: 18px; }
}

/* 空き状況と入口3つ（最初の画面のすぐ後） */
.hero-sub { padding: 56px 0 var(--sec); }
.hero-sub-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 64px; }
.vacancy { border-top: 1px solid var(--ink); }
.vacancy-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 16px; padding: 18px 0 6px; }
.vacancy-title { margin: 0; font-family: var(--f-head); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.vacancy-date { margin: 0; font-size: 16px; color: var(--sub); }
.vacancy dl > .vacancy-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.vacancy dt { font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.4; }
.vacancy dt small { display: block; font-family: var(--f-body); font-weight: 400; font-size: 16px; color: var(--sub); margin-top: 2px; letter-spacing: .02em; }
.vacancy dd { text-align: right; font-size: 16px; line-height: 1.4; }
.vacancy dd small { display: block; color: var(--sub); margin-top: 4px; }
.status { font-family: var(--f-head); font-weight: 900; font-size: 26px; letter-spacing: -.02em; }
.status--full { color: var(--brick); font-size: 20px; font-weight: 700; }

.entry-list { list-style: none; border-top: 1px solid var(--ink); }
.entry-list li { border-bottom: 1px solid var(--line); }
.entry {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 0 14px;
  min-height: 96px; padding: 18px 0; text-decoration: none;
}
.entry-no { align-self: start; padding-top: 6px; font-family: var(--f-head); font-weight: 900; font-size: 16px; letter-spacing: .02em; }
.entry-no::after { content: ""; display: block; width: 18px; height: 3px; margin-top: 6px; background: var(--accent); }
.entry-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.entry-kind { font-size: 16px; color: var(--sub); letter-spacing: .02em; line-height: 1.5; }
.entry-want { font-family: var(--f-head); font-weight: 700; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
.entry-line { font-size: 16px; color: var(--sub); line-height: 1.5; }
.entry-arrow { font-size: 22px; transition: transform .2s; }
.entry:hover .entry-want { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.entry:hover .entry-arrow { transform: translateX(4px); }
.entry-sub { margin: 18px 0 0; }

@media (min-width: 960px) {
  .hero-sub { padding: 64px 0 var(--sec); }
  .hero-sub-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 96px; align-items: start; }
  .entry { min-height: 112px; grid-template-columns: 64px minmax(0, 1fr) auto; }
  .entry-want { font-size: 26px; }
}

/* ---------- 8. S1 はたらく場所 ---------- */
.points { list-style: none; margin: 8px 0 28px; border-top: 1px solid var(--line); max-width: var(--measure); }
.points li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.7; word-break: auto-phrase; }
.em { font-weight: 700; }

/* ---------- 9. S2 工賃（特大の数字） ---------- */
.wage-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.em-num { margin: 8px 0 48px; display: flex; flex-direction: column; }
.em-num-label { font-size: 16px; font-weight: 700; letter-spacing: .02em; color: var(--sub); }
.em-num-v {
  font-family: var(--f-head); font-weight: 900; font-size: clamp(44px, 12vw, 64px); line-height: 1.05; letter-spacing: -.02em;
  margin-top: 6px;
}
.em-num-v .u:first-child { margin-left: 0; }
.wage-head { order: 1; }
.wage-table { order: 2; }
.photo--wage { order: 3; margin: 56px calc(var(--gutter) * -1) 0; aspect-ratio: 4 / 3; }
.table-scroll { overflow-x: auto; max-width: 100%; }
.data-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; min-width: 300px; }
.data-table caption { caption-side: bottom; text-align: left; font-size: 16px; color: var(--sub); line-height: 1.8; padding-top: 16px; word-break: auto-phrase; }
.data-table th, .data-table td { padding: 16px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table thead th { font-size: 16px; font-weight: 700; color: var(--sub); border-bottom: 1px solid var(--ink); letter-spacing: .02em; line-height: 1.4; }
.data-table .is-ours td { font-size: 18px; font-weight: 700; }
@media (max-width: 389px) {
  .data-table { letter-spacing: 0; }
  .data-table th, .data-table td { padding-left: 4px; padding-right: 4px; }
  .data-table .is-ours td { font-size: 16px; }
  .data-table .ph { padding: 0; }
}
@media (min-width: 960px) { .data-table .is-ours td { font-size: 20px; } }
.data-table tbody th { font-weight: 700; word-break: keep-all; overflow-wrap: anywhere; }
.is-top .data-table tbody th { white-space: nowrap; }
.data-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table td small { display: block; color: var(--sub); }
.data-table .is-ours td:first-of-type { font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.data-table .is-ref { color: var(--sub); }
.wage-table .text-link { margin-top: 20px; }
@media (min-width: 960px) {
  .wage-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 88px; align-items: end; }
  .wage-head { grid-column: 1; grid-row: 1; }
  .photo--wage { grid-column: 2; grid-row: 1 / 3; align-self: stretch; margin: 0; aspect-ratio: auto; min-height: 640px; }
  .wage-table { grid-column: 1; grid-row: 2; max-width: 620px; }
  .em-num { margin-bottom: 64px; }
  .em-num-v { font-size: 72px; }
}

/* ---------- 10. S3 住まい ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 36px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-width: var(--measure); }
.fact { padding: 22px 0 20px; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact dt { font-size: 16px; font-weight: 700; color: var(--sub); letter-spacing: .02em; line-height: 1.5; }
.fact dd { font-size: 16px; line-height: 1.5; }
.fact .v { display: block; font-family: var(--f-head); font-weight: 900; font-size: clamp(26px, 7vw, 44px); overflow-wrap: anywhere; line-height: 1.15; letter-spacing: -.01em; margin: 4px 0 4px; }
.is-top .fact .v { font-size: clamp(40px, 11vw, 60px); }
/* 数字の札の小さい部分（「円」「から」「日」）：.4em だと幅390・360で約11px＝16px を下回らないようにする（2026-10-08 recruit-a の直しを全ページへ） */
.fact .v small { font-size: max(16px, .4em); font-weight: 700; margin-left: .08em; letter-spacing: 0; }

/* ---------- 11. S4 写真に白いベタの面を重ねる ---------- */
.section--feature { padding-top: 0; }
.photo--feature { aspect-ratio: 1 / 1; }
.photo--feature img { object-position: 50% 70%; }
@media (max-width: 959px) { .section--feature .section-title { font-size: clamp(22px, 6.2vw, 40px); } }
.feature-panel { position: relative; z-index: 3; background: var(--white); margin: -48px calc(64px - var(--gutter)) 0 calc(var(--gutter) * -1); padding: 32px 0 0 var(--gutter); }
.feature-panel p { margin-bottom: 0; }
@media (min-width: 960px) {
  .section--feature { padding: 0 0 var(--sec); }
  .photo--feature img { object-position: 50% 55%; }
  .photo--feature { aspect-ratio: auto; height: min(88vh, 820px); min-height: 600px; }
  .feature-panel { margin: -260px 0 0 calc(var(--gutter) * -1); padding-right: 64px; width: min(680px, 56%); padding: 64px 64px 0 var(--gutter); }
}

/* ---------- 12. 見出し左・本文右の2列（S5・S7・よくある質問・所在地） ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
@media (min-width: 960px) {
  .two-col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 96px; align-items: start; }
  .two-col > .section-head { margin-bottom: 0; }
  .two-col > .note { grid-column: 1 / -1; }
}
/* PC：左の欄が見出しだけの時、本文を読み進めても見出しが横に付いてくる（左の欄が空き地にならない）。
   見出しの下に写真がある欄（背が高い）と、画面の低いPCでは付けない（下の端が見えなくなるため） */
@media (min-width: 960px) and (min-height: 640px) {
  .two-col > .section-head:not(:has(figure)) { position: sticky; top: 40px; }
}

/* ---------- 13. S6 採用 ---------- */
.recruit-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.photo--square { margin: 0 calc(var(--gutter) * -1) 48px; aspect-ratio: 1 / 1; }
.photo--square img { object-position: 45% 50%; }
.facts--big { grid-template-columns: minmax(0, 1fr); }
.facts--big .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
.facts--big .fact:first-child .v { font-size: clamp(56px, 17vw, 96px); white-space: nowrap; }
@media (min-width: 960px) {
  .recruit-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 0 96px; align-items: center; }
  .photo--square { margin: 0; }
  .recruit-text > .note { max-width: none; }
}

/* ---------- 14. S7 会社 ---------- */
.section--company { padding-top: 0; }
.photo--wide { aspect-ratio: 4 / 3; margin-bottom: 64px; }
@media (min-width: 960px) {
  .photo--wide { aspect-ratio: 21 / 9; max-height: 640px; width: 100%; margin-bottom: 120px; }
  .photo--wide img { object-position: 50% 45%; }
}
.wrap-note { margin-left: var(--gutter) !important; margin-right: var(--gutter) !important; }

/* ---------- 15. S8・S9 2つ並べる ---------- */
.pair { padding: var(--sec) 0; }
.pair-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.pair-item { padding: 0 0 48px; }
.pair-item + .pair-item { padding-top: 48px; border-top: 1px solid var(--line); }
.pair-item .section-title { margin-bottom: 20px; }
/* 2つ並べは .section の外にあるので、本文の句ごとの折り返しと読む幅をここでも付ける（2026-10-08 採用のトップから全ページへ） */
.pair-item p:not(.note) { word-break: auto-phrase; max-width: var(--measure); }
@media (min-width: 960px) {
  .pair-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pair-item { padding: 8px 72px 8px 0; }
  .pair-item + .pair-item { padding: 8px 0 8px 72px; border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- 16. よくある質問 ---------- */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 36px minmax(0, 1fr) 24px; align-items: center; gap: 0 10px;
  min-height: 72px; padding: 16px 0;
  font-family: var(--f-head); font-weight: 700; font-size: 18px; line-height: 1.5; letter-spacing: -.02em; word-break: auto-phrase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; font-family: var(--f-body); font-weight: 400; font-size: 18px; text-align: right; color: var(--sub); }
.faq details[open] summary::after { content: "−"; }
.q-mark, .a-mark { font-family: var(--f-head); font-weight: 900; font-size: 18px; line-height: 1.5; }
.a-mark { color: var(--sub); }
.faq-a { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 0 10px; padding: 0 34px 24px 0; }
.faq-a p { margin: 0 0 .6em; font-size: 17px; }

/* ---------- 17. 締め（CTA） ---------- */
.section--cta { padding-bottom: calc(var(--sec) * .5); }
.section-title--cta { font-size: clamp(24px, 6.4vw, 44px); }
@media (min-width: 960px) { .section-title--cta { font-size: clamp(30px, 3.1vw, 40px); } }
.cta-lead { font-size: 18px; font-weight: 700; line-height: 1.85; word-break: auto-phrase; }
.cta-block .btn-row { margin: 32px 0 20px; max-width: 420px; }
.cta-sub { font-size: 16px; color: var(--sub); }
.photo--cta { aspect-ratio: 4 / 3; }
@media (min-width: 960px) {
  .section--cta .bleed > .photo { height: min(70vh, 620px); min-height: 520px; }
}

/* ---------- 18. 所在地 ---------- */
.section--access { padding-top: calc(var(--sec) * .3); }
.section--access > .wrap { border-top: 1px solid var(--ink); padding-top: 48px; }
@media (min-width: 960px) { .section--access > .wrap { border-top: 0; padding-top: 0; } .section--access .two-col { border-top: 1px solid var(--ink); padding-top: 56px; } }
.access { border-top: 1px solid var(--line); margin-top: 8px; }
@media (min-width: 960px) { .access { margin-top: 0; border-top: 0; } }
.access > div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.access dt { font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.5; letter-spacing: -.02em; }
.access dd { font-size: 17px; line-height: 1.7; color: var(--ink); margin-top: 4px; word-break: auto-phrase; }
@media (min-width: 960px) {
  .access > div { display: grid; grid-template-columns: 12em minmax(0, 1fr); gap: 0 24px; }
  .access dd { margin-top: 0; }
}

/* ---------- 19. 提案メモ・伏せ字 ---------- */
.ph { background: var(--ph-bg); border-bottom: 1px dotted var(--ink); padding: 0 3px; white-space: nowrap; }
.note { display: none; }
html.notes .note {
  display: block; margin: 12px 0; padding: 8px 12px; max-width: var(--measure);
  border: 1px dashed var(--brick); background: #FFFDF5; color: #5A2A1E;
  font-family: var(--f-body); font-size: 16px; font-weight: 400; line-height: 1.7; letter-spacing: 0; text-align: left; white-space: normal;
}
html.notes .note::before { content: "提案メモ："; font-weight: 700; }
html.notes .hero-grid > .note, html.notes .two-col > .note { grid-column: 1 / -1; }

/* ---------- 20. フッター ---------- */
.site-footer { background: var(--ink); color: #EDEDEA; padding: 88px 0 calc(40px + var(--bar-h) + env(safe-area-inset-bottom)); }
.site-footer a { color: #FFFFFF; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 5px; }
.site-footer .sitemap-group h2 { border-color: #4A4A48; color: #FFFFFF; }
.site-footer .sitemap-group a[aria-current="page"] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.footer-company { margin-top: 64px; padding-top: 40px; border-top: 1px solid #4A4A48; display: grid; gap: 32px; }
@media (min-width: 960px) { .footer-company { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; } }
.footer-name { margin: 0 0 8px; font-family: var(--f-head); font-size: 22px; font-weight: 900; letter-spacing: -.02em; color: #FFFFFF; }
.footer-company dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 0 12px; padding: 12px 0; border-top: 1px solid #3A3A38; }
.footer-company dt { color: #BDBDB8; font-size: 16px; line-height: 1.7; }
.footer-company dd { font-size: 16px; line-height: 1.7; word-break: auto-phrase; }
.footer-company dd a { display: inline-flex; align-items: center; min-height: var(--tap); vertical-align: middle; }
.footer-links { list-style: none; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer-links li { font-size: 16px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.footer-bottom { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 0 24px; color: #BDBDB8; }
.footer-bottom p { margin: 0; font-size: 16px; }
.site-footer .ph { color: var(--ink); }

/* ---------- 21. 画面下の固定バー ---------- */
.fixed-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--white); color: var(--ink); border-top: 1px solid var(--ink);
  padding: 6px 10px calc(8px + env(safe-area-inset-bottom));
}
.fixed-bar-inner { max-width: var(--wrap); margin: 0 auto; }
.fixed-bar-note { display: block; text-align: center; font-size: 16px; line-height: 1.4; margin: 0 0 6px; color: var(--sub); word-break: keep-all; overflow-wrap: anywhere; }   /* 句の切れ目は HTML の <wbr>（幅960で「もど／うぞ」と折れていた） */
.fixed-bar-btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px; }
.fb {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 2px 4px;
  border: 1px solid var(--ink); background: var(--white); color: var(--ink);
  font-size: 16px; font-weight: 700; line-height: 1.3; letter-spacing: .02em; text-align: center; text-decoration: none; white-space: nowrap;
}
.fb:hover { background: var(--ink); color: var(--white); }
.fb--mid { background: var(--accent); border-color: var(--accent); font-size: 17px; }
.fb--mid:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
@media (min-width: 960px) {
  .fixed-bar { padding: 6px var(--gutter); }
  .fixed-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
  .fixed-bar-note { margin: 0; text-align: left; }
  .fixed-bar-btns { width: 560px; flex: none; }
  .fb { min-height: 46px; }
}

/* 見本の知らせ（site.js が出す） */
.demo-toast {
  position: fixed; left: 50%; bottom: calc(var(--bar-h) + 16px); transform: translateX(-50%); z-index: 60;
  width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--white);
  padding: 12px 18px; font-size: 16px; font-weight: 700; line-height: 1.6;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.demo-toast.is-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- 22. 印刷 ---------- */
@media print {
  .demo-band, .skip, .menu, .site-nav, .header-info, .header-contact .btn, .fixed-bar, .demo-toast { display: none !important; }
  .site-footer { background: none; color: #000; padding-bottom: 20px; }
  .site-footer a { color: #000; }
  .section { padding: 32px 0; }
  .ph { border-bottom: 1px dotted #000; background: none; }
}

/* =====================================================================
   24. 下層ページ（v3/site で足した部品。v2 の部品名のまま A の見た目にする）
   ===================================================================== */

/* ---------- 24-1. 小さな道具 ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.br-sp { display: inline; }
.br-pc { display: none; }
@media (min-width: 960px) { .br-sp { display: none; } .br-pc { display: inline; } .sp-only { display: none; } }
.block { margin-top: var(--gap); }
.muted { color: var(--sub); }
.src { display: block; font-size: 16px; color: var(--sub); line-height: 1.7; }
.ph--long { white-space: normal; }
.page-meta { margin: 16px 0 0; font-size: 16px; color: var(--sub); line-height: 1.7; }
.section-lead { font-size: 18px; margin-top: 16px; }
.section h3, .h3 { margin: 40px 0 12px; font-size: clamp(19px, 5vw, 23px); line-height: 1.5; }
.wrap--narrow { max-width: calc(800px + var(--gutter) * 2); }
.status--wait { font-size: 20px; font-weight: 700; }
.vacancy-foot { margin: 0; padding: 12px 0; font-size: 16px; border-bottom: 1px solid var(--line); }

/* ---------- 24-2. パンくず（ヘッダーのすぐ下） ---------- */
.crumbs { border-bottom: 1px solid var(--line); }
.crumbs ol {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: calc(var(--wrap) + var(--gutter) * 2);
  display: flex; flex-wrap: wrap; align-items: center; font-size: 16px; line-height: 1.5; color: var(--sub); letter-spacing: 0;
}
.crumbs li { display: inline-flex; align-items: center; min-height: 44px; }
.crumbs li + li::before { content: "／"; margin: 0 10px; color: var(--line); }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); text-underline-offset: 4px; text-decoration-color: var(--line); }
.crumbs a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.crumbs [aria-current="page"] { color: var(--ink); font-weight: 700; }

/* 上の案内：今いる組に黄色の下線 */
@media (min-width: 960px) {
  .site-nav a[aria-current] { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 8px; }
}

/* ---------- 24-3. ページの最初の画面（写真＋見出し） ----------
   スマホ：写真 4:3 を端から端まで → 写真の説明は写真のすぐ下に横書き → 見出しは幅いっぱい（7章のトップと同じ。2026-10-08 に右の64pxの縦書きの欄をやめた）
   PC：左に見出し、右に画面の半分超の写真（トップの .hero と同じ形） */
.page-hero { padding: 0; }
.page-hero-photo { aspect-ratio: 4 / 3; width: 100%; }
.page-hero-photo img { object-position: 50% 55%; }
.page-hero-text {
  position: relative; z-index: 3; background: var(--white);
  margin: 0; padding: 28px var(--gutter) 0;
}
.page-hero-grid > .note { margin-left: var(--gutter); margin-right: var(--gutter); }
.page-title { font-weight: 900; font-size: clamp(28px, 7.4vw, 44px); line-height: 1.38; letter-spacing: -.04em; margin: 0 0 24px; }
.page-lead { font-size: 17px; max-width: 34em; margin-bottom: 0; word-break: auto-phrase; }
.page-hero-text .vacancy { margin-top: 36px; }
.page-hero-text .facts { margin-top: 28px; margin-bottom: 0; }
.page-hero-text .btn-row { margin: 28px 0 0; max-width: 420px; }
.page-hero-text > .text-link { margin-top: 12px; }
@media (min-width: 960px) {
  .page-hero-grid {
    display: grid; align-items: center;
    grid-template-columns: minmax(var(--gutter), 1fr) minmax(0, 480px) 72px minmax(0, 650px) minmax(var(--gutter), 1fr);
  }
  .page-hero-photo {
    grid-column: 4 / 6; grid-row: 1; align-self: stretch; aspect-ratio: auto;
    min-height: max(520px, min(calc(100svh - 220px - var(--bar-h)), 760px));
  }
  .page-hero-photo figcaption { padding: 10px 0 0; }
  .page-hero-text { grid-column: 2 / 3; grid-row: 1; margin: 0; padding: 64px 0 72px; background: transparent; }
  .page-hero-grid > .note { grid-column: 2 / 5; margin-left: 0; margin-right: 0; }
  .page-title { font-size: clamp(34px, 3.1vw, 40px); }
  .page-lead { font-size: 18px; }
}
/* 写真の無いページ（個人情報・サイトの案内）：文字だけの最初の画面 */
.page-hero--plain { padding: 56px 0 0; }
.page-hero--plain .page-title { max-width: 18em; }
@media (min-width: 960px) { .page-hero--plain { padding-top: 96px; } }

/* ---------- 24-4. このページの目次（最初の画面のすぐ下） ---------- */
.page-toc { margin: 56px 0 0; border-top: 1px solid var(--ink); }
.page-toc-h { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 0 4px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.page-toc ol { list-style: none; counter-reset: toc; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.page-toc li { counter-increment: toc; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.45; word-break: auto-phrase; }
/* 目次：幅400px 未満は2列だと「はじめの1か／月」「時間帯で／選ぶ」のように句の途中で折れる＝1列にして、文は句の途中で折らない（2026-10-08 recruit-a の直しを全ページへ） */
@media (max-width: 399px) {
  .page-toc ol { grid-template-columns: minmax(0, 1fr); }
  .page-toc li { word-break: keep-all; overflow-wrap: anywhere; }
}
/* リンクは横並び（flex）にしない＝中に .nw や <wbr> を入れても字の間が空かない（2026-10-08）。番号と↓は左右の余白に置く */
.page-toc a { position: relative; display: block; min-height: 52px; padding: 14px 24px 14px 32px; font-weight: 700; text-decoration: none; }
.page-toc a::before { content: counter(toc, decimal-leading-zero); position: absolute; left: 0; top: 14px; font-family: var(--f-head); font-weight: 900; font-size: 16px; line-height: 1.45; color: var(--sub); letter-spacing: .02em; }
.page-toc a::after { content: "↓"; position: absolute; right: 0; top: 14px; color: var(--sub); font-weight: 400; line-height: 1.45; transition: transform .2s; }
.page-toc a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.page-toc a:hover::after { transform: translateY(3px); }
@media (min-width: 960px) {
  .page-toc { margin-top: 64px; display: grid; grid-template-columns: 11em minmax(0, 1fr); gap: 0 40px; align-items: start; }
  .page-toc-h { padding-top: 18px; }
  .page-toc ol { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0 40px; }
}

/* ---------- 24-5. 段の色と並び ----------
   .section（白）／.section--paper（白）／.section--tint ＝ .section--gray（少し暖かい灰）
   白の段が2つ続く時は、後ろの段の頭に細い線を引く（トップは除く）。
   線と「上の余白0」は .wrap で始まる段だけ＝写真つきの締め（.bleed で始まる）などは上の余白を残す（2026-10-08） */
.section--tint { background: var(--gray); }
.section--paper { background: var(--white); }
.section--photo-top { padding-top: 0; }   /* 写真から始まる段（写真左の .bleed）：上の余白を0にして写真で段を切り替える */
body:not(.is-top) .section:not(.section--tint):not(.section--gray):not(.section--feature) + .section:not(.section--tint):not(.section--gray):not(.section--feature):not(.section--photo-top):has(> .wrap:first-child) { padding-top: 0; }
body:not(.is-top) .section:not(.section--tint):not(.section--gray):not(.section--feature) + .section:not(.section--tint):not(.section--gray):not(.section--feature):not(.section--photo-top) > .wrap:first-child {
  width: calc(100% - var(--gutter) * 2); max-width: var(--wrap); padding: var(--sec) 0 0; border-top: 1px solid var(--line);
}
.section-title { margin-bottom: 32px; }
.section-head .section-title, .feature-panel .section-title { margin-bottom: 0; }
@media (min-width: 960px) { .section-title { margin-bottom: 44px; } .section-head .section-title { margin-bottom: 0; } }
.tag--sign::before { width: 28px; height: 3px; background: var(--accent); }
.tag--line::before { background: var(--line); }

/* 2つ並べ（文と写真）。スマホは上下、PC は 7:5。.split--rev は PC で写真を左へ */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; }
.split > * { min-width: 0; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 0 88px; align-items: center; }
  .split--rev { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split--rev > :first-child { order: 2; }
  .split--top { align-items: start; }
}
.two-col-body > :last-child { margin-bottom: 0; }

/* ---------- 24-6. 写真（文の流れの中に置く1枚）＝ figure.fig ----------
   .bleed／.page-hero／.photo--wide の中は .photo（説明は写真のすぐ下に浮かせる）。
   それ以外（.split の中・段の途中）は .fig（説明は普通に下へ並ぶ） */
.fig { margin: 0; }
.fig img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--gray); }
.fig--square img { aspect-ratio: 1 / 1; }
.fig--tall img { aspect-ratio: 4 / 5; }
.fig--wide img { aspect-ratio: 16 / 9; }
.fig figcaption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; padding-top: 8px; color: var(--sub); font-size: 14px; line-height: 1.5; letter-spacing: .02em; }
.fig .credit { color: var(--sub); }
@media (max-width: 959px) {
  .fig--bleed-sp { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); }
  .fig--bleed-sp figcaption { padding-left: var(--gutter); padding-right: var(--gutter); }
}
@media (min-width: 960px) { .fig--tall-pc img { aspect-ratio: 4 / 5; } }

/* 見出しの下に置く写真（見出し左・本文右の段）：スマホは見出しと本文の間、PC は左の欄で見出しの下。
   名前は .head-fig（採用の2班の .ra-head-fig・.rb-faq-fig は同じ物＝2026-10-08 にここへまとめた） */
:is(.head-fig, .ra-head-fig, .rb-faq-fig) { margin-top: 28px; }
@media (min-width: 960px) { :is(.head-fig, .ra-head-fig, .rb-faq-fig) { margin-top: 44px; } }

/* ---------- 24-7. 箇条書き・ことばの説明 ---------- */
.points li .note { margin-top: 8px; }
.points--check li { position: relative; padding-left: 30px; }
.points--check li::before { content: ""; position: absolute; left: 0; top: calc(14px + .55em); width: 14px; height: 14px; border: 1px solid var(--ink); }
.words { margin: 36px 0 0; padding: 24px; max-width: var(--measure); background: var(--gray); }
:is(.section--tint, .section--gray) .words { background: var(--white); }
.words-title { display: flex; align-items: center; gap: 12px; margin: 0 0 4px; font-size: 16px; font-weight: 700; line-height: 1.5; }
.words-title::before { content: ""; width: 28px; height: 1px; background: var(--ink); flex: none; }
.words dt { margin-top: 16px; font-family: var(--f-head); font-weight: 700; font-size: 17px; line-height: 1.5; letter-spacing: -.01em; }
.words dd { font-size: 16px; line-height: 1.85; word-break: auto-phrase; }

/* ---------- 24-8. 数字（.em-num・.facts） ---------- */
.em-num-src { margin-top: 10px; font-size: 16px; color: var(--sub); }
.section-head .em-num { margin: 32px 0 0; }
@media (min-width: 960px) { .section-head .em-num { margin-top: 44px; } }
.em-num-v .u { font-size: .42em; }
.facts--row { max-width: none; }
.facts--stack { grid-template-columns: minmax(0, 1fr); }
.facts--stack .fact + .fact { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
.section--tint .facts, .section--gray .facts { border-color: var(--line); }

/* ---------- 24-9. 表 ---------- */
body:not(.is-top) .table-scroll { margin-top: 20px; }
.table-scroll:focus-visible { outline-offset: 2px; }
.table-scroll[data-wide] { border-right: 1px dashed var(--sub); }
.scroll-hint { display: block; margin: 20px 0 0; font-size: 16px; color: var(--sub); }
.scroll-hint + .table-scroll { margin-top: 4px; }
.data-table--wide { min-width: 640px; }
.data-table--kv th[scope="row"] { width: 7.5em; padding-right: 14px; }
/* 項目名（左の列）：幅600以上は 9字が1行に入る幅をとり、語の途中では折らない（<wbr> の所でだけ折る）。v2 の <br> も外して1行に（2026-10-08 home・partners 班の直しを全ページへ） */
@media (min-width: 600px) {
  .data-table--kv th[scope="row"] { width: calc(9.5em + 20px); word-break: keep-all; overflow-wrap: normal; }
  .data-table--kv th[scope="row"] br { display: none; }
}
/* 表の中の文も句ごとに折る（「就／労継続」「ネク／スト」のような語の途中の改行を防ぐ。2026-10-08 採用の2班から全ページへ） */
.data-table td { word-break: auto-phrase; }
/* 募集の条件の表：PC で1行が長くなりすぎないよう幅に上限（2026-10-08 採用の2班から） */
@media (min-width: 960px) { .rec-cond { max-width: 50em; } }
.data-table td .note, .data-table th .note { font-weight: 400; }
:is(.section--tint, .section--gray) .data-table { background: transparent; }
.calc { width: 100%; border-collapse: collapse; margin-top: 20px; max-width: var(--measure); font-size: 16px; line-height: 1.55; }
.calc caption { caption-side: bottom; text-align: left; font-size: 16px; color: var(--sub); padding-top: 12px; line-height: 1.8; }
.calc th, .calc td { padding: 14px 6px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.calc td.num { text-align: right; font-weight: 700; white-space: nowrap; }
.calc tfoot th, .calc tfoot td { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-weight: 700; font-size: 18px; }
@media (min-width: 960px) { body:not(.is-top) .data-table th, body:not(.is-top) .data-table td { padding-left: 10px; padding-right: 10px; } }

/* ---------- 24-10. 流れ（番号つき） ---------- */
.steps { list-style: none; counter-reset: s; margin: 8px 0 0; max-width: 760px; border-top: 1px solid var(--ink); }
.steps > li {
  position: relative; counter-increment: s; padding: 18px 0 18px 64px; border-bottom: 1px solid var(--line);
  font-size: 17px; line-height: 1.75; word-break: auto-phrase;
}
.steps > li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px;
  font-family: var(--f-head); font-weight: 900; font-size: 20px; line-height: 1.5; letter-spacing: .02em;
}
.steps > li::after { content: ""; position: absolute; left: 0; top: 52px; width: 18px; height: 3px; background: var(--accent); }
.step-title { display: block; font-family: var(--f-head); font-weight: 700; font-size: 19px; line-height: 1.5; letter-spacing: -.02em; }
.step-title + * { margin-top: 4px; }
.step-time { display: inline-block; margin-left: 8px; font-family: var(--f-body); font-weight: 400; font-size: 16px; color: var(--sub); letter-spacing: .02em; }
.steps > li p { margin: 4px 0 0; }
/* PC で横に流す（7つまで）。スマホは縦のまま */
@media (min-width: 960px) {
  .steps--flow { max-width: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
  .steps--flow > li { padding: 64px 16px 6px; border-bottom: 0; }
  .steps--flow > li + li { border-left: 1px solid var(--line); }
  .steps--flow > li::before { left: 16px; top: 18px; }
  .steps--flow > li::after { left: 16px; top: 52px; }
  .steps--flow > li:first-child { padding-left: 0; }
  .steps--flow > li:first-child::before, .steps--flow > li:first-child::after { left: 0; }
  /* 7つの流れ：4つ＋3つの2段にし、7つ目を2マス分にして右端と2段目の線を全幅にそろえる（2026-10-08 体験入居の直しを全ページへ） */
  .steps--flow:has(> li:nth-child(7):last-child) { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 24px; }
  .steps--flow:has(> li:nth-child(7):last-child) > li:nth-child(4n+1) { border-left: 0; padding-left: 0; }
  .steps--flow:has(> li:nth-child(7):last-child) > li:nth-child(4n+1)::before,
  .steps--flow:has(> li:nth-child(7):last-child) > li:nth-child(4n+1)::after { left: 0; }
  .steps--flow:has(> li:nth-child(7):last-child) > li:nth-child(n+5) { border-top: 1px solid var(--line); }
  .steps--flow:has(> li:nth-child(7):last-child) > li:nth-child(7) { grid-column: span 2; }
}

/* 写真に白い面を重ねる段（11章）で段落を2つ置く時 */
.feature-panel p + p { margin-top: 1.2em; }

/* ---------- 24-11. よくある質問（土台は 16章） ---------- */
.faq { max-width: 860px; }
.faq + .text-link { margin-top: 20px; }

/* ---------- 24-12. 声 ---------- */
.voice { margin: 32px 0 0; padding: 22px 0 0; border-top: 1px solid var(--ink); max-width: var(--measure); }
.voice::before {
  content: "声"; display: inline-flex; align-items: center; justify-content: center; min-width: 32px; height: 32px; padding: 0 8px; margin-bottom: 12px;
  border: 1px solid var(--ink); font-family: var(--f-head); font-weight: 700; font-size: 16px; line-height: 1;
}
.voice--say::before { content: "談"; }
.voice blockquote { margin: 0; }
.voice blockquote p { margin: 0 0 .6em; font-size: 18px; line-height: 1.95; word-break: auto-phrase; }
.voice figcaption { margin-top: 4px; font-size: 16px; color: var(--sub); }
.voice + .note + .voice, .voice + .voice { margin-top: 44px; }

/* ---------- 24-13. 締め（見学・応募）＝ .section--close ----------
   v2 の「h2.sr＋.cta-block」の段に .section--close を足す。一言を大きく、墨のボタンを1つ */
.section--close .cta-block { max-width: 760px; }
.section--close .cta-lead { font-family: var(--f-head); font-size: clamp(22px, 5.8vw, 32px); font-weight: 700; line-height: 1.6; letter-spacing: -.02em; margin-bottom: 0; }
.section--close .cta-block .btn-row { margin: 32px 0 20px; max-width: 420px; }
.section--close .cta-block .form + .cta-sub, .section--close .cta-block .form ~ .cta-sub { margin-top: 20px; }
/* 写真つきの締め（共通の形）：
   <section class="section section--close section--cta"><div class="bleed bleed--photo-right"><div class="bleed-text"><h2 class="sr">…</h2><div class="cta-block">…</div></div><figure class="photo photo--cta"><img…></figure></div></section>
   スマホは写真→一言→ボタン、PC は文字左・写真右。.bleed で始まるので白の段が続いても上の余白は残る（24-5） */
.section--close .bleed-text .cta-block { max-width: none; }
@media (min-width: 960px) {
  /* 入力欄の無い締め（PC）：一言は左・ボタンと電話は右の2列（左半分だけで右が空かないように） */
  .section--close > .wrap:not(.two-col) > .cta-block:not(:has(> .form)) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; gap: 0 96px;
  }
  .section--close > .wrap:not(.two-col) > .cta-block:not(:has(> .form)) > * { grid-column: 2; }
  .section--close > .wrap:not(.two-col) > .cta-block:not(:has(> .form)) > .cta-lead { grid-column: 1; grid-row: 1 / -1; align-self: center; }
  .section--close > .wrap:not(.two-col) > .cta-block:not(:has(> .form)) > .btn-row { margin: 0 0 16px; max-width: none; }
  .section--close > .wrap:not(.two-col) > .cta-block:not(:has(> .form)) > .cta-sub { margin-bottom: 0; }
  /* 入力欄のある締め（応募・見積もり・窓口）：一言は左（下へ読み進めても横に残る）・入力欄は右・電話は入力欄の下（2026-10-08 採用の2班・partners 班の指定をここへまとめた） */
  .section--close > .wrap:not(.two-col) > .cta-block:has(> .form) {
    max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 96px; align-items: start;
  }
  .section--close > .wrap:not(.two-col) > .cta-block:has(> .form) > * { grid-column: 1; }
  .section--close > .wrap:not(.two-col) > .cta-block:has(> .form) > .form { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; max-width: none; }
  .section--close > .wrap:not(.two-col) > .cta-block:has(> .form) > .cta-sub { grid-column: 2; margin-top: 20px; }
  .section--close > .wrap:not(.two-col) > .cta-block:has(> .form) > .cta-lead { position: sticky; top: 48px; }
}
body:not(.is-top) .btn-row { display: grid; gap: 12px; }
@media (min-width: 640px) { .btn-row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 640px !important; } }

/* ---------- 24-14. 入力の見本（div。送らない） ---------- */
.form { margin-top: 32px; max-width: 640px; padding-top: 28px; border-top: 1px solid var(--ink); }
.form-row { margin-bottom: 24px; }
.form-row > label, .form-label { display: block; margin-bottom: 8px; font-weight: 700; font-size: 17px; line-height: 1.5; }
.req, .opt { display: inline-block; margin-left: 10px; padding: 0 8px; font-size: 16px; line-height: 1.6; vertical-align: 1px; letter-spacing: .02em; }
.req { background: var(--ink); color: var(--white); font-weight: 700; }
.opt { border: 1px solid var(--line); color: var(--sub); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 52px; padding: 10px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--white);
  font: inherit; font-size: 17px; line-height: 1.6; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.form textarea { min-height: 140px; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 0; }
.form-hint { margin: 8px 0 0; font-size: 16px; color: var(--sub); }
.form-choices { display: grid; gap: 8px; }
.form-choice { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 14px; border: 1px solid var(--line); font-weight: 400; font-size: 17px; cursor: pointer; }
.form-choice:has(input:checked) { border-color: var(--ink); }
.form .form-choice input { width: 22px; height: 22px; min-height: 22px; padding: 0; margin: 0; flex: none; -webkit-appearance: auto; appearance: auto; accent-color: var(--ink); }
.form-actions { margin-top: 8px; }
@media (min-width: 640px) { .form-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 24-15. 次に読む・ほかのページへ ---------- */
.next-read { padding: var(--sec) 0; background: var(--gray); }
.next-read h2 { font-size: clamp(22px, 5.6vw, 28px); margin-bottom: 24px; }
.next-read ul { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.next-read li { border-bottom: 1px solid var(--line); }
.next-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; min-height: 96px; padding: 18px 0; text-decoration: none; }
.next-card b { font-family: var(--f-head); font-weight: 700; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; }
.next-card span { grid-column: 1; font-size: 16px; line-height: 1.6; color: var(--sub); }
.next-card::after { content: "→"; grid-column: 2; grid-row: 1 / span 2; font-size: 22px; transition: transform .2s; }
.next-card:hover b { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.next-card:hover::after { transform: translateX(4px); }
@media (min-width: 960px) {
  .next-read ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
  .next-read li:only-child { grid-column: 1 / -1; }   /* 1件だけの時は左半分に置かず全幅に */
}

.link-list { list-style: none; margin: 8px 0 12px; display: flex; flex-wrap: wrap; gap: 0 28px; }
.link-list li { font-size: 17px; line-height: 1.5; }
.link-list a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 6px; }
.link-list a:hover { text-decoration-color: var(--accent); text-decoration-thickness: 3px; }
.text-link--back::after { content: "←"; order: -1; }
.text-link--back:hover::after { transform: translateX(-4px); }

/* ---------- 24-16. 職種の一覧（採用）＝線で区切った行。3列のカードにはしない ---------- */
.job-cards { list-style: none; margin: 16px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--ink); }
.job-cards li { border-bottom: 1px solid var(--line); }
.job-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: center; min-height: 112px; padding: 18px 0; text-decoration: none; }
.job-place { grid-column: 1; justify-self: start; font-size: 16px; line-height: 1.5; color: var(--sub); }
.job-place--home { color: var(--ink); font-weight: 700; }
.job-name { grid-column: 1; font-family: var(--f-head); font-weight: 700; font-size: 22px; line-height: 1.4; letter-spacing: -.02em; }
.job-time { grid-column: 1; font-size: 16px; line-height: 1.5; color: var(--sub); }
.job-card::after { content: "→"; grid-column: 2; grid-row: 1 / span 3; font-size: 22px; transition: transform .2s; }
.job-card:hover .job-name { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.job-card:hover::after { transform: translateX(4px); }
@media (min-width: 960px) {
  .job-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 72px; }
}

/* ---------- 24-17. 入口の行（お問い合わせの3つの方法も .entry-cards で同じ形） ---------- */
.entry-cards { list-style: none; border-top: 1px solid var(--ink); }
.entry-cards li { border-bottom: 1px solid var(--line); }

/* ---------- 24-18. サイトの案内（全ページ一覧） ---------- */
.map-group + .map-group { margin-top: 56px; }
.map-list { list-style: none; border-top: 1px solid var(--ink); }
.map-list li { border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.map-list a { display: flex; align-items: center; min-height: 52px; padding: 6px 0; font-weight: 700; text-decoration: none; }
.map-list a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* ---------- 24-19. 採用の職種ページ：最初の画面の応募ボタンが見えている間は、下の固定バーを隠す（site.js） ----------
   JS が無い時は .bar-off が付かない＝固定バーは出たまま */
.is-job .fixed-bar { transition: transform .25s ease, visibility 0s linear 0s; }
.bar-off .fixed-bar { transform: translateY(100%); visibility: hidden; transition: transform .25s ease, visibility 0s linear .25s; }
@media (prefers-reduced-motion: reduce) {
  .is-job .fixed-bar, .bar-off .fixed-bar { transition: none !important; }
}

@media print {
  .crumbs, .page-toc, .next-read, .btn-row, .form-actions, .page-hero-photo, .fig { display: none !important; }
  .page-hero-text { margin: 0; padding: 0; }
  .section--tint { background: none; }
}
