﻿html, body {
    width: 80vw;
    margin: 10px auto;
    box-sizing: content-box;
    overflow-x: hidden;
    font-family: "Kosugi Maru", "Kosugi", "Noto Sans JP", 'Meiryo UI', Meiryo, "Noto Sans KR", 'Segoe UI', 'Malgun Gothic', sans-serif, monospace;
    font-weight: 400;
    font-optical-sizing: auto;
    font-style: normal;
}

nav .navbar-toggler {
    border: 1px transparent solid !important;
}

nav .navbar-toggler:focus, nav .navbar-toggler:focus-visible {
    box-shadow: none !important;
}

nav .navbar-toggler-icon {
    width: 23.6px;
}

section.main-list, section.blog-list {
    margin: 15px auto;
}

section.main-list .card-into-img, section.blog-list .card-into-img {
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #8c8c8c;
    border: 1px transparent solid;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

section.main-list .card-into-img {
     height: 278px;
}

section.blog-list .card-into-img {
    height: 450px;
}

section.main-list .card, section.blog-list .card {
    margin-bottom: 15px;
}

section.main-list .card .card-text {
    overflow-wrap: break-word;
}

section.main-list .card .btn, section.blog-list .card .btn {
    font-size: .7rem;
    padding: 4.5px 9px;
}

.post .post-header {
    border: #ddd 1px solid;
    border-bottom: 0px !important;
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    padding: 10px 10px;
}

.post .post-body {
    border: #ddd 1px solid;
    border-top: 0px !important;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    padding: 10px 10px;
}

.post .post-body img {
    width: 30vw;
}

.post .post-body p {
    word-break: break-all;
    word-spacing: normal;
    word-wrap: normal;
    font-size: 20.2px;
}

.post .post-tag {
    margin-right: 7px;
}

.edit-post .panel.note-frame {
    padding: 12px 12px;
    max-width: 99.75%;
    margin-left: 1%;
}

.edit-post .panel.note-frame .note-editing-area .note-editable {
    height: calc(100vh / 1.45);
}

.edit-post .post-form label {
    max-width: fit-content;
}

.edit-post .post-form div:has(input) {
    max-width: 100%;
}

.edit-post .mce-tinymce.mce-container {
    margin: 0 auto;
}

.edit-post .post-form {
    margin-left: 0px;
}

.edit-post .post-ctr-btn {
    max-width: fit-content !important;
}

/*Tablet minimum width*/
@media(min-width: 477px) and (max-width: 1240px) {
    html, body {
        width: 88.6vw;
    }

    body:has(.edit-post) {
        overflow: hidden;
    }

    section.main-list .card-into-img, section.blog-list .card-into-img {
        height: 265px;
    }

    div.row > div:not(.col-md-12) {
        width: 50%;
    }

    .post .post-body img {
        width: 65vw !important;
    }

    .post .post-body p {
        font-size: 18px;
    }
}

/*Mobile Phone minimum width*/
@media(max-width: 476px) {
    html, body {
        width: 96.5vw;
    }

    body:has(.edit-post) {
        overflow: hidden;
    }

    body:has(table) {
        overflow: hidden;
    }

    section.main-list .card-into-img, section.blog-list .card-into-img {
        height: 232px;
    }

    section.main-list .card .btn, section.blog-list .card .btn {
        float: right;
    }

    .post .post-body img {
        width: 100% !important;
    }

    .post .post-body p {
        font-size: 15px;
    }

    .post .post-body:has(table) {
        overflow-x: auto;
    }



    .edit-post .panel.note-frame {
        max-width: 94%;
        margin-left: 3%;
    }

    .edit-post .panel.note-frame .note-editing-area .note-editable {
        height: calc(100vh / 1.76);
    }

    .edit-post .post-ctr-btn {
        position: absolute;
        right: 5px;
        z-index: 100;
    }

    .edit-post .post-form > div:has(input[type=text]) {
        padding-left: 0px;
    }
    .edit-post .post-form label {
        padding-left: 5px;
    }

    .edit-post .post-ctr-btn > input[type=button] {
        padding: 4px 10px;
    }
}
