/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 基本スタイル */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ヘッダー */
.header {
    background: linear-gradient(135deg, #DEE5E2 0%, #c9d5d0 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* ロゴリンクのスタイル */
.logo-link {
    text-decoration: none; /* 下線を消す */
    color: inherit;        /* 親要素の色（白）を継承して変えない */
    cursor: pointer;       /* カーソルを指の形にする */
}

/* ホバーした時も色を変えたくない場合、強制的に白を指定 */
.logo-link:hover,
.logo-link:active,
.logo-link:visited {
    color: white; 
    text-decoration: none;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    cursor: pointer;

}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav a:hover,
.nav a.active {
    opacity: 0.8;
    border-bottom: 2px solid white;
    padding-bottom: 0.5rem;
}

/* ヒーロー セクション */
.hero {
    background: linear-gradient(135deg, #DEE5E2 0%, #c9d5d0 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.1rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* 検索セクション */
.search-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 8px;
}

.search-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

.search-box {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    justify-content: center;
}

.search-input {
    flex: 1;
    max-width: 400px;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #DEE5E2;
}

.search-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, #DEE5E2 0%, #c9d5d0 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(222, 229, 226, 0.3);
}

/* フィルターセクション */
.filter-section {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-group label {
    font-weight: 600;
    color: #555;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    cursor: pointer;
    background-color: white;
    transition: border-color 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #DEE5E2;
}

/* 症状セクション */
.symptoms-section {
    padding: 3rem 0;
}

.symptoms-section h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    color: #333;
}

.symptoms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

/* 症状カード */
.symptom-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.symptom-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.symptom-card-header {
    background: linear-gradient(135deg, #DEE5E2 0%, #c9d5d0 100%);
    color: white;
    padding: 1.5rem;
}

.symptom-card-header h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.symptom-category {
    display: inline-block;
    background: rgba(255, 255, 255, 0.3);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.symptom-card-body {
    padding: 1.5rem;
}

.symptom-description {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.symptom-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.symptom-link {
    display: inline-block;
    color: #DEE5E2;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.symptom-link:hover {
    color: #c9d5d0;
}

/* 情報セクション */
.info-section {
    background: white;
    padding: 3rem 0;
    margin: 2rem 0;
    border-radius: 8px;
    text-align: center;
}

.info-section h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #333;
}

.info-section p {
    font-size: 1rem;
    color: #666;
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto;
}

/* フッター */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }

    .nav ul {
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .search-box {
        flex-direction: column;
    }

    .search-input {
        max-width: 100%;
    }

    .filter-section {
        flex-direction: column;
        gap: 1rem;
    }

    .symptoms-grid {
        grid-template-columns: 1fr;
    }
}

/* 非表示クラス */
.hidden {
    display: none;
}


/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    background: linear-gradient(135deg, #DEE5E2 0%, #c9d5d0 100%);
    color: white;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 8px 8px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.modal-close:hover {
    transform: scale(1.2);
}

.modal-body {
    padding: 2rem;
}

/* 詳細ページスタイル */
.details-page h2 {
    color: #333;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
}

.details-section {
    margin-bottom: 2rem;
}

.details-section h3 {
    color: #DEE5E2;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #DEE5E2;
    padding-bottom: 0.5rem;
}

.details-section p {
    color: #666;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.details-list {
    list-style: none;
    padding-left: 0;
}

.details-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.details-list li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #DEE5E2;
    font-weight: bold;
}

.details-list a {
    color: #DEE5E2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.details-list a:hover {
    color: #c9d5d0;
    text-decoration: underline;
}

/* モーダルのレスポンシブ */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header h2 {
        font-size: 1.2rem;
    }

    .modal-body {
        padding: 1rem;
    }

    .details-section h3 {
        font-size: 1rem;
    }
}
