/* モバイル */
html {
    font-size: 14px;
}

/* タブレット以上 */
@media (min-width: 768px) {
    html {
        font-size: 15px;
    }
}

/* PC以上 */
@media (min-width: 1200px) {
    html {
        font-size: 16px;
    }
}

/* ベースフォント */
body {
    font-family: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", sans-serif;
    line-height: 1.6;
    height: 100svh;
}

/* common */
::-webkit-scrollbar {
    display: none;
}

/* Chrome, Safari, Edge, Opera */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
    display: none;
}

/* Internet Explorer */
input[type="text"]::-ms-clear,
input[type="search"]::-ms-clear {
    display: none;
}

input[type="date"] {
    background-color: white;
    color: black;
    /* Safariのアウトラインを削除する場合 */
    -webkit-appearance: none;
    border: 1px solid grey;
    border-radius: 4px;
    padding: 5px;
}

.btn-dark-design {
    border-color: black;
    white-space: nowrap;
    width: auto;
}

.btn-light-design {
    border-color: black;
    white-space: nowrap;
    width: auto;
}

/* スピナー */
.loading-overlay {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 9999;
}

body.loading #loading {
    display: flex;
}

/* 通信中だけ表示 */
.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid #ddd;
    border-top-color: #333;
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}


/* header */
header {
    position: fixed;
    margin: 0;
    z-index: 9999;
    width: 100%;
    height: 48px;
    top: 0;
    left: 0;
    background: #ffffff;
    border-bottom: 1px solid #6c757d;
}

/* PC */
@media (min-width: 768px) {
    header {
        height: 56px;
    }
}

.header-logo {
    display: block;
    position: relative;
    text-decoration-line: none;
    white-space: nowrap;
    font-size: 1.2rem;
    color: rgb(33, 37, 41);
    text-align: left;
}

.header-nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    margin-left: 1.2rem;
}

.header-nav-link:first-child {
    margin-left: 0;
}

.header-nav-link:hover {
    text-decoration: none;
}

.mobile-footer-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 48px;
    background: #ffffff;
    border-top: 1px solid #dddddd;
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1030;
    font-size: 11px;
}

.mobile-footer-item {
    flex: 1;
    text-decoration: none;
    color: #555555;
    display: flex; /* ★ ここから */
    flex-direction: column;
    align-items: center;
    justify-content: center; /* ★ 縦中央寄せ */
    gap: 2px;
}

.mobile-footer-icon {
    font-size: 20px;
    line-height: 1;
}

.mobile-footer-label {
    line-height: 1.1;
}

.nav-chat-status-dot {
    display: inline-block;
    margin-left: 4px;
    margin-bottom: 1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.nav-chat-status-unread {
    background-color: #1d63d8;
}

.header-search {
    display: flex;
    width: 350px;
    position: relative;
    text-align: center;
    align-items: center;
}

.header-search-button {
    font-size: 1.4rem;
    right: 5px;
    position: absolute;
    color: grey;
    background: transparent;
    border: none;
    cursor: pointer;
}

.header-input-search {
    background-color: #ebebeb;
    width: 100%;
}

.header-user {
    display: flex;
    margin: 0 5px;
    padding: 0;
    border-style: none;
}

.header-user-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* PC */
@media (min-width: 768px) {
    .header-user-icon {
        width: 36px;
        height: 36px;
    }
}


.header-help-icon {
    position: relative;
    padding: 0;
    border-style: none;
}

.dropdown-item {
    left: 0;
}

.dropdown-icon {
    width: 20px;
}

.dropdown-copyright {
    font-size: 0.8rem;
}

.window-close {
    margin: 10px;
    height: 30px;
}

.dropdown-menu .dropdown-item:active,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:focus {
    background-color: transparent !important;
    color: inherit;
    outline: none;
}

.dropdown-menu .dropdown-item:hover {
    background-color: transparent;
}

nav {
    height: 100%;
    width: 100%;
}

main {
    padding-top: 48px;
    padding-bottom: 56px;
    background-color: white;
}

/* PC */
@media (min-width: 768px) {
    main {
        padding-top: 56px;
        padding-bottom: 0;
    }
}

.btn-close:focus,
.btn-close:focus-visible {
    outline: none;
    box-shadow: none;
}

/* エラーメッセージ */

ul.errorlist {
    margin: 0;
    padding: 0;
}

ul.errorlist li {
    color: red;
    display: block;
    text-align: left;
    font-size: 0.8rem;
}

ul.infolist {
    margin-top: 5px;
    margin-bottom: 20px;
    padding: 0;
}

ul.infolist li:before {
    content: "* ";
}

ul.infolist li {
    display: block;
    text-align: left;
    font-size: 0.8rem;
}

.label-required {
    color: orangered;
    font-size: 0.8rem;
}


/* フォーム */

#id_room_name {
    max-width: 100%;
    width: 500px;
}

#id_room_description {
    max-width: 100%;
    width: 500px;
    height: 100%;
    resize: none;
}

#id_user_address {
    max-width: none;
    width: 100%;
}

#id_user_profile {
    width: 100%;
}

#id_nick_name {
    max-width: 100%;
    width: 500px;
}

#live-chat-text {
    width: 100%;
    resize: none;
    border: 1px solid #ddd;
    box-sizing: border-box;
    padding: 0;
    min-height: 50px;
    max-height: 150px;
    position: relative;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    overflow-y: auto;
}

/* ランディングページ */
.section-title {
    font-weight: 700;
    font-size: 2rem;
}

@media (min-width: 992px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #212529;
}

.section-summary {
    padding: 4rem 0;
}

.section-summary .section-title {
    font-size: 1.6rem;
    line-height: 1.4;
}

.section-summary .copy {
    max-width: none;
}

/* PC */
@media (min-width: 768px) {
    .section-summary {
        padding: 6rem 0;
    }

    .section-title {
        max-width: none;
    }
}

.feature-list {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    text-align: center;
}

.feature-list i {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}

/* PC */
@media (min-width: 768px) {
    .feature-list {
        font-size: 1.05rem;
    }

    .feature-list li {
        font-size: 1.125rem;
    }
}

.hero, .hero-section {
    position: relative;
    overflow: hidden;
    min-height: auto;
    aspect-ratio: 1 / 1;
}

.hero picture, .hero img,
.hero-section picture, .hero-section img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* PC */
@media (min-width: 768px) {
    .hero, .hero-section {
        min-height: 70svh;
        aspect-ratio: auto;
    }
}

.hero .hero-vignette, .hero-section .hero-vignette {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, .25) 75%,
            rgba(0, 0, 0, .45) 100%
    );
}

/* PC */
@media (min-width: 768px) {
    .hero .hero-vignette, .hero-section .hero-vignette {
        background: linear-gradient(
                to bottom,
                rgba(0, 0, 0, 0) 55%,
                rgba(0, 0, 0, .18) 82%,
                rgba(0, 0, 0, .32) 100%
        );
    }
}

.use-case-img {
    object-fit: cover;
    object-position: 60% 50%;
}

.hero-content {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: clamp(24px, 6svh, 64px);
    z-index: 2;
    text-align: center;
    padding: 0 12px;
}


/* PC */
@media (min-width: 768px) {
    .hero-content {
        padding: 0;
    }
}

.cta-btn {
    color: #fff;
    background: rgba(20, 20, 24, .55);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
    letter-spacing: .02em;
    transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: 1rem;
    padding: .7rem 1.6rem;
    border-radius: 12px;
}

.cta-btn:hover {
    background: rgba(20, 20, 24, .72);
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, .34);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 14px;
}

.cta-btn:focus-visible {
    outline: 3px solid rgba(255, 255, 255, .8);
    outline-offset: 2px;
}


/* PC */
@media (min-width: 768px) {
    .cta-btn {
        font-size: 1.15rem;
        padding: .9rem 2.4rem;
        border-radius: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cta-btn {
        transition: none;
    }

    .cta-btn:hover {
        transform: none;
    }
}

.community-description {
    max-width: 86ch;
    line-height: 1.9;
}

.icon-badge {
    --icon-size: 56px;
    --badge-size: 18px;
    position: relative;
    display: inline-grid;
    place-items: center;
    width: var(--icon-size);
    height: var(--icon-size);
}

.icon-badge .base {
    font-size: calc(var(--icon-size) * 0.78);
    line-height: 1;
}

.icon-badge .badge {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: var(--badge-size);
    height: var(--badge-size);
    display: inline-grid;
    place-items: center;
    font-size: calc(var(--badge-size) * 0.7);
    background: #fff;
    border-radius: 999px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, .06);
}

.fa-duotone {
    --fa-primary-color: currentColor;
    --fa-secondary-color: currentColor;
    --fa-secondary-opacity: 0.35;
}

/* PC */
@media (min-width: 768px) {
    .icon-badge {
        --icon-size: 64px;
        --badge-size: 20px;
    }
}

.cta-section {
    background: linear-gradient(135deg, #111 0%, #222 100%);
    padding: 3rem 1rem;
}

.cta-section .section-title {
    line-height: 1.6;
    font-size: 1.4rem;
    font-weight: 600;
}

/* PC */
@media (min-width: 768px) {
    .cta-section .section-title {
        font-size: 1.6rem;
    }
}


.steps-list {
    margin: 0;
    padding: 0;
}

.step-card {
    border-radius: 14px;
    padding: .9rem .9rem 1.1rem;
    background: #fff;
    position: relative;
}

.step-illust img {
    object-fit: contain;
}

.step-title {
    color: #00167A;
    font-size: 1.05rem;
    font-weight: 700;
    margin: .75rem 0 .25rem;
}

.step-caption {
    font-weight: 600;
    margin: .75rem 0 .25rem;
}

/* PC */
@media (min-width: 768px) {
    .step-card {
        padding: 1rem 1rem 1.25rem;
    }

    .step-title {
        font-size: 1.5rem;
    }
}

.step-sep {
    flex: 0 0 auto;
    width: auto;
    padding-left: .25rem;
    padding-right: .25rem;
}

/* 矢印の見た目 */
.step-sep i {
    font-size: 1.2rem;
    color: #00167A;
    line-height: 1;
    display: inline-block;
    padding: 0.125rem;
    transform: rotate(90deg);
}

/* PC */
@media (min-width: 768px) {
    .step-sep i {
        transform: rotate(0deg);
    }
}

/* home画面 */
.home-nav-bar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding-left: 2px;
}

.home-room-link {
    padding: 0;
    color: rgb(33, 37, 41);
    text-decoration: none;
}

.home-room-img {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.home-room-img .room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-room-img .notice-number {
    position: absolute;
    top: 5px;
    right: 5px;
    min-width: 30px;
    min-height: 30px;
    text-align: center;
    border-radius: 50%;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 5px;
}

.home-room-img .notice-live {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 50px;
    height: 20px;
    background-color: red;
    color: white;
    font-size: 0.8rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.home-room-img .icon-img {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

/* PC */
@media (min-width: 768px) {
    .home-room-img .icon-img {
        width: 48px;
        height: 48px;
    }
}

.container h1 {
    font-size: 1.2rem;
    color: white;
    border-radius: 5px;
    padding-left: 5px;
}

/* 画面共通 */

.main-common-container {
    max-width: 500px;
    margin: 30px auto;
    padding: 0 20px;
}

.error-common-container {
    max-width: 800px;
    margin: 30px auto;
    padding: 0 20px;
}

.common-container {
    position: relative;
    border-width: 1px;
    border-style: solid;
    border-top-style: none;
    border-bottom-style: none;
    height: 100%;
    width: 100svw;
    max-width: 800px;
    display: flex;
    flex-direction: column;
}


.common-content-container {
    padding: 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.common-info-content-container {
    padding: 0 20px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.common-select-box {
    width: auto;
}

.common-content {
    margin-top: 10px;
    margin-bottom: 10px;
    width: 100%;
    position: relative;
}

.common-edit-content {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.common-content2 {
    margin-top: 10px;
    width: 100%;
    position: relative;
}

/* 編集画面共通 */

.edit-common-header {
    position: relative;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #6c757d;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);

}

.edit-common-header-title {
    white-space: nowrap;
    font-size: 1.2rem;
    color: rgb(33, 37, 41);
}

.edit-common-header-button {
    display: block;
    position: relative;
    text-decoration-line: none;
    font-size: 1rem;
    text-align: center;
    border-radius: 50px;
    margin-left: 20px;
    margin-right: 20px;
}

.edit-common-main {
    padding: 20px;
}


.edit-common-notice-label {
    width: 100%;
    margin-top: 10px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* ルーム情報 */

.room-info-img-area {
    position: relative;
    width: 100%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.room-info-img-area .room-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-info-img-link-area {
    position: absolute;
    left: 2%;
    bottom: 2%;
    width: 20%;
    max-width: 140px;
    aspect-ratio: 1 / 1;
}

.room-info-img-link-area .icon-img {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

.room-header-author {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto; /* ★ 真ん中カラムとして残り幅ぜんぶ担当 */
    min-width: 0; /* ★ これがないと省略が効かないことが多い */
}

.room-header-author-icon {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* PC */
@media (min-width: 768px) {
    .room-header-author-icon {
        flex: 0 0 36px;
        width: 36px;
        height: 36px;
    }
}

.room-header-author-name {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
    font-weight: 500;
}

/* 右側のシェアアイコン群 */
.room-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto; /* ★ 幅を固定（縮まない） */
}

.room-header-actions a {
    white-space: nowrap;
    font-size: 0.9rem;
}

.room-header-meta {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
}

/* ルーム情報 */

.room-info-label {
    width: 200px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.room-info-label-sub {
    white-space: nowrap;
    width: auto;
    padding-left: 0;
}

/* PC */
@media (min-width: 768px) {
    .room-info-label-sub {
        width: 200px;
        padding-left: 20px;
    }
}

.room-info-label3 {
    margin-top: 40px;
    width: 100%;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ルーム情報 テキスト */
.room-info-desc {
    margin-top: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    word-wrap: break-word;
}


.room-info-text {
    width: 100%;
    min-width: 0;
    font-size: 0.9rem;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    word-wrap: break-word;
}

.room-stat-count {
    font-size: 0.9rem;
}

.room-stat-label {
    font-size: 0.9rem;
    font-weight: 500;
}

.room-info-box {
    padding: 10px 0;
}

.room-info-datetime-reset {
    position: absolute;
    right: 0;
    top: 0;
}

/* PC */
@media (min-width: 768px) {
    .room-info-datetime-reset {
        position: relative;
        padding: 0;
        margin-left: 5px;
    }
}

.room-edit-img-area {
    position: relative;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    background-color: #000;
}

.card-container {
    position: relative;
    padding-bottom: 20px;
}

.card-content {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.card-thumb {
    position: relative;
}

.card-thumb .overlay-text {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 1.4rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

.room-edit-nft-delete-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: auto;
    height: auto;
    left: auto;
    bottom: auto;
    padding: 0;
}

.room-edit-deleteIconImg {
    position: absolute;
    top: 2%;
    right: 2%;
    object-fit: cover;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.25rem;
}

.card-title-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
    word-wrap: break-word;
}

.card-desc-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-desc-toggle {
    font-size: 0.8rem;
    white-space: nowrap;
}

.card-desc-toggle::before {
    content: '…';
}

.card-meta-status {
    margin-top: 2px;
    font-size: 0.8rem;
    color: #666;
}

.card-user-link {
    margin-bottom: 5px;
    max-width: 100%;
}

.card-user-block {
    min-height: 40px;
    max-width: 100%;
}

.card-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.card-user-text {
    flex: 1 1 auto;
    min-width: 0;
}

.card-user-label {
    font-size: 0.75rem;
    color: #888;
    line-height: 1.1;
}

.card-user-name {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.card-user-badge-empty {
    background: #f7f7f7;
    color: #888;
    border: 1px solid #eee;
    font-weight: 500;
    border-radius: 9999px;
    padding: 2px 8px;
    font-size: 0.75rem;
}

.card-footer {
    border-top: none;
    background: transparent;
}

.card-like-btn {
    background-color: #ffffff;
    width: 100%;
    font-size: 0.8rem;
}

.card-like-btn:hover {
    background-color: #f3f3f3;
}

.card-like-btn:active {
    background-color: #eaeaea;
}

.card-heart-liked {
    color: #e79cae;
}

.card-footer-link {
    margin-top: auto;
}

.card-footer-actions {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-size: 0.9rem;
    line-height: 1;
}

/* NFT編集 */
.nft-edit-label {
    width: 200px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

/* ユーザー情報 */
.user-info-img-area {
    position: relative;
    margin-bottom: 60px;
    width: 100%;
    max-width: 1200px;
    aspect-ratio: 3 / 1;
}

@media (min-width: 768px) {
    .user-info-img-area {
        margin-bottom: 80px;
    }
}

.user-info-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-info-icon-img {
    position: absolute;
    left: 20px;
    bottom: -42px;
    width: 84px;
    height: 84px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
}

@media (min-width: 768px) {
    .user-info-icon-img {
        bottom: -60px;
        width: 120px;
        height: 120px;
    }
}

.user-info-actions {
    position: absolute;
    right: 25px;
    bottom: -42px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
}

@media (min-width: 768px) {
    .user-info-actions {
        bottom: -60px;
    }
}

.user-info-actions a {
    white-space: nowrap;
}

.user-info-main {
    width: 100%;
    margin-bottom: 30px;
}

.user-info-display-name {
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1.3;
}

/* PC */
@media (min-width: 768px) {
    .user-info-display-name {
        font-size: 1.45rem;
    }
}

.user-info-profile {
    margin-top: 4px;
    font-size: 0.95rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.user-info-label {
    width: 15%;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-info-room-info {
    margin: 10px 10px 0 10px;
    padding: 10px;
    position: relative;
}

.user-info-room-info .room-img {
    width: 100%;
    height: 100%;
}

.user-info-room-info-link {
    text-align: center;
    padding: 0;
    margin: 0;
    color: rgb(33, 37, 41);
    text-decoration: none;
}

.user-info-room-info img {
    max-width: 100%;
}

.user-info-room-info p {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10px;
    margin-bottom: 0;
    white-space: nowrap;
}

/* ユーザー編集 */

.common-edit-message {
    margin: 10px 5px;
}

.user-edit-banner-area {
    position: relative;
    margin: 0 auto 80px;
    width: 100%;
    max-width: 800px;
    aspect-ratio: 3 / 1;
    background-color: #000;
}

.common-edit-banner-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    cursor: pointer;
}

.common-edit-banner-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;

    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}

.common-edit-banner-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    z-index: -1;
}

.common-edit-banner-container:hover .common-edit-banner-img {
    filter: brightness(0.6);
}

.common-edit-banner-container:hover .common-edit-banner-icon::after {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

.common-edit-banner-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-edit-icon-container {
    position: absolute;
    left: 20px;
    bottom: -42px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    cursor: pointer;
}

/* PC */
@media (min-width: 768px) {
    .user-edit-icon-container {
        bottom: -60px;
        width: 120px;
        height: 120px;
    }
}

.user-edit-icon-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;

    color: #fff;
    font-size: 1.3rem;
    line-height: 1;
}

.user-edit-icon-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .35);
    z-index: -1;
}

.user-edit-icon-container:hover .user-edit-icon-img {
    filter: brightness(0.6);
}

.user-edit-icon-container:hover .user-edit-icon-icon::after {
    background: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.05);
}

.user-edit-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-edit-contents {
    margin-top: 20px;
    margin-bottom: 20px;
    width: 100%;
    position: relative;
}

.user-edit-label {
    width: 200px;
    white-space: nowrap;
    font-size: 0.9rem;
    font-weight: 500;
}

.user-edit-input-frame {
    width: 100%;
    margin: 0;
    padding: 0;
}

.user-edit-email-notification-button {
    width: 100%;
    height: 30px;
    margin: 0;
}

/* チャットルーム */
.chat-list-link {
    padding: 0;
    color: rgb(33, 37, 41);
    text-decoration: none;
    width: 100%;
}

.chat-list-link-selected {
    padding: 0;
    color: rgb(33, 37, 41);
    text-decoration: none;
    width: 100%;
    border: 1px solid rgb(78, 152, 225);
    background-color: #edf7ff;
}

.chat-list-icon-img {
    margin-left: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-list-name {
    width: 100%;
    margin: 10px 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    font-size: 0.9rem;
}

.chat-list-notice-number {
    position: absolute;
    right: 10px;
    text-align: center;
    border-radius: 20px;
    min-height: 20px;
    min-width: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    margin: 10px 5px;
    color: white;
    z-index: 998; /* メッセージ件数通知はLIVE通知の背面にする */
}

.chat-list-notice-live {
    position: absolute;
    right: 10px;
    text-align: center;
    border-radius: 20%;
    min-width: 20px;
    padding: 0 6px;
    box-sizing: border-box;
    background: red;
    margin: 10px 5px;
    color: white;
    z-index: 999;
}

.mainContentChat {
    width: 100%;
    height: calc(100svh - 40px);
}

.mainContentChatWrapper {
    width: 100%;
    height: 100%;
    position: relative;
    background: #7494c0;
    display: flex;
    flex-direction: column;
}

/* PC */
@media (min-width: 768px) {
    .mainContentChat {
        height: calc(100svh - 56px);
    }

    .mainContentChatWrapper {
        width: 55%;
    }
}

.chat-area-icon-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.chat-message {
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    display: block;
    text-align: left;
}

.chat-message.is-deleted {
    font-style: italic;
}

.chatContainer {
    padding: 0;
    margin: 0;
    font-size: 0.8rem;
    width: 100%;
    overflow-y: scroll;
    flex: 1 1 auto;
    min-height: 0;
}

.chatContents {
    padding: 10px;
    overflow-y: hidden;
    line-height: 135%;
}

.chat-unread-label {
    width: 100%;
    position: relative;
    display: block;
    color: white;
    margin: 5px;
}

.chat-app-user-label {
    width: 100%;
    position: relative;
    display: block;
    color: white;
    white-space: nowrap;
}

.chat-date-label {
    width: 100%;
    position: relative;
    display: block;
    color: white;
    margin: 5px;
}

.chat-out-of-validity {
    width: 100%;
    position: relative;
    display: block;
    margin-bottom: 10px;
    border-radius: 20px;
    color: white;
    background-color: darkred;
    padding-left: 20px;
    padding-right: 20px;
    text-align: center;
}

.chat-nickname-area {
    min-width: 0;
    white-space: nowrap;
}

.chat-nickname-link {
    min-width: 0;
    color: white;
    text-decoration: underline;
}

.chat-nickname-link :visited,
.chat-nickname-link :hover,
.chat-nickname-link :active {
    color: inherit;
    text-decoration: none;
}

.chat-nickname {
    font-size: 0.7rem;
    margin-bottom: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: white;
}

.chat-deleted {
    font-size: 0.7rem;
    margin-bottom: 0;
    color: white;
}

.chat-left {
    width: 100%;
    position: relative;
    display: block;
    margin-bottom: 10px;
    max-width: 90%;
    clear: both;
}

.chat-left-icon {
    position: absolute;
    margin-top: 10px;
    top: 0;
}

.chat-left .chat-left-text {
    margin-left: 60px;
}

.chat-left .text {
    margin: 0;
    display: inline-block;
    position: relative;
    padding: 10px;
    border-radius: 20px;
    background-color: #ffffff;
}

.chat-left .images {
    display: inline-block;
    position: relative;
    background: transparent;
    padding: 0;
}

.chat-left .time {
    font-size: 0.7rem;
    color: #ffffff;
    margin-left: 5px;
}

.chat-left .text::after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    left: -10px;
    top: 10px;
    border-right: 20px solid #ffffff;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* チャット自分の会話 */

.chat-right {
    position: relative;
    display: block;
    max-width: 90%;
    margin-bottom: 10px;
    float: right;
    clear: both;
}

.chat-right .chat-right-text {
    margin-right: 10px;
}

.chat-right .text {
    display: inline-block;
    padding: 10px;
    position: relative;
    border-radius: 20px;
    background-color: #8de055;
}

.chat-right .images {
    display: inline-block;
    position: relative;
    background: transparent;
    padding: 0;
}

.chat-right .time {
    font-size: 0.7rem;
    color: #ffffff;
    margin-right: 5px;
}

.chat-right .text::after {
    content: '';
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    right: -10px;
    top: 10px;
    border-left: 20px solid #8de055;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
}

/* チャットルームルーム説明 */
.mainContentOverview {
    display: block;
    background: whitesmoke;
    overflow-y: scroll;
    padding: 20px;
    height: 100%;
    position: absolute;
    width: 100%;
    z-index: -1;
}

/* PC */
@media (min-width: 768px) {
    .mainContentOverview {
        position: relative;
        width: 25%;
        z-index: 0;
    }
}

.mainContentOverview.is_front {
    z-index: 10;
}

.chat-header {
    width: 100%;
    padding: 5px;
    height: 48px;
    border-bottom-width: 1px;
    border-bottom-style: solid;
}

/* PC */
@media (min-width: 768px) {
    .chat-header {
        height: 56px;
    }
}


.chat-header-left {
    width: 100%;
    height: 100%;
    margin: 5px 0 5px 10px;
    flex: 1 1 auto;
    min-width: 0;
}

.chat-header-left-link {
    width: 33px;
    height: auto;
}

.chat-header-icon-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

/* PC */
@media (min-width: 768px) {
    .chat-header-left-link {
        width: 41px;
    }

    .chat-header-icon-img {
        width: 36px;
        height: 36px;
    }
}

.chat-header-left-text {
    display: block;
    margin: 0 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.chat-header-right {
    margin: 5px 10px 5px 0;
    height: 100%;
    flex: 0 0 auto;
}


.chat-header-right-room-info {
    position: relative;
    padding: 0;
    border-style: none;
    display: block;
}

/* PC */
@media (min-width: 768px) {
    .chat-header-right-room-info {
        display: none;
    }
}

.chat-room-info img {
    max-width: 100%;
}

.fab-menu {
    position: absolute;
    left: 0;
    bottom: 52px;
    background: #fff;
    backdrop-filter: blur(6px);
    border-radius: 14px;
    padding: 6px;
    min-width: 180px;
    animation: fadeUp .12s ease-out;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08);
}

.fab-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 0;
    background: transparent;
    color: rgb(33, 37, 41);
    border-radius: 10px;
}

.fab-item i {
    width: 18px;
    text-align: center;
}

.fab-item:hover, .fab-item:focus {
    background: rgba(255, 255, 255, .06);
    outline: none;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ピル全体*/
.chat-pill {
    display: flex;
    gap: 10px;
    position: relative;
    margin: 5px;
    background: #fff;
    border: 1px solid #ddd;

    --btn: 40px;
    --gap: 10px;
    --pad-x: 12px;
    --pad-y: 8px;

    border-radius: 28px;
    padding: var(--pad-y) calc(var(--btn) + var(--gap) + var(--pad-x));
}

.pill-btn,
.pill-send {
    position: absolute;
    bottom: var(--pad-y);
    transform: none;
    top: auto;
    width: var(--btn);
    height: var(--btn);
    border: 0;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.pill-btn {
    left: var(--pad-x);
    background: transparent;
}

.pill-send {
    right: var(--pad-x);
}

.pill-text {
    flex: 1 1 auto;
    min-width: 0;
}

.pill-text textarea#chat-text {
    width: 100%;
    height: auto;
    padding: 8px 0;
    border: 0;
    outline: 0;
    background: transparent;
    resize: none;
    overflow-y: auto;
}

.image-preview {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    padding: 8px 0;
}

.image-thumb {
    position: relative;
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
}

.image-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #0008;
    color: #fff;
    border: none;
    border-radius: 12px;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.chat-images {
    display: inline-grid;
    gap: 6px;
    flex-wrap: wrap;
    max-width: min(100%, 480px);
}

.chat-img-item {
    flex: 0 0 160px;
    width: 160px;
    height: 160px;
    border-radius: 10px;
    overflow: hidden;
}

.chat-img-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rx-pop {
    touch-action: manipulation; /* タップ遅延だけ抑える */
    cursor: pointer;
}

/* 本文は常に選択可（強制） */
.rx-pop .chat-message {
    -webkit-user-select: text !important;
    user-select: text !important;
}

.rx-popover {
    position: fixed;
    z-index: 10;
}

.rx-popover-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12), 0 2px 6px rgba(0, 0, 0, .08);
    transform: translateZ(0);
}

.rx-emoji {
    position: relative;
}

.rx-emoji.is-mine::after {
    content: '✕';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 16px;
    height: 16px;
    font-size: 0.8rem;
    line-height: 16px;
    text-align: center;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    pointer-events: none;
}

.rx-emoji.is-mine {
    background: rgba(255, 255, 255, .95);
}

.rx-emoji.is-mine::before {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    pointer-events: none;
}

.rx-emoji.is-mine::after {
    content: "";
    position: absolute;
    top: -3px;
    right: -3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    pointer-events: none;
    background: linear-gradient(#666, #666) center/9px 2px no-repeat;
    opacity: .9;
}

.rx-emoji, .rx-action {
    width: 32px;
    height: 32px;
    border: 0;
    outline: 0;
    background: transparent;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.rx-emoji:hover, .rx-action:hover {
    background: rgba(0, 0, 0, .06);
}

.rx-divider {
    width: 1px;
    height: 24px;
    background: rgba(0, 0, 0, .08);
    margin: 0 2px;
}

.rx-hidden {
    display: none !important;
}

/* タッチ端末での誤タップ対策（ターゲット拡大） */
@media (hover: none) {
    .rx-emoji, .rx-action {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}

.reactions {
    display: flex;
    flex-direction: row;
}

.reactions.rx-right {
    right: -6px;
}

.reactions.rx-left {
    left: -6px;
}

.rx-view {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 25px;
}

.rx-view-emoji {
    font-size: 0.8rem;
}

.rx-view-count {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 0 2px;
    color: #fff;
    font-size: 0.5rem;
    line-height: 12px;
    text-align: center;
    font-weight: bold;
}

/* チャットルームハンバーガーメニュー */

.sideContent-hamburger_bar {
    display: block;
    width: 80%;
    height: 2px;
    position: absolute;
    left: 0;
    background: #000;
    transition: top 0.24s, transform 0.24s, opacity 0.24s;
}

.sideContent-hamburger_bar:nth-child(1) {
    top: 0;
}

.sideContent-hamburger_bar:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.sideContent-hamburger_bar:nth-child(3) {
    top: 100%;
    transform: translateY(-100%);
}

.sideContent-hamburger_bar.is_active:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(135deg);
}

.sideContent-hamburger_bar.is_active:nth-child(2) {
    transform: translate(50%, -50%);
    opacity: 0;
}

.sideContent-hamburger_bar.is_active:nth-child(3) {
    top: 50%;
    transform: translateY(-50%) rotate(-135deg);
}

.chat-main {
    position: relative;
    width: 100%;
    height: 100%;
}

.roomListContainer {
    width: 100%;
    height: 100%;
    border-right-width: 1px;
    border-right-style: solid;
    background: whitesmoke;
    overflow-y: scroll;
    display: none;
    z-index: 100;
    position: absolute;
}

/* PC */
@media (min-width: 768px) {
    .roomListContainer {
        width: 20%;
        display: block;
        z-index: 0;
        position: relative;
    }
}

.roomListContainer.is_active {
    display: block !important;
}

.sideContent-hamburger {
    position: relative;
    height: 16px;
    width: 25px;
    border-style: none;
    display: block;
}

/* PC */
@media (min-width: 768px) {
    .sideContent-hamburger {
        display: none;
    }
}

.liveMainContents {
    flex-direction: column;
    overflow: visible;
    width: 100%;
    height: 100svh;
    justify-content: space-between;
}

/* PC */
@media (min-width: 768px) {
    .liveMainContents {
        flex-direction: row;
    }
}

.livePlayerArea {
    width: 100%;
    height: auto;
}

.liveHeader {
    width: 100%;
    height: 50px;
}

.liveInfoArea {
    width: 100%;
}

.videoContainer {
    height: auto;
}

/* PC */
@media (min-width: 768px) {
    .videoContainer {
        height: 50%;
    }
}

.videoArea {
    width: 100%;
    height: 100%;
    padding: 5px;
}

.playerContainer {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
}

.playerWrapper {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #000;
    position: relative;
}

.playerWrapper > video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.liveCommentsComponent {
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    height: auto;
    border-left: none;
    flex-grow: 1;
}

/* PC */
@media (min-width: 768px) {
    .liveCommentsComponent {
        width: 30%;
        height: 100%;
        border-left: 1px solid;
        border-top: none;
        flex-grow: 0;
    }
}

.liveCommentsComponent-commentArea {
    overflow-y: scroll;
    overflow-x: hidden;
    width: 100%;
    height: 100%;
}

.liveCommentsComponent-textArea {
    flex-shrink: 0;
    flex-direction: row;
    align-items: flex-end;
}

.liveComment {
    margin: 10px;
    width: 100%;
}

.liveCommentImageArea {
    width: 40px;
}

.liveCommentImage {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
}

.liveCommentContentArea {
    width: 80%;
    overflow-wrap: break-word;
}

.liveCommentContent {
    white-space: normal;
    word-break: break-word;
    overflow-wrap: break-word;
    display: block;
    max-width: 100%;
}

/* イメージモーダル */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.image-modal-content {
    text-align: center;
    background-color: white;
}

.crop-image {
    max-width: 85svw;
    max-height: 85svh;
}
