body {
    background: #f4f6fb;
    font-family: 'Segoe UI', 'Arial', sans-serif;
    color: #222;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

.container {
    max-width: 440px;
    margin: 60px auto;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30,30,50,0.08);
    padding: 2.2em 2em 2em 2em;
    border: 1px solid #e0e5ef;
}

h1, h2 {
    text-align: center;
    color: #1877f2;
    letter-spacing: 0.02em;
    font-weight: 600;
    margin-bottom: 1em;
}

form {
    margin-top: 1em;
}

form p {
    margin-bottom: 1.4em;
}

label {
    display: block;
    margin-bottom: 0.4em;
    font-size: 1em;
    font-weight: 500;
    color: #333;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    width: 100%;
    padding: .7em .8em;
    border: 1.5px solid #b0b7c3;
    border-radius: 8px;
    background: #f8fafc;
    color: #222;
    font-size: 1em;
    margin-bottom: 0.2em;
    box-shadow: 0 1px 6px rgba(30,30,30,0.04);
    transition: box-shadow .2s, border .2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
    box-shadow: 0 0 0 2px #1877f2;
    outline: none;
    border-color: #1877f2;
    background: #fff;
}

button[type="submit"], input[type="submit"] {
    background: linear-gradient(90deg, #1877f2 0%, #43bff0 100%);
    color: #fff;
    border: none;
    padding: .8em 0;
    border-radius: 8px;
    font-size: 1.08em;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 18px;
    box-shadow: 0 2px 8px rgba(30, 30, 60, 0.10);
    transition: background 0.15s, transform 0.13s;
}

.chat-box-scroll {
    width: 100%;
    max-width: 540px;
    height: 340px;           /* お好みで調整（px, em, vhなど） */
    overflow-y: auto;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.7em 0;
    margin-bottom: 1.3em;
    display: flex;
    flex-direction: column;
}

.chat-bubble {
    display: flex;
    flex-direction: column;
    max-width: 85%;
    margin-bottom: 12px;
    border-radius: 16px;
    padding: 12px 18px 10px 16px;
    font-size: 1.04em;
    background: #f5f7fa;
    color: #222;
    box-shadow: 0 2px 12px rgba(30,40,90,0.06);
    position: relative;
    word-break: break-word;
    margin-left: 0;
    align-self: flex-start;
}

.chat-bubble.me {
    background: linear-gradient(90deg, #43bff0 0%, #1877f2 100%);
    color: #fff;
    align-self: flex-end;
    margin-left: auto;
}

.chat-bubble.other {
    background: #eaf6ff;
    color: #222;
    align-self: flex-start;
    margin-right: auto;
}

.chat-meta {
    display: flex;
    align-items: center;
    font-size: 0.91em;
    opacity: 0.75;
    margin-bottom: 3px;
    gap: 10px;
}

.chat-bubble.me .chat-meta strong {
    color: #fff;
}

.chat-bubble.other .chat-meta strong {
    color: #1877f2;
}

.chat-content {
    font-size: 1em;
    line-height: 1.55;
    margin-left: 1px;
}

@media (max-width: 700px) {
    .chat-box-scroll {
        max-width: 100vw;
        height: 45vh;        /* スマホは画面の45%ぐらいなど */
    }
}

					       
/* ポップなタイトル */
.pop-title {
    font-size: 2.1em;
    font-weight: 700;
    color: #1a7cff;
    text-align: center;
    letter-spacing: 0.02em;
    margin-top: 0.7em;
    margin-bottom: 1.5em;
    text-shadow: 0 2px 10px #b5e5ff50;
}

/* ルームリスト全体 */
.room-list {
    list-style: none;
    padding: 0;
    margin: 2.2em auto 0 auto;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    gap: 1.1em;
}

/* ルーム1件ごとをカード風に */
.room-list li {
    background: #f3f8ff;
    border-radius: 12px;
    box-shadow: 0 2px 12px #79c4ff24;
    padding: 1.1em 1.5em 1.1em 1.2em;
    font-size: 1.17em;
    display: flex;
    align-items: center;
    gap: 1em;
    transition: background 0.13s, transform 0.12s, box-shadow 0.14s;
}

.room-list li:hover {
    background: #e4f1ff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 4px 24px #1a7cff33;
}

/* ルームリンクをカラフルに */
.room-list a {
    font-family: 'Segoe UI Rounded', 'Arial Rounded MT Bold', 'Arial', sans-serif;
    font-weight: 700;
    font-size: 1.13em;
    color: #1a7cff;
    text-decoration: none;
    background: linear-gradient(90deg, #6fd6ff 0%, #1a7cff 80%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.02em;
    border-radius: 6px;
    padding: 0.13em 0.4em;
    transition: background 0.18s, color 0.18s;
}

.room-list a:hover {
    background: none;
    color: #fff;
    background-color: #1a7cff;
    -webkit-text-fill-color: #fff;
    text-decoration: none;
    box-shadow: 0 2px 10px #9ddaff43;
}

.room-count {
    font-size: 0.97em;
    color: #6fa3d6;
    margin-left: 0.7em;
}

textarea[name="content"] {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 70px;
    border: 1.2px solid #b0b7c3;
    border-radius: 8px;
    padding: 0.7em;
    font-size: 1em;
    background: #f8fafc;
    color: #222;
    resize: vertical;
    box-shadow: 0 1px 5px rgba(120,130,160,0.05);
    margin-top: 4px;
    margin-bottom: 6px;
    transition: border 0.18s, box-shadow 0.18s;
    box-sizing: border-box;
}

.logout-container {
    max-width: 480px;
    margin: 50px auto 0 auto;
    padding: 2.5em 1.5em 2.2em 1.5em;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(30,30,50,0.10);
    border: 1px solid #e0e5ef;
    text-align: center;
}

.logout-header h1 {
    color: #1877f2;
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 1.5em;
    margin-top: 0.5em;
    letter-spacing: 0.02em;
}

.logout-body p {
    font-size: 1.15em;
    color: #222;
    margin-bottom: 1.7em;
}

.pop-link {
    color: #fff;
    font-weight: 600;
    background: linear-gradient(90deg, #43bff0 0%, #1877f2 100%);
    padding: 0.68em 1.4em;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.14s, box-shadow 0.13s;
    font-size: 1.04em;
    box-shadow: 0 2px 12px #1a7cff22;
    display: inline-block;
}

.pop-link:hover {
    background: linear-gradient(90deg, #1877f2 0%, #43bff0 100%);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 20px #1a7cff40;
}

