.sb-wrap{
    max-width:960px;
    margin:30px auto;
    padding:0 16px;
    box-sizing:border-box;
}

.sb-card,
.sb-form-box{
    background:#fff;
    border:1px solid #ddd;
    border-radius:14px;
    padding:24px;
    margin-bottom:22px;
    box-shadow:0 4px 12px rgba(0,0,0,.08);
    box-sizing:border-box;
}

.sb-title{
    font-size:26px;
    font-weight:bold;
    margin:0 0 20px;
}

.sb-card h3{
    font-size:21px;
    margin:8px 0;
}

.sb-date{
    color:#777;
    font-size:14px;
}

.sb-form-box input[type="text"],
.sb-form-box input[type="password"],
.sb-form-box input[type="email"],
.sb-form-box textarea,
.sb-form-box input[type="file"]{
    width:100%;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    box-sizing:border-box;
}

.sb-form-box label{
    font-weight:bold;
}

.sb-button,
.sb-file-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#2271b1;
    color:#fff !important;
    min-height:48px;
    padding:0 22px;
    border-radius:8px;
    border:none;
    text-decoration:none;
    cursor:pointer;
    font-weight:bold;
    box-sizing:border-box;
}

.sb-button:hover,
.sb-file-button:hover{
    opacity:.85;
}

.sb-small{
    padding:8px 12px;
}

.sb-small-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:64px;
    min-height:34px;
    padding:0 10px;
    background:#2271b1;
    color:#fff !important;
    border:none;
    border-radius:6px;
    text-decoration:none;
    font-size:14px;
    font-weight:bold;
    box-sizing:border-box;
    cursor:pointer;
}

.sb-small-button:hover{
    opacity:.85;
}

.sb-small-delete-button,
.sb-danger{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:64px;
    min-height:34px;
    padding:0 10px;
    background:#c62828;
    color:#fff;
    border:none;
    border-radius:6px;
    cursor:pointer;
    font-size:14px;
    font-weight:bold;
    box-sizing:border-box;
}

.sb-success{
    background:#e7f7ea;
    border:1px solid #4CAF50;
    padding:15px;
    margin-bottom:20px;
    border-radius:8px;
    color:#2e7d32;
    font-weight:bold;
}

.sb-error{
    background:#fdecea;
    border:1px solid #e53935;
    padding:15px;
    margin-bottom:20px;
    border-radius:8px;
    color:#b71c1c;
    font-weight:bold;
}

.sb-image{
    display:block;
    float:none;
    max-width:100%;
    height:auto;
    border:1px solid #ddd;
    border-radius:8px;
    margin-top:10px;
}

.sb-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:15px;
    margin:20px 0;
}

.sb-stat{
    background:#f8f8f8;
    border:1px solid #eee;
    border-radius:12px;
    padding:18px;
}

.sb-table{
    width:100%;
    border-collapse:collapse;
}

.sb-table th,
.sb-table td{
    border-bottom:1px solid #eee;
    padding:10px;
    text-align:left;
}

.sb-table th{
    border-bottom:1px solid #ddd;
    background:#f8f8f8;
}

.sb-inline{
    display:inline-block;
    margin-left:8px;
}

.sb-notice-item{
    border-top:1px solid #eee;
    padding-top:18px;
    margin-top:18px;
}

.sb-shop-notice{
    display:block;
    clear:both;
    width:100%;
    max-width:100%;
    border-top:1px solid #eee;
    padding-top:18px;
    margin-top:18px;
    box-sizing:border-box;
    overflow:hidden;
}

.sb-unread-count{
    font-size:20px;
    font-weight:bold;
    color:#c62828;
}

.sb-unread-label,
.sb-ng{
    color:#c62828;
    font-weight:bold;
}

.sb-read-label,
.sb-ok{
    color:#2e7d32;
    font-weight:bold;
}

.sb-details-summary{
    cursor:pointer;
    font-weight:bold;
    font-size:18px;
}

.sb-read-form{
    margin-top:18px;
}

.sb-progress{
    background:#eee;
    width:100%;
    height:18px;
    border-radius:20px;
    overflow:hidden;
    margin:10px 0 20px;
}

.sb-progress div{
    background:#2271b1;
    height:18px;
}

.sb-current-file{
    background:#fafafa;
    border:1px solid #eee;
    border-radius:10px;
    padding:14px;
    margin:14px 0;
}

.sb-loading{
    text-align:center;
    margin-top:20px;
}

.sb-spinner{
    width:56px;
    height:56px;
    border:6px solid #ddd;
    border-top:6px solid #2271b1;
    border-radius:50%;
    animation:sbspin 1s linear infinite;
    margin:auto;
}

@keyframes sbspin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.sb-month-nav{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:10px;
    margin:20px 0;
}

/* コメントエリア */

.sb-comments-area{
    display:block;
    clear:both;
    position:relative;
    width:100%;
    max-width:100%;
    margin:28px 0 0;
    padding:20px;
    background:#f8fafc;
    border:1px solid #d9e1e8;
    border-radius:12px;
    box-sizing:border-box;
    overflow:hidden;
}

.sb-comments-area h4{
    display:block;
    width:100%;
    margin:0 0 18px;
    padding:0;
    font-size:20px;
    line-height:1.5;
    color:#222;
}

.sb-comment-display{
    width:100%;
    margin:0 0 22px;
    box-sizing:border-box;
}

.sb-comment-empty{
    color:#777;
    margin:0;
}

.sb-comment-list{
    display:flex;
    flex-direction:column;
    gap:12px;
    width:100%;
    margin:0;
    padding:0;
}

.sb-comment-item,
.sb-admin-comment-card{
    display:block;
    width:100%;
    max-width:100%;
    padding:14px;
    background:#fff;
    border:1px solid #ddd;
    border-radius:10px;
    box-sizing:border-box;
}

.sb-comment-meta{
    display:flex;
    gap:12px;
    flex-wrap:wrap;
    align-items:center;
    margin-bottom:8px;
    font-size:13px;
    color:#666;
}

.sb-comment-text{
    line-height:1.7;
    word-break:break-word;
}

.sb-comment-replies{
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-top:12px;
    margin-left:18px;
}

.sb-comment-reply{
    padding:12px;
    background:#f8fafc;
    border-left:4px solid #2271b1;
    border-radius:6px;
    box-sizing:border-box;
}

.sb-comment-form,
.sb-comment-reply-form{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    width:100%;
    max-width:100%;
    gap:12px;
    margin:0;
    padding:0;
    box-sizing:border-box;
}

.sb-comment-form label,
.sb-comment-reply-form label{
    display:block;
    width:100%;
    margin:0;
    font-size:16px;
    font-weight:bold;
    color:#333;
}

.sb-comment-form textarea,
.sb-comment-reply-form textarea{
    display:block;
    width:100% !important;
    max-width:100% !important;
    min-width:0;
    min-height:180px;
    margin:0 !important;
    padding:16px;
    background:#fff;
    border:1px solid #c7d0d9;
    border-radius:10px;
    font-size:16px;
    line-height:1.7;
    resize:vertical;
    box-sizing:border-box;
    transition:border-color .2s, box-shadow .2s;
}

.sb-comment-form textarea:focus,
.sb-comment-reply-form textarea:focus{
    outline:none;
    border-color:#2271b1;
    box-shadow:0 0 0 3px rgba(34,113,177,.15);
}

.sb-comment-form .sb-button,
.sb-comment-reply-form .sb-button{
    display:flex;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    width:220px;
    min-height:48px;
    margin:0;
    box-sizing:border-box;
}

.sb-comment-delete-form{
    margin-top:12px;
}

.sb-admin-comment-heading{
    margin-bottom:12px;
}

/* スマホ */

@media(max-width:700px){

    .sb-card,
    .sb-form-box{
        padding:18px;
    }

    .sb-title{
        font-size:22px;
    }

    .sb-grid{
        grid-template-columns:1fr;
    }

    .sb-table{
        font-size:13px;
    }

    .sb-table th,
    .sb-table td{
        padding:7px;
    }

    .sb-button,
    .sb-file-button{
        width:100%;
        box-sizing:border-box;
        text-align:center;
        margin-bottom:8px;
    }

    .sb-inline{
        display:block;
        margin:8px 0 0;
    }

    .sb-comments-area{
        width:100%;
        margin-top:24px;
        padding:16px;
    }

    .sb-comment-replies{
        margin-left:8px;
    }

    .sb-comment-form textarea,
    .sb-comment-reply-form textarea{
        min-height:140px;
        font-size:16px;
    }

    .sb-comment-form .sb-button,
    .sb-comment-reply-form .sb-button{
        align-self:stretch;
        width:100%;
        min-height:48px;
    }

    .sb-small-button,
    .sb-small-delete-button{
        min-width:56px;
        min-height:32px;
        font-size:13px;
        padding:0 8px;
    }
}
.sb-comment-label{
    display:block;
    width:100%;
    margin:0 0 10px;
    font-size:16px;
    font-weight:bold;
    color:#333;
    clear:both;
}

.sb-comment-form textarea{
    display:block;
    width:100%;
    clear:both;
}

.sb-comment-reply-form{
    display:flex !important;
    flex-direction:column !important;
    align-items:stretch !important;
    width:100% !important;
    gap:12px !important;
    margin-top:16px !important;
}

.sb-comment-reply-form label{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    font-weight:bold;
}

.sb-comment-reply-form textarea{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    min-height:140px;
    margin:0 !important;
    padding:14px;
    border:1px solid #c7d0d9;
    border-radius:10px;
    box-sizing:border-box;
    resize:vertical;
}

.sb-comment-reply-form .sb-small-button,
.sb-comment-reply-form .sb-button{
    display:flex !important;
    align-items:center;
    justify-content:center;
    align-self:flex-start;
    width:180px;
    min-height:44px;
    margin:0 !important;
}

@media(max-width:700px){
    .sb-comment-reply-form .sb-small-button,
    .sb-comment-reply-form .sb-button{
        width:100%;
    }
}

.sb-admin-reply-area{
    display:block;
    clear:both;
    width:100%;
    margin-top:22px;
    padding-top:18px;
    border-top:1px solid #ddd;
    box-sizing:border-box;
}

.sb-admin-reply-title{
    display:block;
    width:100%;
    margin:0 0 12px;
    font-size:16px;
    font-weight:bold;
    color:#333;
}

.sb-comment-reply-form{
    display:block !important;
    width:100% !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box;
}

.sb-admin-reply-field{
    display:block;
    width:100%;
    margin:0 0 12px;
    box-sizing:border-box;
}

.sb-admin-reply-field textarea{
    display:block !important;
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    min-height:150px;
    margin:0 !important;
    padding:14px;
    border:1px solid #c7d0d9;
    border-radius:10px;
    background:#fff;
    font-size:16px;
    line-height:1.7;
    resize:vertical;
    box-sizing:border-box;
}

.sb-admin-reply-field textarea:focus{
    outline:none;
    border-color:#2271b1;
    box-shadow:0 0 0 3px rgba(34,113,177,.15);
}

.sb-admin-reply-button{
    display:block;
    width:100%;
    margin:0;
}

.sb-admin-reply-button .sb-button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:220px;
    min-height:48px;
    margin:0;
}

@media(max-width:700px){
    .sb-admin-reply-button .sb-button{
        width:100%;
    }
}
.sb-shop-comment-input-area{
    display:block;
    clear:both;
    width:100%;
    max-width:100%;
    margin-top:22px;
    padding-top:20px;
    border-top:1px solid #ddd;
    box-sizing:border-box;
}

.sb-shop-comment-title{
    display:block;
    width:100%;
    margin:0 0 12px;
    font-size:17px;
    font-weight:bold;
    color:#333;
}

.sb-comment-form{
    display:block !important;
    width:100% !important;
    max-width:100% !important;
    margin:0 !important;
    padding:0 !important;
    box-sizing:border-box;
}

.sb-shop-comment-field{
    display:block;
    width:100%;
    max-width:100%;
    margin:0 0 14px;
    box-sizing:border-box;
}

.sb-shop-comment-field textarea{
    display:block !important;
    float:none !important;
    width:100% !important;
    max-width:100% !important;
    min-width:100% !important;
    min-height:240px;
    margin:0 !important;
    padding:16px;
    background:#fff;
    border:1px solid #c7d0d9;
    border-radius:10px;
    font-size:16px;
    line-height:1.8;
    resize:vertical;
    box-sizing:border-box;
}

.sb-shop-comment-field textarea:focus{
    outline:none;
    border-color:#2271b1;
    box-shadow:0 0 0 3px rgba(34,113,177,.15);
}

.sb-shop-comment-button{
    display:block;
    width:100%;
    margin:0;
}

.sb-shop-comment-button .sb-button{
    display:flex;
    align-items:center;
    justify-content:center;
    width:220px;
    min-height:48px;
    margin:0;
}

@media(max-width:700px){

    .sb-shop-comment-field textarea{
        min-height:180px;
    }

    .sb-shop-comment-button .sb-button{
        width:100%;
    }
}
.sb-comments-area,
.sb-shop-comment-input-area,
.sb-comment-form,
.sb-shop-comment-field{
    display:block !important;
    float:none !important;
    clear:both !important;

    width:100% !important;
    max-width:100% !important;
    min-width:100% !important;

    flex:0 0 100% !important;
    grid-column:1 / -1 !important;

    margin-left:0 !important;
    margin-right:0 !important;

    box-sizing:border-box !important;
}

.sb-shop-comment-field textarea,
.sb-comment-form textarea{
    display:block !important;
    float:none !important;

    width:100% !important;
    max-width:100% !important;
    min-width:100% !important;

    min-height:240px !important;
    margin:0 !important;
    padding:16px !important;

    box-sizing:border-box !important;
}

.sb-shop-comment-title{
    display:block !important;
    float:none !important;
    clear:both !important;

    width:100% !important;
    margin:0 0 12px !important;
}

.sb-shop-comment-button{
    display:block !important;
    clear:both !important;

    width:100% !important;
    margin-top:14px !important;
}
/* 店舗側コメント欄：PC表示の横幅を強制解除 */
@media (min-width:701px){

    .sb-shop-notice > .sb-comments-area{
        display:block !important;
        float:none !important;
        clear:both !important;

        width:100% !important;
        max-width:none !important;
        min-width:0 !important;

        margin-left:0 !important;
        margin-right:0 !important;
        box-sizing:border-box !important;
    }

    .sb-comments-area > .sb-shop-comment-input-area{
        display:block !important;
        float:none !important;
        clear:both !important;

        width:100% !important;
        max-width:none !important;
        min-width:0 !important;

        margin-left:0 !important;
        margin-right:0 !important;
        box-sizing:border-box !important;
    }

    form.sb-comment-form{
        display:block !important;
        float:none !important;
        clear:both !important;

        width:100% !important;
        max-width:none !important;
        min-width:0 !important;

        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
    }

    .sb-comment-form .sb-shop-comment-field{
        display:block !important;
        float:none !important;

        width:100% !important;
        max-width:none !important;
        min-width:0 !important;

        margin:0 0 14px !important;
        box-sizing:border-box !important;
    }

    .sb-comment-form textarea[name="sb_comment_text"]{
        display:block !important;
        float:none !important;

        width:100% !important;
        max-width:none !important;
        min-width:0 !important;
        height:auto !important;
        min-height:240px !important;

        margin:0 !important;
        padding:16px !important;
        box-sizing:border-box !important;
    }
}
/* ========================================
   登録店舗一覧：スマホではカード内だけ横スクロール
======================================== */

.sb-wrap{
    width:100%;
    max-width:960px;
    min-width:0;
    overflow-x:hidden;
    box-sizing:border-box;
}

.sb-card{
    width:100%;
    max-width:100%;
    min-width:0;
    box-sizing:border-box;
}

.sb-table-scroll{
    display:block;
    width:100%;
    max-width:100%;
    min-width:0;
    overflow-x:auto;
    overflow-y:hidden;
    -webkit-overflow-scrolling:touch;
    box-sizing:border-box;
    padding-bottom:10px;
}

.sb-table-scroll .sb-table{
    width:max-content;
    min-width:760px;
    max-width:none;
    border-collapse:collapse;
    table-layout:auto;
}

.sb-table-scroll .sb-table th,
.sb-table-scroll .sb-table td{
    white-space:nowrap;
}

.sb-table-scroll::-webkit-scrollbar{
    height:8px;
}

.sb-table-scroll::-webkit-scrollbar-thumb{
    background:#b8c0c8;
    border-radius:10px;
}

.sb-table-scroll::-webkit-scrollbar-track{
    background:#eef1f4;
    border-radius:10px;
}

@media(max-width:700px){

    .sb-wrap{
        width:100%;
        max-width:100%;
        padding-left:12px;
        padding-right:12px;
        overflow-x:hidden;
    }

    .sb-card{
        width:100%;
        max-width:100%;
        min-width:0;
        overflow:hidden;
        padding:16px;
    }

    .sb-table-scroll{
        width:100%;
        max-width:100%;
        min-width:0;
        overflow-x:auto !important;
        overflow-y:hidden;
        margin:0;
    }

    .sb-table-scroll .sb-table{
        width:max-content !important;
        min-width:760px !important;
        max-width:none !important;
        font-size:13px;
    }

    .sb-table-scroll .sb-table th,
    .sb-table-scroll .sb-table td{
        padding:9px;
        white-space:nowrap;
    }
}

.sb-notice-divider{
    border:0;
    border-top:4px solid #2271b1;
    margin:28px 0;
}
