.member-inquiries-main-body {
    padding: 20px;
    background-color: #fff;
    height: 100%;
    border-radius: 0 0 20px 20px;
}

.inquiries-history {
    margin-bottom: 30px;
}

/* ヘッダースタイル */
.inquiries-history h3 {
    font-size: 20px;
    color: #555555;
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #dddddd;
}

/* テーブルスタイル */
.inquiries-history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.inquiries-history-table th, 
.inquiries-history-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.inquiries-history-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

/* カラム幅の調整 */
.inquiries-history-table th.inquiry-date,
.inquiries-history-table td:nth-child(1),
.inquiries-history-table th.response-date,
.inquiries-history-table td:nth-child(3) {
    width: 80px;
    white-space: nowrap;
}

.inquiries-history-table th.inquiry-content,
.inquiries-history-table td:nth-child(2),
.inquiries-history-table th.response-content,
.inquiries-history-table td:nth-child(4) {
    width: 35%;
}

.inquiries-history-table th.staff-name,
.inquiries-history-table td:nth-child(5) {
    width: 300px;
    text-align: left;
}

/* 交互の行の背景色 */
.inquiries-history-table tr:nth-child(even) {
    background-color: #f9f9f9;
}

/* ホバーエフェクト */
.inquiries-history-table tr:hover {
    background-color: #e9f7fe;
}

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .member-inquiries-main-body {
        padding: 15px;
    }
    
    .inquiries-history-table {
        display: block;
        width: 100%;
        white-space: nowrap;
    }
    
    .inquiries-history-table th,
    .inquiries-history-table td {
        font-size: 13px;
        padding: 6px;
    }
    
    .inquiries-history h3 {
        font-size: 16px;
    }
    
    /* モバイル表示で特定のカラムのみ表示 */
    .inquiries-history-table th.inquiry-content,
    .inquiries-history-table td:nth-child(2),
    .inquiries-history-table th.response-content,
    .inquiries-history-table td:nth-child(4) {
        display: none;
    }
    
    /* 残りのカラムの幅を調整 */
    .inquiries-history-table th.inquiry-date,
    .inquiries-history-table td:nth-child(1),
    .inquiries-history-table th.response-date,
    .inquiries-history-table td:nth-child(3) {
        width: 100px;
    }
    
    .inquiries-history-table th.staff-name,
    .inquiries-history-table td:nth-child(5) {
        width: 300px;
        text-align: left;
    }
}

/* テーブルの行をクリック可能にするスタイル */
.clickable-row {
    cursor: pointer;
    transition: background-color 0.3s;
}

/* モーダルスタイル */
.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: 10% auto;
    padding: 30px;
    border: 1px solid #ddd;
    border-radius: 10px;
    width: 70%;
    max-width: 800px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.modal h2 {
    margin-top: 0;
    color: #333;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
    margin-bottom: 20px;
}

.close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #333;
    text-decoration: none;
}

/* フォームグループスタイル */
.form-group {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #555;
}

.form-value {
    padding: 10px;
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 5px;
    min-height: 20px;
}

/* レスポンシブ対応（モーダル） */
@media screen and (max-width: 768px) {
    .modal-content {
        width: 90%;
        margin: 15% auto;
        padding: 20px;
    }
} 