@charset "utf-8";

/* ==========================================================================
   1. 変数・リセット・基本設定
   ========================================================================== */
:root {
    --primary-color: #244a3d; /* 落ち着いた深い緑 */
    --accent-color: #d97b36;  /* 温かみのあるオレンジ */
    --bg-light: #fafaf8;      /* 優しいオフホワイト */
    --text-main: #333;
    --text-sub: #666;
    --header-green: #55756a;  /* ヒーローエリア用グリーン */
}

* { 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; }
.bg-pale { background-color: #fdfaf5; }

/* 表示切り替え用クラス */
.pc-only { display: block; }
.sp-only { display: none; }

/* ==========================================================================
   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); }

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

.hamburger { display: none; } /* PCでは非表示 */

.btn-tel {
    background: var(--primary-color);
    color: #fff;
    padding: 10px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
}

/* ==========================================================================
   3. ページ共通コンポーネント
   ========================================================================== */
.access-hero {
    background-color: var(--header-green);
    padding: 80px 0;
    text-align: center;
    color: #fff;
}
.eng-title { display: block; font-size: 1rem; letter-spacing: 0.3em; margin-bottom: 10px; }
.access-hero h2 { font-family: 'Noto Serif JP', serif; font-size: 2.5rem; }

.section-title { 
    text-align: center; 
    margin-bottom: 50px; 
    font-family: 'Noto Serif JP', serif; 
    color: var(--primary-color); 
    font-size: 2rem; 
}

/* ==========================================================================
   4. アクセス・診療時間コンテンツ
   ========================================================================== */
/* PC用：診療時間テーブル */
.schedule-wrapper { max-width: 900px; margin: 0 auto; }
.table-scroll { overflow-x: auto; margin-bottom: 30px; }

.schedule-table {
    width: 100%;
    min-width: 600px;
    border-collapse: collapse;
    background: #fff;
}
.schedule-table th, .schedule-table td {
    border: 1px solid #e0e0e0;
    padding: 15px 5px;
    text-align: center;
}
.schedule-table thead th { background: #f8f9fa; color: var(--primary-color); }
.schedule-table tbody th { background: #f8f9fa; font-weight: normal; }
.schedule-table .closed { background: #fff0f0; color: #d9534f; }
.schedule-table .short { color: var(--accent-color); font-weight: bold; font-size: 0.85rem; }

/* スマホ用：1画面に収まるリスト形式 */
.sp-schedule-list {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 30px;
}
.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #eee;
    align-items: center;
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row .day {
    font-weight: bold;
    color: var(--primary-color);
    background: #f8f9fa;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
}
.schedule-row .time {
    font-size: 0.85rem;
    color: var(--text-main);
    text-align: right;
}
.schedule-row.closed { background-color: #fff0f0; }
.schedule-row.closed .day { color: #d9534f; }

/* 注意事項・お知らせ */
.info-notes-box {
    background: #fdfaf5;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
}
.info-notes-box .important { color: var(--primary-color); font-size: 1.2rem; margin-bottom: 15px; }
.note-list { list-style: none; padding: 0; color: var(--text-sub); font-size: 0.95rem; }
.note-list li { margin-bottom: 8px; }
.highlight-text { font-weight: bold; color: var(--text-main); margin-top: 15px; border-top: 1px solid #eee; padding-top: 15px; }

/* 所在地・地図 */
.access-info-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: flex-start;
}
.sub-title { font-family: 'Noto Serif JP', serif; font-size: 1.8rem; color: var(--primary-color); margin-bottom: 20px; }
.address { font-size: 1.1rem; margin-bottom: 15px; line-height: 1.6; }
.tel a { font-size: 1.3rem; font-weight: bold; color: var(--text-main); text-decoration: none; }

.parking-box {
    margin-top: 30px;
    padding: 20px;
    background: #fff;
    border-left: 5px solid var(--accent-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.parking-box h4 { color: var(--accent-color); margin-bottom: 10px; }

.map-frame iframe {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* ==========================================================================
   5. フッター
   ========================================================================== */
.footer { background-color: var(--primary-color); color: #fff; padding: 60px 0 20px; }

.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; 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; }

/* ==========================================================================
   6. メディアクエリ (モバイル対応)
   ========================================================================== */

@media (max-width: 850px) {
    /* 1. PC要素の非表示・SP要素の表示 */
    .pc-only { display: none !important; }
    .sp-only { display: block !important; }

    /* 2. ヘッダーの重なり解消 (image_afcfff.png 修正) */
    .header-inner { 
        justify-content: space-between; 
        padding: 0 15px;
        gap: 10px;
    }

    .logo { 
        font-size: 1.05rem; 
        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; }
    
    /* 3. コンテンツの縦並び */
    .access-info-layout { grid-template-columns: 1fr; gap: 40px; }
    
    .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) {
    .sp-only { display: none !important; }
}