/* --- 基本設定 --- */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    line-height: 1.8;
    color: #333;
    background-color: #f7f9fc;
}

a {
    color: #007bff;
    text-decoration: none;
    transition: opacity 0.3s;
}

a:hover {
    opacity: 0.7;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}


/* --- ヘッダー --- */
.header {
    background-color: #007bff;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    margin-bottom: 40px;
}

.header h1 {
    font-size: 28px;
    font-weight: bold;
}


/* --- メインコンテンツ --- */
main {
    padding-bottom: 60px;
}

h2 {
    font-size: 24px;
    font-weight: bold;
    color: #0056b3;
    text-align: center;
    margin-bottom: 30px;
}


/* --- 職種一覧カード --- */
.job-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    overflow: hidden; /* 角丸を維持するため */
    transition: box-shadow 0.3s;
}

.job-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.job-card-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* スマホ表示で折り返す */
}

.job-card-header h3 {
    font-size: 20px;
    font-weight: bold;
    color: #333;
    margin-left: 15px;
}

.job-card-body {
    padding: 25px;
}

.job-card-body p {
    margin-bottom: 20px;
}

/* 雇用形態タグ */
.employment-type {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: bold;
    color: #fff;
    border-radius: 4px;
    flex-shrink: 0; /* 縮まないようにする */
}
/* 正社員タグの色 */
.type-full-time {
    background-color: #28a745; /* 緑 */
}
/* 契約社員タグの色 */
.type-contract {
    background-color: #17a2b8; /* 青緑 */
}
/* 必要に応じて他の雇用形態も追加できます */
/*
.type-part-time {
    background-color: #ffc107; // 黄
}
*/

/* 詳細・応募ボタン */
.btn-details {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    padding: 12px;
    background-color: #007bff;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn-details:hover {
    background-color: #0056b3;
    color: #fff;
    opacity: 1;
}


/* --- フッター --- */
.footer {
    background-color: #343a40;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 14px;
}

/* --- 応募フォームのスタイル --- */
.application-form {
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.form-description {
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
}

/* 必須マーク */
.required::after {
    content: "必須";
    color: #fff;
    background-color: #dc3545;
    font-size: 12px;
    font-weight: normal;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 8px;
}

.form-caption {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

/* 入力フィールド共通スタイル */
input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box; /* paddingを含めてwidth 100%にする */
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.25);
}

textarea {
    resize: vertical; /* 縦方向のみリサイズ可能に */
}

/* ファイル選択ボタン */
input[type="file"] {
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 4px;
    width: 100%;
}

/* 個人情報の取り扱い */
.privacy-policy {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f7f7f7;
    padding: 20px;
    border-radius: 5px;
}
.privacy-policy input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}
.privacy-label {
    margin-bottom: 0;
    font-weight: normal;
}
.privacy-label a {
    text-decoration: underline;
    font-weight: bold;
}

/* 送信ボタン */
.form-submit {
    text-align: center;
    margin-top: 30px;
}

.btn-submit {
    display: inline-block;
    background-color: #28a745;
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    padding: 15px 40px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn-submit:hover {
    background-color: #218838;
}

/* --- 事業所概要 --- */
.office-overview {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px 30px;
    margin-bottom: 50px; /* 募集職種一覧との間隔 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e0e0e0;
}

.office-overview h2 {
    margin-bottom: 25px; /* 見出しとリストの間隔 */
}

.overview-list {
    display: grid;
    gap: 1px; /* ボーダー代わりに隙間を1pxあける */
    background-color: #e0e0e0; /* 隙間の色 */
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden; /* 角丸を維持 */
}

.overview-list dt,
.overview-list dd {
    margin: 0; /* ddのデフォルトマージンをリセット */
    padding: 12px 15px;
    background-color: #fff;
}

.overview-list dt {
    font-weight: bold;
    background-color: #f7f9fc;
}

/* --- PC表示 (769px以上) --- */
@media (min-width: 769px) {
    .overview-list {
        grid-template-columns: 150px 1fr; /* 項目名の幅を固定 */
    }
}


/* --- スマホ表示 (768px以下) --- */
@media (max-width: 768px) {
    .office-overview {
        padding: 20px;
    }

    .overview-list {
        grid-template-columns: 1fr; /* 1列にする */
    }

    .overview-list dt {
        border-bottom: 1px dashed #ccc;
    }
}