/* 求人詳細ページ専用。既存のブルー・ティールと応募フォームを引き継ぐ。 */
.job-detail-page {
  --jd-blue: #3d79d4;
  --jd-teal: #22bebe;
  --jd-gradient: linear-gradient(105deg, #22bebe 0%, #3d81dd 100%);
  --jd-ink: #243746;
  --jd-muted: #687d8c;
  --jd-line: #e3ebf0;
  --jd-soft: #f3f8fc;
  background: #f7f9fb;
  color: var(--jd-ink);
}

.job-detail-page #main_content.job-detail {
  width: calc(100% - 64px);
  max-width: 1180px;
  margin: 32px auto 64px;
  padding: 0;
  float: none;
}

.job-detail > .l-mainContent__inner { padding: 0; }
.job-detail .job-detail-content { margin: 0; }
.job-detail *, .job-detail *::before, .job-detail *::after { box-sizing: border-box; }
.job-detail a { text-decoration: none; }
.job-detail a:focus-visible, .job-detail button:focus-visible {
  outline: 3px solid var(--jd-blue);
  outline-offset: 4px;
}
.job-detail-symbols { position: absolute; width: 0; height: 0; overflow: hidden; }
.job-detail .job-detail-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}

.job-detail .job-detail-hero {
  position: relative;
  margin: 0;
  padding: 32px 38px 34px;
  border: 1px solid #dce9f2;
  border-radius: 22px;
  background: radial-gradient(ellipse at 100% 0%, #e0f5f6 0%, transparent 48%), linear-gradient(120deg, #fff 40%, #f1f7ff 100%);
  box-shadow: 0 8px 36px rgba(36, 70, 100, .045);
}
.job-detail-hero-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.job-detail-eyebrow { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 14px; font-weight: 700; }
.job-detail-eyebrow > span:first-child { padding: 4px 11px; color: #fff; background: var(--jd-gradient); border-radius: 5px; font-size: 13px; letter-spacing: .06em; }
.job-detail-eyebrow .p-articleMetas__termList { margin: 0; }
.job-detail-eyebrow .c-categoryList__link { border: 0; padding: 0; margin: 0 8px 0 0; color: var(--jd-muted); font-size: 14px; white-space: normal; }
.job-detail-eyebrow .c-categoryList__link a { color: inherit; }
.job-detail .job-detail-title {
  max-width: 1010px;
  margin: 22px 0 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--jd-ink);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.job-detail .job-detail-title::before, .job-detail .job-detail-title::after { content: none; }
.job-detail-title-toggle {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 2px 8px;
  vertical-align: middle;
  background-color: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: var(--jd-blue, #0d74ce);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: normal;
  cursor: pointer;
  transition: all 0.2s ease;
}
.job-detail-title-toggle:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
  color: #0b5ea7;
}
.job-detail-company { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.job-detail-company-name { font-size: 16px; font-weight: 700; }
.job-detail-job-id { color: var(--jd-muted); font-size: 13px; }

.job-detail .book-mark-wrapper { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.job-detail .book-mark {
  width: auto;
  min-height: 38px;
  padding: 10px 14px;
  border: 1px solid #d6e2ee;
  border-radius: 8px;
  background: #fff;
  color: var(--jd-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  cursor: pointer;
}
.job-detail .book-mark-job-delete { border-color: #bed8f3; background: #edf5fd; color: var(--jd-blue); }
.job-detail .book-mark:hover { border-color: var(--jd-blue); }
.job-detail .book-mamrk-link { padding: 0; color: var(--jd-muted); font-size: 12px; }
.job-detail .book-mamrk-link:hover { color: var(--jd-blue); text-decoration: underline; }

.job-detail-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 26px; }
.job-detail-metric { min-width: 0; padding: 18px 20px; border: 1px solid var(--jd-line); border-radius: 12px; background: rgba(255,255,255,.94); }
.job-detail-metric-label { display: flex; gap: 7px; align-items: center; margin-bottom: 10px; color: var(--jd-muted); font-size: 13px; font-weight: 700; }
.job-detail-metric-label .job-detail-icon { width: 16px; height: 16px; color: var(--jd-blue); }
.job-detail-metric-value { color: var(--jd-ink); font-size: 16px; font-weight: 750; line-height: 1.7; overflow-wrap: anywhere; }
.job-detail-metric-value.is-salary { color: var(--jd-blue); font-size: clamp(22px, 2.1vw, 27px); font-weight: 800; line-height: 1.4; letter-spacing: -.04em; }
.job-detail-metric-value small { font-size: 12px; font-weight: 700; letter-spacing: 0; }
.job-detail-metric-value .p-articleMetas__termList { display: inline; }
.job-detail-metric-value .c-categoryList__link { display: inline; margin: 0 8px 0 0; padding: 0; border: 0; font-size: inherit; color: inherit; white-space: normal; }
.job-detail-metric-value .c-categoryList__link a { color: inherit; }
.job-detail-metric-value a:hover { text-decoration: underline; }
.job-detail-tags { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.job-detail-tags .p-articleMetas__termList { display: contents; }
.job-detail-tags .c-categoryList__link { display: inline-block; margin: 0; padding: 5px 10px; border: 1px solid #dce7ef; border-radius: 5px; background: #fff; color: #526b7c; font-size: 13px; white-space: normal; }
.job-detail-tags .job_pickup .c-categoryList__link { border-color: #c6e8e8; background: #eefafa; color: #267777; }
.job-detail-tags .c-categoryList__link a { color: inherit; }

.job-detail .job-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 294px; align-items: start; gap: 26px; margin: 26px 0 0; }
.job-detail-main { min-width: 0; }
.job-detail-nav {
  position: sticky;
  top: calc(var(--swl-adminbarH, 0px) + 88px);
  z-index: 20;
  display: flex;
  gap: 2px;
  overflow-x: auto;
  margin: 0 0 22px;
  padding: 0 8px;
  border: 1px solid var(--jd-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(35, 65, 85, .035);
  scrollbar-width: none;
}
.job-detail-nav::-webkit-scrollbar { display: none; }
.job-detail .job-detail-nav a { flex: 1 0 auto; padding: 16px 10px 13px; border-bottom: 3px solid transparent; color: var(--jd-muted); font-size: 14px; font-weight: 700; text-align: center; white-space: nowrap; }
.job-detail .job-detail-nav a:hover, .job-detail .job-detail-nav a[aria-current="location"] { border-bottom-color: var(--jd-blue); color: var(--jd-blue); }
.job-detail-section { margin: 0 0 22px; padding: 28px 30px; border: 1px solid var(--jd-line); border-radius: 15px; background: #fff; scroll-margin-top: calc(var(--swl-adminbarH, 0px) + 160px); }
.job-detail-section-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 22px; }
.job-detail .job-detail-section-title { display: flex; align-items: center; gap: 10px; margin: 0; padding: 0; border: 0; background: none; color: var(--jd-ink); font-size: 22px; font-weight: 800; line-height: 1.5; letter-spacing: -.025em; }
.job-detail .job-detail-section-title::before { position: static; display: block; width: 4px; height: 22px; border: 0; border-radius: 3px; background: var(--jd-gradient); content: ""; }
.job-detail .job-detail-section-title::after { content: none; }
.job-detail-section-en { color: #98a8b3; font-size: 11px; font-weight: 700; letter-spacing: .12em; }
.job-detail-richtext { color: #4e6372; font-size: 16px; line-height: 2; overflow-wrap: anywhere; }
.job-detail-richtext > :first-child { margin-top: 0; }
.job-detail-richtext > :last-child { margin-bottom: 0; }
.job-detail-richtext ul, .job-detail-richtext ol { padding-left: 1.5em; }
.job-detail-richtext a { color: var(--jd-blue); text-decoration: underline; }
.job-detail .job-detail-subtitle { margin: 24px 0 12px; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 750; }
.job-detail .job-detail-subtitle::before, .job-detail .job-detail-subtitle::after { content: none; }
.job-detail .job-detail-advisor { display: flex; align-items: flex-start; gap: 16px; margin: 0; padding: 20px; border: 1px solid #dcecef; border-radius: 12px; background: linear-gradient(120deg, #f0fafa, #f4f8fd); }
.job-detail-advisor img { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.job-detail-advisor-copy { min-width: 0; }
.job-detail .job-detail-advisor-label { margin: 0 0 7px; color: var(--jd-blue); font-size: 13px; font-weight: 750; }
.job-detail .job-detail-advisor p:last-child { margin: 0; color: #4e6372; font-size: 16px; line-height: 1.95; overflow-wrap: anywhere; }
.job-detail-facts { margin: 0; }
.job-detail-facts > div { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; padding: 19px 0; border-bottom: 1px solid #edf1f4; }
.job-detail-facts > div:first-child { padding-top: 0; }
.job-detail-facts > div:last-child { padding-bottom: 0; border-bottom: 0; }
.job-detail-facts dt { color: var(--jd-ink); font-size: 14px; font-weight: 750; line-height: 2; }
.job-detail-facts dd { min-width: 0; margin: 0; }

.job-detail-sidebar { position: sticky; top: calc(var(--swl-adminbarH, 0px) + 100px); }
.job-detail-sidebar-card { margin-bottom: 16px; padding: 24px; border: 1px solid var(--jd-line); border-radius: 15px; background: #fff; box-shadow: 0 8px 28px rgba(36, 70, 100, .045); }
.job-detail .job-detail-sidebar-kicker { margin: 0 0 10px; color: var(--jd-blue); font-size: 12px; font-weight: 750; letter-spacing: .1em; }
.job-detail .job-detail-sidebar-title { margin: 0 0 12px; padding: 0; border: 0; background: none; color: var(--jd-ink); font-size: 24px; font-weight: 800; line-height: 1.6; letter-spacing: -.035em; }
.job-detail .job-detail-sidebar-title::before, .job-detail .job-detail-sidebar-title::after { content: none; }
.job-detail .job-detail-sidebar-description { margin: 0 0 22px; color: var(--jd-muted); font-size: 14px; line-height: 1.95; }
.job-detail .job-detail-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 49px;
  padding: 14px 18px;
  border: 0;
  border-radius: 9px;
  background: var(--jd-gradient);
  box-shadow: 0 5px 14px rgba(61, 129, 221, .16);
  color: #fff;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.7;
  text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.job-detail .job-detail-button:hover { box-shadow: 0 7px 20px rgba(61, 129, 221, .24); transform: translateY(-1px); }
.job-detail .job-detail-sidebar-note { margin: 12px 0 0; color: var(--jd-muted); font-size: 12px; text-align: center; }
.job-detail .job-detail-summary-title { margin: 0 0 16px; padding: 0; border: 0; background: none; font-size: 16px; font-weight: 750; }
.job-detail .job-detail-summary-title::before, .job-detail .job-detail-summary-title::after { content: none; }
.job-detail-summary { margin: 0; }
.job-detail-summary > div + div { margin-top: 15px; padding-top: 15px; border-top: 1px solid #edf1f4; }
.job-detail-summary dt { margin-bottom: 5px; color: var(--jd-muted); font-size: 12px; }
.job-detail-summary dd { margin: 0; color: var(--jd-ink); font-size: 14px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }
.job-detail .job-detail-cta { margin: 0; padding: 28px; border: 1px solid #dce9f2; border-radius: 15px; background: linear-gradient(115deg, #eaf8f8, #f1f6ff); text-align: center; }
.job-detail .job-detail-cta h2 { margin: 0 0 9px; padding: 0; border: 0; background: none; color: var(--jd-ink); font-size: 24px; line-height: 1.6; }
.job-detail .job-detail-cta h2::before, .job-detail .job-detail-cta h2::after { content: none; }
.job-detail .job-detail-cta p { margin: 0 0 20px; color: var(--jd-muted); font-size: 14px; line-height: 1.9; }
.job-detail-cta .job-detail-button { width: fit-content; max-width: 100%; margin: 0 auto; padding-inline: 24px; font-size: 18px; }
.job-detail .job-detail-editorial { margin: 32px 0 0; }
.job-detail-editorial:empty { display: none; }

/* フォームの項目・送信処理はそのままに、外観と余白を揃える。 */
.job-detail-page #job_entry { max-width: 1180px; margin: 0 auto 56px; padding: 0 32px; scroll-margin-top: 100px; }
.job-detail-page #job_entry > .h2Header { position: relative; left: auto; width: 100%; margin: 0; padding: 23px 20px; border-radius: 15px; }
.job-detail-page #job_entry .h2Header .u-fz-xl { font-size: clamp(18px, 2.5vw, 24px); }
.job-detail-page #stepform { padding: 24px; border: 1px solid var(--jd-line); border-radius: 15px; box-shadow: 0 8px 30px rgba(36, 70, 100, .06); }
.job-detail-page .lp_samurai_float { height: auto; max-width: calc(100% - 32px); padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.job-detail-page .lp_samurai_float.is-scroll-hidden { visibility: hidden; pointer-events: none; }
.job-detail-page .lp_samurai_float .swell-block-button { margin: 0; }
.job-detail-page .lp_samurai_float .swell-block-button__link { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 12px 24px; border-radius: 9px; font-size: 18px; font-weight: 700; line-height: 1.5; }
.job-detail-page #for_registered #contact-form { margin: 0; }
.job-detail-page button#work_hearing { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin: 0; padding: 12px 24px; border: 0; border-radius: 9px; background: #ff3d3d; color: #fff; font-size: 18px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.job-detail-page button#work_hearing:focus-visible { outline: 3px solid var(--jd-blue); outline-offset: 3px; }
.job-detail-page div#wpcf7_work_hearing { left: 0; bottom: calc(100% + 12px); width: 100%; min-width: 300px; max-height: 75vh; overflow-y: auto; padding: 25px 20px 20px; border: 1px solid var(--jd-line); border-radius: 14px; box-shadow: 0 12px 40px rgba(36, 70, 100, .16); }

@media (max-width: 1000px) {
  .job-detail-page #main_content.job-detail { width: calc(100% - 40px); margin-top: 24px; }
  .job-detail .job-detail-layout { grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; }
  .job-detail .job-detail-hero { padding: 28px; }
  .job-detail-section { padding: 24px; }
  .job-detail-sidebar-card { padding: 20px; }
  .job-detail .job-detail-sidebar-title { font-size: 22px; }
}

@media (max-width: 800px) {
  .job-detail-page #main_content.job-detail { width: calc(100% - 32px); margin: 20px auto 40px; }
  .job-detail .job-detail-hero { padding: 24px; border-radius: 17px; }
  .job-detail .job-detail-title { margin-top: 20px; font-size: 25px; }
  .job-detail-metrics { grid-template-columns: 1fr; gap: 10px; }
  .job-detail-metric { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 16px; padding: 16px 20px; }
  .job-detail-metric-label { margin-bottom: 0; }
  .job-detail .job-detail-layout { display: block; margin-top: 20px; }
  .job-detail-sidebar { display: none; }
  .job-detail-nav { top: calc(var(--swl-adminbarH, 0px) + 64px); margin-bottom: 18px; }
  .job-detail-section { scroll-margin-top: calc(var(--swl-adminbarH, 0px) + 132px); }
  .job-detail-page #job_entry { padding: 0 16px; }
  .job-detail-page .lp_samurai_float { left: 16px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); width: calc(100% - 32px); max-width: none; transform: none; padding: 0; }
  .job-detail-page .lp_samurai_float .swell-block-button__link { padding: 12px 10px; font-size: 16px; }
  .job-detail-page button#work_hearing { width: 100%; font-size: 16px; }
  .job-detail-page #footer { padding-bottom: 90px; }
}

@media (max-width: 480px) {
  .job-detail .job-detail-hero { padding: 20px 18px; }
  .job-detail-hero-top { align-items: flex-start; gap: 14px; }
  .job-detail .book-mark-wrapper { gap: 8px 12px; }
  .job-detail .book-mark { min-height: 36px; padding: 8px 11px; }
  .job-detail .job-detail-title { margin: 19px 0 13px; font-size: 24px; line-height: 1.7; }
  .job-detail-company-name { font-size: 14px; }
  .job-detail-metrics { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .job-detail-metric { display: grid; grid-template-columns: 92px minmax(0, 1fr); align-items: center; gap: 10px; padding: 15px; }
  .job-detail-metric-label { margin-bottom: 0; font-size: 12px; }
  .job-detail-metric-value { font-size: 16px; }
  .job-detail-metric-value.is-salary { font-size: 24px; }
  .job-detail-tags { margin-top: 14px; gap: 6px; }
  .job-detail-tags .c-categoryList__link { padding: 4px 8px; font-size: 13px; }
  .job-detail-nav { padding: 0 3px; }
  .job-detail .job-detail-nav a { padding: 14px 11px 11px; font-size: 14px; }
  .job-detail-section { margin-bottom: 16px; padding: 22px 19px; border-radius: 13px; }
  .job-detail-section-header { margin-bottom: 19px; }
  .job-detail .job-detail-section-title { font-size: 20px; }
  .job-detail-section-en { font-size: 10px; }
  .job-detail .job-detail-advisor { gap: 11px; padding: 16px 13px; }
  .job-detail-advisor img { width: 38px; height: 38px; }
  .job-detail .job-detail-advisor-label { font-size: 12px; }
  .job-detail .job-detail-advisor p:last-child { font-size: 16px; }
  .job-detail-facts > div { grid-template-columns: 1fr; gap: 7px; padding: 18px 0; }
  .job-detail-facts dt { color: var(--jd-muted); font-size: 13px; }
  .job-detail .job-detail-cta { padding: 25px 18px; }
  .job-detail .job-detail-cta h2 { font-size: 22px; }
  .job-detail-cta .job-detail-button { width: 100%; padding-inline: 12px; font-size: 16px; }
  .job-detail-cta .job-detail-button .job-detail-icon { display: none; }
  .job-detail-page #stepform { padding: 20px 16px; }
  .job-detail-page div#wpcf7_work_hearing { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .job-detail .job-detail-button { transition: none; }
}
