@charset "utf-8";
/* ===================================
   基本スタイル（サイト全体）
=================================== */
body {
    font-family: sans-serif;
    line-height: 1.8;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

p {
    margin-bottom: 1em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    overflow: hidden;
}


/* ===================================
   パーツごとのスタイル
=================================== */

/* ファーストビュー */
.fv-container {
    margin-bottom: 30px;
}

.fv-image img {
    width: 100%;
    border-radius: 5px;
}

.fv-text {
    margin-top: 15px;
    font-size: 1.1em;
    line-height: 1.8;
}

/* 見出し */
h1, h2, h3, h4 {
    font-family: "游ゴシック体", YuGothic, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
    margin-top: 2em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

h1 {
    font-size: 2em;
    padding-bottom: 0.3em;
    border-bottom: 3px solid #007bff;
    color: #007bff;
}

h2 {
    font-size: 1.6em;
    padding: 0.8em 1em;
    background-color: #6c757d;
    color: #fff;
    border-radius: 5px;
}

h3 { /* 元のh3スタイル。recommended-rankで上書きされる */
    font-size: 1.4em;
    padding: 0.5em 1em;
    border-left: 5px solid #007bff;
    background-color: #f8f9fa;
}

h4 {
    font-size: 1.2em;
    color: #007bff;
    font-weight: bold;
}

/* リスト（元のulのスタイル） */
ul {
    list-style-type: none;
    padding: 1em;
    margin-bottom: 1em;
    border: 1px solid #add8e6;
    border-radius: 5px;
    background-color: #f0f8ff;
}

ul li {
    padding-left: 2em;
    margin-bottom: 0.5em;
}

ul li::before {
    content: "・";
    color: #007bff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1.5em;
}

/* ===================================
   テーブルのスタイル
=================================== */

/* --- ① 古いシンプルなテーブル用のスタイル --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    border: 1px solid #ddd;
}

.comparison-table th,
.comparison-table td {
    border: 1px solid #ddd;
    padding: 0.7em;
    text-align: left;
}

.comparison-table th {
    background-color: #f2f2f2;
    font-weight: bold;
    text-align: center;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9f9f9;
}


/* --- ② 新しいクリニック比較表のスタイル --- */
.clinic-comparison {
    margin-top: 40px;
    margin-bottom: 40px;
}

.clinic-comparison img {
    width: 100%;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.table-container {
    width: 100%;
    margin-top: 30px;
}

.clinic-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    border: 1px solid #02414e;
    text-align: center;
    font-size: 14px;
    line-height: 1.7;
}

.clinic-table th,
.clinic-table td {
    border: 1px solid #02414e;
    padding: 15px 10px;
}

.clinic-table th {
    background-color: #02414e;
    color: #fff;
    font-weight: bold;
    width: 120px;
    border-color: #727c7e;
    vertical-align: middle;
    text-align: center;
}

.clinic-table td {
    width: calc((100% - 120px) / 5);
    vertical-align: middle;
    text-align: center;
}

.clinic-table .align-top-left {
    vertical-align: top;
    text-align: left;
}

.clinic-table td p {
    margin: 0;
    font-weight: bold;
}

.clinic-logo {
    width: 100%;
    max-width: 100px;
    height: auto;
    margin: 0 auto 5px;
    display: block;
}

.price {
    font-size: 1.6em;
    font-weight: bold;
    color: #e60000;
}

.rating-icon {
    font-size: 2em;
    line-height: 1;
    font-style: normal;
}
.rating-icon.orange { color: #ff9900; }
.rating-icon.gray { color: #808080; }
.rating-icon.orange-hollow {
    display: inline-block;
    width: 1em;
    height: 1em;
    border: 3px solid #ff9900;
    border-radius: 50%;
    box-sizing: border-box;
}

.official-site-btn {
    display: inline-block;
    background-color: #ff7f50;
    color: #fff;
    padding: 10px 0;
    width: 90%;
    max-width: 150px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    box-sizing: border-box;
}
.official-site-btn:hover { opacity: 0.8; }

/* ===================================
   PC向けスタイル（769px以上）
=================================== */
@media screen and (min-width: 769px) {
    .container img:not(.fv-image img):not(.clinic-comparison img) {
        max-width: 700px;
        margin-left: auto;
        margin-right: auto;
    }

    .clinic-heading .rank-icon {
        max-width: none !important;
        margin-left: 0 !important;
        margin-right: 15px !important;
        width: 80px !important;
        position: absolute;
        left: 5px !important;
        top: -20px !important;
        transform: none !important;
    }
    
    .clinic-section .clinic-heading.recommended-rank {
        padding-left: 100px !important;
        position: relative;
        overflow: visible !important;
        height: auto !important;
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
}

/* ===================================
   スマートフォン向けスタイル（768px以下）
=================================== */
@media screen and (max-width: 768px) {
    body { line-height: 1.7; }
    .container { padding: 15px; }
    .fv-image {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
    }
    .fv-image img { border-radius: 0; }
    h1 { font-size: 1.3em; }
    h2 { font-size: 1.3em; }
    h3 { font-size: 1.1em; }
    .comparison-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        font-size: 0.9em;
    }
    .table-container { overflow-x: auto; }
    .clinic-table { min-width: 800px; }
}

/* ===================================
   おすすめ3選のスタイル
=================================== */
.recommend-top3 {
    background-image: url('img/osusume3_bg.jpg');
    background-repeat: repeat;
    padding: 40px 20px;
    margin-top: 40px;
    margin-bottom: 40px;
    border-radius: 10px;
    box-sizing: border-box;
}

.recommend-top3-title {
    display: block;
    margin: 0 auto 30px;
    max-width: 100%;
    width: 550px;
}

.clinic-cards-container {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.clinic-card {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 5px solid #7bdff4;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 32%;
    max-width: 280px;
    text-decoration: none;
    color: #02414e;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
    box-sizing: border-box;
}

.clinic-card:hover {
    transform: translateY(-5px);
    border-color: #ff7f50;
}

.card-logo {
    max-width: 100%;
    width: auto;
    height: 60px;
    object-fit: contain;
    margin: 0 auto 15px;
    display: block;
}

.card-clinic-name {
    font-weight: bold;
    font-size: 1.1em;
    margin: 0 0 15px;
    flex-grow: 1;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.price-box {
    background-color: #fffacd;
    border-radius: 8px;
    padding: 8px 5px;
    margin-bottom: 15px;
}

.card-plan {
    margin: 0;
    font-size: 0.9em;
    line-height: 1.3;
}

.card-price {
    font-size: 2.2em;
    font-weight: bold;
    color: #e60000;
    margin: 2px 0 0;
    line-height: 1.1;
}

.card-feature {
    margin: 5px 0;
    font-size: 1em;
    font-weight: bold;
}

.card-button {
    display: inline-block;
    background-color: #ff7f50;
    color: #fff;
    padding: 12px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: auto;
}

@media screen and (max-width: 768px) {
    .clinic-cards-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .clinic-card {
        width: 95%;
        max-width: 350px;
    }
}

/* ===================================
   クリニック個別紹介セクション
=================================== */
.clinic-section {
    margin-top: 40px;
    margin-bottom: 50px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.clinic-section .clinic-heading.recommended-rank {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    font-size: 28px !important;
    color: #fff !important;
    background-color: #15c2ab !important;
    margin-top: 0 !important;
    margin-bottom: 25px !important;
    border-left: none !important;
    border-bottom: none !important;
    border-radius: 8px 8px 0 0;
    padding: 10px 10px 10px 100px !important;
    position: relative;
    overflow: visible !important;
}

.clinic-heading .rank-icon {
    width: 80px !important;
    height: auto;
    position: absolute !important;
    left: 5px !important;
    top: -20px !important;
}

.clinic-detail-layout {
    display: flex !important;
    gap: 30px !important;
    align-items: flex-start !important;
    margin-bottom: 30px !important;
    flex-wrap: wrap !important;
}

.clinic-banner-wrapper {
    flex-shrink: 0;
    width: 300px;
    height: 250px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.eminal-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.clinic-points-container {
    flex-grow: 1;
    min-width: 280px;
}

.points-wrapper {
    background-color: #f8efca !important;
    border: 5px solid #ff9500 !important;
    border-radius: 8px;
    padding: 25px 15px 15px 25px !important;
    margin: 0 !important;
    position: relative;
}

.points-title {
    font-size: 24px !important;
    font-weight: bold;
    color: #ff9500 !important;
    margin-top: 0 !important;
    margin-bottom: 10px !important;
}

.point-item-paragraph {
    font-size: 18px !important;
    line-height: 1.5;
    margin-bottom: 5px !important;
    padding-left: 30px !important;
    text-indent: -20px !important;
}

.point-item-paragraph .bullet {
    color: #ff9500 !important;
    font-weight: bold !important;
    font-size: 1.2em !important;
}

.top-right-point-icon {
    position: absolute !important;
    top: 5px !important;
    right: 5px !important;
    width: 60px !important;
}

.clinic-official-btn {
    display: block !important;
    margin: 0 auto !important;
    background-color: #ff9500;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2em;
    width: 80% !important;
    text-align: center;
}

.site-footer {
    background-color: #0c7389;
    color: #fff;
    padding: 30px 0;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    text-align: center;
    margin-top: 50px;
}

/* ===================================
   追加：監修者プロフィール（他パーツに影響なし）
=================================== */

/* 監修者セクション全体の囲い */
.lp-doctor-wrapper {
    max-width: 800px !important;
    margin: 60px auto !important;
    border: 2px solid #0c7389 !important;
    border-radius: 15px !important;
    padding: 40px !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* 見出し（pタグ）：箱デザインを打ち消し、緑の文字のみに */
.lp-doctor-heading-custom {
    color: #0c7389 !important;
    font-size: 24px !important;
    font-weight: bold !important;
    margin: 0 0 30px 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    text-align: left !important;
    line-height: 1.4 !important;
}

/* フレックス配置 */
.lp-doctor-flex {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

/* 似顔絵と名前のブロック */
.lp-doctor-visual {
    flex: 0 0 160px !important;
    text-align: center !important;
}

.lp-doctor-photo {
    width: 160px !important;
    height: 160px !important;
    margin-bottom: 10px !important;
}

.lp-doctor-photo img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}

/* ドクター名：極太設定 */
.lp-doctor-name-label {
    font-weight: 900 !important;
    font-size: 18px !important;
    color: #333 !important;
    margin: 0 !important;
}

/* 経歴リスト：グローバルの青枠・背景色設定をここで完全にリセット */
.lp-doctor-history {
    list-style-type: disc !important; /* 標準の点にする */
    padding: 0 0 0 20px !important;
    margin: 0 0 20px 0 !important;
    border: none !important;         /* 共通設定の青枠を消す */
    background-color: transparent !important; /* 共通設定の背景色を消す */
}

.lp-doctor-history li {
    padding-left: 0 !important;
    margin-bottom: 5px !important;
    line-height: 1.6 !important;
}

.lp-doctor-history li::before {
    content: none !important; /* 共通設定の「・」を消す */
}

/* 紹介文：極太設定 */
.lp-doctor-bio-text {
    font-weight: 900 !important;
    font-size: 17px !important;
    line-height: 1.8 !important;
    color: #444 !important;
}

.lp-doctor-bio-text p {
    margin: 0 !important;
}

/* 監修者スマホ対応 */
@media screen and (max-width: 768px) {
    .lp-doctor-wrapper {
        padding: 30px 20px !important;
        margin: 40px 15px !important;
        width: auto !important;
    }
    .lp-doctor-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 20px !important;
    }
    .lp-doctor-heading-custom {
        font-size: 20px !important;
        text-align: center !important;
    }
    .lp-doctor-bio-text {
        font-size: 15px !important;
        text-align: left !important;
    }
    .lp-doctor-bio-text br {
        display: none !important; /* スマホでは改行を消して読みやすく */
    }
}