.registration-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
    max-width: 800px;
    animation: slideUp 0.6s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-section {
    text-align: center;
    padding: 40px 40px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.registration-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.title-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 30px;
}

h1 {
    color: #2d3748;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
}

.title-icon {
    font-size: 28px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.subtitle {
    margin-top: 30px;
    color: #718096;
    font-size: 16px;
    line-height: 1.6;
}

.progress-bar {
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

.form-content {
    padding: 40px;
}

.form-section {
    margin-bottom: 40px;
    padding: 24px;
    background: #f8fafc;
    border-radius: 16px;
    border-left: 4px solid #3b82f6;
}

.section-title {
    color: #2d3748;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-icon {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
}

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

.form-group:last-child {
    margin-bottom: 0;
}

.form-label {
    display: block;
    color: #4a5568;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.required {
    color: #e53e3e;
    font-size: 12px;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    /* padding: 14px 16px; */
    padding: 14px 48px 14px 16px; /* 右側のpaddingを48pxに増加 */
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 16px;
    color: #2d3748;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

.form-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-input::placeholder {
    color: #a0aec0;
}

.input-group {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #718096;
    cursor: pointer;
    padding: 8px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #3b82f6;
}

.password-hint {
    color: #718096;
    font-size: 13px;
    margin-top: 4px;
    line-height: 1.4;
}

.error-message {
    color: #e53e3e;
    font-size: 14px;
    margin-top: 8px;
    padding: 8px 12px;
    background: #fed7d7;
    border-radius: 8px;
    animation: fadeIn 0.3s ease;
}

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

.terms-section {
    background: #fff5cd;
    border: 2px solid #f6e05e;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
}

.terms-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.terms-checkbox {
    width: 20px;
    height: 20px;
    accent-color: #3b82f6;
    margin-top: 2px;
}

.terms-label {
    color: #744210;
    font-size: 15px;
    line-height: 1.5;
    font-weight: 500;
}

.terms-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.terms-link:hover {
    text-decoration: underline;
}

.submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border: none;
    padding: 18px 24px;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    transform: none;
}

.submit-btn:not(:disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.submit-btn:not(:disabled):hover::before {
    left: 100%;
}

.submit-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(59, 130, 246, 0.3);
}

.divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 20px 0;
}

@media (max-width: 768px) {
    .registration-container {
        margin: 10px;
        border-radius: 16px;
    }
    
    .header-section,
    .form-content {
        padding: 24px;
    }

    .form-section {
        padding: 20px;
    }

    h1 {
        font-size: 24px;
    }

    .registration-icon {
        width: 70px;
        height: 70px;
        font-size: 28px;
    }

    .title-icon {
        font-size: 24px;
    }

}
.form-input select,
select.form-input {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center; /* デフォルトは right 0.75rem center */
    background-size: 16px 12px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}
/* メッセージ部分のCSS */
.message-section {
    margin-bottom: 15px;
    padding: 25px 0;
}

.message-section:not(:last-child) {
    border-bottom: 1px solid #e9ecef;
}

.message-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #212529;
    margin-bottom: 15px;
}

.message-content {
    font-size: 1em;
    line-height: 1.8;
    color: #495057;
    margin-bottom: 15px;
}

.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 500;
}

