/* 変数設定: 青を基調とする */
:root {
    --color-primary: #1e71c0; /* メインの青色 */
    --color-secondary: #0056a0; /* 濃い青色 (ホバー時など) */
    --color-accent: #38a169; /* アクセントの緑系 */
    --color-light: #f4f7f9; /* 背景の薄いグレー */
    --color-text: #333333; /* 標準テキスト */
}

/* リセット & ベーススタイル */
body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--color-text);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: white;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section-pad {
    padding: 80px 0;
}
.bg-light {
    background-color: var(--color-light);
}

/* ヘッダー */
.header {
    background-color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}
.logo a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 32px;
}
.nav-list {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-list a {
    text-decoration: none;
    color: var(--color-text);
    padding: 10px 15px;
    display: block;
    transition: color 0.3s;
}
.nav-list a:hover {
    color: var(--color-primary);
}
.logoimg {
    height: auto;
    width: 40px;
    text-align: center;
}

/* ボタン (共通) */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: background-color 0.3s;
    text-align: center;
}
.btn-reserve {
    background-color: var(--color-primary);
    color: white;
}
.btn-reserve:hover {
    background-color: var(--color-secondary);
}

/* メインビジュアル */
.hero {
    height: 450px; /* PCサイズ */
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 40px;
}
.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 30, 70, 0.5); /* 濃い青のオーバーレイ */
}
.hero-content {
    position: relative;
    z-index: 10;
    color: white;
    max-width: auto;
}
.hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    font-weight: 700;
}
.hero-subtext {
    font-size: 14px;
}
.btn-main {
    background-color: white;
    color: var(--color-primary);
    padding: 12px 30px;
    font-size: 18px;
}
.btn-main:hover {
    background-color: var(--color-light);
}

.pc-hidden {
    display: none;
}

/* 特徴 (Grid レイアウト) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
    margin-top: 40px;
}
.feature-icon {
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 15px;
}

/* 診療内容 (Grid レイアウト) */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.service-card {
    display: block;
    text-decoration: none;
    color: var(--color-text);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
    box-shadow: 0 8px 15px rgba(30, 113, 192, 0.15);
    transform: translateY(-5px);
}
.service-image {
    height: 180px;
    background-size: cover;
    background-position: center;
}
.service-card h4 {
    color: var(--color-primary);
    padding: 15px 20px 5px;
    margin: 0;
}
.service-card p {
    padding: 0 20px 20px;
    margin: 0;
    font-size: 14px;
}

/* アクセス＆予約 (Grid レイアウト) */
.access-info {
    padding: 0; /* paddingは中の要素で制御 */
}
.access-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 診療時間:地図/予約 = 2:1 */
    gap: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
.time-table {
    padding: 30px;
    background-color: white;
}
.map-and-contact {
    padding: 30px;
    background-color: var(--color-primary);
}
.map-and-contact p {
    margin-bottom: 10px;
}
.tel {
    font-size: 24px;
    font-weight: 700;
}
.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}
.btn-contact {
    background-color: white;
    color: var(--color-primary);
}
.btn-contact-reserve {
    background-color: var(--color-accent);
    color: white;
}
.btn-contact-reserve:hover {
    background-color: #2c7c50;
}

/* privacy.html 専用のスタイル調整 (style.cssに追加する想定) */
.policy-content h2 {
    border-bottom: 2px solid var(--color-primary);
    padding-bottom: 5px;
    margin-top: 40px;
    color: var(--color-primary);
}
.policy-content h3 {
    margin-top: 30px;
    color: #555;
    border-left: 5px solid var(--color-primary);
    padding-left: 10px;
}
.policy-content ul {
    list-style: disc;
    margin-left: 20px;
    padding-left: 10px;
}
.policy-content p {
    margin-bottom: 15px;
}
.breadcrumb {
    background-color: var(--color-light);
    padding: 15px 0;
    font-size: 14px;
}
.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
}
.breadcrumb span {
    color: #888;
}


/* モダンフッター用スタイル */
.footer-modern {
    background: linear-gradient(135deg, #1e71c0 0%, #003366 100%);
    color: white;
    padding: 10px 0 10px; /* 上部に大きな余白 */
    position: relative;
    overflow: hidden;
}

/* 装飾的な背景（オプション） */
.footer-modern::before {
    content: "";
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
}

/* ブランディングエリア */
.footer-brand {
    flex: 1;
    min-width: 200px;
}

.footer-logo {
    font-size: 2rem;
    font-size: 20px;
    margin-bottom: 10px;
    letter-spacing: 0.05em;
}

.footer-slogan {
    font-size: 1.1rem;
    opacity: 0.8;
    margin-bottom: 30px;
}

.footer-contact-info p {
    margin: 10px 0;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 診療時間カード */
.footer-hours {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 300px;
}

.hours-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px); /* すりガラス効果 */
    padding: 30px;
    border-radius: 15px;
    width: 100%;
    max-width: 320px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hours-label {
    font-weight: 700;
    margin-bottom: 15px;
    font-size: 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    margin: 8px 0;
    font-size: 0.95rem;
}

.hours-note {
    margin-top: 15px;
    font-size: 0.8rem;
    opacity: 0.7;
}

/* 巨大なCTAボタン */
.footer-cta {
    margin: 80px 0 40px;
    text-align: center;
}

.cta-button {
    display: inline-block;
    background: white;
    color: #1e71c0;
    text-decoration: none;
    padding: 20px 60px;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.cta-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
    background: #f0f8ff;
}

.cta-text {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #888;
}

.cta-main {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.copyright {
    font-size: 0.8rem;
    opacity: 0.5;
}


/* モバイル対応 */
/* レスポンシブ対応 (モバイル向け) */
@media (max-width: 768px) {
    .header .nav {
        display: none; /* モバイルではハンバーガーメニューを想定し非表示 */
    }
	.nav {
        position: fixed;
	    top: 0;
	    right: -100%; /* 画面の外に隠す */
	    width: 200px;
	    height: 100%;
	    background: #eee;
	    transition: 0.5s; /* アニメーションの速度 */
	}
	.nav ul{
		display: flex;       /* 横並びにする */
		flex-direction: column; /* 縦に並べる */
    	list-style: none;
	}
	.pc-hidden {
	    display: block; /* PCで非表示部を表示 */
	}
	/* openクラスがついたら表示する */
	.nav.open {
	    display: block;
		right: 0; /* 画面内にスライドしてくる */
	}
    .hero {
        height: 350px;
        text-align: center;
        justify-content: center;
        padding: 0 20px;
    }
    .hero-title {
        font-size: 30px;
    }
    .access-grid-layout {
        grid-template-columns: 1fr; /* 1列にスタック */
    }
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    .footer-hours {
        justify-content: center;
    }
    .footer-contact-info p {
        justify-content: center;
    }
    .cta-button {
        padding: 20px 40px;
        width: 80%;
    }
}
