.monster-search-wrapper {
    max-width: 720px;
    margin: 0 auto;
    font-size: 15px;
}

.monster-search-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.ms-result-list {
    list-style: none;
    margin: 12px 0 0;
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
}

.ms-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    transition: background-color 0.15s;
}

.ms-result-item:last-child {
    border-bottom: none;
}

.ms-result-item:hover {
    background-color: #f5f5f5;
}

.ms-result-name {
    font-weight: 600;
}

.ms-result-level {
    color: #888;
    font-size: 0.85em;
}

.ms-empty,
.ms-error,
.ms-loading {
    padding: 14px;
    color: #777;
}

.ms-error {
    color: #c0392b;
}

.monster-search-detail {
    margin-top: 18px;
}

.ms-detail-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: #fafafa;
}

.ms-detail-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.ms-detail-close:hover {
    color: #333;
}

.ms-detail-card h3 {
    margin: 0 0 14px;
}

.ms-status-table,
.ms-drop-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.ms-status-table th,
.ms-status-table td,
.ms-drop-table th,
.ms-drop-table td {
    border: 1px solid #e0e0e0;
    padding: 6px 10px;
    text-align: left;
    font-size: 0.9em;
}

.ms-status-table th {
    background: #f0f0f0;
    width: 60px;
}

.ms-drop-table thead th {
    background: #f0f0f0;
}

/* タブ */
.ms-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 14px;
    border-bottom: 1px solid #ddd;
}

.ms-tab-btn {
    padding: 8px 16px;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 14px;
    color: #777;
    border-bottom: 2px solid transparent;
}

.ms-tab-btn.active {
    color: #333;
    font-weight: 600;
    border-bottom-color: #555;
}

/* アイテム検索フォーム */
.ms-item-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 4px;
}

.ms-item-form select,
.ms-item-form input {
    padding: 8px 10px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.ms-item-form input {
    flex: 1;
    min-width: 160px;
}

/* 逆引き結果のクリック可能な行 */
.ms-clickable-row {
    cursor: pointer;
}

.ms-clickable-row:hover {
    background-color: #f5f5f5;
}

/* 出現場所リスト */
.ms-location-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.ms-location-list li {
    padding: 2px 0;
    font-size: 0.9em;
}
