@charset "UTF-8";

/* ========================================================
   変数定義・リセット (モダンで洗練されたデザイン)
======================================================== */
:root {
    --primary-color: #1A5276; /* 信頼感のあるメディカルネイビー */
    --primary-hover: #154360;
    --accent-color: #27AE60;  /* 安心感のあるグリーン */
    --accent-hover: #1E8449;
    --text-main: #333333;
    --text-light: #666666;
    --bg-light: #F4F8F9;      /* 清潔感のある極薄いブルーグレー */
    --white: #FFFFFF;
    --border-color: #E5E8E8;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0; padding: 0;
    background-color: var(--white);
    font-size: 16px;
    letter-spacing: 0.05em;
}

a { text-decoration: none; color: var(--primary-color); transition: 0.3s ease-in-out; }
a:hover { opacity: 0.7; }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.mb-40 { margin-bottom: 40px; }

/* ========================================================
   アニメーション (ふわっと浮かび上がる動き)
======================================================== */
.fade-in-up {
    animation: fadeInUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================================
   ボタン共通
======================================================== */
.btn-primary,.btn-secondary,.btn-map,.btn-recruit,.btn-outline {
    display: inline-block;
    padding: 15px 35px;
    border-radius: 40px;
    font-size: 1.1rem;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.btn-primary { background-color: var(--primary-color); color: var(--white); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--white); }
.btn-secondary { background-color: var(--accent-color); color: var(--white); }
.btn-secondary:hover { background-color: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.15); color: var(--white); }
.btn-outline { border: 2px solid var(--primary-color); color: var(--primary-color); background-color: var(--white); }
.btn-outline:hover { background-color: var(--primary-color); color: var(--white); }

/* ========================================================
   ヘッダー & メガメニュー
======================================================== */
.site-header { border-bottom: 1px solid var(--border-color); position: sticky; top: 0; background: rgba(255,255,255,0.95); backdrop-filter: blur(5px); z-index: 1000; }
.header-inner { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: 0 auto; padding: 15px 20px; }
.site-catch { font-size: 0.85rem; color: var(--text-light); margin: 0 0 5px 0; }
.site-logo { margin: 0; font-size: 1.6rem; letter-spacing: 1px; }

.header-contact { text-align: right; }
.contact-wrap { display: inline-flex; flex-direction: column; align-items: flex-end; }
.tel-label { font-size: 0.85rem; font-weight: bold; color: var(--text-light); }
.tel-number { font-size: 1.8rem; font-weight: bold; font-family: 'Arial', sans-serif; color: var(--primary-color); line-height: 1; margin-top: 5px; display: inline-flex; align-items: center; }
.tel-number::before { content: '📞'; font-size: 1.2rem; margin-right: 5px; }

.global-nav { background-color: var(--white); border-top: 1px solid var(--border-color); }
.global-nav ul { list-style: none; display: flex; justify-content: center; margin: 0; padding: 0; }
.global-nav > ul > li { position: relative; }
.global-nav > ul > li > a { display: block; padding: 18px 25px; color: var(--text-main); font-weight: bold; font-size: 1rem; transition: background 0.3s; }
.global-nav > ul > li > a:hover { background: var(--bg-light); color: var(--primary-color); }
.arrow { font-size: 0.8rem; margin-left: 5px; color: var(--text-light); }

/* メガメニュー実装 */
.has-child:hover.mega-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.mega-menu {
    position: absolute; top: 100%; left: 0;
    background: var(--white);
    width: 250px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    border-radius: 0 0 8px 8px;
    opacity: 0; visibility: hidden;
    transform: translateY(15px);
    transition: all 0.3s ease;
    z-index: 2000;
}
.mega-menu li a { display: block; padding: 15px 20px; color: var(--text-main); border-bottom: 1px solid var(--border-color); font-size: 0.95rem; font-weight: bold; }
.mega-menu li:last-child a { border-bottom: none; }
.mega-menu li a:hover { background: var(--bg-light); color: var(--primary-color); padding-left: 25px; }

/* ========================================================
   ヒーローセクション (KVスライダー)
======================================================== */
.kv-area { position: relative; height: 550px; overflow: hidden; background-color: #333; }
.kv-slider { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.kv-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    animation: kvFade 18s infinite;
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; color: #fff; font-weight: bold; letter-spacing: 2px;
    background-size: cover; background-position: center;
}
.slide1 { background-color: #7F8C8D; animation-delay: 0s; }
.slide2 { background-color: #95A5A6; animation-delay: 6s; }
.slide3 { background-color: #BDC3C7; animation-delay: 12s; }

@keyframes kvFade {
    0% { opacity: 0; transform: scale(1.05); }
    10% { opacity: 1; transform: scale(1.02); }
    33% { opacity: 1; transform: scale(1); }
    43% { opacity: 0; transform: scale(0.98); }
    100% { opacity: 0; transform: scale(0.98); }
}

.kv-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255,255,255,0.3);
    z-index: 5;
}
.kv-copy {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    z-index: 10; text-align: center; width: 90%; max-width: 900px;
    background: rgba(255,255,255,0.9);
    padding: 50px 30px; border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}
.kv-copy h2 { font-size: 2.4rem; color: var(--primary-color); margin: 0 0 20px 0; line-height: 1.4; font-weight: 800; }
.kv-copy p { font-size: 1.1rem; color: var(--text-main); margin: 0; font-weight: bold; }

/* ========================================================
   セクション共通
======================================================== */
.bg-light { background-color: var(--bg-light); padding: 80px 0; }
.section-title { text-align: center; font-size: 2rem; color: var(--primary-color); margin: 0 0 40px 0; font-weight: bold; position: relative; }
.section-title::after { content: ''; display: block; width: 60px; height: 3px; background: var(--accent-color); margin: 15px auto 0; }

/* ========================================================
   ごあいさつ
======================================================== */
.greeting-box { 
    display: flex; gap: 40px; align-items: center; 
    max-width: 950px; margin: 0 auto; 
    background: var(--white); padding: 40px; 
    border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.03); 
}
.greeting-text { flex: 1.5; }
.greeting-lead { font-size: 1.3rem; color: var(--primary-color); font-weight: bold; margin-bottom: 25px; line-height: 1.6; }
.doctor-signature { text-align: right; margin-top: 30px; border-top: 1px dashed var(--border-color); padding-top: 20px; }
.doc-title { margin: 0 0 5px 0; font-size: 0.9rem; color: var(--text-light); }
.doc-name { margin: 0; font-size: 1.5rem; font-weight: bold; color: var(--primary-color); }

.greeting-image { flex: 1; }
.greeting-image.image-dummy { 
    background: #EAECEE; height: 350px; border-radius: 8px; 
    display: flex; align-items: center; justify-content: center; 
    color: #7F8C8D; font-weight: bold; border: 1px solid var(--border-color);
}

/* ========================================================
   新着情報 (タブ付き)
======================================================== */
.news-section { padding: 80px 20px; }
.news-tabs { display: flex; justify-content: center; gap: 15px; margin-bottom: 30px; flex-wrap: wrap;}
.tab-btn { padding: 8px 25px; border-radius: 30px; background: var(--bg-light); color: var(--text-main); font-weight: bold; border: 1px solid var(--border-color); }
.tab-btn.active,.tab-btn:hover { background: var(--primary-color); color: var(--white); border-color: var(--primary-color); }

.news-list { list-style: none; padding: 0; max-width: 850px; margin: 0 auto; border-top: 2px solid var(--primary-color); }
.news-list li { border-bottom: 1px solid var(--border-color); padding: 20px 10px; display: flex; align-items: center; gap: 20px; }
.news-list time { color: var(--text-light); font-weight: bold; font-family: Arial, sans-serif; white-space: nowrap;}
.cat-label { padding: 4px 12px; border-radius: 4px; font-size: 0.8rem; color: var(--white); font-weight: bold; white-space: nowrap; }
.cat-info { background: #34495E; }
.cat-ortho { background: var(--primary-color); }
.cat-blog { background: var(--accent-color); }
.news-list a { flex: 1; color: var(--text-main); font-weight: bold; }
.news-list a:hover { color: var(--primary-color); }

/* ========================================================
   症状喚起
======================================================== */
.symptoms-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.symptom-item { background: var(--white); padding: 25px; border-radius: 8px; font-weight: bold; font-size: 1.1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.03); border: 1px solid var(--border-color); display: flex; align-items: center; }
.symptom-item.check { color: var(--accent-color); font-size: 1.5rem; margin-right: 15px; }

/* ========================================================
   2大コンテンツ (整形外科 & リハビリ)
======================================================== */
.departments-section { padding: 80px 20px; }
.dept-card { display: flex; gap: 40px; margin-bottom: 50px; align-items: stretch; background: var(--white); border-radius: 12px; box-shadow: 0 5px 25px rgba(0,0,0,0.06); overflow: hidden; }
.dept-card.reverse { flex-direction: row-reverse; }
.dept-image { flex: 1; background: #BDC3C7; min-height: 300px; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: bold; font-size: 1.2rem;}
.dept-text { flex: 1.2; padding: 40px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.dept-label { display: inline-block; font-size: 0.85rem; font-weight: bold; color: var(--primary-color); letter-spacing: 2px; text-transform: uppercase; margin-bottom: 10px; }
.rehab-label { color: var(--accent-color); }
.dept-text h3 { font-size: 1.8rem; margin: 0 0 20px 0; color: var(--text-main); }
.dept-text p { margin-bottom: 25px; font-size: 1.05rem; }

/* ========================================================
   アクセス・診療時間
======================================================== */
.access-section { padding: 80px 0; }
.access-grid { display: flex; gap: 40px; background: var(--white); border-radius: 12px; padding: 40px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); border: 1px solid var(--border-color); }
.access-map { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.map-dummy { background: #EAECEE; height: 100%; min-height: 300px; border-radius: 8px; display: flex; align-items: center; justify-content: center; color: #7F8C8D; text-align: center; font-weight: bold; line-height: 1.6;}
.btn-map { background: #34495E; color: var(--white); padding: 12px; text-align: center; border-radius: 8px; font-weight: bold; }
.btn-map:hover { background: #2C3E50; }

.access-info { flex: 1.2; }
.access-info h3 { font-size: 1.5rem; color: var(--primary-color); margin: 0 0 20px 0; border-bottom: 2px solid var(--border-color); padding-bottom: 10px; }
.access-info p { margin: 0 0 10px 0; font-size: 1.1rem; font-weight: bold;}
.access-info.icon { margin-right: 10px; }

.time-table-wrap { margin-top: 25px; }
.schedule-table { width: 100%; border-collapse: collapse; text-align: center; }
.schedule-table th,.schedule-table td { border: 1px solid var(--border-color); padding: 12px 5px; }
.schedule-table th { background: var(--primary-color); color: var(--white); font-weight: normal; font-size: 0.95rem; }
.schedule-table td { font-weight: bold; }
.schedule-note { font-size: 0.85rem; color: var(--text-light); margin-top: 10px!important; font-weight: normal!important;}

/* ========================================================
   採用バナー
======================================================== */
.recruit-banner-area { background: #2C3E50; color: var(--white); padding: 60px 20px; border-top: 5px solid var(--accent-color); }
.recruit-target { font-size: 0.95rem; color: var(--accent-color); font-weight: bold; margin-bottom: 10px; letter-spacing: 1px; }
.recruit-title { font-size: 1.8rem; margin: 0 0 15px 0; color: #F1C40F; }
.btn-recruit { background: var(--accent-color); color: var(--white); margin-top: 15px; }

/* ========================================================
   フッター (注意事項・決済追加)
======================================================== */
.site-footer { background: #F8F9F9; padding-top: 60px; color: var(--text-main); border-top: 1px solid var(--border-color); }

.footer-guidance { display: flex; gap: 40px; margin-bottom: 50px; }
.guide-box { flex: 1; background: var(--white); padding: 30px; border-radius: 8px; border: 1px solid var(--border-color); }
.guide-box h4 { color: var(--primary-color); margin: 0 0 15px 0; font-size: 1.1rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 10px; display: inline-block;}
.reservation-dl dt { font-weight: bold; color: var(--text-main); margin-top: 10px; }
.reservation-dl dd { margin: 0 0 15px 0; font-size: 0.95rem; color: var(--text-light); }
.notice-list { margin: 0; padding-left: 20px; font-size: 0.9rem; color: var(--text-light); }
.notice-list li { margin-bottom: 8px; }

.payment-info { text-align: center; margin-bottom: 50px; }
.payment-dummy-img { background: #EAECEE; border: 1px dashed #BDC3C7; max-width: 500px; height: 60px; margin: 0 auto 15px; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; color: #7F8C8D; border-radius: 4px; }
.payment-info p { margin: 0; font-size: 0.9rem; font-weight: bold; }

.footer-bottom { display: flex; justify-content: space-between; align-items: flex-end; border-top: 1px solid var(--border-color); padding-top: 30px; margin-bottom: 20px;}
.footer-logo-area h2 { margin: 0 0 5px 0; font-size: 1.3rem; color: var(--primary-color); }
.footer-tel { margin: 0; font-size: 1.2rem; font-weight: bold; }
.footer-links a { color: var(--text-main); font-size: 0.9rem; font-weight: bold; }

.copyright { text-align: center; font-size: 0.85rem; color: var(--text-light); padding-bottom: 30px; margin: 0; }

/* ========================================================
   下層ページ共通スタイル
======================================================== */
.pt-80 { padding-top: 80px; }
.pb-80 { padding-bottom: 80px; }
.page-header { 
    padding: 60px 20px; 
    text-align: center;
    background: linear-gradient(135deg, var(--primary-color), #2980B9); 
    color: var(--white);
}
.page-title { font-size: 2.2rem; margin: 0 0 10px 0; font-weight: bold;}
.page-desc { font-size: 1.1rem; opacity: 0.9; margin: 0;}

.image-dummy {
    background: #EAECEE; border-radius: 8px; display: flex; align-items: center; justify-content: center;
    color: #7F8C8D; font-weight: bold; border: 1px solid var(--border-color); text-align: center;
    padding: 20px; box-sizing: border-box; line-height: 1.5;
}
.image-dummy.lg { min-height: 350px; font-size: 1.1rem; }
.image-dummy.md { min-height: 250px; font-size: 1rem; }
.image-dummy.sm { min-height: 180px; font-size: 0.9rem; }

/* ========================================================
   下層ページ追加スタイル（当院について用）
======================================================== */
.overview-table { width: 100%; max-width: 800px; margin: 0 auto; border-collapse: collapse; background: var(--white); box-shadow: 0 4px 15px rgba(0,0,0,0.03); border-radius: 8px; overflow: hidden;}
.overview-table th,.overview-table td { padding: 20px; border-bottom: 1px solid var(--border-color); }
.overview-table th { width: 30%; background: var(--primary-color); color: var(--white); font-weight: bold; text-align: left; }
.overview-table td { width: 70%; color: var(--text-main); font-weight: bold; }
.overview-table tr:last-child th,.overview-table tr:last-child td { border-bottom: none; }

/* ========================================================
   下層ページ追加スタイル（医師・スタッフ紹介用）
======================================================== */
/* 医師紹介 */
.doctor-block {
    display: flex; gap: 40px; margin-bottom: 60px;
    background: var(--white); padding: 40px; border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.04); border: 1px solid var(--border-color);
}
.doctor-block.reverse { flex-direction: row-reverse; }
.doctor-img-area { flex: 1; text-align: center; }
.doctor-info-area { flex: 2; }
.doc-name-wrap { border-bottom: 2px solid var(--primary-color); padding-bottom: 15px; margin-bottom: 20px; }
.doc-position { font-size: 0.95rem; color: var(--accent-color); font-weight: bold; margin: 0 0 5px 0; }
.doc-name-main { font-size: 1.8rem; color: var(--primary-color); margin: 0; font-weight: bold;}
.doc-message { font-size: 1.05rem; margin-bottom: 30px; line-height: 1.8; }

.doc-history-box { display: flex; gap: 30px; }
.doc-history,.doc-cert { flex: 1; }
.doc-list-title { background: var(--bg-light); color: var(--primary-color); padding: 8px 15px; font-weight: bold; border-left: 4px solid var(--primary-color); margin-bottom: 15px; font-size: 1.05rem; }
.doc-list { list-style: none; padding: 0; margin: 0; font-size: 0.95rem; }
.doc-list li { margin-bottom: 10px; padding-left: 1.2em; position: relative; }
.doc-list li::before { content: '■'; position: absolute; left: 0; color: var(--accent-color); font-size: 0.8rem; top: 3px;}

/* スタッフ紹介 */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 30px; }
.staff-card { background: var(--white); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.04); border: 1px solid var(--border-color); }
.staff-img { background: #EAECEE; height: 220px; display: flex; align-items: center; justify-content: center; color: #7F8C8D; font-weight: bold; text-align: center; padding: 20px;}
.staff-info { padding: 25px; text-align: center; }
.staff-catch { display: inline-block; font-size: 0.85rem; color: var(--white); background: var(--accent-color); padding: 4px 12px; border-radius: 20px; font-weight: bold; margin-bottom: 10px; }
.staff-role { font-size: 0.9rem; color: var(--text-light); margin: 0 0 5px 0; }
.staff-name { font-size: 1.3rem; color: var(--primary-color); font-weight: bold; margin: 0; }

/* 関連リンク訴求 */
.link-nav-section { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap;}
.link-nav-card { flex: 1; min-width: 230px; background: var(--primary-color); color: var(--white); text-align: center; padding: 30px 20px; border-radius: 12px; transition: 0.3s; display: block; box-shadow: 0 4px 15px rgba(0,0,0,0.1); border: 2px solid transparent;}
.link-nav-card:hover { transform: translateY(-5px); color: var(--white); opacity: 0.9; }
.link-nav-icon { font-size: 2.5rem; margin-bottom: 15px; display: block; }
.link-nav-text { font-size: 1.1rem; font-weight: bold; }

/* ========================================================
   下層ページ追加スタイル（院内・設備紹介用）
======================================================== */
/* ギャラリー (CSS Grid) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 15px;
}
.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    background: var(--white);
}
.gallery-img {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0;
    margin: 0;
    padding: 15px;
}
.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(26, 82, 118, 0.85); /* primary-color with opacity */
    color: var(--white);
    padding: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
}
.gallery-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}
.gallery-item.item-wide {
    grid-column: span 2;
    grid-row: span 1;
}

/* 設備紹介リスト */
.equipment-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    max-width: 950px;
    margin: 0 auto;
}
.equipment-item {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: 1px solid var(--border-color);
}
.equipment-item.reverse {
    flex-direction: row-reverse;
}
.eq-img {
    flex: 1;
}
.eq-text {
    flex: 1.5;
}
.eq-text h3 {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin: 0 0 15px 0;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 10px;
}
.eq-text p {
    margin: 0;
    line-height: 1.8;
}

/* ========================================================
   レスポンシブ
======================================================== */
@media screen and (max-width: 768px) {
.header-inner { flex-direction: column; gap: 10px; }
.contact-wrap { align-items: center; }
    
.global-nav ul { flex-direction: column; }
.global-nav > ul > li > a { border-bottom: 1px solid #eee; text-align: center;}
.mega-menu { position: static; width: 100%; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; background: #f9f9f9; }
.has-child:hover.mega-menu { display: block; }
    
.kv-copy { width: 95%; padding: 30px 20px; }
.kv-copy h2 { font-size: 1.5rem; }
.kv-copy p { font-size: 0.95rem; }
    
.greeting-box { flex-direction: column-reverse; padding: 20px; }

.news-list li { flex-direction: column; align-items: flex-start; gap: 5px; }
.dept-card,.dept-card.reverse { flex-direction: column; }
.symptoms-grid { grid-template-columns: 1fr; }
.access-grid { flex-direction: column; padding: 20px; }
    
.footer-guidance { flex-direction: column; gap: 20px; }
.footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 20px; }

 /* 下層ページ用 */
.page-title { font-size: 1.8rem; }
  
.overview-table th,.overview-table td { display: block; width: 100%; }
.overview-table th { border-bottom: none; padding-bottom: 10px; }
.overview-table td { padding-top: 5px; margin-bottom: 15px; border-bottom: 1px solid var(--border-color); }

.doctor-block,.doctor-block.reverse { flex-direction: column; padding: 20px; }
.doc-history-box { flex-direction: column; gap: 20px; }

/* ギャラリー＆設備紹介レスポンシブ */
.gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
.gallery-item.item-large { grid-column: span 2; grid-row: span 1; }
.gallery-item.item-wide { grid-column: span 2; }
.equipment-item,.equipment-item.reverse { flex-direction: column; padding: 20px; }
}