@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&display=swap');

:root {
    --theme-color: #fff;
    /* テーマカラー */
}

/* 共通のボーダースタイル */
.box,
#info,
#m-info {
    border-top: #626262 solid 1px;
    border-left: #626262 solid 1px;
    border-bottom: #000 solid 1px;
    border-right: #000 solid 1px;
    outline: 1px solid #000;
    outline-offset: -10px;
    overflow-wrap: break-word;
}

/* 中央配置 */
.box,
#info {
    margin-left: auto;
    margin-right: auto;
    width: 95%;
}

/* 共通のパディング */
#info,
#m-info {
    padding: 30px 10px;
    text-align: center;
    background-color: #CCFFCC;
}


/* ベーススタイル */
body {
    background: url(background.webp) fixed;
    background-size: cover;
    backdrop-filter: blur(1px);
    font: 400 normal/normal "Noto Sans JP", sans-serif;
    font-family: "Noto Sans JP", sans-serif;
    min-height: 100vh;
}

header {
    padding-top: 5px;
    background-color: var(--theme-color);
    display: flex;
    border-bottom: #828282 solid 1px;
}

header img {
    max-height: 40px;
}

.CONTENTS {
    display: flex;
}

#m-info {
    margin-top: 10px;
    padding-bottom: 30px;
}

#m-info h3 {
    margin: 0 20px 0 10px;
}

#m-info a {
    height: 30px;
    border-radius: 15px;
    background-color: aquamarine;
    border: #000 solid 1px;
    padding: 0 10px;
    text-decoration: none;
    color: #000;
}



#login {
    margin-left: auto;
    margin-right: 20px;
    max-height: 30px;
    background-color: #e9e9e9;
    color: #000;
    border: #6e6e6e solid 1px;
    border-radius: 3px;
    text-decoration: none;
}

#login a {
    text-decoration: none;
    color: #000;
}

.box {
    margin-top: 20px;
    height: auto;
    background: var(--theme-color);
    padding: 10px;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.box h2,
.box form,
.box small,
.box p {
    padding-left: 10px;
}

.box p.post-header {
    margin-left: 0px;
    padding-left: 10px;
}

#make_thread {
    padding-bottom: 50px;
}

.ul {
    padding-left: 0;
}

.ul li {
    list-style: none;
    margin: 0 auto 5px;
    max-width: 800px;
    width: 92%;
    border: #b1b1b1 1px solid;
    background-color: #f4f4f4;
    border-radius: 5px;
    padding-left: 5px;
}

.ul li:hover {
    background-color: #c4c4c4;
}

a {
    color: #000;
}

.textarea {
    min-width: 150px;
    max-width: 90%;
    resize: none;
    border: #6e6e6e 1px solid;
    border-radius: 2px;

}

.cookie-consent {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 12px;
    color: #fff;
    border-top: solid 4px rgba(100, 100, 100, 0.5);
    background: rgba(0, 0, 0, .7);
    padding: 1.2em;
    box-sizing: border-box;
    visibility: hidden;
}

.cookie-consent.is-show {
    visibility: visible;
}

.cookie-consent a {
    color: #fff !important;
}

.cookie-agree {
    color: #fff;
    background: dodgerblue;
    padding: .5em 1.5em;
    cursor: pointer;
}

.input {
    max-width: 90%;
}

@media screen and (max-width: 600px) {
    .cookie-consent {
        flex-direction: column;
    }

    .cookie-text {
        margin-bottom: 1em;
    }
}

table {
    width: 90%;
}

#info {
    margin-top: 30px;
}

.center-img {
    margin: auto;
}

td {
    overflow-wrap: anywhere;
}

footer {
    padding-top: 5px;
    background-color: #fff;
    display: flex;
    justify-content: center;
    border-top: #000 solid 1px;
    position: absolute;
    bottom: 0;
    width: 100%;
}

#MAIN {
    min-height: 100vh;
    position: relative;
    padding-bottom: 70px;
}

#comments {
    min-height: 500px;
}

#page {
    text-align: center;
    position: sticky;
}

.rainbow {
    background: linear-gradient(to right, #e60000, #f39800, #fff100, #009944, #0068b7, #1d2088, #920783);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    background: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    color: #333;
}

.btn:hover {
    background: #ccc;
}

.hidden {
    display: none;
}

.archived-label {
    color: red;
    font-size: 1rem;
    border-radius: 2px;
    margin-left: 5px;
}

.post_a {
    color: #0033ff;
}

.post_a:hover {
    color: #ff2200;
}

.tooltip {
    position: relative;
    cursor: help;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 300px;
    background-color: #333;
    color: #fff;
    text-align: left;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 10;
    bottom: 120%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 12px;
    white-space: normal;
    word-wrap: break-word;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

#icon-preview {
    margin-left: 10px;
    border-radius: 50%;
    border: #000 solid 1px;
    height: 100%;
}

a.name-link {
    text-decoration: none;
}

a.name-link:hover {
    text-decoration: underline;
}


input[type="text"] {
    border: #6e6e6e 1px solid;
    border-radius: 2px;
}

input[type="file"]::file-selector-button {
    border: #828282 solid 1px;
    background-color: #e4e4e4;
    border-radius: 2px;
    color: #000;
    font-size: 1em;
}

button[type="submit"] {
    background-color: #e4e4e4;
    border: #828282 solid 1px;
    border-radius: 2px;
    color: #000;
    margin-top: 3px;
}

button[type="submit"]:hover,
input[type="file"]::file-selector-button:hover {
    border: #666 solid 1px;
    cursor: pointer;
}

button[type="submit"]:active,
input[type="file"]::file-selector-button:active {
    background-color: #979797;
}

select {
    border: #6e6e6e 1px solid;
    border-radius: 2px;
    padding: auto;
    background-color: #fff;
    color: #000;
}

.post-header {
    border-bottom: #ccc dashed 1px;
    background-color: #f4f4f4;
}


#x {
    background-color: #000;
    color: #fff;
}

#Atag:hover {
    background-color: rgb(255, 170, 139);
}

div.post-img {
    width: 100%;
    padding-left: 10px;
    padding-top: 3px;
}

div.post-img a {
    display: inline-block;
    /* これでimgのサイズに合わせる */
    max-width: 70%;
    /* または fit-content（Safari対策） */
}

div.post-img a img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 1px 1px 2px #ccc;
    display: block;
}


.manual-update-btn:hover {
    background: #1976D2;
}

#charCount {
    position: absolute;
    bottom: 8px;
    right: 11%;
    font-size: 12px;
    color: #666;
    background: rgba(255, 255, 255, 0.8);
    padding: 2px 6px;
    border-radius: 6px;
    pointer-events: none;
}

.modal-content {
    border-top: #6e6e6e dashed 1px;
}

.modal-content h3 {
    margin-left: 10px;
}

.modal-content label {
    display: block;
    margin: 6px 0;
}

.modal-content textarea {
    margin-top: 4px;

}


.modal-actions button[type="submit"],
.toggle-report-button {
    margin-left: 0px;
    display: inline-block;
    padding: 6px 12px;
    margin-top: 10px;
    border: 1px solid red;
    background-color: #fff;
    color: red;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;

    font-size: 1em;
}




/* デスクトップ対応 */
@media (min-width: 851px) {
    header {
        padding-bottom: 5px;
    }

    .box {

        max-width: 850px;
    }

    #info {
        max-width: 850px;
    }

    #m-info {
        display: none;
    }

    .LEFT {
        width: 120px;
        background-color: var(--theme-color);
        padding: 10px 0 0 10px;
        min-height: 100vh;
    }

    .RIGHT {
        width: 90%;
    }
}

/* モバイル対応 */
@media (max-width: 850px) {
    header {
        padding-bottom: 10px;
    }

    .LEFT {
        display: none;
    }

    .RIGHT {
        width: 100%;
    }

    #m-info {
        width: 95%;
        margin: 10px auto 0;
    }

    .cookie-agree {
        padding: .5em 9em;
    }

    input[type="file"]::file-selector-button,
    button[type="submit"] {
        padding: 2px;
        padding-left: 10px;
        padding-right: 10px;
        font-size: 1.15em;
        margin-bottom: 5px;
    }

    .post-header {
        font-size: 0.85em;
        border-bottom: #ccc dashed 1px;
    }

    .username {
        font-size: 1.3em;
    }

    .box {
        padding: 8px;
        outline-offset: -8px;

    }

    #info,
    #m-info {
        outline-offset: -8px;

    }

}