/**
 * 求人情報カスタム投稿タイプ - 共通スタイルシート
 *
 * 教育転職ドットコム用の求人一覧（トップページ）および
 * 求人個別（詳細）ページに適用される洗練されたCSSスタイル。
 */

/* ===== CSSデザインシステム変数 ===== */
:root {
    --navy: #1a2744;
    --navy-light: #243660;
    --accent: #c8a96e;
    --accent-light: #e8d5a8;
    --bg: #f7f5f0;
    --white: #ffffff;
    --text: #2c2c2c;
    --text-muted: #6b6b6b;
    --border: #e0dbd0;
}

/* ===== 共通リセット＆ベースレイアウト ===== */
.job-page-wrap *,
.job-page-wrap *::before,
.job-page-wrap *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.job-page-wrap {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
}

/* ===== 共通フッター ===== */
.job-footer {
    text-align: center;
    padding: 32px 15px;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
}

/* ==========================================================================
   求人一覧・トップページ (page-job-top.php) スタイル
   ========================================================================== */

/* 求人トップページ、検索結果ページ、個別ページの上部余白をなくす */
#content[data-postid="21"],
#content[data-postid="63"],
#content:has(> .job-top-header),
#content:has(> .job-hero) {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 求人トップページ、検索結果ページ、個別ページのパンくずリストを非表示にする */
#breadcrumb:has(+ #content > .job-top-header),
#breadcrumb:has(+ #content > .job-hero),
#breadcrumb:has(+ #content[data-postid="21"]),
#breadcrumb:has(+ #content[data-postid="63"]) {
    display: none !important;
}

/* TOPヘッダー */
.job-top-header {
    background-image: url('https://kyouikutenshoku.com/job/wp-content/uploads/2026/06/header-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--text);
    padding: 48px 24px;
    position: relative;
    overflow: hidden;
    text-align: center;
    border-bottom: 1px solid var(--border);
    /* breakout styles to span full width */
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}

.job-top-header-inner {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.job-top-header-label {
    font-size: 12px;
    color: #ff662d;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
    font-weight: 600;
}

.job-top-header-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    color: #000000;
}

.job-top-header-sub {
    font-size: 14px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* 一覧メインコンテンツ */
.job-top-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 24px 0 24px;
}

/* おすすめピックアップ */
.job-pickup-panel {
    background: #fff;
    border-radius: 8px;
    padding: 28px 32px;
    margin-bottom: 32px;
    border: 1px solid var(--border);
}

.job-pickup-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid #009688;
    line-height: 1.3;
}

.job-pickup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.job-pickup-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid #dce3ea;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.job-pickup-tag:hover {
    background: #e3f0ff;
    border-color: #90caf9;
    color: #1565c0;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(33, 150, 243, 0.12);
}

.job-pickup-arrow {
    color: #009688;
    font-size: 12px;
    line-height: 1;
}

.job-pickup-tag:hover .job-pickup-arrow {
    color: #1565c0;
}

@media (max-width: 768px) {
    .job-pickup-panel {
        padding: 16px 12px;
    }

    .job-pickup-tags {
        gap: 8px;
    }

    .job-pickup-tag {
        padding: 8px 14px;
        font-size: 13px;
    }
}

/* おすすめピックアップ アーカイブ: 戻るリンク */
.job-pickup-back {
    margin-bottom: 24px;
}

.job-pickup-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #2196F3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.job-pickup-back-link:hover {
    color: #1565c0;
    text-decoration: underline;
}

/* フィルタボタン */
.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.filter-btn {
    display: inline-block;
    text-decoration: none;
    font-size: 12px;
    padding: 5px 16px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--white);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.15s;
    outline: none;
}

.filter-btn:hover,
.filter-btn.active {
    background: #009688;
    color: white;
    border-color: #009688;
}

.count {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

/* 求人カード */
.job-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px 24px;
    margin-bottom: 12px;
    text-decoration: none;
    color: inherit;
    display: block;
    transition: border-color 0.15s, transform 0.1s;
    overflow: hidden;
}

.job-card.newIcon {
    position: relative;
}

.job-card.newIcon::before {
    content: url(../img/icon_new.svg);
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    z-index: 10;
}

.job-card-flex {
    display: flex;
    gap: 20px;
}

.job-card-image {
    width: 200px;
    flex-shrink: 0;
    margin-top: -20px;
    margin-left: -24px;
    margin-bottom: -20px;
    border-radius: 6px 0 0 6px;
    overflow: hidden;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.job-card-content {
    flex-grow: 1;
    min-width: 0; /* for text truncation if needed */
}

@media (max-width: 768px) {
    .job-card-flex {
        flex-direction: column;
        gap: 16px;
    }
    
    .job-card-image {
        width: calc(100% + 24px);
        margin-top: -16px;
        margin-left: -12px;
        margin-right: -12px;
        margin-bottom: 0;
        height: 180px;
        border-radius: 6px 6px 0 0;
    }
}

.job-card:hover {
    border-color: var(--navy);
    transform: translateY(-1px);
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    gap: 12px;
}

.job-date {
    font-size: 14px !important;
    color: #F00069 !important;
    font-weight: 800 !important;
    margin-bottom: 5px !important;
}

.job-org {
    font-size: 16px !important;
    font-weight: 500 !important;
    color: var(--text) !important;
    margin-bottom: 8px !important;
    line-height: 1.25 !important;
}

.job-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ff662e !important;
    margin-bottom: 10px !important;
    line-height: 1.45 !important;
}

.badge {
    display: inline-block;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.badge-open {
    background: #009688;
    color: #ffffff;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.card-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.job-card-icon {
    color: #009688;
    flex-shrink: 0;
}

.salary {
    font-size: 14px;
    font-weight: 500;
    color: var(--navy);
}

.card-area {
    display: inline-block;
    font-size: 12px;
    color: #ffffff;
    background-color: #666666;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 700;
    margin-top: 4px;
}


/* ==========================================================================
   求人個別ページ (single-job_listing.php) スタイル
   ========================================================================== */

/* 詳細ページ Hero */
.job-hero {
    background-image: url('https://kyouikutenshoku.com/job/wp-content/uploads/2026/06/header-bg.webp');
    background-size: cover;
    background-position: center;
    color: var(--text);
    padding: 64px 24px 56px;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
    /* breakout styles to span full width */
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    box-sizing: border-box;
}

.job-hero::before {
    content: '求';
    position: absolute;
    right: -20px;
    top: -40px;
    font-family: 'Noto Serif JP', serif;
    font-size: 280px;
    color: rgba(26, 39, 68, 0.03);
    line-height: 1;
    pointer-events: none;
}

.job-hero-inner {
    max-width: 960px;
    margin: 0 auto;
    position: relative;
}

.job-hero-org {
    font-size: 13px;
    color: #009688;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    font-weight: 600;
}

.job-hero-org a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s;
}

.job-hero-org a:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.job-hero-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 24px;
    color: #333;
}

.job-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.job-badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 2px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.job-badge-open {
    background: #009688;
    color: #ffffff;
}

.job-badge-full {
    background: rgba(26, 39, 68, 0.05);
    color: var(--navy);
    border: 1px solid rgba(26, 39, 68, 0.2);
}

.job-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.job-stat {
    padding: 16px 20px;
    background: var(--white);
}

.job-stat-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.06em;
}

.job-stat-icon {
    color: #009688;
    flex-shrink: 0;
}

.job-stat-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--navy);
}

/* 応募ボタンコンテナ */
.job-apply-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 24px 0;
    display: flex;
    justify-content: center;
}

.job-apply-wrap .job-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    width: 100%;
    height: 54px;
    padding: 0;
    box-sizing: border-box;
}

.job-apply-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: #ff662d;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 999px;
    cursor: pointer;
    letter-spacing: 0.06em;
    box-shadow: 0 4px 14px rgba(0, 150, 136, 0.2);
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
}

.job-apply-btn:hover {
    background: #da5321;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.3);
}

.job-apply-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 150, 136, 0.15);
}

/* 詳細メインコンテンツ */
.job-main {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 0 64px;
}

.job-section {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 50px;
    margin-bottom: 16px;
}

.job-section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.job-section-num {
    width: 28px;
    height: 28px;
    background: #009688;
    color: white;
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 2px;
    flex-shrink: 0;
}

.job-section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #333;
}

/* 詳細内テキストエリア表示 */
.job-content-text {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.8;
    color: var(--text);
    white-space: normal;
}

.job-content-text a,
.job-cond-value a,
.job-info-value a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.2s;
}

.job-content-text a:hover,
.job-cond-value a:hover,
.job-info-value a:hover {
    color: var(--accent);
}

.job-item-list {
    list-style: none;
}

.job-item-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.job-item-list li:last-child {
    border-bottom: none;
}

.job-item-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
    margin-top: 9px;
    flex-shrink: 0;
}

/* 勤務条件グリッド */
.job-conditions-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.job-cond-item {
    background: var(--bg);
    border-radius: 3px;
    padding: 12px 14px;
    line-height: 1.8;
}

.job-cond-label {
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 4px;
    letter-spacing: 0.04em;
}

.job-cond-value {
    font-size: 13px;
    font-weight: 400;
    color: var(--text);
}

/* 企業プロフィール行 */
.job-info-row {
    display: flex;
    gap: 16px;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid var(--border);
}

.job-info-row:last-child {
    border-bottom: none;
}

.job-info-label {
    min-width: 100px;
    color: var(--text-muted);
    font-size: 13px;
    flex-shrink: 0;
}

.job-info-value {}

/* 各勤務条件の個別ブロック */
.job-detail-block {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.job-detail-block:last-child {
    border-bottom: none;
}

.job-detail-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.04em;
}

.job-detail-value {
    font-size: 14px;
    line-height: 1.8;
}

/* ===== 抽出されたインラインスタイル ===== */
.job-card-empty {
    text-align: center;
    padding: 40px 24px;
}

.job-footer-disclaimer {
    margin-bottom: 8px;
}

.job-apply-btn-bottom {
    margin-top: 8px;
}

/* 求めるスキル・タグ・Notice用スタイル */
.job-skill-group {
    margin-bottom: 20px;
}

.job-skill-group:last-child {
    margin-bottom: 0;
}

.job-skill-group-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.job-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    font-size: 13px;
    padding: 5px 12px;
    border-radius: 2px;
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--bg);
}

.job-tag-required {
    border-color: var(--navy);
    color: var(--navy);
    background: rgba(26, 39, 68, 0.05);
}

.job-notice {
    margin-top: 16px;
    padding: 12px 16px;
    background: #f0f7f0;
    border-left: 3px solid #4a9960;
    font-size: 13px;
    color: #2d6b3e;
    border-radius: 0 3px 3px 0;
    line-height: 2;
    font-weight: 400;
}

.job-paragraph {
    margin-bottom: 16px;
    line-height: 2;
    font-weight: 400;
}

.job-paragraph:last-child {
    margin-bottom: 0;
}

/* 「戻る」リンク・ボタン用スタイル */
.job-back-link {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.job-back-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

.job-back-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--navy);
    color: var(--navy);
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    border-radius: 3px;
    margin-top: 24px;
    letter-spacing: 0.06em;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}

.job-back-btn:hover {
    background: var(--navy);
    color: #ffffff;
    text-decoration: none;
}

/* 個別ページ下部アクションボタン (「応募する」ボタン中央、「一覧へ戻る」リンク左下配置) */
.job-action-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 32px;
    width: 100%;
}

.job-action-buttons .job-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: 360px;
    width: 100%;
    height: 54px;
    font-size: 15px;
    font-weight: 700;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    letter-spacing: 0.06em;
    border-radius: 999px;
}

.job-action-buttons .job-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 13px;
    text-decoration: none;
    margin: 24px 0 0 0;
    padding: 0;
    border: none;
    background: transparent;
    font-weight: 500;
    transition: color 0.2s;
    cursor: pointer;
    width: auto;
    max-width: none;
    height: auto;
    border-radius: 0;
    box-shadow: none;
}

.job-action-buttons .job-back-btn:hover {
    color: var(--navy);
    background: transparent;
    text-decoration: underline;
}


/* ==========================================================================
   メディアクエリ (レスポンシブ対応)
   ========================================================================== */
@media (max-width: 768px) {

    /* 左右の全体余白を半分（24px -> 12px）に削減して情報量を最大化 */
    .job-top-main {
        padding: 24px 12px 48px;
    }

    .job-main {
        padding: 0 12px 48px;
    }

    .job-hero {
        padding: 40px 12px 32px;
    }

    .job-apply-wrap {
        padding: 16px 12px;
    }

    .job-apply-wrap .job-apply-btn {
        max-width: 320px;
        width: 100%;
    }

    /* 各種パネル・カードの内部余白もスマホ向けにスリム化 */
    .job-section {
        padding: 20px 14px 16px;
    }

    .job-card {
        padding: 16px 12px;
    }

    .card-top {
        flex-direction: column;
    }

    .card-meta {
        gap: 10px;
    }

    .job-action-buttons {
        flex-direction: column;
        align-items: center;
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .job-action-buttons .job-apply-btn {
        max-width: 320px;
        width: 100%;
    }

    .job-action-buttons .job-back-btn {
        align-self: flex-start;
        width: auto;
        max-width: none;
        margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .job-hero-stats {
        grid-template-columns: 1fr;
    }

    .job-stat:last-child {
        grid-column: auto;
    }

    .job-conditions-grid {
        grid-template-columns: 1fr;
    }

    .job-info-row {
        flex-direction: column;
        gap: 4px;
    }

    .job-info-label {
        min-width: auto;
        font-weight: 500;
    }
}



/* ==========================================================================
   求人検索セクション (job-search-panel) スタイル
   ========================================================================== */
.job-search-panel {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px 32px 40px;
    margin-bottom: 32px;
    box-shadow: 0 4px 20px rgba(26, 39, 68, 0.03);
}

.job-search-title-wrap {
    text-align: center;
    margin-bottom: 28px;
}

.job-search-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 16px;
    letter-spacing: 0.1em;
}

.job-search-title::before,
.job-search-title::after {
    content: '';
    display: inline-block;
    width: 2px;
    height: 20px;
    background: #1e5b4f;
    /* 深緑色の境界線 */
}

/* 検索グリッド */
.job-search-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px 24px;
    margin-bottom: 24px;
}

.job-search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.job-search-field.field-keyword {
    grid-column: 1 / -1;
    /* キーワードは全幅に広げてゆったり入力できるようにする */
}

.job-search-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    letter-spacing: 0.05em;
}

.job-search-icon {
    color: #009688;
    flex-shrink: 0;
}

/* 極上のプルダウンセレクトボックス */
.job-select-wrap {
    position: relative;
    width: 100%;
}

.job-select {
    width: 100%;
    height: 48px;
    padding: 0 48px 0 16px;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.job-select:focus,
.job-select:hover {
    border-color: var(--accent);
}

.job-select-wrap::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    width: 44px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 300;
    color: var(--text-muted);
    border-left: 1px solid var(--border);
    pointer-events: none;
    transition: border-color 0.2s, color 0.2s, background-color 0.2s;
}

.job-select-wrap:hover::after {
    color: var(--accent);
    border-left-color: var(--accent);
}

/* キーワードテキスト入力 */
.job-input-text {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 14px;
    color: var(--text);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

.job-input-text:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(200, 169, 110, 0.12);
}

.job-input-text::placeholder {
    color: #b0a898;
}

/* こだわり条件アコーディオン */
/* アコーディオンとボタンの間隔調整 */

.job-accordion-toggle-btn {
    flex: 1;
    max-width: 360px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--white);
    /* 白背景 */
    color: #5c5850;
    border: 1px solid #cbc5b8;
    /* グレーの細枠線 */
    border-radius: 999px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s, border-color 0.2s, color 0.2s;
    outline: none;
}

.job-accordion-toggle-btn:hover {
    background: #faf9f6;
    color: #4a4740;
    border-color: #a8a193;
}

.job-accordion-toggle-btn::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 2px solid #5c5850;
    border-bottom: 2px solid #5c5850;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-bottom: 2px;
}

.job-accordion-toggle-btn.active::after {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.job-accordion-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease-out, margin-bottom 0.3s;
}

.job-accordion-content.open {
    max-height: 500px;
    opacity: 1;
    margin-bottom: 24px;
}

.job-accordion-content.open {
    max-height: 500px;
    opacity: 1;
    margin-top: 20px;
}

/* こだわり条件チェックボックス */
.job-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px 12px;
    background: var(--bg);
    padding: 20px;
    border-radius: 4px;
    border: 1px solid var(--border);
}

.job-checkbox-label {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    color: var(--text);
    user-select: none;
}

.job-checkbox {
    display: none;
    /* 標準チェックボックスを隠す */
}

.job-checkbox-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.job-checkbox-text::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: var(--white);
    transition: border-color 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.job-checkbox:checked+.job-checkbox-text::before {
    border-color: #1e5b4f;
    background-color: #1e5b4f;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.job-checkbox:checked+.job-checkbox-text {
    color: var(--navy);
    font-weight: 700;
}

/* 検索実行ボタン */
/* 検索実行ボタン & 横並びコンテナ */
.job-search-submit-wrap {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
    margin-top: 24px;
}

.job-search-submit-btn {
    flex: 1;
    max-width: 360px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff662d;
    /* オレンジ赤色 */
    color: white;
    border: none;
    border-radius: 999px;
    /* トグルボタンと同じ角丸 */
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 150, 136, 0.2);
    transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    outline: none;
    letter-spacing: 0.05em;
}

.job-search-submit-btn:hover {
    background: #da5321;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 150, 136, 0.3);
}

.job-search-submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0, 150, 136, 0.15);
}

.job-search-submit-btn:disabled,
.job-search-submit-btn.disabled {
    background: #cccac4 !important;
    /* 薄いグレー */
    color: #8c887e !important;
    /* 暗いグレー文字 */
    box-shadow: none !important;
    cursor: not-allowed !important;
    transform: none !important;
    pointer-events: none !important;
    /* スマホやブラウザでのクリック完全防止 */
}

/* スマホ表示対応 (レスポンシブ) */
@media (max-width: 768px) {
    .job-search-panel {
        padding: 20px 12px;
    }

    .job-search-grid {
        grid-template-columns: 1fr;
        /* スマホ時はすべて1カラムに */
        gap: 16px;
    }

    .job-features-grid {
        grid-template-columns: repeat(2, 1fr);
        /* こだわり条件は2列に */
        gap: 14px 10px;
        padding: 16px 12px;
    }

    .job-search-submit-wrap {
        flex-direction: column;
        /* スマホ時はボタンを縦に並べる */
        gap: 16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .job-accordion-toggle-btn,
    .job-search-submit-btn {
        max-width: 320px;
        width: 100%;
        margin: 0 auto;
        padding: 10px;
    }
}

/* ==========================================================================
   求人検索結果ページ (job-search-result) スタイル
   ========================================================================== */
.job-search-back {
    margin-bottom: 24px;
}

.job-search-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.job-search-back-link:hover {
    color: var(--accent);
}

.job-search-result-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
    margin-bottom: 32px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.job-search-result-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.4;
    margin: 0;
    border-left: 4px solid var(--mainC, #ff662e) !important;
    padding-left: 12px;
}

.job-search-result-header .count {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.job-search-back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: var(--white);
    color: #5c5850;
    border: 1px solid #cbc5b8;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.job-search-back-btn:hover {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(200, 169, 110, 0.2);
}

/* スマホ表示対応 (検索結果) */
@media (max-width: 768px) {
    .job-search-result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-bottom: 12px;
        margin-bottom: 24px;
    }

    .job-search-result-title {
        font-size: 20px;
    }

    .job-search-result-header .count {
        margin-bottom: 0;
    }
}

/* ================= 業種から探すセクション ================= */
.job-industry-section {
    margin-bottom: 48px;
}

.job-industry-section-title,
.job-keyword-section-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid #009688;
    line-height: 1.3;
}

.job-industry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.job-industry-card {
    position: relative;
    height: 140px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center -50px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.job-industry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.job-industry-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.45);
    transition: background 0.3s ease;
    z-index: 1;
}

.job-industry-card:hover .job-industry-card-overlay {
    background: rgba(0, 0, 0, 0.35);
}

.job-industry-card-text {
    position: relative;
    color: #ffffff;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 0 12px;
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 900px) {
    .job-industry-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .job-industry-grid {
        grid-template-columns: 1fr;
    }

    .job-industry-card {
        height: 80px;
        background-position: center -90px;
    }

    .job-industry-card-text {
        font-size: 14px;
    }
}

/* 検索ボタンの無効化（グレーアウト）スタイル */
.job-search-submit-btn:disabled,
.job-search-submit-btn.disabled {
    background-color: #a0a0a0 !important;
    background-image: none !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 0.7;
}

/* ===== 新規デザイン：教育業界の求人を探す ===== */
.custom-search-section {
    width: 100%;
    padding: 50px 0;
    background: no-repeat url(../img/form_back.png) center/cover;
}

.custom-search-section .job-page-wrap {
    background: transparent;
}

.custom-search-inner {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.custom-search-title-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;
    text-align: center;
    background-color: var(--mainC);
    /* #ff662e */
}

.custom-search-header-sub {
    font-size: 14px;
}

.custom-search-header-main {
    font-size: 21px;
    font-weight: 700;
    margin: 0;
}

.custom-search-box {
    padding: 32px;
    text-align: left;
}

.custom-field-freeword {
    margin-bottom: 24px;
}

.custom-field-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    text-align: left;
}

.custom-input-text {
    width: 100%;
    height: 52px;
    padding: 0 20px;
    font-size: 15px;
    font-weight: 700;
    color: #2c2c2c;
    background-color: var(--form-grayout);
    /* #f0f2f6 */
    border: none;
    border-radius: 5px;
    outline: none;
    transition: outline 0.2s;
}

.custom-input-text:focus {
    outline: solid 1px var(--subC);
    /* #d7af00 */
}

/* 3列並びのセレクト */
.custom-select-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.custom-select-wrap {
    position: relative;
    width: 100%;
}

.custom-select {
    width: 100%;
    height: 52px;
    padding: 0 40px 0 20px;
    font-size: 15px;
    font-weight: 700;
    color: #2c2c2c;
    background: var(--form-grayout);
    /* #f0f2f6 */
    border: none;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

/* カスタム矢印（オレンジの下矢印） */
.custom-select-wrap::after {
    content: '';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath fill='%23ff662e' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* こだわり条件選択ボックス */
.custom-features-box {
    border: 1px solid var(--subC);
    /* #d7af00 */
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.custom-features-header {
    background: var(--subC);
    /* #d7af00 */
    color: #ffffff;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    padding: 12px;
}

.custom-features-body {
    padding: 24px;
    background: #ffffff;
}

/* チェックボックスグリッド */
.custom-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 20px;
}

/* PC等、画面幅が広い場合、1行に最大5つ並べる */
@media (min-width: 900px) {
    .custom-features-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* PC/SP表示切り替え用こだわり条件 */
@media (min-width: 769px) {
    .sp-only-feature {
        display: none !important;
    }
}
@media (max-width: 768px) {
    .pc-only-feature {
        display: none !important;
    }
}

.custom-checkbox-label {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 700;
    height: 48px;
    line-height: 1.2;
    text-align: center;
    background-color: var(--form-grayout);
    /* #f0f2f6 */
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
    border: 1px solid transparent;
    padding: 0 4px;
}

.custom-checkbox-label input[type="checkbox"] {
    display: none;
    /* チェックボックス本体は非表示 */
}

/* チェック時のスタイル: :has(input:checked) */
.custom-checkbox-label:has(input[type="checkbox"]:checked) {
    background-color: var(--subC);
    /* #d7af00 */
    color: #ffffff;
}

.custom-checkbox-text {
    line-height: 1.2;
    text-align: center;
}

/* アコーディオン制御 */
.custom-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.custom-accordion-content.open {
    max-height: 300px;
    /* 十分な高さ */
    transition: max-height 0.3s ease-in;
}

.margin-top-12 {
    margin-top: 16px;
}

/* トグルボタン */
.custom-toggle-wrap {
    text-align: center;
    margin-top: 16px;
    border-top: 1px dashed #e5e5e5;
    padding-top: 16px;
}

.custom-toggle-btn {
    background: none;
    border: none;
    color: var(--subC);
    /* #d7af00 */
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    outline: none;
}

.custom-toggle-btn span {
    font-size: 10px;
    transition: transform 0.2s;
    display: inline-block;
}

.custom-toggle-btn.active span {
    transform: rotate(180deg);
}

/* 検索ボタン */
.custom-submit-wrap {
    text-align: center;
    margin: 0 0 40px 0;
}

.custom-search-btn {
    position: relative;
    background: var(--mainC);
    /* #ff662e */
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 9999px;
    /* 丸みのあるピル型 */
    width: 320px;
    height: 56px;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s, opacity 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 24px;
    /* 矢印スペース */
    outline: none;
}

.custom-search-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 22px;
    display: inline-block;
    height: 14px;
    aspect-ratio: 1/2;
    background: no-repeat url(../img/arrow_next.svg) center/contain;
    transform: translateY(-50%);
}

.custom-search-btn:hover {
    background: #e55320;
    box-shadow: 0 6px 20px rgba(255, 102, 46, 0.4);
}

.custom-search-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 102, 46, 0.2);
}

.custom-search-btn:disabled,
.custom-search-btn.disabled {
    background-color: #a0a0a0 !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 0.7;
}

/* スマホ対応 */
@media (max-width: 768px) {
    .custom-search-section {
        padding: 50px 0;
    }

    .custom-search-box {
        padding: 20px;
    }

    .custom-select-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .custom-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px 10px;
    }

    .custom-submit-wrap {
        padding: 0 20px;
    }

    .custom-search-btn {
        width: min(100%, 260px);
    }

    .custom-checkbox-label {
        font-size: 13px;
        height: 44px;
    }
}

/* ==========================================================================
   Custom Footer Styles (Matches TOP page design)
   ========================================================================== */
body {
    overflow-x: hidden !important;
}

.footer {
    background: #000 !important;
    padding: 20px 20px 35px !important;
    box-sizing: border-box !important;
    width: 100vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    margin-top: 80px !important; /* Spacing above footer on desktop */
    color: #fff !important;
    font-family: sans-serif;
}
.footer *, .footer *::before, .footer *::after {
    box-sizing: border-box !important;
}
.footer .nav__footer {
    margin-top: 35px !important;
}
.footer__inner {
    position: relative !important;
}
.go2top {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    width: 70px !important;
    height: 70px !important;
    border: 1px solid #fff !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}
.go2top:before {
    transform: rotate(315deg) !important;
    width: 8px !important;
    height: 8px !important;
    border-right: 1px solid #fff !important;
    border-top: 1px solid #fff !important;
    content: "" !important;
    display: block !important;
}

.sns__links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 30px !important;
    padding: 0 !important;
    list-style: none !important;
}
.sns__links__item {
    width: 36px !important;
    aspect-ratio: 1 !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.sns__links__item a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}
.sns__links__item img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Base styles for footer navigation menu on mobile (<= 680px) */
.footer .nav__menu {
    margin-top: 35px !important;
    padding: 0 !important;
    list-style: none !important;
}
.footer .nav__menu__item {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    text-align: left !important;
}
.footer .nav__menu__item:not(:last-of-type) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
}
.footer .nav__menu__item > a {
    display: block !important;
    padding-top: 18px !important;
    padding-bottom: 18px !important;
    color: #fff !important;
    text-decoration: none !important;
}
.footer .nav__menu__item__main {
    display: block !important;
    font-size: 15px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    letter-spacing: 0.05em !important;
    text-indent: 0.05em !important;
}
.nav__footer__logo img {
    width: 130px !important;
    display: inline-block !important;
}
.nav__footer__copy {
    margin-top: 22px !important;
    font: 400 10px 'Poppins', sans-serif !important;
    color: #fff !important;
    text-align: left !important;
}

@media print, screen and (max-width:680px) {
    .footer {
        margin-top: 40px !important; /* Spacing above footer on mobile */
    }
    .nav__footer__logo--pc,
    .nav__footer__info {
        display: none !important;
    }
    .nav__footer__logo--sp {
        display: block !important;
        text-align: left !important;
    }
}

@media print, screen and (min-width:681px) {
    .footer {
        padding: 90px 20px 40px !important;
    }
    .footer__inner {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        width: 1106px !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .footer .nav__menu {
        flex: 1 !important;
        display: flex !important;
        justify-content: flex-end !important;
        margin-top: 0 !important;
        gap: 0 !important;
    }
    .footer .nav__menu__item {
        text-align: center !important;
    }
    .footer .nav__menu__item:not(:last-of-type) {
        margin-right: 10px !important;
        padding-right: 10px !important;
        border-bottom: none !important;
    }
    .footer .nav__menu__item > a {
        padding: 0 !important;
    }
    .footer .nav__menu__item:not(:last-of-type) a {
        position: relative !important;
    }
    .footer .nav__menu__item:not(:last-of-type) a::after {
        position: absolute !important;
        right: -10px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        display: block !important;
        width: 1px !important;
        height: 100% !important;
        background: #fff !important;
        content: "" !important;
    }
    .footer .nav__menu__item__main {
        font-size: 14px !important;
        font-weight: 700 !important;
    }
    
    .footer .nav__footer {
        width: 100% !important;
        margin-top: 40px !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-direction: row !important;
    }
    .nav__footer__logo--pc {
        width: 139px !important;
        margin-right: 65px !important;
        display: block !important;
    }
    .nav__footer__logo--pc img {
        width: 100% !important;
        display: block !important;
    }
    .nav__footer__logo--sp {
        display: none !important;
    }
    .nav__footer__info {
        font-size: 14px !important;
        font-weight: 700 !important;
        line-height: 1.4 !important;
        letter-spacing: 0.05em !important;
        color: #fff !important;
        display: block !important;
    }
    .nav__footer__copy {
        text-align: center !important;
        margin-top: 0 !important;
    }
    
    .go2top {
        top: -20px !important;
        right: -100px !important;
    }
    .go2top:hover:before {
        animation: go2toparrow .45s 2 forwards !important;
    }
}

@keyframes go2toparrow {
    0% { }
    50% { transform: translateY(-3px) rotate(315deg); }
    100% { transform: translateY(0) rotate(315deg); }
}

/* Hide SWELL theme's default footer components and adjust parent spacing */
.l-footer,
#l-footer,
.l-footer__inner,
.p-footerScroll,
.p-footerCopyright,
.p-copyright,
.p-footerScroll__btn,
.p-footerBar,
#pagetop,
.p-fixBtnWrap,
.c-fixBtn,
.p-fixBtn {
    display: none !important;
}

.l-content,
#content,
.l-bodyWrap,
#body_wrap,
.l-main,
#main,
.l-main__inner,
.l-container,
.l-container_inner,
.l-inner,
body,
html {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}
