/* =====================================================================
   clinic テーマ（トラストブルー）
   ---------------------------------------------------------------------
   本体LP（index.html）と style.css / main.js を共有しているため、
   このファイルは style.css の「後」に読み込み、全ルールを
   body.theme-clinic にスコープして clinic ページのみ青系へ再スキンする。
   本体LPには一切影響を与えない。

   採用カラー:
     accent      #2563EB  (旧 #FFD60A)
     accent-dark #1D4ED8  (旧 #F59E0B / #EA580C)
     accent-mid  #3B82F6
     light       #DBEAFE  (旧 #F4E79E)
     lightest    #EFF6FF  (旧 #FFFBEB / cream)
     heading     #1E293B  (navy 据え置き)
   ===================================================================== */

/* --- CSS変数の上書き（var() 参照箇所はこれで一括青化） --- */
body.theme-clinic {
    --color-yellow:        #DBEAFE;
    --color-yellow-light:  #EFF6FF;
    --color-yellow-bright: #2563EB;
    --color-yellow-dark:   #1D4ED8;
    /* main.js の canvas が参照するアクセントRGB（未定義の本体LPは黄色のまま） */
    --canvas-accent-rgb:   37, 99, 235;
}

/* --- ボタン --- */
body.theme-clinic .btn-primary {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.2);
}
body.theme-clinic .btn-primary:hover {
    background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4), 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* --- ラベルチップ（ISSUE / SERVICE / FAQ / FOR / CONTACT） --- */
body.theme-clinic .section-label,
body.theme-clinic .hero-label,
body.theme-clinic .cta-label {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
}
body.theme-clinic .label-text {
    color: #FFFFFF;
}

/* --- ヒーロー背景・装飾光源 --- */
body.theme-clinic .hero {
    background:
        linear-gradient(135deg,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(239, 246, 255, 0.95) 25%,
            rgba(219, 234, 254, 0.92) 50%,
            rgba(191, 219, 254, 0.9) 75%,
            rgba(147, 197, 253, 0.55) 100%
        );
}
body.theme-clinic .hero::before {
    background: radial-gradient(circle,
        rgba(37, 99, 235, 0.15) 0%,
        rgba(37, 99, 235, 0.08) 40%,
        transparent 70%);
}
body.theme-clinic .hero::after {
    background: radial-gradient(circle,
        rgba(147, 197, 253, 0.25) 0%,
        rgba(219, 234, 254, 0.12) 50%,
        transparent 70%);
}
body.theme-clinic .brand-badge {
    border: 1px solid rgba(37, 99, 235, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(37, 99, 235, 0.1);
}
body.theme-clinic .hero-service-name {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

/* --- スライダードット --- */
body.theme-clinic .slider-dot.active {
    background: #2563EB;
}

/* --- ヒーローのスキーム図スライダー（製品スライダーの置き換え / 内容はダミー） --- */
/* 画像用の 16:10・絶対配置を解除し、カード高さに追従（グリッド重ねでフェード） */
body.theme-clinic .hero-slider {
    width: 106%;
    margin-left: -3%;
    gap: 16px;
}
body.theme-clinic .slider-track {
    aspect-ratio: auto;
    height: auto;
    padding-bottom: 0;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    display: grid;
}
body.theme-clinic .slide {
    position: static;
    inset: auto;
    grid-column: 1;
    grid-row: 1;
}

body.theme-clinic .scheme-card {
    width: 100%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18), 0 8px 20px rgba(37, 99, 235, 0.08);
    padding: 20px 22px 18px;
    color: #1E293B;
    line-height: 1.45;
}
body.theme-clinic .scheme-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #2563EB;
    padding-bottom: 8px;
    margin-bottom: 14px;
}
body.theme-clinic .scheme-title {
    font-weight: 700;
    font-size: 15px;
    color: #1E293B;
}
body.theme-clinic .scheme-badge {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #B91C1C;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    padding: 2px 8px;
    border-radius: 4px;
    flex: 0 0 auto;
}

/* フロー行 */
body.theme-clinic .scheme-flow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}
body.theme-clinic .scheme-sources {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}
body.theme-clinic .scheme-box {
    border-radius: 8px;
    padding: 8px 10px;
    font-weight: 600;
    font-size: 10.5px;
    text-align: center;
}
body.theme-clinic .box-a { background: #ECFDF5; border: 1px solid #A7F3D0; color: #065F46; }
body.theme-clinic .box-b { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
body.theme-clinic .box-c {
    background: #1E293B;
    color: #FFFFFF;
    border: 1px solid #1E293B;
    flex: 0 0 auto;
}
body.theme-clinic .scheme-arrow {
    color: #2563EB;
    font-size: 13px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
body.theme-clinic .scheme-arrow-labeled .arrow-label {
    font-size: 8.5px;
    font-weight: 700;
    color: #2563EB;
    white-space: nowrap;
    margin-bottom: 2px;
}
body.theme-clinic .scheme-center {
    text-align: center;
    flex: 1 1 auto;
}
body.theme-clinic .scheme-icon {
    width: 42px;
    height: 42px;
    margin: 0 auto 5px;
    border-radius: 10px;
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    border: 1px solid #BFDBFE;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
body.theme-clinic .scheme-center-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
}
body.theme-clinic .scheme-center-label span {
    font-weight: 500;
    color: #64748B;
}

/* 切り分けバンド */
body.theme-clinic .scheme-split {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 12px;
}
body.theme-clinic .split-title {
    font-size: 10.5px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
}
body.theme-clinic .split-cols {
    display: flex;
    gap: 8px;
}
body.theme-clinic .split-box {
    flex: 1;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 8px;
    font-size: 9.5px;
    line-height: 1.5;
}
body.theme-clinic .split-tag {
    display: block;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 3px;
    font-size: 9.5px;
}

/* 脚注 */
body.theme-clinic .scheme-notes {
    margin: 0;
    padding-left: 16px;
    font-size: 9px;
    color: #64748B;
    line-height: 1.7;
}

/* ④ ステップ型フロー（理事長交代など） */
body.theme-clinic .scheme-flow-steps {
    align-items: stretch;
}
body.theme-clinic .box-step {
    flex: 1 1 0;
    min-width: 0;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E40AF;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ② ウォーターフォール（評価） */
body.theme-clinic .wf-row {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
    padding-top: 4px;
}
body.theme-clinic .wf-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
body.theme-clinic .wf-bar {
    width: 34px;
    border-radius: 6px 6px 0 0;
}
body.theme-clinic .wf-base  { background: linear-gradient(180deg, #60A5FA 0%, #2563EB 100%); }
body.theme-clinic .wf-plus  { background: linear-gradient(180deg, #6EE7B7 0%, #059669 100%); }
body.theme-clinic .wf-minus { background: linear-gradient(180deg, #FCA5A5 0%, #DC2626 100%); }
body.theme-clinic .wf-total { background: linear-gradient(180deg, #334155 0%, #1E293B 100%); }
body.theme-clinic .wf-val { font-size: 9px; font-weight: 700; color: #475569; }
body.theme-clinic .wf-val-strong { color: #1E293B; }
body.theme-clinic .wf-label { font-size: 9px; color: #64748B; text-align: center; white-space: nowrap; }
body.theme-clinic .wf-op { font-size: 13px; color: #94A3B8; font-weight: 700; padding-bottom: 22px; }

/* ③ 比較表（持分あり／なし） */
body.theme-clinic .cmp-table {
    display: grid;
    grid-template-columns: 0.9fr 1fr 1fr;
    gap: 4px;
    margin-bottom: 12px;
}
body.theme-clinic .cmp-cell {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    padding: 7px 5px;
    font-size: 9.5px;
    line-height: 1.35;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}
body.theme-clinic .cmp-corner { background: transparent; border: none; }
body.theme-clinic .cmp-head { background: #2563EB; color: #FFFFFF; font-weight: 700; }
body.theme-clinic .cmp-rowlabel { background: #EFF6FF; color: #1E40AF; font-weight: 700; }

@media (max-width: 768px) {
    body.theme-clinic .hero-slider {
        width: 100%;
        margin-left: 0;
    }
}

/* --- ISSUEセクション --- */
body.theme-clinic .section-issue::before {
    background-image:
        linear-gradient(to right, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
}
body.theme-clinic .issue-card:hover {
    border-color: rgba(37, 99, 235, 0.4);
    background: linear-gradient(135deg, #FFFFFF 0%, #F8FAFF 100%);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.08),
        0 12px 24px rgba(0, 0, 0, 0.06),
        0 6px 12px rgba(0, 0, 0, 0.04),
        0 0 40px rgba(37, 99, 235, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.theme-clinic .issue-icon {
    background: linear-gradient(135deg, #EFF6FF 0%, #DBEAFE 100%);
    box-shadow:
        0 4px 16px rgba(37, 99, 235, 0.2),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 -2px 8px rgba(37, 99, 235, 0.15),
        inset 0 2px 4px rgba(255, 255, 255, 0.8);
}
body.theme-clinic .issue-card:hover .issue-icon {
    background: linear-gradient(135deg, #3B82F6 0%, #1D4ED8 100%);
    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 -2px 8px rgba(37, 99, 235, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.9);
}
/* カード番号（01〜04）の黄色グラデを青へ */
body.theme-clinic .issue-number {
    background: linear-gradient(135deg,
        rgba(37, 99, 235, 0.95) 0%,
        rgba(147, 197, 253, 0.85) 100%);
    -webkit-background-clip: text;
    background-clip: text;
}

/* --- SOLUTIONセクション --- */
body.theme-clinic .section-solution {
    background: linear-gradient(180deg, #FAFAFA 0%, #FFFFFF 50%, #EFF6FF 100%);
}
body.theme-clinic .section-solution::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.08) 0%, transparent 70%);
}
body.theme-clinic .section-solution::after {
    background: radial-gradient(circle, rgba(147, 197, 253, 0.1) 0%, transparent 70%);
}
body.theme-clinic .solution-card::before {
    background: linear-gradient(90deg, #3B82F6 0%, #1D4ED8 50%, #3B82F6 100%);
    background-size: 200% 100%;
}
body.theme-clinic .solution-card::after {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
}
body.theme-clinic .solution-card:hover {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(37, 99, 235, 0.2);
}
body.theme-clinic .solution-value {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 50%, #1D4ED8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(37, 99, 235, 0.1);
}
/* .solution-badge 背景・.solution-catch 文字色は変数経由のため自動で青化 */

/* --- サービスフロー タイムライン --- */
body.theme-clinic .timeline-bar {
    background: linear-gradient(90deg, #2563EB 0%, #1D4ED8 66%, #E5E7EB 66%, #E5E7EB 100%);
}
body.theme-clinic .milestone-dot {
    background: #2563EB;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* --- FAQ --- */
body.theme-clinic .faq-question::before {
    background: linear-gradient(135deg, #2563EB 0%, #3B82F6 100%);
    color: #FFFFFF;
}
body.theme-clinic .faq-item:hover .faq-question,
body.theme-clinic .faq-item[open] .faq-question {
    /* 既存の淡い黄背景があれば青へ（存在しなくても無害） */
    background: rgba(37, 99, 235, 0.06);
}

/* --- フッター --- */
body.theme-clinic .footer {
    background: #EFF6FF;
    color: #1E293B;
    border-top: 1px solid #DBEAFE;
}
body.theme-clinic .footer-link {
    color: #2563EB;
}

/* =====================================================================
   clinic 固有パーツ
   ===================================================================== */

/* 対象読者リスト（「こんな方に」） */
body.theme-clinic .target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    max-width: 960px;
    margin: 0 auto;
}
body.theme-clinic .target-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #FFFFFF;
    border: 1px solid #E8ECF0;
    border-radius: 12px;
    font-weight: 600;
    color: #1E293B;
}
body.theme-clinic .target-item .target-check {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 700;
}

@media (max-width: 768px) {
    body.theme-clinic .target-grid {
        grid-template-columns: 1fr;
    }
}
