/*
Theme Name: Clinic Elementor Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: Elementor対応のクリニック向けテーマ
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: clinic-theme
*/

/* ========================================
   リセット & 基本スタイル
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
    color: #333;
    line-height: 1.8;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========================================
   ヘッダー
======================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo a {
    font-size: 24px;
    font-weight: bold;
    color: #0066cc;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    padding: 10px 0;
    display: block;
    position: relative;
    font-weight: 500;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: #e74c3c;
    transition: width 0.3s ease;
}

.main-navigation a:hover::after {
    width: 100%;
}

.header-cta {
    display: flex;
    gap: 15px;
}

.btn-reserve, .btn-tel {
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: all 0.3s ease;
}

.btn-reserve {
    background: #e74c3c;
    color: #fff;
	font-size: 18px;
}

.btn-reserve:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231,76,60,0.3);
}

.btn-tel {
    background: #2ecc71;
    color: #fff;
	font-size: 16px;
}

.btn-tel:hover {
    background: #27ae60;
}

/* ハンバーガーメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.mobile-menu-toggle span {
    width: 30px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
}

/* ========================================
   モーダル（ウェブ予約ポップアップ）
======================================== */
.reservation-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.reservation-modal.active {
    display: flex;
}

.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    position: relative;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 30px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: #333;
}

.modal-content h3 {
    color: #e74c3c;
    margin-bottom: 20px;
    font-size: 22px;
}

.modal-content .notice-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
}

.modal-content .notice-box p {
    margin-bottom: 10px;
}

.modal-content .btn-proceed {
    background: #e74c3c;
    color: #fff;
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    width: 100%;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.modal-content .btn-proceed:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

/* ========================================
   スクロールアニメーション要素
======================================== */
.scroll-fade-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s ease;
}

.scroll-fade-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.scroll-fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s ease;
}

.scroll-fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

/* ========================================
   コンテナー
======================================== */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
}

/* ========================================
   フッター
======================================== */
.site-footer {
    background: #333;
    color: #fff;
    padding: 40px 20px 20px;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-info {
    margin-bottom: 30px;
}

.footer-info h3 {
    margin-bottom: 15px;
}

.footer-copyright {
    padding-top: 20px;
    border-top: 1px solid #555;
    font-size: 14px;
}

/* ========================================
   レスポンシブ（タブレット）
======================================== */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-navigation {
        display: none;
        width: 100%;
        order: 3;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        padding: 20px 0;
    }
    
    .main-navigation li {
        border-bottom: 1px solid #eee;
    }
    
    .main-navigation a {
        padding: 15px 0;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .header-cta {
        flex-direction: column;
        gap: 10px;
    }
    
    .modal-content {
        padding: 30px 20px;
    }
}

/* ========================================
   レスポンシブ（スマートフォン）
======================================== */
@media (max-width: 480px) {
    .site-logo a {
        font-size: 18px;
    }
    
    .btn-reserve, .btn-tel {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .content-wrapper {
        padding: 40px 15px;
    }
}