/* ===========================================
   会員登録ページ（register.php）
=========================================== */
.register-block {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #4FAA00;
    padding-top: 50px;
    padding-bottom: 100px;
}

.register-container {
    width: 100%;
    max-width: 560px;
}

.register-box {
    width: 100%;
    margin: 50px auto;
    padding: 70px 100px;
    border-radius: 8px;
    background: #fff;
    border: 2px solid #E0E0E0;
}

.logo {
    text-align: center;
    margin-bottom: 20px;
}

.logo h1 {
    margin: 0 auto 10px;
    line-height: 1;
}

.logo p {
    color: #4FAA00;
    font-size: 22px;
    text-align: center;
    font-weight: 900;
}

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

.form-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #4FAA00;
    font-weight: bold;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 2px solid #E0E0E0;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #FAFAFA;
    color: #2C2C2C;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #4FAA00;
}

.form-hint {
    font-size: 12px;
    color: #FFC107;
    margin-top: 5px;
}

.error {
    background: #FFEBEE;
    color: #C62828;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid #E74C3C;
}

.certification {
    margin-bottom: 20px;
}

.success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 12px;
    border-radius: 4px;
    margin-bottom: 20px;
    border: 2px solid #4FAA00;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border: 2px solid transparent;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-primary {
    background: #4FAA00;
    color: white;
    border-color: #4FAA00;
    margin-top: 30px;
}

.btn-primary:hover {
    background: #3D8800;
}

.btn-secondary {
    background: #666666;
    color: white;
    border-color: #666666;
}

.btn-secondary:hover {
    background: #4D4D4D;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.step-indicator {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
}

.step {
    width: 32%;
    height: 30px;
    background: #D6D6D6;
    color: #2C2C2C;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    font-size: 12px;
}

.step:first-child {
    border-radius: 50px 0 0 50px;
}

.step:last-child {
    border-radius: 0 50px 50px 0;
}

.step.active {
    background: #4FAA00;
    color: white;
}

.step.completed {
    background: #FFC107;
    color: #2C2C2C;
}

.step-line {
    position: absolute;
    width: 60px;
    height: 2px;
    background: #E0E0E0;
    left: 40px;
    top: 50%;
    transform: translateY(-50%);
}

.step.completed .step-line {
    background: #FFC107;
}

.code-input {
    font-size: 24px;
    text-align: center;
    letter-spacing: 8px;
    font-family: monospace;
}

.links {
    text-align: center;
    margin-top: 40px;
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}

.links a {
    color: #fff;
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

.resend-form {
    text-align: center;
    margin-top: 15px;
}

.resend-form button {
    background: none;
    border: none;
    color: #2196F3;
    cursor: pointer;
    text-decoration: underline;
    font-size: 14px;
}

/* モーダルウィンドウのスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #FEFEFE;
    margin: 5% auto;
    padding: 0;
    border: 2px solid #E0E0E0;
    width: 90%;
    max-width: 600px;
    border-radius: 8px;
}

.modal-header {
    padding: 20px;
    background-color: #FAFAFA;
    border-bottom: 2px solid #E0E0E0;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    color: #2C2C2C;
    font-size: 18px;
}

.modal-close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    font-weight: bold;
    line-height: 20px;
    color: #999999;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover,
.modal-close:focus {
    color: #2C2C2C;
}

.modal-body {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.terms-content {
    color: #2C2C2C;
    line-height: 1.6;
    font-size: 14px;
}

.terms-content h4 {
    margin-top: 20px;
    margin-bottom: 10px;
    color: #2C2C2C;
}

.terms-content p {
    margin-bottom: 10px;
}

.terms-content ul {
    margin-left: 20px;
    margin-bottom: 10px;
}

.terms-content li {
    margin-bottom: 5px;
}

.modal-footer {
    padding: 20px;
    background-color: #FAFAFA;
    border-top: 2px solid #E0E0E0;
    border-radius: 0 0 8px 8px;
    text-align: center;
}

.modal-footer .btn {
    margin: 0 5px;
}

.btn-success {
    background: #4FAA00;
    color: white;
    border-color: #4FAA00;
}

.btn-success:hover {
    background: #3D8800;
}

.terms-checkbox {
    margin-top: 15px;
    text-align: center;
}

.terms-checkbox label {
    font-size: 14px;
    color: #666666;
    cursor: pointer;
}

.terms-checkbox input[type="checkbox"] {
    margin-right: 5px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .register-container {
        padding: 15px;
    }

    .register-box {
        width: 100%;
        margin: 30px auto;
        padding: 30px 20px;
    }
}
