@charset "UTF-8";
/**
 * スポキャリ トップページ（top.html）専用レスポンシブスタイルシート
 * PC表示のレイアウトを維持しつつ、タブレット・スマホ表示（768px以下）を最適化します。
 */

/* PC表示（デフォルト）ではスマホ専用エリア検索を非表示 */
#spAreaSearch,
.sp-area-search {
    display: none;
}

@media screen and (max-width: 980px) {
    #content {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 15px !important;
    }
}

@media screen and (max-width: 768px) {
    /* 1. レイアウト解除 */
    #content {
        width: 100% !important;
        padding: 0 12px 40px 12px !important;
        box-sizing: border-box !important;
    }

    #contentHeader {
        display: none !important;
    }

    #leftContent {
        width: 100% !important;
        float: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    #rightContent {
        width: 100% !important;
        float: none !important;
        margin: 20px 0 0 0 !important;
        padding: 0 !important;
    }

    /* 2. メインビジュアル（左右見切れ完全防止） */
    #wrapper #content #leftContent .box,
    #leftContent .box,
    .box.mb10 {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
        border-radius: 8px !important;
        margin: 0 0 12px 0 !important;
        background: transparent !important;
    }

    #wrapper #content #leftContent .box img,
    #leftContent .box img,
    .box.mb10 img {
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
        margin: 0 auto !important;
        object-fit: contain !important;
    }

    /* 3. エリア検索（スマホ時は地図画像を非表示にし、スマホ専用UIを表示） */
    #mapSearch {
        display: none !important;
    }

    #spAreaSearch,
    .sp-area-search {
        display: block !important;
        width: 100% !important;
        margin: 15px 0 20px 0 !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .sp-area-header h3 {
        font-size: 16px !important;
        font-weight: bold !important;
        color: #0f172a !important;
        margin: 0 0 14px 0 !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid #2563eb !important;
    }

    /* 主要エリアクイックボタン */
    .sp-area-quick {
        margin-bottom: 16px !important;
    }

    .sp-area-quick .quick-title {
        font-size: 12px !important;
        font-weight: bold !important;
        color: #64748b !important;
        margin: 0 0 8px 0 !important;
    }

    .sp-area-quick .quick-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }

    .sp-area-quick .quick-tags a {
        flex: 1 1 calc(33.333% - 6px) !important;
        min-width: 80px !important;
        height: 38px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-decoration: none !important;
        border-radius: 8px !important;
        background: #f8fafc !important;
        color: #334155 !important;
        border: 1px solid #cbd5e1 !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .sp-area-quick .quick-tags a.tag-primary {
        background: #eff6ff !important;
        color: #1e40af !important;
        border-color: #93c5fd !important;
        font-weight: bold !important;
    }

    .sp-area-quick .quick-tags a:active {
        transform: scale(0.97);
        background: #e2e8f0 !important;
    }

    /* 地域別アコーディオン (details / summary) */
    .sp-area-accordion .accordion-title {
        font-size: 12px !important;
        font-weight: bold !important;
        color: #64748b !important;
        margin: 0 0 8px 0 !important;
    }

    .area-group {
        border: 1px solid #e2e8f0 !important;
        border-radius: 8px !important;
        margin-bottom: 8px !important;
        overflow: hidden !important;
        background: #f8fafc !important;
    }

    .area-group summary {
        padding: 10px 14px !important;
        font-size: 13px !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: #f1f5f9 !important;
        user-select: none !important;
    }

    .area-group summary::-webkit-details-marker {
        display: none !important;
    }

    .area-group summary::after {
        content: "＋" !important;
        font-size: 14px !important;
        color: #2563eb !important;
        font-weight: bold !important;
    }

    .area-group[open] summary::after {
        content: "ー" !important;
    }

    .area-links {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 10px !important;
        background: #ffffff !important;
    }

    .area-links a {
        flex: 1 1 calc(33.333% - 6px) !important;
        min-width: 75px !important;
        height: 36px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 12px !important;
        color: #475569 !important;
        text-decoration: none !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 6px !important;
        box-sizing: border-box !important;
    }

    .area-links a:active {
        background: #f1f5f9 !important;
        color: #2563eb !important;
    }

    /* 4. スポーツから探す・職種から探す (.search_link_wrap) - シンプル＆一覧性向上 */
    .search_link_wrap {
        width: 100% !important;
        margin-bottom: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 16px !important;
    }

    .search_link_wrap .container.fl,
    .search_link_wrap .container.fr {
        width: 100% !important;
        float: none !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        border-radius: 12px !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .search_link_wrap .container.fl::before {
        content: "⚽ スポーツから探す" !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #1e3a8a !important;
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
        border-bottom: 2px solid #3b82f6 !important;
    }

    .search_link_wrap .container.fr::before {
        content: "👔 仕事内容・職種から探す" !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #1e3a8a !important;
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
        border-bottom: 2px solid #3b82f6 !important;
    }

    /* スクロールを廃止して見やすい一覧グリッドに */
    .search_link_wrap .container .autobox {
        width: 100% !important;
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        padding: 0 !important;
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
    }

    .search_link_wrap .container p {
        flex: 1 1 calc(50% - 4px) !important;
        margin: 0 !important;
        border-radius: 8px !important;
        background: none !important;
        box-shadow: none !important;
    }

    .search_link_wrap .container p a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        padding: 8px 6px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-align: center !important;
        background: #eff6ff !important;
        border: 1px solid #bfdbfe !important;
        border-radius: 8px !important;
        color: #1e40af !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .search_link_wrap .container p a:active {
        background: #dbeafe !important;
        transform: scale(0.98);
    }

    /* 5. こだわり条件・雇用形態から探す (.homeEntry) - 画像2の重なり・青い線完全解消 */
    #wrapper #content #leftContent .homeEntry,
    .homeEntry {
        width: 100% !important;
        margin-bottom: 20px !important;
    }

    #wrapper #content #leftContent .homeEntry .box,
    .homeEntry .box {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 16px !important;
        margin: 0 !important;
    }

    #wrapper #content #leftContent .box .boxRight,
    #wrapper #content #leftContent .box .boxLeft,
    .homeEntry .boxRight,
    .homeEntry .boxLeft {
        width: 100% !important;
        height: auto !important;
        float: none !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        padding: 14px 12px !important;
        box-sizing: border-box !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .homeEntry .boxRight::before {
        content: "✨ こだわり条件から探す" !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #1e3a8a !important;
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
        border-bottom: 2px solid #3b82f6 !important;
    }

    .homeEntry .boxLeft::before {
        content: "📋 雇用形態から探す" !important;
        display: block !important;
        font-size: 15px !important;
        font-weight: bold !important;
        color: #1e3a8a !important;
        margin-bottom: 12px !important;
        padding-bottom: 6px !important;
        border-bottom: 2px solid #3b82f6 !important;
    }

    #wrapper #content #leftContent .homeEntry ul.kodawari,
    #wrapper #content #leftContent .homeEntry ul.koyou,
    .homeEntry ul.kodawari,
    .homeEntry ul.koyou {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        list-style: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    #wrapper #content #leftContent .homeEntry ul.kodawari li,
    #wrapper #content #leftContent .homeEntry ul.koyou li,
    .homeEntry ul.kodawari li,
    .homeEntry ul.koyou li {
        flex: 1 1 calc(50% - 4px) !important;
        width: calc(50% - 4px) !important;
        float: none !important;
        margin: 0 !important;
        background: none !important;
        text-indent: 0 !important;
    }

    .homeEntry ul.kodawari li a,
    .homeEntry ul.koyou li a {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 42px !important;
        padding: 8px 6px !important;
        background: #f8fafc !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-align: center !important;
        color: #334155 !important;
        text-decoration: none !important;
        box-sizing: border-box !important;
        transition: all 0.2s ease !important;
    }

    .homeEntry ul.kodawari li a:active,
    .homeEntry ul.koyou li a:active {
        background: #e2e8f0 !important;
        transform: scale(0.98);
    }

    /* 6. 条件からお仕事検索フォーム (.homeEntry03) - シンプルで整理されたUI */
    #wrapper #content #leftContent .homeEntry03,
    .homeEntry03 {
        width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 15px 0 20px 0 !important;
        padding: 0 !important;
        background: none !important;
        overflow: visible !important;
        clear: both !important;
    }

    .homeEntry03 .homeFormBox {
        width: 100% !important;
        padding: 16px 14px !important;
        box-sizing: border-box !important;
        background: #f8fafc !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
    }

    .homeEntry03 .homeFormBox::before {
        content: "🔍 条件を指定して検索する" !important;
        display: block !important;
        font-size: 16px !important;
        font-weight: bold !important;
        color: #0f172a !important;
        margin-bottom: 14px !important;
        padding-bottom: 8px !important;
        border-bottom: 2px solid #2563eb !important;
        text-align: left !important;
    }

    .homeEntry03 .homeFormBox table,
    .homeEntry03 .homeFormBox tbody,
    .homeEntry03 .homeFormBox tr {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 12px !important;
    }

    .homeEntry03 .homeFormBox td {
        width: 100% !important;
        float: none !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
    }

    .homeEntry03 .homeFormBox td img {
        height: 20px !important;
        width: auto !important;
        align-self: flex-start !important;
        margin: 0 !important;
    }

    .homeEntry03 .homeFormBox td select {
        width: 100% !important;
        max-width: 100% !important;
        height: 120px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 8px !important;
        font-size: 14px !important;
        padding: 6px 8px !important;
        box-sizing: border-box !important;
        background: #ffffff !important;
        color: #1e293b !important;
        line-height: 1.6 !important;
    }

    .homeEntry03 .homeFormBox .note {
        font-size: 11px !important;
        color: #64748b !important;
        margin: 8px 0 !important;
        text-align: left !important;
    }

    .homeEntry03 .homeFormBox .btnBox {
        margin-top: 14px !important;
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        align-items: center !important;
    }

    .homeEntry03 .homeFormBox .btnBox .txt img {
        width: 100% !important;
        max-width: 240px !important;
        height: auto !important;
    }

    .homeEntry03 .homeFormBox .btnBox input.btn {
        width: 100% !important;
        max-width: 300px !important;
        height: auto !important;
        cursor: pointer !important;
    }

    /* 7. お知らせ・スポキャリって何？の重なり防止・スマホ最適化 */
    #leftContent h2,
    #leftContent h2 img {
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        display: block !important;
        clear: both !important;
        margin-top: 15px !important;
    }

    #wrapper #content #leftContent #homeNewsBox,
    #homeNewsBox {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 10px 14px !important;
        margin: 0 0 16px 0 !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0 0 12px 12px !important;
        clear: both !important;
        overflow: visible !important;
    }

    #homeNewsBox table {
        width: 100% !important;
        margin: 0 !important;
    }

    #homeNewsBox table tr {
        display: flex !important;
        flex-direction: column !important;
        padding: 6px 0 !important;
        border-bottom: 1px solid #f1f5f9 !important;
    }

    #homeNewsBox table tr:last-child {
        border-bottom: none !important;
    }

    #homeNewsBox table th {
        font-size: 11px !important;
        color: #64748b !important;
        padding: 0 !important;
        background: none !important;
        text-indent: 0 !important;
    }

    #homeNewsBox table td {
        font-size: 13px !important;
        line-height: 1.4 !important;
        padding: 2px 0 0 0 !important;
    }

    #wrapper #content #leftContent #home_about,
    #home_about {
        width: 100% !important;
        height: auto !important;
        box-sizing: border-box !important;
        padding: 14px !important;
        margin: 0 0 16px 0 !important;
        background: #ffffff !important;
        border: 1px solid #e2e8f0 !important;
        border-radius: 0 0 12px 12px !important;
        font-size: 13px !important;
        line-height: 1.6 !important;
        color: #334155 !important;
        clear: both !important;
        overflow: visible !important;
    }

    #leftContent a img[name="kojin"] {
        width: auto !important;
        max-width: 260px !important;
        height: auto !important;
        margin: 15px auto !important;
        display: block !important;
        border-radius: 6px !important;
    }

    /* 8. サイドバー (#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;
    }

    /* PC用の仕切り画像を非表示 */
    #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;
    }

    /* 最近チェックした求人情報 & 注目の求人情報 (.crInfo) */
    #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;
    }
}
