/* ================================
   スマホ専用（幅600px以下）
================================ */
@media (max-width: 600px) {

 body, .main, .contact-table {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

   /* スマホでは flex を解除（最重要） */
    body {
        display: block !important;
        flex-direction: column !important;
        overflow-x: hidden !important;   /* ← 横揺れ防止 */
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }



    /* スマホでは PCの横並びを完全解除 */
    body {
        display: block !important;
        flex: none !important;          /* ← これが最重要 */
        flex-direction: unset !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow-x: hidden !important;
    }

    /* サイドバー非表示 */
    .sidebar {
        display: none !important;
        width: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* スマホ用ヘッダー表示 */
    .sp-header {
        display: block !important;
        background: #E8F3FF;
        padding: 10px;
        text-align: center;
    }

.sidebar nav a {
    display: non;
    padding: 12px;
    margin: 8px 0;
    background: #ffffff;
    border-radius: 6px;
    text-decoration: none;
    color: #0A3D62;
    font-size: 16px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

    .sp-logo {
        width: 60px;
        height: 25px;
   background: #E8F3FF url('higarogo2.png') center/contain no-repeat;
     border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    position: relative;
    z-index: 1;
　　justify-content: center;   /* 横方向の中央寄せ */






    }

    /* スマホメニュー */
    .sp-menu {
        display: flex;
        justify-content: space-between;
        gap: 3px;
        padding: 0 4px;
        width: 100%;
        box-sizing: border-box;
    }

    .sp-menu a {
        flex: 1;
        height: 42px;
        line-height: 42px;
        text-align: center;
        border-radius: 30px;
        color: #fff;
        font-size: 14px;
        text-decoration: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        white-space: nowrap;
        padding: 0 !important;
    }

    /* 本文（スマホ） */
    .main {
        display: block !important;       /* ← PCの flex を解除 */
        width: 100% !important;
        margin-left: 0 !important;
        padding: 15px 0 !important;
    }

    /* フォーム（スマホ） */
    .contact-table {
        width: 100% !important;
        max-width: 100% !important;
        font-size: 15px !important;
    }

    /* タイトル行（縦並び） */
    .form-title-row {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        margin-bottom: 10px !important;
    }

    .back-btn-inline {
        display: block !important;
        margin-bottom: 10px !important;
    }

    .contact-btn {
        width: 100% !important;
        padding: 10px !important;
    }



    /* PCの横幅固定を完全解除 */
    .main,
    .contact-table,
    .form-title-row {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        display: block !important;
    }

    /* サイドバーを横幅計算から除外 */
    .sidebar {
        display: none !important;
        width: 0 !important;
        min-width: 0 !important;
        max-width: 0 !important;
    }
}
/*  追加分!------------



    /* スマホ用ヘッダー表示 */
    .sp-header {
        display: block !important;
        background: #E8F3FF;
        padding: 10px;
        text-align: center;
        box-sizing: border-box !important;
    }

    .sp-logo img {
        width: 160px;
        height: auto;
    }

    /* メニュー（揺れ完全防止版） */
    .sp-menu {
        display: flex;
        justify-content: space-between;
        gap: 3px;
        padding: 0 4px;   /* ← 横幅の余裕を作る */
        box-sizing: border-box !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .sp-menu a {
        flex: 1;
        height: 42px;          /* ← 高さ固定 */
        line-height: 42px;     /* ← 文字中央 */
        text-align: center;
        border-radius: 30px;
        color: #fff;
        font-size: 14px;
        text-decoration: none;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        white-space: nowrap;   /* ← 改行防止 */
        box-sizing: border-box !important;
    }

    .m1 { background: #6FB7FF; }
    .m2 { background: #FFA552; }
    .m3 { background: #7A8BFF; }
    .m4 { background: #BFC4C9; }
    .m5 { background: #FF8C42; color:#fff; }
}

　　.rogo{
　　　     display: none !important;
    }
@media (min-width: 601px) {
    .sp-header {
        display: none !important;
    }

　　　
　　.sp-menu　｛
　　　     display: none !important;
    }





