@charset "utf-8";
* {margin: 0; padding: 0; box-sizing: border-box;}
body {
    font-family: sans-serif;
    background: #222;
    color: white;
}
.container {
    width: calc(100% - 8px);
    max-width: 860px;
    margin: 0 auto;
    word-break: break-all;
    height: 100vh;
    display: flex;
    flex-direction: column;
}
header {
    position: relative;
}
.nav_div {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin-bottom: 4px;
}
nav {
    height: 32px; line-height: 32px;
    display: flex;
    align-items: flex-end; /* 下寄せ */
    gap: 8px;
}
h1 {
    font-size: 16px;
    color: mediumspringgreen;
}
.nav_div a {
    position: relative;
    color: white;
    text-decoration: none;
    box-shadow: 0 0 6px rgba(80, 130, 255, 1);
    border: 1px solid #4285f4;
    border-radius: 4px;
    padding: 0 8px 0 32px;
}
.nav_div a::before {
    position: absolute;
    content: "";
    border-style: solid;
    border-color: transparent white transparent transparent;
    border-width: 8px 8px 8px 0px;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}
.nav_div a::after {
    position: absolute;
    content: "";
    border-style: solid;
    border-color: transparent white transparent transparent;
    border-width: 8px 8px 8px 0px;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}
nav span {
    color: #999;
}
.rom, .participants {
    color: mediumspringgreen;
}
input, button {
    box-sizing: border-box;
    height: 28px; line-height: 28px;
    padding: 0 4px;
    border: none;
    font-size: 16px;
}
.enter_form {
    display: flex;
    gap: 4px;
}
.enter_btn {
    line-height: 22px;
    color: #000;
    border-top: 4px solid #d8dcdc;
    border-right: 4px solid #666;
    border-bottom: 4px solid #333;
    border-left: 4px solid #868888;
    border-radius: 0;
    background-image: -webkit-linear-gradient(135deg, #333 0%, #868888 20%, #d8dcdc 34%, white 53%, #666 100%);
    background-image: linear-gradient(-45deg, #333 0%, #868888 20%, #d8dcdc 34%, white 53%, #666 100%);
    text-shadow: 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff, 0 0 5px #fff;
    cursor: pointer; 
}

.exit_form { /* header position: relative; */
    position: absolute;
    top: 0; right: 0;
}
.exit_btn,
.send_btn {
    background: #777;
    color: mediumspringgreen;
    font-weight: bold;
    text-shadow: 1px 1px 0 #000;
    cursor: pointer;
}
.send_btn {
    color: white;
}
.hdn {
    width: 200px;
}
.colorPicker {
    width: 50px;
    border: none;
    border-radius: 0;
}
.mes_btn_div {
    width: 100%;
    max-width: 860px;
    display: flex;
    gap: 4px;
}
.mes {
    flex: 1;
}
.user_names {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    padding: 4px 0 0;
}

main {
    background: #222;
    padding: 0 0 16px;
    flex: 1;
    overflow: auto;
    scrollbar-width: thin;
    scrollbar-color: #888 #222;
}
main::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
main::-webkit-scrollbar-track {
    background: #222; /* ここを変更 */
    border-radius: 10px;
}
main::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}
main::-webkit-scrollbar-thumb:hover {
    background: #555;
}

main > div {
    border-bottom: 1px solid #999;
    padding: 4px 0;
    font-size: 18px;
}
main a {
    color: mediumspringgreen;
    font-size: 14px;
}
.hdn_log {
    font-weight: bold;
}
.arrow {
    color: #ccc;
}
.created, .ip {
    font-size: 12px;
    color: #aaa;
}