/* recruit.css */

/* --- 共通カラー設定 --- */
.sub-title .jp-title.black { color: #333; }
.sub-title .title-line.black-line { background-color: #333; }
.sub-subtitle.black { color: #999; }
.gray-bg { background-color: #f9f9f9; padding: 80px 0; }

/* --- メッセージセクション --- */
.message-content {
    margin: 0 auto;
    width: 80%;
    color: azure;
}
.message-section { margin-bottom: 60px; }
.message-heading {
    font-size: 28px;
    line-height: 1.6;
    margin-bottom: 30px;
    letter-spacing: 0.05em;
}
.message-text {
    font-size: 16px;
    line-height: 2;
    margin-bottom: 30px;
    letter-spacing: 0.03em;
}

/* --- 働く環境（Culture） --- */
.culture-grid {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 0 20px;
}
.culture-item {
    background: #fff;
    padding: 40px 20px;
    flex: 1;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}
.culture-item:hover {
    transform: translateY(-5px);
}
.culture-icon {
    margin-bottom: 20px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.culture-icon i {
    font-size: 3.5rem;
    color: #333;
}
.culture-item h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: bold;
}
.culture-item p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

/* --- スタッフブログ（リスト形式） --- */
.recruit-blog-list {
    max-width: 800px;
    margin: 60px auto 40px;
    padding: 0 20px;
}

.recruit-blog-item {
    display: flex;
    gap: 25px;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    align-items: center;
}

.recruit-blog-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateX(5px);
}

.recruit-blog-thumb {
    width: 150px;
    height: 100px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 4px;
    background: #eee;
}

.recruit-blog-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.recruit-blog-item:hover .recruit-blog-thumb img {
    transform: scale(1.1);
}

.recruit-blog-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.recruit-blog-title {
    font-size: 1.1rem;
    line-height: 1.5;
    margin: 0 0 10px;
    font-weight: 500;
}

.recruit-blog-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.85rem;
    color: #888;
}

.cat-label {
    background: #000;
    color: #fff;
    padding: 2px 8px;
    font-size: 0.7rem;
    border-radius: 2px;
}

/* ボタンエリアのスタイル */
.btn-area { 
    margin-top: 40px;
    padding-top: 30px;
    text-align: center;
    border-top: 1px solid #e0e0e0;
    width: 100%;
}

.view-more-btn {
    display: inline-block;
    padding: 10px 50px;
    border: 1px solid #333;
    background: #fff;
    color: #333;
    text-decoration: none;
    transition: all 0.3s;
    font-family: "しっぽり明朝", serif;
}

.view-more-btn:hover {
    background: #333;
    color: #fff;
}

/* --- アコーディオン募集要項 --- */
.accordion-list {
    max-width: 1000px;
    margin: 0 auto 60px;
    border-top: 1px solid #ddd;
}

.accordion-item {
    border-bottom: 1px solid #ddd;
    background: #fff;
}

/* トリガー部分（開閉ボタン） */
.accordion-header {
    padding: 25px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s;
    position: relative;
}

.accordion-header:hover {
    background-color: #f9f9f9;
}

.header-content {
    flex: 1;
    padding-right: 20px;
}

.job-name {
    font-size: 1.3rem;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    align-items: center;
}

.job-name::before {
    content: "募集中";
    display: inline-block;
    background: #003A9B; /* コーポレートカラー */
    color: #fff;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
    margin-right: 10px;
    vertical-align: middle;
}

.job-catch {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}

/* アコーディオンアイコン (+ / -) */
.accordion-icon {
    width: 30px;
    height: 30px;
    position: relative;
    flex-shrink: 0;
}

.accordion-icon::before,
.accordion-icon::after {
    content: "";
    position: absolute;
    background-color: #333;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
}

.accordion-icon::before { width: 100%; height: 2px; } /* 横棒 */
.accordion-icon::after { width: 2px; height: 100%; } /* 縦棒 */

/* 開いている時のアイコン変化 */
.accordion-header.is-active .accordion-icon::after {
    transform: translate(-50%, -50%) rotate(90deg); /* 縦棒を回転させて横棒に重ねる（マイナスにする） */
}

/* アコーディオン中身 */
.accordion-content {
    display: none; /* JSで制御 */
    background-color: #fdfdfd;
    border-top: 1px solid #eee;
}

.accordion-inner {
    padding: 40px;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 詳細エリアのデザイン */
.job-description-area {
    margin-bottom: 40px;
}

.detail-head {
    font-size: 1.1rem;
    font-weight: bold;
    border-left: 5px solid #003A9B;
    padding-left: 15px;
    margin-bottom: 15px;
    color: #333;
}

.detail-text, .detail-list {
    margin-bottom: 30px;
    line-height: 1.8;
    color: #444;
}

.detail-list {
    list-style: disc;
    padding-left: 20px;
}

.point-box {
    background: #eef4ff;
    border: 1px solid #d0e0ff;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

/* テーブルスタイル（タウンワーク風） */
.recruit-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin-bottom: 30px;
    font-size: 0.95rem;
}

.recruit-table th, .recruit-table td {
    border: 1px solid #ddd;
    padding: 15px 20px;
    line-height: 1.6;
    vertical-align: top;
}

.recruit-table th {
    background: #f7f7f7;
    width: 25%;
    color: #333;
    font-weight: bold;
}

.recruit-table td {
    background: #fff;
    color: #333;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.check-list li::before {
    content: "✔";
    color: #003A9B;
    margin-right: 5px;
}

.note {
    font-size: 0.85rem;
    color: #666;
    display: block;
    margin-top: 5px;
}

/* --- 応募ボタンエリア（各アコーディオン内） --- */
.entry-btn-area {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px dashed #ddd;
}

.entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #FF5722; /* 応募＝オレンジ系で目立たせる */
    color: #fff;
    padding: 15px 50px;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(255, 87, 34, 0.3);
    transition: all 0.3s ease;
}

.entry-btn:hover {
    background: #e64a19;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 87, 34, 0.4);
}

/* --- 全体応募ボタンエリア（下部） --- */
.global-entry-cta {
    margin: 60px auto 0;
    padding: 50px 20px;
    background-color: #f5f5f5;
    text-align: center;
    border-radius: 8px;
    max-width: 1000px;
}

.global-entry-text {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.8;
    color: #333;
}

.global-entry-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background-color: #003A9B; /* 全体ボタンはコーポレートカラー */
    color: #fff;
    text-decoration: none;
    padding: 18px 60px;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 58, 155, 0.2);
}

.global-entry-btn:hover {
    background-color: #002a70;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 58, 155, 0.3);
}

/* =========================================
   レスポンシブ対応 (SP: max-width 767px)
   ========================================= */
   @media screen and (max-width: 767px) {
    /* --- レイアウト調整 --- */
    .requirements-container { 
        padding: 0 15px; /* コンテナ自体の余白 */
    }
    
    .margin { margin: 0 !important; }

    /* アコーディオンヘッダー */
    .accordion-header {
        padding: 20px 15px; /* 横幅確保のため余白微調整 */
    }
    .job-name {
        font-size: 1.1rem;
        flex-direction: column;
        align-items: flex-start;
    }
    .job-name::before {
        margin-bottom: 8px;
    }
    .accordion-icon {
        width: 20px;
        height: 20px;
    }

    /* アコーディオン中身（詳細エリア） */
    .accordion-inner {
        padding: 20px 10px; /* ★重要: 内部余白を減らしてコンテンツ幅を確保 */
    }

    /* --- テーブルのはみ出し防止対策 --- */
    .recruit-table,
    .recruit-table tbody,
    .recruit-table tr {
        display: block; /* テーブル要素をブロック要素化 */
        width: 100%;
    }

    .recruit-table th, 
    .recruit-table td {
        display: block;
        width: 100%;
        box-sizing: border-box; /* paddingを幅に含める */
        border-bottom: none;
        word-break: break-word;   /* 長い単語を折り返す */
        overflow-wrap: break-word; /* 画面幅に合わせて改行 */
    }

    .recruit-table th {
        background: #eee;
        border-bottom: 1px solid #ddd;
        padding: 10px 15px;
        margin-top: 0;
    }

    .recruit-table td {
        border-top: none;
        padding: 15px 15px 30px; /* 下に余白を持たせて区切りを明確に */
        border-bottom: 1px solid #ddd; /* 項目の区切り線 */
    }
    
    /* 最後の行のボーダー処理 */
    .recruit-table tr:last-child td {
        border-bottom: 1px solid #ddd;
    }

    /* ボタン類 */
    .entry-btn, .global-entry-btn {
        width: 100%;
        box-sizing: border-box;
        font-size: 1rem;
        padding: 15px 10px;
    }
    .global-entry-cta {
        padding: 40px 15px;
    }
    
    /* その他既存のSP調整 */
    .sub-side-title {
        position: static !important;
        transform: none !important;
        width: 100%;
        height: auto;
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        font-size: 2rem;
        writing-mode: horizontal-tb;
        color: #fff !important;
        letter-spacing: 0.1em;
    }
    .culture-grid { flex-direction: column; }
    .recruit-blog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .recruit-blog-thumb {
        width: 100%;
        height: 180px;
    }
    .message-content { width: 90%; }
    .message-heading { font-size: 20px; }
    .sp-only { display: block; }
}

@media screen and (min-width: 768px) {
    .sp-only { display: none; }
}


/* =========================================
   デスクトップ表示 (PC) の調整
   ========================================= */
@media screen and (min-width: 768px) {
    /* ★追加: PCでもRECRUITが見切れないように位置調整 */
    body .sub-side-title {
        right: 60px; /* 20px -> 60px に変更 */
        z-index: 10;
    }
}


/* =========================================
   レスポンシブ対応 (SP)
   ========================================= */
@media screen and (max-width: 767px) {
    /* ★修正: スマホでのタイトル位置と色調整 */
    .sub-side-title {
        position: static !important;
        transform: none !important;
        width: 100%;
        height: auto;
        text-align: center;
        margin-top: 20px;
        padding-top: 20px;
        font-size: 2rem;
        writing-mode: horizontal-tb;
        color: #fff !important; /* ★修正: 背景が黒なので白文字に変更 */
        letter-spacing: 0.1em;
    }

    .culture-grid { flex-direction: column; }
    
    .recruit-blog-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .recruit-blog-thumb {
        width: 100%;
        height: 180px;
    }
    .margin {
        margin: 0 !important;
    }

    .message-heading {
        font-size: 20px;
    }
    
    .message-content { width: 90%; }
    .requirements-container { padding: 0 15px; }
    .requirements-table th, .requirements-table td {
        display: block; width: 100%;
    }
    .requirements-table th {
        border-bottom: none; padding-bottom: 10px; background: transparent; font-weight: bold;
    }
    .requirements-table td { padding-top: 0; }
    .indeed-button { padding: 15px 30px; font-size: 1rem; width: 100%; box-sizing: border-box; }
    .sp-only { display: block; }
}
@media screen and (min-width: 768px) {
    .sp-only { display: none; }
}