@charset "UTF-8";
/* =========================================================
   LEGEND AGA Affiliate – Minimal Style (SWELL尊重)
   v4.0.0
   - SWELL のデフォルトレイアウトを上書きしない
   - 装飾は記事本文内の独自クラス（lg-cta-btn 等）と
     共通パーツ（PR表記・パンくず・人気記事ウィジェット）のみ
   ========================================================= */

/* ---------- 不要なデフォルト要素を非表示 ---------- */
#main_visual,
.p-mainVisual,
.p-mvSlider,
.p-mainVisual__img,
.p-mainVisual__slideTitle,
#pickup_banner,
.p-pickupBanners,
img[src*="picsum.photos"] { display: none !important; }

/* ---------- SPメニュー要素：PC幅で確実に非表示 ---------- */
@media (min-width: 960px) {
    #sp_menu,
    .p-spMenu,
    .l-header__spNav,
    .p-spHeadMenu {
        display: none !important;
        visibility: hidden !important;
    }
}
.p-spMenu { transform: translateX(-100%); transition: transform .3s ease; }
.p-spMenu.-open { transform: translateX(0); }

/* PR表記ヘッダー（削除済み） .lg-pr-notice は出力されない */

/* ===================================================
   個別記事ヘッダーのアイキャッチを横長16:9で表示（縦長防止）
   =================================================== */
.p-articleThumb,
.p-articleThumb__img,
.l-article .p-articleThumb img,
.l-mainContent .p-articleThumb img,
.l-article > .p-articleThumb img,
.single .post-thumbnail img,
.single .wp-post-image {
    aspect-ratio: 16 / 9 !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: cover !important;
    object-position: center top !important;
}
.p-articleThumb { overflow: hidden; }

/* ===================================================
   パンくず（ヘッダー直下）
   =================================================== */
.lg-breadcrumb {
    background: #fafafa;
    padding: 8px 0;
    border-bottom: 1px solid #ececec;
    margin: 0 0 20px;
    font-size: 12.5px;
}
.lg-breadcrumb ol {
    list-style: none;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 1200px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.lg-breadcrumb li { color: #707070; letter-spacing: .04em; }
.lg-breadcrumb li + li::before { content: "›"; margin: 0 10px; color: #bbb; }
.lg-breadcrumb a { color: #707070; text-decoration: none; }
.lg-breadcrumb a:hover { color: #1f3a5f; }
.lg-breadcrumb [aria-current="page"] { color: #1a1a1a; font-weight: 600; }

/* ===================================================
   ロゴ画像のサイズ調整
   =================================================== */
:root {
    --logo_size_pc:    50px;
    --logo_size_sp:    36px;
    --logo_size_pcfix: 40px;
}
.c-headLogo img,
.custom-logo,
.custom-logo-link img {
    max-height: 50px;
    width: auto !important;
    height: auto !important;
}
@media (max-width: 959px) {
    .c-headLogo img,
    .custom-logo,
    .custom-logo-link img { max-height: 36px; }
}

/* ===================================================
   記事本文内のCTAボタン（独自クラス）
   - 12記事の本文中に含まれる lg-cta-btn / lg-cta-block / lg-cta-mini 用
   =================================================== */
.lg-cta-btn {
    display: inline-block;
    padding: 12px 26px;
    background: #e07b2f;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 700;
    letter-spacing: .06em;
    border-radius: 999px;
    box-shadow: 0 3px 0 #b95e1f;
    transition: transform .15s ease, box-shadow .15s ease;
    font-size: 14px;
}
.lg-cta-btn:hover { transform: translateY(2px); box-shadow: 0 1px 0 #b95e1f; }
.lg-cta-btn--lg { padding: 14px 32px; font-size: 15px; }

.lg-cta-block {
    background: #f4f7fb;
    border: 1px solid #e0e8f0;
    border-radius: 8px;
    padding: 24px 20px;
    margin: 32px 0 20px;
    text-align: center;
}
.lg-cta-block p:first-child { color: #555; margin-bottom: 12px; font-size: 14px; }

.lg-cta-mini { text-align: center; margin: 20px 0; }

/* ===================================================
   サイドバー人気記事 [legend_sidebar_ranking]
   - 軽い装飾のみ
   =================================================== */
.lg-sb-ranking { display: flex; flex-direction: column; gap: 14px; }
.lg-sb-rank-card { display: block; text-decoration: none !important; color: #1a1a1a !important; }
.lg-sb-rank-card:hover { opacity: .9; }
.lg-sb-thumb {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 8px;
    background: #fafafa;
}
.lg-sb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lg-sb-rank-no {
    position: absolute; top: 0; left: 0;
    width: 26px; height: 26px;
    display: flex; align-items: center; justify-content: center;
    background: #cfd2d6;
    color: #2a2a2a;
    font-size: 12px;
    font-weight: 700;
    font-family: "Georgia", serif;
    z-index: 2;
}
.lg-sb-rank-card.lg-rank-top1 .lg-sb-rank-no { background: #f3c64a; color: #3a2a00; }
.lg-sb-rank-card.lg-rank-top2 .lg-sb-rank-no { background: #b9c2c8; color: #fff; }
.lg-sb-rank-card.lg-rank-top3 .lg-sb-rank-no { background: #c89a72; color: #fff; }
.lg-sb-title { font-size: 12.5px; font-weight: 700; line-height: 1.55; margin: 0; }
.lg-sb-rank-card:hover .lg-sb-title { color: #1f3a5f; }

/* プロフィールウィジェット */
.lg-profile-widget { text-align: center; padding: 8px 0; }
.lg-profile-widget__avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: #e8edf3;
    margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    color: #1f3a5f;
    font-weight: 700;
}
.lg-profile-widget__name { font-weight: 700; margin-bottom: 6px; }
.lg-profile-widget__bio { font-size: 12.5px; color: #707070; line-height: 1.75; text-align: left; }

/* ===================================================
   お問い合わせフォーム（独自実装なので残す）
   =================================================== */
.lg-contact-wrap { max-width: 720px; margin: 0 auto; }
.lg-contact-form {
    background: #fff;
    padding: 28px;
    border-radius: 10px;
    border: 1px solid #ececec;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
@media (max-width: 600px) { .lg-contact-form { padding: 20px 16px; } }
.lg-contact-row { margin-bottom: 18px; }
.lg-contact-row label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.lg-contact-row input[type="text"],
.lg-contact-row input[type="email"],
.lg-contact-row input[type="tel"],
.lg-contact-row select,
.lg-contact-row textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #ececec;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color .2s, box-shadow .2s;
}
.lg-contact-row textarea { resize: vertical; min-height: 140px; }
.lg-contact-row input:focus,
.lg-contact-row select:focus,
.lg-contact-row textarea:focus {
    outline: none;
    border-color: #1f3a5f;
    box-shadow: 0 0 0 3px #e8edf3;
}
.lg-contact-row select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%231f3a5f' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}
.lg-required {
    color: #fff; background: #d9534f;
    font-size: 10.5px; padding: 2px 7px;
    border-radius: 999px; margin-left: 6px; font-weight: 700;
}
.lg-optional {
    color: #707070; background: #fafafa;
    border: 1px solid #ececec;
    font-size: 10.5px; padding: 2px 7px;
    border-radius: 999px; margin-left: 6px; font-weight: 700;
}
.lg-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.lg-contact-agree {
    margin: 22px 0 8px;
    padding: 12px 14px;
    background: #fafafa;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}
.lg-contact-agree input[type="checkbox"] {
    width: 16px; height: 16px;
    margin-right: 6px;
    accent-color: #1f3a5f;
    vertical-align: -3px;
}
.lg-contact-agree a { color: #1f3a5f; text-decoration: underline; }
.lg-contact-submit { text-align: center; margin-top: 22px; }
.lg-contact-msg { padding: 14px 18px; border-radius: 8px; margin-bottom: 20px; }
.lg-contact-msg strong { display: block; font-size: 16px; margin-bottom: 4px; }
.lg-contact-msg p { margin: 0; font-size: 14px; line-height: 1.65; }
.lg-contact-msg--ok { background: #e8f5e9; border-left: 4px solid #1a7f3e; color: #1a7f3e; }
.lg-contact-msg--err { background: #fff3cd; border-left: 4px solid #ffc107; color: #856404; }

/* ===================================================
   著者体験談ブロック・失敗事例カード（SEO記事用）
   =================================================== */
.lg-author-voice {
    background: #fff8e1;
    border-left: 4px solid #f3c64a;
    padding: 16px 22px;
    border-radius: 4px;
    margin: 28px 0;
    font-style: normal;
}
.lg-author-voice::before {
    display: block;
    content: "💬 レジェンドの体験談";
    font-size: 11.5px;
    font-weight: 700;
    color: #b58a17;
    letter-spacing: .08em;
    margin-bottom: 8px;
}
.lg-author-voice p { margin: 0; font-size: 14.5px; line-height: 1.85; color: #3a2a00; }
.lg-author-voice p + p { margin-top: 10px; }

.lg-fail-case {
    background: #fff5f5;
    border: 1px solid #ffe0e0;
    border-radius: 8px;
    padding: 20px 22px;
    margin: 24px 0;
}
.lg-fail-case h3 {
    margin: 0 0 10px;
    color: #c0392b;
    font-size: 17px;
    border-bottom: 1px dotted #ffc4c4;
    padding-bottom: 8px;
    border-left: none !important;
}
.lg-fail-case p {
    font-size: 14px;
    line-height: 1.85;
    margin: 6px 0;
}
.lg-fail-case strong { color: #c0392b; }

/* ===================================================
   ランキング記事内のクリニック紹介ブロック
   公式サイトスクショ + 紹介文のラッパー
   =================================================== */
.lg-clinic-card {
    border: 1px solid #ececec;
    border-radius: 10px;
    overflow: hidden;
    margin: 28px 0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.lg-clinic-card__thumb {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #fafafa;
}
.lg-clinic-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}
.lg-clinic-card__body { padding: 18px 22px 22px; }
.lg-clinic-card__body h3 {
    margin: 0 0 12px !important;
    border-left: none !important;
    border-bottom: 2px solid #1f3a5f !important;
    padding: 0 0 8px !important;
    font-size: 18px !important;
    color: #1a1a1a !important;
}
.lg-clinic-card__body p { font-size: 14.5px; line-height: 1.85; margin: 8px 0; }
.lg-clinic-card__body .lg-cta-btn { margin-top: 10px; }

/* ランキング記事内 各クリニックh2直後の公式サイトスクショ画像 */
.lg-clinic-thumb-img {
    width: 100% !important;
    aspect-ratio: 16 / 9 !important;
    object-fit: cover !important;
    object-position: center top !important;
    height: auto !important;
    border-radius: 8px;
    margin: 14px 0 18px !important;
    display: block;
    box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
