/**
 * 会員プロフィール関連のスタイル
 * 会员资料相关的样式
 */

/* 共通スタイル */
.member-block {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
    overflow: hidden;
}

.member-block-header {
    background-color: #f5f5f5;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #e0e0e0;
}

.member-block-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.member-block-content {
    padding: 50px;
}

/* パネル最小化/最大化スタイル */
.panel-toggle-button {
    display: inline-block;
    margin-right: 8px;
    cursor: pointer;
    font-size: 14px;
    color: #555;
    transition: color 0.3s;
}

.panel-toggle-button:hover {
    color: #4285f4;
}

.member-panel.panel-minimized .member-block-header {
    border-bottom: none;
}

.member-panel.panel-minimized {
    margin-bottom: 15px;
}

.member-panel.panel-maximized {
    margin-bottom: 30px;
}

/* 情報表示テーブル */
.member-info-table {
    width: 100%;
    border-collapse: collapse;
}

.member-info-table th,
.member-info-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.member-info-table th {
    width: 30%;
    background-color: #f9f9f9;
    font-weight: normal;
}

.member-info-table tr:last-child th,
.member-info-table tr:last-child td {
    border-bottom: none;
}

/* フォームスタイル */
.form-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.form-group label {
    width: 30%;
    font-weight: bold;
    padding-right: 15px;
}

.form-group input,
.form-group select {
    width: 70%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #4285f4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.2);
}

/* 生年月日入力フィールド */
.form-group input[type="date"] {
    width: 35%;
    margin-right: 5%;
}

.birthday-text-input {
    width: 30% !important;
}

.radio-group {
    display: flex;
    gap: 20px;
    width: 70%;
}

.radio-group label {
    display: flex;
    align-items: center;
    width: auto;
    font-weight: normal;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    width: auto;
    margin-right: 5px;
}

.required {
    color: #e53935;
}

/* 保存ボタン中央配置 */
.submit-group {
    justify-content: center;
    margin-top: 30px;
}

/* ボタンスタイル */
.member-edit-button,
.member-cancel-button,
.submit-button {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.member-edit-button {
    background-color: #4285f4;
    color: #fff;
    border: 1px solid #3367d6;
}

.member-edit-button:hover {
    background-color: #3367d6;
}

.member-cancel-button {
    background-color: #f44336;
    color: #fff;
    margin-left: 10px;
    border: 1px solid #d32f2f;
}

.member-cancel-button:hover {
    background-color: #d32f2f;
}

.submit-button {
    background-color: #4285f4;
    color: white;
    padding: 10px 20px;
    font-size: 16px;
}

.submit-button:hover {
    background-color: #3367d6;
}

.submit-button:disabled {
    background-color: #9e9e9e;
    cursor: not-allowed;
}

/* メッセージスタイル */
.member-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-top: 15px;
    display: none;
}

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

.member-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* 未ログイン時のスタイル */
.member-not-logged-in {
    width: 100%;
    padding: 30px;
    text-align: center;
}

.member-not-logged-in p {
    margin-bottom: 20px;
    font-size: 16px;
    color: #555;
}

.member-not-logged-in button {
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.member-not-logged-in button:hover {
    background-color: #3367d6;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .member-info-table th,
    .member-info-table td {
        display: block;
        width: 100%;
    }
    
    .member-info-table th {
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .member-info-table td {
        padding-top: 5px;
    }
    
    .radio-group {
        flex-direction: column;
        gap: 10px;
    }
}