@charset "UTF-8";
/**
 * スポキャリ 共通ヘッダー・フッター・ナビゲーション レスポンシブスタイル
 * 全ページ（top, detail, search, new, bookmark, etc.）共通で適用されます。
 * PC表示には一切干渉せず、768px以下のスマホおよび980px以下のタブレットで自動最適化されます。
 */

/* ==========================================================================
   タブレット・スマホ共通（画面幅 980px 以下）
   ========================================================================== */
@media screen and (max-width: 980px) {
    #wrapper {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden;
    }

    #wrapper #header {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    #wrapper #navigation {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #footerWrapper {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    #footerWrapper #footer {
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* ==========================================================================
   PC表示（769px以上）ではスマホ専用要素を完全非表示
   ========================================================================== */
@media screen and (min-width: 769px) {
    .sp-header-actions,
    .sp-drawer-menu,
    .sp-menu-overlay {
        display: none !important;
    }
}

/* ==========================================================================
   スマートフォン表示（画面幅 768px 以下）の完全最適化（spライクUI）
   ========================================================================== */
@media screen and (max-width: 768px) {

    /* body のスクロールロック（ドロワー展開時） */
    body.sp-menu-open {
        overflow: hidden !important;
    }

    /* 1. ヘッダーエリア（sp風スリムバー） */
    #wrapper #header {
        width: 100% !important;
        height: 52px !important;
        margin: 0 !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        background: #ffffff !important;
        border-bottom: 1px solid #e2e8f0 !important;
        position: relative !important;
        z-index: 100 !important;
    }

    /* サイト概要テキスト（SEO用に保持し視覚的に隠す） */
    #wrapper #header h1 {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        border: 0 !important;
    }

    /* ロゴ */
    #wrapper #header #logo,
    #wrapper #header a[href="./"] {
        display: flex !important;
        align-items: center !important;
        float: none !important;
        margin: 0 !important;
        height: 100% !important;
    }

    #wrapper #header #logo img,
    #wrapper #header img#logo {
        max-width: 120px !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
    }

    /* PC専用バナー・メニューをスマホでは非表示 */
    #wrapper #header img[name="kojin"],
    #wrapper #header #subNavigationNew,
    #wrapper #header #subNavigation {
        display: none !important;
    }

    /* スマホ用ヘッダーアクション（検討中・ログイン・メニュー） */
    .sp-header-actions {
        display: flex !important;
        align-items: center !important;
        gap: 2px !important;
        height: 100% !important;
    }

    .sp-btn-action {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 48px !important;
        height: 48px !important;
        padding: 4px 2px !important;
        box-sizing: border-box !important;
        color: #64748b !important;
        text-decoration: none !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
    }

    .sp-btn-action svg {
        margin-bottom: 2px !important;
    }

    .sp-btn-action:active {
        background: #f1f5f9 !important;
        color: #2563eb !important;
    }

    /* ハンバーガーメニューボタン */
    .sp-menu-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-width: 48px !important;
        height: 48px !important;
        padding: 4px 2px !important;
        box-sizing: border-box !important;
        background: transparent !important;
        border: none !important;
        cursor: pointer !important;
        color: #1e293b !important;
        font-size: 10px !important;
        font-weight: 600 !important;
        border-radius: 6px !important;
    }

    .sp-menu-icon {
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        width: 18px !important;
        height: 14px !important;
        margin-bottom: 3px !important;
    }

    .sp-menu-icon span {
        display: block !important;
        width: 100% !important;
        height: 2px !important;
        background-color: #1e293b !important;
        border-radius: 1px !important;
        transition: all 0.2s ease !important;
    }

    /* 2. ドロワーメニュー（右からスライドイン） */
    .sp-drawer-menu {
        position: fixed !important;
        top: 0 !important;
        right: -280px !important;
        width: 280px !important;
        height: 100% !important;
        background: #ffffff !important;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2) !important;
        z-index: 999999 !important;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .sp-drawer-menu.is-active {
        right: 0 !important;
    }

    .sp-drawer-header {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 16px 20px !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    .sp-drawer-title {
        font-size: 16px !important;
        font-weight: bold !important;
        color: #1e293b !important;
    }

    .sp-drawer-close {
        background: transparent !important;
        border: none !important;
        font-size: 20px !important;
        color: #64748b !important;
        cursor: pointer !important;
        padding: 4px 8px !important;
    }

    .sp-drawer-list {
        list-style: none !important;
        padding: 8px 0 !important;
        margin: 0 !important;
    }

    .sp-drawer-list li {
        border-bottom: 1px solid #f1f5f9 !important;
    }

    .sp-drawer-list li a {
        display: flex !important;
        align-items: center !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        text-decoration: none !important;
        gap: 12px !important;
        transition: background-color 0.15s ease !important;
    }

    .sp-drawer-list li a:active {
        background: #f1f5f9 !important;
        color: #2563eb !important;
    }

    .sp-drawer-list li a .icon {
        font-size: 16px !important;
        width: 22px !important;
        text-align: center !important;
    }

    .sp-drawer-highlight a {
        background: #eff6ff !important;
        color: #2563eb !important;
        font-weight: bold !important;
    }

    /* オーバーレイ背景 */
    .sp-menu-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(2px) !important;
        z-index: 999998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .sp-menu-overlay.is-active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* 3. グローバルナビゲーション（スライド廃止・1画面収束2連タブ） */
    #wrapper #navigation {
        width: 100% !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        background: #ffffff !important;
        overflow: hidden !important; /* 横スクロールを完全に排除 */
        border-bottom: 2px solid #2563eb !important;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04) !important;
    }

    #wrapper #navigation ul {
        display: flex !important;
        width: 100% !important;
        height: 48px !important;
        margin: 0 !important;
        padding: 0 !important;
        gap: 0 !important;
        list-style: none !important;
    }

    /* 「お仕事を探す」と「新着求人」を50%ずつ1画面にジャストフィット（折り返し防止） */
    #wrapper #navigation ul #naviLink01,
    #wrapper #navigation ul #naviLink02 {
        display: block !important;
        float: none !important;
        flex: 1 1 50% !important;
        width: 50% !important;
        height: 42px !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #wrapper #navigation ul #naviLink01 a,
    #wrapper #navigation ul #naviLink02 a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        height: 42px !important;
        text-decoration: none !important;
        font-size: 13px !important;
        font-weight: bold !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
        padding: 0 4px !important;
        letter-spacing: 0 !important;
    }

    /* PC用画像を非表示にし、モダンなテキスト＋アイコンボタンに置換 */
    #wrapper #navigation ul #naviLink01 a img,
    #wrapper #navigation ul #naviLink02 a img {
        display: none !important;
    }

    /* お仕事を探すボタン（ブルー基調） */
    #wrapper #navigation ul #naviLink01 a {
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        color: #ffffff !important;
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
    }
    #wrapper #navigation ul #naviLink01 a::before {
        content: "🔍 " !important;
        font-size: 13px !important;
        margin-right: 3px !important;
    }
    #wrapper #navigation ul #naviLink01 a::after {
        content: "お仕事を探す" !important;
    }

    /* 新着求人ボタン（エメラルド基調） */
    #wrapper #navigation ul #naviLink02 a {
        background: linear-gradient(135deg, #059669, #047857) !important;
        color: #ffffff !important;
    }
    #wrapper #navigation ul #naviLink02 a::before {
        content: "✨ " !important;
        font-size: 13px !important;
        margin-right: 3px !important;
    }
    #wrapper #navigation ul #naviLink02 a::after {
        content: "新着の求人情報" !important;
    }

    #wrapper #navigation ul #naviLink01 a:active,
    #wrapper #navigation ul #naviLink02 a:active {
        opacity: 0.9 !important;
        filter: brightness(0.95) !important;
    }

    /* ヘルプ、検討中、ログイン、学校はヘッダー・ハンバーガーにあるためバーからは除外 */
    #wrapper #navigation ul #naviLinkSC,
    #wrapper #navigation ul #naviLink04,
    #wrapper #navigation ul #naviLink05,
    #wrapper #navigation ul #naviLink06,
    #wrapper #navigation ul #naviLink06-02 {
        display: none !important;
    }

    /* 4. パンくずリスト（topics）スマホ最適化 */
    #topics {
        width: 100% !important;
        padding: 6px 12px !important;
        box-sizing: border-box !important;
        font-size: 11px !important;
        line-height: 1.4 !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        background: #f8fafc !important;
        border-bottom: 1px solid #e2e8f0 !important;
    }

    #topics::-webkit-scrollbar {
        display: none !important;
    }

    #topics ol {
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        gap: 3px !important;
    }

    #topics li {
        display: inline-flex !important;
        align-items: center !important;
        white-space: nowrap !important;
        color: #64748b !important;
    }

    #topics li a {
        color: #2563eb !important;
        text-decoration: none !important;
    }

    #topics #update {
        display: none !important;
    }

    /* 4. フッターエリア */
    #footerWrapper {
        width: 100% !important;
        height: auto !important;
        background: #1e293b !important;
        color: #cbd5e1 !important;
        padding: 24px 14px 60px 14px !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        border-top: 1px solid #334155 !important;
    }

    #footerWrapper #footer {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: left !important;
        overflow: visible !important;
    }

    #footerWrapper #contentFooter {
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px !important;
        line-height: 1.8 !important;
        overflow: visible !important;
    }

    #footerWrapper #contentFooter h4 {
        font-size: 14px !important;
        font-weight: bold !important;
        color: #f8fafc !important;
        margin: 20px 0 8px 0 !important;
        padding-bottom: 4px !important;
        border-bottom: 1px solid #334155 !important;
        letter-spacing: 0.5px !important;
    }

    #footerWrapper #contentFooter p.link {
        font-size: 12px !important;
        line-height: 2.2 !important;
        color: #94a3b8 !important;
        margin: 0 0 10px 0 !important;
    }

    #footerWrapper #contentFooter p.link a {
        color: #93c5fd !important;
        text-decoration: none !important;
        display: inline-block !important;
        padding: 2px 6px !important;
        margin: 2px 1px !important;
        background: rgba(255, 255, 255, 0.06) !important;
        border-radius: 4px !important;
        transition: background-color 0.2s ease;
    }

    #footerWrapper #contentFooter p.link a:active {
        background: rgba(255, 255, 255, 0.15) !important;
    }

    #footerWrapper #footer address {
        margin-top: 24px !important;
        font-size: 11px !important;
        color: #64748b !important;
        text-align: center !important;
        font-style: normal !important;
        line-height: 1.6 !important;
        display: block !important;
    }

    /* 共通：検討中に追加ボタン（モダンベクターボタン化） */
    .btn-detail-bookmark {
        width: 100% !important;
        max-width: 220px !important;
        height: 38px !important;
        line-height: 38px !important;
        background: #fefce8 !important;
        border: 1px solid #fef08a !important;
        color: #854d0e !important;
        font-size: 13px !important;
        font-weight: bold !important;
        border-radius: 8px !important;
        text-align: center !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        box-sizing: border-box !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05) !important;
        transition: all 0.2s ease !important;
        margin: 4px 0 !important;
    }

    .btn-detail-bookmark:active {
        background: #fef08a !important;
        transform: scale(0.98);
    }

    /* 共通：虫眼鏡アイコンの文字被り完全解除 */
    #wrapper #content #mainContent .bookmarkEntry h4,
    .bookmarkEntry h4 {
        background: none !important;
        text-indent: 0 !important;
        font-size: 15px !important;
        line-height: 1.5 !important;
        color: #2563eb !important;
        margin: 0 0 10px 0 !important;
        letter-spacing: normal !important;
    }

    #wrapper #content #mainContent .bookmarkEntry h4 a,
    .bookmarkEntry h4 a {
        color: #2563eb !important;
        text-decoration: none !important;
        font-weight: bold !important;
        display: inline-block !important;
    }

    .schoolTit {
        text-indent: 0 !important;
        margin: 0 0 8px 0 !important;
        font-size: 13px !important;
        color: #475569 !important;
        font-weight: 600 !important;
    }

    /* スマホ専用：チップ＆アコーディオン条件検索UI */
    .homeEntry03 .homeFormBox table,
    .homeEntry03 .homeFormBox .note,
    .homeEntry03 .homeFormBox .btnBox,
    .narrowingFormBox table,
    .narrowingFormBox .btnBox {
        display: none !important;
    }

    .sp-filter-section {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .sp-filter-group {
        border: 1px solid #e2e8f0 !important;
        border-radius: 10px !important;
        margin-bottom: 10px !important;
        overflow: hidden !important;
        background: #ffffff !important;
    }

    .sp-filter-group summary {
        padding: 12px 14px !important;
        font-size: 14px !important;
        font-weight: bold !important;
        color: #1e293b !important;
        cursor: pointer !important;
        list-style: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        background: #f8fafc !important;
        border-bottom: 1px solid transparent !important;
        user-select: none !important;
        transition: background-color 0.2s ease !important;
    }

    .sp-filter-group[open] summary {
        border-bottom-color: #e2e8f0 !important;
        background: #f1f5f9 !important;
    }

    .sp-filter-group summary::-webkit-details-marker {
        display: none !important;
    }

    .sp-filter-group summary::after {
        content: "＋" !important;
        font-size: 14px !important;
        color: #2563eb !important;
        font-weight: bold !important;
    }

    .sp-filter-group[open] summary::after {
        content: "ー" !important;
    }

    /* チップグリッド */
    .sp-chip-grid {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px 10px !important;
        background: #ffffff !important;
    }

    /* チップアイテム（label） */
    .sp-chip-item {
        margin: 0 !important;
        padding: 0 !important;
        cursor: pointer !important;
        user-select: none !important;
        display: inline-flex !important;
    }

    .sp-chip-item input[type="checkbox"] {
        display: none !important;
    }

    /* チップボタンの外見 */
    .sp-chip-item span {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 8px 14px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        color: #334155 !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 20px !important;
        transition: all 0.15s ease !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
    }

    /* タップした時・選択中の状態（ハイライト） */
    .sp-chip-item input[type="checkbox"]:checked + span {
        background: #2563eb !important;
        border-color: #2563eb !important;
        color: #ffffff !important;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.3) !important;
    }

    .sp-chip-item input[type="checkbox"]:checked + span::before {
        content: "✓ " !important;
        font-weight: bold !important;
        margin-right: 2px !important;
    }

    .sp-chip-item:active span {
        transform: scale(0.96) !important;
    }

    /* 検索実行ボタン */
    .sp-filter-submit {
        margin: 18px 0 10px 0 !important;
        text-align: center !important;
    }

    .btn-sp-search-submit {
        width: 100% !important;
        max-width: 340px !important;
        height: 50px !important;
        background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
        color: #ffffff !important;
        font-size: 16px !important;
        font-weight: bold !important;
        border: none !important;
        border-radius: 25px !important;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
        cursor: pointer !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        letter-spacing: 0.5px !important;
        transition: all 0.2s ease !important;
    }

    .btn-sp-search-submit:active {
        transform: scale(0.98) !important;
        box-shadow: 0 2px 6px rgba(37, 99, 235, 0.4) !important;
    }

    /* 全ページ共通：サイドバー (#rightContent) ・バナー・最近チェックした求人の最適化 */
    #wrapper #content #rightContent,
    #rightContent {
        width: 100% !important;
        float: none !important;
        margin: 25px 0 0 0 !important;
        padding: 0 !important;
        clear: both !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        box-sizing: border-box !important;
    }

    #rightContent img[src*="regBgHd"],
    #rightContent img[src*="regBgFt"] {
        display: none !important;
    }

    #wrapper #content #crJobGet,
    #crJobGet {
        width: 100% !important;
        max-width: 280px !important;
        background: none !important;
        margin: 10px auto !important;
        padding: 0 !important;
        text-align: center !important;
    }

    .crReg img {
        margin: 0 auto !important;
        width: auto !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    #rightContent h3 {
        width: 100% !important;
        max-width: 340px !important;
        margin: 15px auto 8px auto !important;
        text-align: left !important;
    }

    #rightContent h3 img {
        width: auto !important;
        max-width: 200px !important;
        height: auto !important;
        display: block !important;
        margin: 0 !important;
    }

    #wrapper #content .crInfo,
    .crInfo {
        width: 100% !important;
        max-width: 340px !important;
        box-sizing: border-box !important;
        padding: 12px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        margin: 0 auto 20px auto !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
        text-align: left !important;
    }

    .crInfo a {
        display: flex !important;
        align-items: flex-start !important;
        gap: 12px !important;
        text-decoration: none !important;
        margin-bottom: 8px !important;
    }

    .crInfo img.img {
        width: 80px !important;
        min-width: 80px !important;
        height: 80px !important;
        object-fit: cover !important;
        border-radius: 8px !important;
        margin: 0 !important;
        display: block !important;
    }

    #wrapper #content .crInfo p.item,
    .crInfo p.item {
        width: auto !important;
        flex: 1 !important;
        margin: 0 0 12px 0 !important;
        padding: 0 0 10px 0 !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
        color: #1e293b !important;
        border-bottom: 1px dashed #e2e8f0 !important;
    }

    .crInfo p:last-child {
        margin-bottom: 0 !important;
        border-bottom: none !important;
    }

    #rightContent > a,
    #rightContent a {
        display: block !important;
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto 12px auto !important;
        text-align: center !important;
    }

    #rightContent > a > img,
    #rightContent a img {
        width: auto !important;
        max-width: 280px !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        border-radius: 8px !important;
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06) !important;
    }

    #rightContent br {
        display: none !important;
    }
}

/* PC表示ではスマホ専用フィルターを非表示 */
.sp-filter-section {
    display: none;

    /* 外部リンクバナーのスマホ2列グリッド化 */
    .side-banner-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 15px auto !important;
        box-sizing: border-box !important;
    }

    .side-banner-grid a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 4px !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    .side-banner-grid img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 44px !important;
        object-fit: contain !important;
        margin: 0 !important;
        border-radius: 4px !important;
        box-shadow: none !important;
    }

    .side-banner-grid br {
        display: none !important;
    }
}
