/* ===== PC 共通 ===== */
.isa-cta-triple { 
    padding: 24px 0; 
}

/* 新しく追加した白パネル用のラッパー
   PCでは単なる幅揃え用のコンテナ */
.isa-cta-panel {
    max-width: 780px;
    margin: 0 auto;
}

.isa-cta-heading {
    font-size: clamp(18px, 2.6vw, 28px);
    font-weight: 700;
    text-align: center;
    letter-spacing: .04em;
    margin: 0 auto 20px;
    color: #222;
}

.isa-cta-row {
    display: flex;
    gap: 16px;
    margin: 0 auto;
    padding: 0 16px;
    max-width: 720px;
}

.isa-cta-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    padding: 23px 14px;
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    line-height: 1;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    width: 218px;
    white-space: nowrap;
}

.isa-cta-btn:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 10px 28px rgba(0,0,0,.18); 
    filter: saturate(1.05); 
}

.isa-cta-icon { 
    display: inline-flex; 
    flex-shrink: 0; 
}

.isa-cta-lesson  { background: #ff6b6a; } /* 左：ピンク寄り */
.isa-cta-request { background: #ff8d3a; } /* 中：オレンジ */
.isa-cta-counsel { background: #ff3645; } /* 右：レッド */

.isa-cta-icon img { 
    display:inline-block; 
    width: 31px;
    height:28px; 
}

.isa-cta-icon-fallback {
    display:inline-block; 
    width:28px; 
    height:28px; 
    border:2px solid rgba(255,255,255,.9); 
    border-radius:4px;
}

/* 見出し：左右に斜線デコ */
.isa-cta-heading-wrap{
    --slash-color: #1f2937;
    --slash-thickness: 1px;
    --slash-length: 44px;
    --slash-angle: 58deg;
    position: relative;
    max-width: 748px;
    margin: 0 auto 6px;
    padding: 8px 50px;           /* 斜線ぶん左右余白 */
}

.isa-cta-heading{
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.09em;
    margin: 0;
}

/* 左右の斜線（＼ ／） */
.isa-cta-heading-wrap::before,
.isa-cta-heading-wrap::after{
    content:"";
    position: absolute;
    top: 50%;
    width: var(--slash-length);
    height: var(--slash-thickness);
    background: var(--slash-color);
    transform-origin: center;
}

.isa-cta-heading-wrap::before{
    left: 12px;
    transform: translateY(-50%) rotate(var(--slash-angle)); /* ← 符号をプラスに */
    border-radius: var(--slash-thickness);
}

/* 右側（／ が正）*/
.isa-cta-heading-wrap::after{
    right: 12px;
    transform: translateY(-50%) rotate(calc(var(--slash-angle) * -1)); /* ← マイナスに */
    border-radius: var(--slash-thickness);
}


/* ===== SP（1024px以下）：青背景＋白パネルを実要素で再現 ===== */
@media (max-width: 1024px){

    .isa-cta-triple {
        /* パネルの余白・角丸も可変に */
        --panel-radius: clamp(25px, 4.5vw, 51px);

        /* 元の: background, margin, padding を
           ::before の inset + padding を分解して移植 */
        background: #e3f2fd;
        margin: 0;

        /* ★ 元の inset:
            clamp(22px, 3.5vw, 31px) 上
            clamp(12px, 3.5vw, 31px) 右
            clamp(13px, 3.5vw, 31px) 下
            clamp(12px, 3vw, 25px)   左
           をセクションの padding にして、
           「青い余白」を同じくらいに確保 */
        padding: clamp(12px, 3.5vw, 31px)
                 clamp(12px, 3.5vw, 31px)
                 clamp(12px, 3.5vw, 31px)
                 clamp(12px, 3vw, 25px);
    }

    /* ★ 白い角丸パネル（元は ::before だったもの） */
    .isa-cta-panel{
        background: #fff;
        border-radius: var(--panel-radius);
        box-shadow: 0 6px 18px rgba(0,0,0,.06);

        /* 元の .isa-cta-triple の padding: clamp(14px, 3vw, 27px) 0;
           をこの中に移して、コンテンツとの距離感を維持 */
        padding: clamp(10px, 3vw, 27px) 0;
    }

    .isa-cta-btn {
        width: auto;
    }

    /* 見出し：最大28pxのまま、下限は読みやすい16pxあたり */
    .isa-cta-heading{
        font-size: clamp(14px, 3.8vw, 72px);
        letter-spacing: 0.7px;
    }

    /* 見出しまわりのパディングも可変に */
    .isa-cta-heading-wrap{
        padding: 0 clamp(16px, 3vw, 27px) clamp(3px, 0.7vw, 11px);
        margin: 0 auto 0px;
    }

    /* SPでは斜線非表示 */
    .isa-cta-heading-wrap::before,
    .isa-cta-heading-wrap::after{
        display: none;
    }

    /* 並びは縦積み、gap・左右パディングも元のまま */
    .isa-cta-row{
        flex-direction: column;
        gap: clamp(10px, 4vw, 28px);
        max-width: none;
        margin: 0 auto;
        padding: 0 clamp(68px, 18vw, 193px);
    }

    /* ボタン文字：最大20pxのまま、下限は14pxあたり */
    .isa-cta-btn{
        min-height: clamp(59px, 13.5vw, 175px);
        border-radius: clamp(5px, 2.5vw, 16px);
        padding:       clamp(14px, 2.5vw, 22px);
        font-size: clamp(14px, 4.5vw + 1px, 89px);
        box-shadow: 0 10px 24px rgba(0,0,0,.12);
        gap: clamp(5px, 1vw, 24px);
    }

    /* アイコンもボタンに対して同じくらいの比率で可変に */
    .isa-cta-icon img{
        width: clamp(25px, 6.4vw, 65px);
        height: clamp(21px, 6vw, 58px);
    }
}

/* ボタンテキスト色の強制固定 */
.isa-cta-triple .isa-cta-btn .isa-cta-text {
    color: #fff !important;
}
.isa-cta-panel {
    max-width: none;
    margin: 0 auto;
}

/* 860px以下：元の指定を尊重（grid は flex なので影響ほぼなし） */
@media (max-width: 860px) {
    .isa-cta-row {
        grid-template-columns: 1fr;
    }
}
