/* モーダル表示時のグレー背景 */
#fb_back{
    display: none;
    height: 100vh; /* 全画面表示 */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background: rgba(0,0,0,0.5);
    z-index: 9996;
}

/* モーダル表示時のグレー背景 */
#fb_back2{
    display: none;
    height: 100vh; /* 全画面表示 */
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

#fb_area {
    width: 100vw;
    min-width: 100%;
    text-align: center;
    padding: 20px 0px;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    position: fixed;
    bottom: 0px;
    left: 0px;
    display: none;
}

.sp-tel-button-area ~ #fb_area {
    bottom: 50px;
}

/* 編集画面フローティングバナー */
#layout-panel #fb_area {
    pointer-events: none;
}

/* 編集画面フローティングバナースマホ */
#layout-panel.sp #fb_area {
    bottom: 130px;
    max-width: 374px;
    min-width: 374px;
    width: 100%;
    left: 50%;
    transform: translate(-50%, 0%);
}

/* tel-footer 有りの場合 大体表示できるように */
#layout-panel.sp .sp-tel-footer-area ~ #fb_area {
    bottom: 180px;
}

/* フローティングバナー画像 */
#fb_image img {
    height: auto;
    max-width: 100%;  /* スマホ画面幅に画像を収めるように追加 */
    width: auto;
}

/* フローティングバナー×ボタン */
#fb_close {
    color: #fff;
    z-index: 9995;
    position: absolute;
    height: 20px;
    width: 20px;
    cursor: pointer;
    top: 10px;
    right: 10px;
}

/* フローティングバナー設定モーダル */
#fb_config{
    top: 55px;
    left: 50%;
    transform: translate(-50%, 0%);
    z-index: 9997;
}

/* フローティングバナー設定モーダル 画像リスト*/
#fb_config .list ul{
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    overflow-y: scroll;
    max-height: 500px;

    margin-top: 0;
    margin-bottom: 1rem;
}

/* フローティングバナー設定モーダル 画像リスト個別*/
#fb_config .list li{
    width: 22%;
    margin: 6px;
}

/* フローティングバナー設定モーダル 画像リスト個別　画像*/
#fb_config .list li img{
    width: 100%;

    vertical-align: middle;
    border-style: none;
}

/* 画像アップロードモーダル */
#fb_img_up{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#fb_img_up input{
    display: inline;
}

#fb_img_up .fb_content{
    position: relative;
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1rem;

    text-align: left;
    overflow: auto;
    font-size: 15px;
}

#fb_img_up .dropify-wrapper .dropify-message span.file-icon p {
    font-size: 20px;
}

#fb_img_up .description{
    color: red;
}

/* リンク設定モーダル */
#fb_link{
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.fb_content{
    width: 650px;
    padding: .5rem .75rem
}

.fb_content .action {
    margin-top: 10px;
    margin-right: 20px;
    margin-bottom: 10px;
}


.fb_style{
    position:fixed;
    display: none;
    z-index: 9999;

    

    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";
    font-style: normal;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    text-align: start;
    text-decoration: none;
    text-shadow: none;
    text-transform: none;
    letter-spacing: normal;
    word-break: normal;
    word-spacing: normal;
    white-space: normal;
    line-break: auto;
    font-size: .875rem;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.2);
    border-radius: 8px;
}

#fb_link .col-4 {
    -ms-flex: 0 0 33.333333%;
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
}

#fb_link .col-8 {
    -ms-flex: 0 0 66.666667%;
    flex: 0 0 66.666667%;
    max-width: 66.666667%;
}

#fb_link .fb_content{
    text-align: left;
    font-size: 15px;
}

#fb_link .col-4 label{
    padding-left: 1rem;
}

#fb_link label{
    display: inline-block;
    margin-bottom: 0.5rem;
    width: 100%;
}

#fb_link .form-group {
    margin-bottom: 1rem;
}

#fb_link .form-control {
    display: inline-block;
    width: auto;
    height:auto;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}

#fb_link form .row > div:nth-of-type(2) {
    border-left: solid 1px gainsboro;
}
#fb_link form .row {
    border-bottom: solid 1px gainsboro;
}

.fb_title {
    font-size: 1.5rem;
}
