/* 全体のスタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
}

h2 {
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 500;
    font-size: 22px;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #2c3e50;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%232c3e50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.search-btn {
    background-color: #3498db;
    color: white;
    margin-right: 10px;
}

.search-btn:hover {
    background-color: #2980b9;
}

.reset-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.reset-btn:hover {
    background-color: #dce4ec;
}

/* 結果表示部分 */
.results {
    margin-top: 30px;
    border-top: 1px solid #ecf0f1;
    padding-top: 20px;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #dce4ec;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #ecf0f1;
}

.result-count {
    color: #7f8c8d;
    font-style: italic;
}

.no-results {
    color: #e74c3c;
    text-align: center;
    padding: 20px;
    background-color: #fdf2f2;
    border-radius: 4px;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    select, button {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 14px;
    }
}
/* 検索結果ヘッダーの配置 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.results-header h2 {
    margin: 0;
}

.result-count {
    color: #7f8c8d;
    font-size: 16px;
    font-style: italic;
}
/* 全体のスタイル */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f7fa;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

h1 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
}

h2 {
    color: #2c3e50;
    margin: 20px 0;
    font-weight: 500;
    font-size: 22px;
}

/* フォーム要素 */
.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2c3e50;
}

.required {
    color: #e74c3c;
}

select {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #dce4ec;
    border-radius: 4px;
    background-color: #fff;
    font-size: 16px;
    color: #2c3e50;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%232c3e50" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 20px;
}

select:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

button:disabled {
    background-color: #d5dbdb;
    color: #7f8c8d;
    cursor: not-allowed;
}

.search-btn {
    background-color: #3498db;
    color: white;
    margin-right: 10px;
}

.search-btn:hover:not(:disabled) {
    background-color: #2980b9;
}

.reset-btn {
    background-color: #ecf0f1;
    color: #2c3e50;
}

.reset-btn:hover {
    background-color: #dce4ec;
}

/* 結果表示部分 */
.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #ecf0f1;
}

.result-count {
    color: #7f8c8d;
    font-size: 16px;
    font-style: italic;
}

.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #dce4ec;
    text-align: left;
}

th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

tr:hover {
    background-color: #ecf0f1;
}

/* レスポンシブデザイン */
@media screen and (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    select, button {
        font-size: 14px;
    }
    
    th, td {
        padding: 8px 10px;
        font-size: 14px;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-count {
        margin-top: 5px;
    }
}