/* --- Base Setting --- */
:root {
    --navy: #001529;
    --gold: #b29e7c;
    --text-main: #333;
    --gray-bg: #f9f9f9;
}

* { box-sizing: border-box; }

body {
    font-family: 'Noto Serif JP', serif;
    color: var(--text-main);
    line-height: 1.8;
    margin: 0;
    overflow-x: hidden;
}

h1, h2, h3, .hero-subtext, .section-title, .section-title-m, .section-title-s, .feature-title {
    font-family: 'Noto Serif JP', serif;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
}

.section-padding { padding: 100px 0; }
.bg-gray { background-color: var(--gray-bg); }
.bg-navy { background-color: var(--navy); }
.text-white { color: #fff !important; }
.text-center { text-align: center !important; }

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

.sp-br { display: none; }
.pc-br { display: block; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 16px 36px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 4px;
    transition: 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
    font-family: 'Noto Serif JP', serif;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy-small { 
    background: var(--navy); 
    color: #fff; 
    font-size: 0.9rem; 
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-gold { background: var(--gold); color: #fff; }
.btn-outline-white-small { 
    border: 1px solid #fff; 
    color: #fff; 
    font-size: 0.9rem; 
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cta-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
}

/* --- Header --- */
.header {
    background: #fff;
    padding: 20px 0;
    text-align: center;
    border-bottom: 1px solid #eee;
}
.logo { margin: 0; }
.logo img { width: 220px; }

/* --- Hero (FV) --- */
.hero {
    height: 85vh;
    min-height: 600px;
    background: url('images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
}
.hero-container {
    height: 100%;
    position: relative;
}
.hero-content {
    position: absolute;
    left: 20px;
    bottom: 10%;
    z-index: 2;
}
.hero-subtext {
    font-size: 3.2rem;
    line-height: 1.3;
    color: #fff;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.6);
}

/* --- Lead Section --- */
.lead-bar { background: #f1f2f4; padding: 10px 0; text-align: center; }
.lead-text { font-size: 1.1rem; margin-bottom: 30px; }

/* --- Sections Common --- */
.section-title { font-size: 2.2rem; margin-bottom: 20px; }
.section-title-m { font-size: 1.8rem; margin-bottom: 25px; line-height: 1.4; }
.section-title-s { font-size: 1.6rem; margin-bottom: 30px; text-align: center; }
.section-subtitle { margin-bottom: 40px; font-size: 1.1rem; }

/* --- Concept --- */
.flex-row { display: flex; gap: 60px; align-items: flex-start; }
.items-center { align-items: center; }
.concept-img, .concept-text { flex: 1; }
.academic-box {
    border-left: 3px solid var(--navy);
    padding: 20px 30px;
    margin: 30px 0;
    font-weight: bold;
    background: #fff;
    line-height: 1.7;
}

/* --- Feature Common --- */
.feature-num { display: block; color: var(--gold); font-weight: bold; margin-bottom: 10px; font-size: 1.1rem; text-align: center; }
.feature-title { font-size: 2.2rem; margin-bottom: 10px; text-align: center; }
.feature-subtitle { text-align: center; margin-bottom: 50px; opacity: 0.8; }

/* --- Checklist (Safari対策 & 中央配置最適化) --- */
.check-list { list-style: none; padding: 0; flex: 1; }
.check-list li { 
    position: relative; 
    padding-left: 40px; 
    margin-bottom: 25px; 
    min-height: 28px;
}

/* 紺色の丸部分 */
.check-list li::before {
    content: ''; 
    position: absolute; 
    left: 0; 
    top: 2px; /* テキストの位置に合わせた垂直調整 */
    background: var(--navy); 
    width: 28px; 
    height: 28px;
    border-radius: 50%;
}

/* 白いチェックマーク（図形で描画することでSafariのグレー化を回避） */
.check-list li::after {
    content: '';
    position: absolute;
    left: 10px;  /* 丸の中での水平中央調整 */
    top: 7px;    /* 丸の中での垂直中央調整 */
    width: 7px; 
    height: 12px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg);
}

.feature-img { flex: 1; }

/* --- Feature 2 Analysis --- */
.analysis-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.analysis-items .item { display: flex; gap: 15px; margin-bottom: 20px; background: rgba(255,255,255,0.1); padding: 15px; border-radius: 4px; }
.analysis-items .num {
    background: var(--gold); color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; flex-shrink: 0;
}
.analysis-items p { font-size: 0.85rem; margin: 5px 0 0; opacity: 0.8; }
.analysis-note { text-align: right; margin-top: 10px; font-size: 0.85rem; opacity: 0.9; }

/* --- Feature 3 --- */
.feature-text { flex: 1.2; }
.feature-text .catch { font-size: 1.2rem; font-weight: bold; color: var(--gold); margin-bottom: 20px; }

/* --- Treatment Plans --- */
.plan-cards { display: flex; gap: 30px; justify-content: center; margin-top: 50px; }
.plan-card { 
    border: 1px solid #ddd; 
    padding: 40px; 
    width: 400px; 
    background: #fff; 
    text-align: center;
    display: flex;
    flex-direction: column;
}
.plan-card h3 { font-size: 1.4rem; margin-bottom: 20px; }
.plan-card .price { font-size: 1.2rem; margin-bottom: 0; font-weight: bold; }
.plan-card .price span { font-size: 2.2rem; color: var(--navy); }
.plan-card .tax { font-size: 0.8rem; margin-bottom: 20px; color: #888; }
.plan-card.featured { background: var(--navy); color: #fff; border: none; }
.plan-card.featured .price span { color: #fff; }

.plan-list-wrapper { 
    display: flex; 
    justify-content: center; 
    border-top: 1px solid #eee; 
    margin: 20px 0; 
    padding: 20px 0; 
    min-height: 180px;
    align-items: center;
}
.plan-card.featured .plan-list-wrapper { border-top-color: rgba(255,255,255,0.2); }
.plan-list { list-style: none; padding: 0; margin: 0; text-align: left; line-height: 2.2; }
.plan-card .btn { margin-top: auto; }

/* --- Case, Message, Access --- */
.sub-label { text-align: center; color: var(--gold); font-size: 0.8rem; margin-bottom: 5px; font-weight: bold; }
.case-lead { text-align: center; margin-bottom: 40px; font-size: 0.95rem; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 80px; }
.case-card { background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.case-card-body { padding: 20px; }
.case-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.case-card p { font-size: 0.85rem; color: #666; }

.info-bottom-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 60px; border-top: 1px solid #eee; padding-top: 60px; }
.director-flex { display: flex; gap: 30px; }
.director-name { font-size: 1.3rem; margin-bottom: 10px; }
.director-name span { font-size: 0.9rem; font-weight: normal; margin-left: 10px; color: #888; }
.director-quote { color: var(--gold); font-weight: bold; margin-bottom: 20px; font-size: 1.1rem; }
.director-msg-body p { font-size: 0.9rem; margin-bottom: 15px; text-align: justify; }
.director-img { flex-shrink: 0; width: 160px; }

.access-content { font-size: 0.9rem; }
.clinic-name { font-weight: bold; font-size: 1.1rem; margin-bottom: 10px; }
.address, .station, .tel, .hours { margin-bottom: 10px; }
.tel { font-weight: bold; font-size: 1.1rem; }
.map-area { margin-top: 25px; }

/* --- Footer CTA --- */
.footer-cta { background: url('images/footer-bg.jpg') center/cover no-repeat; position: relative; }
.footer-cta::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); }
.footer-cta .container { position: relative; z-index: 1; }
.cta-title { font-size: 2.2rem; margin-bottom: 15px; }
.cta-subtitle { margin-bottom: 40px; font-size: 1.1rem; }
.special-offer { border: 1px solid var(--gold); padding: 40px; margin: 40px auto; max-width: 700px; background: rgba(0,0,0,0.3); }
.special-offer .label { color: var(--gold); font-weight: bold; letter-spacing: 2px; font-size: 0.9rem; margin-bottom: 10px; }
.special-offer h3 { font-size: 1.8rem; margin-bottom: 15px; }
.cta-btns-large { display: flex; gap: 20px; justify-content: center; margin-top: 40px; }
.btn-gold-large { background: var(--gold); color: #fff; padding: 22px 50px; font-size: 1.2rem; }
.btn-line-large { background: #06C755; color: #fff; padding: 22px 50px; font-size: 1.2rem; }
.cta-note { font-size: 0.85rem; margin-top: 25px; opacity: 0.8; }

/* --- Footer --- */
.footer { background-color: var(--navy); color: #fff; padding: 60px 0; }
.footer-logo { display: block; width: 200px; margin: 0 auto 30px; }
.footer-nav { margin-bottom: 25px; }
.footer-nav a { color: #fff; text-decoration: none; margin: 0 15px; font-size: 0.9rem; opacity: 0.8; }
.copyright { font-size: 0.8rem; opacity: 0.5; }

/* ==========================================================================
   Responsive (Smartphone)
   ========================================================================== */
@media (max-width: 960px) {
    .section-padding { padding: 60px 0; }
    .sp-br { display: block; }
    .pc-br { display: none; }

    .section-title { font-size: 1.8rem; }
    .section-title-m { font-size: 1.5rem; }
    .feature-title { font-size: 1.6rem; }
    .hero-subtext { font-size: 2.2rem; }

    .btn { width: 100%; box-sizing: border-box; }
    .cta-btns { flex-direction: column; padding: 0 20px; gap: 12px; }

    .flex-row, .info-bottom-grid { display: flex; flex-direction: column; gap: 30px; }

    .hero { height: 70vh; min-height: 450px; }
    .hero-content { left: 20px; bottom: 8%; }

    .lead-text { font-size: 0.95rem; padding: 0 10px; }

    .concept-text { order: 1; }
    .concept-img { order: 2; margin-top: 10px; }

    .feature-1 .flex-row { flex-direction: column; }
    .feature-3 .flex-row { flex-direction: column; }
    .feature-img { margin-top: 20px; text-align: center; }

    .analysis-grid { grid-template-columns: 1fr; gap: 20px; }
    .analysis-items .item { padding: 12px; font-size: 0.9rem; }
    .analysis-note { text-align: left; font-size: 0.8rem; }

    /* プラン縦並び調整 */
    .plan-cards { flex-direction: column; align-items: center; gap: 20px; padding: 0 10px; }
    .plan-card { width: 100%; max-width: 450px; padding: 30px 20px; }
    .plan-list-wrapper { min-height: auto; padding: 10px 0; }
    .plan-list { font-size: 0.9rem; }
    .btn-navy-small, .btn-outline-white-small { height: 54px; }

    .case-grid { grid-template-columns: 1fr; gap: 20px; }

    /* --- スマホ表示時の Director's Message 並び順変更 --- */
    .director-flex { 
        display: flex;
        flex-direction: column;
        align-items: center; 
        text-align: center; 
    }
    
    .director-img { 
        order: 1; /* 写真をメッセージの上（タイトルの次）に配置 */
        width: 180px; 
        margin: 0 auto 30px; 
        flex-shrink: 0;
    }
    
    .director-text { 
        order: 2; /* 名前と本文を写真の下に配置 */
        width: 100%;
        margin-bottom: 0; 
    }

    .director-msg-body p { 
        text-align: left; 
        font-size: 0.9rem;
        margin-bottom: 1em;
    }
    
    .access-section { margin-top: 40px; padding-top: 40px; border-top: 1px solid #eee; }
    .access-content { text-align: center; }

    .cta-title { font-size: 1.5rem; }
    .special-offer { padding: 30px 15px; margin: 20px 10px; }
    .special-offer h3 { font-size: 1.4rem; }
    .cta-btns-large { flex-direction: column; padding: 0 20px; gap: 15px; }
    .btn-gold-large, .btn-line-large { font-size: 1.1rem; padding: 18px; }
    
    .footer-nav { display: flex; flex-direction: column; gap: 15px; }
    .footer-nav a { margin: 0; }
}