﻿/* Modern, Clean & Simple Design for Job Pages */
html {
    font-size: 15px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html,
body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* 全体のスタイル */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", Roboto, "Helvetica Neue", Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f9fa;
    color: #2c3e50;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ✅ コンテンツの幅を調整 */
.container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* ✅ 左右の余白を統一 */
    box-sizing: border-box;
}

/* ✅ レスポンシブ対応 */
@media (max-width: 768px) {
    .container {
        width: 100% !important;
        padding: 0 12px;
    }
}

/* タブレット～デスクトップ */
@media (min-width: 769px) {
    .container {
        width: 85%;
        /* 少し広めに */
    }
}

@media (min-width: 1024px) {
    .container {
        width: 80%;
    }
}

/* ヘッダー */
header {
    background: #ffffff;
    border-bottom: none;
    box-shadow: none;
    margin: 0;
    padding: 0;
}

header .logo {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
}

nav div {
    max-width: 1200px;
    width: 80% !important;
    margin: 0 auto;
}

.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e1e8ed !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
    padding: 10px 0 !important;
    margin: 0 !important;
}

.navbar.border-bottom {
    border-bottom: 1px solid #e1e8ed !important;
}

.navbar.box-shadow {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

/* ✅ レスポンシブ対応 */
@media (max-width: 768px) {
    nav div {
        width: 100% !important;
        padding: 0 20px !important;
    }
}

div ul {
    justify-content: end;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #2c3e50 !important;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    padding: 8px 16px;
    border-radius: 6px;
}

nav ul li a:hover {
    color: #4a90e2 !important;
    background: #f8f9fa;
}

.navbar-light .navbar-nav .nav-link {
    color: #2c3e50 !important;
}

.navbar-light .navbar-nav .nav-link:hover {
    color: #4a90e2 !important;
}

.navbar-brand {
    width: 40%;
    text-align: left;
    color: #2c3e50 !important;
    font-weight: 600 !important;
    font-size: 20px !important;
    transition: color 0.2s ease;
}

.navbar-brand:hover {
    color: #4a90e2 !important;
}

/* ヒーローセクション */
/* ✅ ヒーローセクション */
.hero {
    position: relative;
    background: url('../image/background-image.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 80px 20px;
    margin-top: 20px;
}

/* ✅ 背景を暗くするオーバーレイ */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    /* ✅ 透明度50%の黒オーバーレイ */
    z-index: 1;
}

/* ✅ ヒーローセクションのテキスト */
.hero .container {
    position: relative;
    z-index: 2;
    /* ✅ オーバーレイの上に表示 */
}

/* ✅ ヒーロー見出し */
.hero h2 {
    font-size: 36px;
    font-weight: bold;
    color: #fff;
    /* ✅ 文字色を白 */
    margin-bottom: 10px;
}

/* ✅ ヒーローのサブテキスト */
.hero p {
    font-size: 18px;
    color: #ddd;
    /* ✅ 少し薄めの白 */
    margin-bottom: 20px;
}

.hero-br {
    display: none;
}

/* ✅ レスポンシブ対応 */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 24px;
    }

    .hero-br {
        display: block;
    }
}

/* ✅ ボタン */
.btn-primary {
    background: #ff6600;
    color: white;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 20px;
    border-radius: 5px;
    position: relative;
    z-index: 2;
}

.btn-primary:hover {
    background: #cc5500;
}

/* 会社情報セクション */
.company-info {
    background: #ffffff;
    padding: 60px 20px;
    margin-top: 60px;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* ✅ コンテンツのレイアウト（PCでは左右に配置） */
.company-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* ✅ 会社概要のテキスト */
.company-text {
    flex: 1;
}

/* ✅ 会社概要の見出し */
.company-text h2 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 24px;
    font-weight: 600;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a90e2;
}

/* ✅ 会社情報リスト */
.company-details {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* ✅ 各項目（PC時は横並び） */
.company-details li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    font-size: 15px;
    color: #2c3e50;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f5;
}

.company-details li:last-child {
    border-bottom: none;
}

/* ✅ アイコン */
.company-details .icon {
    font-size: 20px;
    color: #007BFF;
    flex-shrink: 0;
    /* ✅ アイコンのサイズを固定 */
}

/* ✅ ラベル（PC時は横並び） */
.company-details .label {
    font-weight: 600;
    color: #6c757d;
    min-width: 120px;
    font-size: 15px;
}

/* ✅ 値（PC時は横並び） */
.company-details .value {
    flex: 1;
    color: #2c3e50;
    font-size: 15px;
    line-height: 1.6;
}

/* ✅ スマホ対応 */
@media (max-width: 768px) {
    .company-info {
        padding: 40px 12px;
    }

    .company-details li {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .company-details .icon {
        margin-right: 5px;
    }

    .company-details .label {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #007BFF;
        font-weight: bold;
    }
}




/* 求人一覧 */
.job-list-container {
    width: 80%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    /* ✅ 左右の余白を統一 */
    box-sizing: border-box;
}

.job-list {
    padding: 50px 20px;
    background: #f9f9f9;
}

/* ✅ 求人カードのコンテナ（横並びにする） */
.job-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 80%;
    margin: 0 auto;
}

/* ✅ 求人がない場合のメッセージ */
.no-jobs-message {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    margin: 20px 0;
}

.no-jobs-message p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* ✅ 求人カード */
.job-card {
    position: relative;
    background: #fff;
    padding: 24px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 100%;
    text-align: left;
    border: 1px solid #e1e8ed;
    transition: all 0.2s ease;
    display: flex;
    align-items: stretch;
    gap: 20px;
    min-height: 150px;
}

/* ✅ ホバー時のエフェクト */
.job-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-color: #4a90e2;
    transform: translateY(-2px);
}

/* ✅ 最終更新日をひっそり表示（右下に配置） */
.job-updated-date {
    position: absolute;
    bottom: 12px;
    right: 16px;
    font-size: 12px;
    color: #95a5a6;
    font-weight: 400;
}


/* ✅ 求人カードのレイアウト */
.job-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

/* ✅ 求人情報（左側） */
.job-details {
    flex-grow: 1;
}

/* ✅ 求人タイトル */
.job-title {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
    line-height: 1.5;
}

/* ✅ 求人情報リスト */
.job-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ✅ 求人情報アイテム */
.job-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #555;
}

/* ✅ アイコン */
.job-info-item .icon {
    font-size: 18px;
    color: #007BFF;
}

.job-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.job-info-label {
    min-width: 80px;
    width: 80px;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
    flex-shrink: 0;
}

.job-info-value {
    flex-grow: 1;
    color: #2c3e50;
    font-size: 14px;
}

/* 職種タグコンテナ */
.occupation-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 0;
    margin: -4px;
}

/* 職種タグ（職場の特徴と同じデザイン） */
.occupation-tag {
    background: #f8f9fa;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin: 4px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
    color: #495057;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.occupation-tag:hover {
    background: #e9ecef;
    border-color: #4a90e2;
}

.occupation-tag p {
    margin: 0 !important;
}




/* ✅ 「詳細を見る」ボタン */
.btn-primary {
    display: inline-block;
    background: #4a90e2;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
    border: none;
}

.btn-primary:hover {
    background: #357abd;
    color: white;
}

/* ✅ スマホ・タブレット（幅が狭い場合は縦並びにする） */
@media (max-width: 768px) {
    .job-list-container {
        width: 100%;
        padding: 0 12px;
    }

    .job-list {
        padding: 30px 12px;
    }

    .job-card {
        margin: 0;
        border-radius: 8px;
    }

    .job-content {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 15px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .job-count-info {
        text-align: center;
    }
}


/* 謎のボタン */
.btn-secondary {
    background: #0056b3;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
}

/* ✅ フッター */
footer {
    background: #333;
    color: white !important;
    text-align: center;
    padding: 20px 0;
    margin-top: auto;
}

/* ✅ 求人詳細ページ専用フッター */
.job-page-footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    padding: 20px 20px;
    margin-top: 40px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.footer-section {
    text-align: left;
}

.footer-powered {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 8px;
    color: #e0e7ff;
}

.moteru-brand {
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-copyright {
    font-size: 13px;
    color: #cbd5e1;
    margin: 0;
    font-weight: 300;
}

.footer-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.footer-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-link:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ✅ スマホ対応 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .footer-section {
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }

    .footer-link {
        width: 100%;
        text-align: center;
    }
}

/* ✅ ページネーションのスタイル */
.pagination-container {
    display: flex;
    justify-content: space-between;
    /* ✅ 左右に配置 */
    align-items: center;
    margin-top: 20px;
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
}

/* ✅ レスポンシブ対応 */
@media (max-width: 768px) {
    .pagination-container {
        display: block;
        max-width: 100%;
        padding: 0 12px;
    }
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 10px 0;
}

.pagination ul {
    display: flex;
    padding: 0;
    list-style: none;
}

.pagination li {
    margin: 0 5px;
}

.pagination .page-link {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    color: #2c3e50;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    background-color: #f8f9fa;
    border-color: #4a90e2;
    color: #4a90e2;
}

.pagination .active .page-link {
    background-color: #4a90e2;
    border-color: #4a90e2;
    color: white;
    font-weight: 600;
}

.pagination .disabled .page-link {
    color: #95a5a6;
    pointer-events: none;
    border-color: #e1e8ed;
    background-color: #f8f9fa;
}

.icon {
    width: 24px;
    height: 24px;
}

/* ✅ フィルター全体 */
.filter-form {
    margin-bottom: 20px;
}

.filter-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid #e1e8ed;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

@media (max-width: 768px) {
    .filter-container {
        padding: 20px;
        gap: 16px;
    }
}

/* ✅ 各フィルターグループ */
.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group h3 {
    margin-bottom: 10px;
    font-size: 14px;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}

/* ✅ チェックボックスのカスタムデザイン */
.custom-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 10px;
    margin-bottom: 4px;
    font-size: 15px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.custom-checkbox:hover {
    background-color: #f8f9fa;
}

.custom-checkbox input {
    display: none;
}

.custom-checkbox .checkmark {
    width: 18px;
    height: 18px;
    background: #fff;
    border: 2px solid #cbd5e0;
    border-radius: 4px;
    display: inline-block;
    margin-right: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.custom-checkbox input:checked+.checkmark {
    background: #4a90e2;
    border-color: #4a90e2;
}

.custom-checkbox input:checked+.checkmark::after {
    content: "✔";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* ✅ 検索ボタン */
.filter-actions {
    text-align: center;
    width: 100%;
    margin-top: 16px;
}

.btn-search {
    background: #4a90e2;
    color: white;
    border: none;
    padding: 12px 40px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 600;
    min-width: 160px;
}

.btn-search:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

/* ✅ ドロップダウンボタン */
/* ✅ ドロップダウンのスタイル */
.dropdown {
    position: relative;
    display: inline-block;
    width: 100%;
}

.dropdown-toggle {
    width: 100%;
    padding: 12px 16px;
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.2s ease;
    position: relative;
    padding-right: 40px;
}

.dropdown-toggle::after {
    content: '▼';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: #6c757d;
    transition: transform 0.2s ease;
}

.dropdown-toggle:hover {
    border-color: #4a90e2;
    background: #ffffff;
}

.dropdown-toggle:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.dropdown-content {
    display: none;
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    padding: 12px;
    z-index: 100;
    max-height: 240px;
    overflow-y: auto;
    margin-top: 6px;
}

.dropdown-content::-webkit-scrollbar {
    width: 6px;
}

.dropdown-content::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* ✅ ドロップダウンが開いたときの表示 */
.dropdown-content.show {
    display: block;
}

/* ✅ 選択したフィルター（タグデザイン） */
.selected-filters {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-tag {
    background: #4a90e2;
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(74, 144, 226, 0.3);
}

.filter-tag .remove {
    margin-left: 8px;
    cursor: pointer;
    font-weight: bold;
    font-size: 16px;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.filter-tag .remove:hover {
    opacity: 1;
}

/*詳細ページ*/
/* ✅ ヘッダーの応募ボタンを固定 */
/* ✅ ヘッダーの修正 */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #007BFF;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    z-index: 1000;
    box-sizing: border-box;
    /* ✅ 余白調整 */
}

/* ✅ ヘッダーのボタン */
.fixed-header .btn-apply-header {
    background: white;
    color: #007BFF;
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    text-decoration: none;
    margin-left: auto;
    /* ✅ ヘッダー右端に配置 */
}

/* ✅ 求人情報のレイアウト調整 */
.job-detail {
    margin-top: 80px;
    /* ✅ ヘッダー固定分の高さを確保 */
    padding: 40px 20px;
    text-align: center;
}

/* ✅ 応募ボタン下部 */
.apply-footer {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    /* ✅ 中央配置 */
}

/* ✅ 応募ボタン */
.btn-apply-footer {
    background: #007BFF;
    color: white;
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    width: 200px;
    text-align: center;
}

/*応募フォーム*/
/* ✅ 応募ページ全体 */
.apply-page {
    background-color: #f8f9fa;
    min-height: 100vh;
    padding: 40px 0;
}

/* ✅ 応募フォーム全体 */
.apply-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.apply-title {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 2px solid #4a90e2;
}

@media (max-width: 768px) {
    .apply-page {
        padding: 20px 0;
    }

    .apply-container {
        padding: 0 12px;
    }

    .apply-title {
        font-size: 24px;
        margin-bottom: 24px;
    }
}

/* ✅ 求人情報のデザイン */
.job-details {
    background: #ffffff;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.job-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.job-meta p {
    font-size: 15px;
    color: #2c3e50;
    margin: 8px 0;
    line-height: 1.6;
    display: grid;
    grid-template-columns: 16px 80px 1fr;
    gap: 8px;
    align-items: start;
}

.job-meta i {
    color: #4a90e2;
    width: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

.job-meta strong {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .job-details {
        padding: 16px;
        margin-bottom: 24px;
    }

    .job-title {
        font-size: 18px;
        margin-bottom: 12px;
    }

    .job-meta p {
        font-size: 14px;
        margin: 6px 0;
    }

    .job-meta i {
        width: 14px;
    }
}

/* ✅ フォームコンテナ */
.form-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
    .form-container {
        padding: 20px;
    }
}

/* ✅ フォームグループ */
.apply-page .form-group {
    margin-bottom: 24px;
}

/* ✅ ラベルの必須マーク */
.required {
    color: #dc3545;
    font-size: 14px;
    margin-left: 4px;
}

/* ✅ フォームのラベル */
.apply-page .form-group label {
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
    color: #2c3e50;
    font-size: 15px;
}

/* ✅ 名前（姓・名、セイ・メイを横並びにしつつ横幅いっぱい） */
.apply-page .form-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.apply-page .form-group.full-width {
    flex: 1;
}

/* ✅ 入力フィールド */
.apply-page .form-control {
    width: 100%;
    padding: 12px 16px;
    margin-bottom: 8px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    background-color: #ffffff;
    font-size: 15px;
    color: #2c3e50;
    transition: all 0.2s ease;
}

.apply-page .form-control:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

.apply-page .form-control::placeholder {
    color: #9ca3af;
}

/* ✅ セレクトボックス */
.apply-page select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

/* ✅ ボタン */
.apply-page .btn-primary,
#confirmBtn {
    background: #4a90e2;
    color: white;
    padding: 14px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    display: block;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.apply-page .btn-primary:hover,
#confirmBtn:hover {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

.error-text {
    color: #dc3545 !important;
    font-weight: 500 !important;
    font-size: 13px;
    margin-top: 4px;
    display: block;
}

/* ✅ 生年月日選択エリア */
.dob-container {
    display: flex;
    gap: 12px;
}

/* ✅ 各セレクトボックス */
.dob-select {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    font-size: 15px;
    color: #2c3e50;
    background: white;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236c757d' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
    cursor: pointer;
}

.dob-select:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* ✅ スマホ対応 */
@media (max-width: 768px) {
    .dob-container {
        gap: 8px;
    }
}

/* ✅ ファイルアップロードエリア */
.optional-label {
    color: #6c757d;
    font-weight: 400;
    font-size: 14px;
}

.file-upload-area {
    margin-top: 8px;
}

.file-input {
    display: none;
}

.file-upload-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    border: 2px dashed #cbd5e0;
    border-radius: 8px;
    background: #f8f9fa;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.file-upload-label:hover {
    border-color: #4a90e2;
    background: #ffffff;
}

.file-upload-label i {
    font-size: 32px;
    color: #4a90e2;
    margin-bottom: 12px;
}

.file-upload-text {
    color: #2c3e50;
    font-size: 15px;
    font-weight: 500;
}

.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    margin-bottom: 8px;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.file-item-icon {
    color: #4a90e2;
    font-size: 20px;
}

.file-item-name {
    color: #2c3e50;
    font-size: 14px;
    font-weight: 500;
}

.file-item-size {
    color: #6c757d;
    font-size: 13px;
}

.file-item-remove {
    color: #dc3545;
    cursor: pointer;
    font-size: 20px;
    padding: 4px 8px;
    transition: opacity 0.2s ease;
}

.file-item-remove:hover {
    opacity: 0.7;
}

.file-upload-note {
    margin-top: 8px;
    color: #6c757d;
    font-size: 13px;
}

/* ✅ 確認画面コンテナ */
.confirmation-container {
    background: #ffffff;
    padding: 32px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.confirmation-container h3 {
    font-size: 24px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid #4a90e2;
}

@media (max-width: 768px) {
    .confirmation-container {
        padding: 20px;
    }
}

/* 確認画面のボタンエリア */
.confirmation-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

/* ✅ ボタンのデザイン統一 */
.confirmation-buttons button {
    flex: 1;
    padding: 14px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* ✅ 応募するボタン */
#submitApplication {
    background-color: #4a90e2;
    color: white;
}

#submitApplication:hover {
    background-color: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(74, 144, 226, 0.2);
}

/* ✅ 戻るボタン */
#backBtn {
    background-color: #ffffff;
    color: #2c3e50;
    border: 1px solid #e1e8ed;
}

#backBtn:hover {
    background-color: #f8f9fa;
    border-color: #cbd5e0;
}

/* ✅ チェックボックスとラベルを横並びに */
.privacy-policy {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 6px;
    margin-top: 8px;
}

.privacy-policy input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ✅ ラベルのフォントスタイル */
.privacy-policy label {
    font-size: 15px;
    font-weight: 500;
    color: #2c3e50;
    cursor: pointer;
    margin: 0;
    padding: 0;
    line-height: 1.2;
}

/* ✅ 必須マークのスタイル */
.privacy-policy .required {
    color: #dc3545;
    margin-left: 0;
    font-weight: 600;
}

/* ✅ 確認項目 */
.confirm-name {
    display: flex;
    padding: 16px 0;
    border-bottom: 1px solid #f1f3f5;
}

.confirm-name:last-child {
    border-bottom: none;
}

/* ✅ フィールド名のデザイン */
.confirm-name .label {
    font-weight: 600;
    color: #6c757d;
    min-width: 140px;
    font-size: 15px;
}

/* ✅ 値のデザイン */
.confirm-name .value {
    flex: 1;
    color: #2c3e50;
    font-size: 15px;
}

.hidden {
    display: none;
}

/* ✅ 成功メッセージ */
#success-section {
    background: #ffffff;
    padding: 48px 32px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    text-align: center;
}

#success-section h2 {
    font-size: 24px;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 16px;
}

#success-section p {
    font-size: 16px;
    color: #2c3e50;
    margin-bottom: 24px;
}

#returnBtn {
    max-width: 300px;
    margin: 0 auto;
}

/* ✅ 求人詳細ページ専用の CSS */
/* ✅ ヘッダー全体 */
.job-detail-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: #ffffff;
    color: #2c3e50;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid #e1e8ed;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

/* ✅ `job-detail-container` の padding に合わせる */
.job-detail-header-container {
    width: 80%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ✅ 最終更新日を右上に配置 */
.job-updated-date-detail {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 12px;
    /* ✅ 文字を小さく */
    color: #888;
    /* ✅ 控えめなグレー */
    font-weight: normal;
}

/* ✅ テキストエリア（JobTitle + 会社名） */
.job-header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    /* ✅ 左揃えにする */
}

/* ✅ JobTitle（目立たせる） */
.job-header-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #2c3e50;
}

/* ✅ 会社名（小さめに） */
.job-header-company {
    font-size: 14px;
    font-weight: 400;
    margin: 0;
    color: #6c757d;
}

/* ✅ 応募ボタン */
.job-detail-btn {
    background: #28a745;
    color: white;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
    text-align: center;
    border: none;
}

.job-detail-btn:hover {
    background: #218838;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
}

.nav-container {
    margin-top: 50px;
    width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .nav-container {
        width: 100%;
        padding: 0 12px;
    }
}

/* ✅ job-detail-container の余白調整 */
.job-detail-container {
    margin-top: 10px;
    position: relative;
    width: 80%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 32px;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

/* ✅ スマホ対応 */
@media (max-width: 768px) {
    .job-detail-header {
        height: 60px;
    }

    .job-detail-header-container {
        width: 95%;
        padding: 0 12px;
    }

    .job-header-title {
        font-size: 16px;
    }

    .job-header-company {
        font-size: 13px;
    }

    .job-detail-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: 100%;
    }

    .job-detail-container {
        margin-top: 20px;
        width: 100% !important;
        padding: 20px;
        border-radius: 0;
    }

    .job-header-text {
        display: none;
    }

    .job-detail-section {
        padding: 20px;
    }
}



/* ✅ キャッチコピー */
.job-detail-catchcopy {
    font-size: 20px;
    font-weight: 600;
    color: #2c3e50;
    text-align: left;
    padding: 0;
    margin-bottom: 16px;
    display: block;
    line-height: 1.6;
}


/* ✅ セクションスタイル */
.job-detail-section {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    padding: 24px;
    border-radius: 8px;
    margin: 20px 0;
}

/* ✅ 各セクションタイトル（h3）のデザインを強化 */
.job-detail-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a90e2;
    display: block;
}

.job-detail-section h3 i {
    margin-right: 8px;
    font-size: 18px;
    color: #4a90e2;
}

/* ✅ ボタン */
.job-detail-btn-primary {
    background: #28a745;
    color: white;
    padding: 14px 32px;
    font-weight: 500;
    text-decoration: none;
    font-size: 16px;
    border-radius: 6px;
    display: block;
    text-align: center;
    margin: 30px auto;
    max-width: 300px;
    transition: all 0.2s ease;
    border: none;
}

.job-detail-btn-primary:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.3);
}

/* ✅ 固定応募ボタン */
.job-detail-apply-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: #007bff;
    text-align: center;
    padding: 10px;
    z-index: 1000;
}

.job-detail-apply-header a {
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.job-detail-btn-secondary {
    background: #555;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
}

/* ✅ 求人一覧へ戻るボタン */
.job-detail-back {
    text-align: center;
    margin-top: 30px;
}

/* ✅ job-detail-info のスタイルを変更して独立させる */
.job-detail-info {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    padding: 24px;
    margin: 20px 0;
    border-radius: 8px;
}

.job-detail-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.job-detail-info p {
    font-size: 15px;
    line-height: 1.7;
    color: #2c3e50;
    margin-bottom: 8px;
}

.job-detail-info p strong {
    font-weight: 600;
    color: #2c3e50;
}

/* ✅ 福利厚生カード全体のレイアウト */
.job-benefits-list {
    display: flex;
    flex-wrap: wrap;
    /* ✅ 横並び + 折り返し */
    gap: 12px;
    /* ✅ カード間の間隔 */
    padding: 16px 0;
}

/* ✅ 各福利厚生のカードデザイン */
.job-benefit-card {
    background: #f8f9fa;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    margin: 4px;
    font-size: 13px;
    border-radius: 4px;
    border: 1px solid #e1e8ed;
    color: #495057;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.job-benefit-card:hover {
    background: #e9ecef;
    border-color: #4a90e2;
}

.job-benefit-card p {
    margin: 0 !important;
}

.breadcrumb {
    font-size: 13px;
    color: #6c757d;
    margin-bottom: 20px;
}

.breadcrumb a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #357abd;
    text-decoration: underline;
}


.catchcopy-band {
    background: #fff8e1;
    padding: 18px 22px;
    margin-top: 16px;
    margin-bottom: 28px;
    font-size: 16px;
    color: #f57c00;
    font-weight: 600;
    border: 2px solid #ffb74d;
    border-radius: 8px;
    line-height: 1.7;
    letter-spacing: 0.02em;
}

/* ✅ プライバシーポリシーページ */
.privacy-policy-container {
    width: 100%;
    max-width: 800px;
    margin: 20px auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.privacy-policy-container h2 {
    border-bottom: 2px solid #007BFF;
    padding-bottom: 5px;
    margin-bottom: 15px;
    font-size: 24px;
    color: #333;
}

.privacy-policy-container h3 {
    font-size: 20px;
    color: #0056b3;
    margin-top: 20px;
    margin-bottom: 10px;
}

.privacy-policy-container ul {
    list-style: disc;
    padding-left: 20px;
    margin-bottom: 15px;
}

.privacy-policy-container section {
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .privacy-policy-container {
        width: calc(100% - 24px);
        margin: 20px auto;
        padding: 20px;
        border-radius: 8px;
    }
}

/* ✅ 求人カード画像スタイル（右側配置、正方形） */
.job-card-image {
    flex-shrink: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

.job-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

/* ✅ カード全体リンク用スタイル */
.job-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.job-card-link:hover {
    text-decoration: none;
}

.job-card-link:hover .job-card-image img {
    transform: scale(1.05);
}

/* ✅ 画像スライドショースタイル */
.job-slideshow-container {
    position: relative;
    max-width: 100%;
    margin: 20px 0 30px 0;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 10;
}

.slide-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-btn.prev {
    left: 10px;
}

.slide-btn.next {
    right: 10px;
}

.slide-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.dot.active,
.dot:hover {
    background: rgba(255, 255, 255, 1);
}

/* デスクトップ版：アイコンを非表示 */
.mobile-only {
    display: none !important;
}

.desktop-only {
    display: inline;
}

/* PC版のラベルスタイル */
.job-info-label {
    min-width: 80px;
    width: 80px;
    font-weight: 600;
    color: #6c757d;
    font-size: 14px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    /* スマホ版：テキストを非表示、アイコンを表示 */
    .mobile-only {
        display: inline !important;
    }

    .desktop-only {
        display: none !important;
    }

    /* スマホ版：カードを縦並びレイアウトに */
    .job-card {
        flex-direction: column;
        padding: 16px;
        gap: 0;
        position: relative;
    }

    /* スマホ版：画像を勤務地の位置に配置 */
    .job-card-image {
        position: absolute;
        top: calc(16px + 1.5em + 4px); /* padding + タイトル半分 */
        right: 16px;
        width: 80px;
        height: 80px;
        z-index: 1;
    }

    /* スマホ版：コンテンツエリアを調整 */
    .job-content {
        padding-right: 0;
        width: 100%;
    }

    /* スマホ版：タイトルのスタイル */
    .job-title {
        font-size: 16px;
        margin-bottom: 8px;
        padding-right: 0;
    }

    /* スマホ版：情報行のレイアウト調整 */
    .job-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .job-info-row {
        display: flex;
        align-items: center;
        gap: 6px;
        margin-bottom: 0;
    }

    /* 勤務地と給与の行は画像分のスペースを確保 */
    .job-info-row[data-label="勤務地"],
    .job-info-row[data-label="給与"] {
        padding-right: 90px;
    }

    /* アイコンスタイル */
    .job-info-label {
        min-width: 18px;
        width: 18px;
        font-size: 16px;
        color: #4a90e2;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    .job-info-value {
        font-size: 14px;
        flex: 1;
        line-height: 1.4;
    }

    /* スマホ版：職種タグを小さく */
    .occupation-tag {
        padding: 3px 8px;
        font-size: 11px;
    }

    /* スマホ版：カード幅を100%に */
    .job-cards {
        max-width: 100%;
        padding: 0 12px;
    }

    /* 画像スライドショー用 */
    .slide-btn {
        font-size: 18px;
        padding: 8px 12px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }

    /* 最終更新日の調整 */
    .job-updated-date {
        font-size: 11px;
        margin-top: 8px;
    }
}