/*
Theme Name: 1work - Top Page
Description: TOPページ専用スタイル — 1work Design System
*/

/* ================================================
   LOADER
================================================ */
.loader {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--brand-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
}

.loader-logo {
    width: 140px;
    height: 140px;
    opacity: 0;
    transform: scale(0.8);
    filter: blur(20px);
    z-index: 2;
}

.loader-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.loader-line {
    width: 180px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
}

.loader-line-fill {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--brand-light), #fabe01);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
}

/* Moved Global Header CSS to style.css to fix inner pages */

.ref-mv {
    position: relative;
    width: 100%;
    height: 100vh;
    padding-top: 0; /* Flush to top since header is transparent */
    overflow: hidden;
    background-color: #f7f7f7; /* Very light brutalist canvas */
    background-image: 
        linear-gradient(#ddd 1px, transparent 1px),
        linear-gradient(90deg, #ddd 1px, transparent 1px);
    background-size: 80px 80px; /* Pronounced grid background */
}

/* Hide Logo to favor brutalist grid and text */
.mv-bg-logo {
    display: none !important;
}

/* Global removal of background watermarks per user request */
.section-watermark { display: none !important; }

/* ── Centered Typography Wrapper ── */
.mv-center-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 85vw; /* Keeps the giant extreme sizing */
    max-width: 1500px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: transparent; 
    pointer-events: none; 
}

.ref-content-stack {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
    align-items: center;
    text-align: center;
    pointer-events: auto;
    
    /* Migrated from inline styles */
    background: rgba(250, 190, 1, 0.85); 
    backdrop-filter: blur(20px); 
    -webkit-backdrop-filter: blur(20px); 
    border: 1px solid rgba(255, 255, 255, 0.15); 
    padding: 40px 60px; 
    border-radius: 12px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-catch {
    font-family: 'Helvetica Neue', Arial, sans-serif; 
    font-size: clamp(20px, 6vw, 70px); 
    color: #fff; 
    font-weight: 900; 
    line-height: 1.15; 
    margin-bottom: 8px; 
    letter-spacing: -0.02em; 
    white-space: nowrap; 
    overflow: hidden;
}

/* Typography */
.ref-sub-catch {
    font-size: clamp(12px, 1.8vw, 16px); 
    font-weight: 600;
    color: #fff;
    background: transparent;
    padding: 0;
    border-radius: 0;
    letter-spacing: 0.05em;
    margin-top: 0px; 
    opacity: 0.9;
    text-shadow: 0px 4px 15px rgba(0,0,0,0.8);
    text-align: center;
}

.ref-ja {
    position: relative;
    width: 100%; /* Spans the .mv-center-content */
    z-index: 20; 
}

/* Replaced old text image mask with standard white text */



/* ================================================
   PREFECTURE SEARCH SECTION
================================================ */
.main-content {
    width: 100%;
}
.job-category-bento {
    margin-top: 100px;
    margin-bottom: 100px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

.pref-search {
    background: #fff;
    background-image: radial-gradient(rgba(250, 190, 1, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.pref-search::before {
    content: '';
    position: absolute;
    top: 10%;
    right: -5%;
    width: 50%;
    height: 70%;
    background: radial-gradient(circle, rgba(250, 190, 1, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
}

.pref-search-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
    position: relative;
    z-index: 1;
}

.pref-search-header {
    text-align: center;
    margin-bottom: 48px;
}

.pref-subtitle {
    font-size: 14px;
    color: #888;
    margin-top: 20px;
    letter-spacing: 0.05em;
}



/* Body layout: left panel, right map */
.pref-search-body {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 440px;
    gap: 40px;
    align-items: center;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .pref-search-body {
        grid-template-columns: 1fr 340px;
        gap: 24px;
    }
}

@media (max-width: 768px) {
    .pref-search { padding: 60px 0 48px; }
    .pref-search-body {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .pref-map-deco {
        width: 100%;
        opacity: 0.8;
        order: -1;
    }
    .pref-region-btns {
        grid-template-columns: repeat(2, 1fr);
    }
    .pref-search-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .pref-search-inner { padding: 0 16px; }
    .pref-region-btn { padding: 14px 12px; }
    .pref-region-btn.is-active .prb-name { font-size: 18px; }
    .pref-chip { padding: 14px 8px; font-size: 13px; }
    .pref-subtitle { font-size: 12px; }
}
.pref-map-deco {
    position: relative;
    width: 100%;
    opacity: 0.9;
    pointer-events: none;
}

.geolonia-svg-map {
    width: 100%;
    height: auto;
    display: block;
}

.pref-map-deco svg .prefecture path,
.pref-map-deco svg .prefecture polygon {
    fill: var(--brand-pale);
    stroke: var(--brand-dark);
    stroke-width: 1.5;
    transition: fill 0.3s ease;
}

.pref-map-deco svg .prefecture.is-highlighted {
    filter: drop-shadow(0 15px 25px rgba(250, 190, 1, 0.35));
}

.pref-map-deco svg .prefecture.is-highlighted path,
.pref-map-deco svg .prefecture.is-highlighted polygon {
    fill: var(--brand-light);
}

.pref-map-deco svg .prefecture.is-dimmed path,
.pref-map-deco svg .prefecture.is-dimmed polygon {
    fill: #ddd;
    opacity: 0.4;
}

.pref-map-deco svg .prefecture.is-pulse path,
.pref-map-deco svg .prefecture.is-pulse polygon {
    fill: var(--brand-dark);
}

.pref-map-deco svg .boundary-line path,
.pref-map-deco svg .boundary-line line {
    stroke: rgba(250, 190, 1, 0.15) !important;
    stroke-width: 6 !important;
}

.pref-map-region-name {
    display: none;
}

/* --- SELECTION PANEL --- */
.pref-select-panel {
    min-height: 400px;
}

/* Region Buttons — Magazine Index Style */
.pref-region-btns {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 0;
    counter-reset: region;
    border-top: 1px solid #e0e0e0;
}

.pref-region-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s ease;
    color: #999;
    position: relative;
    counter-increment: region;
    text-align: left;
}

.pref-region-btn::before {
    content: "0" counter(region);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: inherit;
    opacity: 0.5;
    min-width: 24px;
}

.pref-region-btn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: #fabe01;
    transition: width 0.3s ease;
}

.pref-region-btn:hover {
    color: #333;
    background: #fafafa;
}

.pref-region-btn.is-active {
    color: #fabe01;
    background: transparent;
}

.pref-region-btn.is-active::after {
    width: 4px;
}

.prb-name {
    font-size: 15px;
    font-weight: 600;
    color: inherit;
    letter-spacing: 0.06em;
    transition: all 0.25s;
}

.pref-region-btn.is-active .prb-name {
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.08em;
}

/* Prefecture Chips — Editorial Grid */
.pref-chips-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 0;
    background: transparent;
    border: none;
    border-top: 3px solid #fabe01;
    min-height: 80px;
    animation: fadeUp 0.3s ease;
    margin-top: 8px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.pref-chip {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 12px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    background: #fff;
    border: none;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #eee;
    text-decoration: none;
    transition: all 0.25s;
    letter-spacing: 0.04em;
}

.pref-chip:nth-child(3n) {
    border-right: none;
}

.pref-chip:hover {
    background: #fabe01;
    color: #fff;
}

/* その他 button variant */
.pref-region-btn--other {
    gap: 8px;
}
.pref-region-btn--other i {
    font-size: 12px;
    opacity: 0.6;
}
.pref-region-btn--other.is-active {
    background: #fabe01;
    color: #111;
}
.pref-region-btn--other.is-active::after {
    background: #fabe01;
}

/* Other search form */
.pref-other-search {
    margin-top: 8px;
    animation: fadeUp 0.3s ease;
}
.pref-other-form {
    display: flex;
    gap: 0;
}
.pref-other-input {
    flex: 1;
    padding: 16px 20px;
    border: 2px solid #fabe01;
    border-right: none;
    font-size: 14px;
    font-weight: 600;
}
.pref-other-input::placeholder {
    color: #bbb;
    font-weight: 400;
}
.pref-other-btn {
    background: #fabe01;
    color: #fff;
    border: 2px solid #fabe01;
    padding: 16px 28px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}
.pref-other-btn:hover {
    background: #153d2b;
}


/* ========================================================================= */
/* 2. 特集セクション (Feature) — Preserved from 1work
/* ========================================================================= */
.premium-feature-space {
    padding: 0 0 120px;
    background: var(--white);
    background-image: radial-gradient(rgba(250, 190, 1, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    position: relative;
    overflow: hidden;
}

/* ========================================================================= */
/* HIGHLIGHT FEATURES SECTION (Accordion Expand & Glowing Background)
/* ========================================================================= */
.feature-section {
    position: relative;
    padding: 100px 0 0;
    background: transparent;
    overflow: hidden;
}


/* Update text-stack for left alignment */
.jch-text-stack.left-align {
    justify-content: flex-start;
}
.jch-text-stack.left-align .jch-en-bg {
    text-align: left;
}
.jch-text-stack.left-align .jch-ja-front {
    left: 0;
    transform: translateY(-50%);
}

/* --- Feature Section: Centered Green Band Title --- */
.feature-green-band {
    position: relative;
    background: #00affa;
    padding: 50px 20px;
    text-align: center;
    overflow: hidden;
    margin: 10px 0;
}

.fgb-inner {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.fgb-en {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    /* font-size intentionally omitted — let .jch-en-bg control sizing */
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px rgba(255,255,255,0.8);
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

/* Force white stroke inside the blue feature band — overrides jch-en-bg yellow */
.feature-green-band .jch-en-bg {
    -webkit-text-stroke: 2px rgba(255,255,255,0.8);
}

.fgb-title {
    position: absolute;
    top: 55%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(24px, 4vw, 36px); /* match jch-ja-front */
    font-weight: 900;
    color: #303030;
    margin: 0;
    letter-spacing: 0.1em;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(255,255,255,0.3);
}

.fgb-title::after {
    display: none;
}

/* --- 1. Elliptical Arc Features Carousel --- */
.feature-swiper-wrap {
    padding: 10px 0 10px;
    position: relative;
    z-index: 2;
    width: 100%;
    overflow: visible;
    perspective: 1200px;
}

.feature-3d-slider {
    width: 100%;
    padding: 20px 0 40px;
    overflow: visible !important;
    transform-style: preserve-3d;
}

.feature-3d-slider .swiper-slide {
    width: clamp(260px, 75vw, 300px); /* Landscape/wider focus on mobile */
    height: clamp(200px, 50vw, 400px); /* Restrict height so it's landscape-ish on mobile */
    display: flex;
    justify-content: center;
    align-items: center;
}


.a3d-card {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 30px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    box-shadow: 10px 20px 40px rgba(0,0,0,0.15), inset 1px 1px 2px rgba(255,255,255,0.4);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    will-change: transform;
}

.a3d-card:hover {
    transform: translateZ(50px) translateY(-10px);
    box-shadow: 20px 30px 60px rgba(0,0,0,0.25), inset 1px 1px 2px rgba(255,255,255,0.6);
}

.a3d-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 70%);
    border-radius: 30px;
    pointer-events: none;
    z-index: 1;
}

.a3d-gloss {
    position: absolute;
    inset: 0;
    border-radius: 30px;
    pointer-events: none;
    z-index: 10;
    mix-blend-mode: overlay;
    transition: background 0.4s ease-out;
}

.a3d-content {
    position: relative;
    z-index: 5;
    padding: 30px 30px 48px; /* extra bottom padding so text doesn't sit on the arrow bar */
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 8px;
    /* Apple 3D depth trick: float the text Z-axis */
    transform: translateZ(50px);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.a3d-card:hover .a3d-content {
    transform: translateZ(75px);
}

.a3d-title {
    color: #fff;
    font-size: clamp(13px, 1.4vw, 16px);
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.05em;
    font-family: 'Anton', 'Noto Sans JP', sans-serif;
    text-shadow: 0 10px 20px rgba(0,0,0,0.8);
}

.a3d-arrow {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 40px;
    border-radius: 0 0 30px 30px; /* match card border-radius at bottom */
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    border-top: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    font-size: 14px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.1em;
    transition: background 0.4s, color 0.4s;
    z-index: 6;
}

.a3d-card:hover .a3d-arrow {
    background: #fabe01;
    color: #111;
    border-color: transparent;
}

/* Mobile responsive slider */
@media (max-width: 768px) {
    .feature-3d-slider .swiper-slide {
        width: 280px;
        height: 400px;
    }
}

.fm-card:hover .fm-content {
    background: rgba(255, 171, 0, 0.95); /* Shifts aggressively to solid gold! */
    color: #111; /* Dark text for contrast against gold */
    transform: translateY(-8px);
}

.fm-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    letter-spacing: 0.02em;
}

.fm-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: #fabe01;
    font-size: 14px;
    transition: background 0.4s, color 0.4s;
}

.fm-card:hover .fm-arrow {
    background: #111;
    color: #ffc433;
}

.fm-desc {
    display: none;
}
/* --- 2. Popular Keywords (注目のキーワード) --- */
.popular-keywords-bento {
    margin-top: 60px;
    margin-bottom: 60px;
}

.popular-tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.t-search-more {
    text-align: center;
    margin-top: 60px;
}

.t-sm-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #00affa 0%, #fabe01 100%);
    color: #fff;
    padding: 24px 60px;
    border-radius: 60px;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 15px 30px rgba(250, 190, 1, 0.2);
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.t-sm-btn::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s;
}

.t-sm-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 20px 40px rgba(250, 190, 1, 0.3);
    background: linear-gradient(135deg, #fabe01 0%, #1a1a1a 100%);
}

.t-sm-btn:hover::after {
    left: 150%;
}

.t-sm-btn i {
    font-size: 20px;
}

.t-scroll-indicator {
    position: absolute;
    bottom: -40px;
    right: 20px;
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
    animation: bounceX 2s infinite ease-in-out;
}

@keyframes bounceX {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(10px); }
}

.pt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    padding: 14px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    color: #444;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-family: 'Anton', 'Noto Sans JP', sans-serif;
    letter-spacing: 0.05em;
}

.pt-chip i {
    color: #fabe01;
    font-size: 16px;
    transition: color 0.3s;
}

.pt-chip:hover {
    background: rgba(250, 190, 1, 0.9);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(250, 190, 1, 0.2);
    border-color: rgba(250, 190, 1, 1);
}

.pt-chip:hover i {
    color: #fff;
}

.pt-chip:hover i {
    color: #fabe01;
}

/* --- 3. Job Category Bento Grid --- */
.job-category-bento {
    margin-top: 80px;
}

.jcb-header {
    margin-bottom: 40px;
    text-align: center;
}

.jcb-headline {
    font-size: 40px;
    font-weight: 900;
    color: #111;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: inline-block;
    border-bottom: 3px solid #fabe01;
    padding-bottom: 8px;
}

.jcb-desc {
    font-size: 15px;
    font-weight: 700;
    color: #555;
    line-height: 1.6;
}

.jcb-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: 150px;
    gap: 16px;
    grid-auto-flow: dense; /* Auto-pack holes */
}

.jcb-item {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.03);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s;
    z-index: 1;
}

.jcb-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.7) 100%);
    z-index: 0;
    pointer-events: none;
}

.jcb-item .jcb-name { color: #fff; text-shadow: 0 2px 4px rgba(0,0,0,0.5); font-size: 1.2rem; }
.jcb-item .jcb-count { color: rgba(255,255,255,0.9); font-weight: 600; }
.jcb-item .jcb-icon { 
    background: transparent !important; 
    color: #fff; 
    box-shadow: none !important; 
    font-size: 40px; 
    padding: 0;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

body, html {
    overflow-x: hidden;
}

.section-watermark {
    position: absolute;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 900;
    line-height: 1;
    z-index: 0;
    pointer-events: none;
    white-space: nowrap;
    user-select: none;
}

.watermark-cats {
    top: -60px;
    left: -40px;
    font-size: 380px;
    color: rgba(0,0,0,0.03);
    transform: rotate(-3deg);
    letter-spacing: -0.05em;
}

.watermark-features {
    top: -20px;
    right: -80px;
    font-size: 380px;
    color: transparent;
    transform: rotate(5deg);
    letter-spacing: -0.02em;
}

.watermark-location {
    bottom: -150px;
    left: 40%;
    transform: translateX(-50%);
    font-size: 300px;
    color: rgba(0,0,0,0.04);
    letter-spacing: 0.1em;
}

.watermark-railway {
    top: 50%;
    right: -60px;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 250px;
    color: transparent;
}

.watermark-jobs {
    top: -40px;
    left: -20px;
    font-size: 420px;
    color: rgba(255,255,255,0.04); /* Made more visible */
    transform: rotate(-3deg);
    letter-spacing: -0.04em;
}

.watermark-insights {
    top: -100px;
    left: -100px;
    font-size: 500px;
    color: rgba(0,0,0,0.02);
    transform: rotate(-8deg);
    letter-spacing: -0.06em;
}

.jc-impact-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(16px, 2.5vw, 30px);
    position: relative;
    z-index: 1;
}

/* ========================================================================= */
/* Editorial Magazine Cards (Categories) - Landscape Centered Typographic Layout
/* ========================================================================= */
/* ========================================================================= */
/* Job Category Section Header - Stacked Dynamic Typography
/* ========================================================================= */
.job-category-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    padding: 40px 0;
}

.jch-text-stack {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.jch-en-bg {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(64px, 15vw, 140px); /* Scalable starting from a larger font for 360px */
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #d4a501; /* Restore yellow base stroke */
    text-transform: uppercase;
    letter-spacing: -0.03em;
    line-height: 1;
    user-select: none;
    white-space: nowrap;
}

.jch-ja-front {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 800;
    color: #303030;
    margin: 0;
    letter-spacing: 0.1em;
}

.jch-ja-front::after {
    display: none;
}

/* ========================================================================= */
/* Editorial Magazine Cards (Categories) - Asymmetric Glassmorphism
/* ========================================================================= */
.mag-cat-card {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    aspect-ratio: 1.4;
    transform: translateZ(0);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    background: #f4f5f7;
}

.mag-cat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(250, 190, 1, 0.15); /* Brand navy shadow */
}

.mcc-bg-img {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.mcc-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mag-cat-card:hover .mcc-bg-img img {
    transform: scale(1.08);
}

/* Editorial Magazine Box Deco: Inner Fine Frame */
.mcc-inner-frame {
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(255, 171, 0, 0.8); /* Elegant, thin yellow/gold line */
    z-index: 2; /* Sits below the text block */
    pointer-events: none;
    border-radius: 8px; /* Slightly softer inner corner */
    transition: inset 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s;
}

.mag-cat-card:hover .mcc-inner-frame {
    inset: 16px; /* Squeezes inward on hover for a dynamic, photographic feel */
}

/* Glassmorphism Panel - Bottom Right (Japanese) */
.mcc-ja-panel {
    position: absolute;
    bottom: 0;
    right: 0;
    background: #303030;
    padding: clamp(10px, 2vw, 16px) clamp(16px, 3.5vw, 32px);
    border-radius: 16px 0 0 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-left: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-weight: 700;
    font-size: clamp(14px, 2vw, 18px);
    z-index: 3; /* Overlay above the inner frame */
    transition: background 0.4s, padding 0.4s;
    box-shadow: -2px -2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.mcc-ja-panel-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #fabe01; /* Gold icon button */
    color: #111;
    border-radius: 50%;
    font-size: 10px;
    transition: transform 0.4s, background 0.4s;
}

.mag-cat-card:hover .mcc-ja-panel {
    background: #00affa; /* Blue hover */
    padding-right: 24px; /* Dynamic hover expansion feel */
}

.mag-cat-card:hover .mcc-ja-panel-icon {
    transform: translateX(4px);
    background: #fff;
}

@media(max-width: 1024px) {
    .jc-impact-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media(max-width: 768px) {
    .jc-impact-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .jch-en-bg {
        -webkit-text-stroke: 2px rgba(212, 165, 1, 0.55);
    }
}

/* ========================================================================= */
/* 3. Line Search Section (路線検索) — 1work Premium Redesign
/* ========================================================================= */
.line-search-section {
    padding: 100px 0;
    background: #fabe01;
    position: relative;
    overflow: hidden;
}

.line-search-section::before {
    content: '';
    position: absolute;
    top: -300px;
    right: -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    pointer-events: none;
}

.line-search-section .section-title {
    color: #303030;
}

.line-search-section .section-title::after {
    background-color: #303030;
}

.line-search-section .section-title .en-text {
    color: #ffffff;
}

/* Override jch-text-stack colors on dark backgrounds */
.line-search-section .jch-en-bg {
    color: transparent !important;
    -webkit-text-stroke: 2px rgba(255,255,255,0.9) !important;
}

.line-search-section .jch-ja-front {
    color: #303030 !important;
}

.line-search-section .jch-ja-front::after {
    background: #303030 !important;
}

/* --- 14B. Train LCD UI --- */
.train-ui-container {
    max-width: 1200px;
    margin: 60px auto 0;
    display: flex;
    flex-direction: column;
    gap: 40px;
    position: relative;
    z-index: 10;
}

.train-control-deck {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid #303030;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

/* Tabs reuse .pr-tabs from 14A, redefining their placement inside the deck */
.pr-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 30px;
}

.pr-tab-btn {
    background: #ffffff;
    border: 2px solid #303030;
    color: #303030;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-align: center;
    line-height: 1.4;
}

.pr-tab-btn:hover {
    background: #f5f4ef;
    transform: translateY(-2px);
}

.pr-tab-btn.active {
    background: #303030;
    color: #ffffff;
    border-color: #303030;
}

.t-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}
.t-panel.active {
    display: block;
}

.t-line-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.t-line-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    border: 2px solid #303030;
    color: #303030;
    padding: 10px 20px 10px 10px;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: 2px 2px 0 rgba(48,48,48,0.1);
}

.t-line-btn:hover {
    background: #f5f5f5;
    transform: translate(2px, 2px);
    box-shadow: none;
}

.t-line-btn.active {
    background: #fffbe8;
    color: #303030;
    border-color: #303030;
    border-style: dashed;
    border-width: 2px;
    font-weight: 800;
    box-shadow: none;
    transform: translateY(-1px);
    position: relative;
    overflow: visible;
}

/* Punch holes — ticket style */
.t-line-btn.active::before,
.t-line-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #fabe01; /* matches outer bg */
    border-radius: 50%;
    border: 2px solid #303030;
    transform: translateY(-50%);
}
.t-line-btn.active::before { left: -6px; }
.t-line-btn.active::after  { right: -6px; }

.t-line-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: 0 0 8px currentColor;
}

.t-line-initial {
    font-size: 11px;
    font-weight: 900;
    width: 26px;
    height: 26px;
    border: 1.5px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.t-line-name {
    font-size: 14px;
    font-weight: 700;
}

/* The LCD Module */
.train-lcd-module {
    width: 100%;
    background: #e0e0e0;
    border-radius: 12px;
    padding: 8px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15), 0 0 0 2px #ccc;
    position: relative;
    opacity: 0.5;
    transform: scale(0.98);
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.train-lcd-module.powered-on {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 20px 50px rgba(0,0,0,0.1), 0 0 0 2px #bbb;
}

.lcd-screen-glass {
    background: #ffffff;
    border-radius: 6px;
    height: 560px;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.05);
}

.lcd-screen-glass::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 50%;
    background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, transparent 100%);
    pointer-events: none;
}

.lcd-screen-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.01) 2px, rgba(0,0,0,0.01) 4px);
    pointer-events: none;
    z-index: 10;
}

/* Header */
.lcd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.07);
    background: rgba(0,0,0,0.03);
    position: relative;
    z-index: 12;
}

@media (max-width: 768px) {
    .lcd-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .lcd-header-right {
        align-self: flex-end;
        margin-left: auto;
    }
}

.lcd-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.lcd-current-line-color {
    width: 24px;
    height: 48px;
    border-radius: 4px;
    background: #333;
    transition: background 0.3s;
}

.lcd-title-group {
    display: flex;
    flex-direction: column;
}

.lcd-line-name {
    font-size: 28px;
    font-weight: 900;
    color: #303030;
    margin: 0 0 4px;
    letter-spacing: 0.05em;
    font-family: "Hiragino Kaku Gothic ProN", "Meiryo", sans-serif;
    text-shadow: none;
}

.lcd-line-en {
    font-size: 11px;
    color: #888;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

.lcd-all-btn {
    background: #fabe01;
    color: #303030;
    padding: 10px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 3px 3px 0 rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.lcd-all-btn:hover {
    background: #303030;
    color: #fff;
    transform: scale(1.05);
}

/* Track Area */
.lcd-track-area {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
}

.lcd-status-msg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: rgba(48,48,48,0.4);
    font-size: 14px;
    letter-spacing: 0.2em;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    gap: 16px;
}

.lcd-loading-dots span {
    display: inline-block;
    width: 8px; height: 8px;
    background: var(--brand-light);
    border-radius: 50%;
    margin: 0 4px;
    animation: prBounce 1.4s infinite ease-in-out both;
}
.lcd-loading-dots span:nth-child(1) { animation-delay: -0.32s; }
.lcd-loading-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes prBounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1); box-shadow: 0 0 10px var(--brand-light); } }

/* The horizontal track */
.lcd-track-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lcd-physical-track {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 12px;
    transform: translateY(-50%);
    background: #ccc;
    transition: background 0.5s;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    z-index: 1;
}

.lcd-nodes-wrapper {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 0 60px;
    gap: 40px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    cursor: grab;
    z-index: 2;
}

.lcd-nodes-wrapper::-webkit-scrollbar { display: none; }
.lcd-nodes-wrapper.active-drag { cursor: grabbing; }

.lcd-station-node-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    text-decoration: none;
    transition: transform 0.2s;
    flex-shrink: 0;
    width: 60px;
}

.lcd-station-node-group:hover {
    transform: scale(1.15);
}

.lcd-node-top {
    position: absolute;
    bottom: 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.lcd-node-initial {
    font-size: 10px;
    font-weight: 800;
    width: 22px; height: 22px;
    border: 1.5px solid;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: currentColor;
}

.lcd-node-number {
    font-size: 18px;
    font-weight: 900;
    color: #303030;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-shadow: none;
    letter-spacing: -0.05em;
}

.lcd-node-circle {
    width: 20px;
    height: 20px;
    background: #fff;
    border: 5px solid; 
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    position: relative;
    z-index: 3;
    transition: all 0.2s;
}

.lcd-station-node-group:hover .lcd-node-circle {
    background: #fabe01;
    border-color: #303030 !important;
    box-shadow: 0 0 10px rgba(250, 190, 1, 0.5);
}

.lcd-node-bottom {
    position: absolute;
    top: 25px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.lcd-node-ja {
    font-size: 18px;
    font-weight: 700;
    color: #303030;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    text-shadow: none;
    transition: color 0.2s;
    line-height: 1;
}

.lcd-station-node-group:hover .lcd-node-ja {
    color: #00affa;
}

/* Running Train on Track — PC */
.running-train-icon {
    position: absolute;
    top: calc(50% - 35px);
    transform: translateY(-100%);
    left: 0;
    z-index: 20;
    transition: transform 0.1s linear;
}

/* --- Mobile Optimizations for Train UI --- */
@media (max-width: 768px) {
    .train-ui-container {
        margin: 30px auto 0;
        gap: 20px;
    }

    .train-control-deck {
        padding: 20px 15px;
        border-radius: 16px;
    }

    .pr-tabs {
        gap: 8px;
        margin-bottom: 20px;
    }

    .pr-tab-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

    .t-line-list {
        gap: 8px;
    }

    .t-line-btn {
        padding: 6px 14px 6px 6px;
        gap: 8px;
    }

    .t-line-initial {
        width: 22px;
        height: 22px;
        font-size: 9px;
    }

    .t-line-name {
        font-size: 12px;
    }

    /* Shrink the LCD display for mobile */
    .train-lcd-module {
        padding: 4px;
        border-radius: 10px;
        transform: scale(1);
    }
    
    .lcd-screen-glass {
        height: 480px;
        border-radius: 4px;
    }

    .lcd-header {
        padding: 15px;
        gap: 10px;
        flex-direction: column;
        align-items: flex-start;
    }

    .lcd-header-left {
        gap: 12px;
    }

    .lcd-current-line-color {
        height: 32px;
        width: 16px;
    }

    .lcd-line-name {
        font-size: 20px;
    }

    .lcd-line-en {
        font-size: 9px;
    }

    .lcd-all-btn {
        padding: 8px 16px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }

    /* Shift track upward on mobile so station names below are fully visible */
    .lcd-physical-track {
        top: 38%;
    }
    .lcd-nodes-wrapper {
        padding: 0 30px;
        gap: 0;
        align-items: center;
        top: 38%;
        bottom: auto;
        transform: translateY(-50%);
        height: 400px; /* Explicit height to prevent text clipping from overflow-y: hidden */
        padding-top: 0;
    }

    .lcd-node-top {
        bottom: 18px;
    }

    .lcd-node-bottom {
        top: 20px;
    }

    .running-train-icon {
        top: 32%;
        transform: translateY(-50%);
    }

    .running-train-icon .svg-train {
        width: 160px;
        height: 32px;
    }

    .lcd-node-number {
        font-size: 14px;
    }

    .lcd-node-initial {
        width: 18px;
        height: 18px;
        font-size: 8px;
    }

    .lcd-node-circle {
        width: 14px;
        height: 14px;
        border-width: 3px;
    }

    .lcd-node-ja {
        font-size: 14px;
    }
}

/* Extra search */
.extra-line-search {
    margin-top: 80px;
    padding: 60px 40px;
    background: linear-gradient(135deg, rgba(250, 190, 1, 0.2), rgba(0, 150, 255, 0.1));
    border: 1px solid rgba(255, 255, 255, 0.15);
    text-align: center;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.3), inset 0 2px 0 rgba(255,255,255,0.2);
}

.extra-line-search::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: var(--brand);
    filter: blur(80px);
    border-radius: 50%;
    opacity: 0.5;
    z-index: 0;
}

.extra-search-title {
    position: relative;
    z-index: 1;
    margin-bottom: 30px;
    font-weight: 900;
    font-size: 28px;
    color: #fff;
    letter-spacing: 2px;
}

.extra-search-title i {
    margin-right: 12px;
    color: var(--brand-light);
}

.extra-search-form {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.extra-search-input {
    flex: 1;
    padding: 18px 24px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.2);
    color: #fff;
    appearance: none;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    box-shadow: inset 0 4px 10px rgba(0,0,0,0.2);
}

.extra-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.extra-search-input:focus {
    outline: none;
    border-color: var(--brand-light);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 0 4px rgba(250, 190, 1, 0.3), inset 0 4px 10px rgba(0,0,0,0.2);
}

.extra-search-btn {
    background: var(--brand-light);
    color: #111;
    border: none;
    border-radius: 50px;
    padding: 18px 40px;
    cursor: pointer;
    font-weight: 900;
    font-size: 16px;
    font-family: inherit;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s, background 0.3s;
    box-shadow: 0 10px 20px rgba(250, 190, 1, 0.4);
}

.extra-search-btn:hover {
    background: #fff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.3);
}

.extra-search-note {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 700;
}

/* ========================================================================= */
/* 4. Pickup Jobs (Bento Grid) — Preserved
/* ========================================================================= */
.top-pickup-section {
    padding: 100px 0 160px;
    background: #f7f7f5;
    position: relative;
    overflow: hidden;
}

.top-pickup-section .jch-en-bg {
    -webkit-text-stroke: 2px rgba(0, 175, 250, 0.45);
}

/* ── Split-Screen Showcase ── */
.fs-showcase {
    display: flex;
    gap: 0;
    min-height: 460px;
    border: none;
    margin-top: 40px;
}

/* Left Gallery */
.fs-gallery {
    width: 55%;
    position: relative;
    overflow: hidden;
    background: #111;
}

.fs-gallery-inner {
    position: absolute;
    inset: 0;
}

.fs-gallery-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.6s ease, transform 4s ease-out;
    transform: scale(1.05);
}

.fs-gallery-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Gallery counter overlay */
.fs-gallery-counter {
    position: absolute;
    bottom: 24px;
    left: 28px;
    z-index: 5;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.fs-counter-current {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
}

.fs-counter-sep {
    font-size: 20px;
    font-weight: 300;
    opacity: 0.4;
    margin: 0 4px;
}

.fs-counter-total {
    font-size: 20px;
    font-weight: 700;
    opacity: 0.5;
}

/* Right Editorial List */
.fs-list {
    width: 45%;
    display: flex;
    flex-direction: column;
    background: #fff;
    overflow-y: auto;
    max-height: 460px;
}

.fs-list-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
}

.fs-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fabe01;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.fs-list-item:hover,
.fs-list-item.is-active {
    background: #f8faf9;
}

.fs-list-item:hover::before,
.fs-list-item.is-active::before {
    transform: scaleY(1);
}

.fs-item-number {
    font-size: 32px;
    font-weight: 900;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    color: #ddd;
    flex-shrink: 0;
    width: 48px;
    line-height: 1;
    transition: color 0.3s;
}

.fs-list-item:hover .fs-item-number,
.fs-list-item.is-active .fs-item-number {
    color: #00affa;
}

.fs-item-body {
    flex: 1;
    min-width: 0;
}

.fs-item-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.fs-item-tags span {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #303030;
    padding: 2px 8px;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

.fs-item-title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.fs-list-item:hover .fs-item-title {
    color: #00affa;
}

.fs-item-meta {
    display: flex;
    gap: 12px;
    font-size: 11px;
    color: #999;
    font-weight: 600;
}

.fs-item-cat {
    color: #00affa;
    font-weight: 800;
}

.fs-item-area i {
    font-size: 10px;
    margin-right: 2px;
}

.fs-item-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.fs-item-salary {
    color: #303030;
    font-weight: 800;
}

.fs-item-salary .amount {
    font-size: 18px;
    font-weight: 900;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

.fs-item-salary .unit {
    font-size: 11px;
    color: #888;
    margin-left: 2px;
}

.fs-item-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 11px;
    transition: all 0.3s;
}

.fs-list-item:hover .fs-item-arrow {
    background: #00affa;
    color: #fff;
}

/* Hide old elements */
.fsc-desc, .fsc-bottom, .fsc-img, .fsc-body, .fsc-meta,
.fsc-salary, .fsc-type, .fsc-loc, .pickup-header,
.featured-stack-wrapper, .featured-stack-list, .featured-stack-card,
.fsc-bg, .fsc-gradient, .fsc-overlay, .fsc-salary-badge, .fsc-arrow, .fsc-tags {
    display: none;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .fs-showcase { min-height: 480px; }
    .fs-list { max-height: 480px; }
    .fs-item-number { font-size: 24px; width: 36px; }
    .fs-list-item { padding: 18px 20px; gap: 14px; }
}

@media (max-width: 768px) {
    .top-pickup-section { padding: 60px 0; }
    .fs-showcase {
        flex-direction: column;
        min-height: auto;
    }
    .fs-gallery {
        width: 100%;
        height: 240px;
    }
    .fs-list {
        width: 100%;
        max-height: 400px;
    }
    .fs-counter-current { font-size: 32px; }
    .fs-counter-total { font-size: 16px; }
    .fs-item-number { font-size: 20px; width: 28px; }
    .fs-list-item { padding: 14px 16px; gap: 10px; }
    .fs-item-title { font-size: 13px; }
    .fs-item-salary .amount { font-size: 15px; }
}

/* ========================================================================= */
/* 5. Career Plus (キャリア情報) — Vibrant Glassmorphic SaaS Grid */
/* ========================================================================= */
[id="1work-insights"],
.sec-insights {
    background: #fff;
    position: relative;
    padding: 100px 0 140px;
}

/* ── Magazine Spread ── */
.mag-spread {
    display: flex;
    gap: 2px;
    margin-top: 40px;
    min-height: 420px;
}

/* Hero Article — Left 60% */
.mag-hero {
    width: 60%;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    display: block;
}

/* Green accent bar on hero left edge */
.mag-hero::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--brand-light, #fabe01);
    z-index: 10;
}

/* Hover accent bar on side items */
.mag-side-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #fabe01;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.mag-side-item {
    position: relative;
}

.mag-side-item:hover::before {
    transform: scaleY(1);
}

.mag-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mag-hero:hover .mag-hero-img {
    transform: scale(1.04);
}

.mag-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(0deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mag-cat {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: #303030;
    padding: 4px 8px;
    border-radius: 4px;
    display: inline-block;
    width: fit-content;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mag-hero-title {
    font-size: 24px;
    font-weight: 900;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mag-hero-excerpt {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.mag-date {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-weight: 600;
}

/* Side Articles — Right 40% */
.mag-side {
    width: 40%;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mag-side-item {
    flex: 1;
    display: flex;
    background: #f7f7f5;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    transition: background 0.3s;
}

.mag-side-item:hover {
    background: #eef6f1;
}

.mag-side-img {
    width: 45%;
    overflow: hidden;
    flex-shrink: 0;
}

.mag-side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.mag-side-item:hover .mag-side-img img {
    transform: scale(1.05);
}

.mag-side-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    flex: 1;
}

.mag-side-body .mag-cat {
    color: #fff;
}

.mag-side-title {
    font-size: 15px;
    font-weight: 800;
    color: #111;
    line-height: 1.6;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s;
}

.mag-side-item:hover .mag-side-title {
    color: #00affa;
}

.mag-side-body .mag-date {
    color: #aaa;
}

/* More Button */
.mag-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding: 14px 36px;
    border: 2px solid #303030;
    background: #303030;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.3s;
    float: right; /* right-align on PC */
    margin-bottom: 0;
}

/* clearfix for mag-more-btn float */
.mag-more-wrap::after {
    content: '';
    display: block;
    clear: both;
}
}

.mag-more-btn:hover {
    background: #fabe01;
    border-color: #fabe01;
    color: #303030;
}

.mag-more-btn i {
    transition: transform 0.3s;
}

.mag-more-btn:hover i {
    transform: translateX(4px);
}

/* Hide old career elements */
.career-plus-wrap, .career-plus-titlewrap, .career-plus-contents,
.career-card-list, .career-card-item, .career-horizontal-tabs, .career-tab {
    display: none;
}

@media (max-width: 768px) {
    [id="1work-insights"] { padding: 60px 0; }
    .mag-spread {
        flex-direction: column;
        min-height: auto;
    }
    .mag-hero {
        width: 100%;
        min-height: 300px;
    }
    .mag-side {
        width: 100%;
    }
    .mag-hero-title { font-size: 18px; }
    .mag-hero-overlay { padding: 24px; }
    .mag-side-body { padding: 16px; }
    .mag-side-title { font-size: 13px; }
}

/* ========================================================================= */
/* 6. 路線検索：その他の路線検索ボックス — Preserved
/* ========================================================================= */
.extra-line-search {
    margin-top: 50px;
    padding: 0;
    background: transparent;
    border: none;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.extra-search-title {
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    text-align: center;
}

.extra-search-title i {
    margin-right: 8px;
    color: #fabe01;
}

.extra-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.extra-search-input {
    flex: 1;
    padding: 16px 22px;
    border: none;
    font-size: 15px;
    background: transparent;
    appearance: none;
    font-weight: 600;
    color: #fff;
}

.extra-search-input::placeholder {
    color: rgba(255,255,255,0.35);
    font-weight: 400;
}

.extra-search-btn {
    background: #fabe01;
    color: #111;
    border: none;
    padding: 16px 30px;
    cursor: pointer;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.1em;
    transition: all 0.2s;
}

.extra-search-btn:hover {
    background: #f5c542;
}

.extra-search-note {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    text-align: center;
}

/* ========================================================================= */
/* 7. SP Bottom Nav
/* ========================================================================= */
.sp-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 800;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(250, 190, 1, 0.08);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 6px 0 calc(6px + env(safe-area-inset-bottom));
}

.sp-bnav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-sub);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s;
}

.sp-bnav-item.is-active {
    color: var(--brand-dark);
}

.sp-bnav-item svg {
    color: inherit;
}

.sp-bnav-search {
    color: var(--brand-light);
}

.sp-bnav-search svg {
    color: var(--brand-light);
}

/* ========================================================================= */
/* 8. RESPONSIVE
/* ========================================================================= */
@media (max-width: 900px) {
    :root {
        --header-h: 56px;
    }

    .mobile-menu {
        display: flex;
    }

    .header-inner {
        padding: 0 16px;
    }

    .search-trigger {
        padding: 8px 16px;
        font-size: 12px;
    }

    .search-panel-inner {
        padding: 24px 16px 48px;
    }

    .sp-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sp-keyword-bar {
        padding: 12px 14px;
    }

    .sp-keyword-input {
        font-size: 16px;
        min-width: 120px;
    }

    .sp-cta {
        flex-direction: row; /* keep row on tablet */
    }

    .sp-submit {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .sp-clear {
        width: 100%;
        text-align: center;
        padding: 12px 24px;
    }

    .region-search {
        padding: 64px 0 48px;
    }

    .region-search-inner {
        padding: 0 16px;
    }

    .section-header {
        margin-bottom: 28px;
    }

    .map-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .map-container {
        order: 2;
        padding: 16px;
    }

    .area-panel {
        order: 1;
    }

    .area-tab-content {
        max-height: 360px;
    }

    .pref-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 4px;
        padding: 12px;
    }

    .pref-chip span {
        padding: 6px 10px;
        font-size: 12px;
    }

    .selected-prefs {
        padding: 16px;
    }

    .prefs-search-btn {
        width: 100%;
        justify-content: center;
    }

    /* MV mobile (Refined Flowing Mosaic) */
    .ref-mv {
        height: auto; min-height: 100vh; flex-direction: column; overflow: hidden; /* Fix horizontal overflow */
        background: transparent; /* Changed from var(--brand-dark) to show matrix */
        display: flex; /* Restore flex for vertical stacking */
    }
    
    .ref-left {
        position: relative; /* Override desktop absolute */
        flex: none; width: 100%;
        padding: 40px 20px 20px;
        height: auto;
        min-height: 40vh;
        z-index: 10;
        background: transparent;
        clip-path: none; /* remove desktop slant */
        margin-right: 0;
    }

    .ref-text-wrap { margin-top: 0; }
    .ref-ja { position: relative; max-width: 100%; width: 100%; }

    .ref-right {
        position: relative; /* Override desktop absolute */
        flex: none; width: 100%; height: 60vh;
        z-index: 1; /* Under left side */
        background: transparent; /* Seamless blend on mobile too */
        margin-top: 0;
        padding-top: 20px;
    }

    .skew-wrapper {
        top: 0; left: 0; width: 100%; height: 100%;
        /* No fade mask, pure grids */
        -webkit-mask-image: none;
        mask-image: none;
        padding-left: 0; /* Align perfectly on mobile */
    }

    .card-content h2 { font-size: 18px; }
    
    .mv-bg-logo {
        top: auto; bottom: -5%; left: -10%; width: 80vw; height: 80vw;
        transform: rotate(-15deg);
    }

    /* Pickup Bento */
    .pickup-header {
        flex-direction: column;
        gap: 15px;
    }

    .bento-indicators {
        position: static;
        margin: 0;
    }

    .pickup-bento-wrapper {
        min-height: auto;
    }

    .bento-group,
    .bento-group.layout-left,
    .bento-group.layout-right,
    .bento-group.layout-center {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto auto;
        grid-template-areas: "main main" "sub1 sub2" "sub3 sub4";
        gap: 10px;
        position: absolute;
    }

    .bento-card.area-main .card-thumb {
        aspect-ratio: 16 / 8;
    }

    .bento-card.area-main .title {
        font-size: 1.1rem;
    }

    .bento-card.area-main .desc {
        -webkit-line-clamp: 2;
        margin-bottom: 8px;
    }

    .bento-card.area-main .card-body {
        padding: 15px;
    }

    .bento-card:not(.area-main) .card-thumb {
        aspect-ratio: 16 / 9;
    }

    .bento-card:not(.area-main) .card-body {
        padding: 10px;
    }

    .bento-card:not(.area-main) .title {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }

    .bento-card:not(.area-main) .tags-area {
        display: none;
    }

    .bento-card:not(.area-main) .salary-area {
        margin-top: 5px;
        padding-top: 5px;
    }

    .bento-card:not(.area-main) .salary-area .amount {
        font-size: 1rem;
    }

    /* Career */
    .career-main-flex {
        flex-direction: column;
        gap: 20px;
    }

    .career-sidebar {
        order: -1;
        width: 100%;
        padding: 0 0 20px 0;
        background: transparent;
        border-bottom: 1px solid #eee;
    }

    .sidebar-title {
        display: none;
    }

    .career-category-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        width: 100%;
    }

    .career-tab {
        width: 100%;
        padding: 12px 0;
        font-size: 13px;
        font-weight: 500;
        color: #666;
        background: #fff;
        border: 1px solid #ddd;
        text-align: center;
    }

    .career-tab::before {
        content: none;
    }

    .career-tab.active {
        background: var(--brand-dark);
        color: #fff;
        border-color: var(--brand-dark);
    }

    .career-card-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .career-card-list>*:nth-child(n + 7) {
        display: none;
    }
}

@media (max-width: 768px) {
    .feature-lists {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-list-item.main-card {
        grid-row: span 1;
        height: 300px;
    }

    .feature-list-item.sub-card-item {
        height: 100px;
    }

    .feature-titlebox h3 {
        font-size: 1.3rem;
    }

    .sub-card-title {
        font-size: 1rem;
    }

    .sub-card-arrow {
        font-size: 1.5rem;
    }

    .route-map-nav-wrapper {
        margin-bottom: 24px;
    }

    .route-map-tabs {
        gap: 6px;
    }

    .route-station-tab {
        padding: 8px 16px;
    }

    .station-sign-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .meta-top {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .station-sign-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .career-card-list {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .extra-search-form {
        flex-direction: column;
        max-width: 100%;
    }

    .extra-search-input {
        width: 100%;
    }

    .extra-search-btn {
        width: 100%;
    }
}

.pc-dock-nav,
.sp-dock-nav {
    opacity: 0;
    visibility: hidden;
}

/* --- GEOLOCATION FEATURE UI --- */
.geo-btn {
    margin-top: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: #303030;
    color: #fff;
    border: none;
    border-radius: 0;
    padding: 16px 40px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 4px 4px 0 #fabe01;
    transition: transform 0.2s, box-shadow 0.2s;
    letter-spacing: 0.05em;
}
.geo-btn:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 #fabe01;
}
.geo-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.geo-btn i {
    color: #fabe01;
}

/* Geo Results Modal Overlay */
.geo-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.geo-modal-backdrop {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
}

.geo-modal-content {
    position: relative;
    background: #fff;
    max-width: 900px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 36px;
    border-top: 4px solid #fabe01;
    animation: modalIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.geo-modal-close {
    position: sticky;
    top: 0;
    align-self: flex-end;
    flex-shrink: 0;
    width: 40px; height: 40px;
    border: 2px solid #ddd;
    background: #fff;
    color: #333;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 100;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    margin-bottom: 8px;
}
.geo-modal-close:hover {
    background: #303030;
    color: #fff;
    border-color: #303030;
}

.geo-modal-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
}

.geo-modal-badge {
    width: 44px; height: 44px;
    background: #fabe01;
    color: #303030;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.geo-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #111;
    margin: 0;
    letter-spacing: 0.03em;
}

.geo-modal-more {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 14px 32px;
    background: #303030;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    max-width: 360px;
    width: 100%;
    justify-content: center;
    align-self: center;
    margin-left: auto;
    margin-right: auto;
}
.geo-modal-more:hover {
    background: #00affa;
    color: #ffffff;
}


.geo-suggest-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.geo-s-card {
    background: #fff;
    overflow: hidden;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    text-align: left;
}
.geo-s-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-color: #fabe01;
}
.geo-s-img {
    height: 120px;
    background-size: cover;
    background-position: center;
    position: relative;
}
.geo-s-cat {
    position: absolute;
    bottom: 0;
    left: 0;
    background: #fabe01;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    letter-spacing: 0.08em;
}
.geo-s-body {
    padding: 16px;
}
.geo-s-title {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 700;
    color: #222;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.geo-s-salary {
    font-size: 12px;
    color: #fabe01;
    font-weight: 800;
    display: block;
}

@media(max-width: 1024px) {
    .geo-suggest-list { grid-template-columns: repeat(3, 1fr); }
}
@media(max-width: 768px) {
    .geo-suggest-list { grid-template-columns: 1fr; }
    .geo-suggested-jobs { padding: 24px 16px; }
    .geo-suggest-title { font-size: 18px; }
    .geo-modal-content {
        padding: 24px 16px; /* slightly smaller padding on mobile */
    }
    .geo-modal-header {
        flex-direction: column;
        text-align: center;
        align-items: center;
        gap: 10px;
    }
    .geo-modal-title {
        font-size: 18px;
    }
    .geo-modal-more {
        padding: 12px 16px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}

/* ========================================================================= */

/* BOUNDARY TICKER (Section Divider — Pure CSS Infinite Loop)
/* ========================================================================= */
.boundary-ticker-section {
    padding: 25px 0;
    margin: 0;
    width: 100%;
    overflow: hidden;
    position: relative;
    background: #fafafa;
    border-top: 1px solid rgba(0,0,0,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.boundary-ticker-wrap {
    display: flex;
    overflow: hidden;
    width: 100%;
}

.bt-track {
    display: inline-flex;
    width: max-content;
    white-space: nowrap;
    will-change: transform;
    animation: boundary-scroll 80s linear infinite;
    flex-shrink: 0;
}

.bt-track.reverse {
    animation: boundary-scroll-reverse 80s linear infinite;
}

@media (max-width: 768px) {
    .bt-track {
        animation: boundary-scroll 160s linear infinite;
    }
    .bt-track.reverse {
        animation: boundary-scroll-reverse 160s linear infinite;
    }
}

.boundary-ticker-section:hover .bt-track {
    animation-play-state: paused;
}

@keyframes boundary-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes boundary-scroll-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.k-tag {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 800;
    color: #111;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    margin-right: 20px;
    padding: 6px 0;
    display: inline-flex;
    align-items: center;
    position: relative;
    transition: color 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.k-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    background-color: #111;
    border-radius: 50%;
    margin-left: 20px;
    transition: background-color 0.4s;
}

.k-tag-hollow {
    color: transparent !important;
    -webkit-text-stroke: 1px #111;
}

/* Hover */
.k-tag:hover,
.k-tag-hollow:hover {
    color: #fabe01 !important;
    text-shadow: 0 4px 15px rgba(255, 171, 0, 0.3);
    z-index: 5;
}

.k-tag:hover .k-dot {
    background-color: #fabe01;
}

/* ========================================================================= */
/* COMPREHENSIVE RESPONSIVE: 320px → Tablet                                  */
/* ========================================================================= */

/* ── Tablet (1024px) ── */
@media (max-width: 1024px) {
    /* Featured Jobs */
    .fs-showcase {
        flex-direction: column;
        min-height: auto;
    }
    .fs-gallery {
        width: 100%;
        height: 320px;
        position: relative;
        top: auto;
    }
    .fs-list {
        width: 100%;
        max-height: 400px;
    }
    .fs-list-item { padding: 16px 20px; }

    /* Magazine Spread */
    .mag-spread { min-height: 360px; }
    .mag-hero { width: 55%; }
    .mag-side { width: 45%; }

    /* Job Category */
    .jc-impact-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* Ghost text */
    .jch-en-bg { font-size: clamp(40px, 10vw, 100px); }
}

/* ── Small Tablet / Large Phone (768px) ── */
@media (max-width: 768px) {
    /* Magazine Spread */
    .mag-spread {
        flex-direction: column;
        min-height: auto;
    }
    .mag-hero {
        width: 100%;
        min-height: 280px;
    }
    .mag-side {
        width: 100%;
    }
    .mag-hero-title { font-size: 18px; }
    .mag-hero-overlay { padding: 24px; }
    .mag-side-body { padding: 16px; }
    .mag-side-title { font-size: 13px; }
    .mag-more-btn { margin-top: 24px; padding: 12px 28px; font-size: 13px; float: none; display: block; text-align: center; }
    [id="1work-insights"] { padding: 60px 0; }

    /* Featured Jobs */
    .fs-gallery { height: 260px; }
    .fs-counter { font-size: 18px; bottom: 12px; left: 12px; padding: 6px 14px; }

    /* Ghost text */
    .jch-en-bg { font-size: clamp(36px, 10vw, 80px); }
    /* fgb-en font-size removed — .jch-en-bg handles responsive sizing */

    /* Section padding reduction */
    .top-pickup-section { padding: 60px 0; }

    /* Job Category */
    .jc-impact-list {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    .mag-cat-card { min-height: 150px; }
    .mcc-ja-panel { padding: 14px 20px; }
    .mcc-ja-panel h4 { font-size: 15px !important; }

    /* Ticker tags */
    .k-tag { font-size: 16px; margin-right: 12px; }
    .k-dot { width: 4px; height: 4px; margin-left: 12px; }

    /* MV Typography Mobile Adjustments */
    .ref-content-stack { padding: 24px 32px; }
    .main-catch { font-size: clamp(32px, 10vw, 70px) !important; }
    .ref-sub-catch { font-size: 14px !important; }


    /* Geo button */
    .geo-btn { font-size: 12px; padding: 10px 20px; }
}

/* ── Mobile (480px) ── */
@media (max-width: 480px) {
    /* Feature section top padding */
    .feature-section { padding-top: 50px !important; }

    /* Featured Jobs */
    .fs-gallery { height: 220px; }
    .fs-list-item { padding: 12px 14px; }
    .fs-list-num { font-size: 14px; min-width: 28px; }
    .fs-list-title { font-size: 13px; }
    .fs-list-meta { font-size: 11px; }
    .fs-salary-badge { font-size: 10px; padding: 3px 8px; }

    /* Magazine */
    .mag-hero { min-height: 220px; }
    .mag-hero-excerpt { display: none; }
    .mag-side-img { width: 35%; }
    .mag-side-body { padding: 12px; gap: 4px; }
    .mag-side-title { font-size: 12px; -webkit-line-clamp: 2; line-clamp: 2; }
    .mag-cat { font-size: 10px; }

    /* Ghost text: move up and darken */
    .jch-en-bg {
        font-size: clamp(32px, 14vw, 60px);
        -webkit-text-stroke: 2px rgba(212, 165, 1, 0.55);
        transform: translateY(-24px);
    }
    /* Feature section title: nudge down to compensate for ghost text shift */
    .fgb-title {
        top: 58%;
        font-size: clamp(18px, 4.5vw, 28px);
        white-space: nowrap;
    }

    /* Section titles */
    .jch-ja-front { font-size: clamp(18px, 4.5vw, 28px); white-space: nowrap; }

    /* Job category: allow more height */
    .job-category-header { margin-bottom: 24px; padding: 20px 0; }
    .jc-impact-list { grid-template-columns: 1fr !important; }
    .mag-cat-card { aspect-ratio: auto; min-height: 160px; }
    .mcc-ja-panel { padding: 12px 16px !important; }
    .mcc-ja-panel h4 { font-size: 14px !important; }

    /* 特集: scale down cards */
    .feature-3d-slider .swiper-slide {
        width: clamp(280px, 82vw, 340px) !important;
        height: clamp(180px, 45vw, 240px) !important;
    }
    .a3d-title { font-size: 16px !important; }
    /* Keep arrow bar style consistent on mobile — just adjust content padding */
    .a3d-content {
        padding: 16px 16px 48px;
    }

    /* pref-other: smaller padding on mobile */
    .pref-other-input { padding: 10px 12px !important; font-size: 13px !important; }
    .pref-other-btn   { padding: 10px 16px !important; font-size: 13px !important; }
}

/* ── Minimum (320px) ── */
@media (max-width: 360px) {
    /* jch-ja-front: no font-size reduction at 360px per design spec */
    .mag-cat-card { min-height: 120px; }
    .fs-gallery { height: 180px; }
    .fs-list-item { padding: 10px 12px; }
    .mag-hero { min-height: 180px; }
    .mag-hero-title { font-size: 15px; }
    .mag-hero-overlay { padding: 16px; }
    .mag-side-img { width: 30%; }
    .pref-chips-area { grid-template-columns: repeat(2, 1fr); }
    .k-tag { font-size: 16px; margin-right: 8px; }
    .boundary-ticker-section { padding: 20px 0; }
}

/* ── SP-CTA: stack vertically below 510px ── */
@media (max-width: 510px) {
    .sp-cta {
        flex-direction: column;
        gap: 10px;
    }
    .sp-submit, .sp-clear { width: 100%; justify-content: center; }

    /* Feature band inner: nudge down on very small screens */
    .fgb-inner {
        top: 11px;
        position: relative;
    }
}

/* ========================================================================= */
/* EOF
/* ========================================================================= */