/* ============================================================
 * 合同会社センターライト サービス案内17ページ 専用CSS(v5.32.0)
 * page-cl-service.php に対応する松案フルカスタムデザイン
 * ============================================================ */

.cl-srv-page{
    background: #fff;
    color: #101827;
    overflow: hidden;
    position: relative;
}

/* ============================================================
 * ヒーローセクション
 * ============================================================ */
.cl-srv-hero{
    position: relative;
    padding: 70px 0 90px;
    background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
    overflow: hidden;
    isolation: isolate;
}

.cl-srv-hero-bg{
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.cl-srv-hero-blob{
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .55;
    will-change: transform;
}
.cl-srv-hero-blob-1{
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(31,94,255,.42), transparent 70%);
    top: -180px;
    left: -120px;
    animation: cl-srv-blob-1 22s ease-in-out infinite;
}
.cl-srv-hero-blob-2{
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(78,205,196,.32), transparent 70%);
    top: 30%;
    right: -100px;
    animation: cl-srv-blob-2 28s ease-in-out infinite;
}
.cl-srv-hero-blob-3{
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(255,216,77,.28), transparent 70%);
    bottom: -180px;
    left: 35%;
    animation: cl-srv-blob-3 32s ease-in-out infinite;
}

@keyframes cl-srv-blob-1{
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(120px, 80px) scale(1.1); }
}
@keyframes cl-srv-blob-2{
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(-100px, 100px) scale(1.05); }
}
@keyframes cl-srv-blob-3{
    0%,100% { transform: translate(0,0) scale(1); }
    50%     { transform: translate(80px, -80px) scale(.95); }
}

.cl-srv-hero-grid{
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(31,94,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31,94,255,.05) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    opacity: .8;
}

.cl-srv-hero-inner{
    position: relative;
    z-index: 1;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

/* パンくず */
.cl-srv-breadcrumb{
    font-size: 12.5px;
    color: #5f6b7a;
    margin-bottom: 36px;
    letter-spacing: .03em;
}
.cl-srv-breadcrumb a{
    color: #5f6b7a;
    text-decoration: none;
    transition: color .2s ease;
}
.cl-srv-breadcrumb a:hover{
    color: var(--cl-blue, #1f5eff);
}
.cl-srv-bc-sep{
    margin: 0 8px;
    color: #c7cfdc;
}
.cl-srv-bc-current{
    color: #101827;
    font-weight: 600;
}

/* ヒーローコンテンツ */
.cl-srv-hero-content{
    display: flex;
    align-items: center;
    gap: 32px;
    margin-bottom: 36px;
}

.cl-srv-hero-icon{
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    background: linear-gradient(135deg, var(--cl-navy, #071327) 0%, #1a2d4e 100%);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow:
        0 20px 40px rgba(7,19,39,.25),
        inset 0 1px 0 rgba(255,255,255,.1);
    position: relative;
}
.cl-srv-hero-icon::before{
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: 26px;
    background: linear-gradient(135deg, rgba(31,94,255,.4), rgba(78,205,196,.3));
    z-index: -1;
    opacity: .6;
}
.cl-srv-hero-icon svg{
    width: 52px;
    height: 52px;
}

.cl-srv-hero-text{
    flex: 1;
    min-width: 0;
}

.cl-srv-eyebrow{
    display: inline-block;
    padding: 5px 14px;
    background: rgba(31,94,255,.1);
    color: var(--cl-blue, #1f5eff);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: 14px;
}

.cl-srv-title{
    font-size: clamp(28px, 4.2vw, 44px);
    font-weight: 900;
    line-height: 1.2;
    margin: 0 0 12px;
    color: #0a1322;
    letter-spacing: -.01em;
}

.cl-srv-en{
    font-family: 'Inter', 'Helvetica Neue', system-ui, -apple-system, sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--cl-blue, #1f5eff);
    text-transform: uppercase;
}

/* ヒーローメタ情報 */
.cl-srv-hero-meta{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}
.cl-srv-meta-item{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 1.5px solid rgba(31,94,255,.15);
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 700;
    color: #1a2d4e;
    box-shadow: 0 4px 12px rgba(31,94,255,.06);
}
.cl-srv-meta-item svg{
    width: 16px;
    height: 16px;
    color: var(--cl-blue, #1f5eff);
    flex-shrink: 0;
}

/* ============================================================
 * 本文エリア
 * ============================================================ */
.cl-srv-body{
    max-width: 880px;
    margin: 0 auto;
    padding: 80px 24px 100px;
    position: relative;
}

.cl-srv-content{
    counter-reset: cl-srv-sec;
}

/* イントロ段落(h2より前の段落) */
.cl-srv-content > p:first-child{
    font-size: 17px;
    line-height: 2;
    color: #2a3856;
    padding: 28px 32px;
    background: linear-gradient(135deg, #f4f8ff 0%, #fff 100%);
    border-radius: 18px;
    border-left: 4px solid var(--cl-blue, #1f5eff);
    margin: 0 0 56px;
    box-shadow: 0 6px 24px rgba(31,94,255,.05);
}

/* 各セクション見出し(番号付きカード) */
.cl-srv-content > h2{
    counter-increment: cl-srv-sec;
    position: relative;
    margin: 56px 0 24px;
    padding: 26px 30px 26px 100px;
    font-size: 21px;
    font-weight: 900;
    line-height: 1.4;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    border: 1.5px solid rgba(31,94,255,.12);
    border-radius: 18px;
    color: #0a1322;
    box-shadow: 0 8px 30px rgba(31,94,255,.07);
    transition: transform .35s cubic-bezier(.2,.85,.25,1), box-shadow .35s ease;
}
.cl-srv-content > h2:hover{
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(31,94,255,.12);
}
.cl-srv-content > h2::before{
    content: counter(cl-srv-sec, decimal-leading-zero);
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--cl-navy, #071327) 0%, #1a2d4e 100%);
    color: #fff;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    font-weight: 900;
    letter-spacing: .04em;
    box-shadow:
        0 8px 18px rgba(7,19,39,.25),
        inset 0 1px 0 rgba(255,255,255,.12);
}

/* セクション別 番号バッジカラー */
.cl-srv-content > h2:nth-of-type(1)::before{
    background: linear-gradient(135deg, #1f5eff 0%, #4078ff 100%);
}
.cl-srv-content > h2:nth-of-type(2)::before{
    background: linear-gradient(135deg, #4ecdc4 0%, #6ed7ce 100%);
}
.cl-srv-content > h2:nth-of-type(3)::before{
    background: linear-gradient(135deg, #ff6b9d 0%, #ff8eb3 100%);
}
.cl-srv-content > h2:nth-of-type(4)::before{
    background: linear-gradient(135deg, #ffd84d 0%, #ffc933 100%);
    color: #4a3800;
}

/* 段落 */
.cl-srv-content > p{
    margin: 14px 0;
    padding: 0 8px;
    line-height: 2;
    color: #334155;
    font-size: 15px;
}

/* 4番目のh2(料金・期間の目安)直後のp = 料金強調ボックス */
.cl-srv-content > h2:nth-of-type(4) ~ p:first-of-type{
    /* セレクタの都合上、JSで補完するのが確実だが、CSSのみで近似する */
}

/* 料金セクション全体を強調するため、4番目のh2に料金専用クラス感を付ける */
.cl-srv-content > h2:nth-of-type(4){
    background: linear-gradient(135deg, #fffbe6 0%, #fff5cc 100%);
    border: 2px solid rgba(255,216,77,.5);
    box-shadow: 0 8px 30px rgba(255,216,77,.15);
}

/* お問い合わせCTA直前のh2(5番目) */
.cl-srv-content > h2:nth-of-type(5){
    margin-top: 80px;
    background: linear-gradient(135deg, var(--cl-navy, #071327) 0%, #1a2d4e 100%);
    color: #fff;
    border: none;
    box-shadow: 0 20px 50px rgba(7,19,39,.3);
}
.cl-srv-content > h2:nth-of-type(5)::before{
    background: linear-gradient(135deg, #ffd84d 0%, #ffc933 100%);
    color: #4a3800;
    box-shadow: 0 8px 18px rgba(255,216,77,.4);
}

/* お問い合わせボタン強調 */
.cl-srv-content .wp-block-buttons{
    margin-top: 28px;
    justify-content: center;
}
.cl-srv-content .wp-block-button__link{
    display: inline-block;
    padding: 18px 48px !important;
    background: var(--cl-blue, #1f5eff) !important;
    color: #fff !important;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 12px 28px rgba(31,94,255,.32);
    transition: transform .3s cubic-bezier(.2,.85,.25,1), box-shadow .3s ease, background .3s ease;
}
.cl-srv-content .wp-block-button__link:hover{
    background: #0d4ae8 !important;
    transform: translateY(-3px);
    box-shadow: 0 16px 36px rgba(31,94,255,.44);
}

/* ============================================================
 * 関連サービス(その他のサービス)
 * ============================================================ */
.cl-srv-related{
    max-width: 1080px;
    margin: 100px auto 0;
    padding: 80px 24px 0;
    border-top: 1px solid rgba(31,94,255,.1);
}

.cl-srv-related-head{
    text-align: center;
    margin-bottom: 48px;
}
.cl-srv-related-eyebrow{
    display: inline-block;
    padding: 5px 14px;
    background: rgba(31,94,255,.1);
    color: var(--cl-blue, #1f5eff);
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 14px;
}
.cl-srv-related-title{
    font-size: clamp(24px, 3.5vw, 32px);
    font-weight: 900;
    color: #0a1322;
    margin: 0 0 12px;
    letter-spacing: -.01em;
}
.cl-srv-related-note{
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.85;
    margin: 0;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.cl-srv-related-grid{
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.cl-srv-related-card{
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 16px;
    background: #fff;
    border: 1.5px solid rgba(31,94,255,.12);
    border-radius: 16px;
    text-decoration: none;
    color: #1a2d4e;
    font-weight: 700;
    font-size: 13.5px;
    line-height: 1.4;
    transition: transform .25s cubic-bezier(.2,.85,.25,1), border-color .25s ease, box-shadow .25s ease, background .25s ease;
    overflow: hidden;
}
.cl-srv-related-card:hover{
    background: var(--cl-navy, #071327);
    border-color: var(--cl-navy, #071327);
    color: #fff;
    transform: translateY(-4px);
    box-shadow: 0 14px 32px rgba(7,19,39,.22);
}

.cl-srv-related-icon{
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(31,94,255,.1), rgba(31,94,255,.05));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cl-blue, #1f5eff);
    transition: background .25s ease, color .25s ease;
}
.cl-srv-related-icon svg{
    width: 20px;
    height: 20px;
}
.cl-srv-related-card:hover .cl-srv-related-icon{
    background: linear-gradient(135deg, var(--cl-blue, #1f5eff), #4078ff);
    color: #fff;
}

.cl-srv-related-name{
    flex: 1;
    min-width: 0;
}

.cl-srv-related-arrow{
    color: rgba(31,94,255,.4);
    font-size: 14px;
    font-weight: 700;
    transition: color .25s ease, transform .25s ease;
}
.cl-srv-related-card:hover .cl-srv-related-arrow{
    color: var(--cl-yellow, #ffd84d);
    transform: translateX(3px);
}

/* ============================================================
 * スクロールアニメーション
 * ============================================================ */
.cl-srv-page .cl-reveal{
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.85,.25,1);
}
.cl-srv-page .cl-reveal.is-visible{
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
 * レスポンシブ
 * ============================================================ */
@media (max-width: 960px){
    .cl-srv-hero{
        padding: 50px 0 70px;
    }
    .cl-srv-hero-content{
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
        text-align: left;
    }
    .cl-srv-hero-icon{
        width: 86px;
        height: 86px;
        border-radius: 20px;
    }
    .cl-srv-hero-icon svg{
        width: 40px;
        height: 40px;
    }
    .cl-srv-title{
        font-size: 28px;
    }
    .cl-srv-body{
        padding: 56px 18px 70px;
    }
    .cl-srv-content > h2{
        padding: 22px 22px 22px 88px;
        font-size: 18px;
    }
    .cl-srv-content > h2::before{
        width: 52px;
        height: 52px;
        left: 18px;
        font-size: 16px;
    }
    .cl-srv-content > p{
        font-size: 14px;
        padding: 0;
    }
    .cl-srv-content > p:first-child{
        font-size: 15px;
        padding: 22px;
    }
    .cl-srv-related{
        margin-top: 70px;
        padding: 60px 18px 0;
    }
    .cl-srv-related-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px){
    .cl-srv-hero-meta{
        gap: 8px;
    }
    .cl-srv-meta-item{
        font-size: 11.5px;
        padding: 8px 14px;
    }
    .cl-srv-related-grid{
        grid-template-columns: 1fr;
    }
    .cl-srv-related-card{
        padding: 16px 18px;
        font-size: 14px;
    }
}

/* 動き低減設定では装飾アニメ無効化 */
@media (prefers-reduced-motion: reduce){
    .cl-srv-hero-blob,
    .cl-srv-content > h2,
    .cl-srv-related-card,
    .cl-srv-page .cl-reveal{
        animation: none !important;
        transition: none !important;
    }
    .cl-srv-page .cl-reveal{
        opacity: 1;
        transform: none;
    }
}
