/* ===========================================
   会員登録ページ（register.php）
=========================================== */
.register-block {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    background: #FF7919;
    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: 20px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

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

.logo p {
    color: #666;
    font-size: 25px;
    color: #FF7919;
    text-align: center;
    font-weight: 900;
}

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

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

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"] {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
    background: #FFFAF7;
    border: 2px solid #F8B889;
    color: #FF7919;
    font-size: 16px;
}

.form-hint {
    font-size: 12px;
    /*color: #666;*/
    color: #FFA667;
    margin-top: 5px;
}

.error {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #fcc;
}

.certification {
    margin-bottom: 20px;
}

.success {
    background: #efe;
    color: #3c3;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border: 1px solid #cfc;
}

.btn {
    display: inline-block;
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s;
}

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

.btn-primary:hover {
    background: #ea580c;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

.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: #D1D1D1;
    color: #1A1A1A;
    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: #FF7919;
    color: white;
}

.step.completed {
    background: #28a745;
    color: white;
}

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

.step.completed .step-line {
    background: #28a745;
}

.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: #007bff;
    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: 1px solid #888;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
    padding: 20px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    position: relative;
}

.modal-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

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

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

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

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

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

.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: #f8f9fa;
    border-top: 1px solid #dee2e6;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

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

.btn-success {
    background: #28a745;
    color: white;
}

.btn-success:hover {
    background: #218838;
}

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

.terms-checkbox label {
    font-size: 14px;
    color: #666;
    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;
    }
}