/* ========================================================= */
/* 採用情報固有のスタイル (css/recruit.css) */
/* ========================================================= */

/* 1. 採用トップメッセージ */
#recruit-message {
/* ★★ 背景画像の設定 ★★ */
    background-image: url('images/recruit_visual_main.jpg'); /* 生成した画像のパスを指定 */
    background-size: cover;
    background-position: left center; /* 初期位置を左端に設定 */
    background-repeat: no-repeat;/* 画像の繰り返しを禁止 */
    
    padding: 80px 0; /* 背景がしっかり見えるようにパディングを確保 */
    
    /* 任意: 画像が暗い場合にテキストを読みやすくするオーバーレイ */
    position: relative; /* ::before擬似要素のために必要 */
    color: #fff; /* テキストの色を白に */
    text-align: center; /* テキストを中央寄せ */
	overflow: hidden;
	position: relative; /* 既存の設定ですが、念のため確認 */
    z-index: 2; /* 他の要素より手前に配置し、::beforeが確実にこの要素内にとどまるようにする */

    /* ★★ 影を追加 ★★ */
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* テキストを読みやすくするための半透明のオーバーレイ */
#recruit-message::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2); /* 黒の半透明（40%） */
    z-index: 1;
}

/* テキストコンテンツをオーバーレイの上に表示 */
#recruit-message .inner-wrap {
    position: relative;
    z-index: 2; /* オーバーレイより上に表示 */
}

#recruit-message h1 {
    color: #fff; /* 背景が暗くなるのでタイトルも白に */
    margin-bottom: 20px;
    font-size: 32px; /* 少し大きめにする */
}

#recruit-message h2 {
    color: #fff; /* 背景が暗くなるのでタイトルも白に */
    margin-bottom: 20px;
    font-size: 28px; /* 少し大きめにする */
}

#recruit-message h4 {
    margin-top: 20px;
    font-size: 24px; /* 少し大きめにする */
	color: Green;
    text-shadow: 1px 1px 4px rgba(255, 255, 255, 0.7);
}

#recruit-message p {
    color: #fff; /* 背景が暗くなるので本文も白に */
    font-size: 18px; /* 少し大きめにする */
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* 2. 募集職種一覧エリア */
.job-opening-area {
    padding: 50px 0;
}

/* 職種エリアの背景を交互に変えて視覚的に分離 */
#recruit-cutsalon {
    background-color: #fff;
}
#recruit-homon {
    background-color: #e8f5e9; /* 福祉サービスの背景色 */
}

.job-title-h3 {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 30px;
}

/* --- 求人情報の表スタイル --- */
.job-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-collapse: collapse;
}

.job-table th, .job-table td {
    padding: 15px;
    border: 1px solid #ddd;
    font-size: 15px;
}

.job-table th {
    width: 25%;
    font-weight: 500;
    text-align: center;
    background-color: #fafafa;
}

/* CUTSALON専用のカラースタイル */
.cutsalon-table th {
    background-color: #333;
    color: #fff;
}

/* 訪問福祉専用のカラースタイル */
.homon-table th {
    background-color: #00796b;
    color: #fff;
}

/* --- 応募ボタン --- */
.btn-apply {
    display: block;
    width: 300px;
    margin: 0 auto;
    padding: 15px;
    text-align: center;
    font-size: 18px;
    font-weight: bold;
    border-radius: 6px;
    transition: opacity 0.3s;
}

/* サロン応募ボタン */
.btn-salon {
    background-color: #ff6f00; /* 目を引くオレンジ */
    color: #fff;
}
.btn-salon:hover {
    opacity: 0.85;
}

/* 福祉応募ボタン */
.btn-homon {
    background-color: #43a047; /* 信頼感のある緑 */
    color: #fff;
}
.btn-homon:hover {
    opacity: 0.85;
}

/* 3. 採用までの流れ */
#recruit-flow {
    background-color: #fff;
}

#recruit-flow h2 {
    color: #2a2a2a;
}

.flow-steps {
    display: flex;
    justify-content: space-between;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    gap: 20px;
}

.step-item {
    flex: 1;
    position: relative;
    padding: 20px 10px;
}

/* ステップ番号の円形デザイン */
.step-number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background-color: #00897b;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
}

.step-item h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

@media (max-width: 768px) {
    /* 共通設定 */

	#recruit-message {
		 background-size: auto 100%;      /* 高さを100%に固定し、幅は自動調整（横スクロールのために重要） */
		/* 👈 新規追加: アニメーションを適用 */
		animation: background-scroll 30s linear infinite alternate; /* 30秒かけて線形に往復（alternate）で無限に繰り返す */
	}
	/* 背景画像を横に移動させるアニメーションを定義 */
	@keyframes background-scroll {
	    0% {
	        /* アニメーション開始時: 背景画像の左端をコンテナの左端に合わせる */
	        background-position: left center;
	    }
	    100% {
	        /* アニメーション終了時: 背景画像を右端に移動させる */
	        /* 例: 画像の幅がコンテナの幅より20%分だけ大きいと仮定し、20%分右に移動 */
	        background-position: right center;
	    }
	}

    section {
        padding: 40px 0;
    }
    h2 {
        font-size: 24px;
    }
    .job-title-h3 {
        font-size: 22px;
    }

    /* 募集職種一覧エリアの調整 */
    .job-opening-area {
        padding: 30px 0;
    }

    /* 募集情報テーブルをリスト形式に変換 (テーブルレスポンシブ化) */
    #recruit-cutsalon .inner-wrap, #recruit-homon .inner-wrap {
        overflow-x: hidden; /* 横スクロールを無効化 */
        padding: 0 10px; /* 左右の余白を調整 */
    }

    .job-table {
        min-width: unset; /* 最小幅設定を解除 */
        border: none;
        margin-bottom: 30px; /* ボタンとの隙間を確保 */
    }
    
    /* thとtdをブロック要素にして縦並びにする */
    .job-table tbody, .job-table tr {
        display: block;
        width: 100%;
    }
    .job-table tr {
        margin-bottom: 1px; /* 各項目間に隙間を設ける */
        border: 1px solid #ddd; 
        border-radius: 0;
        overflow: hidden;
    }

    .job-table th {
        display: block; /* <th>を項目名としてブロック化 */
        width: 100%;
        text-align: left;
        padding: 10px 15px;
        border-bottom: 1px solid #ddd;
    }
    
    .job-table td {
        display: block; /* <td>を内容としてブロック化 */
        width: 100%;
        padding: 10px 15px;
        background-color: #fff; /* 内容の背景色を白に統一 */
        border: none;
        font-size: 14px;
    }
    
    /* CUTSALON専用のカラースタイル（thの背景を維持） */
    .cutsalon-table th {
        background-color: #333;
        color: #fff;
    }

    /* 訪問福祉専用のカラースタイル（thの背景を維持） */
    .homon-table th {
        background-color: #00796b;
        color: #fff;
    }
    
    /* 応募ボタン */
    .btn-apply {
        width: 90%;
        font-size: 16px;
    }

    /* 採用フロー */
    #recruit-flow .flow-steps {
        flex-direction: column;
        gap: 20px;
        text-align: left; /* テキストを左寄せに */
    }
    
    .step-item {
        padding: 15px 10px;
        border: 1px solid #ddd;
        border-radius: 4px;
        position: relative;
    }
    
    /* ステップ番号とタイトルの調整 */
    .step-number {
        display: inline-flex;
        margin: 0 10px 0 0;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }
    .step-item h4 {
        display: inline;
        font-size: 16px;
    }
    
    .step-item p {
        margin-top: 10px;
        font-size: 14px;
    }
}
