body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background-color: #f4f7f6;
    color: #333;
    transition: all 0.3s ease;
}

h1 {
    text-align: center;
    color: #2c3e50;
    font-size: 3em;
    margin-bottom: 20px;
}

/* 追加するスタイル */
.input-group {
    display: flex;
    width: 100%;
    max-width: 900px;
    margin-bottom: 20px;
    align-items: center;
}

.input-group .button-container {
    display: flex;
    gap: 5px;
}

input {
    padding: 15px;
    flex: 1;
    box-sizing: border-box;
    border: 2px solid #2980b9;
    border-radius: 10px 0 0 10px;
    font-size: 1.2em;
}

button, select {
    background-color: #2980b9;
    color: #fff;
    padding: 15px;
    border: none;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    font-size: 1.2em;
    transition: background-color 0.3s ease, transform 0.3s ease;
    margin-left: 5px;
}

button:hover, select:hover {
    background-color: #1b4f72;
    transform: scale(1.05);
}

button i, select i {
    margin-right: 5px;
}

.select-container {
    display: flex;
    align-items: center;
    margin-left: auto;
}

table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

th, td {
    padding: 15px;
    text-align: left;
    border: 1px solid #ddd;
}

th {
    cursor: pointer;
    background-color: #2980b9;
    color: #fff;
    font-weight: bold;
}

tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

tbody tr:hover {
    background-color: #d3e6f3;
}

.highlight {
    background-color: #a7ffeb;
}

.highlighted-row {
    background-color: #f7d794;
}

#pagination {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

#pagination button {
    margin: 5px;
    padding: 10px;
    background-color: #2980b9;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#pagination button.active {
    background-color: #1b4f72;
}

#pagination button:hover {
    background-color: #1b4f72;
}

#resultCount {
    margin-top: 20px;
}

@media (max-width: 600px) {
    h1 {
        font-size: 2em;
    }
    .input-group {
        flex-direction: column;
        align-items: center;
    }
    .input-group > input {
        margin-bottom: 10px;
        width: 100%;
    }
    .input-group .button-container {
        display: flex;
        width: 100%;
        justify-content: space-between;
    }
    .input-group .button-container > button {
        margin-bottom: 10px;
        width: 49%;
    }
    .input-group > #voiceButton,
    .input-group > #themeToggle,
    .input-group > #openColumnSelector,
    .input-group > #voiceToggleLabel,
    .input-group > #voiceToggle {
        display: none;
    }
    table {
        font-size: 0.8em;
    }
}

button, input, select {
    padding: 15px;
    border-radius: 10px;
    font-size: 1em;
}

.small-font {
    font-size: 16px;
}

.medium-font {
    font-size: 20px;
}

.large-font {
    font-size: 32px;
}

.dark-mode {
    background-color: #2c3e50;
    color: #ecf0f1;
}

.dark-mode h1 {
    color: #ecf0f1;
}

.fancy-mode {
    background-color: #ffebcd;
    color: #ff69b4;
    font-family: 'Comic Sans MS', cursive, sans-serif;
}

.fancy-mode h1 {
    color: #ff1493;
}

.fancy-mode button, .fancy-mode select, .fancy-mode input {
    background-color: #ff69b4;
    border-color: #ff69b4;
}

.fancy-mode button:hover, .fancy-mode select:hover {
    background-color: #ff1493;
}

.fancy-mode th {
    background-color: #ff69b4;
    color: #fff;
}

.business-mode {
    background-color: #f5f5f5;
    color: #333;
    font-family: 'Arial', sans-serif;
}

.business-mode h1 {
    color: #1c2833;
}

.business-mode button, .business-mode select, .business-mode input {
    background-color: #34495e;
    color: #fff;
    border-color: #34495e;
}

.night-mode {
    background-color: #2f3640;
    color: #dcdde1;
    font-family: 'Helvetica', sans-serif;
}

.night-mode h1 {
    color: #f5f6fa;
}

.night-mode button, .night-mode select, .night-mode input {
    background-color: #353b48;
    color: #f5f6fa;
    border-color: #353b48;
}

.nature-mode {
    background-color: #e8f5e9;
    color: #2e7d32;
    font-family: 'Roboto', sans-serif;
}

.nature-mode h1 {
    color: #1b5e20;
}

.nature-mode button, .nature-mode select, .nature-mode input {
    background-color: #4caf50;
    color: #fff;
    border-color: #4caf50;
}

.ocean-mode {
    background-color: #e0f7fa;
    color: #006064;
    font-family: 'Verdana', sans-serif;
}

.ocean-mode h1 {
    color: #004d40;
}

.ocean-mode button, .ocean-mode select, .ocean-mode input {
    background-color: #00bcd4;
    color: #fff;
    border-color: #00bcd4;
}

#columnSelector {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 2px solid #ccc;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.column-checkbox {
    margin: 5px 0;
}

body.mobile-mode .input-group > #voiceButton,
body.mobile-mode .input-group > #themeToggle,
body.mobile-mode .input-group > #openColumnSelector,
body.mobile-mode .input-group > #voiceToggleLabel,
body.mobile-mode .input-group > #voiceToggle {
    display: none;
}

body.mobile-mode .input-group {
    flex-direction: column;
    align-items: center;
}

body.mobile-mode .input-group > input {
    margin-bottom: 10px;
    width: 100%;
}

body.mobile-mode .input-group .button-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

body.mobile-mode .input-group .button-container > button {
    margin-bottom: 10px;
    width: 49%;
}

body.pc-mode .input-group > #voiceButton,
body.pc-mode .input-group > #themeToggle,
body.pc-mode .input-group > #openColumnSelector,
body.pc-mode .input-group > #voiceToggleLabel,
body.pc-mode .input-group > #voiceToggle {
    display: inline-block;
}

body.pc-mode .input-group {
    flex-direction: row;
    align-items: center;
}

body.pc-mode .input-group > input,
body.pc-mode .input-group > button {
    display: inline-block;
    margin-bottom: 0;
    width: auto;
}
