/* ==========================================================================
   疑似スミジョブ ミニサイト（本サイト sumijob.com のデザインに準拠）
   単一カラム（最大幅768px）を水色背景の中央に配置。PCもスマホも同じ構成。
   ========================================================================== */
:root {
  --teal: #22b8c6;
  --teal-dark: #0b8d9a;
  --teal-10: #effcfe;
  --teal-20: #e4f9fc;
  --orange: #f38100;
  --orange-dark: #d46f00;
  --red: #f22c2c;
  --text: #171717;
  --text-2: #212121;
  --muted: #6b6b6b;
  --border: #d3d3d3;
  --line: #ececec;
  --radius: 8px;
  --shadow: 0 2px 2px rgba(0, 0, 0, .04);
  --shadow-high: 0 8px 24px rgba(0, 0, 0, .12);
  --col: 768px;
  --hd: 51px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  background: var(--teal-10);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.4; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd, dt { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
small { font-size: .85em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sp-only { display: none; }
@media (max-width: 480px) { .sp-only { display: inline; } }
.ico { flex: none; vertical-align: middle; }

.col, .container { width: 100%; max-width: var(--col); margin: 0 auto; padding: 0 12px; }
@media (min-width: 800px) { .col, .container { padding: 0; } }

/* --------------------------------------------------------------------------
   Header / Menu / Footer
   -------------------------------------------------------------------------- */
.hd { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 1px 0 var(--line); }
.hd-in { display: flex; align-items: center; justify-content: space-between; height: var(--hd); }
.hd-logo img { height: 32px; width: auto; }
.hd-menu { display: flex; flex-direction: column; align-items: center; gap: 1px; background: none; border: none; padding: 4px 6px; color: #444; font-size: 10px; line-height: 1; }
.hd-menu .ico { color: #333; }

.menu { position: fixed; inset: 0; z-index: 100; }
.menu[hidden] { display: none; }
.menu-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.menu-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 86vw); background: #fff; overflow-y: auto; box-shadow: -4px 0 24px rgba(0, 0, 0, .2); }
.menu-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.menu-close { background: none; border: none; padding: 4px; color: #444; }
.menu-sec { padding: 12px 16px 4px; font-size: 11px; color: var(--muted); font-weight: 700; }
.menu-link { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--line); color: var(--text-2); font-size: 14px; }
.menu-link .ico { color: var(--teal); }

.ft { margin-top: 32px; padding: 28px 0 36px; background: var(--teal-10); border-top: 1px solid #d8f2f6; font-size: 13px; }
.ft-logo img { height: 34px; width: auto; }
.ft-tagline { margin-top: 8px; color: var(--muted); font-size: 12px; }
.ft-links { margin-top: 12px; }
.ft-links li { padding: 6px 0; }
.ft-links a { color: var(--text-2); }
.ft-links-sub { margin-top: 8px; padding-top: 8px; border-top: 1px solid #cfeef2; }
.ft-operator { margin-top: 14px; font-size: 12px; color: var(--muted); }
.ft-copy { margin-top: 12px; text-align: center; font-size: 11px; color: #8a8a8a; }

/* --------------------------------------------------------------------------
   Cards / Sections / Buttons / Chips
   -------------------------------------------------------------------------- */
.card { margin-top: 14px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.card-title { display: flex; align-items: center; gap: 6px; font-size: 16px; margin-bottom: 12px; color: var(--text-2); }
.card-title .ico { color: var(--orange); }
.sub-h3 { font-size: 13px; margin: 14px 0 6px; color: var(--text-2); }
.sub-h2 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin-bottom: 8px; }
.sec { margin-top: 22px; }
.sec-title { font-size: 16px; border-left: 4px solid var(--teal); padding-left: 8px; margin-bottom: 10px; color: var(--text-2); }
.sec-more { margin-top: 6px; text-align: right; font-size: 13px; }
.sec-more a { display: inline-flex; align-items: center; gap: 2px; color: var(--teal); }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; margin-right: 6px; line-height: 1.5; }
.pill-orange { background: var(--orange); }
.pill-teal { background: var(--teal); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 6px 14px; border-radius: 4px;
  font-weight: 700; font-size: 15px; line-height: 1.3; text-align: center; white-space: nowrap;
  border: 1px solid transparent; text-decoration: none !important; transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(.95); }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal-outline { background: #fff; color: var(--teal); border-color: var(--teal); }
.btn-white { background: #fff; color: var(--text-2); border-color: var(--border); }
.btn-orange, .btn-primary { background: var(--orange); color: #fff; min-height: 48px; }
.btn-red { background: var(--red); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-lg { min-height: 48px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-apply { flex-direction: column; gap: 0; min-height: 56px; line-height: 1.25; }
.btn-apply small { font-size: 11px; font-weight: 400; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-count { font-size: 12px; font-weight: 400; margin-left: 2px; }
.link-btn { background: none; border: none; color: var(--teal); font-size: 12px; padding: 0; }

.chip-links { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-links a, .chip-links span { display: inline-block; padding: 4px 8px; border: 1px solid var(--teal-dark); border-radius: 4px; background: #fff; color: var(--teal-dark); font-size: 12px; line-height: 1.4; }
.chip-links a:hover { background: var(--teal-20); }
.chip-links a.is-empty { opacity: .4; }
.chip-links-tags[data-collapsed] { max-height: 66px; overflow: hidden; }
.chip-links-tags.is-open { max-height: none; }

.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span { display: inline-block; padding: 6px 10px; border: 1px solid var(--teal-dark); border-radius: 4px; background: #fff; color: var(--teal-dark); font-size: 12px; font-weight: 500; line-height: 1.4; user-select: none; transition: background .15s, color .15s; }
.chip-sm span { padding: 5px 9px; }
.chip input:checked + span { background: var(--teal-dark); color: #fff; }
.chip input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 184, 198, .35); }
.chip.is-disabled span { opacity: .4; cursor: not-allowed; }
.chip-pr { display: inline-block; margin: 0 4px 4px 0; padding: 2px 6px; border: 1px solid var(--teal); border-radius: 4px; background: var(--teal-10); color: var(--teal-dark); font-size: 11px; line-height: 1.5; }

.input { width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 16px; line-height: 1.4; }
.input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 184, 198, .2); }
select.input, .sort-select select {
  appearance: none; -webkit-appearance: none; padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}
textarea.input { resize: vertical; min-height: 110px; }
.field { display: block; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }
.field-label small { font-weight: 400; color: var(--muted); }
.check { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); flex: none; }
.check small { margin-left: 4px; color: #999; font-size: 11px; }
.check-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; padding: 4px 0; }
.check-grid-2 { border-top: 1px dashed var(--line); margin-top: 4px; }

.text-list li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.5; }
.text-list li:last-child { border-bottom: none; }
.text-list a { color: var(--text-2); }
.empty { text-align: center; padding: 32px 16px; }
.empty p { color: var(--muted); margin-bottom: 8px; }
.empty .btn { margin-top: 12px; }
.empty-title { font-size: 18px; margin-bottom: 12px; }
.notice-error { background: #fdecea; color: #9b1c15; }

/* --------------------------------------------------------------------------
   TOP: hero / count / search card
   -------------------------------------------------------------------------- */
.hero { position: relative; max-width: var(--col); margin: 0 auto; aspect-ratio: 1536 / 800; overflow: hidden; container-type: inline-size; background: #123f45; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-chip {
  position: absolute; z-index: 2; transform: translate(-50%, -50%);
  padding: .45em .9em; border-radius: .5em; border: 2px solid #fff;
  background: rgba(34, 184, 198, .92); color: #fff; font-weight: 700; font-size: 3.4cqw; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}
.hero-chip.c1 { left: 24%; top: 22%; }
.hero-chip.c2 { left: 77%; top: 26%; }
.hero-chip.c3 { left: 12%; top: 50%; }
.hero-chip.c4 { left: 89%; top: 55%; }
.hero-chip.c5 { left: 20%; top: 80%; }
.hero-chip.c6 { left: 84%; top: 82%; }
.hero-copy { position: absolute; z-index: 3; left: 50%; top: 56%; transform: translate(-50%, -50%); text-align: center; color: #fff; text-shadow: 0 2px 6px rgba(0, 0, 0, .55), 0 0 2px rgba(0, 0, 0, .6); white-space: nowrap; }
.hero-copy-sub { display: block; font-size: 5.6cqw; font-weight: 700; }
.hero-copy-sub em { font-style: normal; color: var(--orange); font-size: 1.5em; text-shadow: 0 2px 4px rgba(0, 0, 0, .5); }
.hero-copy-main { display: block; font-size: 8.2cqw; font-weight: 900; letter-spacing: .02em; margin-top: .1em; }
@supports not (font-size: 1cqw) {
  .hero-chip { font-size: 14px; }
  .hero-copy-sub { font-size: 22px; }
  .hero-copy-main { font-size: 32px; }
}

.today-count { margin-top: 14px; font-size: 14px; color: var(--text-2); }
.today-count strong { color: var(--orange); font-size: 22px; margin: 0 2px 0 6px; }

.search-card { margin-top: 10px; }
.sel-row { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-align: left; color: var(--text); }
.sel-row:first-of-type { margin-top: 0; }
.sel-ico { color: var(--teal); display: flex; }
.sel-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sel-label { font-size: 11px; color: var(--muted); line-height: 1.3; }
.sel-input { width: 100%; border: none; background: transparent; padding: 0; font-size: 15px; appearance: none; -webkit-appearance: none; color: var(--text); }
.sel-input:focus { outline: none; }
.sel-value { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-chev { color: #9a9a9a; display: flex; }
.sel-row-btn[aria-expanded="true"] .sel-chev { transform: rotate(90deg); }
.more-cond { margin-top: 10px; padding: 12px; border: 1px solid #cfeef2; border-radius: var(--radius); background: #f7fdfe; }
.more-cond[hidden] { display: none; }
.more-cond-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.more-cond-title small { font-weight: 400; color: var(--muted); }
.more-cond-grid { display: grid; gap: 10px; margin: 12px 0; }
@media (min-width: 560px) { .more-cond-grid { grid-template-columns: 1fr 1fr; } }
.search-btns { margin-top: 14px; grid-template-columns: 1fr 1.7fr; }
.search-btns .btn { min-height: 48px; }

.area-block { margin-top: 12px; }
.area-name { font-size: 13px; border-left: 3px solid var(--teal); padding-left: 8px; margin-bottom: 8px; }

.faq { margin-top: 22px; }
.faq-group { display: flex; align-items: center; gap: 6px; font-size: 15px; margin: 16px 0 6px; }
.faq-group .ico { color: var(--teal); }
.faq-item { margin-top: 8px; background: var(--teal-20); border-radius: var(--radius); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--teal); font-size: 20px; line-height: 1; flex: none; }
.faq-item[open] summary::after { content: "−"; }
.faq-body { padding: 0 14px 14px; font-size: 13px; line-height: 1.75; }

.banner-column { display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 16px; background: var(--teal); color: #fff; border-radius: var(--radius); font-weight: 700; font-size: 14px; }
.banner-column span { flex: 1; }

/* --------------------------------------------------------------------------
   Carousel & compact job card (.jc)
   -------------------------------------------------------------------------- */
.carousel { position: relative; }
.carousel-track { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-slide { flex: 0 0 100%; scroll-snap-align: start; display: flex; }
.carousel-2 .carousel-slide { flex-basis: 78%; }
@media (min-width: 600px) { .carousel-2 .carousel-slide { flex-basis: calc(50% - 5px); } }
.carousel-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 8px; }
.carousel-btn { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: #fff; color: var(--teal); font-size: 18px; line-height: 1; display: grid; place-items: center; padding: 0; }
.carousel-dots { display: flex; gap: 6px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: #cbd5db; }
.carousel-dots span.is-active { background: var(--teal); }

.jc { display: flex; flex-direction: column; width: 100%; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.carousel-1 .jc { box-shadow: none; border: 1px solid var(--line); }
.jc-head { display: flex; gap: 10px; align-items: flex-start; }
.jc-text { flex: 1; min-width: 0; }
.jc-title { font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.jc-title a { color: var(--text-2); }
.jc-company { margin-top: 4px; font-size: 11px; color: var(--muted); }
.jc-thumb { flex: none; width: 96px; }
.jc-thumb img { display: block; width: 96px; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 4px; }
.jc-meta { margin-top: 8px; display: grid; gap: 4px; font-size: 13px; }
.jc-meta li { display: flex; gap: 6px; align-items: flex-start; }
.jc-meta .ico { color: var(--teal); margin-top: 2px; }
.jc-more { align-self: flex-end; margin-top: 6px; display: inline-flex; align-items: center; font-size: 12px; color: var(--teal); }
.jc .btn-row { margin-top: 10px; }
.jc .btn { font-size: 14px; padding: 6px 8px; }
.job-grid { display: grid; gap: 12px; }
@media (min-width: 600px) { .job-grid-3 { grid-template-columns: repeat(2, 1fr); } }

/* --------------------------------------------------------------------------
   List page
   -------------------------------------------------------------------------- */
.bc { padding: 10px 0 2px; font-size: 12px; color: var(--muted); }
.bc ol { display: flex; flex-wrap: wrap; gap: 4px; }
.bc li + li::before { content: "›"; margin-right: 4px; }
.bc a { color: var(--text-2); }
.lead-text { margin-top: 8px; font-size: 13px; line-height: 1.7; }
.lead-text strong { color: var(--orange); font-size: 15px; }
.list-h1 { font-size: 16px; margin-bottom: 10px; }
.cond-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cond-chips a { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px; border-radius: 4px; background: var(--teal-20); color: var(--teal-dark); font-size: 12px; }
.cond-chips a span { font-size: 14px; line-height: 1; opacity: .7; }
.cond-clear a { background: transparent; text-decoration: underline; color: var(--muted); }
.list-toolbar { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.list-count { font-size: 14px; }
.list-count strong { font-size: 24px; color: var(--orange); margin-right: 2px; }
.list-count small { margin-left: 6px; font-size: 12px; color: var(--muted); }
.sort-select select { padding: 7px 30px 7px 10px; border: 1px solid var(--border); border-radius: 4px; background-color: #fff; font-size: 13px; }
.job-list { display: grid; gap: 12px; margin-top: 12px; }

.jl { padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.jl-img { position: relative; display: block; width: 80%; margin: 0 auto 12px; }
.jl-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; }
.jl-badge { position: absolute; top: 8px; left: 8px; padding: 2px 10px; border-radius: 4px; color: #fff; font-size: 12px; font-weight: 700; background: var(--teal); box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.jl-badge-row { margin-bottom: 8px; }
.jl-badge-row .jl-badge { position: static; display: inline-block; }
.badge-ichioshi { background: #e63946; }
.badge-pickup { background: var(--orange); }
.badge-osusume { background: var(--teal); }
.badge-new { background: #f59e0b; }
.jl-title { font-size: 16px; line-height: 1.5; }
.jl-title a { color: var(--text-2); }
.jl-company { margin-top: 4px; font-size: 12px; color: var(--muted); }
.jl-table { margin-top: 10px; }
.jl-table div { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.jl-table div:last-child { border-bottom: none; }
.jl-table dt { display: flex; align-items: center; gap: 4px; font-size: 12px; color: #444; }
.jl-table dt .ico { color: var(--teal); }
.jl-table dd { overflow-wrap: anywhere; }
.jl-salary { color: var(--orange); font-weight: 700; font-size: 14px; }
.jl-pr { margin-bottom: -4px; }
.jl .btn-row { margin-top: 12px; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-top: 20px; }
.pagination a, .pagination span { min-width: 36px; height: 36px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 4px; background: #fff; border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.pagination .page-current { background: var(--teal); border-color: var(--teal); color: #fff; }
.pagination .page-ellipsis { border: none; background: none; color: var(--muted); }

/* filter modal */
.modal { position: fixed; inset: 0; z-index: 100; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .45); }
.modal-panel { position: absolute; inset: 0; background: #fff; overflow-y: auto; -webkit-overflow-scrolling: touch; }
@media (min-width: 800px) {
  .modal-panel { inset: auto; top: 40px; left: 50%; transform: translateX(-50%); width: 720px; max-height: calc(100vh - 80px); border-radius: var(--radius); box-shadow: var(--shadow-high); }
}
.modal-head { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2 { display: flex; align-items: center; gap: 6px; font-size: 16px; }
.modal-head .ico { color: var(--teal); }
.modal-close { background: none; border: none; padding: 4px; color: #444; }
.filter-form { padding: 6px 16px 0; }
.filter-block { padding: 12px 0; border-bottom: 1px solid var(--line); }
.filter-acc { padding: 10px 0; border-bottom: 1px solid var(--line); }
.filter-acc summary { display: flex; justify-content: space-between; align-items: center; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.filter-acc summary::-webkit-details-marker { display: none; }
.filter-acc summary::after { content: "+"; color: var(--teal); font-size: 18px; }
.filter-acc[open] > summary::after { content: "−"; }
.filter-acc-sub { width: 100%; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.chip-group > .filter-acc-sub:last-child { border-bottom: none; }
.filter-acc-sub summary { font-size: 13px; font-weight: 500; }
.acc-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 6px; margin-right: auto; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; }
.acc-note { margin-left: 6px; margin-right: auto; padding: 1px 6px; border-radius: 3px; background: var(--teal-20); color: var(--teal-dark); font-size: 11px; font-weight: 500; }
.acc-note + .acc-count { margin-right: 0; }
.results-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* 絞り込みモーダル（本サイト /search 「検索条件を選ぶ」「勤務地を選ぶ」準拠） */
.modal-panel.fm { background: #f4f4f4; padding: 0; }
.fm-form { display: block; }
.fm-view[hidden] { display: none; }
.fm-head { position: sticky; top: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; background: #fff; border-bottom: 1px solid #ededed; }
.fm-back { background: none; border: none; padding: 4px 0; color: var(--teal); font-size: 14px; }
.fm-title { font-size: 16px; font-weight: 700; }
.fm-clear { background: none; border: none; padding: 4px 0; color: #7a7a7a; font-size: 14px; }
.fm-body { padding: 8px 16px 16px; }
.fm-sec { margin: 16px 0 0; font-size: 14px; font-weight: 700; }
.fm-card { margin-top: 8px; background: #fff; border-radius: 4px; overflow: hidden; }
.fm-card-pad { padding: 16px; }
.fm-link { background: none; border: none; padding: 4px 0; color: var(--teal); font-size: 14px; text-decoration: underline; text-align: left; }
.fm-link [data-pref-label].is-set { font-weight: 700; }
.fm-card-title { display: flex; align-items: center; font-size: 14px; font-weight: 700; border-left: 4px solid var(--teal); padding-left: 8px; line-height: 1.4; }
.fm-card-pad > .fm-card-title { margin-bottom: 12px; }
.fm-acc > summary { display: flex; justify-content: space-between; align-items: center; min-height: 53px; padding: 12px 16px; cursor: pointer; list-style: none; }
.fm-acc > summary::-webkit-details-marker { display: none; }
.fm-acc > summary .ico-chev { color: #7a7a7a; transform: rotate(90deg); transition: transform .2s; }
.fm-acc[open] > summary .ico-chev { transform: rotate(-90deg); }
.fm-acc > .fm-grid { padding: 0 16px 16px; }
.fm-acc > .fm-card-pad { padding-top: 0; }
.fm-hint { padding: 0 16px 8px; font-size: 12px; color: #7a7a7a; }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fm-toggle, .fm-check { position: relative; display: flex; }
.fm-toggle input, .fm-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.fm-toggle span { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 47px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 14px; line-height: 1.3; text-align: center; cursor: pointer; }
.fm-toggle input:checked + span { background: var(--teal-20); border-color: var(--teal); color: var(--teal-dark); }
.fm-check span { flex: 1; display: flex; align-items: center; gap: 8px; min-height: 47px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 4px; background: #fff; font-size: 14px; line-height: 1.3; cursor: pointer; }
.fm-check span::before { content: ""; flex: none; width: 16px; height: 16px; border: 1px solid #bbb; border-radius: 3px; background: #fff; }
.fm-check input:checked + span { border-color: var(--teal); }
.fm-check input:checked + span::before { border-color: var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.fm-toggle input:focus-visible + span, .fm-check input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 184, 198, .35); }
.fm-toggle.is-disabled span, .fm-check.is-disabled span { opacity: .4; cursor: not-allowed; }
.fm-note { margin-top: 12px; font-size: 12px; color: #7a7a7a; }
.fm-foot { position: sticky; bottom: 0; z-index: 3; padding: 8px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #ededed; }
.fm-selected { margin-bottom: 8px; font-size: 12px; color: #7a7a7a; }
.fm-foot .btn-row { grid-template-columns: 1fr 1.7fr; }
.fm-foot .btn { min-height: 48px; }
.fm-body-loc { padding: 0; }
.fm-region { background: #fff; border-bottom: 1px solid #ededed; }
.fm-region > summary { display: flex; justify-content: space-between; align-items: center; min-height: 53px; padding: 12px 16px; font-size: 14px; font-weight: 700; cursor: pointer; list-style: none; }
.fm-region > summary::-webkit-details-marker { display: none; }
.fm-region > summary .ico-chev { color: #7a7a7a; transform: rotate(90deg); transition: transform .2s; }
.fm-region[open] > summary .ico-chev { transform: rotate(-90deg); }
.fm-prefs { border-top: 1px solid #ededed; }
.fm-pref { position: relative; display: flex; align-items: center; gap: 6px; padding: 12px 16px 12px 22px; border-bottom: 1px solid #ededed; font-size: 14px; cursor: pointer; }
.fm-pref:last-child { border-bottom: none; }
.fm-pref input { position: absolute; opacity: 0; width: 0; height: 0; }
.fm-pref-check { width: 16px; color: var(--teal-dark); visibility: hidden; display: flex; }
.fm-pref input:checked ~ .fm-pref-check { visibility: visible; }
.fm-pref input:checked ~ .fm-pref-name { color: var(--teal-dark); font-weight: 700; }
.fm-pref:has(input:checked) { background: var(--teal-20); }
.fm-pref-count { color: var(--orange); font-size: 12px; }
.fm-pref.is-empty { opacity: .5; }
.sel-value[data-pref-label].is-set { color: var(--teal-dark); font-weight: 700; }
@media (min-width: 800px) {
  .modal-panel.fm { display: flex; flex-direction: column; }
}
.sel-value.is-set { color: var(--teal-dark); font-weight: 700; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 0 2px; }
.modal-foot { position: sticky; bottom: 0; margin: 0 -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); }
body.modal-open { overflow: hidden; }

/* --------------------------------------------------------------------------
   Detail page
   -------------------------------------------------------------------------- */
.jd-gallery { margin: 0 auto; }
@media (min-width: 800px) { .jd-gallery { max-width: 480px; } }
.jd-main { position: relative; margin: 0; }
.jd-main img { display: block; width: 100%; height: auto; border-radius: 6px; }
.jd-main figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.jd-main figcaption:empty { display: none; }
.jd-thumbs { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.jd-thumbs button { flex: none; width: 72px; padding: 0; border: 2px solid transparent; border-radius: 4px; background: none; overflow: hidden; }
.jd-thumbs button.is-active { border-color: var(--teal); }
.jd-thumbs img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f4f4f4; }
.jd-title { margin-top: 12px; font-size: 16px; line-height: 1.5; }
.jd-company { margin-top: 4px; font-size: 12px; color: var(--muted); }
.jd-meta { margin-top: 10px; font-size: 14px; }
.jd-salary { color: var(--orange); font-weight: 700; }
.summary-box { position: relative; margin-top: 18px; padding: 16px 12px 8px; border: 2px solid var(--orange); border-radius: var(--radius); }
.summary-label { position: absolute; top: -12px; left: 10px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px; background: var(--orange); color: #fff; font-size: 11px; font-weight: 700; }
.summary-box li { display: flex; gap: 6px; padding: 4px 0; font-size: 13px; line-height: 1.6; }
.summary-box li .ico { color: var(--orange); margin-top: 2px; }
.apply-btns { display: grid; gap: 8px; margin-top: 14px; }
.apply-note { font-size: 11px; color: var(--muted); text-align: center; }
.pr-title { display: flex; align-items: center; gap: 8px; margin: -16px -16px 12px; padding: 8px 12px; background: var(--teal); color: #fff; font-size: 15px; border-radius: var(--radius) var(--radius) 0 0; }
.pr-title-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--teal); }
.jd-text { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.sec-card { padding-top: 0; }
.sec-h2 { margin: 0 -16px 12px; padding: 10px 12px; background: var(--teal); color: #fff; font-size: 18px; border-radius: var(--radius) var(--radius) 0 0; }
.row { margin-top: 10px; }
.row-h3 { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 4px; background: var(--teal-20); color: var(--teal-dark); font-size: 13px; }
.row-body { padding: 8px 4px 4px; font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }
.dorm-images { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 8px; }
.dorm-images img { display: block; width: 100%; aspect-ratio: 5 / 3; object-fit: contain; border-radius: 4px; background: #f4f4f4; }
.dorm-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.dorm-points li { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: var(--radius); background: var(--teal-20); color: var(--teal-dark); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.4; }
.fixed-apply { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); }
.fixed-apply-in { display: flex; gap: 8px; }
.fixed-apply .btn-apply { flex: 1; }
body.page-job { padding-bottom: 88px; }

/* --------------------------------------------------------------------------
   Apply form / thanks
   -------------------------------------------------------------------------- */
.apply-container { padding-top: 12px; }
.apply-job { display: flex; gap: 12px; align-items: center; padding: 12px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.apply-job img { flex: none; width: 96px; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 4px; }
.apply-job-label { font-size: 11px; color: var(--muted); }
.apply-job-title { font-weight: 700; font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.apply-job-title a { color: var(--text-2); }
.apply-job-meta { margin-top: 4px; font-size: 12px; color: var(--muted); }
.apply-steps { display: flex; margin: 18px 0; }
.apply-steps li { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--muted); }
.apply-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--border); color: #fff; font-weight: 700; }
.apply-steps li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 2px; background: var(--border); z-index: -1; }
.apply-steps li:first-child::before { display: none; }
.apply-steps li.is-current span, .apply-steps li.is-done span { background: var(--teal); }
.apply-steps li.is-current { color: var(--teal-dark); font-weight: 700; }
.apply-steps li.is-done::before, .apply-steps li.is-current::before { background: var(--teal); }
.apply-form { display: grid; gap: 16px; padding: 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.apply-title { font-size: 18px; }
.apply-lead { font-size: 13px; color: var(--muted); margin-top: -6px; }
.form-group label, .form-label { display: block; font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.req, .opt { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 3px; font-size: 11px; font-weight: 700; vertical-align: middle; }
.req { background: var(--red); color: #fff; }
.opt { background: var(--border); color: var(--muted); }
.help-text { margin-top: 4px; font-size: 12px; color: var(--muted); }
.error-text { margin-top: 4px; font-size: 13px; color: var(--red); font-weight: 700; }
.has-error .input { border-color: var(--red); background: #fffafa; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix .input { max-width: 120px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.radio { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; cursor: pointer; }
.radio input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.check-agree { padding: 10px 12px; background: var(--teal-20); border-radius: 4px; font-size: 14px; }
.check-agree input { width: 20px; height: 20px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; opacity: 0; height: 0; overflow: hidden; }
.apply-actions { display: grid; gap: 10px; margin-top: 4px; }
.notice { padding: 14px 16px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); margin-top: 12px; }
.notice.notice-error { background: #fdecea; border-color: #f5b5b0; color: #9b1c15; }
.notice-large { text-align: center; padding: 40px 16px; }
.notice-large h1 { font-size: 18px; margin-bottom: 12px; }
.notice-large p { color: var(--muted); margin-bottom: 16px; }
.confirm-table div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.confirm-table div:last-child { border-bottom: none; }
.confirm-table dt { color: var(--muted); font-size: 13px; }
.confirm-table dd { overflow-wrap: anywhere; }
.thanks-box { display: grid; gap: 14px; padding: 28px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); text-align: center; }
.thanks-icon { display: flex; justify-content: center; }
.thanks-title { font-size: 20px; color: var(--teal-dark); }
.thanks-lead { font-size: 14px; color: var(--muted); }
.thanks-detail { text-align: left; }
.thanks-token { font-weight: 700; font-size: 18px; letter-spacing: .05em; color: var(--orange); }
.thanks-note { font-size: 12px; color: var(--muted); }
.thanks-debug { color: var(--teal-dark); }
.page-thanks .section { margin-top: 24px; }
.page-thanks .section-title { font-size: 16px; border-left: 4px solid var(--teal); padding-left: 8px; margin-bottom: 10px; }

/* --------------------------------------------------------------------------
   Entry form（本サイトのチャット形式 8ステップ）/ thanks
   -------------------------------------------------------------------------- */
.entry-head { position: sticky; top: var(--hd); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.entry-head-in { display: flex; align-items: center; gap: 12px; height: 44px; }
.entry-back { width: 28px; flex: none; color: #666; font-size: 26px; line-height: 1; text-align: center; }
.entry-back.is-empty { visibility: hidden; }
.entry-progress { flex: 1; display: flex; gap: 4px; }
.entry-progress .seg { flex: 1; height: 6px; border-radius: 3px; background: #e3e3e3; transition: background .2s; }
.entry-progress .seg.is-on { background: var(--orange); }
.entry-counter { flex: none; min-width: 34px; color: var(--orange); font-weight: 700; font-size: 16px; text-align: right; }
.entry-job { background: #fff; padding: 8px 0 10px; border-bottom: 1px solid var(--line); }
.entry-job-title { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.entry-job-chips { margin-top: 6px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip-gray, .chip-orange { display: inline-block; padding: 3px 8px; border-radius: 4px; font-size: 12px; line-height: 1.4; }
.chip-gray { background: #eef1f3; color: #333; }
.chip-orange { background: #fdf0e3; color: var(--orange); font-weight: 700; }
.chat { padding-top: 14px; padding-bottom: 140px; min-height: calc(100vh - 200px); }
.page-apply .ft { display: none; }
.page-apply .main, .page-thanks .main { padding-bottom: 0; }
.entry-alert { margin-bottom: 10px; padding: 10px 12px; border-radius: 8px; background: #fdecea; color: #9b1c15; font-size: 13px; font-weight: 700; }
.msg { display: flex; align-items: flex-start; gap: 10px; margin-top: 14px; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid #cfeef2; display: grid; place-items: center; color: var(--teal); }
.bubble { max-width: 86%; padding: 12px 14px; border-radius: 16px; border-top-left-radius: 4px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.65; }
.bubble-white { background: #fff; color: var(--text); font-weight: 400; box-shadow: var(--shadow); }
.q[hidden] { display: none; }
.q { animation: qin .25s ease; }
@keyframes qin { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.answers { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; margin-top: 10px; padding-left: 54px; }
.answers-full { padding-left: 0; }
.answers-full .ans-input { width: 100%; }
.ans-card { position: relative; display: inline-flex; }
.ans-card input { position: absolute; opacity: 0; width: 0; height: 0; }
.ans-card span { display: inline-flex; align-items: center; gap: 10px; min-width: 128px; padding: 12px 16px; border: 2px solid transparent; border-radius: 8px; background: #fff; box-shadow: var(--shadow); font-size: 14px; cursor: pointer; }
.ans-card span::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #bbb; background: #fff; box-sizing: border-box; }
.ans-card input:checked + span { border-color: var(--teal); }
.ans-card input:checked + span::before { border-color: var(--teal); background: radial-gradient(var(--teal) 40%, #fff 46%); }
.ans-card input:focus-visible + span { box-shadow: 0 0 0 3px rgba(34, 184, 198, .35); }
.ans-select { display: flex; align-items: center; gap: 8px; width: min(100%, 260px); padding: 10px 12px; border: 1px solid #333; border-radius: 8px; background: #fff; }
.ans-select .ico { color: #333; }
.ans-select select { flex: 1; min-width: 0; border: none; background: transparent; font-size: 15px; appearance: none; -webkit-appearance: none; }
.ans-select select:focus { outline: none; }
.ans-input { padding: 12px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 16px; line-height: 1.4; }
.ans-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(34, 184, 198, .2); }
.birth { display: flex; align-items: center; gap: 6px; }
.birth input { width: 60px; padding: 12px 6px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 16px; text-align: center; }
.birth input:first-child { width: 84px; }
.birth input:focus { outline: none; border-color: var(--teal); }
.birth span { font-size: 13px; color: #444; }
.next-btn { min-width: 76px; min-height: 40px; }
.ans-error { display: none; width: 100%; text-align: right; color: var(--red); font-size: 12px; font-weight: 700; }
.ans-error:not(:empty) { display: block; }
.ans-error.is-center { text-align: center; margin-bottom: 6px; }
.entry-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -2px 8px rgba(0, 0, 0, .08); }
.entry-foot[hidden] { display: none; }
.agree { display: flex; justify-content: center; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 0; accent-color: var(--teal); }
.agree a { text-decoration: underline; }
.chat-thanks { padding-bottom: 24px; }
.thanks-label { font-size: 11px; color: var(--muted); }
.thanks-token { font-size: 20px; font-weight: 700; color: var(--orange); letter-spacing: .05em; }
.thanks-jobname { margin-top: 6px; font-size: 13px; line-height: 1.5; }
.thanks-jobname small { color: var(--muted); }
.thanks-debug { margin-top: 12px; font-size: 12px; color: var(--teal-dark); }
.thanks-actions { display: grid; gap: 8px; margin-top: 20px; }
