@charset "utf-8";
/* CSS Document */

/* =================================================
   訪問介護セクション スタイル（決定版）
   ================================================= */

/* 親要素：全体を中央に寄せ、横並びにする */
.se_bx {
    display: flex;
    flex-direction: row;    /* PCでは横並び */
    align-items: center;    /* 上下の中心を揃える */
    justify-content: center; /* 中身を中央に寄せる */
    
    width: 90%;             /* 全体の幅を90%に設定 */
    max-width: 1100px;      /* 広がりすぎ防止用の最大幅 */
    margin: 40px auto;      /* 上下に余白を作り、左右は中央寄せ(auto) */
    gap: 5%;                /* 画像とテキストの間の余白 */
}

/* 左側：画像エリア */
.se_bxleft {
    flex: 0 0 40%;          /* 画像エリアの幅を40%に固定 */
    display: flex;
    justify-content: center; /* 箱の中で画像を中央に配置 */
}

.se_bxleft img {
    max-width: 100%;        /* 親要素からはみ出さない */
    height: auto;           /* 比率を維持 */
    display: block;
}

/* 右側：テキストエリア */
.se_bxright {
    flex: 1;                /* 残りの幅をすべて使う */
}

/* テキストの微調整 */
.se_bxright .font16 {
    font-size: 16px;
    line-height: 1.8;       /* 行間を広げて読みやすく */
    margin-bottom: 1.5em;   /* 段落間の余白 */
}

.se_bxright .font16:last-child {
    margin-bottom: 0;
}

/* -------------------------------------------------
   スマホ用設定 (画面幅 768px 以下)
   ------------------------------------------------- */
@media screen and (max-width: 768px) {
    .se_bx {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* 子要素を中央に集める */
    }

    .se_bxleft {
        width: 100% !important;
        display: block !important;    /* 一旦ブロック要素にする */
        text-align: center !important; /* 中身を強制的に中央寄せ */
        flex: none !important;         /* PCの比率指定を完全に無視 */
        margin-bottom: 20px;           /* 画像下の余白 */
    }

    .se_bxleft p {
        display: inline-block !important; /* pタグをコンテンツ幅にする */
        margin: 0 auto !important;
        text-align: center !important;
    }

    .se_bxleft img {
        display: inline-block !important; /* text-align:centerを効かせる */
        max-width: 100%;
        height: auto;
    }

    .se_bxright {
        width: 100% !important;
        text-align: left;
    }
}