/* =========================================
   共通設定・変数
========================================= */
:root {
    --primary-color: #4A90E2; 
    --text-color: #333333;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary-color); }
.text-white { color: var(--white); }

/* =========================================
   ヘッダー・ナビゲーション
========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 100;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
}

.site-title a {
    display: flex;
    align-items: center;
}

.global-nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.global-nav a {
    font-weight: bold;
    transition: color 0.3s;
}

.global-nav a:hover {
    color: var(--primary-color);
}

.nav-btn {
    background-color: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 101;
}

.hamburger span {
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    transition: all 0.3s;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger span:nth-child(3) { bottom: 0; }

/* =========================================
   ヒーローセクション
========================================= */
.hero {
    margin-top: 70px;
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.4); 
    z-index: 1;
}

.hero-copy {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.9);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-copy h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

/* =========================================
   クリニック紹介
========================================= */
.intro-content {
    display: flex;
    gap: 40px;
    align-items: center;
}

.intro-image {
    flex: 1;
}

.intro-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

/* =========================================
   診療内容 (CSS Grid)
========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.service-image img {
    width: 100%;
    height: 200px;
    object-fit: cover; 
    border-radius: 4px;
    margin-bottom: 15px;
}

.service-card h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* =========================================
   アクセス
========================================= */
.access-content {
    display: flex;
    gap: 40px;
}

.map-placeholder {
    flex: 2;
}

.iframe-dummy {
    width: 100%;
    height: 300px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 8px;
}

.access-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.access-info h3 {
    margin-bottom: 15px;
}

/* =========================================
   コンタクト・予約
========================================= */
.contact-container {
    text-align: center;
}

.contact-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.2s, opacity 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.btn-reserve {
    background-color: #FF9800; 
    color: var(--white);
}

.btn-contact {
    background-color: var(--white);
    color: var(--primary-color);
}

/* =========================================
   フッター
========================================= */
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* =========================================
   レスポンシブ (スマホ対応)
========================================= */
@media screen and (max-width: 768px) {
    .section { padding: 50px 0; }
    .hero-copy h2 { font-size: 1.8rem; }
    
    .hamburger { display: block; }
    
    .global-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: var(--white);
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        transition: right 0.3s;
        padding-top: 80px;
    }

    .global-nav.active { right: 0; }
    .global-nav ul { flex-direction: column; gap: 20px; }

    .hamburger.active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

    .intro-content,
    .access-content,
    .contact-buttons {
        flex-direction: column;
    }

    .services-grid { grid-template-columns: 1fr; }
}