/* 自社求人応募フォームのスタイル */

body {
    font-family: "Hiragino Kaku Gothic ProN", "hiragino kaku gothic pro", "Hiragino Sans", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}

.main-header {
    border-bottom: none;
}

/* 全体背景 */
.recruitment-form-background {
    /* background-color: #f5f5f5; */
    min-height: calc(100vh - 120px);
    padding: 0 0 40px 0;
}

.recruitment-form-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

/* フォーム見出し */
.recruitment-form-header {
    background-color: white;
    color: #000;
    text-align: left;
    padding: 0;
    margin: 50px auto 28px auto;
    max-width: 1000px;
    display: flex;
    align-items: center;
}

.recruitment-form-header h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    padding: 16px 0 16px 0;
    letter-spacing: 0.01em;
    line-height: 1.4;
    white-space: nowrap;
}

.header-line {
    flex: 1;
    height: 1px;
    background-color: #333;
    margin-left: 20px;
    margin-bottom: 0;
}

/* セクション見出し */
.recruitment-section-header {
    background-color: #e8e8e8;
    padding: 16px 40px;
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #333;
    letter-spacing: 0.01em;
}

/* ポジション表示セクション */
.recruitment-position-section {
    margin: 0 0 0 0;
}

.recruitment-position-label {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #333;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.recruitment-position-value {
    font-size: 21px;
    color: #333;
    line-height: 1.6;
    padding: 16px 20px;
}

/* フォーム部分 */
.recruitment-form-container {
    background-color: white;
    padding: 0;
    border-radius: 0;
    margin: 0 auto;
    max-width: 1000px;
}

.recruitment-form-row {
    border-bottom: 1px solid #ddd;
    padding: 28px 0;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 80px;
}

.recruitment-form-container .recruitment-form-row:last-child {
    border-bottom: none;
}

.form-label-container {
    width: 268px;
    flex-shrink: 0;
    padding-left: 40px;
    padding-right: 17px;
    display: flex;
    align-items: center;
}

.form-input-container {
    flex: 1;
    padding-left: 0;
    padding-right: 0;
}

.form-required-label,
.form-optional-label {
    display: inline-block;
    padding: 5px 0;
    border-radius: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: white;
    margin-right: 12px;
    vertical-align: middle;
    width: 48px;
    text-align: center;
}

.form-required-label {
    background-color: #F45353;
}

.form-optional-label {
    background-color: #95a5a6;
}

.form-main-label {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    vertical-align: middle;
}

.form-description {
    display: block;
    font-size: 0.85rem;
    color: #666;
    font-weight: normal;
    margin-top: 5px;
}

/* 入力フィールド */
.recruitment-form-input {
    width: 100%;
    max-width: 100%;
    padding: 13px 0;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 0.9375rem;
    background-color: #fafafa;
    height: 46px;
    box-sizing: border-box;
}

.recruitment-form-input[type="text"],
.recruitment-form-input[type="email"] {
    padding-left: 16px;
    max-width: 100%;
    width: 350px;
}

.address-fields-row_value {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recruitment-form-input:focus {
    outline: none;
    border-color: #3498db;
    background-color: white;
}

.recruitment-form-select {
    width: 100%;
    max-width: 590px;
    padding: 12px 40px 12px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 0.9375rem;
    background-color: #fafafa;
    cursor: pointer;
    height: 46px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23333'%3e%3cpolygon points='12,16 6,8 18,8'%3e%3c/polygon%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 14px 14px;
}

.recruitment-form-textarea {
    width: 100%;
    max-width: 100%;
    min-height: 120px;
    padding: 13px 14px;
    border: 1px solid #d0d0d0;
    border-radius: 3px;
    font-size: 0.9375rem;
    background-color: #fafafa;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
    line-height: 1.5;
}

/* 名前フィールドの並び */
.name-fields-row {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 590px;
}

.name-fields-row .form-input-container {
    flex: 1;
    min-width: 150px;
    padding: 0;
}

/* ラジオボタン */
.recruitment-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.recruitment-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.recruitment-radio-item input[type="radio"] {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
    background-color: white;
}

.recruitment-radio-item input[type="radio"]:checked + .radio-custom {
    border-color: #3498db;
}

.recruitment-radio-item input[type="radio"]:checked + .radio-custom::after {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #3498db;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.radio-label {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.3;
}

/* ファイルアップロード */
.file-upload-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.file-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background-color: white;
    color: #007BFF;
    border: 1px solid #007BFF;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.file-upload-btn:hover {
    background-color: #f0f8ff;
    border-color: #0056b3;
    color: #0056b3;
}

.file-upload-btn svg {
    width: 16px;
    height: 20px;
    flex-shrink: 0;
}

.file-upload-name {
    font-size: 0.9rem;
    color: #666;
}

.file-upload-input {
    display: none;
}

/* 送信ボタンコンテナ */
.recruitment-submit-container {
    text-align: center;
    padding: 40px;
    /* background-color: #f5f5f5; */
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #333333;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: opacity 0.3s;
}

.back-link:hover {
    opacity: 0.7;
    color: #333333;
    text-decoration: none;
}

.back-link svg {
    flex-shrink: 0;
}

.recruitment-submit-btn {
    background-color: white;
    color: #333333;
    border: 1px solid #333333;
    padding: 24px 70px;
    font-size: 14px;
    font-weight: bold;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    width: 460px;
    text-align: center;
    position: relative;
}

.recruitment-submit-btn::after {
    content: '>';
    position: absolute;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    transition: color 0.3s;
}

.recruitment-submit-btn:hover {
    background-color: #d49142;
    color: white;
}

.recruitment-submit-btn:hover::after {
    color: white;
}

.recruitment-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    background-color: #d49142;
}

.recruitment-confirm-submit-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

/* エラーメッセージ */
.recruitment-error-container {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 6px;
    padding: 15px 20px;
    margin-bottom: 20px;
}

.recruitment-error-container ul {
    margin: 0;
    padding-left: 20px;
}

/* 確認画面のスタイル */
.confirm-value-text {
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.6;
}

.privacy-policy-text {
    font-size: 0.9375rem;
    color: #333;
    line-height: 1.6;
}

.privacy-policy-text a {
    color: #333;
    text-decoration: none;
}

.privacy-policy-text a:hover {
    text-decoration: underline;
}

.recruitments-complete h1 {
    font-size: 28px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .confirm-row {
        flex-direction: column;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .recruitment-form-content {
        max-width: 100%;
        padding: 0 15px;
    }

    .recruitment-form-header h1 {
        font-size: 1.5rem;
        letter-spacing: 0.5px;
    }

    .recruitment-section-header {
        padding: 15px 20px;
        font-size: 1rem;
    }

    /* .recruitment-position-section {
        padding: 15px 20px;
    } */

    .recruitment-form-row {
        flex-direction: column;
        padding: 20px 15px;
        align-items: stretch;
    }

    .form-label-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
        margin-bottom: 12px;
    }

    .form-input-container {
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }

    .recruitment-form-input,
    .recruitment-form-select,
    .recruitment-form-textarea {
        max-width: 100%;
    }

    .recruitment-form-select {
        padding: 12px;
    }

    .name-fields-row {
        flex-direction: column;
        gap: 15px;
        max-width: 100%;
    }

    .name-fields-row .form-input-container {
        width: 100%;
    }

    .recruitment-radio-group {
        flex-direction: column;
        gap: 10px;
    }

    .file-upload-container {
        flex-direction: column;
        align-items: flex-start;
    }

    .recruitment-submit-container {
        padding: 30px 20px;
    }

    .recruitment-submit-btn {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .recruitment-form-content {
        padding: 0 5px;
    }

    .recruitment-form-header h1 {
        font-size: 1.2rem;
        letter-spacing: 0.3px;
    }

    .recruitment-section-header {
        padding: 12px 15px;
        font-size: 0.95rem;
    }

    .recruitment-confirm-submit-container {
        flex-direction: column;
        gap: 15px;
        align-items: start;
    }
}
