@charset "utf-8";
/**
 * ユーザ登録用
 * 
 * create: 2023-09-23
 * update: 2023-09-23
 * 
 * @package     yonde
 * @author      ik
 * @copyright   Copyright (c) 2025 , NetReal
 * @version     yonde 1.00
 */

/* ユーザ登録ページ専用スタイル */

/* フォームテキスト用のスタイル */
.form-text-gray {
    color: #888 !important;
}

/* 登録完了画面のアイコン用スタイル */
.success-icon-large {
    font-size: 4rem !important;
    color: #28a745 !important;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    overflow: hidden;
    position: relative;
    padding: 0;
}

.header {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: white;
    padding: 2rem 0;
    text-align: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-radius: 15px 15px 0 0;
    z-index: 1;
}

.header-top {
    position: absolute;
    top: 1rem;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 0 2rem;
}

.logo-link {
    color: white;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-start;
}

.logo-link:hover {
    color: #e0e0e0;
    text-decoration: none;
}

.logo-link i {
    font-size: 1.4rem;
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.header h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.header p {
    opacity: 0.9;
    font-size: 1rem;
}

.form-container {
    padding: 2rem;
    margin-top: 220px;
    position: relative;
    z-index: 2;
}

.success-msg, .error-msg {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    text-align: center;
}

.success-msg {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error-msg {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    line-height: 1.5;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

.form-input {
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* 住所情報の下線スタイル */
.section-title {
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #ecf0f1;
    margin-top: 2rem;
}

/* 基本情報と住所情報のフォントサイズ・太さを統一 */
h5.mb-3,
.section-title {
    font-size: 1.25rem !important;
    font-weight: 500 !important;
    color: #2c3e50 !important;
    margin-bottom: 1rem !important;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
}

.submit-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.back-link {
    text-align: center;
    margin-top: 2rem;
}

.back-link a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.back-link a:hover {
    color: #764ba2;
}

.success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.action-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn:hover {
    background: #5a6fd8;
    transform: translateY(-1px);
    color: white;
    text-decoration: none;
}

.postal-search {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #6c757d;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 0.5rem;
}

.postal-search:hover {
    background: #e9ecef;
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
    .success-actions {
        flex-direction: column;
    }
}

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

/* === ヘッダー === */
.entry-header {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    padding: 2.5rem 2rem;
    text-align: center;
}

.entry-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.entry-subtitle {
    margin: 0.75rem 0 0 0;
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: normal;
}

.entry-icon {
    font-size: 3rem;
    margin-bottom: 1.25rem;
    opacity: 0.9;
}

/* === ステップインジケーター === */
.step-indicator {
    display: flex;
    justify-content: space-between;
    padding: 2rem;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: relative;
}

.step-indicator::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: #dee2e6;
    z-index: 1;
}

.step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 2;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e9ecef;
    color: #6c757d;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
    border: 3px solid #e9ecef;
}

.step-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #6c757d;
    margin: 0;
    transition: color 0.3s ease;
}

.step.current .step-number {
    background: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.2);
}

.step.current .step-title {
    color: #007bff;
    font-weight: 700;
}

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

.step.completed .step-title {
    color: #28a745;
}

.step.completed .step-number::before {
    content: '✓';
    font-size: 1.2rem;
}

/* === 登録フォーム === */
.registration-form {
    padding: 3rem 2.5rem;
}

.form-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e9ecef;
    scroll-margin-top: 100px;
}

.form-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.section-header {
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #495057;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    color: #28a745;
    font-size: 1.2em;
}

.section-description {
    color: #6c757d;
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* === フォーム要素 === */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.75rem;
    color: #495057;
    font-weight: 600;
    font-size: 1rem;
}

.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}

.form-control {
    display: block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
    transform: translateY(-1px);
}

.form-control.field-error {
    border-color: #dc3545;
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
    animation: shake 0.5s ease-in-out;
}

.form-control.field-success {
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
    background-image: linear-gradient(to right, transparent 95%, rgba(40, 167, 69, 0.1) 100%);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.form-select {
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23495057' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 16px 12px;
    padding-right: 3rem;
}

/* === パスワード強度表示 === */
.password-strength {
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.strength-bar {
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    position: relative;
}

.strength-fill {
    height: 100%;
    transition: all 0.5s ease;
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.strength-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.5) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: strengthShine 2s infinite;
}

@keyframes strengthShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.password-strength.very-weak .strength-fill { background: #dc3545; }
.password-strength.weak .strength-fill { background: #fd7e14; }
.password-strength.fair .strength-fill { background: #ffc107; }
.password-strength.strong .strength-fill { background: #20c997; }
.password-strength.very-strong .strength-fill { background: #28a745; }

.strength-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.strength-text i {
    font-size: 1.1em;
}

.password-strength.very-weak .strength-text { color: #dc3545; }
.password-strength.weak .strength-text { color: #fd7e14; }
.password-strength.fair .strength-text { color: #ffc107; }
.password-strength.strong .strength-text { color: #20c997; }
.password-strength.very-strong .strength-text { color: #28a745; }

/* === 住所検索 === */
.address-group {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.address-input-group {
    flex: 1;
}

.address-search-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.address-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
}

.address-search-status {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    font-size: 0.9rem;
    display: none;
    animation: statusSlideDown 0.3s ease-out;
}

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

.address-search-status.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.address-search-status.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.address-search-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === メール重複チェック === */
.email-check-indicator {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #007bff;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* === バリデーションエラー === */
.form-control.is-invalid,
.form-input.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.form-control.is-invalid:focus,
.form-input.is-invalid:focus {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important;
}

.validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
}

/* パスワードフィールドのエラー時特別処理 */
.password-input-group .form-control.is-invalid {
    border-color: #dc3545 !important;
    border-width: 2px !important;
}

/* === 利用規約 === */
.terms-container {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
}

.terms-agreement {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    cursor: pointer;
}

.terms-agreement:hover {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.02);
}

.terms-agreement.field-error {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.02);
    animation: shake 0.5s ease-in-out;
}

.terms-checkbox {
    margin-top: 0.25rem;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.terms-text {
    flex: 1;
    line-height: 1.6;
    color: #495057;
}

.terms-link {
    color: #007bff;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.terms-link:hover {
    color: #0056b3;
}

/* === 登録ボタン === */
.entry-actions {
    padding: 2.5rem;
    background: #f8f9fa;
    text-align: center;
    border-top: 1px solid #e9ecef;
}

.register-btn {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 1.5rem 4rem;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(40,167,69,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40,167,69,0.4);
}

.register-btn:active {
    transform: translateY(-1px);
}

.register-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 6px 20px rgba(40,167,69,0.2);
}

/* === 登録プログレス === */
.registration-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 3.5rem;
    border-radius: 25px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.25);
    z-index: 10000;
    text-align: center;
    min-width: 400px;
    animation: progressSlideIn 0.4s ease-out;
}

@keyframes progressSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.progress-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 2rem;
    animation: registerPulse 2s infinite;
}

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

.progress-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 2.5rem;
}

.progress {
    height: 10px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #28a745 0%, #20c997 100%);
    border-radius: 10px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        to right,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.4) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: progressShine 2.5s infinite;
}

@keyframes progressShine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* === エラーメッセージ === */
.field-error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(220,53,69,0.1);
    border-radius: 10px;
    border-left: 4px solid #dc3545;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: errorFadeIn 0.3s ease-out;
}

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

.field-success-message {
    color: #155724;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(40,167,69,0.1);
    border-radius: 10px;
    border-left: 4px solid #28a745;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: successFadeIn 0.3s ease-out;
}

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

/* === 利用規約モーダル === */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.4s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    padding: 2rem;
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    transform: scale(1.1);
}

.terms-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    line-height: 1.7;
    color: #495057;
}

.terms-content p {
    margin-bottom: 1.5rem;
}

.terms-content h4 {
    color: #343a40;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.modal-footer {
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.agree-terms {
    background: linear-gradient(45deg, #28a745, #20c997);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.agree-terms:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,167,69,0.3);
}

/* === レスポンシブデザイン === */
@media (max-width: 991.98px) {
    .entry-container {
        padding: 1.5rem 1rem;
    }
    
    .entry-card {
        border-radius: 15px;
    }
    
    .registration-form {
        padding: 2.5rem 2rem;
    }
    
    .address-group {
        flex-direction: column;
        gap: 1rem;
    }
    
    .address-search-btn {
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .entry-header {
        padding: 2rem 1.5rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .step-indicator {
        padding: 1.5rem 1rem;
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .step {
        flex: none;
        min-width: calc(50% - 0.5rem);
    }
    
    .registration-form {
        padding: 2rem 1.5rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    .form-control {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .register-btn {
        width: 100%;
        padding: 1.25rem 2rem;
        font-size: 1.1rem;
    }
    
    .registration-progress {
        min-width: 300px;
        margin: 1rem;
        padding: 2.5rem;
    }
    
    .modal-overlay {
        padding: 1rem;
    }
    
    .modal-content {
        max-width: 100%;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .terms-content {
        padding: 1.5rem;
    }
    
    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .entry-container {
        padding: 1rem 0.5rem;
    }
    
    .entry-card {
        border-radius: 10px;
    }
    
    .entry-header {
        padding: 1.5rem 1rem;
    }
    
    .entry-title {
        font-size: 1.5rem;
    }
    
    .entry-subtitle {
        font-size: 1rem;
    }
    
    .step-indicator {
        padding: 1rem;
    }
    
    .step {
        min-width: 100%;
    }
    
    .step-number {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
    
    .registration-form {
        padding: 1.5rem 1rem;
    }
    
    .form-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .form-control {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .terms-agreement {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .entry-actions {
        padding: 1.5rem 1rem;
    }
    
    .register-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .registration-progress {
        min-width: 280px;
        padding: 2rem;
    }
    
    .progress-text {
        font-size: 1.1rem;
    }
}

/* === アニメーション無効化（ユーザー設定） === */
@media (prefers-reduced-motion: reduce) {
    .entry-card,
    .field-error-message,
    .field-success-message,
    .address-search-status,
    .registration-progress,
    .modal-content {
        animation: none;
    }
    
    .form-control,
    .register-btn,
    .step {
        transition: none;
    }
    
    .strength-fill::after,
    .progress-bar::after,
    .register-btn::before {
        animation: none;
    }
}

/* === プリント用スタイル === */
@media print {
    .entry-container {
        background: white;
        padding: 0;
    }
    
    .entry-header {
        background: white;
        color: black;
        border-bottom: 2px solid #000;
    }
    
    .step-indicator,
    .entry-actions,
    .registration-progress,
    .modal-overlay {
        display: none;
    }
    
    .entry-card {
        box-shadow: none;
        border: 1px solid #000;
    }
    
    .form-control {
        border: 1px solid #000;
    }
    
    .password-strength {
        background: #f9f9f9;
        border: 1px solid #000;
    }
}

/* === Confirm画面スタイル === */
.confirm-screen {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
    animation: confirmSlideIn 0.3s ease-out;
}

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

.confirm-content h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-content p {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.confirm-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.3);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108,117,125,0.3);
    color: white;
    text-decoration: none;
}

/* === 情報表示エリア（entry_cfm.php用） === */
.info-display {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.info-display .row {
    margin: 0;
}

.info-display strong {
    color: #2c3e50;
    font-weight: 600;
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.25rem;
}

.info-display .col-md-6,
.info-display .col-md-12 {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f8f9fa;
}

.info-display .col-md-6:nth-child(odd) {
    border-right: 1px solid #f8f9fa;
}

.info-display .row:last-child .col-md-6,
.info-display .row:last-child .col-md-12 {
    border-bottom: none;
}

/* === レスポンシブ対応 === */
@media (max-width: 767.98px) {
    .confirm-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .info-display .col-md-6 {
        border-right: none;
        border-bottom: 1px solid #f8f9fa;
    }
}

/* === パスワード表示切り替えアイコン === */
.password-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input-group .form-control {
    padding-right: 3rem;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #495057;
    background-color: rgba(0, 0, 0, 0.05);
}

.password-toggle:focus {
    outline: none;
    color: #495057;
    background-color: rgba(0, 0, 0, 0.1);
}

.password-toggle i {
    font-size: 1.1rem;
    pointer-events: none;
}

/* === 認証コード再送信ボタン === */
.resend-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 2px solid #007bff;
    background: white;
    color: #007bff;
}

.resend-btn:hover {
    background: #007bff;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
}

.resend-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.resend-btn i {
    font-size: 1rem;
}

/* レスポンシブ対応 */
@media (max-width: 767.98px) {
    .resend-btn {
        margin-top: 1rem;
    }
}

/* === Confirm画面の詳細表示用スタイル === */
.confirm-details {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #dee2e6;
}

.confirm-details h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.detail-grid {
    display: grid;
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    border-radius: 6px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.detail-item span {
    color: #2c3e50;
    font-size: 1rem;
    line-height: 1.4;
}

/* 認証セクション */
.auth-section {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    border: 1px solid #dee2e6;
    margin-bottom: 2rem;
}

.auth-section h4 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e9ecef;
}

.auth-description {
    color: #495057;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-align: center;
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.auth-form {
    margin-bottom: 2rem;
}

.auth-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.auth-input {
    padding: 1rem 1.5rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 0.5rem;
    width: 200px;
    max-width: 100%;
    transition: all 0.3s ease;
    background: white;
    font-family: 'Courier New', monospace;
}

.auth-input:focus {
    outline: none;
    border-color: #28a745;
    box-shadow: 0 0 0 4px rgba(40, 167, 69, 0.15);
    transform: translateY(-2px);
}

.auth-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
}

.btn-link {
    background: none;
    border: 2px solid #6c757d;
    color: #6c757d;
    text-decoration: none;
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-link:hover {
    background: #6c757d;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(108, 117, 125, 0.3);
}

.success-msg-inline {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* === フォームアクション === */
.form-actions {
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .form-actions .btn-primary,
    .form-actions .btn-secondary {
        width: 100%;
    }
}

/* === 住所検索機能 === */
.field-updated {
    background-color: #d1ecf1 !important;
    border-color: #17a2b8 !important;
    animation: fieldHighlight 2s ease-out;
}

@keyframes fieldHighlight {
    0% {
        background-color: #b8e6b8;
        border-color: #28a745;
        transform: scale(1.02);
    }
    50% {
        background-color: #d4edda;
        border-color: #28a745;
    }
    100% {
        background-color: #d1ecf1;
        border-color: #17a2b8;
        transform: scale(1);
    }
}

/* === entry_finish.php用の追加スタイル === */
.registration-info {
    margin-bottom: 2.5rem;
}

.info-card {
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1);
}

.info-card h4 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.info-content {
    color: #495057;
    line-height: 1.6;
}

.info-content p {
    margin-bottom: 0.75rem;
}

.info-content ol {
    margin: 0;
    padding-left: 1.5rem;
}

.info-content li {
    margin-bottom: 0.5rem;
}

/* === entry_fin.php専用スタイル === */
.entry-fin .registration-info {
    margin-bottom: 2rem;
}

.entry-fin .info-box {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

.entry-fin .next-steps {
    margin-bottom: 2rem;
}

.entry-fin .steps-content {
    margin-top: 1rem;
}

.entry-fin .list-group-numbered .list-group-item {
    border: 1px solid #e9ecef;
    background-color: #ffffff;
    margin-bottom: 0.75rem;
    border-radius: 0.5rem !important;
    padding: 1.25rem 1.5rem;
    transition: all 0.2s ease;
    position: relative;
    padding-left: 4rem;
}

.entry-fin .list-group-numbered .list-group-item:hover {
    background-color: #f8f9fa;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.15);
}

.entry-fin .list-group-numbered .list-group-item::before {
    content: counter(list-counter);
    counter-increment: list-counter;
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.entry-fin .list-group-numbered {
    counter-reset: list-counter;
}

.entry-fin .action-buttons {
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.entry-fin .action-buttons .btn {
    margin: 0 0.75rem 1rem 0.75rem;
    min-width: 220px;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.entry-fin .action-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.entry-fin .action-buttons .btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-color: transparent;
}

.entry-fin .action-buttons .btn-outline-secondary:hover {
    background-color: #6c757d;
    border-color: #6c757d;
}

.entry-fin .support-info {
    text-align: center;
}

@media (max-width: 768px) {
    .entry-fin .action-buttons .btn {
        display: block;
        margin: 0.5rem auto;
        width: 100%;
        max-width: 300px;
    }
}

/* インラインフォーム（entry_confirm.php用） */
.inline-form {
    display: inline;
}