/* 求人詳細。色・角丸・文字の大きさはエリアのトップ・求人一覧(result_area.css)に合わせる 2026.10.21 */
body { background: #f5f7fa; }
.detail { --area: #1f63c7; --area-dark: #1a4fa0; --area-pale: #eef5fe; --area-line: #b9d3f3; --text: #2b3a4e; --sub: #6b7a8f; --line: #e3e7ee;
    max-width: 960px; margin: 0 auto; padding: 16px 16px 40px; color: var(--text); font-size: 14px; line-height: 1.8; }
.detail.-kagoshima { --area: #ee8418; --area-dark: #cf6a06; --area-pale: #fff3e4; --area-line: #f6cf9c; }
.detail.-miyazaki { --area: #2f9446; --area-dark: #237a37; --area-pale: #ecf7ec; --area-line: #b7dcbc; }
.detail *, .detail *::before, .detail *::after { box-sizing: border-box; }
.detail :where(h1, h2, h3, p, ul, ol, li, dl, dt, dd, figure) { margin: 0; padding: 0; list-style: none; }
.detail svg { width: 20px; height: 20px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.detail a { color: var(--area-dark); }

/* 詳細では右上の「絞り込み検索」のタブは出さない */
.common__narrow { display: none; }

.detail__back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; font-weight: bold; text-decoration: none; }
.detail__back::before { content: ""; width: 8px; height: 8px; border-left: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.detail__closed { margin-bottom: 14px !important; padding: 12px 16px !important; border-radius: 10px; background: #fdeef0; color: #c4232e; font-weight: bold; }

.detail__card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .04); }

/* 上: 写真・職種・給与など */
.detail__summary { position: relative; display: flex; gap: 24px; padding: 24px; }
.detail__photos { flex: 0 0 300px; }
.detail__photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #f1f3f6; }
.detail__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__new { position: absolute; left: -26px; top: 10px; width: 90px; padding: 2px 0; background: #e3343f; color: #fff; font-size: 11px; font-weight: bold; text-align: center; transform: rotate(-45deg); }
.detail__thumbs { display: flex; gap: 6px; margin-top: 8px !important; }
.detail__thumbs button { width: 60px; height: 45px; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; }
.detail__thumbs button.-current { border-color: var(--area); }
.detail__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__head { flex: 1; min-width: 0; padding-right: 44px; }
.detail__labels { display: flex; flex-wrap: wrap; gap: 6px; }
.detail__labels li { padding: 2px 10px; border: 1px solid var(--area-line); border-radius: 4px; background: var(--area-pale); color: var(--area-dark); font-size: 12px; }
.detail__labels li.-green { border-color: #c6e5cb; background: #ecf7ee; color: #2f8a46; }
.detail__labels li.-orange { border-color: #f6d9a8; background: #fff5e2; color: #c77a0a; }
.detail__title { margin-top: 10px !important; padding: 0 !important; border: 0 !important; background: none !important; font-size: 22px; font-weight: bold; line-height: 1.5; color: var(--text); text-align: left !important; }
.detail__companyName { margin-top: 6px !important; font-size: 15px; }
.detail__info { margin-top: 14px !important; }
.detail__info li { position: relative; padding-left: 28px; font-size: 14px; }
.detail__info li + li { margin-top: 6px; }
.detail__info li::before { content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; background: var(--text); -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.detail__info li.-place { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a7 7 0 0 0-7 7c0 5.3 7 13 7 13s7-7.7 7-13a7 7 0 0 0-7-7zm0 9.5A2.5 2.5 0 1 1 12 6.5a2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E"); }
.detail__info li.-yen { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9.5' stroke-width='2'/%3E%3Cpath d='M8.5 7l3.5 5 3.5-5M12 12v6M9 13.2h6M9 15.8h6' stroke-width='1.8'/%3E%3C/svg%3E"); }
.detail__info li.-time { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 2a8 8 0 1 1 0 16 8 8 0 0 1 0-16zm-1 3v6l5 3 1-1.6-4-2.4V7z'/%3E%3C/svg%3E"); }
.detail__keep { position: absolute; right: 20px; top: 20px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: #fff; color: #9aa4b2 !important; }
.detail__keep svg { width: 24px; height: 24px; stroke-width: 1.6; }
.detail__keep:hover { color: #e3343f !important; background: #fdeef0; }

/* ここがポイント！ */
.detail__point { display: flex; gap: 24px; margin: 0 24px 24px; padding: 18px 20px; border: 1px solid var(--area-line); border-radius: 12px; background: var(--area-pale); }
.detail__pointText { flex: 1; min-width: 0; }
.detail__pointText h2 { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--area-dark); font-size: 16px; font-weight: bold; }
.detail__pointText h2 svg { color: #f2a516; }
.detail__pointTags { flex: 0 0 44%; display: grid; grid-template-columns: repeat(2, 1fr); align-content: start; gap: 10px 12px; }
.detail__pointTags li { display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 1.4; }
.detail__pointTags svg { width: 30px; height: 30px; padding: 4px; border-radius: 8px; background: #fff; color: var(--area); stroke: var(--area); stroke-width: 1.8; }
.detail__pointTags svg.-wakaba { padding: 2px; }

/* 募集要項(アイコン付きの行) */
.detail__rows { border-top: 1px solid var(--line); }
.detail__row { display: flex; gap: 20px; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.detail__row dt { flex: 0 0 220px; display: flex; align-items: center; gap: 14px; font-size: 16px; font-weight: bold; align-self: flex-start; }
.detail__row .-icon { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--area); color: #fff; flex-shrink: 0; }
.detail__row .-icon svg { width: 22px; height: 22px; color: #fff; stroke: #fff; }
.detail__row dd { flex: 1; min-width: 0; padding-top: 10px; overflow-wrap: anywhere; }
.detail__row dd strong { font-size: 15px; }
.detail__note { display: block; margin-top: 10px; padding: 10px 14px; border-radius: 8px; background: #f7f9fb; font-size: 13px; }
.detail__note b { display: block; color: var(--sub); font-size: 12px; }
.detail__area { display: inline-block; margin: 2px 6px 2px 0; padding: 0 8px; border-radius: 4px; background: #f1f3f6; font-size: 12px; }
.detail__mapLink { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; font-size: 13px; font-weight: bold; }
.detail__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.detail__chips span { padding: 2px 10px; border-radius: 4px; background: #f1f3f6; font-size: 12px; }

/* 応募の流れ・会社概要 */
.detail__flow, .detail__company { padding: 22px 24px; border-bottom: 1px solid var(--line); }
.detail__flow h2, .detail__company h2 { margin-bottom: 12px; font-size: 16px; font-weight: bold; }
.detail__flow ol { counter-reset: flow; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.detail__flow li { position: relative; padding: 36px 12px 12px; border-radius: 10px; background: #f7f9fb; font-size: 13px; line-height: 1.7; counter-increment: flow; }
.detail__flow li::before { content: counter(flow); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--area); color: #fff; font-size: 12px; font-weight: bold; line-height: 22px; text-align: center; }
.detail__company dl div { display: flex; gap: 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail__company dt { flex: 0 0 120px; color: var(--sub); }

/* 応募を検討中の方へ */
.detail__message { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 24px; padding: 18px 24px; border: 1px solid #f3dfae; border-radius: 12px; background: #fff9ea; }
.detail__message h2 { display: flex; align-items: center; gap: 6px; margin-bottom: 6px; font-size: 15px; font-weight: bold; }
.detail__message h2 svg { color: #f2a516; }
.detail__message p { font-size: 13px; }
.detail__message img { width: 110px; height: 110px; margin: -10px 0 -18px; object-fit: cover; object-position: top; }

/* 関連求人・オススメ */
.detail__more { margin-top: 32px; }
.detail__more h2 { margin-bottom: 12px; padding-left: 12px; border-left: 4px solid var(--area); font-size: 17px; font-weight: bold; line-height: 1.5; }
.detail__jobs { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 12px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.detail__job { flex: 0 0 210px; scroll-snap-align: start; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text) !important; text-decoration: none; }
.detail__job:hover { border-color: var(--area-line); }
.detail__job figure { aspect-ratio: 4 / 3; overflow: hidden; background: #f1f3f6; }
.detail__job figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.detail__jobType { display: inline-block; margin: 10px 10px 0; padding: 1px 8px; border: 1px solid var(--area-line); border-radius: 4px; color: var(--area-dark); font-size: 11px; }
.detail__jobTitle { margin: 6px 10px 0 !important; font-size: 14px; font-weight: bold; line-height: 1.5; }
.detail__jobSalary { margin: 4px 10px 12px !important; color: var(--sub); font-size: 12px; }

/* 下に固定する応募ボタン */
.detail.-withBar { padding-bottom: 120px; }
.detail__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: 12px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .96); box-shadow: 0 -4px 12px rgba(0, 0, 0, .06); }
.detail__barInner { display: flex; gap: 12px; max-width: 960px; margin: 0 auto; }
.detail__bar a, .detail__bar span.-tel { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 56px; padding: 0 20px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; color: var(--text) !important; font-size: 14px; font-weight: bold; text-decoration: none; white-space: nowrap; }
.detail__bar .-keep svg { width: 24px; height: 24px; color: var(--area); }
.detail__bar .-tel { border-color: var(--area); color: var(--area-dark) !important; }
.detail__bar .-tel.-off { border-color: var(--line); color: var(--sub) !important; }
.detail__bar .-apply { flex: 1; border-color: var(--area); background: var(--area); color: #fff !important; font-size: 18px; letter-spacing: .1em; }
.detail__bar .-apply:hover { background: var(--area-dark); }
.detail__bar .-apply svg { stroke: #fff; }
/* 詳細ではスマホの下のタブの代わりに応募ボタンを出す */
.spTabbar { display: none !important; }
.common__pageTop { bottom: 100px !important; }

/* 地図のモーダルの見出し */
.detail .modal-content h3 { margin-bottom: 10px; font-size: 16px; font-weight: bold; }

/* エージェントの電話モーダル */
.detail__agentModal { display: none; position: fixed; inset: 0; z-index: 100; }
.detail__agentModalBg { position: absolute; inset: 0; background: rgba(30, 30, 30, .8); }
.detail__agentModalBody { position: absolute; left: 50%; top: 50%; width: 90%; max-width: 400px; padding: 24px; border-radius: 14px; background: #fff; transform: translate(-50%, -50%); font-size: 14px; line-height: 1.8; }
.detail__agentModalBody .-title { color: #1f63c7; font-size: 16px; font-weight: bold; }
.detail__agentModalBody a { font-size: 24px; font-weight: bold; }
.detail__agentModalBody button { position: absolute; right: 12px; top: 8px; border: 0; background: none; font-size: 26px; cursor: pointer; }

@media screen and (max-width: 767px) {
    .detail { padding: 12px 12px 32px; }
    .detail__summary { flex-direction: column; gap: 14px; padding: 14px; }
    .detail__photos { flex: none; }
    .detail__head { padding-right: 0; }
    .detail__title { font-size: 18px; }
    .detail__companyName { font-size: 14px; }
    .detail__info li { font-size: 13px; }
    .detail__keep { right: 22px; top: 22px; }
    .detail__point { flex-direction: column; gap: 12px; margin: 0 14px 14px; padding: 14px; }
    .detail__pointTags { flex: none; }
    .detail__row { flex-direction: column; gap: 8px; padding: 14px; }
    .detail__row dt { flex: none; gap: 10px; font-size: 15px; }
    .detail__row .-icon { width: 36px; height: 36px; }
    .detail__row .-icon svg { width: 18px; height: 18px; }
    .detail__row dd { padding-top: 0; font-size: 13px; }
    .detail__flow, .detail__company { padding: 16px 14px; }
    .detail__flow ol { grid-template-columns: 1fr; gap: 8px; }
    .detail__flow li { padding: 10px 12px 10px 44px; }
    .detail__flow li::before { top: 10px; }
    .detail__message { margin: 16px 14px; padding: 14px; }
    .detail__message img { width: 80px; height: 80px; }
    .detail__job { flex-basis: 160px; }
    .detail.-withBar { padding-bottom: 100px; }
    .detail__bar { padding: 10px 12px; }
    .detail__barInner { gap: 8px; }
    .detail__bar a, .detail__bar span.-tel { height: 50px; padding: 0 12px; border-radius: 12px; font-size: 12px; }
    .detail__bar .-tel span { display: none; }
    .detail__bar .-tel { width: 54px; flex: none; padding: 0; }
    .detail__bar .-keep { gap: 4px; padding: 0 10px; }
    .detail__bar .-apply { font-size: 16px; }
    .common__pageTop { bottom: 84px !important; }
    body { padding-bottom: 0 !important; }
}
