@charset "UTF-8";
/* CSS Document */

/* =========================================================
　サイト内共通スタイル
========================================================= */
* {
    box-sizing: border-box;
}


body {
    font-family: 游ゴシック体, 'Yu Gothic', YuGothic, 'ヒラギノ角ゴシック Pro', 'Hiragino Kaku Gothic Pro', メイリオ, Meiryo, Osaka, 'ＭＳ Ｐゴシック', 'MS PGothic', sans-serif;
    margin: 0;
    padding: 0;
    max-width: 100%;
    height: 100%;
    box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
p,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td {
    margin: 0;
    padding: 0;
}

header {
    background-color: rgba(33, 122, 57, 0.9);
    text-align: center;
    margin: 0;
    width: 100%;
    height: 72px;
    box-sizing: border-box;
    z-index: 1;
    position: fixed;
}

.header-wrap {
    padding: 10px 0;
    margin: 0 auto;
    position: relative;
}

/* アプリアイコン*/
.header-wrap .site-logo {
    width: 46px;
    height: 46px;
    margin-top: 5px;
    position: absolute;
    left: 10px;
    top: 6px;
}

.header-wrap .site-logo img {
    width: 100%;
    height: auto;
}


/* アプリアイコン*/
.header-wrap .app-logo {
    width: 140px;
    margin: 0 auto;
}

.header-wrap .app-logo img {
    width: 100%;
    height: auto;
}

.header-wrap h1 {
    margin: 0;
    padding: 0;
}

.app-logo .var {
    color: #fff;
    font-size: 13px;
    line-height: 0.5;
}

/* ログイン時　メイン背景画像*/
body.login-content .content {
    width: 100%;
    height: 100vh;
    max-width: 100%;
    background: url(../images/bgimg.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    z-index: 1;
    box-sizing: border-box;
    position: fixed;
}

/* メイン背景画像オーバーレイ*/
.overlay {
    width: 100%;
    height: 100%;
    max-width: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2;
    position: fixed;
}

.content {
    background: #333;
}


main {
    padding-top: 72px !important;
}

.wrapper {
    display: flex;
    justify-content: space-between;
}

/* ログイン時　メイン内包*/
.main-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 60vh;
    /* ここで.selfの位置を調整 */
}


/* ログイン時自分画面*/
.self {
    width: 180px;
    height: 135px;
    background: #ccc;
    margin: auto auto 0 auto;
}

/* トーク画面*/
.main-content {
    flex: auto;
}

.talk-content {
    display: flex;
    flex-flow: wrap;
    justify-content: flex-start;
}



/* 横2列のとき*/
.w-50 {
    width: 50%;
}

/* 横3列のとき*/
.w-33 {
    width: 33.33%;
    color: #fff;
    text-align: center;
}

.talkview {
    height: 0;
    width: 100%;
    position: relative;
    padding-top: 56.25%;
    overflow: hidden;
}

.talkview video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.camera-off {
    z-index: 8;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #000;
    color: #fff;
    font-size: 13px;
    padding: 12px;
    border: 1px solid #fff;
    line-height: 1.1;
}

.camera-off img {
    max-width: 40px;
    height: auto;
    margin: 5px auto 10px auto;
}

/* コメント表示*/
.side-content {
    box-sizing: border-box;
    position: relative;
    width: 30%;
    background-color: rgba(255, 255, 255, 0.9);
    height: calc(100vh - 80px);
}

/* コメントリスト*/
.side-content .commentlist {
    box-sizing: border-box;
    overflow-y: scroll;
    overflow-x: hidden;
    height: 70vh;
    padding: 15px;
}



/*吹き出しにユーザー名を含めるとき*/
.balloon_r,
.balloon_l {
    margin-bottom: 20px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    box-sizing: border-box;
}

/*吹き出しにユーザー名を含めるときのユーザー名*/
.says span {
    display: block;
    font-weight: 600;
    padding-bottom: 2px;
    font-size: 14px;
}


/*吹き出し右は右寄せ*/
.balloon_r {
    justify-content: flex-end;
}

/*吹き出し右のユーザー名を右寄せに*/
.balloon_r .says span {
    text-align: right;
}

.says {
    line-height: 1.4;
    font-size: 15px;
    max-width: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    position: relative;
    padding: 15px;
    border-radius: 12px;
    box-sizing: border-box;
    background: #fff;
    border: 2px solid #ccc;
}

.balloon_r .says::before,
.bubble_r .says::before {
    content: '';
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    right: -12px;
    top: 15px;
    border-left: 10px solid #ccc;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.balloon_r .says::after,
.bubble_r .says::after {
    content: '';
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    right: -9px;
    top: 15px;
    border-left: 10px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* 吹き出し左 */
.balloon_l .says::before,
.bubble_l .says::before {
    content: '';
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    left: -12px;
    top: 15px;
    border-right: 10px solid #ccc;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

.balloon_l .says::after,
.bubble_l .says::after {
    content: '';
    position: absolute;
    display: inline-block;
    width: 0;
    height: 0;
    left: -9px;
    top: 15px;
    border-right: 10px solid #fff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/*吹き出しにユーザー名を含めないとき*/
.bubble_r {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-end;
    margin-bottom: 20px;
}

.bubble_l {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
}

/*ユーザー名*/
.bubble_r span,
.bubble_l span {
    display: block;
    font-weight: 600;
    font-size: 14px;
}

/* コメント送信*/
.comment-wrap {
    position: absolute;
    bottom: 75px;
    height: 70px;
    width: 100%;
    height: auto;
    background: #fff;
    padding: 10px 15px;
}

.comment-wrap textarea {
    width: 100%;
    height: 40px;
    margin-bottom: -2px;
}

.comment-wrap .sendbutton {
    display: flex;
    justify-content: flex-end;
}


/* 操作バー*/
.contact-wrap {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: rgba(0, 0, 0, 1);
    z-index: 5;
}

.contact-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 240px;
    margin: 0 auto;
    padding-top: 15px;
}

.contact-inner div {
    width: 44px;
}


.contact-inner button {
    border: none;
    outline: none;
}

/* 入室する */
#entrance {
    background: url(../images/entrance.png) top center no-repeat;
    background-size: 100% auto;
    width: 44px;
    height: 45px;
    display: block;
}

/* 退室する */
#exit,
#exit_sp {
    background: url(../images/exit.png) top center no-repeat;
    background-size: 100% auto;
    width: 44px;
    height: 45px;
    display: block;
}


/* ビデオON */
#video,
#video_sp {
    background: url(../images/video.png) top center no-repeat;
    background-size: 100% auto;
    width: 44px;
    height: 44px;
    display: block;
}


/* ビデオOFF */
#video_off,
#video_off_sp {
    background: url(../images/video_off.png) top center no-repeat;
    background-size: 100% auto;
    width: 44px;
    height: 44px;
    display: block;
}

/* サウンドON */
#sound,
#sound_sp {
    background: url(../images/sound.png) top center no-repeat;
    background-size: 100% auto;
    width: 44px;
    height: 44px;
    display: block;
}


/* サウンドOFF */
#sound_off,
#sound_off_sp {
    background: url(../images/sound_off.png) top center no-repeat;
    background-size: 100% auto;
    width: 44px;
    height: 44px;
    display: block;
}


.clear {
    clear: both;
}



textarea {
    width: 700px;
    height: 5em;
    box-sizing: border-box;
}

.datas {
    display: none;
}

.sp-contact-wrap,
.sp-comment-wrap {
    display: none;
}


/* スマートフォンのとき*/
@media screen and (max-width:736px) {
    header {
        position: static;
    }


    /* メイン背景画像*/
    .content {
        width: 100%;
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    .wrapper {
        flex-direction: column;
    }

    .main-content {
        width: 100%;
        position: absolute;
        height: 48%;
        left: 0;
        top: 72px;
        z-index: 6;
    }

    main {
        padding-bottom: 80px;
    }



    .pc-comment-wrap,
    .pc-contact-wrap,
    #video,
    #video_off,
    #sound,
    #sound_off {
        display: none;
    }

    /*吹き出し*/
    .balloon_r,
    .balloon_l,
    .bubble_r,
    .bubble_l {
        margin: 0 15px 15px 0;
    }

    /* spコメント内包*/
    .sp-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 130px;
        z-index: 5;
    }


    /* コメント送信*/
    .sp-comment-wrap {
        background: #fff;
        padding: 10px 15px;
        display: flex;
        justify-content: space-between;

    }

    .sp-comment-wrap textarea {
        width: 88%;
        height: 40px;
        margin-bottom: -2px;
        font-size: 0.9em;
    }

    .sp-comment-wrap .sendbutton {
        width: 10%;
    }



    /* SP操作バー*/
    .sp-contact-wrap {
        display: block;
        width: 100%;
        height: 70px;
        background: rgba(0, 0, 0, 1);
        z-index: 5;
    }

    .sp-contact-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
        max-width: 240px;
        margin: 0 auto;
        padding-top: 10px;
    }

    .sp-contact-inner div {
        width: 44px;
    }


    .sp-contact-inner button {
        border: none;
        outline: none;
    }

}
