/* フェローズのお仕事さがし */
:root {
  --brand: #1f4fa8;
  --brand-dark: #173c82;
  --brand-soft: #e8eefa;
  --go: #f0641e;          /* 応募・さがすボタン */
  --go-dark: #d4520f;
  --go-soft: #fff0e6;
  --ink: #1c2230;
  --ink-2: #485166;
  --muted: #6d7588;
  --line: #e3e7ef;
  --bg: #f6f4ef;          /* 生成り */
  --card: #fff;
  --pay: #c2410c;
  --radius: 16px;
  --shadow: 0 2px 4px rgba(28, 34, 48, .04), 0 10px 24px rgba(28, 34, 48, .07);
  --hd-h: 60px;
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hd-h) + 12px); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; font-size: 15px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 720px; }
:focus-visible { outline: 3px solid rgba(240, 100, 30, .5); outline-offset: 2px; }

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 800; letter-spacing: .02em; cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .1s; }
.btn-go { background: var(--go); color: #fff; box-shadow: 0 4px 0 var(--go-dark); }
.btn-go:hover { background: #f5752f; }
.btn-go:active { box-shadow: 0 2px 0 var(--go-dark); transform: translateY(2px); }
.btn-go[disabled] { opacity: .6; cursor: wait; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); }
.btn-line { background: #fff; border-color: var(--brand); color: var(--brand); }
.btn-line:hover { background: var(--brand-soft); }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff; border: 2px solid var(--line); cursor: pointer; color: var(--ink-2); }
.badge-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--go); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
/* キープ（ハート） */
.keep { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; position: relative; z-index: 2; }
.keep svg { width: 18px; height: 18px; }
.keep:hover { border-color: #f3a3a9; color: #d63c4a; }
.keep.is-on { border-color: #f3a3a9; background: #fff1f2; color: #d63c4a; }
.keep.is-on svg { fill: currentColor; }

/* ---------- ヘッダー ---------- */
.hd { position: sticky; top: 0; z-index: 30; background: var(--brand); color: #fff; }
.hd-in { max-width: 1160px; margin: 0 auto; padding: 0 20px; height: var(--hd-h); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 112px; }
.brand-sub { font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
.hd-nav { display: flex; gap: 6px; margin-left: auto; }
.hd-nav a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 700; font-size: 14px; }
.hd-nav a:hover { background: rgba(255, 255, 255, .12); }
.hd-nav a.is-current { background: #fff; color: var(--brand); }
.hd-keep { display: none; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; color: #fff; background: var(--brand-dark); overflow: hidden; }
.hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 25%; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(23, 60, 130, .92) 0%, rgba(23, 60, 130, .78) 34%, rgba(23, 60, 130, .05) 68%); }
.hero-in { position: relative; z-index: 1; display: flex; align-items: flex-end; min-height: 300px; padding-top: 40px; padding-bottom: 88px; }
.hero-eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .06em; background: rgba(255, 255, 255, .16); padding: 4px 12px; border-radius: 999px; }
.hero-title { font-size: clamp(28px, 4vw, 44px); font-weight: 900; margin-top: 14px; letter-spacing: .03em; line-height: 1.3; }
.hero-title .hl { background: linear-gradient(transparent 62%, rgba(240, 100, 30, .85) 62%); padding: 0 2px; }
.hero-count { margin-top: 12px; font-size: 15px; opacity: .95; }
.hero-count b { font-size: 24px; margin: 0 2px; }

/* ---------- 検索パネル ---------- */
.finder { position: relative; z-index: 2; margin-top: -64px; }
.finder-box { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; align-items: end; background: #fff; border-radius: 20px; padding: 18px 20px 20px; box-shadow: 0 16px 40px rgba(23, 60, 130, .18); }
.fb-field label { display: block; font-size: 13px; font-weight: 800; color: var(--brand); margin-bottom: 6px; }
.fb-input { display: flex; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border-radius: 12px; background: #f3f5f9; border: 2px solid transparent; color: var(--muted); }
.fb-input:focus-within { border-color: var(--brand); background: #fff; }
.fb-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; color: var(--ink); }
.fb-input input::placeholder { color: #8f97a8; }
.fb-btn { height: 52px; padding: 0 26px; }
.quick { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.qlist { display: flex; gap: 8px; overflow-x: auto; min-width: 0; scrollbar-width: none; padding: 2px; }
.qlist::-webkit-scrollbar { display: none; }
.qbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1.5px solid #d9dee8; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.qbtn svg { width: 16px; height: 16px; }
.qbtn:hover { border-color: var(--brand); }
.qbtn[aria-pressed="true"] { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.qbtn[aria-pressed="true"]::before { content: "✓"; font-weight: 900; }
.qbtn-filter { background: var(--ink); color: #fff; border-color: var(--ink); }
.qbtn-filter:hover { border-color: var(--ink); background: #2d3446; }
/* 検索中・キープ一覧ではヒーローを出さず、パネルを上に詰める */
body:not(.is-home) .hero { display: none; }
body:not(.is-home) .finder { margin-top: 0; padding-top: 18px; }
body:not(.is-home) .finder-box { box-shadow: var(--shadow); padding: 14px 16px 16px; }

/* ---------- トップ：種類・エリア ---------- */
.browse { padding: 40px 0 8px; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.sec-no { font-size: 13px; font-weight: 900; color: var(--go); letter-spacing: .08em; }
.sec-head h2 { font-size: 22px; font-weight: 900; }
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 40px; }
.cat-tile { position: relative; display: block; border: 0; padding: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; color: #fff; text-align: left; aspect-ratio: 4 / 3; background: var(--brand-dark); box-shadow: var(--shadow); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 40%, rgba(15, 30, 70, .85) 100%); }
.cat-tile-body { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 1; }
.cat-name { display: block; font-size: 21px; font-weight: 900; }
.cat-text { display: block; font-size: 13px; opacity: .92; margin-top: 2px; }
.cat-n { position: absolute; top: 14px; right: 14px; z-index: 1; background: #fff; color: var(--brand); font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.regions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.region { background: #fff; border-radius: 14px; padding: 14px 16px; border-top: 4px solid var(--brand); }
.region h3 { font-size: 14px; font-weight: 800; margin-bottom: 8px; }
.region ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.region button { border: 1px solid var(--line); background: #fafbfd; border-radius: 8px; padding: 4px 10px; color: var(--ink); cursor: pointer; font-size: 13.5px; font-weight: 700; }
.region button:hover { border-color: var(--brand); color: var(--brand); }
.region small { color: var(--muted); font-weight: 500; margin-left: 3px; }

/* ---------- 一覧（カードの格子） ---------- */
.results { padding: 32px 0 56px; }
.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.results-title { font-size: 22px; font-weight: 900; }
.results-title .n { color: var(--go); font-size: 26px; margin: 0 2px; }
.results-title small { display: block; font-size: 13px; color: var(--muted); font-weight: 600; }
.sort select { height: 40px; border: 1.5px solid #d9dee8; border-radius: 10px; padding: 0 34px 0 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d7588' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; font-size: 14px; font-weight: 700; cursor: pointer; }
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.jc { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.jc:hover { transform: translateY(-2px); box-shadow: 0 4px 8px rgba(28, 34, 48, .06), 0 16px 32px rgba(28, 34, 48, .10); }
.jc-link { position: absolute; inset: 0; z-index: 1; }
.jc-photo { position: relative; aspect-ratio: 16 / 9; background: var(--brand-soft); }
.jc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.jc-kind { position: absolute; left: 10px; top: 10px; background: rgba(255, 255, 255, .95); color: var(--brand); font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 6px; }
.jc-camp { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, var(--go) 0%, #f5893e 100%); color: #fff; font-size: 12px; font-weight: 800; padding: 5px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 14px; }
.jc-title { font-size: 16px; font-weight: 800; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.jc-pay { margin-top: 10px; display: flex; align-items: center; gap: 8px; font-weight: 900; color: var(--pay); font-size: 18px; }
.unit { display: inline-block; font-size: 11px; font-weight: 800; color: #fff; background: var(--pay); border-radius: 4px; padding: 1px 6px; }
.jc-meta { margin-top: 6px; display: grid; gap: 2px; font-size: 13.5px; color: var(--ink-2); }
.jc-meta span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.jc-meta span > em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jc-meta svg { width: 15px; height: 15px; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; }
.pill-exp { color: #7c3aed; background: #f1eafe; }
.jc-ft { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; }
.jc-more { font-size: 13px; font-weight: 800; color: var(--brand); display: inline-flex; align-items: center; gap: 2px; }
.jc-more svg { width: 16px; height: 16px; }

.more { display: flex; width: min(360px, 100%); margin: 24px auto 0; }
.empty { background: #fff; border-radius: var(--radius); padding: 36px 20px; text-align: center; color: var(--ink-2); }
.empty .btn { margin-top: 14px; }

/* ---------- 詳細ページ ---------- */
.crumb { padding: 18px 0 10px; }
.back { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; border: 0; background: #fff; color: var(--brand); font-weight: 800; cursor: pointer; box-shadow: var(--shadow); }
.back svg { width: 18px; height: 18px; }
.job { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-bottom: 56px; }
.job-main { min-width: 0; }
.job-hero { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 21 / 9; background: var(--brand-soft); }
.job-hero img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.job-hero .jc-kind { left: 14px; top: 14px; font-size: 13px; }
.job-camp { margin-top: 16px; display: inline-block; background: var(--go-soft); color: var(--go-dark); font-weight: 800; font-size: 13px; padding: 4px 12px; border-radius: 8px; }
.job-title { font-size: clamp(21px, 2.6vw, 27px); font-weight: 900; margin-top: 12px; }
.job-co { margin-top: 8px; color: var(--ink-2); font-size: 14px; }
.block { background: #fff; border-radius: var(--radius); padding: 22px 24px; margin-top: 18px; box-shadow: 0 1px 2px rgba(28, 34, 48, .04); }
.block h2 { font-size: 18px; font-weight: 900; margin-bottom: 12px; padding-left: 12px; border-left: 5px solid var(--go); line-height: 1.3; }
.text { white-space: pre-line; line-height: 1.85; overflow-wrap: anywhere; }
.text + .text { margin-top: 14px; }
.dl { margin: 0; display: grid; grid-template-columns: 9.5em minmax(0, 1fr); }
.dl dt, .dl dd { padding: 12px 0; border-top: 1px dashed #d8dde7; margin: 0; }
.dl dt:first-of-type, .dl dd:first-of-type { border-top: 0; }
.dl dt { font-weight: 800; color: var(--ink-2); font-size: 14px; padding-right: 12px; }
.dl dd { white-space: pre-line; overflow-wrap: anywhere; font-size: 14.5px; }
.map-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-weight: 700; font-size: 14px; }
.map-link svg { width: 16px; height: 16px; }
.job-id { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.side { position: sticky; top: calc(var(--hd-h) + 16px); background: #fff; border-radius: 20px; padding: 22px; box-shadow: var(--shadow); border-top: 6px solid var(--go); }
.side-pay { display: flex; align-items: center; gap: 8px; font-size: 24px; font-weight: 900; color: var(--pay); }
.side-pay .unit { font-size: 12px; }
.side-emp { font-size: 13px; color: var(--muted); margin-top: 2px; }
.side-list { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.side-list li { display: flex; gap: 8px; }
.side-list svg { width: 18px; height: 18px; color: var(--brand); margin-top: 2px; }
.side-actions { display: flex; gap: 8px; margin-top: 10px; }
.side-actions .keep, .side-actions .share { flex: 1; justify-content: center; height: 42px; }
.share { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink-2); font-size: 13px; font-weight: 700; cursor: pointer; }
.share svg { width: 18px; height: 18px; }
.side-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

.related { margin-top: 32px; }
.related h2 { font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.related .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.applybar { display: none; }

/* ---------- 応募フォーム ---------- */
.steps-bar { list-style: none; margin: 4px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; counter-reset: s; }
.steps-bar li { counter-increment: s; text-align: center; font-size: 12.5px; font-weight: 800; color: var(--muted); padding: 8px 4px; background: #fff; border-radius: 8px; }
.steps-bar li::before { content: counter(s) ". "; }
.steps-bar li.is-on { background: var(--brand); color: #fff; }
.page-title { font-size: 26px; font-weight: 900; }
.apply-job { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: center; background: #fff; border-radius: 14px; padding: 12px; margin-top: 14px; }
.apply-job img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; }
.apply-job b { display: block; font-size: 15px; line-height: 1.45; }
.apply-job span { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.form { background: #fff; border-radius: 20px; padding: 24px; margin: 18px 0 56px; box-shadow: var(--shadow); }
.f-row { margin-bottom: 20px; }
.f-row > label { display: flex; align-items: center; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.req, .opt { font-size: 11px; font-weight: 800; border-radius: 4px; padding: 1px 6px; }
.req { background: var(--go); color: #fff; }
.opt { background: #eef0f4; color: var(--muted); }
.form input[type="text"], .form input[type="tel"], .form input[type="email"], .form select, .form textarea { width: 100%; min-height: 50px; border: 2px solid #d9dee8; border-radius: 12px; padding: 10px 14px; font-size: 16px; background: #fff; }
.form textarea { resize: vertical; line-height: 1.6; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 0; border-color: var(--brand); }
.f-row.is-bad input, .f-row.is-bad select, .f-row.is-bad textarea { border-color: #d63c4a; background: #fff7f7; }
.f-hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.f-err { display: none; font-size: 13px; color: #c02634; font-weight: 700; margin-top: 4px; }
.f-row.is-bad .f-err { display: block; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 700; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ts { margin-bottom: 16px; }
.form-error { background: #fff1f2; color: #b4232f; border-radius: 10px; padding: 12px 14px; font-weight: 700; margin-bottom: 14px; }
.f-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; text-align: center; }

/* .wrap の左右の余白（スマホで上書きされる）に負けないよう、上下は .wrap.done で指定する */
.done { text-align: center; }
.wrap.done { padding-top: 40px; padding-bottom: 64px; }
.done-mark { width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--go); display: grid; place-items: center; }
.done-mark svg { width: 38px; height: 38px; stroke: #fff; stroke-width: 3; }
.done-id { margin-top: 10px; font-size: 15px; }
.done-id b { font-size: 18px; letter-spacing: .04em; }
.done-job { margin-top: 6px; color: var(--ink-2); font-size: 14px; }
.done-next { background: #fff; border-radius: 16px; padding: 20px; margin: 24px 0; text-align: left; }
.done-next h2 { font-size: 16px; font-weight: 900; margin-bottom: 6px; }
.done-demo { margin-bottom: 16px; font-size: 13px; color: var(--go-dark); font-weight: 700; }

/* ---------- 会社紹介 ---------- */
.about { background: #fff; padding: 56px 0 60px; }
.about-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 36px; align-items: center; }
.about-eyebrow { font-size: 13px; font-weight: 900; color: var(--go); letter-spacing: .14em; }
.about h2 { font-size: 30px; font-weight: 900; margin: 6px 0 14px; }
.about-text p:not(.about-eyebrow) { color: var(--ink-2); }
.about-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-weight: 800; }
.about-link svg { width: 16px; height: 16px; }
.mosaic { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: 150px 150px; gap: 10px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.mosaic .m1 { grid-row: span 2; border-radius: 14px 14px 14px 60px; }
.mosaic .m4 { display: none; }
.flow { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow li { background: var(--bg); border-radius: 14px; padding: 18px; }
.flow b { font-size: 12px; color: var(--go); letter-spacing: .08em; }
.flow h3 { font-size: 16px; font-weight: 900; margin: 4px 0; }
.flow p { font-size: 14px; color: var(--ink-2); }

/* ---------- フッター ---------- */
.ft { background: var(--brand-dark); color: #cdd6ea; padding: 30px 0 34px; font-size: 13px; }
.ft a { color: #fff; }
.ft p { margin-top: 10px; }
.ft-note { color: #9fb0d2; font-size: 12px; }

/* ---------- 条件の追加（ダイアログ） ---------- */
.sheet { border: 0; padding: 0; border-radius: 20px; width: min(560px, calc(100% - 32px)); max-height: min(720px, calc(100% - 48px)); box-shadow: 0 20px 60px rgba(0, 0, 0, .25); color: var(--ink); }
.sheet::backdrop { background: rgba(15, 23, 42, .5); }
.sheet-in { display: flex; flex-direction: column; max-height: inherit; }
.sheet-hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px 12px 22px; border-bottom: 1px solid var(--line); }
.sheet-hd h2 { font-size: 18px; font-weight: 900; }
.sheet-hd .icon-btn { border: 0; width: 44px; height: 44px; }
.sheet-body { overflow: auto; padding: 6px 22px 16px; }
.sheet-ft { display: flex; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.sheet-ft .btn { flex: 1; }
.f-group { padding: 14px 0; border-bottom: 1px solid var(--line); }
.f-group:last-child { border-bottom: 0; }
.f-group h3 { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.f-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.f-opt { position: relative; }
.f-opt input { position: absolute; opacity: 0; inset: 0; }
.f-opt span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border: 1.5px solid #d9dee8; border-radius: 10px; font-size: 14px; font-weight: 700; cursor: pointer; background: #fff; }
.f-opt input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.f-opt input:checked + span::before { content: "✓ "; white-space: pre; }
.f-opt input:focus-visible + span { outline: 3px solid rgba(240, 100, 30, .5); outline-offset: 2px; }
.f-group select { width: 100%; height: 46px; border: 1.5px solid #d9dee8; border-radius: 10px; padding: 0 12px; background: #fff; }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700; z-index: 60; box-shadow: 0 8px 24px rgba(0, 0, 0, .2); }
.tabbar { display: none; }

/* ---------- タブレット ---------- */
@media (max-width: 1023px) {
  .grid, .related .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .job { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
  .regions { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- スマホ ---------- */
@media (max-width: 767px) {
  :root { --hd-h: 54px; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 14px; }
  .brand img { width: 98px; }
  .brand-sub { font-size: 12px; }
  .hd-nav { display: none; }
  .hd-keep { display: inline-grid; place-items: center; position: relative; margin-left: auto; width: 44px; height: 44px; color: #fff; }
  .hd-keep svg { width: 24px; height: 24px; }
  .hd-keep .badge-n { position: absolute; top: 3px; right: 0; }

  .hero::after { background: linear-gradient(180deg, rgba(23, 60, 130, .1) 0%, rgba(23, 60, 130, .55) 45%, rgba(23, 60, 130, .95) 100%); }
  .hero-photo img { object-position: 50% 20%; }
  .hero-in { min-height: 250px; padding-top: 0; padding-bottom: 78px; }
  .hero-title { font-size: 27px; }
  .finder { margin-top: -60px; }
  .finder-box { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 18px; }
  .fb-btn { width: 100%; margin-top: 4px; }
  body:not(.is-home) .finder { padding-top: 10px; }
  body:not(.is-home) .finder-box { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 10px; gap: 8px; }
  body:not(.is-home) .fb-field label { display: none; }
  body:not(.is-home) .fb-input { height: 44px; padding: 0 10px; }
  body:not(.is-home) .fb-btn { grid-column: 1 / -1; height: 44px; margin-top: 0; }
  .quick { margin-top: 10px; gap: 8px; margin-right: -14px; }
  .qlist { padding-right: 14px; }

  .browse { padding-top: 30px; }
  .sec-head h2 { font-size: 19px; }
  .cat-tiles { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-bottom: 30px; }
  .cat-tile { aspect-ratio: 16 / 7; }
  .regions { grid-template-columns: minmax(0, 1fr); }

  .results { padding-top: 22px; }
  .results-title { font-size: 18px; }
  .results-title .n { font-size: 22px; }
  .grid, .related .grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* スマホのカードは横長（写真を左） */
  .jc { display: grid; grid-template-columns: 104px minmax(0, 1fr); }
  .jc-photo { aspect-ratio: auto; height: 100%; min-height: 140px; }
  .jc-kind { display: none; }
  .jc-camp { position: static; grid-column: 1 / -1; grid-row: 1; padding: 5px 12px; }
  .jc-body { padding: 12px; }
  .jc-title { font-size: 15px; min-height: 0; }
  .jc-pay { font-size: 16px; margin-top: 6px; }
  .jc-meta { font-size: 12.5px; }
  .pills { margin-top: 8px; }
  .pill:nth-child(n+3) { display: none; }
  .jc-ft { padding-top: 8px; }
  .jc-more { display: none; }

  .crumb { padding: 12px 0 8px; }
  .job { display: block; padding-bottom: 24px; }
  .job-hero { aspect-ratio: 16 / 9; border-radius: 16px; }
  .block { padding: 18px 16px; margin-top: 14px; }
  .dl { grid-template-columns: minmax(0, 1fr); }
  .dl dt { padding-bottom: 2px; border-top: 1px dashed #d8dde7; }
  .dl dd { padding-top: 0; border-top: 0; }
  .dl dt:first-of-type { border-top: 0; }
  .side { position: static; margin-top: 14px; padding: 18px; }
  .side .btn-go { display: none; }
  .applybar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -6px 20px rgba(28, 34, 48, .12); }
  .applybar .btn-go { flex: 1; }
  .applybar .keep { height: 48px; width: 48px; padding: 0; justify-content: center; }
  .applybar .keep span { display: none; }
  body.view-job .tabbar, body.view-apply .tabbar { display: none; }

  .page-title { font-size: 22px; }
  .form { padding: 18px 16px; }

  .about { padding: 40px 0 44px; }
  .about-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .about h2 { font-size: 24px; }
  .mosaic { grid-template-rows: 120px 120px; }
  .flow { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }

  .tabbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; font-size: 11px; font-weight: 700; color: var(--muted); text-decoration: none; }
  .tabbar a.is-current { color: var(--go); }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar .badge-n { position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; height: 18px; font-size: 11px; }
  .toast { bottom: calc(78px + env(safe-area-inset-bottom)); }
  .sheet { width: 100%; max-width: none; max-height: 88vh; margin: auto 0 0; border-radius: 20px 20px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* 詳細ページの写真（2枚目以降） */
.job-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.job-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; background: var(--brand-soft); }
@media (max-width: 767px) { .job-gallery { gap: 6px; } .job-gallery img { border-radius: 10px; } }

/* マッハの写真（文字入りのバナー）は切り抜かず 4:3 のまま出す */
.jc-photo.is-media { aspect-ratio: 4 / 3; }
.jc-photo.is-media img { object-position: 50% 50%; }
.job-hero.is-media { aspect-ratio: 4 / 3; max-width: 640px; background: #fff; }
.job-hero.is-media img { object-fit: contain; object-position: 50% 50%; }
@media (max-width: 767px) {
  .jc-photo.is-media { aspect-ratio: auto; }
  .jc-photo.is-media img { object-fit: contain; background: #fff; }
  .job-hero.is-media { max-width: none; }
}
.job-hero.is-media + .job-gallery { max-width: 640px; }
@media (max-width: 767px) { .job-hero.is-media + .job-gallery { max-width: none; } }

/* ===== 2026-11-20 調整 ===== */
/* トップの写真：顔に暗い幕をかけない。件数は小さな帯にのせる */
.hero { background: #eef3fb; }
.hero::after { background: linear-gradient(90deg, rgba(238, 243, 251, .55) 0%, rgba(238, 243, 251, 0) 40%); }
.hero-photo img { object-position: 75% 30%; }
.hero-in { min-height: 340px; }
.hero-count { display: inline-block; background: rgba(23, 60, 130, .88); color: #fff; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.hero-count b { font-size: 20px; }

/* カードの写真は全部 4:3（マッハのバナーに合わせる） */
.jc-photo, .jc-photo.is-media { aspect-ratio: 4 / 3; }
.jc-photo img, .jc-photo.is-media img { object-fit: cover; object-position: 50% 40%; }

@media (max-width: 767px) {
  .hero::after { background: none; }
  .hero-photo img { object-position: 50% 15%; }
  .hero-in { min-height: 260px; padding-bottom: 76px; align-items: flex-end; }
  .hero-count { font-size: 13px; }

  /* スマホのカード：左上に写真（4:3）、右にタイトルと時給、その下に勤務地・特徴 */
  .jc { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); grid-template-rows: auto auto 1fr auto auto auto;
        grid-template-areas: "camp camp" "photo title" "photo pay" "meta meta" "pills pills" "ft ft"; column-gap: 12px; padding-bottom: 12px; }
  .jc-photo, .jc-photo.is-media, .jc-body { display: contents; }
  .jc-photo img, .jc-photo.is-media img { grid-area: photo; width: calc(100% - 12px); margin: 12px 0 0 12px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; align-self: start; background: var(--brand-soft); }
  .jc-camp { grid-area: camp; position: static; }
  .jc-title { grid-area: title; margin: 12px 12px 0 0; min-height: 0; -webkit-line-clamp: 3; align-self: start; }
  .jc-pay { grid-area: pay; margin: 6px 12px 0 0; align-self: start; flex-wrap: wrap; }
  .jc-meta { grid-area: meta; margin: 10px 12px 0; }
  .pills { grid-area: pills; margin: 8px 12px 0; }
  .jc-ft { grid-area: ft; padding: 8px 12px 0; }
}

/* ===== 配色の統一（2026-11-20 阿部さん）=====
   ベース：ホワイト／メイン：ネイビー〜クリアブルー／アクセント：オレンジは「応募する」ボタンだけ（赤は必須・通知のバッジだけ） */
:root {
  --navy: #14306b;
  --brand: #1f5bd6;
  --brand-dark: #1747a8;
  --brand-soft: #eaf1fd;
  --go: #1f5bd6;          /* 以前オレンジだった飾り（見出しの印・帯など）はブルーに */
  --go-dark: #1747a8;
  --go-soft: #eaf1fd;
  --apply: #f26a1b;       /* 応募ボタンだけ */
  --apply-dark: #cf5410;
  --pay: #14306b;
  --bg: #f5f8fc;
  --alert: #e0374a;
}
:focus-visible { outline-color: rgba(31, 91, 214, .45); }
.hd, .ft { background: var(--navy); }
.hd-nav a.is-current { color: var(--navy); }
.hd .badge-n, .tabbar .badge-n { background: var(--alert); }
.btn-go { background: var(--apply); box-shadow: 0 4px 0 var(--apply-dark); }
.btn-go:hover { background: #f47c35; }
.btn-go:active { box-shadow: 0 2px 0 var(--apply-dark); }
.btn-search { background: var(--brand); color: #fff; box-shadow: 0 4px 0 var(--brand-dark); }
.btn-search:hover { background: #2b67e3; }
.btn-search:active { box-shadow: 0 2px 0 var(--brand-dark); transform: translateY(2px); }
.qbtn-filter { background: var(--navy); border-color: var(--navy); }
.qbtn-filter:hover { background: #1c3d82; border-color: #1c3d82; }
.jc-camp { background: linear-gradient(90deg, #1747a8 0%, #2f74ea 100%); }
.job-camp { background: var(--brand-soft); color: var(--brand-dark); }
.unit { background: var(--brand); }
.jc-pay, .side-pay { color: var(--navy); }
.req { background: var(--alert); }
.region { border-top-color: var(--brand); }
.hero { background: #eef3fb; }
.hero-count { background: rgba(20, 48, 107, .9); }
.tabbar a.is-current { color: var(--brand); }
.side { border-top-color: var(--brand); }
.cat-n { color: var(--navy); }
.about { background: #fff; }
.flow li { background: var(--bg); }
