/* 🌟 リセット（余計な余白をなくす） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* ✅ 幅の計算を安定させる */
}

html, body {
    width: 100vw; /* ✅ 画面幅いっぱい */
    height: 100%;
    overflow-x: hidden; /* ✅ 横スクロールを防ぐ */
    font-family: "Arial", sans-serif;
    background-color: #fffaf0;
}

/* 🌟 ヘッダー */
header {
    width: 100vw;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #f0fda6;
}

.logo img {
    height: 60px;
}

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

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: bold;
}

/* 🌟 メインビジュアル */
.main-visual img {
    width: 100vw; /* ✅ 画像をフルワイドに */
    height: auto;
}

/* 🌟 セクション（共通設定） */
section {
    width: 100vw; /* ✅ フルワイド */
    padding: 40px 20px;
    text-align: center;
}

h2 {
    color: #ff9900;
    font-size: 24px;
}

/* 🌟 診療内容・対象年齢・治療方針 */
.service-container {
    width: 100vw;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.service {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    text-align: center;
    width: 250px;
}

.service img {
    width: 100px;
    height: auto;
}

.service h3 {
    color: #ff7eb9;
    font-size: 20px;
    margin: 10px 0;
}

.service p {
    font-size: 14px;
    color: #555;
}

/* 🌟 診療時間（表） */
.schedule-table, .clinic-table {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    border-collapse: collapse;
    margin-top: 30px;
}

.schedule-table th, .schedule-table td,
.clinic-table th, .clinic-table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: center;
}

.clinic-table th {
    background: #ff7eb9;
    color: white;
    width: 30%;
    text-align: center;
}

/* 🌟 フッター */
footer {
    width: 100vw;
    background-color: #ffcc66;
    padding: 20px;
    text-align: center;
}

/* 📌 ✅ スマホ対応 */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    nav ul {
        flex-direction: column;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
    }

    .service-container {
        justify-content: center;
    }

    .service {
        width: 80%; /* 画面幅80% */
    }

    .schedule-table-wrapper, .clinic-table-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .schedule-table th, .schedule-table td,
    .clinic-table th, .clinic-table td {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .service {
        width: 90%;
    }

    .schedule-table th, .schedule-table td,
    .clinic-table th, .clinic-table td {
        font-size: 12px;
        padding: 8px;
    }

    footer {
        font-size: 14px;
    }
}
