/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
}

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

/* Form Container */
.form-container {
    background-color: #fff;
    padding: 0;
}

/* Page Title */
.page-title {
    text-align: center;
    font-size: 32px;
    font-weight: bold;
    letter-spacing: 8px;
    color: #333;
    margin-bottom: 40px;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 0;
}

.step {
    display: flex;
    align-items: center;
    color: #999;
}

.step::after {
    content: "";
    display: inline-block;
    width: 40px;
    height: 1px;
    background-color: #ccc;
    margin: 0 20px;
}

.step:last-child::after {
    display: none;
}

.step.active .step-text {
    color: #333;
    font-weight: bold;
}

.step.completed .step-text {
    color: #999;
}

.step-text {
    font-size: 14px;
    white-space: nowrap;
}

/* Form Table Layout */
.form-table {
    width: 100%;
}

.form-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.form-row:first-child {
    border-top: 1px solid #eee;
}

.form-label {
    width: 200px;
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
    padding-top: 10px;
}

.form-label label {
    font-weight: bold;
    color: #333;
}

.form-input {
    flex: 1;
}

.required {
    background-color: #e74c3c;
    color: #fff;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 2px;
    margin-left: 10px;
    font-weight: normal;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 0;
    font-size: 14px;
    transition: border-color 0.3s;
    background-color: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #333;
}

textarea.form-control {
    min-height: 200px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
}

/* Error Messages */
.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 8px;
}

.has-error .form-control {
    border-color: #e74c3c;
    background-color: #fef5f5;
}

.error-list {
    background-color: #fef5f5;
    border: 1px solid #e74c3c;
    border-radius: 4px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.error-list h3 {
    color: #e74c3c;
    font-size: 14px;
    margin-bottom: 10px;
}

.error-list ul {
    list-style: none;
    color: #e74c3c;
}

.error-list li {
    margin-bottom: 5px;
}

/* Privacy Section */
.privacy-section {
    text-align: center;
    margin-top: 40px;
    padding-top: 30px;
}

.privacy-text {
    margin-bottom: 20px;
    font-size: 14px;
}

.privacy-link {
    color: #5bc0de;
    text-decoration: underline;
}

.privacy-link:hover {
    text-decoration: none;
}

.privacy-agree {
    display: inline-block;
}

.privacy-agree label {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
}

.privacy-agree input[type="checkbox"] {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

.privacy-agree .required {
    margin-left: 10px;
}

/* Buttons */
.btn-group {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.btn {
    display: inline-block;
    padding: 18px 60px;
    font-size: 16px;
    font-weight: normal;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background-color: #7ecdc0;
    color: #fff;
}

.btn-primary:hover {
    background-color: #6bb8ab;
}

.btn-back {
    background-color: #ccc;
    color: #fff;
}

.btn-back:hover {
    background-color: #bbb;
}

.btn-secondary {
    background-color: #666;
    color: #fff;
}

.btn-secondary:hover {
    background-color: #555;
}

/* Recruit Button (Coral/Pink Gradient) */
.btn-recruit {
    background: linear-gradient(135deg, #f5a9a9 0%, #eb8f8f 100%);
    color: #fff;
}

.btn-recruit:hover {
    background: linear-gradient(135deg, #eb8f8f 0%, #e07878 100%);
}

/* File Input */
.form-control-file {
    padding: 10px;
    border: 1px solid #ddd;
    background-color: #f9f9f9;
    width: 100%;
    font-size: 14px;
}

.file-note {
    font-size: 12px;
    color: #999;
    margin-top: 5px;
}

/* File Uploaded Display */
.file-uploaded {
    background-color: #e8f5e9;
    border: 1px solid #c8e6c9;
    border-radius: 4px;
    padding: 10px 15px;
    margin-bottom: 10px;
    font-size: 13px;
}

.file-uploaded-label {
    color: #2e7d32;
    font-weight: bold;
}

.file-uploaded-name {
    color: #333;
}

.file-uploaded-note {
    color: #666;
    font-size: 11px;
    display: block;
    margin-top: 5px;
}

/* Small Form Control */
.form-control-sm {
    width: auto;
    min-width: 80px;
}

/* Confirm Table */
.confirm-table {
    width: 100%;
}

.confirm-row {
    display: flex;
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.confirm-row:first-child {
    border-top: 1px solid #eee;
}

.confirm-label {
    width: 200px;
    flex-shrink: 0;
    font-weight: bold;
    color: #333;
}

.confirm-value {
    flex: 1;
    word-break: break-word;
}

/* Complete Page */
.complete-message {
    text-align: center;
    padding: 60px 20px;
}

.complete-message h2 {
    color: #333;
    font-size: 24px;
    margin-bottom: 30px;
}

.complete-message p {
    margin-bottom: 20px;
    line-height: 2;
    color: #666;
}

/* Form Section (for recruit form) */
.form-section {
    margin-bottom: 30px;
}

.form-section h2 {
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

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

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

/* Inline Form Elements */
.form-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.form-inline select {
    width: auto;
    min-width: 80px;
}

.form-inline input[type="text"] {
    width: auto;
}

/* Radio and Checkbox */
.radio-group,
.checkbox-group {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.radio-group label,
.checkbox-group label {
    display: flex;
    align-items: center;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input,
.checkbox-group input {
    margin-right: 5px;
}

/* Index Page */
.index-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
    padding: 40px 0;
}

.index-links .btn {
    width: 300px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }

    .page-title {
        font-size: 24px;
        letter-spacing: 4px;
    }

    .step-indicator {
        flex-direction: column;
        gap: 10px;
    }

    .step::after {
        display: none;
    }

    .form-row {
        flex-direction: column;
    }

    .form-label {
        width: 100%;
        margin-bottom: 8px;
        padding-top: 0;
    }

    .confirm-row {
        flex-direction: column;
    }

    .confirm-label {
        width: 100%;
        margin-bottom: 5px;
    }

    .btn-group {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }
}
