/* ============ PC：fix_btn Instagram ============ */
.fix_btn .insta {
    margin-top: 10px;
}

.fix_btn .insta a {
    display: block;
    padding: 15px 20px;
    border-radius: 0 15px 15px 0;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, .3);
    font-weight: bold;
    position: relative;
    transition: opacity 0.3s ease;
}

.fix_btn .insta a:hover {
    opacity: 0.85;
}

.fix_btn .insta a:after {
    content: '';
    display: block;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translate(0, -50%);
    border: 1px solid #fff;
    border-left: none;
    width: calc(100% - 4px);
    height: calc(100% - 8px);
    border-radius: 0 12px 12px 0;
}

.fix_btn .insta dt {
    color: #fff;
    font-size: 14px;
    text-align: center;
    margin-bottom: 5px;
}

.fix_btn .insta dd {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    font-weight: bold;
}

.fix_btn .insta .insta_logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

/* ============ FAB：常に非表示（スマホで上書き） ============ */
.sp_insta_fab {
    display: none;
}

/* ============ 1024px以下 ============ */
@media only screen and (max-width: 1024px) {
    .fix_btn ul {
        flex-wrap: wrap;
    }

    .fix_btn .tel,
    .fix_btn .con,
    .fix_btn .insta {
        width: 33.333%;
        margin: 0;
    }

    /* type_aはtel+instaの2項目なので1/2ずつ */
    .fix_btn .type_a .tel,
    .fix_btn .type_a .insta {
        width: 50%;
    }

    .fix_btn .insta a {
        width: 100%;
        font-size: 16px;
        padding: 8px;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
    }

    .fix_btn .insta a:after {
        border-radius: 0;
    }

    .fix_btn .insta dt {
        font-size: 12px;
        letter-spacing: 0;
        margin-bottom: 2px;
    }

    .fix_btn .insta dd {
        font-size: 14px;
    }

    .fix_btn .insta .insta_logo {
        width: 20px;
        height: 20px;
    }
}

/* ============ 599px以下 ============ */
@media only screen and (max-width: 599px) {

    /* type_a（2項目）：tel + instaをそのまま1/2ずつ表示 */
    .fix_btn .type_a .tel,
    .fix_btn .type_a .insta {
        width: 50%;
        margin: 0;
    }

    /* type_b（3項目）：Instagramを非表示、tel/conを1/2ずつ */
    .fix_btn .type_b .insta {
        display: none;
    }

    .fix_btn .type_b .tel,
    .fix_btn .type_b .con {
        width: 50%;
        margin: 0;
    }

    /* FAB：type_bのときのみ表示したいが
       ABテストの出し分けはCSSでは判定不可のため
       常に表示し、type_aのinstaと重複しても問題ない位置に配置 */
    .sp_insta_fab {
        display: block;
        position: fixed;
        right: 15px;
        bottom: 150px;
        z-index: 21;
    }

    .sp_insta_fab a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
        -webkit-box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .sp_insta_fab a:hover,
    .sp_insta_fab a:active {
        opacity: 0.85;
        transform: scale(0.95);
    }

    .sp_insta_fab img {
        width: 32px;
        height: 32px;
        object-fit: contain;
    }
}

/* PC：h1とconの幅を再配分 */
header h1 {
    width: 23%;
}

header .con.w45 {
    width: 72%;
}

header .con .w60 {
    width: 50%;
}

header .con .w20 {
    width: 15%;
}

/* 3つ目（Instagram） */
header .con .thd a {
    display: block;
    text-align: center;
}

header .con .thd dt img {
    height: 30px !important;
    width: auto;
}

@media only screen and (max-width: 1024px) {
    header h1 {
        width: 25%;
    }

    .con.w45 {
        width: 70%;
    }

    header .con .w60 {
        width: 52%;
    }

    header .con .w20 {
        width: 16%;
    }

    header .con .thd dt img {
        height: 25px !important;
        width: auto;
    }
}

@media only screen and (max-width: 599px) {
    header h1 {
        width: 55%;
        padding-right: 3%;
    }

    .con.w45 {
        width: 100%;
        margin-top: 3%;
    }

    header .con .w60 {
        width: 100%;
    }

    header .con .w20 {
        width: 15%;
    }

    /* お問い合わせの位置を左にずらしてInstagramの位置を確保 */
    header .con li.fst {
        position: absolute;
        top: 50px;
        right: 115px;
    }

    header .con li.sec {
        position: absolute;
        top: 50px;
        right: 65px;
    }

    header .con li.thd {
        position: absolute;
        top: 50px;
        right: 15px;
    }

    header .con .thd dd {
        display: none;
    }

    header .con .thd dt img {
        height: 20px !important;
        width: auto;
    }
}
