/* ============================================
   1. レイアウト・リセット（テーマ固有の余白削除）
   ============================================ */

/* LP外枠の定義 */
#lp-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ★ここが修正ポイント★ 
   テーマ固有のクラス(.main_page)の90px余白と緑背景を削除 
*/
body.page-template-page-lp .main_page,
body.page-template-page-lp .main_ {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: none !important; /* 緑の模様を消す */
}

/* その他、一般的なテーマの余白も念のため削除 */
body.page-template-page-lp .site-content,
body.page-template-page-lp #content,
body.page-template-page-lp #main,
body.page-template-page-lp .wrapper,
body.page-template-page-lp .container,
body.page-template-page-lp .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
}

/* ヘッダー自体の下にある余白も削除 */
body.page-template-page-lp header,
body.page-template-page-lp .site-header,
body.page-template-page-lp #header,
body.page-template-page-lp .l-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* パンくずリストなどが隙間を作っている場合用 */
body.page-template-page-lp .breadcrumb,
body.page-template-page-lp .p-breadcrumb,
body.page-template-page-lp #breadcrumb {
    display: none !important;
}


/* ============================================
   2. LP全体共通デザイン
   ============================================ */
.lp-section {
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.lp-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.lp-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: #333;
}

/* ============================================
   3. 各セクションの装飾
   ============================================ */

/* --- FV（ヒーローエリア） --- */
.lp-hero {
    background-color: #f0f4f8;
    text-align: center;
    padding: 100px 20px;
}

.lp-catch {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.4;
    color: #333;
}

.lp-catch span {
    font-size: 20px;
    display: block;
    margin-top: 10px;
    font-weight: normal;
}

.lp-desc {
    font-size: 18px;
    margin-bottom: 30px;
}

/* --- ボタン共通 --- */
.lp-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.lp-btn {
    display: inline-block;
    background-color: #e60012;
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: opacity 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.lp-btn:hover {
    opacity: 0.8;
}

/* --- お悩みエリア --- */
.lp-problem {
    background-color: #fff;
}

.lp-check-list {
    background: #f9f9f9;
    padding: 40px;
    border: 2px solid #333;
    list-style: none;
    max-width: 600px;
    margin: 0 auto;
}

.lp-check-list li {
    font-size: 18px;
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.lp-check-list li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #e60012;
    font-weight: bold;
}

/* --- 解決策エリア --- */
.lp-solution {
    background-color: #eef2f5;
}

.lp-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.lp-feature-item {
    background: #fff;
    padding: 30px;
    flex: 1;
    min-width: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lp-feature-item h3 {
    color: #0056b3;
    margin-bottom: 15px;
    font-size: 20px;
    border-bottom: 2px solid #0056b3;
    display: inline-block;
}

/* --- CTA（最下部）エリア --- */
.lp-cta {
    background-color: #333;
    color: #fff;
    text-align: center;
}

.lp-cta .lp-title {
    color: #fff;
}

.lp-btn-large {
    font-size: 24px;
    padding: 20px 80px;
}

/* ============================================
   4. 追加の調整（画像配置とレイアウト修正）
   ============================================ */

/* 追加したメイン画像のスタイル */
.lp-main-img {
    max-width: 100%; /* 画面からはみ出さないように */
    height: auto;
    margin-bottom: 30px; /* キャッチコピーとの間隔 */
    border-radius: 10px; /* 角を少し丸くする（お好みで） */
    box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* 影をつけて浮かび上がらせる */
}

/* --- PC画面でのレイアウト調整（768px以上） --- */
@media screen and (min-width: 768px) {
    /* FVエリアを左右2カラムにする */
    .lp-hero .lp-inner {
        display: flex;
        align-items: center; /* 上下中央揃え */
        flex-direction: row-reverse; /* 画像を右、テキストを左に */
        gap: 40px; /* 画像とテキストの間隔 */
        text-align: left; /* テキストを左寄せに */
    }

    /* 画像の幅を調整 */
    .lp-main-img {
        flex: 1; /* 幅の半分を占める */
        max-width: 50%;
        margin-bottom: 0;
    }

    /* テキストエリアの幅を調整 */
    .lp-hero .lp-inner > *:not(.lp-main-img) {
        flex: 1;
    }

    /* 左寄せになるので、サブキャッチコピーをブロック要素からインラインに戻す */
    .lp-catch span {
        display: inline-block;
        margin-top: 0;
        margin-left: 10px; /* メインコピーとの間隔 */
        font-size: 24px;
    }
    
    /* ボタンも左寄せに */
    .lp-btn-wrap {
        text-align: left;
    }
}

/* ============================================
   5. 緊急修正（改行・タイトル削除・スマホ調整）
   ============================================ */

/* 日本語の変な改行（韓国語学 / 習 など）を防ぐ */
.lp-catch {
    word-break: keep-all; 
    overflow-wrap: break-word;
    line-height: 1.5; /* 行間を少し広げて読みやすく */
}

/* 一番上の邪魔なページタイトル（ミレマガ...）を消す */
/* テーマによってクラス名が違うため、代表的なものを列挙して消します */
body.page-template-page-lp .entry-title,
body.page-template-page-lp .page-header,
body.page-template-page-lp .main-title,
body.page-template-page-lp h1.title {
    display: none !important;
}

/* --- スマホ・タブレット（画面幅768px未満）の調整 --- */
@media screen and (max-width: 767px) {
    /* キャッチコピーを少し小さくして画面に収める */
    .lp-catch {
        font-size: 26px; 
    }
    
    /* 画像の下の余白を調整 */
    .lp-main-img {
        margin-bottom: 20px;
        width: 80%; /* 画像が大きすぎる場合は少し小さく（お好みで） */
    }
}


/* ============================================
   1. レイアウト・リセット（テーマ固有の余白削除）
   ============================================ */
#lp-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    color: #333;
    font-family: sans-serif;
}

/* テーマ固有のクラス(.main_page)の90px余白と緑背景を削除 */
body.page-template-page-lp .main_page,
body.page-template-page-lp .main_ {
    padding-top: 0 !important;
    margin-top: 0 !important;
    background: none !important;
}

/* その他、一般的なテーマの余白も削除 */
body.page-template-page-lp .site-content,
body.page-template-page-lp #content,
body.page-template-page-lp #main,
body.page-template-page-lp .wrapper,
body.page-template-page-lp .container,
body.page-template-page-lp .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    max-width: 100% !important;
}

/* ヘッダー自体の下にある余白も削除 */
body.page-template-page-lp header,
body.page-template-page-lp .site-header,
body.page-template-page-lp #header,
body.page-template-page-lp .l-header {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    border-bottom: none !important;
}

/* パンくずリストなどが隙間を作っている場合用 */
body.page-template-page-lp .breadcrumb,
body.page-template-page-lp .p-breadcrumb,
body.page-template-page-lp #breadcrumb {
    display: none !important;
}

/* ページタイトル削除 */
body.page-template-page-lp .entry-title,
body.page-template-page-lp .page-header,
body.page-template-page-lp .main-title,
body.page-template-page-lp h1.title {
    display: none !important;
}


/* ============================================
   2. LP全体共通デザイン
   ============================================ */
.lp-section {
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}

.lp-inner {
    max-width: 1000px;
    margin: 0 auto;
}

.lp-title {
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    color: #333;
}
.lp-title span {
    color: #e60012; /* アクセントカラー */
}

/* ============================================
   3. 基本セクションの装飾
   ============================================ */

/* --- FV（ヒーローエリア） --- */
.lp-hero {
    background-color: #f0f4f8;
    text-align: center;
    padding: 80px 20px;
}

.lp-catch {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.5;
    color: #333;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.lp-catch span {
    font-size: 20px;
    display: block;
    margin-top: 10px;
    font-weight: normal;
}

.lp-desc {
    font-size: 16px;
    margin-bottom: 30px;
    line-height: 1.6;
}

/* --- ボタン共通 --- */
.lp-btn-wrap {
    text-align: center;
    margin-top: 30px;
}

.lp-btn {
    display: inline-block;
    background-color: #e60012;
    color: #fff;
    padding: 15px 60px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    transition: opacity 0.3s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.lp-btn:hover { opacity: 0.8; }

/* 青いボタン（決済用など） */
.lp-btn-blue {
    background-color: #0056b3;
}
/* 銀行振込用ボタン（白抜き） */
.lp-btn-outline {
    background-color: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.lp-btn-outline:hover {
    background-color: #fff;
    color: #0056b3;
}


/* --- 3つの特徴・リストエリア --- */
.lp-solution { background-color: #fff; }

.lp-features {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.lp-feature-item {
    background: #f9f9f9;
    padding: 30px;
    flex: 1;
    min-width: 280px;
    border-radius: 8px;
    border-top: 4px solid #e60012; /* 上に赤い線 */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.lp-feature-item h3 {
    color: #333;
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}


/* --- CTAエリア --- */
.lp-cta {
    background-color: #333;
    color: #fff;
    text-align: center;
}
.lp-cta .lp-title { color: #fff; }

/* ============================================
   4. 【追加】今回のコンテンツ専用スタイル
   ============================================ */

/* --- 画像の配置調整 --- */
.lp-main-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

/* --- 特典ボックス（オレンジ色） --- */
.lp-bonus-box {
    background-color: #fff7ed; /* 薄いオレンジ */
    border: 2px solid #ffedd5;
    border-radius: 12px;
    padding: 30px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 20px;
}
.lp-bonus-icon {
    font-size: 40px;
    color: #f97316;
}
.lp-bonus-content h3 {
    font-size: 20px;
    color: #c2410c;
    margin-bottom: 10px;
    font-weight: bold;
}

/* --- 注意書きボックス（黄色・Gmail推奨） --- */
.lp-warning-box {
    background-color: #fffbeb;
    border-left: 5px solid #f59e0b;
    padding: 20px;
    color: #333;
    text-align: left;
    margin: 0 auto 30px auto;
    max-width: 800px;
    border-radius: 4px;
}
.lp-warning-title {
    font-weight: bold;
    color: #92400e;
    display: block;
    margin-bottom: 10px;
}

/* --- 有料版セクション（青系） --- */
.lp-paid-section {
    background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 100%);
}

/* 有料版コンテンツのリスト */
.lp-paid-list {
    margin-bottom: 40px;
}
.lp-paid-item {
    display: flex;
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}
.lp-paid-icon {
    width: 50px;
    height: 50px;
    background: #e0e7ff;
    color: #4338ca;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 24px;
    margin-right: 20px;
    flex-shrink: 0;
}

/* --- 料金・決済エリア（黒背景） --- */
.lp-price-area {
    background-color: #111827;
    color: #fff;
    padding: 60px 20px;
    border-radius: 20px;
    text-align: center;
    margin-top: 40px;
}
.lp-price {
    font-size: 50px;
    font-weight: bold;
    color: #818cf8; /* 薄い紫 */
    margin: 20px 0;
}
.lp-price span { font-size: 20px; color: #fff; }


/* ============================================
   5. レスポンシブ調整（PC/スマホ）
   ============================================ */

/* PC画面（768px以上）のレイアウト */
@media screen and (min-width: 768px) {
    /* FVエリア：左右2カラム */
    .lp-hero .lp-inner {
        display: flex;
        align-items: center;
        flex-direction: row-reverse; /* 画像右、テキスト左 */
        gap: 50px;
        text-align: left;
    }
    .lp-main-img {
        flex: 1;
        max-width: 45%;
        margin-bottom: 0;
    }
    .lp-hero .lp-inner > div:not(.lp-main-img) {
        flex: 1;
    }
    .lp-catch span {
        display: inline-block;
        margin-left: 15px;
        margin-top: 0;
    }
    .lp-btn-wrap { text-align: left; }
    
    /* CTAエリアのボタンは中央寄せのままにする場合 */
    .lp-cta .lp-btn-wrap { text-align: center; }

    /* 決済ボタンの横並び */
    .lp-price-btns {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
}

/* スマホ画面（767px以下）の調整 */
@media screen and (max-width: 767px) {
    .lp-catch { font-size: 26px; }
    .lp-main-img { width: 80%; margin: 0 auto 30px auto; display: block; }
    .lp-bonus-box { flex-direction: column; text-align: center; }
    .lp-price-btns .lp-btn { width: 100%; margin-bottom: 10px; box-sizing: border-box; }
}