@charset "utf-8";

/* --- 1. 基本変数とリセット --- */
:root {
    --primary-color: #244a3d;
    --accent-color: #d97b36;
    --bg-light: #fafaf8;
    --text-main: #333;
    --text-sub: #666;
    --header-green: #55756a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Noto Sans JP', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-light);
    line-height: 1.8;
}

.container { max-width: 1000px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* --- 2. ヘッダー：PC中央寄せ --- */
.header {
    background: #fff;
    height: 80px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-inner {
    display: flex;
    justify-content: center; /* PCでは中央に寄せる */
    align-items: center;
    gap: 60px; /* ロゴとメニューの間隔 */
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.logo { 
    font-family: 'Noto Serif JP', serif; 
    font-size: 1.3rem; 
    flex-shrink: 0;
}

.logo a { 
    text-decoration: none; 
    color: var(--primary-color); 
}

.nav ul { display: flex; list-style: none; gap: 40px; }
.nav ul li a { text-decoration: none; color: var(--text-main); font-weight: bold; }

/* ハンバーガーはPCでは非表示 */
.hamburger { display: none; }

/* --- 3. メッセージ：真ん中寄せレイアウト --- */
.message-center-layout {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.message-img-center { margin-bottom: 40px; display: flex; justify-content: center; }

.img-frame-center {
    width: 280px;
    height: 280px;
    background: #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
}

.section-sub-center {
    font-family: 'Noto Serif JP', serif;
    font-size: 2rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.message-text-center p { margin-bottom: 20px; font-size: 1.1rem; }
.director-sign-center { margin-top: 40px; font-size: 1.25rem; font-weight: bold; }

/* --- 4. バナーとお約束 --- */
.about-hero { background-color: var(--header-green); padding: 80px 0; text-align: center; color: #fff; }
.special-banner { background: var(--primary-color); color: #fff; padding: 80px 0; text-align: center; }

.promise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 50px; }
.promise-card { background: #fff; padding: 30px; box-shadow: 0 10px 20px rgba(0,0,0,0.05); border-top: 4px solid var(--accent-color); text-align: center; }

.section-desc { text-align: center; margin-bottom: 30px; color: var(--text-sub); }

/* --- 5. 対応症状タグ --- */
.symptom-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

.symptom-tags span {
    background: #fff;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: bold;
}

.symptom-tags span.etc {
    background: var(--primary-color);
    color: #fff;
    border: none;
}

/* --- 6. 院長略歴要約セクション --- */
.director-summary-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    max-width: 800px;
    margin: 0 auto;
    text-align: center; 
}

.director-summary-card .section-sub-center {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    display: inline-block;
    position: relative;
    padding-bottom: 15px;
}

.director-summary-card .section-sub-center::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
}

.degree-main {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 30px;
}

.history-brief {
    list-style: none;
    padding: 0;
    margin-bottom: 40px;
    display: inline-block; 
    text-align: left;     
}

.history-brief li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.95rem;
    color: var(--text-main);
}

.history-brief li::before {
    content: "●";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-size: 0.8rem;
    top: 2px;
}

.btn-more {
    display: inline-block;
    background-color: transparent;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.btn-more:hover {
    background-color: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(217, 123, 54, 0.3);
}

/* --- 7. 全ページ共通フッター --- */
.footer {
    background-color: var(--primary-color);
    color: #fff;
    padding: 60px 0 20px;
    margin-top: 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.footer-address {
    font-style: normal;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 10px;
    opacity: 0.9;
}

.footer-tel { font-size: 1.2rem; font-weight: bold; margin-bottom: 10px; }
.footer-tel a { color: #fff; text-decoration: none; }
.footer-time { font-size: 0.85rem; opacity: 0.8; }
.footer-nav-title { font-weight: bold; margin-bottom: 20px; font-size: 1rem; letter-spacing: 0.1em; border-bottom: 1px solid rgba(255,255,255,0.2); display: inline-block; padding-bottom: 5px; }
.footer-nav ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 30px; }
.footer-nav a { color: #fff; text-decoration: none; font-size: 0.9rem; opacity: 0.7; transition: 0.3s; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 0.75rem; opacity: 0.6; }

/* --- 8. モバイル対応（850px以下）ロゴの重なり解消 --- */
@media (max-width: 850px) {
    .header-inner { 
        justify-content: space-between; 
        padding: 0 15px;
        gap: 10px;
    }

    /* ロゴが3行に重ならないように調整 */
    .logo { 
        font-size: 1.05rem; /* サイズ調整 */
        flex: 1;           /* 幅を確保 */
        line-height: 1.3;
        margin-right: 5px;
        flex-shrink: 0;
    }
    .logo a {
        white-space: normal; 
        word-break: keep-all; 
    }

    .hamburger {
        display: block;
        width: 30px; height: 24px;
        position: relative; z-index: 1100;
        flex-shrink: 0;
    }
    .hamburger span { position: absolute; width: 100%; height: 2px; background: var(--primary-color); transition: 0.3s; }
    .hamburger span:nth-child(1) { top: 0; }
    .hamburger span:nth-child(2) { top: 11px; }
    .hamburger span:nth-child(3) { top: 22px; }

    .hamburger.active span:nth-child(1) { transform: translateY(11px) rotate(45deg); background: #fff; }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); background: #fff; }

    .nav {
        position: fixed; top: 0; right: -100%;
        width: 100%; height: 100vh;
        background: var(--primary-color);
        display: flex; align-items: center; justify-content: center;
        transition: 0.4s; z-index: 1050;
    }
    .nav.active { right: 0; }
    .nav ul { flex-direction: column; text-align: center; gap: 20px; }
    .nav ul li a { color: #fff; font-size: 1.5rem; }

    .promise-grid { grid-template-columns: 1fr; }
    .message-center-layout { padding: 0 10px; }
    .section-sub-center { font-size: 1.5rem; }

    /* フッターのスマホ調整 */
    .footer-inner { flex-direction: column; text-align: center; align-items: center; }
    .footer-nav ul { grid-template-columns: 1fr; gap: 15px; }
    .footer-nav-title { margin-top: 20px; }

    /* 略歴カードのスマホ調整 */
    .director-summary-card { padding: 40px 20px; width: 95%; }
    .degree-main { font-size: 1.1rem; }
    .history-brief { font-size: 0.9rem; }
}