*{
    font-family: "Hiragino Kaku Gothic Pro","ヒラギノ角ゴ Pro W3","メイリオ","Meiryo","ＭＳ Ｐゴシック",sans-serif;
}

.MathJax {
    font-size: 75%;
}

.anti-copy{
    pointer-events: none;
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag: none;
}

.anti-drag{
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag: none;
}

.allow-drag{
    user-select:auto;
    -webkit-user-select:text;
    -webkit-user-drag:auto;
}

/* {{{ Header */
ul.header-links {
    list-style: none;
    width: 100%;
    height: 64px;
    margin: 0px;
    padding: 0px;
    background-color: #3f3f3f;
    position: fixed;
}

ul.header-links li {
    display: inline-block;
    height: 64px;
    margin: 0px;
    margin-top: -2px;
}

ul.header-links li:hover {
    background-color: #afafaf;
}

ul.header-links li a {
    box-sizing: border-box;
    padding-left: 16px;
    padding-right: 16px;
    padding-top: 18px;
    height: 100%;
    text-decoration: none;
    color: white;
    display: block;
}

ul.header-links li a canvas {
    margin-right: 4px;
}

div.header input {
    display: none;
}

div.header .hamburger {
    position: fixed;
    z-index: 10;
    top: 14px;
    left: 16px;
    display: none;
    cursor: pointer;
}

div.header .hamburger .bar {
    width: 30px;
    height: 2px;
    margin: 10px auto;
    transition: all 0.3s ease-in-out;
    background-color: rgba(200,200,200 ,1);
}

@media screen and (max-width: 960px) {
    div.header .hamburger {
        display: inline-block;
    }
    ul.header-links{
        padding-left: 64px;
    }

    div.header .header-links li {
        display: none;
    }

    div.header #toggle:checked ~ .header-links {
        padding-top: 64px;
        padding-left: 0px;
        height: 100%;
        text-align: center;
    }

    div.header #toggle:checked ~ .header-links li {
        display: block;
        animation-name: fadeIn;
        animation-duration: 0.5s;
        animation-timing-function: ease-out;
        animation-fill-mode: forwards;
    }

    @keyframes fadeIn {
        0% {
            opacity: 0;
            transform: translateY(32px);
        }
        100% {
            opacity: 1;
            transform: translateY(0px);
        }
    }

    div.header #toggle:checked + label.hamburger .bar:nth-child(1) {
        -webkit-transform: translateY(6px) rotate(45deg);
        transform: translateY(6px) rotate(45deg);
    }
    div.header #toggle:checked + label.hamburger .bar:nth-child(2) {
        -webkit-transform: translateY(-6px) rotate(-45deg);
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* }}} */

/* button */
.submit-button1 {
    -webkit-box-sizing: content-box;
    /* -webkit-appearance: button; */
    appearance: button;
    box-sizing: border-box;
    cursor: pointer;
    display       : inline-block;
    border-radius : 5%;
    font-size     : 18pt;
    text-align    : center;
    cursor        : pointer;
    padding       : 12px 11px;
    background    : #999999;
    color         : #ffffff;
    line-height   : 1em;
    transition    : .3s;
    border        : 2px solid #999999;
    margin: 4px;
}
.submit-button1:hover {
    color         : #999999;
    background    : #ffffff;
}
.submit-button2 {
    -webkit-box-sizing: content-box;
    -webkit-appearance: button;
    appearance: button;
    box-sizing: border-box;
    cursor: pointer;
    display       : inline-block;
    border-radius : 5%;
    font-size     : 12px;
    text-align    : center;
    cursor        : pointer;
    padding       : 8px 7px;
    background    : #999999;
    color         : #ffffff;
    line-height   : 1em;
    transition    : .3s;
    border        : 2px solid #999999;
    margin-top: 0px;
}
.submit-button2:hover {
    color         : #999999;
    background    : #ffffff;
}

.centre {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

span.set{
    display: inline-block;
    width: 7em;
}

img {
    max-width: 1000px;
}

table {
    user-select:none;
    -webkit-user-select:none;
    -webkit-user-drag: none;
}
.container-white {
    background-color: #FFFFFF;
    padding: 5px 15vw 20px 15vw;
    margin: 0 0 8px 0;
}

.container-black {
    background-color: #000000;
    padding: 5px 15vw 20px 15vw;
    margin: 0 0 8px 0;
    color: #FFFFFF;
}

.container-gradation1 {

    background-color: #E1E6EC;
    background-image: -webkit-linear-gradient(top, #E1E6EC 2%, #F0F4F7 96%), -webkit-radial-gradient(at 50% 100%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.5) 200%);
    background-image: linear-gradient(-180deg, #E1E6EC 2%, #F0F4F7 96%), radial-gradient(at 50% 100%, rgba(255, 255, 255, 0.2) 0%, rgba(0, 0, 0, 0.5) 200%);
    background-blend-mode: normal, color-burn;

    padding: 5px 15vw 20px 15vw;
    margin: 0 0 8px 0;
    color: #000000;
    display: inline-block;
    box-sizing: border-box;
    width: 100%;
}

div.review {

    background-color: #FFFFFF;

    padding: 5px 15px 20px 15px;
    margin: 0 0 8px 0;
    color: #000000;
    display: inline-block;
    box-sizing:border-box;
    width: 100%;
}


.container-half-left {
    width: 49.8%;
    display: inline-block;
    padding: 5px 10vw 20px 10vw;
    box-sizing: border-box;
    float: left;
}

.container-half-right {
    width: 49.8%;
    display: inline-block;
    padding: 5px 10vw 20px 10vw;
    box-sizing: border-box;
    float: right;
}

.input-text1 {
    position: relative;
    width: 95%;
    margin: 16px 1%;
}
.input-text1 input[type='text'] {
    font: 15px/24px sans-serif;
    box-sizing: border-box;
    width: 95%;
    padding: 0.3em;
    transition: 0.3s;
    letter-spacing: 1px;
    border: 1px solid #1b2538;
    border-radius: 4px;
}
.input-text1-label input[type='text']:focus {
    border: 1px solid #da3c41;
    outline: none;
    box-shadow: 0 0 5px 1px rgba(218,60,65, .5);
}
.input-text1 input[type='password'] {
    font: 15px/24px sans-serif;
    box-sizing: border-box;
    width: 95%;
    padding: 0.3em;
    transition: 0.3s;
    letter-spacing: 1px;
    border: 1px solid #1b2538;
    border-radius: 4px;
}
.input-text1-label input[type='password']:focus {
    border: 1px solid #da3c41;
    outline: none;
    box-shadow: 0 0 5px 1px rgba(218,60,65, .5);
}

.input-select1 {
    overflow: hidden;
    width: 100%;
    text-align: center;
    display: block;
    margin: 16px 1%;
}
.input-select1 select {
    font-size: 17px;
    width: 95%;
    padding-right: 1em;
    padding: 0.3em;
    cursor: pointer;
    text-indent: 0.01px;
    text-overflow: ellipsis;
    border: none;
    outline: none;
    background: transparent;
    background-image: none;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}
.input-select1 select::-ms-expand {
    display: none;
}
.input-select1.opt1 {
    position: relative;
    border: 1px solid #bbbbbb;
    border-radius: 2px;
    background: #ffffff;
}
.input-select1.opt1::before {
    position: absolute;
    top: 0.8em;
    right: 0.9em;
    width: 0;
    height: 0;
    padding: 0;
    content: '';
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #666666;
    pointer-events: none;
}
.input-select1.opt1 select {
    padding: 8px 38px 8px 8px;
    color: #666666;
}

textarea {
    font: 15px/24px sans-serif;
    width: 90%;
    margin: 16px 1%;
}

p,pre {
    padding-left : 10px;
    padding-right: 10px;
    white-space: pre-wrap;
}

td.nowrap {
    white-space: nowrap;
}

table.coloured {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
}

table.coloured th,table.coloured td{
    padding: 10px 0;
    text-align: center;
    font-weight: normal;
}

table.coloured tr:nth-child(odd){
    background-color: #d0dfdf;
}

table.coloured tr:nth-child(even){
    background-color: #f0ffff;
}

.smart-table {
    color: black;
    border-collapse: collapse;
    line-height: 1.5;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 100%;
    line-height: 100%;
}
.smart-table thead th {
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    padding-left: 0.5em;
    padding-right: 0.5em;
    border-top: 1px solid #ccc;
    border-bottom: 3px solid #9b3029;
    background: #dcdcd1;
}
.smart-table tbody td {
    margin: 0;
    padding-left: 0.5em;
    padding-right: 0.5em;
    padding-top: 0.5em;
    padding-bottom: 0.5em;
    border-bottom: 1px solid #ccc;
}
.smart-table-bordered tbody td, .smart-table-bordered thead th {
    border-right: 1px solid #ccc !important;
}
.smart-table tbody tr:hover {
    background-color: rgb( 244, 244, 244); /* this is a green */
}
.smart-table .fixed {
    position: fixed;
}
.smart-table-bordered-right tbody tr td {
    border: 1px solid black;
    font-weight: bold;
}
.smart-table-bordered-right tbody tr th {
    border-right: 3px solid #9b3029 !important;
    padding-right: 1em;
    padding-left: 1em;
    border: 1px solid black;
    background-color: #dcdcd1;
}
.tag {
    margin: 0;
    padding: 0;
    list-style: none;
}
.tag li {
    display: inline-block;
    padding: 0;
    margin: 0;
}
.tag li a {
    display: inline-block;
    line-height: 2em;
    padding: 0;
    padding-right: 0.1em;
    padding-left: 0.1em;
    margin-bottom: 0.1em;
    border: 1px solid #aaa;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    color: #000;
    text-decoration: none;
    vertical-align: middle;
}
.tag li a:hover {
    background-color: #3498db;
    border: 1px solid #3498db;
    color: #fff;
}
.tag li .selected {
    background-color: #3498db;
    border: 1px solid #3498db;
    color: #fff;
}


img.logo{
    max-height: 128px;
    max-width: 90vw;
    height: auto;
    width: auto;
    object-fit: contain;
}

img.title-for-mo {
    display:none;
}

.scroll{
    overflow: auto;
    white-space: nowrap;
}
.scroll::-webkit-scrollbar{
    height: 5px;
}
.scroll::-webkit-scrollbar-track{
    background: #F1F1F1;
}
.scroll::-webkit-scrollbar-thumb {
    background: #BCBCBC;
}

#msg_frame {
    width: 100%;
    height: calc(100vh - 64px - 136px - 128px - 64px);
    border: 0;
    overflow: auto;
}

#msg_footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 128px;
    background-color: #3f3f3f;
    text-align: center;
    color: #efefef;
    margin: 0;
    padding: 0
}

.title {
    margin: 0;
    padding: 4px;
    height: 128px;
}

@media screen and (max-width: 700px) {
    * {
        box-sizing: border-box;
    }
    .title {
        margin: 0;
        padding: 4px !important;
        height: 64px;
    }
    img.logo{
        max-height: 64px;
        max-width: 90vw;
        height: auto;
        width: auto;
    }
    img.title-for-mo {
        display:inline;
    }
    img.title-for-pc {
        display:none;
    }

    img {
        width: 100%;
    }
    .container-black {
        padding: 5px 15px 20px 15px;
    }
    .container-white {
        padding: 5px 15px 20px 15px;
    }
    .container-gradation1 {
        padding: 5px 15px 20px 15px;
        width: 100%;
    }
    .container-half-left {
        width: 100%;
        padding: 5px 15px 20px 15px;
        float: none;
    }
    .container-half-right {
        width: 100%;
        padding: 5px 15px 20px 15px;
        float: none;
    }
    #msg_frame {
        height: calc(100vh - 64px - 72px - 128px - 64px);
    }
}

h1, h2, h3, h4 {
    margin-bottom: 0px;
}

.msg-wrapper-self {
    width: 100%;
    text-align: right;
    margin-bottom: 16px;
}

.msg-wrapper-target {
    width: 100%;
    text-align: left;
    margin-bottom: 16px;
}

.msg-box-self {
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    background: #2BB6AF;
    width: auto;
    max-width: 60%;
    margin-right: 0;
    display: inline-block;
    word-break : break-all
}

.msg-box-target {
    border-radius: 16px;
    padding: 16px;
    text-align: left;
    background: #F79329;
    width: auto;
    max-width: 60%;
    margin-left: 0;
    display: inline-block;
    word-break : break-all
}

.msg-link-wrapper {
    display: grid;
    width: calc(100% - 64px);
    text-decoration: none;
    color: black;
    margin: 16px;
    background: #A0A0A0;
    padding: 16px;
    grid-template-rows: 16px 48px 16px;
    grid-template-columns: 80px 1fr;
}

.msg-link-wrapper .icon {
    grid-row: 1 / 4;
    grid-column: 1 / 2;
}
.msg-link-wrapper .name {
    font-size: 120%;
    font-weight: bold;
    grid-row: 1 / 2;
    grid-column: 2 / 3;
    margin-left: 16px;
}
.msg-link-wrapper .name.with-notification {
    display: flex;
    justify-content: space-between;
}
.msg-link-wrapper .notification {
    background: red;
    color: white;
    display: inline-block;
    font-size: 70%;
    font-weight: normal;
    border-radius: 50%;
    height: 32px;
    width: 32px;
    text-align: center;
    vertical-align: middle;
    padding-top: 6px;
    box-sizing: border-box;
}

.msg-link-wrapper .msg {
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 100%;
    overflow: hidden;
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    margin-top: 4px;
    margin-left: 16px;
}

.msg-link-wrapper .time {
    text-align: right;
    font-size: 80%;
    grid-row: 3 / 4;
    grid-column: 2 / 3;
}
