/* 事業紹介セクション専用：300〜1000pxでのレスポンシブ化 */
@media (min-width:300px) and (max-width:1000px) {

    /* セクション全体の左右安全余白とフル幅化 */
    section.service-section {
        width: 100%;
        max-width: 100%;
    }

    section.service-section .container {
        padding-inline: 16px;
        /* 端の文字欠け防止 */
    }

    /* タイトル統一 - 事業紹介の基準サイズ */
    section.service-section .service-title {
        font-size: clamp(24px, 7vw, 36px) !important;
        line-height: 1.25 !important;
        margin: 0 0 40px !important;
        /* 20pxから40pxに変更 */
        text-align: center !important;
        font-weight: 800 !important;
    }

    /* コンテンツ：元のデザインを維持（レスポンシブ化しない） */

    /* セクション内のアニメーション初期非表示を解除 */
    section.service-section [data-ani] {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    /* 余白の最終調整 - 上にスペースを作るため下に移動 */
    section.service-section {
        padding-block: 32px !important;
        margin-top: 40px !important;
        /* 上にスペースを作る */
    }

    /* 下方向オフセット量（調整用） */
    section.service-section {
        --service-nudge: 24px;
    }

    /* 背景は動かさず、可視コンテンツだけ相対移動（transformは触らない） */
    section.service-section .service-title,
    section.service-section .service-grid {
        position: relative;
        top: var(--service-nudge);
    }

    /* 内側で生じた"下方向のはみ出し"を吸収。
    セクション外の総高さは変えないため margin-bottom で相殺。 */
    section.service-section {
        padding-bottom: calc(var(--service-nudge) + 32px) !important;
        margin-bottom: calc(-1 * var(--service-nudge)) !important;
    }
}

/* スマホ版（300px〜349px）専用CSS - 350〜1000pxと同じレイアウトを維持（微調整のみ） */
@media screen and (min-width: 300px) and (max-width: 349px) {

    /* タイトル統一 - 事業紹介の基準サイズ（300〜349pxではやや小さめに調整） */
    section.service-section .service-title {
        font-size: clamp(22px, 6.5vw, 34px) !important;
        line-height: 1.25 !important;
        margin: 0 0 40px !important;
        text-align: center !important;
        font-weight: 800 !important;
    }
}