/* Client photographs and copy form actual cards, with adjacent cards in view. */
.hero-occupation-explorer { display: flow-root; background: #f3f8f7; }
.hero-occupation-explorer + .jobs-section { padding-top: clamp(28px, 3vw, 42px); }
.hero.hero-all { --card-width: min(1200px, calc(100% - 160px)); --card-gap: 32px; display: block; min-height: 0; padding: 22px 0 28px; background: #f3f8f7; overflow: hidden; touch-action: pan-y pinch-zoom; }
.hero-all::before { display: none; }
/* .hero h1 outranks .sr-only, so its width and transform must be reset to keep the heading hidden. */
.hero.hero-all h1.sr-only { width: 1px; transform: none; }
.hero-card-stage { position: relative; height: clamp(390px, 34vw, 470px); }
.hero-job-card { position: absolute; top: 0; bottom: 0; left: calc((100% - var(--card-width)) / 2); width: var(--card-width); overflow: hidden; isolation: isolate; border-radius: 12px; background: #102a31; color: #fff; text-decoration: none; transform: translateX(calc(var(--slide-offset) * (100% + var(--card-gap)))); transition: transform 380ms cubic-bezier(.22,.61,.36,1); box-shadow: 0 6px 18px #123c4014; }
.hero-job-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #071d2b90, transparent 75%), linear-gradient(0deg, #102a31e6, transparent 70%); }
.hero-job-card:focus-visible { outline: 3px solid #175e55; outline-offset: 3px; }
.hero-all-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }
.hero-all-catch { position: absolute; left: 48px; bottom: 170px; width: fit-content; display: flex; flex-direction: column; align-items: flex-start; transform: rotate(-5deg) skewX(-5deg); transform-origin: left center; font-size: clamp(32px, 3.55vw, 52px); line-height: 1.4; font-weight: 800; letter-spacing: .01em; }
.hero-all-catch > span { display: block; width: fit-content; padding: 0 .26em .06em; background: #fff; color: var(--ink); white-space: nowrap; }
.hero-all-catch > span + span { margin-top: 4px; }
.hero-all-catch > .hero-occupation-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-width: 220px; margin-top: 7px; padding: .04em .3em .1em; background: var(--primary); color: #fff; font-size: inherit; font-weight: inherit; line-height: 1.3; }
.hero-occupation-band .icon { flex-shrink: 0; width: 30px; height: 30px; }
.hero-all-catch > .hero-occupation-band-long { font-size: inherit; }

.hero-all-conversion { position: absolute; z-index: 2; left: calc((100% - var(--card-width)) / 2 + 48px); bottom: 24px; width: min(640px, calc(var(--card-width) - 96px)); }
.hero-all .hero-actions { width: 100%; display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content); justify-content: start; align-items: stretch; gap: 8px 12px; margin-top: 0; padding-top: 0; animation: none; }
.hero-all .hero-actions > .consultation-button { width: auto; min-width: 0; white-space: normal; min-height: 54px; padding: 12px 18px; font-size: 17px; gap: 8px; background: #fff; color: #175e55; border: 1px solid #175e55; box-shadow: none; transition: background-color .18s, transform .18s; }
.hero-all .hero-line-link { color: #fff; grid-column: 1 / -1; justify-self: start; justify-content: flex-start; min-height: 40px; padding: 6px 0; }
.hero-carousel-controls { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.hero-carousel-controls[hidden], .hero-carousel-pagination[hidden] { display: none; }
.hero-carousel-controls button { position: absolute; top: 50%; right: calc((100% - var(--card-width)) / 2 - 22px); transform: translateY(-50%); display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #d1e2de; border-radius: 50%; background: #fff; color: #175e55; box-shadow: 0 2px 8px #102a3126; cursor: pointer; pointer-events: auto; }
.hero-carousel-controls .hero-carousel-prev { left: calc((100% - var(--card-width)) / 2 - 22px); right: auto; }
.hero-carousel-controls button:hover { background: #fff0ad; }
.hero-carousel-controls button:active { transform: translateY(-50%) scale(.95); }
.hero-carousel-controls .icon { width: 18px; height: 18px; }
.hero-carousel-prev .icon { transform: rotate(180deg); }
.hero-carousel-pagination { display: flex; justify-content: center; margin-top: 6px; }
.hero-carousel-dot { display: inline-grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; border-radius: 4px; background: transparent; cursor: pointer; }
.hero-carousel-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); opacity: .35; }
.hero-carousel-dot[aria-current="true"] span { width: 22px; border-radius: 8px; background: var(--primary); opacity: 1; }
.hero-carousel-dot:hover span { background: var(--primary); opacity: 1; }
.hero-all :focus-visible { outline: 3px solid #175e55; outline-offset: 3px; }
/* Explicit job and consultation actions stay separate from the card link. */
.hero-all .hero-actions > .hero-card-job-button { width: auto; min-width: 0; min-height: 54px; padding: 12px 18px; gap: 12px; background: var(--yellow); color: var(--ink); border: 1px solid #ffffffbd; box-shadow: 0 4px 4px #00000026; font-size: 17px; font-weight: 700; line-height: 1.5; }
.hero-card-job-button > span { white-space: normal; text-wrap: balance; }
.hero-card-job-button .icon { flex-shrink: 0; width: 18px; height: 18px; }
.hero-all .hero-card-job-button .icon-search { width: 22px; height: 22px; }
.hero-all .hero-card-job-button:hover { background: #ffe477; }
.hero-card-job-button:active { transform: translateY(1px); }
@media (max-width: 700px) {
  .hero.hero-all { --card-width: calc(100% - 48px); --card-gap: 12px; padding-top: 14px; padding-bottom: 16px; }
  .hero-card-stage { height: clamp(330px, 56vw, 390px); }
  .hero-job-card { border-radius: 10px; }
  .hero-all-photo { object-position: 78% center; }
  .hero-all-photo[data-hero-photo="technical"] { object-position: 65% center; }
  .hero-all-catch { left: 26px; bottom: 155px; font-size: clamp(19px, 5.3vw, 34px); line-height: 1.45; }
  .hero-all-catch > .hero-occupation-band { min-width: 138px; gap: 12px; margin-top: 5px; font-size: inherit; }
  .hero-occupation-band .icon { width: 20px; height: 20px; }
  .hero-all-catch > .hero-occupation-band-long { gap: 8px; font-size: inherit; }

  .hero-all-conversion { left: calc((100% - var(--card-width)) / 2 + 20px); bottom: 18px; width: calc(var(--card-width) - 40px); }
  .hero-all .hero-actions { grid-template-columns: minmax(0, max-content) minmax(0, max-content); justify-content: start; gap: 6px; }
  .hero-all .hero-actions > .consultation-button, .hero-all .hero-actions > .hero-card-job-button { width: auto; min-height: 54px; padding: 10px 8px; gap: 4px; font-size: 13px; line-height: 1.5; }
  .hero-all .hero-card-job-button .icon-search { width: 16px; height: 16px; }
  .hero-all .hero-actions .icon-right { width: 12px; height: 12px; flex-shrink: 0; }
  .hero-all .hero-line-link { font-size: 12px; }
  .hero-carousel-pagination { margin-top: 0; }
}
@media (max-width: 374px) {
  .hero-all .hero-actions > .consultation-button, .hero-all .hero-actions > .hero-card-job-button { padding: 8px 6px; gap: 3px; }
  .hero-all .hero-card-job-button .icon-search { width: 14px; height: 14px; }
  .hero-all .hero-actions .icon-right { flex-basis: 10px; width: 10px; height: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-job-card { transition: none; }
}

/* One shared selector replaces the carousel thumbnails and category cards. */
.category-section.hero-search-section { display: flow-root; position: relative; z-index: 1; padding-top: 0; padding-bottom: 0; background: #f3f8f7; }
.hero-search-panel { position: relative; top: -24px; margin-bottom: -24px; padding: 28px 32px; background: #fff; border: 1px solid #d1e2de; border-radius: 18px; box-shadow: 0 8px 24px #123c4010; }
.hero-search-heading { position: relative; width: fit-content; max-width: 100%; padding: 32px 0 18px; text-align: center; margin: 0 auto 22px; }
.hero-search-beginner { display: grid; grid-template-columns: 24px auto; column-gap: 6px; align-items: center; position: absolute; top: 30px; right: -150px; width: fit-content; margin: 0; padding: 6px 10px; border: 0; border-radius: 6px; background: #fff0ad; color: #175e55; font-size: 12px; line-height: 1.6; font-weight: 500; white-space: nowrap; transform: rotate(5deg); }
.hero-search-beginner strong { grid-column: 2; display: block; color: #175e55; font-size: 18px; font-weight: 700; }
.hero-search-beginner > span { grid-column: 2; display: block; font-size: 12px; }
.hero-search-heading h2 { width: 100%; text-align: center; color: #153f3b; font-size: 26px; line-height: 1.6; font-weight: 700; }
.hero-search-heading h2 > span { display: inline-block; }
.hero-search-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.hero-search-option { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 10px; min-height: 64px; padding: 12px 14px; border: 1px solid #9fbcb7; border-radius: 8px; background: #fff; color: #233f3b; font-size: 16px; font-weight: 700; line-height: 1.5; cursor: pointer; }
.hero-search-option:has(:checked) { background: #137f79; border-color: #137f79; color: #fff; }
.hero-search-option:hover:not(:has(:checked)) { background: #f0faf9; }
.hero-search-option:active:not(:has(:checked)) { background: #e4f4f1; }
.hero-search-option:has(:focus-visible) { outline: 3px solid #216bb2; outline-offset: 3px; }
.hero-search-option input { flex: 0 0 20px; width: 20px; height: 20px; margin: 0; accent-color: #137f79; cursor: pointer; }
.hero-search-option > span { min-width: 0; text-align: left; }
.hero-option-number { display: block; margin-bottom: 1px; font-size: 11px; line-height: 1.3; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.hero-search-option small { display: block; margin-top: 3px; color: #526562; font-size: 11px; font-weight: 500; line-height: 1.6; letter-spacing: 0; word-break: keep-all; }
.hero-search-option:has(:checked) small { color: #fff; }
.hero-search-bottom { display: flex; align-items: center; justify-content: flex-end; gap: 20px; min-height: 56px; margin-top: 22px; }
.hero-search-submit { min-width: 300px; min-height: 54px; background: var(--yellow); color: #153f3b; font-size: 17px; border: 0; }
/* Match the floating footer buttons' depth, with a clear pressed state. */
.hero-search-submit { box-shadow: 0 4px 4px rgb(0 0 0 / .25); transition: background-color .18s, box-shadow .18s, transform .18s; }
@media (hover: hover) {
  .hero-search-submit:hover { transform: translateY(-1px); box-shadow: 0 6px 8px rgb(0 0 0 / .25); }
  .hero-all .hero-actions > .consultation-button:hover { background: #eef8f6; transform: translateY(-1px); }
  .hero-search-submit:hover { background: #ffe477; }
}
.hero-search-submit:active { transform: translateY(2px); box-shadow: 0 1px 2px rgb(0 0 0 / .25); }
.hero-all .hero-actions > .consultation-button:active { transform: translateY(1px); }
.hero-search-fallback { display: flex; flex-wrap: wrap; gap: 20px; }
.hero-search-fallback a { min-height: 44px; color: #126760; text-decoration: underline; }
.hero-all :focus-visible { outline-color: var(--yellow); }
@media (min-width: 701px) and (max-width: 1100px) {
  .hero-search-panel { padding: 24px; }
  .hero-search-options { gap: 8px; }
  .hero-search-option { font-size: 14px; gap: 6px; padding-inline: 6px; }
  .hero-search-option input { flex-basis: 17px; width: 17px; height: 17px; }
}
@media (max-width: 700px) {
  .category-section.hero-search-section { padding-bottom: 0; }
  .hero-search-panel { top: -12px; margin-bottom: -12px; padding: 20px 16px; border-radius: 14px; }
  .hero-search-heading { display: block; padding: 64px 0 0; margin-bottom: 22px; }
  .hero-search-beginner { top: 0; right: max(-120px, calc((100% - 100vw) / 2 + 28px)); font-size: 12px; }
  .hero-search-beginner strong { font-size: 17px; }
  .hero-search-heading h2 { font-size: 23px; line-height: 1.65; letter-spacing: .03em; }
  .hero-search-heading h2 > span { display: block; }
  .hero-search-options { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .hero-search-option { justify-content: flex-start; min-height: 60px; padding: 10px; gap: 8px; font-size: 16px; letter-spacing: 0; }
  .hero-search-option:last-child { grid-column: 1 / -1; }
  .hero-search-option input { flex-basis: 20px; width: 20px; height: 20px; }
  .hero-search-bottom { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 16px; }
  .hero-search-submit { width: 100%; min-width: 0; min-height: 50px; font-size: 15px; }

}
@media (min-width: 375px) and (max-width: 700px) {
  .hero-search-heading { padding-top: 28px; }
  .hero-search-beginner { top: -32px; padding: 5px 6px; }
  .hero-search-beginner strong { font-size: 15px; }
  .hero-search-beginner > span { font-size: 11px; }
}

.hero-search-beginner > .hero-beginner-icon { grid-column: 1; grid-row: 1 / 3; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-size: 24px; line-height: 1; }
