body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    max-width: 1270px;
    margin: 0 auto;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.inquiry-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    overflow-x: auto;
    white-space: nowrap;
    display: block;
}

.inquiry-list th,
.inquiry-list td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.inquiry-list th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.inquiry-list tr:hover {
    background-color: #f8f9fa;
}

.message-cell {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.timestamp {
    color: #666;
    font-size: 0.9em;
}

.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.error {
    color: #dc3545;
    padding: 10px;
    margin: 10px 0;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

.no-data {
    text-align: center;
    padding: 20px;
    color: #666;
}

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 10px;
    box-sizing: border-box;
}
.modal-content {
    background: #fff;
    border-radius: 8px;
    max-width: 95vw;
    width: 500px;
    padding: 32px 20px 20px 20px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 1001;
}

/* モーダル内のテーブルスタイル */
.modal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    line-height: 1.4;
}

.modal-content th,
.modal-content td {
    padding: 8px 4px;
    text-align: left;
    border-bottom: 1px solid #eee;
    word-wrap: break-word;
    word-break: break-all;
}

.modal-content th {
    background-color: #f8f9fa;
    font-weight: 600;
    color: #333;
    width: 30%;
    vertical-align: top;
}

.modal-content td {
    width: 70%;
    vertical-align: top;
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 1.2em;
    color: #333;
}

@media (max-width: 720px) {
    .container {
        max-width: 100%;
        padding: 4px;
        border-radius: 0;
    }
    h1 {
        font-size: 1.2em;
        padding-bottom: 6px;
        margin-bottom: 12px;
    }
    .inquiry-list th,
    .inquiry-list td {
        padding: 6px 4px;
        font-size: 0.92em;
    }
    .inquiry-list {
        font-size: 0.95em;
        margin-top: 10px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .message-cell {
        max-width: 120px;
        font-size: 0.92em;
    }
    .timestamp {
        font-size: 0.85em;
    }
    .loading, .error, .no-data {
        padding: 10px;
        font-size: 0.95em;
    }
    .modal {
        padding: 5px;
    }
    .modal-content {
        width: 98vw;
        max-width: 98vw;
        padding: 16px 8px 12px 8px;
        max-height: 95vh;
        font-size: 0.85em;
    }
    .modal-close {
        top: 4px;
        right: 8px;
        font-size: 1.5rem;
    }
    .modal-content table {
        font-size: 0.8em;
        line-height: 1.3;
    }
    .modal-content th,
    .modal-content td {
        padding: 6px 3px;
    }
    .modal-content h2 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }
} 