@charset "UTF-8";
/* ==========================================================================
   2026-11-14 制作ジャンルのCTA（functions/category-cta.php で本文に差し込み）
   .c-categoryCta : 共通CTA（template/cta-category.php）。本文内の共通CTAの差し替えと「制作実績」の下の両方で使用
   背景：白いセクションではグレー(#f4f4f4)、グレーのセクション(.c-sec:nth-of-type(even))では白
   ========================================================================== */

/* ---------- 共通 ---------- */
.c-categoryCta {
    margin-top: 40px;
    color: #333;
    background: #f4f4f4;
    transition: background-color 0.3s ease;
}

.c-sec:nth-of-type(even) .c-categoryCta {
    background: #fff;
}

/* Hover（Figma Category / Status=Hover）。CTAの枠の中と、同じ高さの左右の余白（画面幅いっぱい）にマウスがある時に反応（タッチ端末は対象外）
   左右の余白は透明な ::before を画面幅いっぱいに広げて拾う（色が変わるのは枠の中だけ） */
@media (hover: hover) and (pointer: fine) {
    .c-categoryCta {
        position: relative;
    }

    .c-categoryCta::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: calc(50% - 50vw);
        width: 100vw;
        content: "";
    }

    .c-categoryCta__inner {
        position: relative;
    }

    .c-categoryCta:hover,
    .c-sec:nth-of-type(even) .c-categoryCta:hover {
        background: #ccc;
    }
}

.c-categoryCta p {
    margin-top: 0;
}

.c-categoryCta .c-btn._cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    min-width: 0;
    min-height: 61px;
    margin: 0;
    padding: 8px 10px 10px;
    font-size: 18px;
    font-size: 1.125rem;
    line-height: 1.5;
}

/* ---------- CTA本体 ---------- */
.c-categoryCta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 12px;
    text-align: center;
    container-type: inline-size;
}

.c-categoryCta__body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.c-categoryCta .c-categoryCta__title {
    /* 16文字を1行に収める（390px幅で20px、狭い端末ではCTAの幅に合わせて縮小） */
    font-size: 20px;
    font-size: min(20px, calc(100cqi / 16.3));
    font-weight: bold;
    line-height: 1.4;
    color: #222;
}

.c-categoryCta .c-categoryCta__text {
    max-width: 302px;
    font-size: 15px;
    line-height: 27px;
    color: #333;
}

/* リード文の強調（赤・太字） */
.c-categoryCta .c-categoryCta__em {
    font-weight: bold;
    color: #c8000f;
}

.c-categoryCta__foot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 9px;
    width: 100%;
}

.c-categoryCta .c-categoryCta__tel {
    font-size: 12px;
    line-height: 1.5;
    color: #222;
}

.c-categoryCta .c-categoryCta__tel a {
    color: inherit;
    text-decoration: none;
}

@media (min-width: 768px) {
    .c-categoryCta .c-categoryCta__text {
        max-width: none;
    }
}

@media (min-width: 1000px) {
    .c-categoryCta__inner {
        padding: 30px 20px;
    }

    .c-categoryCta .c-categoryCta__title {
        font-size: 28px;
    }

    .c-categoryCta .c-categoryCta__text {
        font-size: 18px;
        line-height: 32px;
    }

    .c-categoryCta .c-categoryCta__tel a {
        pointer-events: none;
    }
}
