/* ==========================================
   カスタムCSS - 青木内科クリニック
   ========================================== */

/* カスタムカラー定義 */
:root {
    --primary-green: #5cb85c;
    --dark-green: #449d44;
    --light-green: #d4edda;
    --accent-green: #28a745;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f8f9fa;
}

/* 基本設定 */
body {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--text-dark);
    line-height: 1.8;
}

/* ヘッダー */
.navbar {
    padding: 1rem 0;
}

.clinic-name {
    font-size: 1.5rem;
    color: var(--primary-green);
    font-weight: bold;
}

.clinic-tagline {
    font-size: 0.75rem;
    color: var(--text-light);
}

.navbar-nav .nav-link {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-green);
}

.navbar-nav .nav-link i {
    margin-right: 0.3rem;
}

/* コンタクトバー */
.contact-bar {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--dark-green) 100%);
    color: white;
}

.contact-bar a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.contact-bar a:hover {
    text-decoration: underline;
}

.phone-number {
    font-size: 1.2rem;
    margin-left: 0.5rem;
}

/* ヒーローセクション */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section .carousel-item {
    height: 500px;
}

.hero-section .carousel-item img {
    object-fit: cover;
    height: 100%;
    width: 100%;
}

.hero-section .carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    padding: 2rem;
    border-radius: 10px;
    bottom: 3rem;
}

.hero-section .carousel-caption h2 {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* セクションタイトル */
.section-title h2 {
    color: var(--primary-green);
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--primary-green);
}

/* お知らせセクション */
.notice-section .alert-info {
    border-left: 5px solid var(--primary-green);
    background-color: var(--light-green);
    border-color: var(--primary-green);
}

/* 診療科目カード */
.medical-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-top: 3px solid var(--primary-green);
}

.medical-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(92, 184, 92, 0.3) !important;
}

.icon-circle {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.icon-circle i {
    font-size: 2rem;
    color: white;
}

.medical-card .card-title {
    color: var(--primary-green);
    font-weight: bold;
    margin-top: 1rem;
}

/* 診療時間テーブル */
.hours-table {
    margin-bottom: 0;
}

.hours-table th {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    color: white;
    font-weight: 600;
    padding: 1rem;
}

.hours-table td {
    padding: 1rem;
    vertical-align: middle;
}

.hours-table .open {
    background-color: var(--light-green);
    color: var(--dark-green);
    font-weight: bold;
}

.hours-table .closed {
    background-color: #f8d7da;
    color: #dc3545;
    font-weight: bold;
}

.hours-table .weekend {
    background-color: #fff3cd;
}

/* クイックアクセスカード */
.access-card {
    transition: transform 0.3s ease;
    border: none;
    border-radius: 10px;
}

.access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

.access-card img {
    max-height: 200px;
    object-fit: cover;
}

/* 施設カード */
.facility-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-top: 3px solid var(--primary-green);
}

.facility-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(92, 184, 92, 0.3) !important;
}

.facility-card .card-title {
    color: var(--primary-green);
    font-weight: bold;
}

/* フッター */
.footer {
    background: linear-gradient(135deg, var(--dark-green) 0%, #2d6a2d 100%);
    color: white;
}

.footer h5 {
    font-weight: bold;
    margin-bottom: 1rem;
}

.footer a:hover {
    color: white !important;
    text-decoration: underline;
}

/* スクロールトップボタン */
#scrollToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    z-index: 1000;
    width: 50px;
    height: 50px;
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

#scrollToTop:hover {
    transform: scale(1.1);
}

/* ボタンスタイル */
.btn-success {
    background: linear-gradient(135deg, var(--primary-green), var(--dark-green));
    border: none;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--dark-green), var(--primary-green));
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(92, 184, 92, 0.4);
}

.btn-outline-success {
    color: var(--primary-green);
    border-color: var(--primary-green);
    transition: all 0.3s ease;
}

.btn-outline-success:hover {
    background-color: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-2px);
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .clinic-name {
        font-size: 1.2rem;
    }
    
    .clinic-tagline {
        font-size: 0.65rem;
    }
    
    .hero-section .carousel-item {
        height: 300px;
    }
    
    .hero-section .carousel-caption h2 {
        font-size: 1.5rem;
    }
    
    .hero-section .carousel-caption p {
        font-size: 0.9rem;
    }
    
    .contact-bar {
        font-size: 0.85rem;
    }
    
    .phone-number {
        font-size: 1rem;
    }
    
    .contact-bar .col-md-6 {
        margin-bottom: 0.5rem;
    }
}

@media (max-width: 576px) {
    .hours-table {
        font-size: 0.85rem;
    }
    
    .hours-table th,
    .hours-table td {
        padding: 0.5rem 0.25rem;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

/* ページ固有のスタイル */

/* クリニック案内ページ */
.greeting-section img {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.greeting-text {
    line-height: 2;
    text-align: justify;
}

/* 院内施設案内ページ */
.facility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.facility-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.facility-item:hover img {
    transform: scale(1.05);
}

/* アクセスページ */
.map-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 10px;
}

/* コンタクトページ */
.contact-info-card {
    border-left: 5px solid var(--primary-green);
}

.contact-info-card i {
    font-size: 2rem;
    color: var(--primary-green);
}

/* 施設紹介ページ */
.facility-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.facility-gallery img:hover {
    transform: scale(1.05);
}

.facility-details img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

/* パートナーシップページ */
.partnership-card {
    border-left: 4px solid var(--primary-green);
    transition: all 0.3s ease;
}

.partnership-card:hover {
    box-shadow: 0 5px 20px rgba(92, 184, 92, 0.2);
    transform: translateX(5px);
}

.partnership-card h4 {
    color: var(--primary-green);
}

/* 採用情報ページ */
.recruit-table th {
    font-weight: 600;
    vertical-align: middle;
}

.recruit-table td {
    vertical-align: middle;
}

.recruit-table tr:hover {
    background-color: rgba(92, 184, 92, 0.05);
}

/* 予防接種ページ */
.vaccination-table th {
    font-weight: 600;
    vertical-align: middle;
}

.vaccination-table td {
    vertical-align: middle;
    font-size: 1.1rem;
}

.vaccination-table .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-green);
}

.vaccination-table .price.discount {
    color: #dc3545;
}

.vaccination-table tr:hover {
    background-color: rgba(92, 184, 92, 0.05);
}

/* お知らせセクション */
.notice-section {
    background-color: #f8f9fa;
}

.news-item {
    transition: all 0.3s ease;
}

.news-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.news-item h6 {
    color: var(--dark-green);
    font-weight: 600;
}
