/* Media Strategy LAB - BtoB LP Styles (style.css) */
/* 使用カラー:
   Base: #F9F9F9, #F2F2F2
   Main: #333333, #4A4A4A
   Accent: #800000, #A52A2A
   Sub: #E0E0E0
*/

/* -------------------------------------------------------------------
 * 【重要】Cocoonなどのテーマ既存CSSを上書きするための高詳細度リセット
 * ------------------------------------------------------------------- */
.msl-lp-wrapper {
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif !important;
    color: #333333 !important;
    line-height: 1.8 !important;
    letter-spacing: 0.05em !important;
    /* Cocoonのコンテナ幅に合わせる */
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    overflow-x: hidden;
}

/* 見出しリセット（CocoonのH2などの背景色やpaddingを強制キャンセル） */
.msl-lp-wrapper h1,
.msl-lp-wrapper h2,
.msl-lp-wrapper h3,
.entry-content .msl-lp-wrapper h1,
.entry-content .msl-lp-wrapper h2,
.entry-content .msl-lp-wrapper h3,
#the-content .msl-lp-wrapper h1,
#the-content .msl-lp-wrapper h2,
#the-content .msl-lp-wrapper h3 {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    color: #333333 !important;
    border-radius: 0 !important;
}

/* リスト(ul/li)リセット */
.msl-lp-wrapper ul,
.msl-lp-wrapper li,
.entry-content .msl-lp-wrapper ul,
.entry-content .msl-lp-wrapper li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #333333 !important;
}

/* 共通コンテナ */
.msl-container {
    width: 100% !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
    /* ここで左右の余白を制御（背景色は親要素で広げるため） */
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

/* セクション共通 */
.msl-section {
    padding: 80px 0 !important;
}

@media (min-width: 768px) {
    .msl-section {
        padding: 120px 0 !important;
    }
}

/* 独自のセクションタイトル */
.msl-lp-wrapper h2.msl-section-title,
.entry-content .msl-lp-wrapper h2.msl-section-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    text-align: center !important;
    margin-bottom: 50px !important;
    color: #333333 !important;
    position: relative !important;
    padding-bottom: 25px !important;
}

.msl-lp-wrapper h2.msl-section-title::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 60px !important;
    height: 3px !important;
    background-color: #800000 !important;
}

/* 背景色・テキストユーティリティ */
.msl-bg-gray {
    background-color: #F9F9F9 !important;
}

.msl-bg-dark {
    background-color: #333333 !important;
    color: #FFFFFF !important;
}

/* 実績セクションは白文字（詳細度高めに） */
.msl-lp-wrapper .msl-results h2.msl-section-title,
.entry-content .msl-lp-wrapper .msl-results h2.msl-section-title {
    color: #FFFFFF !important;
}

.msl-lp-wrapper .msl-results h2.msl-section-title::after {
    background-color: #FFFFFF !important;
}

.msl-text-white {
    color: #FFFFFF !important;
}

.msl-text-center {
    text-align: center !important;
}

.msl-mt-4 {
    margin-top: 40px !important;
}

.msl-mt-8 {
    margin-top: 80px !important;
}



/* ボタン (Cocoonのブロックボタンスタイルを強力に上書き) */
.msl-btn-wrap {
    text-align: center !important;
    margin-top: 40px !important;
}

.msl-lp-wrapper .msl-btn {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
}

.msl-lp-wrapper .msl-btn .wp-block-button__link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 18px 40px !important;
    border-radius: 50px !important;
    font-weight: bold !important;
    font-size: 16px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: auto !important;
    /* Cocoonのwidth:100%を解除 */
    background-color: #800000 !important;
    color: #FFFFFF !important;
    border: 2px solid #800000 !important;
    line-height: 1.2 !important;
}

/* after要素（矢印）は不要なので削除・非表示化 */
.msl-lp-wrapper .msl-btn .wp-block-button__link::after {
    display: none !important;
    content: none !important;
}

.msl-lp-wrapper .msl-btn .wp-block-button__link:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15) !important;
    background-color: #A52A2A !important;
    border-color: #A52A2A !important;
    color: #FFFFFF !important;
}


.msl-lp-wrapper .msl-btn-large .wp-block-button__link {
    font-size: 20px !important;
    padding: 22px 60px !important;
    width: 100% !important;
    max-width: 500px !important;
}

/* プレースホルダー */
.msl-placeholder-text {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 20px !important;
    color: #888 !important;
    font-size: 14px !important;
    text-align: center !important;
    background-color: #E0E0E0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 250px !important;
    border-radius: 12px !important;
    border: 2px dashed #bbb !important;
    box-sizing: border-box !important;
}

/* 1. ファーストビュー */
.msl-fv {
    background-color: #F2F2F2 !important;
    padding: 60px 0 80px !important;
}

.msl-fv .msl-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 40px !important;
}

.msl-fv-content {
    text-align: center !important;
    width: 100% !important;
}

.msl-lp-wrapper h1.msl-fv-title,
.entry-content .msl-lp-wrapper h1.msl-fv-title {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: #333333 !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    word-break: keep-all !important;
    overflow-wrap: anywhere !important;
}

.msl-fv-desc {
    font-size: 16px !important;
    margin-bottom: 30px !important;
}

.msl-sp-br {
    display: block !important;
}

.msl-pc-br {
    display: none !important;
}

.msl-fv-image-placeholder {
    width: 100% !important;
    max-width: 600px !important;
    min-height: 300px !important;
}

@media (min-width: 768px) {
    .msl-fv {
        padding: 80px 0 100px !important;
    }

    .msl-fv .msl-container {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }

    .msl-fv-content {
        text-align: left !important;
        width: 50% !important;
    }

    .msl-lp-wrapper h1.msl-fv-title,
    .entry-content .msl-lp-wrapper h1.msl-fv-title {
        font-size: 40px !important;
    }

    .msl-fv-desc {
        font-size: 18px !important;
    }

    .msl-btn-wrap {
        text-align: left !important;
    }

    .msl-sp-br {
        display: none !important;
    }

    .msl-pc-br {
        display: block !important;
    }

    .msl-fv-image-placeholder {
        width: 45% !important;
    }
}

/* 2. 課題 / 3. 解決策 */
.msl-issues-flex,
.msl-solutions-flex {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
}

.msl-issues-image,
.msl-solutions-image {
    order: -1 !important;
    /* SPでは画像を上に */
    width: 100% !important;
}

.msl-issues-list {
    background-color: transparent !important;
    /* 背景の白い箱をなくしてliごとにする場合、もしくは残すなら #FFFFFF のまま */
    padding: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin-bottom: 40px !important;
}

.entry-content .msl-issues-list li,
.msl-issues-list li {
    position: relative !important;
    background-color: #FFFFFF !important;
    border: 2px solid #800000 !important;
    border-radius: 8px !important;
    padding: 15px 15px 15px 45px !important;
    /* 左側にアイコン用の余白を広めにとる */
    text-indent: 0 !important;
    text-align: left !important;
    margin-bottom: 15px !important;
    font-weight: bold !important;
    line-height: 1.6 !important;
    list-style: none !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

.msl-issues-list li:last-child {
    margin-bottom: 0 !important;
}

.entry-content .msl-issues-list li::before,
.msl-issues-list li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 15px !important;
    /* liのボーダーからの距離 */
    top: 50% !important;
    transform: translateY(-50%) !important;
    /* 上下中央揃え */
    color: #800000 !important;
    font-size: 20px !important;
    font-family: inherit !important;
    font-weight: bold !important;
}

.msl-text-lead {
    font-size: 20px !important;
    font-weight: bold !important;
    color: #800000 !important;
    margin-bottom: 20px !important;
}

.msl-solutions-text p {
    margin-bottom: 15px !important;
}

@media (min-width: 768px) {

    .msl-issues-flex,
    .msl-solutions-flex {
        flex-direction: row !important;
        align-items: center !important;
    }

    .msl-issues-image {
        width: 45% !important;
        order: 0 !important;
    }

    .msl-issues-text {
        width: 50% !important;
    }

    .msl-solutions-text {
        width: 50% !important;
    }

    .msl-solutions-image {
        width: 45% !important;
        order: 0 !important;
    }
}

/* 4. 圧倒的な実績 */
.msl-results-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin-bottom: 30px !important;
}

.msl-result-card {
    background-color: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 40px 30px !important;
    border-radius: 12px !important;
    text-align: center !important;
    transition: transform 0.3s ease !important;
}

.msl-result-card:hover {
    transform: translateY(-5px) !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.msl-result-number {
    font-size: 48px !important;
    font-weight: 800 !important;
    color: #FFFFFF !important;
    margin-bottom: 15px !important;
    line-height: 1 !important;
}

.msl-result-number span {
    font-size: 24px !important;
}

.msl-result-desc {
    font-size: 15px !important;
    color: #E0E0E0 !important;
    margin: 0 !important;
}

.msl-results-note {
    font-size: 13px !important;
    color: #bbb !important;
}

@media (min-width: 768px) {
    .msl-results-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 5. 導入フロー */
.msl-flow-steps {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    margin-top: 40px !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.msl-step {
    background-color: #FFFFFF !important;
    border: 2px solid #E0E0E0 !important;
    padding: 20px 30px !important;
    border-radius: 8px !important;
    text-align: center !important;
    font-weight: bold !important;
    position: relative !important;
    z-index: 1 !important;
}

/* SP時の下向き矢印 */
.msl-step:not(:last-child)::after {
    content: '▼' !important;
    position: absolute !important;
    bottom: -25px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    color: #800000 !important;
    font-size: 20px !important;
    z-index: 0 !important;
}

@media (min-width: 768px) {
    .msl-flow-steps {
        flex-direction: row !important;
        gap: 15px !important;
        align-items: stretch !important;
    }

    .msl-step {
        flex: 1 !important;
        font-size: 14px !important;
        padding: 20px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    /* PC時の右向き矢印を再設定 */
    .msl-step:not(:last-child)::after {
        content: '▶' !important;
        bottom: auto !important;
        top: 50% !important;
        right: -20px !important;
        left: auto !important;
        transform: translateY(-50%) !important;
    }
}

/* 料金プラン */
.msl-plans-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 30px !important;
    margin-top: 40px !important;
}

.msl-plan-card {
    background-color: #FFFFFF !important;
    border: 1px solid #E0E0E0 !important;
    padding: 40px 30px !important;
    border-radius: 12px !important;
    text-align: center !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: transform 0.3s ease !important;
}

.msl-plan-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    border-color: #800000 !important;
}

/* ホバー時のアクセント線 */
.msl-plan-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background-color: #800000 !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
    transform-origin: left !important;
}

.msl-plan-card:hover::before {
    transform: scaleX(1) !important;
}

.msl-plan-name {
    font-size: 20px !important;
    color: #800000 !important;
    margin-bottom: 20px !important;
    font-weight: bold !important;
}

.msl-plan-desc {
    font-size: 14px !important;
    color: #666 !important;
    margin-bottom: 30px !important;
    min-height: 80px !important;
}

.msl-plan-price {
    font-size: 18px !important;
    font-weight: bold !important;
    border-top: 1px solid #E0E0E0 !important;
    padding-top: 20px !important;
    margin-bottom: 0 !important;
    color: #333333 !important;
}

.msl-plan-price span {
    font-size: 32px !important;
}

@media (min-width: 768px) {
    .msl-plans-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* FAQ */
.msl-faq-list {
    max-width: 800px !important;
    margin: 0 auto !important;
}

.msl-faq-item {
    background-color: #FFFFFF !important;
    border-bottom: 1px solid #E0E0E0 !important;
    padding: 25px 0 !important;
}

.msl-faq-item:first-child {
    border-top: 1px solid #E0E0E0 !important;
}

.entry-content .msl-faq-item p.msl-faq-q,
.msl-faq-item p.msl-faq-q {
    font-weight: bold !important;
    font-size: 18px !important;
    color: #333333 !important;
    position: relative !important;
    padding-left: 35px !important;
    margin-bottom: 15px !important;
    line-height: 1.5 !important;
}

.msl-faq-item p.msl-faq-q::before {
    content: 'Q.' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #800000 !important;
}

.entry-content .msl-faq-item p.msl-faq-a,
.msl-faq-item p.msl-faq-a {
    font-size: 15px !important;
    color: #4A4A4A !important;
    margin: 0 !important;
    position: relative !important;
    padding-left: 35px !important;
    line-height: 1.6 !important;
}

.msl-faq-item p.msl-faq-a::before {
    content: 'A.' !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    color: #333333 !important;
    font-weight: bold !important;
}