@charset "utf-8";

/* --- 1. 基本変数とリセット --- */
:root {
    --primary-color: #244a3d; /* 落ち着いた深い緑 */
    --accent-color: #d97b36;  /* 温かみのあるオレンジ */
    --bg-light: #fafaf8;      /* 優しいオフホワイト */
    --text-main: #333;
    --text-sub: #666;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.8;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.bg-white { background: #fff; }

/* --- 2. ヘッダー：PC中央寄せ・スマホ最適化 --- */
.header {
    background: #fff;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: center; /* PCでは中央に寄せる */
    align-items: center;
    gap: 60px; /* ロゴとメニューの間隔 */
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo { 
    font-family: 'Noto Serif JP', serif; 
    font-size: 1.3rem; 
    flex-shrink: 0;
}

.logo a { 
    text-decoration: none; 
    color: var(--primary-color); 
    display: block;
}

.nav ul { display: flex; list-style: none; gap: 40px; }
.nav ul li a { text-decoration: none; color: var(--text-main); font-weight: bold; }

/* ハンバーガーはPCでは非表示 */
.hamburger { display: none; }

/* --- 3. ボタンデザイン --- */
.btn-tel {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    white-space: nowrap;
}

.btn-main {
    display: inline-block;
    background: var(--accent-color);
    color: #fff;
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    margin-top: 20px;
    transition: transform 0.3s;
}

.btn-main:hover {
    transform: translateY(-3px);
}

/* --- 4. ヒーローエリア --- */
.hero {
    height: 70vh;
    min-height: 500px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2)), url('hero-bg.jpg') center/cover;
    background-color: #666;
    display: flex;
    align-items: center;
    color: #fff;
}
.hero-content { padding: 0 10%; }
.hero-content h2 { font-family: 'Noto Serif JP', serif; font-size: 3.5rem; line-height: 1.2; margin: 15px 0; }

/* --- 5. カードデザイン（お悩み） --- */
.section-title { text-align: center; margin-bottom: 50px; font-family: 'Noto Serif JP', serif; color: var(--primary-color); font-size: 2rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.card { background: #fff; padding: 40px 30px; border-radius: 15px; text-align: center; box-shadow: 0 5px 20px rgba(0,0,0,0.05); }
.card-icon { font-size: 3rem; margin-bottom: 20px; }

/* --- 6. 診療案内・アクセス --- */
.access-info { margin-bottom: 30px; }
.address-box { margin-bottom: 25px; padding-bottom: 20px; border-bottom: 1px dashed #ccc; }
.address-box span { font-weight: bold; color: var(--primary-color); margin-right: 5px; }
.tel-display a { color: var(--text-main); text-decoration: none; font-size: 1.2rem; font-weight: bold; }

.schedule-container { overflow-x: auto; margin-bottom: 20px; }
.schedule-table { width: 100%; min-width: 500px; border-collapse: collapse; font-size: 0.9rem; }
.schedule-table th, .schedule-table td { border: 1px solid #e0e0e0; padding: 12px 5px; text-align: center; }
.schedule-table thead th { background-color: #f8f9fa; color: var(--primary-color); }
.schedule-table tbody th { background-color: #f8f9fa; width: 120px; }
.schedule-table .closed { background-color: #fff0f0; color: #d9534f; }
.schedule-table .short { font-size: 0.8rem; color: var(--accent-color); font-weight: bold; }

.info-notes { background-color: #fdfaf5; padding: 20px; border-left: 4px solid var(--accent-color); border-radius: 4px; }
.important-note { font-size: 1.1rem; color: var(--primary-color); margin-bottom: 10px; }
.note-list { list-style: none; padding: 0; }
.note-list li { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 5px; line-height: 1.6; }
.contact-anytime { margin-top: 10px; padding-top: 10px; border-top: 1px solid #eee; font-weight: bold; color: var(--text-main) !important; }

.map-iframe-wrapper { position: relative; width: 100%; padding-top: 75%; }
.map-iframe-wrapper iframe { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border-radius: 10px; }

/* --- 7. 対応症状タグ --- */
.section-desc { text-align: center; margin-bottom: 30px; color: var(--text-sub); }
.symptom-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}
.symptom-tags span {
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}
.symptom-tags span.etc { background: var(--primary-color); color: #fff; border: none; }

/* --- 8. 当院が選ばれる理由 --- */
.feature-layout { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.feature-cards { display: flex; flex-direction: column; gap: 25px; }
.feature-card {
    display: flex; align-items: flex-start; background: var(--bg-light); padding: 25px;
    border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease; border-left: 5px solid var(--primary-color);
}
.feature-card:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }
.feature-num { font-family: 'Noto Serif JP', serif; font-size: 2rem; font-weight: bold; color: var(--accent-color); margin-right: 20px; line-height: 1; opacity: 0.8; }
.feature-body h3 { font-family: 'Noto Serif JP', serif; color: var(--primary-color); font-size: 1.25rem; margin-bottom: 8px; }
.feature-body p { font-size: 0.95rem; color: var(--text-sub); line-height: 1.6; }
.img-decorator { position: relative; padding: 10px; }
.img-decorator::before { content: ""; position: absolute; top: 0; right: 0; width: 100px; height: 100px; border-top: 4px solid var(--accent-color); border-right: 4px solid var(--accent-color); }
.feature-image-side .img-placeholder {
    width: 100%; height: 450px; background: #ddd; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #666; position: relative; z-index: 1; box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* --- 9. 全ページ共通フッター --- */
.footer { background-color: var(--primary-color); color: #fff; padding: 60px 0 20px; margin-top: 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-family: 'Noto Serif JP', serif; font-size: 1.5rem; font-weight: bold; margin-bottom: 20px; letter-spacing: 0.1em; }
.footer-address { font-style: normal; font-size: 0.9rem; line-height: 1.6; margin-bottom: 10px; opacity: 0.9; }
.footer-tel { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.footer-tel a { color: #fff; text-decoration: none; }
.footer-time { font-size: 0.85rem; opacity: 0.8; }
.footer-nav-title { font-weight: bold; margin-bottom: 20px; font-size: 1rem; letter-spacing: 0.1em; border-bottom: 1px solid rgba(255,255,255,0.2); display: inline-block; padding-bottom: 5px; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.7; transition: 0.3s; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.75rem; opacity: 0.6; }

/* --- 10. レスポンシブ設定：ロゴの重なり解消と中央寄せ --- */

@media (max-width: 850px) {
    /* ヘッダー構成の最適化 */
    .header-inner { 
        justify-content: space-between; /* ロゴを左、ボタン類を右 */
        padding: 0 15px;
        gap: 10px;
    }

    /* ロゴが3行にならないよう調整（image_afcfff.pngの修正） */
    .logo { 
        font-size: 1.05rem; /* サイズを下げて1〜2行に収める */
        flex: 1;           /* ロゴに幅を優先的に持たせる */
        line-height: 1.3;
        margin-right: 5px;
    }
    .logo a {
        white-space: normal; /* 折り返しを許可しつつ、重なりを防止 */
        word-break: keep-all; /* 単語の途中で切れないように */
    }

    /* ハンバーガーメニューの表示 */
    .hamburger {
        display: block;
        width: 30px; height: 24px;
        position: relative; z-index: 1100;
        flex-shrink: 0;
    }
    .hamburger span { position: absolute; width: 100%; height: 2px; background: var(--primary-color); transition: 0.3s; }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 11px; }
    .hamburger span:nth-child(3) { top: 22px; }

    /* 開閉時アニメーション */
    .hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); background: #fff; }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); background: #fff; }

    /* メニュー：画面中央寄せ */
    .nav {
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--primary-color);
        display: flex; align-items: center; justify-content: center;
        transition: 0.4s; z-index: 1050;
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; text-align: center; gap: 20px; }
    .nav ul li a { color: #fff; font-size: 1.5rem; }

    /* スマホ版電話ボタン（コンパクト化） */
    .btn-tel.sp-only {
        padding: 6px 10px;
        font-size: 0.75rem;
        flex-shrink: 0;
    }

    /* その他スマホ調整 */
    .grid { grid-template-columns: 1fr; }
    .hero-content h2 { font-size: 2.2rem; }
    .feature-layout { grid-template-columns: 1fr; }
    .feature-image-side { order: -1; margin-bottom: 20px; }
    .feature-image-side .img-placeholder { height: 250px; }
    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-nav ul { grid-template-columns: 1fr; gap: 15px; }
    .footer-nav-title { margin-top: 20px; }
}

@media (min-width: 851px) {
    .pc-only { display: block; }
    .sp-only { display: none; }
    .access-flex { display: flex; gap: 40px; align-items: flex-start; }
    .access-info { flex: 1.2; }
    .map-area { flex: 1; }
    .map-iframe-wrapper { padding-top: 100%; }
}