@charset "UTF-8";

:root {
    --primary: #00a1e4;   /* 信頼の青 */
    --secondary: #66ccff; /* 明るい水色 */
    --accent: #ff9900;    /* 温かみのあるオレンジ */
    --text: #4a4a4a;      /* 優しいグレーの文字色 */
    --bg-light: #f0f9ff;  /* 薄い水色の背景 */
    --white: #ffffff;
    --round: 30px;        /* 角丸の半径 */
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    color: var(--text);
    line-height: 1.9;
    margin: 0;
    background-color: var(--white);
    padding-bottom: 70px; /* スマホ固定ボタンが重ならないように下を空ける */
}

.container {
    width: 92%;
    max-width: 1000px;
    margin: 0 auto;
}

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; padding: 0; margin: 0; }
img { max-width: 100%; height: auto; border-radius: var(--round); }

/* ヘッダー */
header {
    background: rgba(255, 255, 255, 0.98);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 161, 228, 0.05);
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.3rem; font-weight: bold; color: var(--primary); }
.nav-links { display: flex; gap: 15px; align-items: center; }
.nav-links a { color: var(--text); font-weight: bold; font-size: 0.9rem; }
.nav-links a:hover { color: var(--primary); }

/* ヒーローエリア（リッチ版） */
.hero {
    padding: 60px 0 80px;
    background: linear-gradient(to bottom, var(--white), var(--bg-light));
    border-radius: 0 0 80px 80px;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.2rem; color: var(--primary); line-height: 1.4; margin-bottom: 20px; }
.hero-img { flex: 1; box-shadow: 0 10px 30px rgba(0, 161, 228, 0.1); border-radius: var(--round); }

/* セクション共通 */
.section { padding: 80px 0; }
.section-title {
    text-align: center; font-size: 1.8rem; color: var(--primary); margin-bottom: 50px;
    position: relative;
}
.section-title::after {
    content: ''; display: block; width: 40px; height: 3px; background: var(--accent);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* 特長エリア（Zパターン） */
.feature-row {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 80px;
}
/* 偶数番目だけ左右反転 */
.feature-row:nth-child(even) { flex-direction: row-reverse; }

.feature-text { flex: 1; }
.feature-text h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 20px; }

.feature-img {
    flex: 1;
    height: 300px;
    border-radius: var(--round);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    background-size: cover;
    background-position: center;
}

/* 診療時間表（スマホ横スクロール対応） */
.table-wrapper {
    overflow-x: auto;
    border-radius: 15px;
    border: 2px solid var(--primary);
    background: var(--white);
}

.time-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* スマホでもこの幅を確保してスクロールさせる */
}

.time-table th, .time-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid var(--bg-light);
}

.time-table th { background: var(--primary); color: var(--white); }
.sun { color: #ff0000; background: #fff0f0; }

/* Q&A（アコーディオン） */
details {
    margin-bottom: 15px;
    border: 1px solid #e0f2fe;
    border-radius: 15px;
    background: var(--white);
    padding: 15px 20px;
    transition: 0.3s;
}
details[open] { background: var(--bg-light); border-color: var(--primary); }

summary {
    font-weight: bold;
    color: var(--primary);
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center;
    list-style: none; /* デフォルトの▶︎を消す */
}
summary::-webkit-details-marker { display: none; } /* Safari用 */
summary::after { content: '＋'; font-size: 1.2rem; color: var(--secondary); }
details[open] summary::after { content: '－'; color: var(--primary); }
details p { margin-top: 15px; padding-top: 15px; border-top: 1px solid #e0f2fe; color: var(--text); }

/* 共通ボタン */
.btn-reserve {
    background: var(--accent);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    display: inline-block;
    box-shadow: 0 4px 0 #cc7a00;
    transition: 0.2s;
}
.btn-reserve:hover { transform: translateY(2px); box-shadow: 0 2px 0 #cc7a00; }

/* スマホ用固定フッターボタン */
.fixed-cta {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    display: flex;
    z-index: 1001;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}
.cta-item {
    flex: 1;
    text-align: center;
    padding: 15px 0;
    font-weight: bold;
    color: var(--white);
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.cta-phone { background: var(--secondary); }
.cta-web { background: var(--accent); }

/* レスポンシブ対応（重要） */
@media (max-width: 768px) {
    .nav-links { display: none; } /* スマホではヘッダーメニューを隠す */
    
    .hero { padding: 40px 0 60px; border-radius: 0 0 50px 50px; }
    .hero h1 { font-size: 1.8rem; }
    
    /* ▼▼▼ ここが修正ポイント（余白追加） ▼▼▼ */
    .hero-flex { flex-direction: column; }
    .hero-img { margin-top: 30px; width: 100%; }
    /* ▲▲▲▲▲▲ */

    .feature-row, .feature-row:nth-child(even) {
        flex-direction: column; /* スマホでは常に縦並び */
        gap: 30px;
        margin-bottom: 60px;
    }
    .feature-img { width: 100%; height: 220px; }
    .feature-text { order: 2; } /* 画像を上に、テキストを下に */
    .feature-img { order: 1; }
}

/* PCでは固定ボタンを隠す */
@media (min-width: 769px) {
    .fixed-cta { display: none; }
}