@charset "utf-8";

/* ==================================================
   1. 基本共通コンテナ & セクションタイトル
================================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.section-title {
    text-align: center;
    font-size: 1.4em;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #111827;
    margin-bottom: 32px;
    position: relative;
    padding-bottom: 12px;
    line-height: 1.4;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background-color: #0f2b48;
}

.section-title span {
    display: block;
    font-size: 0.65em;
    color: #c5a059;
    font-weight: normal;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}


/* ==================================================
   2. メインビジュアル（FV）＆ CTAボタン
================================================== */
.hero {
    background: linear-gradient(135deg, #1a2b4c 0%, #2a4374 100%);
    color: #ffffff;
    padding: 60px 30px;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-block;
    background-color: #c5a059;
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
    padding: 4px 15px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 2em;
    line-height: 1.4;
    margin-bottom: 15px;
    font-weight: 700;
    text-align: center;
}

.hero p {
    font-size: 1em;
    color: #e0e6ed;
    margin-bottom: 30px;
    text-align: center;
}

.hero-features {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.hero-feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(197, 160, 89, 0.5);
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 0.95em;
}

/* CTAボタン */
.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.btn {
    display: inline-block;
    padding: 15px 35px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-gold {
    background-color: #c5a059;
    color: #ffffff !important;
}

.btn-gold:hover {
    background-color: #b08c46;
}

.btn-green {
    background-color: #2e7d32;
    color: #ffffff !important;
}

.btn-green:hover {
    background-color: #1b5e20;
}

.btn-outline {
    display: inline-block;
    background-color: #ffffff;
    color: #0f2b48 !important;
    border: 2px solid #0f2b48;
    padding: 10px 24px;
    font-size: 0.9em;
    font-weight: bold;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background-color: #0f2b48;
    color: #ffffff !important;
}


/* ==================================================
   3. 当院が選ばれる理由（強みカード）
================================================== */
.clinic-strengths {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: sans-serif;
}

.strength-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.strength-card {
    display: flex;
    align-items: flex-start;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    transition: all 0.25s ease;
}

.strength-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.strength-number {
    font-size: 1.5em;
    font-weight: 800;
    color: #0f2b48;
    line-height: 1;
    margin-right: 16px;
    padding-top: 2px;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    opacity: 0.8;
}

.strength-content h4 {
    font-size: 1.05em;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.strength-content p {
    font-size: 0.875em;
    color: #475569;
    margin: 0;
    line-height: 1.6;
}


/* ==================================================
   4. オールインワンセクション＆見出し定義
================================================== */
.allinone-section {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 16px;
    font-family: sans-serif;
}

.allinone-lead {
    background-color: #f0f4f8;
    border-left: 4px solid #0f2b48;
    padding: 24px;
    border-radius: 0 8px 8px 0;
    margin-bottom: 24px;
}

.allinone-lead h3 {
    font-size: 1.25em;
    font-weight: bold;
    color: #0f2b48;
    text-align: center;
    margin: 0 0 15px 0;
    line-height: 1.5;
}

.allinone-lead p {
    margin: 0 0 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
    color: #333333;
}

.allinone-lead p:last-child {
    margin-bottom: 0;
}

.allinone-lead b {
    color: #c0262d;
}

/* 汎用カード＆見出しデザイン */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
}

.card h3,
.card-grid .card h3 {
    font-size: 1.15em;
    font-weight: bold;
    color: #0f2b48;
    line-height: 1.4;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f2b48;
    display: block;
}

.card h3.gold-line,
.card-grid .card:nth-child(2) h3 {
    border-bottom-color: #c5a059;
}

.card h4,
.medication-subbox-title {
    font-size: 1.05em;
    font-weight: bold;
    color: #0f2b48;
    line-height: 1.4;
    margin: 15px 0 10px 0;
    padding-left: 10px;
    border-left: 3px solid #c5a059;
    display: block;
}

.card p {
    font-size: 0.9em;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.highlight-box {
    background-color: #f0fdf4;
    border-left: 4px solid #16a34a;
    padding: 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
    font-size: 0.95em;
    line-height: 1.6;
}

.cycle-box {
    text-align: center;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
    border: 1px solid #e2e8f0;
}

.cycle-box img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 10px;
}


/* ==================================================
   5. 各種テーブルパーツ
================================================== */
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin-bottom: 16px;
}

.allinone-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.allinone-table th {
    background-color: #0f2b48;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
    border: 1px solid #0f2b48;
}

.allinone-table td {
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    line-height: 1.5;
    vertical-align: top;
}

.allinone-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.allinone-table .item-name {
    font-weight: 700;
    color: #1e293b;
    background-color: #f1f5f9;
    white-space: nowrap;
}

.allinone-note {
    font-size: 0.85em;
    color: #64748b;
    line-height: 1.5;
    margin-top: 8px;
}

/* 比較テーブル（.comparison-table） */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9em;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.comparison-table th {
    background-color: #0f2b48;
    color: #ffffff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 700;
}

.comparison-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.6;
    color: #334155;
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr.highlight-row {
    background-color: #f0fdf4;
}

.comparison-table tr.highlight-row td {
    color: #166534;
}

.comparison-table tr.highlight-row td strong {
    color: #15803d;
}

/* 料金表（.price-table） */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.95em;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
}

.price-table th {
    background-color: #0f2b48;
    color: #ffffff;
    padding: 14px 16px;
    text-align: center;
    font-weight: 700;
    font-size: 1em;
}

.price-table td {
    padding: 14px 20px;
    border-bottom: 1px solid #e2e8f0;
    line-height: 1.5;
    color: #334155;
}

.price-table tr:nth-child(even) {
    background-color: #f8fafc;
}

.price-table tr:last-child td {
    border-bottom: none;
}

.price-table span[data-key] {
    font-weight: bold;
    color: #c0262d;
    font-size: 1.05em;
}


/* ==================================================
   6. 併用療法・内服薬セクション
================================================== */
.combined-therapy-section {
    margin-top: 50px;
    margin-bottom: 50px;
}

.therapy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.therapy-card {
    position: relative;
    padding-top: 36px;
    background: #ffffff;
}

.therapy-card.attack {
    border-top: 4px solid #c5a059;
}

.therapy-card.defense {
    border-top: 4px solid #0f2b48;
}

.therapy-badge {
    position: absolute;
    top: -12px;
    left: 20px;
    font-size: 0.75em;
    font-weight: bold;
    padding: 3px 12px;
    border-radius: 12px;
    color: #ffffff;
}

.attack-badge {
    background-color: #c5a059;
}

.defense-badge {
    background-color: #0f2b48;
}

.medication-subbox {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.medication-desc {
    font-size: 0.88em;
    color: #475569;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.link-btn-wrapper {
    text-align: center;
}


/* ==================================================
   7. アコーディオンエリア
================================================== */
.allinone-details {
    margin-top: 32px;
}

.allinone-details h3.details-heading,
.details-heading {
    font-size: 1.2em;
    font-weight: 700;
    color: #0f2b48;
    margin: 30px 0 15px 0;
    padding-left: 12px;
    border-left: 4px solid #0f2b48;
    display: block;
}

.detail-item {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    margin-bottom: 8px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.detail-item[open] {
    border-color: #cbd5e1;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.detail-item summary {
    padding: 14px 16px;
    font-weight: 700;
    font-size: 0.95em;
    color: #1e293b;
    cursor: pointer;
    background-color: #f8fafc;
    position: relative;
    list-style: none;
}

.detail-item summary::-webkit-details-marker {
    display: none;
}

.detail-item summary::after {
    content: '＋';
    position: absolute;
    right: 16px;
    color: #0f2b48;
    font-weight: bold;
}

.detail-item[open] summary::after {
    content: '－';
}

.detail-content {
    padding: 16px;
    background-color: #ffffff;
    border-top: 1px solid #f1f5f9;
}

.detail-content p {
    margin: 0;
    font-size: 0.875em;
    line-height: 1.6;
    color: #475569;
}


/* ==================================================
   8. 症例写真（グリッド＆カード表示）
================================================== */
.case-section-title {
    font-size: 1.1em;
    color: #0f2b48;
    border-bottom: 2px solid #c5a059;
    padding-bottom: 5px;
    margin: 30px 0 15px;
    font-weight: bold;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.case-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.case-card img {
    width: 100%;
    height: auto;
    display: block;
}

.case-card .case-info {
    padding: 15px 10px;
    background: transparent;
    text-align: left;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.case-card .case-title {
    font-size: 0.95em;
    font-weight: bold;
    color: #0f2b48;
    margin: 0 0 10px 0;
    text-align: center;
    border-bottom: 1px dashed #cbd5e1;
    padding-bottom: 8px;
}

.case-card .case-detail {
    font-size: 0.75em;
    line-height: 1.5;
    color: #475569;
    margin: 0;
}

.case-risk-note {
    margin-top: 20px;
    padding: 12px 15px;
    background-color: #f1f5f9;
    border-radius: 6px;
    font-size: 0.8em;
    color: #475569;
    line-height: 1.5;
}

.case-risk-note p {
    margin: 0;
}


/* ==================================================
   9. 担当医師紹介セクション
================================================== */

.doctor_profile_box,
.doctor-card {
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* 旧仕様 h3スタイルの上書き統合 */
.doctor_profile_box h3 {
    position: relative !important;
    display: block !important;
    margin: 0 0 20px 0 !important;
    padding: 12px 15px 12px 20px !important;
    background: #1a365d !important;
    color: #ffffff !important;
    font-size: 1.15em !important;
    font-weight: bold !important;
    text-align: left !important;
    line-height: 1.4 !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
    letter-spacing: 0.05em !important;
    width: 100%;
}

.doctor_profile_box h3::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 6px !important;
    height: 100% !important;
    background: #d4b170 !important;
    border-radius: 4px 0 0 4px !important;
    display: block !important;
}

.doctor_profile_box h3::after {
    display: none !important;
    content: none !important;
}

.doctor_flex_container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
}

.doctor_img,
.doctor-card .doctor-img {
    flex: 0 0 160px;
    width: 160px;     /* 追加 */
    max-width: 160px; /* 追加：画像が巨大化するのを防ぎます */
}

.doctor_img img,
.doctor-card .doctor-img img {
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.doctor_info,
.doctor-card .doctor-info {
    flex: 1;
}

.doctor_title,
.doctor-card .doctor-title {
    display: block;
    font-size: 0.85em;
    color: #64748b;
    margin: 0;
}

.doctor_name,
.doctor-card .doctor-name {
    font-size: 1.3em;
    font-weight: bold;
    color: #1a365d;
    margin: 4px 0 12px 0;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 8px;
}

ul.doctor_qual_list,
.doctor-card .doctor-qual-list {
    margin: 6px 0 10px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

ul.doctor_qual_list > li,
.doctor-card .doctor-qual-list li {
    position: relative !important;
    padding-left: 16px !important;
    margin-bottom: 4px !important;
    font-size: 0.88em !important;
    color: #475569 !important;
    line-height: 1.5 !important;
}

ul.doctor_qual_list > li::before,
.doctor-card .doctor-qual-list li::before {
    content: "・" !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    color: #d4b170 !important;
    font-weight: bold !important;
}

.doctor_message {
    background: #f8fafc;
    border-left: 3px solid #1a365d;
    padding: 12px 15px;
    line-height: 1.6;
    border-radius: 0 6px 6px 0;
    color: #334155;
    margin-top: 10px;
}




/* ==================================================
   10. Q&A ＆ リスク・注意書き
================================================== */
.qa-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.qa-item {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.qa-q {
    background: #f8fafc;
    padding: 15px 20px;
    font-weight: bold;
    color: #0f2b48;
    display: flex;
    gap: 10px;
    font-size: 0.95em;
}

.qa-q::before {
    content: "Q";
    color: #c5a059;
    font-weight: bold;
}

.qa-a {
    padding: 15px 20px;
    background: #ffffff;
    display: flex;
    gap: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 0.9em;
    line-height: 1.6;
    color: #334155;
}

.qa-a::before {
    content: "A";
    color: #e11d48;
    font-weight: bold;
}

.risk-box {
    background-color: #fff1f2;
    border: 1px solid #fecdd3;
    padding: 20px;
    border-radius: 8px;
    margin-top: 25px;
    font-size: 0.85em;
    color: #333;
}

.risk-box h4 {
    font-size: 1.1em;
    font-weight: bold;
    color: #991b1b;
    line-height: 1.4;
    margin: 0 0 12px 0;
    padding-bottom: 8px;
    border-bottom: 1px dashed #fca5a5;
    display: block;
}


/* ==================================================
   11. レスポンシブ（画面サイズごとの調整）
================================================== */
/* PC/タブレット（768px以上） */
@media (min-width: 768px) {
    .strength-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }
}

/* スマホ全般（768px以下） */
@media screen and (max-width: 768px) {
    .card h3,
    .card-grid .card h3 {
        font-size: 1.05em;
    }
    
    .allinone-lead h3 {
        font-size: 1.1em;
    }

    .risk-box h4 {
        font-size: 1.0em;
    }

    .card h4,
    .medication-subbox-title {
        font-size: 0.95em;
    }

    /* 症例カード: 2列 */
    .case-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* オールインワン比較テーブルのカード化 */
    .allinone-table, 
    .allinone-table thead, 
    .allinone-table tbody, 
    .allinone-table th, 
    .allinone-table td, 
    .allinone-table tr { 
        display: block; 
    }

    .allinone-table thead tr { 
        position: absolute;
        top: -9999px;
        left: -9999px;
    }

    .allinone-table tr {
        margin-bottom: 20px;
        border: 2px solid #0f2b48;
        border-radius: 8px;
        background: #fff;
        overflow: hidden;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    }

    .allinone-table td.item-name {
        background-color: #0f2b48;
        color: #fff;
        font-weight: bold;
        font-size: 1.1em;
        text-align: center;
        border: none;
        padding: 12px;
        white-space: normal;
    }

    .allinone-table td {
        border: none;
        border-bottom: 1px solid #eee;
        position: relative;
        padding: 12px 15px;
        font-size: 0.95em;
    }

    .allinone-table td:last-child {
        border-bottom: none;
        background-color: #fff9f9;
    }

    .allinone-table td:not(.item-name)::before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        font-size: 0.8em;
        color: #666;
        margin-bottom: 4px;
    }

    .allinone-table td:last-child::before {
        color: #c53030;
    }

    /* 医師紹介 */
    .doctor_profile_box,
    .doctor-card {
        padding: 15px 12px !important;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .doctor_profile_box h3 {
        font-size: 1.05em !important;
        padding: 10px 12px 10px 16px !important;
    }

    .doctor_flex_container {
        flex-direction: column;
        align-items: center;
    }

    .doctor_img,
    .doctor-card .doctor-img {
        width: 140px;
        flex: auto;
    }

    .doctor-card .doctor-qual-list li,
    ul.doctor_qual_list > li {
        text-align: left;
    }

}

/* スマホ縦持ち（600px以下） */
@media screen and (max-width: 600px) {
    .therapy-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

/* 小型スマホ（480px以下） */
@media screen and (max-width: 480px) {
    /* 症例カード: 1列表示 */
    .case-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* テーブル文字サイズ微調整 */
    .comparison-table th, 
    .comparison-table td,
    .price-table th, 
    .price-table td {
        padding: 10px 12px;
        font-size: 0.85em;
    }
}


