/* Job Detail Page Styles */

/* このページのみパンくずの margin-top をリセット（固定ヘッダー補正は不要のため） */
.page-breadcrumbs {
    margin-top: 0;
}

.job-detail-container {
    padding-top: 50px;
}

.job-detail-inner {
    max-width: 800px;
    margin: 0 auto;
}

.back-link-wrapper {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #8d6e63;
    text-decoration: none;
    font-size: 0.9rem;
    background: #fff;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #f9ebdf;
    transition: all 0.3s;
}

.back-link:hover {
    background: #fdfaf7;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.back-link i {
    margin-right: 8px;
    font-size: 0.7rem;
}

.job-detail-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.job-detail-image {
    border-radius: 20px 20px 0 0;
}

.job-detail-image img {
    width: 100%;
}

.job-detail-content {
    padding: 0.5rem;
}

.job-meta-header {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1rem;
    background: #fff;
    border-bottom: 1px solid #f0f0f0;
}

.job-period-label,
.job-id-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8f9fa;
    color: #666;
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 4px;
    border: 1px solid #eee;
    position: relative;
    /* ツールチップ用 */
}

.copy-btn {
    background: none;
    border: none;
    color: #8d6e63;
    cursor: pointer;
    padding: 0 4px;
    margin-left: 4px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.copy-btn:hover {
    color: #d4a373;
}

.copy-tooltip {
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
    z-index: 10;
}

.copy-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
}

.copy-tooltip.is-show {
    opacity: 1;
    visibility: visible;
}

.job-period-label i,
.job-id-label i {
    color: #999;
}

.line-direct-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #06c755;
    color: white !important;
    font-size: 0.85rem;
    font-weight: bold;
    padding: 0.4rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.2);
}

.line-direct-btn:hover {
    background: #05b34c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.line-direct-btn i {
    font-size: 1.1rem;
}

.job-tag-wrapper {
    margin-bottom: 1.5rem;
}

.job-tag-lg {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.job-detail-title {
    font-size: 1.0rem;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    color: #2c3e50;
    padding: 1.0rem;
}

.job-info-box {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: #fffcf8;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #f9ebdf;
}

.job-info-label {
    font-size: 0.9rem;
    color: #8d6e63;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.job-info-value {
    font-size: 1.1rem;
}

.job-detail-section {
    margin-bottom: 2rem;
}

.job-section-title {
    font-size: 1.4rem;
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

.job-section-text {
    white-space: pre-wrap;
    line-height: 1.8;
}

.job-description-text {
    background: #fdfaf7;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    border-radius: 0 15px 15px 0;
    line-height: 1.8;
    color: #444;
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.recruiter-comment-box {
    margin-bottom: 4rem;
    padding: 1rem;
    border-radius: 20px;
    background: #fffdf5;
    border: 2px solid #f9ebdf;
    position: relative;
}

.recruiter-comment-inner {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    flex-wrap: wrap;
}

.recruiter-content {
    flex: 1;
    min-width: 250px;
}

.recruiter-title {
    font-size: 1.1rem;
    color: #8d6e63;
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recruiter-text-box {
    line-height: 1.8;
    color: #444;
    position: relative;
    padding: 1rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.recruiter-text {
    white-space: pre-wrap;
    margin: 0;
}

/* Apply Form Section */
.apply-section {
    margin-top: 4rem;
    padding-top: 3rem;
    border-top: 1px solid #eee;
}

.apply-title {
    font-size: 1.6rem;
    text-align: center;
    margin-bottom: 2rem;
    color: #2c3e50;
}

.apply-box {
    background: #fdfaf7;
    padding: 1rem;
    border-radius: 20px;
    border: 1px solid #f9ebdf;
}

.line-apply-area {
    text-align: center;
    margin-bottom: 2rem;
}

.line-apply-desc {
    margin-bottom: 1.5rem;
    color: #666;
}

.job-number-highlight {
    font-weight: bold;
    font-size: 1.1rem;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.line-apply-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #06c755;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    transition: all 0.3s;
}

.line-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.4);
}

.form-separator {
    position: relative;
    text-align: center;
    margin-bottom: 2rem;
}

.form-separator span {
    display: inline-block;
    background: #fdfaf7;
    padding: 0 1rem;
    position: relative;
    z-index: 1;
    color: #999;
    font-size: 0.9rem;
}

.form-separator div {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    border-top: 1px solid #e0e0e0;
}

.form-group-custom {
    margin-bottom: 1.5rem;
}

.form-label-custom {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: #555;
}

.required-mark {
    color: #e74c3c;
}

.form-input-custom {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.form-input-readonly {
    background-color: #f5f5f5;
}

/* アコーディオン */
.form-accordion {
    text-align: center;
    margin-bottom: 0;
}

.accordion-separator {
    margin-bottom: 1.5rem !important;
}

.form-accordion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #fff;
    color: #8d6e63;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid #f9ebdf;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.form-accordion-toggle:hover {
    background: #fdfaf7;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.form-accordion-toggle.is-active {
    background: #8d6e63;
    color: #fff;
    border-color: #8d6e63;
}

.form-accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out, opacity 0.4s ease;
    opacity: 0;
}

.form-accordion-content.is-open {
    max-height: 2000px;
    /* 十分な高さ */
    opacity: 1;
    margin-top: 1.5rem;
}

.submit-btn-area {
    text-align: center;
}

/* 関連求人セクション */
.related-jobs-section {
    margin-top: 5rem;
    padding-top: 3rem;
    border-top: 2px solid #f9ebdf;
}

.related-jobs-title {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    padding-bottom: 10px;
}

.related-jobs-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: #d4a373;
    border-radius: 2px;
}

.related-jobs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.related-job-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.related-job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #d4a373;
}

.related-job-header {
    display: flex;
    gap: 8px;
    margin-bottom: 1rem;
}

.related-job-type,
.related-job-employment {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

.related-job-type {
    background: #eef2f7;
    color: #3498db;
}

.related-job-employment {
    background: #fff0f0;
    color: #e74c3c;
}

.related-job-title {
    font-size: 1.1rem;
    line-height: 1.5;
    color: #333;
    font-weight: bold;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 3.3rem;
    /* 2 lines */
}

.related-job-info {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.related-job-info p {
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.related-job-info i {
    color: #999;
    width: 14px;
    text-align: center;
}

.related-job-salary i {
    color: #e67e22;
}

.related-job-hours i {
    color: #3498db;
}

.related-job-footer {
    border-top: 1px solid #f5f5f5;
    padding-top: 1rem;
    text-align: right;
}

.btn-view-detail {
    font-size: 0.85rem;
    color: #d4a373;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@media (max-width: 768px) {
    .related-jobs-grid {
        grid-template-columns: 1fr;
    }

    .related-jobs-section {
        margin-top: 3rem;
    }
}

.submit-btn-custom {
    padding: 1rem 4rem;
    font-size: 1.2rem;
    border-radius: 50px;
    box-shadow: 0 10px 20px rgba(212, 163, 115, 0.4);
}

/* ===========================
   LINE誘導 CTAセクション
=========================== */
.line-cta-section {
    margin-top: 4rem;
    padding: 2.5rem 1rem;
    border-top: 2px solid #f9ebdf;
}

/* 1カードラッパー */
.line-cta-single-card {
    background: #fffcf8;
    border: 2px solid #f9ebdf;
    border-radius: 20px;
    padding: 2rem 2rem 1.8rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* ヘッダー */
.line-cta-single-card__header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 1.5rem;
}

.line-cta-single-card__line-icon {
    font-size: 1.6rem;
    color: #06c755;
}

.line-cta-single-card__title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 0;
}

/* リスト */
.line-cta-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.line-cta-list__item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid #f0ebe3;
}

.line-cta-list__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.line-cta-list__icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    margin-top: 2px;
}

.line-cta-list__icon--orange {
    background: #fff0e6;
    color: #e67e22;
}

.line-cta-list__icon--blue {
    background: #eef2f7;
    color: #3498db;
}

.line-cta-list__icon--green {
    background: #e6f9ed;
    color: #06c755;
}

.line-cta-list__body {
    flex: 1;
}

.line-cta-list__body strong {
    display: block;
    font-size: 0.95rem;
    color: #2c3e50;
    margin-bottom: 0.3rem;
}

.line-cta-list__body p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.7;
    margin: 0 0 0.4rem;
}

.line-cta-list__note {
    display: block;
    font-size: 0.76rem;
    color: #aaa;
    line-height: 1.6;
}

/* ボタンエリア */
.line-cta-footer {
    text-align: center;
}

.line-cta-btn--main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #06c755;
    color: #fff !important;
    font-weight: bold;
    font-size: 1.1rem;
    padding: 0.9rem 3rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.35);
    transition: all 0.3s;
}

.line-cta-btn--main i {
    font-size: 1.4rem;
}

.line-cta-btn--main:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(6, 199, 85, 0.45);
    background: #05b34c;
}

@media (max-width: 600px) {
    .line-cta-section {
        margin-top: 3rem;
        padding: 2rem 0.5rem;
    }

    .line-cta-single-card {
        padding: 1.5rem 1.2rem;
    }

    .line-cta-btn--main {
        width: 100%;
        font-size: 1rem;
    }
}