/* 基本設定 */
body {
    font-family: 'Noto Sans JP', sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f7f6;
}

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

a {
    color: #007bff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.2em;
    text-align: center;
    margin-bottom: 30px;
}

h3 {
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    position: relative;
}

h3::after {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: #007bff;
}

section {
    padding: 60px 0;
}

.section-bg {
    background-color: #e9f2f0;
}

/* ボタン */
.button-primary, .button-secondary {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-align: center;
    transition: background-color 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
}

.button-primary {
    background-color: #007bff;
    color: #fff;
}

.button-primary:hover {
    background-color: #0056b3;
    text-decoration: none;
}

.button-secondary {
    background-color: #6c757d;
    color: #fff;
}

.button-secondary:hover {
    background-color: #5a6268;
    text-decoration: none;
}

/* ヘッダー */
header {
    background-color: #fff;
    padding: 20px 0;
    border-bottom: 1px solid #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.site-title {
    margin: 0;
    font-size: 1.8em;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav ul li {
    margin-left: 25px;
}

header nav a {
    color: #333;
    font-weight: bold;
}

/* ヒーローセクション */
#hero {
    background: linear-gradient(to right, #e0f2f7, #c1e7f3);
    color: #2c3e50;
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

#hero .container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap; /* レスポンシブ対応 */
}

.hero-content {
    max-width: 500px;
    text-align: left;
    margin-bottom: 30px; /* レスポンシブ対応 */
}

.hero-content h2 {
    font-size: 2.8em;
    margin-bottom: 20px;
    line-height: 1.3;
    text-align: left; /* ヒーロー内のh2は左寄せ */
}

.hero-content p {
    font-size: 1.1em;
    margin-bottom: 30px;
}

.hero-image {
    width: 400px;
    height: 300px;
    background: url('https://via.placeholder.com/400x300/007bff/ffffff?text=Clinic+Image') no-repeat center center / cover; /* 例の画像 */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* クリニックリスト */
.clinic-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.clinic-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.clinic-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}

.clinic-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    /* 代わりに以下のようにアイコン画像を指定 */
    /* background: url('path/to/icon.png') no-repeat center center / cover; */
}

.clinic-card h4 {
    font-size: 1.4em;
    margin-bottom: 10px;
}

.rating {
    color: #ffc107; /* 星の色 */
    font-size: 1.2em;
    margin-bottom: 15px;
}

.clinic-card p {
    font-size: 0.95em;
    color: #666;
    margin-bottom: 20px;
}

.area-filter {
    text-align: center;
    margin-top: 50px;
}

.area-filter button {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    margin: 0 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.area-filter button:hover {
    background-color: #0056b3;
}

/* FAQセクション */
.faq-item {
    background-color: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-item h4 {
    font-size: 1.2em;
    color: #007bff;
    cursor: pointer;
    margin-bottom: 10px;
}

.faq-item p {
    font-size: 0.95em;
    color: #555;
    padding-left: 15px;
}

/* フッター */
footer {
    background-color: #2c3e50;
    color: #fff;
    padding: 30px 0;
    text-align: center;
    font-size: 0.9em;
}

footer ul {
    list-style: none;
    padding: 0;
    margin-top: 15px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

footer ul li {
    margin: 0 15px;
}

footer ul li a {
    color: #bbb;
}

footer ul li a:hover {
    color: #fff;
    text-decoration: underline;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    h2 {
        font-size: 1.8em;
    }
    .hero-content h2 {
        font-size: 2em;
    }
    header .container {
        flex-direction: column;
    }
    header nav ul {
        margin-top: 15px;
    }
    header nav ul li {
        margin: 0 10px;
    }
    #hero .container {
        flex-direction: column;
    }
    .hero-content {
        text-align: center;
        margin-bottom: 40px;
    }
    .hero-content h2 {
        text-align: center;
    }
    .hero-image {
        width: 100%;
        height: 250px;
    }
    .clinic-list {
        grid-template-columns: 1fr;
    }
    .area-filter button {
        display: block;
        width: calc(100% - 16px);
        margin: 10px auto;
    }
    footer ul li {
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .site-title {
        font-size: 1.5em;
    }
    header nav ul {
        flex-direction: column;
    }
    header nav ul li {
        margin: 5px 0;
    }
    h2 {
        font-size: 1.5em;
    }
    .hero-content h2 {
        font-size: 1.8em;
    }
    section {
        padding: 40px 0;
    }
}