/* CuelNext 求人情報サイト カスタムスタイル */

/* 全体のスタイル */
body {
    font-family: "Helvetica Neue", "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    line-height: 1.7;
    background-color: #f8f9fa;
}

/* =================================
   キーカラー定義
   ================================= */
:root {
    --primary-color: #013366;
    --secondary-color: #495057;
    --text-color: #212529;
    --light-gray: #e9ecef;
}

/* =================================
   ヘッダー
   ================================= */
header.site-header {
    background-color: #fff;
    border-bottom: 1px solid var(--light-gray);
    padding: 1rem 0;
}
header.site-header .site-title {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.8rem;
}

/* =================================
   ヒーローセクション
   ================================= */
.hero-section {
    position: relative;
    width: 100%;
    line-height: 0;
}
.hero-section .hero-image {
    width: 100%;
    height: auto;
    vertical-align: top;
}

/* =================================
   求人カード
   ================================= */
.job-card {
    background-color: #fff;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.job-card .card-img-top {
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    transition: transform 0.3s ease;
}

.job-card:hover .card-img-top {
    transform: scale(1.05);
}
.job-card-image-link {
    overflow: hidden;
    display: block;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.job-card .card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.job-card .card-title {
    color: var(--primary-color);
    font-weight: 600;
}
.job-card .card-subtitle {
    color: var(--secondary-color);
}
.job-card .job-info .info-item i {
    color: var(--primary-color);
    margin-right: 8px;
}
.job-card .card-footer {
    background-color: transparent;
    border-top: 1px solid var(--light-gray);
}

/* =================================
   求人詳細ページ
   ================================= */
.job-detail-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.job-detail-header {
    background: var(--primary-color);
    color: white;
    padding: 2.2rem 1.8rem 1.2rem 1.8rem;
}

.job-detail-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.3) 100%);
}

.job-detail-header h1 {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    text-align: left;
    padding-left: 1rem;
    padding-top: 0.3rem;
}

.job-detail-header h2 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    text-align: left;
    padding-left: 1rem;
    padding-top: 0.2rem;
}

.job-number-display {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.job-number-display:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.job-number-display .job-number-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    margin-right: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.job-number-display .copy-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.job-number-display .copy-icon {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}

.job-meta {
    margin-top: 0.8rem;
    padding-left: 1rem;
    padding-bottom: 0.5rem;
}

.job-meta .badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    margin-right: 0.8rem;
    margin-bottom: 0.4rem;
    border-radius: 15px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    line-height: 1.1;
}

.job-meta .badge i {
    margin-right: 0.2rem;
    font-size: 0.7rem;
}

.job-image-container {
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    margin: 0 1.5rem 2.5rem 1.5rem;
}
.job-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.job-details {
    padding: 0 1.5rem 2.5rem 1.5rem;
}

.job-details section {
    margin-bottom: 2.5rem;
    padding: 2.5rem;
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    position: relative;
}

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

.job-details section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.job-details section h3::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--primary-color);
}

.job-details section p {
    color: var(--text-color);
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 0;
}

.job-details .list-unstyled li {
    padding: 1rem 0;
    border-bottom: 1px solid #f8f9fa;
    position: relative;
    padding-left: 2rem;
    line-height: 1.6;
}

.job-details .list-unstyled li::before {
    content: '•';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2rem;
    position: absolute;
    left: 0;
    top: 1rem;
}

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

/* =================================
   求人詳細ページ (デザイン改修版)
   ================================= */
.job-detail-card {
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.job-detail-header {
    background: var(--primary-color);
    color: white;
    padding: 2.2rem 1.8rem 1.2rem 1.8rem;
}

.job-number-display .job-number-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white !important;
    border: none;
    margin-right: 0.8rem;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    display: inline-block;
}
.job-detail-header h1 {
    color: white !important;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 0.4rem;
    text-align: left;
    padding-left: 1rem;
    padding-top: 0.3rem;
}
.job-detail-header h2 {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 400;
    font-size: 0.85rem;
    margin-bottom: 0.6rem;
    line-height: 1.2;
    text-align: left;
    padding-left: 1rem;
    padding-top: 0.2rem;
}
.job-number-copy-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 0.6rem 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
    backdrop-filter: blur(10px);
}
.job-number-copy-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}
.job-number-copy-btn .fa-copy {
    margin-right: 8px;
}
.job-number-copy-btn .copy-feedback {
    font-weight: bold;
}

.job-number-section {
    margin-top: 0.5rem;
    padding-right: 1rem;
    padding-top: 0.3rem;
}

.job-number-display {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 30px;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.job-number-display:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.job-number-display .job-number-badge {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    margin-right: 0.8rem;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
}

.job-number-display .copy-text {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.9rem;
    margin-left: 0.5rem;
}

.job-number-display .copy-icon {
    color: rgba(255, 255, 255, 0.8);
    margin-left: 0.5rem;
    font-size: 0.9rem;
}
.job-meta .badge {
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.job-detail-body {
    padding: 2.5rem;
}
.job-image-container {
    height: 350px;
    /* ... (他の画像スタイルは変更なし) ... */
}
.job-details section {
    margin-top: 2.5rem;
}
.job-details section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    position: relative;
    padding-left: 1.5rem;
}
.job-details section h3::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 3px;
}
.job-details section p, .job-details .list-unstyled li {
    color: var(--secondary-color);
    line-height: 1.8;
}
.job-details .list-unstyled { padding-left: 0; }
.job-details .list-unstyled li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
}
.job-details .list-unstyled li::before {
    content: '▪';
    color: var(--primary-color);
    position: absolute;
    left: 0;
}

/* 応募手順のスタイル */
.apply-steps {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid #e9ecef;
}

.apply-steps h5 {
    color: #000000 !important;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.step-list {
    color: var(--text-color);
}

.step-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.step-item:last-child {
    margin-bottom: 0;
}

.step-number {
    background: #00B900;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    margin-right: 0.8rem;
    flex-shrink: 0;
}

.step-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: var(--text-color);
}

/* 求人番号コピーボタン（応募セクション用） */
.job-number-copy-btn-large {
    background: #f8f9fa;
    border: 2px solid #00B900;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.job-number-copy-btn-large:hover {
    background: #00B900;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 176, 0, 0.2);
}

.job-number-copy-btn-large .copy-text {
    margin-left: 0.5rem;
}

/* =================================
   その他のお仕事セクション
   ================================= */
.other-jobs-section {
    background-color: #f8f9fa;
    padding: 3rem 0;
    margin-top: 3rem;
}

.other-jobs-section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 2rem;
}

/* スマホ用横スクロール */
@media (max-width: 768px) {
    .other-jobs-container {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    
    .other-jobs-container::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .other-jobs-container .row {
        flex-wrap: nowrap;
        width: max-content;
        margin: 0;
    }
    
    .other-jobs-container .col {
        flex: 0 0 280px;
        max-width: 280px;
        margin-right: 1rem;
    }
    
    .other-jobs-container .col:last-child {
        margin-right: 0;
    }
    
    .other-jobs-container .job-card {
        height: 100%;
        min-height: 320px;
    }
    
    /* スクロールインジケーター */
    .other-jobs-container::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 20px;
        background: linear-gradient(to right, transparent, rgba(248, 249, 250, 0.8));
        pointer-events: none;
        z-index: 1;
    }
    
    .other-jobs-container {
        position: relative;
        scroll-behavior: smooth;
    }
}

/* =================================
   応募セクション
   ================================= */
.apply-section {
    background: #ffffff;
    color: var(--text-color);
    border: 3px solid #00B900;
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 176, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.apply-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #00B900 0%, #009900 100%);
}

.apply-section h4 {
    color: #000000;
    font-weight: 700;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
}

.apply-section p {
    color: var(--secondary-color);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1rem;
}

.apply-section .btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    padding: 1.3rem 3rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    font-size: 1.2rem;
    position: relative;
    overflow: hidden;
}

.apply-section .btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.apply-section .btn-primary:hover::before {
    left: 100%;
}

.apply-section .btn-primary:hover {
    background-color: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

/* =================================
   ボタン
   ================================= */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-primary:hover, .btn-primary:focus {
    background-color: #012a52;
    border-color: #012a52;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(1, 51, 102, 0.3);
}

/* LINE応募ボタン専用スタイル */
.btn-line {
    background-color: #00B900;
    border-color: #00B900;
    color: white;
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 40px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 176, 0, 0.15);
    font-size: 1.1rem;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn-line:hover::before {
    left: 100%;
}

.btn-line:hover {
    background-color: #009900;
    border-color: #009900;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 176, 0, 0.2);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    transition: all 0.3s ease;
}
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* =================================
   フッター
   ================================= */
footer.site-footer {
    background-color: #fff;
    padding: 2rem 0;
    margin-top: 3rem;
    border-top: 1px solid var(--light-gray);
}

/* =================================
   求人番号バッジ
   ================================= */
.job-number-badge {
    display: inline-block;
    padding: 0.3em 0.7em;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
    color: var(--primary-color);
    background-color: #eef2f7;
    border-radius: 0.25rem;
}

/* =================================
   レスポンシブデザイン
   ================================= */
@media (max-width: 768px) {
    .site-header .btn-outline-primary {
        display: none;
    }
    .hero-section .hero-text {
        display: none !important;
    }
    .job-card {
        margin-bottom: 1.5rem;
    }
    
    /* スマホ版の余白調整 */
    .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    
    .job-detail-header {
        padding: 1.8rem 1.2rem 1rem 1.2rem;
        margin: -0.5rem -0.5rem 1.5rem -0.5rem;
    }
    
    .job-detail-header h1 {
        font-size: 1.3rem;
        margin-bottom: 0.3rem;
        padding-left: 0.8rem;
        padding-top: 0.2rem;
    }
    
    .job-detail-header h2 {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
        line-height: 1.1;
        padding-left: 0.8rem;
        padding-top: 0.1rem;
    }
    
    .job-number-display {
        padding: 0.5rem 1rem;
        font-size: 0.75rem;
    }
    
    .job-detail-body {
        padding: 1rem 0.5rem;
    }
    
    .job-meta {
        padding-left: 0.8rem;
        padding-bottom: 0.3rem;
    }
    
    .job-number-section {
        padding-right: 0.8rem;
        padding-top: 0.2rem;
    }
    
    .job-details {
        padding: 0 0.5rem 1.5rem 0.5rem;
    }
    
    .job-details section {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .job-details section h3 {
        font-size: 1.3rem;
    }
    
    .job-image-container {
        margin: 0 0.5rem 1.5rem 0.5rem;
        height: 280px;
    }
    
    .apply-section {
        padding: 1.5rem 1rem;
        margin-top: 1rem;
        border-radius: 16px;
        background: #ffffff;
        color: var(--text-color);
        border: 3px solid #00B900;
    }
    
    .apply-section h4 {
        font-size: 1.3rem;
        color: #000000;
    }
    
    .apply-section .btn-primary {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }
    
    /* スマホ版応募手順の調整 */
    .apply-steps {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .apply-steps h5 {
        color: #000000 !important;
        font-weight: 600;
        margin-bottom: 1rem;
        font-size: 1rem;
    }
    
    .step-item {
        margin-bottom: 0.6rem;
    }
    
    .step-number {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
        margin-right: 0.6rem;
    }
    
    .step-text {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    /* スマホ版求人番号コピーボタンの調整 */
    .job-number-copy-btn-large {
        padding: 0.8rem 1.2rem;
        font-size: 0.9rem;
    }
    
    .job-number-copy-btn-large .copy-text {
        margin-left: 0.3rem;
    }
    
    /* その他のお仕事セクションの余白調整 */
    .other-jobs-section {
        padding: 2rem 0;
        margin-top: 2rem;
    }
    
    .other-jobs-section .container {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}