/* エリアのトップの上部(検索欄・勤務地から探す・人気求人)。色は地域ごと(沖縄: 青 / 鹿児島: オレンジ / 宮崎: 緑) 2026.10.21 */
.topArea__hero, .topArea__section { --area: #1f63c7; --area-dark: #1a4fa0; --area-pale: #eef5fe; --area-line: #b9d3f3; }
.topArea__hero.-kagoshima, .topArea__section.-kagoshima { --area: #ee8418; --area-dark: #cf6a06; --area-pale: #fff3e4; --area-line: #f6cf9c; }
.topArea__hero.-miyazaki, .topArea__section.-miyazaki { --area: #2f9446; --area-dark: #237a37; --area-pale: #ecf7ec; --area-line: #b7dcbc; }

.topArea__hero svg, .topArea__section svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* トップは検索欄があるので、右上の「絞り込み検索」のタブは出さない */
.common__narrow { display: none; }

/* スマホ・タブレットのヘッダーは、ほかの画面ではスクロールするまで隠れている(site_header.css)。トップはデザインどおり最初から出す */
@media screen and (max-width: 1024px) {
    .header { transform: none; }
    body { padding-top: 58px; }
}

/* 検索欄 */
.topArea__hero { position: relative; overflow: hidden; margin: 0 -10px; }
.topArea__heroScene { position: absolute; inset: 0; width: 100%; height: 100%; }
.topArea__heroScene *, .topArea__heroDeco * { stroke: none; }
.topArea__heroDeco { position: absolute; bottom: -6px; width: 150px; height: 95px; }
.topArea__heroDeco.-left { left: -20px; }
.topArea__heroDeco.-right { right: -20px; transform: scaleX(-1); }
.topArea__heroDeco.-palm { bottom: 0; width: 150px; height: 160px; }
.topArea__heroInner { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 24px; max-width: 900px; margin: 0 auto; padding: 28px 16px 24px; }
.topArea__hero.-kagoshima .topArea__heroInner, .topArea__hero.-miyazaki .topArea__heroInner { flex-direction: row-reverse; }
.topArea__search { flex: 0 1 460px; padding: 18px; border-radius: 16px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 18px rgba(30, 60, 100, .15); }
.topArea__field { display: flex; align-items: center; gap: 10px; height: 48px; margin-bottom: 10px; padding: 0 14px; border: 1px solid #d9dee6; border-radius: 10px; background: #fff; color: #8a94a3; text-decoration: none; cursor: pointer; }
.topArea__field svg { width: 20px; height: 20px; flex-shrink: 0; }
.topArea__field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: #2b3a4e; font-size: 15px; }
.topArea__field span { color: #8a94a3; font-size: 15px; }
.topArea__searchBtn { position: relative; display: block; width: 100%; height: 50px; border: 0; border-radius: 10px; background: var(--area); color: #fff; font-size: 16px; font-weight: bold; letter-spacing: .1em; cursor: pointer; }
.topArea__searchBtn:hover { background: var(--area-dark); }
.topArea__searchBtn svg { stroke: #fff; position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; }
.topArea__searchNote { margin-top: 10px; font-size: 13px; line-height: 1.6; text-align: center; color: #2b3a4e; }
.topArea__searchNote span { color: var(--area); font-size: 18px; font-weight: bold; }
.topArea__chara { width: 150px; height: auto; flex-shrink: 0; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .15)); }

/* 見出し(勤務地から探す・人気求人) */
.topArea__section { margin: 24px 0 8px; }
.topArea__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding: 10px 14px; border-radius: 10px; background: var(--area-pale); }
.topArea__head h2 { display: flex; align-items: center; gap: 8px; margin: 0; color: #2b3a4e; font-size: 17px; font-weight: bold; }
.topArea__head h2 svg { width: 24px; height: 24px; color: var(--area); fill: var(--area); }
.topArea__head a { flex-shrink: 0; color: var(--area-dark); font-size: 13px; font-weight: bold; text-decoration: none; }
.topArea__head a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-top: 2px solid; border-right: 2px solid; transform: rotate(45deg); vertical-align: 1px; }

/* 勤務地から探す */
.topArea__cities { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin: 0; padding: 0; }
.topArea__cities li { list-style: none; }
.topArea__cities a { position: relative; display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 26px 0 12px; border: 1px solid #dde2ea; border-radius: 10px; background: #fff; color: #2b3a4e; font-size: 15px; font-weight: bold; text-decoration: none; box-shadow: 0 2px 4px rgba(0, 0, 0, .04); }
.topArea__cities a:hover { border-color: var(--area); }
.topArea__cities a::after { content: ""; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; margin-top: -4px; border-top: 2px solid var(--area); border-right: 2px solid var(--area); transform: rotate(45deg); }
.topArea__cities svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--area); fill: var(--area); }

/* 人気求人(横にスクロール) */
.topArea__jobs { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 12px; -webkit-overflow-scrolling: touch; }
.topArea__job { flex: 0 0 200px; scroll-snap-align: start; overflow: hidden; border: 1px solid #e3e7ee; border-radius: 12px; background: #fff; color: #2b3a4e; text-decoration: none; box-shadow: 0 2px 6px rgba(0, 0, 0, .05); }
.topArea__job:hover { border-color: var(--area-line); }
.topArea__job figure { position: relative; margin: 0; aspect-ratio: 4 / 3; background: #f1f3f6; }
.topArea__job figure img { width: 100%; height: 100%; object-fit: cover; display: block; }
.topArea__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); }
.topArea__tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 10px 0; padding: 0; }
.topArea__tags li { list-style: none; padding: 1px 6px; border: 1px solid var(--area-line); border-radius: 4px; color: var(--area-dark); font-size: 10px; }
.topArea__jobTitle { margin: 8px 10px 0; font-size: 14px; font-weight: bold; line-height: 1.5; }
.topArea__jobCompany { margin: 2px 10px 0; color: #6b7a8f; font-size: 11px; line-height: 1.5; }
.topArea__jobInfo { margin: 6px 10px 12px; padding: 0; }
.topArea__jobInfo li { list-style: none; position: relative; padding-left: 16px; font-size: 12px; line-height: 1.8; }
.topArea__jobInfo li::before { content: ""; position: absolute; left: 0; top: 50%; width: 11px; height: 11px; margin-top: -5px; border-radius: 50%; background: #6b7a8f; }
.topArea__jobInfo li.-place::before { border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.topArea__jobInfo li.-yen::before { border-radius: 2px; }
.topArea__jobInfo li.-time::before { background: none; border: 2px solid #6b7a8f; width: 9px; height: 9px; }

.topArea__entry { max-width: 360px; margin: 8px auto 16px; }
.topArea__entry img { width: 100%; height: auto; }

@media screen and (max-width: 767px) {
    .topArea__hero { margin: 0; }
    .topArea__heroInner { gap: 0; padding: 18px 12px 16px; align-items: center; }
    .topArea__search { flex: 1 1 auto; padding: 14px; }
    .topArea__field { height: 44px; }
    .topArea__chara { width: 96px; margin: 0 -8px; }
    .topArea__heroDeco { width: 90px; height: 57px; }
    .topArea__heroDeco.-palm { width: 80px; height: 86px; }
    .topArea__section { margin: 20px 12px 4px; }
    .topArea__head h2 { font-size: 15px; }
    .topArea__cities { grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .topArea__cities a { height: 44px; padding: 0 20px 0 8px; font-size: 13px; gap: 4px; }
    .topArea__cities a::after { right: 8px; }
    .topArea__cities svg { width: 17px; height: 17px; }
    .topArea__job { flex-basis: 160px; }
}
@media screen and (max-width: 374px) {
    .topArea__chara { display: none; }
    .topArea__cities a { font-size: 12px; }
}

/* 人気求人のスライド(スクロールバーは隠し、矢印と点で動かす) 2026.10.21 */
.topArea__slider { position: relative; }
.topArea__slider .topArea__jobs { scrollbar-width: none; }
.topArea__slider .topArea__jobs::-webkit-scrollbar { display: none; }
.topArea__arrow { position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid #e3e7ee; border-radius: 50%; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(0, 0, 0, .15); cursor: pointer; }
.topArea__arrow::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -5px 0 0 -6px; border-top: 2px solid var(--area); border-right: 2px solid var(--area); transform: rotate(45deg); }
.topArea__arrow.-prev { left: -8px; }
.topArea__arrow.-prev::before { margin-left: -3px; transform: rotate(-135deg); }
.topArea__arrow.-next { right: -8px; }
.topArea__slider.-start .topArea__arrow.-prev, .topArea__slider.-end .topArea__arrow.-next { opacity: 0; pointer-events: none; }
.topArea__dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.topArea__dots span { width: 8px; height: 8px; border-radius: 50%; background: #d5dbe3; transition: width .2s; }
.topArea__dots span.-current { width: 20px; border-radius: 4px; background: var(--area); }
@media screen and (max-width: 767px) {
    .topArea__arrow { width: 34px; height: 34px; margin-top: -17px; }
    .topArea__arrow.-prev { left: -4px; }
    .topArea__arrow.-next { right: -4px; }
}
