mark {
    background: #fff3cd;
    color: inherit;
    font-weight: inherit;
    padding: 0 1px;
}


.empty-frame {
    width: 100%;
    height: 40px;
}

.bbs-wrapper-header {
    width: 100%;
    height: 40px;
    padding-left: 10px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: bold;
    color: #000;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #777;
}

.bbs-wrapper {
    width: 100%;
}


.board-post-row {
    width: 100%;
    height: 45px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
}

.board-post-row-pc {
    width: 100%;
    height: 100%;
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
}

.board-post-row-mobile {
    height: 100%;
    flex: 1;
    min-width: 0;
    display: none;
}

.board-post-row-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.board-post-row-liked {
    margin: 0 10px;
    width: 60px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e8590c;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
}

.board-post-row-pc-title {
    margin: 0 10px;
    min-width: 0;
    flex: 1;
    display: flex;  
    align-items: center;   
    font-size: 15px;
    font-weight: 500;
    overflow: hidden;
}

.board-post-row-title-link {
    color: #000;
    text-decoration: none;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.board-post-row-title-link:hover {
    text-decoration: underline;
}

.board-post-row-comments {
    margin-left: 5px;
    flex-shrink: 0;
    color: #777;
    font-size: 14px;
    font-weight: 500;    
    font-variant-numeric: tabular-nums;
}

.board-post-row-views {
    margin: 0 10px;    
    width: 60px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    color: #777;        
    font-variant-numeric: tabular-nums;
}

.board-post-row-name {
    margin: 0 10px;
    width: 120px;
    flex-shrink: 0;    
    font-size: 14px;
    color: #000;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.board-post-row-date {
    width: 150px;
    flex-shrink: 0;    
    text-align: center;
    font-size: 14px;
    color: #777;
    font-variant-numeric: tabular-nums;
}

.bbs_is_editor {
    font-weight: 700;
}

.board-post-row-check-box {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    box-sizing: border-box;
    border: 1px solid #000;
    border-radius: 0;
    cursor: pointer;
}

.board-post-row-check-box:checked {
    background: #000;
}

.board-post-row-check-box:checked::after {
    content: ""; 
    position: absolute; 
    top: 1px; 
    left: 4px; 
    width: 4px; 
    height: 8px; 
    border: solid #fff; 
    border-width: 0 2px 2px 0; 
    transform: rotate(45deg);
}


.pagination {
    margin: 30px 0 20px 0;
    height: 40px;
    align-items: center;
    justify-content: center;
    display: flex;
    gap: 5px;
    width: 100%;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 35px;
    height: 35px;
    padding: 0 5px;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid #f2f2f2;
    color: #000;
    font-size: 15px;
    font-weight: 300;
    text-decoration: none;
}

.pagination a:hover {
    background: #f2f2f2;
    color: #000;
}

.pagination a.active {
    font-weight: 500;
}

.pagination a.disabled {
    color: #aaa;
    pointer-events: none;
}


.button-area-left,
.button-area-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.button-area-left {
    justify-content: flex-start;
}

.button-area-right {
    justify-content: flex-end;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    cursor: pointer;
}

.button-write-all,
.button-submit-all {
    width: 80px;
    height: 35px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.button-write-admin {
    width: 80px;
    height: 35px;
    background: #fff;
    color: #e8590c;
    border: 1px solid #e8590c;
}

.button-addcomment-all {
    width: 120px;
    height: 35px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.button-submitcomment-all {
    width: 140px;
    height: 35px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.button-submitreply-all {
    width: 120px;
    height: 35px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.button-submitedit-all {
    width: 100px;
    height: 35px;
    background: #000;
    color: #fff;
    border: 1px solid #000;
}

.button-edit-all,
.button-cancel-all,
.button-delete-all {
    width: 80px;
    height: 35px;
    background: #fff;
    color: #2d2d2d;
    border: 1px solid #aaa;
}

.button-edit-admin,
.button-delete-admin {
    width: 80px;
    height: 35px;
    background: #fff;
    color: #e8590c;
    border: 1px solid #e8590c;
}



.form-group-whendate {
    margin-top: 20px;
    width: 300px;
    display: flex;
    align-items: center;
}

.form-group-whendate-label {
    width: 100px;
    font-size: 14px; 
    color: #000;
    font-weight: 500;
}

.form-group-whendate-date input[type="date"] {
    -webkit-appearance: none;
    appearance: none;
    flex: auto;
    font-size: 14px;
    width : 120px;
    height: 35px;           
    line-height: 35px;
    padding: 0 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    outline: none;
    background: #fff;
    border-radius: 2px;
    font-family: inherit;
}

.form-group-whendate-date input[type="date"]:focus {
    border-color: #777;
}

.form-group-whendate-date input[type="date"]:disabled {
    background-color: #f2f2f2;
    color: #888;
    cursor: not-allowed;
    opacity: 1;
}


.form-group-upload {
    margin-top: 20px;
}

.form-group-upload-label {
    font-size: 14px; 
    color: #000;
    font-weight: 500;
}

.form-group-upload-area input[type="file"] {
    margin-top: 10px;
    font-size: 14px; 
}

.image-preview-box {
    position: relative;
    width: 200px;
}

.image-insert-button {
    width: 200px;
    height: 150px;
    object-fit: cover;
    cursor: pointer;
    display: block;
}

.image-preview-label {
    position: absolute;
    left: 5px;
    bottom: 5px;
    padding: 3px;
    background: #000;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.image-preview-remove {
    position: absolute;
    right: 5px;
    top: 5px;
    padding: 3px;
    background: #e8590c;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

#imagePreviewArea {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 10px;
}

.honeypot {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    pointer-events: none;
}

.write-wrapper {
    width: 100%;
    margin: 0 auto;
    font-size: 14px;
    text-align: left;
}

.write-wrapper input[type="text"],
.write-wrapper input[type="password"] {
    width: 100%;
    height: 45px;
    padding: 10px;
    box-sizing: border-box;
    border: none;
    background: #f2f2f2;
    font-size: 14px;
    font-family: inherit;
    outline: none;
}

.form-write-meta {
    height: 45px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #000;
}

.form-write-meta-name {
    flex: 1;
    border-right: 1px dashed #777;
}

.form-write-meta-password {
    flex: 1;
}

.form-write-title {
    min-height: 45px;
    display: flex;
    align-items: center;
    background: #f2f2f2;
    border-top: 1px dashed #777;
    border-bottom: 1px dashed #777;
}

.form-write-title textarea {
    width: 100%;
    padding: 0 10px;
    box-sizing: border-box;
    color: #2b2b2b;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    font-family: inherit;
    background: transparent;
    border: none;
    outline: none;
    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.form-write-content textarea {
    width: 100%;
    padding: 15px 0 0 10px;
    line-height: 1.6;   
    color: #2b2b2b;
    min-height: 200px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    overflow: hidden;
    border: none;
    border-bottom: 1px solid #777;
    outline: none;
    background: #f2f2f2;
}

.write-wrapper input[readonly] {
    background-color: #f2f2f2;
    color: #000;
    font-weight: 700;
    cursor: not-allowed;
}

.write-wrapper input:disabled {
    background-color: #f2f2f2;
    color: #999;
    -webkit-text-fill-color: #999; 
    opacity: 1;
    cursor: not-allowed;
}



.current-reading-row {
    background: #f7f7f7;
}

.current-reading-row .board-post-row-title-link {
    font-weight: 700;
}

.view-wrapper {
    width: 100%;
    margin: 0 auto;
    font-size: 14px;
    color: #333;
    text-align: left;
}

.view-meta {
    height: 45px;    
    display: flex;
    align-items: center;
    gap: 40px;
    font-size: 14px;
    color: #777;
}

.view-meta-date {
    margin-left: 10px;
    width: 140px;
    font-variant-numeric: tabular-nums;
}

.view-meta-name-editor {
    color: #000;
    font-weight: 700;
    font-size: 14px;    
}

.view-meta-name-visitor {
    font-size: 14px;
}

.view-meta-views {
    font-size: 14px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.view-meta-liked {
    padding: 0;
    background: none;
    font-size: 14px;
    color: #e8590c;
    cursor: pointer;    
    border: none;
    font-variant-numeric: tabular-nums;
}


.view-title,
#view-title-editmode {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 10px;
    min-height: 45px;
    color: #000;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    font-family: inherit;
    overflow-wrap: break-word;
    word-break: break-word;
}

.view-title {
    display: block;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: transparent;
}

#view-title-editmode {
    border-top: 1px dashed #777;
    border-bottom: 1px dashed #777;
    border-left: none;
    border-right: none;
    outline: none;
    background: #f2f2f2;

    resize: none;
    overflow: hidden;
    white-space: pre-wrap;
}


.view-content {
    min-height: 200px;
    padding: 15px 0 15px 10px;
    line-height: 1.6;   
    font-size: 15px;
    color: #000;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    border-bottom: 1px solid #eee;
}

#view-content-editmode {
    width: 100%;
    padding: 17px 0 15px 10px;
    color: #2b2b2b;
    line-height: 1.6;   
    min-height: 200px;
    box-sizing: border-box;
    font-size: 15px;
    font-family: inherit;    
    resize: none;
    overflow: hidden;
    border-bottom: 1px dashed #777;
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
    background: #f2f2f2;
}


.comment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #fafafa;
    border-bottom: 1px solid #f2f2f2;
}

.comment.reply {
    margin-left: 50px;
    background: #fff;
    border-left: 1px solid #f2f2f2;
}

.comment-reply-upper {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.comment-reply-upper-name {
    flex: 0 0 auto;
    color: #000;
    font-weight: 500;
    padding: 10px 0 0 15px;
}

.comment-reply-upper-name.bbs_is_editor {
    font-size: 14px;
    font-weight: 700;
}

.comment-reply-upper-separation {
    width: 20px;
    flex-shrink: 0;
    text-align: center;
    color: #ccc;
    padding-top: 10px;
}

.comment-reply-upper-title {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    padding-top: 10px;
}

.comment-reply-upper-x {
    flex: 0 0 20px;
    padding-top: 10px;
}

.x {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    padding: 0 2px;
    background: none;
    border: none;
    color: #ccc;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.x:hover {
    color: #e8590c;
}

.x-admin {
    color: #e8590c;
}

.comment-reply-lower {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: 15px;
    height: 30px;
    font-size: 13px;
    color: #777;
}

.comment-reply-lower-date {
    font-variant-numeric: tabular-nums;
}

.comment-reply-lower-reply,
.comment-reply-lower-like {
    cursor: pointer;
}

.comment-reply-lower-reply {
    color: #555;
}

.comment-reply-lower-reply:hover {
    color: #000;
}

.comment-reply-lower-like {
    color: #e8590c;
    font-variant-numeric: tabular-nums;
}

.form-comment,
.form-reply {
    padding: 20px;
    width: 550px;
    height: 210px;
    background: #f7f7f7;
    border: 1px solid #ddd;
    border-radius: 3px;
}

.form-comment-upper,
.form-reply-upper {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.form-comment-upper-name,
.form-reply-upper-name,
.form-comment-upper-password,
.form-reply-upper-password {
    flex: 1;
}

.form-comment-lower,
.form-reply-lower {
    flex: 1;
    margin: 10px 0 20px 0;
}

.form-comment-lower textarea,
.form-reply-lower textarea {
    height: 70px;
}

.hidden {
    display: none;
}

.form-comment input[type="text"],
.form-reply input[type="text"],
.form-comment input[type="password"],
.form-reply input[type="password"],
.form-comment textarea,
.form-reply textarea {
    width: 100%;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    outline: none;
    font-size: 15px;
    font-family: inherit;
}

.form-comment input[type="text"]:focus,
.form-reply input[type="text"]:focus,
.form-comment input[type="password"]:focus,
.form-reply input[type="password"]:focus,
.form-comment textarea:focus,
.form-reply textarea:focus {
    border: 1px solid #000;
}

.form-comment input[readonly],
.form-reply input[readonly] {
    background-color: #fff;
    border-color: #ccc;
    color: #000;
    font-weight: 700;
    cursor: not-allowed;
}

.form-comment input:disabled,
.form-reply input:disabled {
    background-color: #fff;
    color: #999;
    cursor: not-allowed;
}


@media (max-width: 1023px) {
    .board-post-row-pc {
        display: none;
    }

    .board-post-row {
        height: 70px;
    }

    .board-post-row-mobile {
        display: flex;
        height: 100%;
        width: 100%;
        flex-direction: column;
        flex: 1;
        min-width: 0;
    }

    .board-post-row-mobile-title {
        flex: 1;
        width: 100%;
        min-width: 0;
        margin-left: 5px;
        font-size: 15px;
        font-weight: 500;
        display: flex;
        align-items: center;
        overflow: hidden;
        transform: translateY(5px);
    }

    .board-post-row-mobile-meta {
        flex: 1;
        width: 100%;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        font-size: 13px;
        color: #777;
    }

    .board-post-row-liked, 
    .board-post-row-views,  
    .board-post-row-date {
        width: max-content;
        flex: 0 0 auto;
        white-space: nowrap;
        font-size: 14px;
        margin: 0 5px;
    }

    .board-post-row-name {
        width: max-content;
        max-width: 90px;
        flex: 0 0 auto;
        font-size: 14px;
        margin: 0 5px;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .view-meta {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 15px;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .view-meta-date {
        flex: 0 0 140px;
        width: 140px;
        min-width: 140px;
        max-width: 140px;
        margin-left: 10px;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .view-meta-name-editor,
    .view-meta-name-visitor {
        flex: 0 1 auto;
        min-width: 0;
        width: auto;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .view-meta-views,
    .view-meta-liked {
        flex: 0 0 auto;
        width: max-content;
        min-width: max-content;
        white-space: nowrap;
        font-variant-numeric: tabular-nums;
    }

    .form-comment,
    .form-reply {
        width: 100%;
        max-width: 550px;
        height: auto;
        box-sizing: border-box;
        padding: 20px;
    }
    
    .form-comment-upper,
    .form-reply-upper {
        flex-direction: row;
        width: 100%;
    }

    .form-comment-upper-name,
    .form-reply-upper-name,
    .form-comment-upper-password,
    .form-reply-upper-password {
        flex: 1 1 0;
        width: 0;
        min-width: 0;

    }

    .form-comment-upper-name input,
    .form-reply-upper-name input,
    .form-comment-upper-password input,
    .form-reply-upper-password input {
        width: 100%;
        box-sizing: border-box;
    }

    .form-comment-lower,
    .form-reply-lower {
        width: 100%;
        margin: 10px 0 20px 0;
    }

    .form-comment-lower textarea,
    .form-reply-lower textarea {
        width: 100%;
        height: 100px;
        box-sizing: border-box;
    }
}


.search-wrapper {
    width: 100%;
}

.search-result-row {
    width: 100%;
    border-bottom: 1px solid #eee;
}

.search-result-row-pc {
    display: flex;
    align-items: center;
    height: 55px;
    padding: 0 10px;
}

.search-result-row-mobile {
    display: none;
}

.search-result-num {
    width: 80px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    color: #777;
    font-variant-numeric: tabular-nums;
}

.search-result-board {
    width: 120px;
    flex-shrink: 0;
    margin: 0 5px;
    padding: 3px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    border-radius: 1px;
    color: #000;
    background: #fff;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.search-result-type {
    width: 120px;
    flex-shrink: 0;
    margin: 0 10px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    color: #777;
}

.search-result-main {
    flex: 1;
    min-width: 0;
    text-align: left;
}

.search-result-link {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.search-result-preview {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
    font-weight: 400;
    color: #000;
}

.search-result-preview mark {
    color: #000;
    font-weight: 700;
}

.search-result-date {
    width: 150px;
    flex-shrink: 0;
    text-align: center;
    font-size: 14px;
    color: #777;
    font-variant-numeric: tabular-nums;
}

@media (max-width: 1023px) {
    .search-result-row-pc {
        display: none;
    }

    .search-result-row-mobile {
        display: block;
        padding: 10px 5px;
    }

    .search-result-row-mobile .search-result-preview {
        display: block;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        text-align: left;
        margin-top: 4px;
        font-size: 14px;
    }

    .search-result-row-mobile-meta {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 8px;
        font-size: 14px;
        color: #777;
    }

    .search-result-row-mobile-meta .search-result-num {
        width: 60px;
    }

    .search-result-row-mobile-meta .search-result-board {
        width: 100px;
        margin: 0;
    }

    .search-result-row-mobile-meta .search-result-date {
        width: auto;
        margin-left: auto;
    }
}