/* 基本リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Noto Sans JP', Arial, sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.6;
    transition: background-color 0.3s, color 0.3s;
}

body.dark-mode {
    background-color: #1a1a1a;
    color: #e0e0e0;
}

/* ヘッダー */
header {
    text-align: center;
    padding: 20px;
    position: relative;
}

h1 {
    font-size: 2rem;
    color: #1a73e8;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dark-mode h1 {
    color: #4a90e2;
}

/* テーマトグル */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-toggle input {
    display: none;
}

.theme-toggle label {
    width: 40px;
    height: 20px;
    background-color: #ccc;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    transition: background-color 0.3s;
}

.theme-toggle label::after {
    content: '';
    width: 16px;
    height: 16px;
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: transform 0.3s;
}

.theme-toggle input:checked + label {
    background-color: #4a90e2;
}

.theme-toggle input:checked + label::after {
    transform: translateX(20px);
}

/* メインコンテンツ */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.intro {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.dark-mode .intro {
    background-color: #2a2a2a;
}

.intro p {
    margin-bottom: 15px;
}

.intro a {
    color: #1a73e8;
    text-decoration: none;
}

.intro a:hover {
    text-decoration: underline;
}

.dark-mode .intro a {
    color: #4a90e2;
}

/* コンテナ */
.container {
    display: flex;
    gap: 20px;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
}

/* カード */
.card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 100%;
    transition: transform 0.3s;
}

.dark-mode .card {
    background-color: #2a2a2a;
}

.card h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1a73e8;
}

.dark-mode .card h2 {
    color: #4a90e2;
}

/* アコーディオン */
.accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header i {
    transition: transform 0.3s;
}

.accordion-header.collapsed i {
    transform: rotate(-90deg);
}

.accordion-content {
    max-height: 1000px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
}

.accordion-content.collapsed {
    max-height: 0;
}

/* 条件入力 */
.conditionDiv {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(-20px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

label {
    font-weight: 500;
    color: #555;
    white-space: nowrap; /* ラベルの折り返しを防止 */
}

.dark-mode label {
    color: #ccc;
}

select {
    width: 100%;
    max-width: 400px;
    padding: 10px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s, box-shadow 0.3s;
}

.dark-mode select {
    background-color: #333;
    border-color: #555;
    color: #e0e0e0;
}

select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 8px rgba(26, 115, 232, 0.3);
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

/* ボタン */
.btn {
    padding: 10px 20px;
    font-size: 1rem;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #1a73e8, #4a90e2);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: 10px 0;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

/* 選択条件表示 */
#selectedConditions {
    font-size: 1rem;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 8px;
    background-color: #f0f9ff;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.dark-mode #selectedConditions {
    background-color: #2a3a4a;
}

/* 結果表示 */
#result {
    font-size: 1.1rem;
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    white-space: pre-wrap;
    animation: fadeIn 0.5s ease-in;
}

.dark-mode #result {
    background-color: #333;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* フッター */
footer {
    text-align: center;
    padding: 20px;
    font-size: 0.9rem;
}

footer a {
    color: #1a73e8;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.dark-mode footer a {
    color: #4a90e2;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .card {
        width: 100%;
    }
    select, .btn {
        font-size: 0.95rem;
    }
}

@media (min-width: 769px) {
    .container {
        display: flex;
        justify-content: space-between;
    }
    .card {
        width: 48%;
    }
}














