/* ============================================================
   ケースリー堺初芝 下層ページ共通スタイル
   style.css（トップ）の変数・共通パーツを継承して使う
   ============================================================ */

/* ---- 下層ページのヘッダーは常に不透明 ---- */
.header--solid { background: rgba(244, 244, 239, 0.92); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.header--solid .header__name { color: var(--green-900); }
.header--solid .header__name-en { color: var(--muted); }
.header--solid .header__nav a:not(.btn) { color: var(--ink); }
.header__nav a.is-current { color: var(--green-700) !important; border-bottom: 1px solid var(--amber); padding-bottom: 3px; }

body.page { padding-top: 0; }

/* ---- ページヘッダー ---- */
.page-hero {
  position: relative;
  min-height: clamp(300px, 42vw, 460px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  color: var(--base);
}
.page-hero__bg { position: absolute; inset: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(23, 59, 49, 0.86) 0%, rgba(23, 59, 49, 0.55) 55%, rgba(23, 59, 49, 0.3) 100%),
    linear-gradient(to top, rgba(23, 59, 49, 0.6) 0%, rgba(23, 59, 49, 0) 45%);
}
.page-hero__inner {
  position: relative; z-index: 1;
  max-width: 1200px; width: 100%; margin: 0 auto;
  padding: 0 var(--pad-x) clamp(38px, 5vw, 64px);
}
.page-hero__eyebrow { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.32em; color: var(--amber); margin-bottom: 14px; }
.page-hero__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(28px, 4.6vw, 50px); letter-spacing: 0.08em; line-height: 1.5; }
.page-hero__lead { margin-top: 18px; max-width: 100%; font-size: clamp(13.5px, 1.5vw, 15.5px); line-height: 2.1; color: rgba(244, 244, 239, 0.9); }

/* ---- パンくず ---- */
.breadcrumb {
  max-width: 1200px; margin: 0 auto; padding: 16px var(--pad-x) 0;
  font-size: 12px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.breadcrumb a { transition: opacity 0.3s; }
.breadcrumb a:hover { opacity: 0.6; }
.breadcrumb span[aria-hidden] { opacity: 0.5; }

/* ---- 汎用セクション ---- */
.sec { padding: var(--sec-y) 0; }
.sec--tight { padding: clamp(56px, 8vw, 100px) 0; }
.sec--band { background: var(--green-100); }
.sec--dark { background: var(--green-700); color: var(--base); }
.sec--dark .section-title { color: var(--base); }
.sec--dark .section-lead { color: rgba(244, 244, 239, 0.75); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--pad-x); }
.wrap--narrow { max-width: 880px; }
/* 本文が wrap--narrow のセクションは、見出しも同じ幅に揃える */
.section-head--narrow { max-width: 880px; }

.prose p { font-size: 15px; line-height: 2.2; margin-bottom: 1.6em; }
.prose p:last-child { margin-bottom: 0; }
/* キャッチ。上の .prose p (15px) に負けないよう p.lede で優先度を上げている */
.prose p.lede { font-family: var(--font-display); font-size: clamp(26px, 4.4vw, 44px); line-height: 1.75; color: var(--green-900); letter-spacing: 0.04em; margin-bottom: 40px; }

/* ---- 2カラム（写真＋テキスト） ---- */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.duo--rev .duo__media { order: 2; }
.duo__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
/* 人物写真（縦長）は顔が切れないよう縦長比率で表示 */
.duo__media--portrait img { aspect-ratio: 4 / 5; object-position: center 20%; max-width: 440px; margin: 0 auto; display: block; }
.duo__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(21px, 2.6vw, 30px); letter-spacing: 0.06em; line-height: 1.7; color: var(--green-900); margin-bottom: 20px; }
@media (max-width: 780px) {
  .duo { grid-template-columns: 1fr; }
  .duo--rev .duo__media { order: 0; }
}

/* ---- カード列 ---- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .cards, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards, .cards--2, .cards--4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 3vw, 32px); }
.card__num { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--amber); margin-bottom: 12px; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; color: var(--green-900); margin-bottom: 12px; }
.card p { font-size: 13.5px; line-height: 2; color: var(--muted); }
.card--photo { padding: 0 0 clamp(22px, 3vw, 32px); overflow: hidden; }
.card--photo > *:not(.card__photo) { padding-left: clamp(22px, 3vw, 32px); padding-right: clamp(22px, 3vw, 32px); }
.card__photo { margin: 0 0 20px; }
.card__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- 定義リスト（会社概要・募集要項など） ---- */
.deflist { border-top: 1px solid var(--line); }
.deflist > div { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 4px; border-bottom: 1px solid var(--line); }
.deflist dt { font-size: 13px; letter-spacing: 0.1em; color: var(--green-700); font-weight: 700; }
.deflist dd { font-size: 14.5px; line-height: 2; }
.deflist dd small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
@media (max-width: 680px) { .deflist > div { grid-template-columns: 1fr; gap: 6px; } }

/* ---- 1日の流れ（タイムライン） ---- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline__item { position: relative; padding: 0 0 34px 0; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -26px; top: 7px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--base); border: 2px solid var(--amber);
}
.timeline__time { font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; color: var(--amber-dk); }
.timeline__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; color: var(--green-900); margin: 4px 0 6px; }
.timeline__desc { font-size: 13.5px; line-height: 2; color: var(--muted); max-width: 620px; }

/* ---- サービス一覧（アイコンなしのシンプルなチップ） ---- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 900px) { .services { grid-template-columns: repeat(2, 1fr); } }
.services li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 20px 18px;
}
.services strong { display: block; font-family: var(--font-display); font-size: 16px; letter-spacing: 0.08em; color: var(--green-900); margin-bottom: 6px; }
.services span { font-size: 12.5px; line-height: 1.9; color: var(--muted); }

/* ---- レク 年間カレンダー ---- */
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 1000px) { .months { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .months { grid-template-columns: repeat(2, 1fr); } }
.month img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.month figcaption { display: flex; align-items: baseline; gap: 10px; padding: 14px 2px 0; }
.month__m { font-family: var(--font-en); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; color: var(--amber-dk); }
.month__e { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.06em; color: var(--green-900); }

/* ---- 特別企画 ---- */
.specials { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .specials { grid-template-columns: 1fr; } }
.special { position: relative; overflow: hidden; border-radius: 4px; aspect-ratio: 4 / 3; color: var(--base); }
.special img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.special__body { position: absolute; inset: auto 0 0 0; padding: 70px 24px 24px; background: linear-gradient(to top, rgba(23,59,49,0.9), rgba(23,59,49,0)); }
.special__body h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: 0.06em; margin-bottom: 6px; }
.special__body p { font-size: 13px; color: rgba(244, 244, 239, 0.85); line-height: 1.9; }

/* ---- 料金 ---- */
.pricebox { background: var(--green-700); color: var(--base); border-radius: 4px; padding: clamp(32px, 5vw, 60px); text-align: center; }
.pricebox__badge { display: inline-block; background: var(--amber); color: var(--green-900); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; padding: 9px 26px; border-radius: 999px; margin-bottom: 26px; }
.pricebox__big { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.04em; }
.pricebox__big .n { font-size: clamp(44px, 8vw, 88px); line-height: 1.1; }
.pricebox__big .u { font-size: clamp(16px, 2vw, 22px); }
.pricebox__big .l { font-size: clamp(15px, 1.8vw, 20px); margin-right: 10px; }

.ptable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ptable th, .ptable td { border-bottom: 1px solid var(--line); padding: 18px 14px; text-align: left; }
.ptable thead th { font-size: 12px; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--green-500); }
.ptable td.num { text-align: right; font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--green-900); white-space: nowrap; }
.ptable tr.total td { border-bottom: 2px solid var(--green-700); font-weight: 700; }
.ptable tr.total td.num { font-size: 21px; }
.table-scroll { overflow-x: auto; }

/* ---- アクセス：交通手段 ---- */
.routes { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .routes { grid-template-columns: 1fr; } }
.route { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(22px, 3vw, 30px); }
.route__label { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--amber); margin-bottom: 10px; }
.route h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; color: var(--green-900); margin-bottom: 14px; }
.route p { font-size: 13.5px; line-height: 2; color: var(--muted); }
.map-large iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 4px; display: block; }
@media (max-width: 700px) { .map-large iframe { aspect-ratio: 4 / 3; } }

/* ---- 採用：募集要項 ---- */
.jobs { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 780px) { .jobs { grid-template-columns: 1fr; } }
.job { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: clamp(22px, 3vw, 30px); }
.job h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: 0.06em; color: var(--green-900); margin-bottom: 8px; }
.job__type { font-size: 12px; color: var(--muted); margin-bottom: 16px; }
.job ul { display: flex; flex-wrap: wrap; gap: 8px; }
.job ul li { font-size: 12px; background: var(--green-100); color: var(--green-700); border-radius: 999px; padding: 5px 14px; }

/* ---- 居室フィーチャー（施設案内：個室） ---- */
.roomft { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .roomft { grid-template-columns: 1fr; } }
.roomft__media { position: relative; }
.roomft__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 4px; }
.roomft__badge {
  position: absolute; left: -14px; bottom: 22px;
  background: var(--green-700); color: var(--base);
  font-family: var(--font-display); letter-spacing: 0.1em;
  padding: 14px 22px; border-radius: 2px; font-size: 15px;
}
@media (max-width: 860px) { .roomft__badge { left: 0; } }
.roomft__spec { margin-top: 26px; border-top: 1px solid var(--line); }
.roomft__spec div { display: flex; gap: 18px; padding: 13px 2px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.roomft__spec dt { min-width: 96px; color: var(--green-700); font-weight: 700; letter-spacing: 0.08em; }
.roomft__spec dd { color: var(--muted); }

/* ---- ベントー（共用スペース） ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: clamp(130px, 15vw, 200px); gap: clamp(10px, 1.4vw, 18px); }
.bento figure { position: relative; overflow: hidden; border-radius: 4px; }
.bento img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s cubic-bezier(0.22,1,0.36,1); }
.bento figure:hover img { transform: scale(1.04); }
.bento figcaption {
  position: absolute; inset: auto 0 0 0; z-index: 1;
  padding: 46px 20px 18px;
  background: linear-gradient(to top, rgba(23,59,49,0.86), rgba(23,59,49,0));
  color: var(--base);
}
.bento figcaption strong { display: block; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.08em; }
.bento figcaption span { font-size: 12px; color: rgba(244,244,239,0.82); }
.bento__a { grid-column: span 2; grid-row: span 2; }
.bento__d { grid-column: span 3; }
@media (max-width: 700px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__a { grid-column: span 2; grid-row: span 2; }
  .bento__d { grid-column: span 2; }
}

/* ---- 食事（施設案内：トップとは別レイアウト） ---- */
.dining-alt { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .dining-alt { grid-template-columns: 1fr; } }
.dining-alt__stack { position: relative; padding-bottom: 64px; }
.dining-alt__stack img:first-child { width: 82%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.dining-alt__stack img:last-child {
  position: absolute; right: 0; bottom: 0;
  width: 48%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 4px;
  border: 6px solid var(--base);
}

/* ---- 医療対応テーブル ---- */
.mtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.mtable th, .mtable td { padding: 16px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mtable thead th { font-size: 11.5px; letter-spacing: 0.14em; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--green-500); }
.mtable td:first-child { font-family: var(--font-display); font-size: 15.5px; color: var(--green-900); letter-spacing: 0.04em; white-space: nowrap; }
.mtable td:nth-child(2) { width: 110px; white-space: nowrap; }
.mtable td:last-child { color: var(--muted); font-size: 13px; line-height: 1.9; }
.mk { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 12px; border-radius: 999px; }
.mk--ok { background: var(--surface); color: var(--green-700); border: 1px solid rgba(31, 75, 63, 0.28); }
.mk--ask { background: rgba(201,155,63,0.16); color: var(--amber-dk); }

/* ---- 写真の帯（区切りのリズムづくり） ---- */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
@media (max-width: 700px) { .strip { grid-template-columns: repeat(2, 1fr); } }
.strip img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---- お問い合わせフォーム ---- */
.form { display: grid; gap: 26px; }
/* align-content:start がないと、2カラム時に背の低い側の中身が上下に間延びして左右の入力枠がずれる */
.field { display: grid; gap: 9px; align-content: start; }
.field > label, .fieldset__legend {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--green-900);
  display: flex; align-items: center; gap: 10px;
}
.req { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; background: var(--amber); color: var(--green-900); padding: 3px 9px; border-radius: 2px; }
.opt { font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; background: var(--green-100); color: var(--green-700); padding: 3px 9px; border-radius: 2px; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 14px 16px; width: 100%;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px rgba(31,75,63,0.08);
}
.field textarea { min-height: 180px; resize: vertical; line-height: 1.9; }
.field__hint { font-size: 12px; color: var(--muted); }
.field--half { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field--half { grid-template-columns: 1fr; } }
/* legend は gap が効かないブラウザがあるため、余白は margin で明示する */
.fieldset { border: 0; display: grid; gap: 0; }
.fieldset__legend { margin-bottom: 18px; }
.choices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (max-width: 780px) { .choices { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .choices { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 0; height: 0; }
.choice span {
  display: block; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 15px 10px; font-size: 14px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.choice input:checked + span { background: var(--green-700); border-color: var(--green-700); color: var(--base); }
.choice input:focus-visible + span { outline: 2px solid var(--amber); outline-offset: 2px; }

/* Contact Form 7 は [radio] をラップする独自マークアップ（<p>・.wpcf7-form-control-wrap・
   .wpcf7-radio・.wpcf7-list-item）を出力するため、静的版の .choices/.choice がそのまま効かない。
   間に挟まる要素を display:contents で消し、.wpcf7-list-item を .choices グリッドの直接の子として扱う。 */
.choices p,
.choices .wpcf7-form-control-wrap,
.choices .wpcf7-radio { display: contents; }
/* CF7フォームタグに class:choice 等を付けると、静的版の .choice セレクタが
   このラッパー経由で子孫の span（.wpcf7-list-item / .wpcf7-list-item-label 両方）に
   二重適用され、ボタンの中にボタンが入れ子になった見た目（白枠）になる。
   ラッパー自身の装飾は明示的に打ち消しておく。 */
.choices .wpcf7-form-control-wrap,
.choices .wpcf7-radio,
.choices .wpcf7-checkbox { background: none; border: 0; padding: 0; }
.choices .wpcf7-list-item { position: relative; margin: 0; background: none; border: 0; padding: 0; }
.choices .wpcf7-list-item input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.choices .wpcf7-list-item label { display: block; cursor: pointer; }
.choices .wpcf7-list-item-label {
  display: block; text-align: center; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line); border-radius: 3px;
  padding: 15px 10px; font-size: 14px;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}
.choices .wpcf7-list-item input:checked + .wpcf7-list-item-label { background: var(--green-700); border-color: var(--green-700); color: var(--base); }
.choices .wpcf7-list-item input:focus-visible + .wpcf7-list-item-label { outline: 2px solid var(--amber); outline-offset: 2px; }

/* CF7の[submit]は<button>ではなく<input type="submit">を出力するため、
   .form__submit button の指定が効かない。同じリセットをinputにも当てる。 */
.form__submit input[type="submit"] { border: 0; cursor: pointer; font-family: var(--font-body); appearance: none; -webkit-appearance: none; }
/* CF7が[acceptance]の外枠 span を余計に挟むため、.consent の flex 子は実質1個になり
   レイアウトはブロック内フローに委ねられる。チェックボックスとテキストの縦位置だけ静的版に揃える。 */
.consent .wpcf7-list-item-label { vertical-align: top; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.consent input { margin-top: 4px; width: 17px; height: 17px; accent-color: var(--green-700); flex: none; }
.form__submit { text-align: center; margin-top: 8px; }
.form__submit button { border: 0; cursor: pointer; font-family: var(--font-body); }
.form__note { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 16px; line-height: 1.9; }

/* 電話・その他の連絡先 */
.contact-ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 26px); }
@media (max-width: 860px) { .contact-ways { grid-template-columns: 1fr; } }
.way { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: clamp(24px, 3vw, 32px); text-align: center; }
.way__label { font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.2em; color: var(--amber); margin-bottom: 12px; }
.way h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: 0.06em; color: var(--green-900); margin-bottom: 10px; }
.way p { font-size: 13px; line-height: 1.95; color: var(--muted); }
.way__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); color: var(--green-900); letter-spacing: 0.04em; display: block; margin: 6px 0; }

/* ---- 注記（未確定情報） ---- */
/* .prose 内でも同じ見え方にするため p.note-tbd を併記して優先度を揃えている */
.note-tbd, .prose p.note-tbd {
  margin-top: 22px; margin-bottom: 0; font-size: 12.5px; line-height: 1.9; color: var(--muted);
  border-left: 2px solid var(--amber); padding: 4px 0 4px 14px;
}
/* ボタン直上などに小さく中央寄せで置きたい場合の修飾クラス */
.note-tbd--center {
  max-width: 640px; margin: 20px auto 0; padding: 0 var(--pad-x);
  border-left: none; text-align: center; font-size: 12px;
}

/* ---- 法務ページ（プライバシーポリシー等） ---- */
.prose p.legal__intro { font-size: 15px; line-height: 2.2; margin-bottom: 8px; }
.legal h2 {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2.2vw, 23px);
  letter-spacing: 0.06em; color: var(--green-900);
  margin-top: 64px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line);
}
.legal h3 {
  font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--green-700);
  margin-top: 30px; margin-bottom: 10px;
}
.legal ul, .legal ol { margin: 0 0 1.6em; padding-left: 1.5em; }
.legal li { font-size: 15px; line-height: 2.1; margin-bottom: 4px; }
.legal ul li { list-style: disc; }
.legal ol li { list-style: decimal; }
.legal li::marker { color: var(--green-500); }
/* 事業者情報。ラベルと内容を2カラムで並べ、狭い画面では縦積みにする */
.legal__info {
  display: grid; grid-template-columns: 150px 1fr; gap: 0;
  margin-top: 24px; border-top: 1px solid var(--line);
}
.legal__info dt {
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; color: var(--green-900);
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.legal__info dd { font-size: 14.5px; line-height: 1.9; padding: 15px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 620px) {
  .legal__info { grid-template-columns: 1fr; }
  .legal__info dt { padding-bottom: 4px; border-bottom: 0; }
  .legal__info dd { padding-top: 0; }
}
/* 未確定の項目。琥珀の点線で「まだ埋まっていない」ことを一目で分かるようにする */
.legal__tbd { color: var(--muted); border-bottom: 1px dashed var(--amber); padding-bottom: 1px; }
.prose p.legal__date { margin-top: 48px; font-size: 13.5px; color: var(--muted); text-align: right; }

/* ---- 前後ページ送り ---- */
.pager { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 780px) { .pager { grid-template-columns: 1fr; } }
.pager a {
  border: 1px solid var(--line); border-radius: 4px; padding: 22px 24px;
  display: block; transition: background 0.3s, border-color 0.3s;
}
.pager a:hover { background: var(--green-100); border-color: transparent; }
.pager__label { font-family: var(--font-en); font-size: 10.5px; font-weight: 600; letter-spacing: 0.2em; color: var(--amber); }
.pager__title { font-family: var(--font-display); font-size: 17px; letter-spacing: 0.06em; color: var(--green-900); margin-top: 8px; }

/* ---- 採用：雇用形態タブ＋募集要項アコーディオン ---- */
.jobtabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-bottom: 2px solid var(--green-700); margin-bottom: 28px; }
.jobtabs__btn { appearance: none; border: 0; background: var(--green-100); color: var(--green-700); font-family: var(--font-body); font-size: 16px; font-weight: 700; letter-spacing: 0.08em; padding: 18px 12px; cursor: pointer; border-radius: 6px 6px 0 0; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; transition: background .2s, color .2s; }
.jobtabs__btn + .jobtabs__btn { margin-left: 6px; }
.jobtabs__btn[aria-selected="true"] { background: var(--green-700); color: var(--base); }
.jobtabs__count { font-size: 12px; font-weight: 500; letter-spacing: 0.04em; opacity: .8; }
.jobpanel__lead { font-size: 14.5px; color: var(--green-700); margin-bottom: 20px; }

.jobx { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; margin-bottom: 14px; overflow: hidden; }
.jobx__head { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr auto 28px; align-items: center; gap: 20px; padding: 22px 24px; }
.jobx__head::-webkit-details-marker { display: none; }
.jobx__title { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(17px, 2vw, 20px); color: var(--green-900); letter-spacing: 0.04em; line-height: 1.6; }
.jobx__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.jobx__tags span { font-size: 11.5px; padding: 2px 10px; border-radius: 999px; background: var(--green-100); color: var(--green-700); line-height: 1.8; }
.jobx__meta { text-align: right; }
.jobx__pay { display: block; font-size: 18px; font-weight: 700; color: var(--amber-dk); letter-spacing: 0.02em; }
.jobx__qual { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.jobx__icon { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.jobx__icon::before, .jobx__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.5px; background: var(--green-700); transform: translate(-50%, -50%); transition: transform .25s; }
.jobx__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.jobx[open] .jobx__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.jobx[open] .jobx__head { border-bottom: 1px solid var(--line); }
.jobx__body { padding: 8px 24px 20px; }
.jobx__body > div { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.jobx__body > div:last-child { border-bottom: 0; }
.jobx__body dt { font-size: 13px; font-weight: 700; color: var(--green-700); letter-spacing: 0.08em; }
.jobx__body dd li { font-size: 14px; line-height: 1.9; padding-left: 1em; text-indent: -1em; }
.jobx__body dd li::before { content: '・'; }

.jobcommon { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.jobcommon__box { background: var(--green-100); border-radius: 6px; padding: 26px 28px; }
.jobcommon__box h3 { font-family: var(--font-display); font-size: 18px; color: var(--green-900); margin-bottom: 14px; letter-spacing: 0.06em; }
.jobcommon__box ul li { font-size: 14px; line-height: 1.9; padding-left: 1em; text-indent: -1em; }
.jobcommon__box ul li::before { content: '・'; }
.jobflow { list-style: none; counter-reset: flow; }
.jobflow li { counter-increment: flow; position: relative; padding: 0 0 16px 44px; font-size: 14px; line-height: 1.8; }
.jobflow li::before { content: counter(flow); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-700); color: var(--base); font-family: var(--font-en); font-size: 14px; display: grid; place-items: center; }
.jobflow li strong { display: block; color: var(--green-900); }

@media (max-width: 780px) {
  .jobtabs__btn { font-size: 14.5px; padding: 14px 8px; }
  .jobx__head { grid-template-columns: 1fr 28px; gap: 10px 14px; padding: 18px; }
  .jobx__main { grid-column: 1 / 2; }
  .jobx__meta { grid-column: 1 / 2; text-align: left; }
  .jobx__icon { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .jobx__body { padding: 4px 18px 16px; }
  .jobx__body > div { grid-template-columns: 1fr; gap: 4px; }
  .jobcommon { grid-template-columns: 1fr; }
  .jobcommon__box { padding: 22px 20px; }
}

/* 応募ボタン */
.jobx__apply { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding: 18px 24px 24px; border-top: 1px solid var(--line); background: var(--base); }
.jobx__apply p { font-size: 13px; color: var(--muted); }
.jobx__apply p a { color: var(--green-700); font-weight: 700; text-decoration: underline; }
.jobapply-all { text-align: center; margin-top: 36px; }
.jobapply-all p { font-size: 13px; color: var(--muted); margin-top: 12px; }
#inquiry-form { scroll-margin-top: 100px; }
@media (max-width: 780px) {
  .jobx__apply { padding: 16px 18px 20px; }
  .jobx__apply .btn { width: 100%; justify-content: center; }
}
