@charset "UTF-8";

/* ==========================================================
   TALKROOM PAGE STYLES (LINE Chat Style)
   ========================================================== */

/* ----------------------------------------------------------
   基本レイアウト
   ---------------------------------------------------------- */
.tnsb-line-wrap {
    position: relative;
    background-color: #fff;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
    width: 100%;
    min-height: 100vh; /* 画面いっぱいに確保 */
}

/* メッセージ表示エリア（ボード） */
.tnsb-line-board {
    height: 50vh;
    overflow-y: auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    padding: 0 30% 50vh;
    z-index: 99;
    position: relative;
}

/* ----------------------------------------------------------
   メッセージ（吹き出し）
   ---------------------------------------------------------- */
.tnsb-bubble {
    max-width: 70%;
    margin: 2px 0;
    display: flex;
    align-items: flex-end;
    gap: 4px;
}
.tnsb-bubble.left {
    align-self: flex-start;
    flex-direction: row;
}
.tnsb-bubble.right {
    align-self: flex-end;
    flex-direction: row-reverse;
}

/* 吹き出し本体 */
.tnsb-bubble__inner {
    padding: 12px 14px;
    border-radius: 16px;
    line-height: 1.5;
    word-break: break-word;
}
.tnsb-bubble.left .tnsb-bubble__inner {
    background: rgba(255, 255, 255, 0.9);
    color: #0a0a0a;
    border-bottom-left-radius: 2px;
}
.tnsb-bubble.right .tnsb-bubble__inner {
    background: #222;
    color: #fff;
    border-bottom-right-radius: 2px;
}

/* 時間表記 */
.tnsb-bubble__meta {
    font-size: 0.7em;
    color: rgba(0, 0, 0, 0.46);
    white-space: nowrap;
    flex-shrink: 0;
}

/* ----------------------------------------------------------
   入力フォームエリア
   ---------------------------------------------------------- */
.tnsb-line-form {
    display: flex;
    gap: 8px;
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 10px 0 20px;
    background: #fff;
    z-index: 99;
}
.tnsb-line-form input[type=text] {
    flex: 1;
    border: 1px solid #3d3d3d;
    border-radius: 50px;
    padding: 16px;
    outline: none;
    margin-left: 20%;
    font-size: 15px;
    height: 10px;
    background: #222;
    color: #fff;
}
.tnsb-line-form button {
    border: 0;
    border-radius: 34px;
    padding: 0 12px;
    height: 44px;
    cursor: pointer;
    background: #6a5acd;
    color: #fff;
    transition: opacity 0.3s;
    margin-right: 20%;
}
.tnsb-line-form button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 在席カウンター */
.tnsb-line-presence {
    position: absolute;
    left: 10px;
    top: 10px;
    background: rgba(255, 255, 255, 0.76);
    padding: 10px;
    line-height: 1;
    border-radius: 100px;
    border: 1px solid #ccc;
    z-index: 9;
}

/* ----------------------------------------------------------
   昼・夜の背景切り替え
   ---------------------------------------------------------- */
/* 昼 (06:00–17:59) */
.day .tnsb-line-wrap {
    background: url('../../images/tnsb/bbs/all-01.gif');
    background-color: #9abcec;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
}

/* 夜 (18:00–05:59) */
.night .tnsb-line-board {
    background: rgba(43, 52, 226, 0.2);
}
.night .tnsb-line-wrap {
    background: url('../../images/tnsb/bbs/all-01.gif');
    background-color: #1c1d34;
    background-size: 100%;
    background-repeat: no-repeat;
    background-position: center bottom;
}
.night .tnsb-bubble__meta {
    color: #888;
}
.night .tnsb-bubble__inner {
    border: 1px solid #3a3a3a;
}
.night .tnsb-line-form {
    background: #d5d6fa;
}

/* ----------------------------------------------------------
   ゲスト閲覧時の仕様（ぼかし・案内）
   ---------------------------------------------------------- */
.tnsb-blurred {
    filter: blur(3px);
    user-select: none;
}

.tnsb-line-board.guest {
    padding-top: clamp(16vh, 24vh, 28vh);
    text-align: center;
    color: #fff;
    padding-bottom: 0;
    padding-right: 0;
    padding-left: 0;
    height: 100vh;
}

.tnsb-line-board.guest .guest_title {
    display: block;
    font-weight: 800;
    font-size: clamp(2.75em, 7vw, 4.25em);
    line-height: 1.05;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .98);
    font-family: Futura;
}
.tnsb-line-board.guest .guest_title span {
    display: block;
    margin-top: 0.75em;
    font-weight: 100;
    font-size: 0.3em;
    line-height: 1.2;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.3);
}

.tnsb-line-board.guest .guest_text {
    margin-top: 1.5em;
    font-size: 0.95em;
    line-height: 1.9;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .85);
}

.tnsb-line-board.guest .guest_btn {
    margin-top: 1.75em;
    display: block;
}
.tnsb-line-board.guest .guest_btn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 3em;
    border-radius: 9999px;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    margin: .5em;
    padding: 0 4em;
}
.tnsb-line-board.guest .guest_btn a:hover {
    cursor: pointer;
    opacity: .567;
}
.tnsb-line-board.guest .guest_btn a:first-child {
    background: transparent;
    color: rgba(255, 255, 255, .98);
    border: 0.125em solid #fff;
}
.tnsb-line-board.guest .guest_btn a:last-child {
    background: #fff;
    color: #090a2d;
    border: 0.125em solid #fff;
}

/* 最新ブラウザ向け：親要素へのスタイル適用 */
@supports selector(:has(*)) {
    .tnsb-line-wrap:has(.tnsb-line-guest-note > .tnsb-line-board.guest) {
        background-position: center bottom 0px;
        filter: grayscale(70%);
        height: 100vh;
    }
}

/* 季節限定アイテム */
.xmastree {
    position: absolute;
    z-index: 0;
    bottom: 90px;
    width: 12vw;
    left: 0;
    right: 0;
    margin: auto;
}

/* ----------------------------------------------------------
   レスポンシブ対応（スマホ・タブレット）
   ---------------------------------------------------------- */
/* PC/Tablet 中間サイズ */
@media(max-width:1333px) {
    .tnsb-line-form input[type=text] {
        margin-left: 3%;
    }
    .tnsb-line-form button {
        margin-right: calc(3% + 51px);
    }
    .tnsb-line-wrap {
        background-size: contain;
        background-position: center bottom 3vw;
    }
}

@media(max-width:1029px) {
    .tnsb-line-board {
        height: 62vh;
        padding: 0 3% 38vh;
    }
    .tnsb-bubble {
        max-width: 85%;
    }
    .page-id-403518 footer {
        display: none;
    }
    .tnsb-line-presence {
        left: 3%;
        top: 60px;
    }
}

/* スマホサイズ */
@media(max-width:736px) {
    .tnsb-line-wrap {
        height: 100dvh;
        position: fixed;
        bottom: 0;
        background-color: #1c1d34;
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center bottom;
    }
    .tnsb-line-board {
        height: inherit;
        height: -webkit-fill-available;
        padding: 0 3% 36dvh;
    }
    .tnsb-bubble__inner {
        padding: 9px 14px;
        border-radius: 18px;
        line-height: 1.4;
        font-size: 1em;
    }
    .tnsb-line-presence {
        position: fixed;
        left: 3%;
        top: 60px;
    }
    .tnsb-line-form {
        position: fixed;
        background: #000;
        bottom: 0;
        padding: 14px 0;
        gap: 6px;
    }
    .tnsb-line-wrap {
        background-position: center bottom 55px;
    }
    .tnsb-line-form input[type=text] {
        margin-left: 3%;
    }
    .tnsb-bubble__meta {
        font-size: .6em;
        letter-spacing: 0;
    }
    
    /* 昼夜画像（スマホ） */
    .day .tnsb-line-wrap,
    .night .tnsb-line-wrap {
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center bottom 55px;
    }
    .night .tnsb-line-form {
        background: #000;
    }

    /* ゲストボタン調整 */
    .tnsb-line-board.guest .guest_btn a {
        padding: 0 3em;
    }

    .xmastree {
        width: 24vw;
    }
}