/*
 * はたらくNight 求人詳細専用CSS v0.2.21
 * style.css のキャッシュ影響を避けるため、single job のみ後読み込み。
 */

body.single-job .hn-page-main {
  padding: 20px 0 36px;
}

body.single-job .hn-job-detail-body {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

body.single-job .hn-job-detail-body > *,
body.single-job .hn-job-block,
body.single-job .hn-job-hero,
body.single-job .hn-job-section,
body.single-job .hn-salary-overview,
body.single-job .hn-apply-box,
body.single-job .hn-interview-check-list,
body.single-job .hn-feature-grid {
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.single-job .hn-job-tags,
body.single-job .hn-job-tags--hero {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.single-job .hn-job-tags a,
body.single-job .hn-job-tags--hero a {
  max-width: 100% !important;
  min-width: 0 !important;
  font-size: 0.7rem !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

/* 写真カルーセル：次の画像を少し見せる */
body.single-job .hn-job-gallery {
  display: flex !important;
  gap: 10px !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  scroll-snap-type: x mandatory !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 0 14px 8px 0 !important;
  margin-right: -14px !important;
}

body.single-job .hn-job-gallery a,
body.single-job .hn-job-gallery figure,
body.single-job .hn-job-gallery .hn-gallery-item {
  flex: 0 0 82% !important;
  max-width: 82% !important;
  min-width: 0 !important;
  scroll-snap-align: start !important;
}

body.single-job .hn-job-gallery img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  border-radius: 16px !important;
}

@media (min-width: 900px) {
  body.single-job .hn-job-detail-body {
    display: flex !important;
    flex-direction: column !important;
  }

  body.single-job .hn-job-gallery a,
  body.single-job .hn-job-gallery figure,
  body.single-job .hn-job-gallery .hn-gallery-item {
    flex-basis: 46% !important;
    max-width: 46% !important;
  }
}

/* お給料の目安：ボタン */
body.single-job .hn-salary-sim-launch {
  display: grid !important;
  gap: 8px !important;
  margin-top: 14px !important;
  padding: 14px !important;
  border: 1px solid rgba(255, 115, 38, .18) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #fff7ed 0%, #fff 100%) !important;
  box-sizing: border-box !important;
}

body.single-job .hn-salary-sim-open,
body.single-job button.hn-salary-sim-open {
  appearance: button !important;
  -webkit-appearance: button !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 50px !important;
  margin: 8px 0 !important;
  padding: 12px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--hn-grad) !important;
  color: #fff !important;
  font-family: var(--hn-font-display) !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  text-align: center !important;
  text-decoration: none !important;
  box-shadow: 0 10px 20px rgba(255, 107, 26, .22) !important;
  cursor: pointer !important;
}

/* お給料の目安：モーダル表示制御 */
body.single-job .hn-salary-modal,
body.single-job .hn-salary-modal[hidden],
body.single-job .hn-salary-modal:not(.is-open) {
  display: none !important;
}

body.single-job .hn-salary-modal.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100000 !important;
  display: grid !important;
  place-items: end center !important;
  padding: 18px 12px !important;
  box-sizing: border-box !important;
}

body.single-job .hn-salary-modal__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(42, 34, 29, .56) !important;
  backdrop-filter: blur(4px) !important;
}

body.single-job .hn-salary-modal__panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(640px, 100%) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: min(86vh, 760px) !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch !important;
  padding: 18px 14px 20px !important;
  border-radius: 22px 22px 18px 18px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(42, 34, 29, .28) !important;
  box-sizing: border-box !important;
}

/* お給料の目安：1列固定 */
body.single-job .hn-salary-modal .hn-salary-sim,
body.single-job .hn-salary-modal .hn-salary-sim__grid,
body.single-job .hn-salary-modal .hn-salary-sim__grid--backs,
body.single-job .hn-salary-modal .hn-salary-sim__result,
body.single-job .hn-salary-modal .hn-salary-sim__breakdown {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__grid,
body.single-job .hn-salary-modal .hn-salary-sim__grid--backs,
body.single-job .hn-salary-modal .hn-salary-sim__result {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 10px !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__grid label {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* セレクトボックスをネイティブ表示に戻す */
body.single-job .hn-salary-modal .hn-salary-sim select {
  appearance: auto !important;
  -webkit-appearance: menulist !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  padding: 9px 10px !important;
  border: 1px solid var(--hn-line) !important;
  border-radius: 12px !important;
  background-color: #fff !important;
  color: var(--hn-ink) !important;
  font-size: 16px !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}


body.single-job .hn-salary-modal .hn-salary-sim__result > div {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 0 !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__result strong {
  text-align: right !important;
}

html.hn-modal-open,
html.hn-modal-open body {
  overflow: hidden !important;
}

@media (min-width: 900px) {
  body.single-job .hn-salary-modal.is-open {
    place-items: center !important;
    padding: 28px !important;
  }

  body.single-job .hn-salary-modal__panel {
    padding: 22px 22px 24px !important;
    border-radius: 24px !important;
  }

  body.single-job .hn-salary-sim-open,
  body.single-job button.hn-salary-sim-open {
    width: auto !important;
    min-width: 260px !important;
    justify-self: start !important;
  }
}

/* お給料の目安：固定ボタン */
body.single-job .hn-salary-floating-open {
  position: fixed !important;
  z-index: 1200 !important;
  right: 14px !important;
  bottom: calc(88px + env(safe-area-inset-bottom)) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-width: 92px !important;
  min-height: 48px !important;
  padding: 10px 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, #ff7a2f 0%, #ff4f81 100%) !important;
  color: #fff !important;
  font-family: var(--hn-font-display) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  box-shadow: 0 10px 28px rgba(255, 95, 65, .34) !important;
  cursor: pointer !important;
}

body.single-job .hn-salary-floating-open .hn-ic {
  width: 18px !important;
  height: 18px !important;
}

@media (min-width: 900px) {
  body.single-job .hn-salary-floating-open {
    right: 24px !important;
    bottom: 24px !important;
    min-width: 118px !important;
    min-height: 52px !important;
    padding: 12px 18px !important;
    font-size: 13px !important;
  }
}

/* お給料の目安：詳細アコーディオン補足 */
body.single-job .hn-salary-modal .hn-salary-sim__details {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  border: 1px solid rgba(255, 115, 38, .16) !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  background: #fffaf5 !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__details + .hn-salary-sim__details {
  margin-top: 10px !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__details summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  color: var(--hn-ink) !important;
  font-size: 14px !important;
  list-style: none !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__details summary::after {
  content: '▼' !important;
  flex: 0 0 auto !important;
  color: var(--hn-orange) !important;
  font-size: 11px !important;
  line-height: 1 !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__details[open] summary::after {
  content: '▲' !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__details summary::-webkit-details-marker {
  display: none !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__subnote,
body.single-job .hn-salary-modal .hn-salary-sim__confirm-list {
  margin: 10px 0 0 !important;
  color: var(--hn-muted) !important;
  font-size: 12px !important;
  line-height: 1.75 !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__confirm-list {
  padding-left: 1.2em !important;
}

body.single-job .hn-salary-modal .hn-salary-sim__confirm-list li + li {
  margin-top: 4px !important;
}


/* 求人写真：タップ拡大対応 */
body.single-job .hn-gallery-item {
  margin: 0 !important;
}

body.single-job .hn-gallery-zoom {
  display: block !important;
  width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  cursor: zoom-in !important;
}

body.single-job .hn-gallery-item figcaption {
  margin-top: 7px !important;
  color: var(--hn-muted) !important;
  font-size: 12px !important;
  line-height: 1.6 !important;
}

body.single-job .hn-gallery-modal,
body.single-job .hn-gallery-modal[hidden],
body.single-job .hn-gallery-modal:not(.is-open) {
  display: none !important;
}

body.single-job .hn-gallery-modal.is-open {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100001 !important;
  display: grid !important;
  place-items: center !important;
  padding: 18px 12px !important;
  box-sizing: border-box !important;
}

body.single-job .hn-gallery-modal__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(42, 34, 29, .72) !important;
  backdrop-filter: blur(5px) !important;
}

body.single-job .hn-gallery-modal__panel {
  position: relative !important;
  z-index: 1 !important;
  width: min(760px, 100%) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: 88vh !important;
  display: grid !important;
  gap: 10px !important;
  padding: 12px !important;
  border-radius: 20px !important;
  background: #fff !important;
  box-shadow: 0 18px 46px rgba(42, 34, 29, .32) !important;
  box-sizing: border-box !important;
}

body.single-job .hn-gallery-modal__img {
  display: block !important;
  width: 100% !important;
  max-height: 72vh !important;
  object-fit: contain !important;
  border-radius: 14px !important;
  background: #f8f1ec !important;
}

body.single-job .hn-gallery-modal__caption {
  margin: 0 !important;
  padding: 0 4px 2px !important;
  color: var(--hn-ink) !important;
  font-size: 13px !important;
  line-height: 1.7 !important;
}

body.single-job .hn-gallery-modal__close {
  position: absolute !important;
  z-index: 2 !important;
  top: -12px !important;
  right: -8px !important;
  width: 38px !important;
  height: 38px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--hn-ink) !important;
  font-size: 24px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 8px 22px rgba(42, 34, 29, .24) !important;
  cursor: pointer !important;
}

/* 店舗スタッフ系の注意ブロック */
body.single-job .hn-job-staff-notice,
body.single-job .hn-job-driver-check,
body.single-job .hn-job-websns-check {
  border-color: rgba(255, 115, 38, .20) !important;
  background: linear-gradient(180deg, #fffaf5 0%, #fff 100%) !important;
}


/* v0.2.52: 求人詳細ページ キープボタン */
body.single-job .hn-job-fixed-cta {
  grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)) !important;
}

body.single-job .hn-apply-btn--keep,
body.single-job .hn-job-fixed-cta__btn--keep {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  color: #fff !important;
  background: var(--hn-grad) !important;
  border: 1.6px solid var(--hn-orange) !important;
  box-shadow: 0 8px 18px rgba(255, 111, 28, .22) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}

body.single-job .hn-apply-btn--keep.is-kept,
body.single-job .hn-apply-btn--keep[aria-pressed="true"],
body.single-job .hn-job-fixed-cta__btn--keep.is-kept,
body.single-job .hn-job-fixed-cta__btn--keep[aria-pressed="true"] {
  color: var(--hn-orange) !important;
  background: #fff !important;
  border-color: var(--hn-orange) !important;
  box-shadow: none !important;
}

body.single-job .hn-apply-btn--keep .hn-ic,
body.single-job .hn-job-fixed-cta__btn--keep .hn-ic {
  width: 18px !important;
  height: 18px !important;
}

body.single-job .hn-apply-btns .hn-apply-btn--keep {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

@media (min-width: 900px) {
  body.single-job .hn-apply-btns {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }
}
