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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: white;
    min-height: 100vh;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* ログインページ */
.login-card {
    background: white;
    padding: 5px;
    max-width: 400px;
}

.login-card h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #667eea;
    font-size: 28px;
}

.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.form-group input {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    background-color: white;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: #667eea;
}

/* 項目名 : 値形式のスタイル */
.field-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
    flex-shrink: 0;
}

.field-separator {
    color: #666;
    margin: 0 4px;
}

.field-value {
    color: #333;
    flex: 1;
}

.field-input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
    min-width: 0;
}

.field-input:focus {
    outline: none;
    border-color: #667eea;
}

.readonly-field {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #666;
}

.required {
    color: #dc3545;
    font-size: 14px;
    font-weight: normal;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #28a745;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

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

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
    transform: translateY(-2px);
}

.btn {
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

a.btn {
    width: auto;
}

.login-hint {
    margin-top: 30px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    font-size: 14px;
    color: #666;
}

.login-hint p {
    margin: 5px 0;
}

.login-hint strong {
    color: #667eea;
}

/* トップページ */
.header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.header h1 {
    color: #667eea;
    font-size: 32px;
}

.main-content {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.welcome-card h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 28px;
}

.welcome-card > p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 25px;
    border-radius: 10px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-card h3 {
    color: #667eea;
    margin-bottom: 10px;
    font-size: 20px;
}

.feature-card p {
    color: #555;
    line-height: 1.6;
    font-size: 14px;
}

/* 会員情報フォーム */
.member-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-section {
    margin-bottom: 30px;
}

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

.form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.form-actions .btn {
    flex: 1;
    min-width: 120px;
}

.empty-page {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
}

.withdrawal-confirmation {
    text-align: center;
    padding: 60px 20px;
    max-width: 600px;
    margin: 0 auto;
}

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

.warning-message {
    color: #dc3545;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 40px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 8px;
}

/* 郵便番号入力グループ */
.zipcode-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    width: 100%;
}

.zipcode-input {
    width: auto;
    flex: 1;
    min-width: 60px;
}

.zipcode-separator {
    color: #666;
    font-weight: 600;
    flex-shrink: 0;
}

/* 電話番号入力グループ */
.tel-input-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    flex-wrap: wrap;
    width: 100%;
}

.tel-input {
    width: auto;
    flex: 1;
    min-width: 70px;
}

.tel-separator {
    color: #666;
    font-weight: 600;
    flex-shrink: 0;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    
    .header {
        flex-direction: column;
        text-align: center;
    }
    
    .header h1 {
        font-size: 24px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: 20px;
    }
    
    .form-group {
        flex-wrap: wrap;
    }
    
    .field-label {
        min-width: 100px;
        width: 100%;
        margin-bottom: 4px;
    }
    
    .field-separator {
        display: none;
    }
    
    .field-value,
    .field-input {
        width: 100%;
        margin-left: 0;
    }
    
    /* 会員情報フォームは常に横並び */
    .member-form .form-group {
        flex-wrap: nowrap;
    }
    
    .member-form .field-label {
        width: auto;
        margin-bottom: 0;
    }
    
    .member-form .field-separator {
        display: inline;
    }
    
    .member-form .field-value,
    .member-form .field-input {
        width: auto;
        margin-left: 0;
    }
    
    /* ログインページとパスワードリセットページのフォームグループは常に横並び */
    .login-card .form-group {
        flex-wrap: nowrap;
    }
    
    .login-card .form-group label {
        min-width: 120px;
        width: auto;
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .login-card .form-group input,
    .login-card .form-group select {
        flex: 1;
        min-width: 0;
    }
    
}

/* 会員情報フォームのコンパクトスタイル - フォントサイズと縦幅を70%に圧縮 */
.member-form {
    font-size: 70%;
    line-height: 1.2;
}

.member-form .form-section {
    margin-bottom: 21px;
}

.member-form .form-section h2 {
    font-size: 16.8px;
    margin-bottom: 14px;
    padding-bottom: 7px;
}

.member-form .form-group {
    margin-bottom: 14px;
    gap: 5.6px;
    flex-wrap: nowrap;
}

.member-form .field-label {
    min-width: 84px;
    font-size: 1em;
    width: auto;
    margin-bottom: 0;
}

.member-form .field-input {
    padding: 8.4px;
    font-size: 11.2px;
    border-radius: 5.6px;
}

.member-form #gender {
    font-size: 12.8px;
}

.member-form .field-separator {
    margin: 0 2.8px;
    font-size: 1em;
    display: inline;
}

.member-form .field-value {
    font-size: 1em;
    width: auto;
    margin-left: 0;
}

.member-form .required {
    font-size: 9.8px;
}

.member-form .success-message,
.member-form .error-message {
    padding: 8.4px;
    margin-bottom: 14px;
    border-radius: 5.6px;
    font-size: 1em;
    border-left-width: 2.8px;
}

.member-form .form-actions {
    margin-top: 21px;
    padding-top: 14px;
    gap: 10.5px;
}

.member-form .form-actions .btn-primary,
.member-form .form-actions .btn-info {
    flex: 2;
    min-width: 120px;
}

.member-form .form-actions-withdrawal {
    margin-top: 21px;
    display: flex;
    justify-content: flex-start;
}

.member-form .form-actions-withdrawal .btn {
    flex: 0 0 auto;
    min-width: 84px;
}

.member-form .btn {
    padding: 8.4px 16.8px;
    font-size: 11.2px;
    border-radius: 5.6px;
    min-width: 84px;
}

.member-form .zipcode-input-group,
.member-form .tel-input-group {
    gap: 5.6px;
}

.member-form .zipcode-input {
    min-width: 42px;
}

.member-form .tel-input {
    min-width: 49px;
}

