/* ============================================================
   共通リセット・設定
   ============================================================ */
html, body {
    margin: 0; padding: 0; scroll-behavior: smooth; background: #eee;
font-family: "Yu Gothic", "游ゴシック", YuGothic, sans-serif;
    overflow-x: hidden;
}
#login-form {
    scroll-margin-top: 65px;
}

.trial-bigbox {
    background-color: #ffffff;
    width: 100%; 
    padding: 35px 0; 
    box-sizing: border-box; 
    color: #333;
}
.trial-box {
  display: flex; /* 左右に並べる */
  background: white;
  padding: 20px 30px;
  border-radius: 20px;
  box-shadow: 0 5px 12px rgba(0,0,0,0.3);
  border: 1px solid #3498db;
  margin: 35px 15% 35px;
  align-items: center; /* 垂直方向の中央揃え */
}
.trial-text h2 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    color: #3498db;
}
.trial-text p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    font-weight: 800;
}

/* ※の箇条書きスタイル */
.trial-text ul {
    list-style: none; /* 点を消す */
    padding-left: 0;
    margin: 0;
    font-size: 0.8rem;
    font-weight: 700;
    color: #555;
    line-height: 1.1;
}
.trial-action {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-left: 30px;
    min-width: 220px;
}
#trial-room-name {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
}

#create-trial-btn {
    padding: 12px 20px;
    background-color: #3498db; /* 水色 */
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
}

#create-trial-btn:hover {
    background-color: #2980b9;
}

/* ============================================================
   ログインページ専用スタイル
   ============================================================ */
   

.catch-copy {
    background-color: #ffffff;
    display: inline-block;
    padding: 10px 15px;
    margin: 5px 0;
    color: #333;
    font-size: 1.5rem;
    font-weight: bold;
}
.hero-container {
    position: relative;
    width: 100%;
    height: 600px;
    background-image: url('img/bk6.jpg');
    background-size: auto 100%; 
    background-position: right; 
    background-repeat: no-repeat;
    background-color: #eee; 
    overflow: hidden;
}
.concept-sub {
    color: #e8455a;      /* ご提示のサイトのテーマカラー（赤） */
    font-size: 1.1rem;   /* h2より小さく、本文より少し大きいサイズ */
    margin: 10px 0 20px 0;
    line-height: 1.4;
}


.gray-side {
    position: absolute;
    top: 0;
    left: 0;
    width: 36%;
    height: 100%;
    background-color: #eee;
    z-index: 1;
}
.text-overlay {
    position: absolute;
    top: 85px;
    left: 7%;
    z-index: 2;
    width: 90%;
}
.white-box {
    display: block;
    background-color: #fff;
    color: #333;
    padding: 7px 15px;
    font-size: 38px;
    margin-bottom: 18px;
    font-weight: bold;
    width: fit-content;
    line-height: 1;
}
.login-container { display: flex; align-items: center; gap: 60px; max-width: 900px; width: 100%; }
.text-side {
    width: auto;
    max-width: 400px;
    background: rgba(238, 238, 238, 0.8);
    padding: 30px;
    z-index: 2;
}
h1.logo { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif; font-size: 4.2rem; font-weight: 900; letter-spacing: -0.08em; margin: -5px 0 30px 0; color: #000; white-space: nowrap; }
.catch-copy p { font-size: 1.7rem; font-weight: 700; margin: 0; line-height: 1.4; color: #444; }

/* ログインフォーム配置用 */
.login-form-box {
    margin-top: 30px;
    width: 300px;
}
.input-row {
    display: block;
    margin-bottom: 10px;
}
/* アカウント作成画面専用のスタイル */
.signup-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
    margin: 0 auto;
}

.signup-form-box {
    margin-top: 20px;
}

.signup-form-box .input-row input {
    width: 100% !important;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.signup-form-box .input-row button {
    width: 100% !important;
    padding: 12px;
    background-color: #e8455a;
    color: white;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
}

.signup-form-box .input-row button:hover {
    background-color: #d63346;
}

.signup-link a {
    color: #e8455a;
    text-decoration: none;
    font-weight: bold;
}
.input-row input, 
.input-row button {
    display: block;
    width: 300px;
    padding: 10px;
    box-sizing: border-box;
    margin-bottom: 15px;
}
.input-row input { border: 1px solid #ccc; border-radius: 5px; }
.input-row button { 
    background-color: #e8455a; margin: 0 auto; width: 200px; color: #fff; border: none; font-weight: bold; cursor: pointer; border-radius: 5px;
}

/* テキスト配置 */
.note, 
.signup-link {
    width: 300px;
    margin: 10px 0;
    text-align: center;
    font-size: 0.9rem;
}
.image-side { display: none; }

/* ============================================================
   チャット・その他ページ・コンポーネント
   ============================================================ */
.header {
    position: fixed; top: 0; left: 0; width: 100%; height: 62px; background: #fff;
    display: flex; justify-content: space-between; align-items: center; padding: 0 50px;
    box-sizing: border-box; box-shadow: 0 2px 5px rgba(0,0,0,0.1); z-index: 1000;
}
/* ヘッダーのボタンエリア */
.header-buttons {
    display: flex;
    gap: 15px;
}

/* リンクをボタン化 */
.header-buttons a {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    transition: background 0.3s;
}

/* ログインボタン（枠線タイプ） */
.btn-login {
    background-color: #e8455a;
    border: 1px solid #e8455a;
    color: #fff;
}

/* メンバー登録ボタン（塗りつぶしタイプ） */
.btn-signup {
    color: #333;
    border: 1px solid #333;
}

/* ホバー時の動き */
.btn-login:hover {
    background-color: #fff;
    color: #e8455a;
}
.btn-signup:hover {
    background-color: #555;
    color: #fff;
}
.header-logo { height: 40px; width: auto; }
.header-buttons { display: flex; gap: 15px; }
.main-content { padding-top: 40px; }

#app-wrapper { display: flex; height: 100%; width: 100%; position: relative; overflow: hidden; }
#preview-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 1000; justify-content: center; align-items: center; }
#preview-overlay img { max-width: 90%; max-height: 90%; border-radius: 5px; }
#side-menu { position: absolute; left: -250px; top: 0; width: 250px; height: 100%; background: #333; color: white; transition: 0.3s; z-index: 100; padding: 20px; box-sizing: border-box; }
#side-menu.open { left: 0; }
.menu-btn { display: block; padding: 12px; margin-bottom: 10px; border: 2px solid #fff; border-radius: 8px; text-align: center; cursor: pointer; color: #fff; font-weight: bold; }
.menu-btn:active { background: #555; }
#chat-container { width: 100%; max-width: 600px; height: 100vh; margin: 0 auto; background: #7493a7; display: flex; flex-direction: column; box-shadow: 0 0 20px rgba(0,0,0,0.1); position: relative; }
#chat-header { background: #ffffff; padding: 8px 15px; font-weight: bold; border-bottom: 1px solid #eee; text-align: center; display: flex; align-items: center; }
#hamburger { cursor: pointer; display: flex; flex-direction: column; justify-content: space-between; width: 25px; height: 18px; margin-right: 15px; }
#hamburger span { display: block; width: 100%; height: 3px; background-color: #333; border-radius: 2px; }
#messages { flex: 1; overflow-y: auto; padding: 15px; display: flex; flex-direction: column; gap: 14px; }
.message-row { display: flex; gap: 8px; max-width: 85%; align-items: flex-start; }
.message-content-area { display: flex; flex-direction: column; }
.meta { font-size: 0.7em; color: #333; margin-bottom: 2px; font-weight: bold; padding-left: 2px; }
.bubble { padding: 6px 10px; border-radius: 12px; font-size: 14px; word-break: break-all; background: #ffffff; cursor: pointer; }
.chat-img { max-width: 180px; border-radius: 10px; display: block; cursor: pointer; }
.message-row.me { align-self: flex-end; flex-direction: row-reverse; }
.message-row.me .avatar { display: none; }
.message-row.me .meta { text-align: right; }
.message-row.me .bubble { background: #85e28c; }
#input-container { display: flex; gap: 6px; padding: 10px; background: #ffffff; border-top: 1px solid #eee; align-items: center; }
#message-input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 6px; height: 20px; resize: none; }
.file-label { padding: 3px 4px; background: none; cursor: pointer; }
button#send-btn { padding: 8px 14px; background: #5ac466; color: white; border: none; border-radius: 6px; font-weight: bold; height: 34px; flex-shrink: 0; width: auto !important; }
.my-avatar-setting { width: 36px !important; height: 36px !important; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; font-weight: bold; background: #999; color: white; flex-shrink: 0; border: 1px solid rgba(0,0,0,0.1); }
.confirm-area { margin-top: 4px; padding: 4px 8px; font-weight: bold; cursor: pointer; text-decoration: underline; font-size: 0.7em; color: #fff; background: rgba(0,0,0,0.1); border-radius: 6px; max-width: 220px; white-space: nowrap; overflow-x: auto; }
.time { font-size: 0.65em; color: #ffffff; margin-top: 4px; padding-left: 4px; }
.message-row.me .time { text-align: right; padding-right: 4px; }
body.admin-body { display: flex; height: 100vh; margin: 0; background: #f4f4f9; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Hiragino Kaku Gothic Pro", Meiryo, sans-serif; }
#name-display-area { font-size: 0.75rem; background: #ffffff; border-top: 1px solid #eee; padding: 2px 10px; color: #666; font-weight: bold; }
#room-list-area { width: 40%; max-width: 300px; background: #333; color: white; padding: 20px; height: 100vh; display: flex; flex-direction: column; box-sizing: border-box; }
#rooms { flex: 1; overflow-y: auto; }
.room-item { display: flex; justify-content: space-between; align-items: center; padding: 10px; margin-bottom: 10px; border: 1px solid #555; border-radius: 6px; background: #444; }
#create-area { flex: 1; padding: 40px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.page-body {
min-height: 100vh;
    padding: 40px 20px;
    background-color: #f4f4f9;
    margin: 0;
}
.invite-container { background: white; padding: 40px; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); text-align: center; width: 300px; }
.container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    text-align: center;
    width: 350px;
}
.terms-container {
    width: 80%;
    max-width: 800px;
    margin: 40px auto; /* 上下に余白を作って中央に配置 */
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.container h1 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.member-item { display: flex; align-items: center; gap: 15px; padding: 10px; border-bottom: 1px solid #eee; }
.members-list-container { margin: 0 auto; display: flex; flex-direction: column; align-items: center; padding: 20px; }
#member-list { margin: 0 auto; width: 98%; max-width: 500px; display: flex; flex-direction: column; gap: 10px; }
.member-manage-btn { width: 100%; background-color: white; color: black; border: none; padding: 10px; margin-bottom: 20px; border-radius: 5px; font-weight: bold; cursor: pointer; transition: background 0.3s; }
.member-manage-btn:hover { background-color: #eee; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background-color: #ddd; display: flex; justify-content: center; align-items: center; overflow: hidden; }
.btn-group { margin-left: auto; display: flex; gap: 5px; }

/* ============================================================
   説明・その他セクション
   ============================================================ */
.info-section { max-width: 1100px; margin: 60px auto; padding: 0 20px; text-align: left; line-height: 1.6; }
.info-section h2 { font-size: 1.5rem; margin-bottom: 20px; padding-bottom: 5px; }
.grid-wrapper { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }
.info-card { flex: 1; min-width: 250px; background: #f9f9f9; padding: 15px; border-radius: 8px; border: 1px solid #ddd; }
.section-title { text-align: center; margin: 0 0 30px 0; font-size: 1.8rem; }
.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4列 */
    gap: 20px;
    width: 100%;
    box-sizing: border-box; /* 重要：パディングを含めて幅を計算させる */
}

.scene-item {
    background: #eee;
    padding: 8px;
    border-radius: 5px;
    text-align: center; /* 文字を中央寄せに */
    border: 1px solid #ddd;
}

.scene-item p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-top: 10px;
    text-align: left;
}
.usage-wrapper {
    display: flex;
    align-items: flex-start; /* 上揃え */
    justify-content: center;
    gap: 35px;               /* 矢印分を含めた間隔 */
    margin-top: 30px;
    width: 1100px !important;            /* 指定した幅 */
    margin-left: auto;
    margin-right: auto;
}
.usage-step {
    width: 250px;            /* 画像と同じ幅に合わせる */
    text-align: left;
}

/* 矢印の調整 */
.arrow {
    font-size: 2rem;       /* 少し控えめなサイズに調整 */
    color: #333;
    display: flex;
    align-items: center;     /* 画像の中央の高さに合わせる */
    padding-top: 110px;      /* 調整用：画像の上部とのバランス */
}
.concept-section { background-color: #ffffff; width: 100%; padding: 60px 20px; box-sizing: border-box; margin: 40px 0; }
.concept-inner { max-width: 800px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.full-width-white { background-color: #ffffff; width: 100%; padding: 50px 20px; box-sizing: border-box; }
.concept-inner-flex { max-width: 800px; margin: 0 auto; display: flex; align-items: center; gap: 40px; }
.inner-800 { max-width: 1100px; margin: 0 auto; width: 100%; }
.inner-800:first-child { display: flex; align-items: center; gap: 40px; }
.concept-text { flex: 1; }
.concept-text p { flex: 1; line-height: 1.9; font-size: 1em; }
.concept-text h2 { padding-bottom: 10px; font-size: 1.7em; }
.concept-image {
    width: 333px;
    height: 550px; /* ここを具体的な数値（px）にする */
    background-image: url('img/34252512_ps.png');
    background-size: contain; /* 画像全体を表示するためにcoverから変更 */
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 8px;
    flex-shrink: 0;
}
.usage-image {
    width: 250px;      /* 横幅を250pxに指定 */
    height: auto;      /* 高さは比率を維持して自動計算 */
    display: block;
    margin: 0 auto 10px auto; /* 中央寄せと下の余白 */
    border-radius: 8px;
    border: 1px solid #ddd;   /* 必要であれば枠線 */
}
.detail-btn { display: block !important; margin: 30px auto !important; width: fit-content !important; padding: 15px 40px !important; background-color: #333 !important; color: #fff !important; text-decoration: none !important; text-align: center !important; border-radius: 25px !important; font-weight: bold !important; }
.detail-btn:hover { background-color: #555; }
.usage-step-list { display: flex; flex-direction: column; gap: 40px; margin-top: 30px; }
.step-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

/* 文字エリアと画像エリアの調整 */
.step-item {
    display: flex;
    /* align-items: center;  ← これを削除またはコメントアウト */
    align-items: flex-start;  /* ← これを新しく指定（これで上揃えになります） */
    justify-content: space-between;
    gap: 40px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.other-features { background: #f0f7fb; margin-top: 60px; }
.other-features h2 { text-align: center; }
.usage-detail-page { background-color: #fff !important; }
.usage-content {
    max-width: 1100px;
margin: 60px auto 0 auto; /* 下の余白を0に */
    padding: 20px 20px 0 20px; /* 下のパディングを0に */
    background-color: #ffffff;
}
.usage-content h1 { text-align: center; font-size: 1.5rem; margin: 20px 0; }
.image-box {
    width: 650px;
    flex-shrink: 0;
    overflow: hidden; /* はみ出し防止 */
    border-radius: 8px;
    border: 1px solid #ddd;
}

.image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 画像が歪まないように全体をカバー */
}
.highlight { color: red; font-weight: bold; display: block; margin-top: 10px; }
.other-features-box { background-color: #eef7fd; padding: 30px; text-align: center; margin-bottom: 0 !important; }
.other-features-box h2 { font-size: 1.5rem; margin-top: 0; }
.other-features-box ul { display: inline-block; text-align: left; }
.message-row .avatar { width: 40px !important; height: 40px !important; min-width: 40px !important; border-radius: 50%; overflow: hidden; margin-right: 10px; display: flex; align-items: center; justify-content: center; background-color: #ddd; }
.message-row .avatar img { width: 100%; height: 100%; object-fit: cover; }
.alert-box { margin-top: 10px; padding: 12px; border: 1px solid #ccc; border-radius: 5px; background-color: #fff5f5; font-size: 0.72rem; color: #333; text-align: center; max-width: 70%; }
.alert-box a { color: #d32f2f; text-decoration: underline; }
.create-header { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; }
.header-img { width: 230px; height: auto; padding-left: 20px; }
.create-header h2 { font-size: 2.7em; margin: 0; }
.admin-body { display: flex; height: 100vh; background: #f4f4f9; margin: 0; }
#create-area label { margin-top: 5px; margin-bottom: 5px; }
#create-area button { margin-top: 30px; }
.form-group { display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 400px; }
.form-group label { font-size: 1.1rem; font-weight: bold; margin-bottom: 3px; align-self: flex-start; }
.form-group input { width: 90%; padding: 6px; font-size: 1rem; margin-bottom: 3px; border: 2px solid #ccc; border-radius: 5px; }
.form-group button { width: 70%; padding: 13px; font-size: 1rem; font-weight: bold; background-color: #f39c12; color: white; border: none; border-radius: 5px; cursor: pointer; }
.room-notice { font-size: 0.7rem; color: #ccc; line-height: 1.3; margin-top: 10px; padding-top: 10px; border-top: 1px solid #555; }

@media (max-width: 800px) {
    /* 1. ヘッダー調整 */
    .header { padding: 0 15px; }
    .header-buttons a { padding: 6px 12px; font-size: 0.8rem; }

    /* 2. 背景画像とログインエリア */
    .hero-container { height: auto; min-height: 600px; background-position: center; }
    .gray-side { display: none; } 
    .text-overlay { 
        position: relative; 
        top: 20px; 
        left: 0; 
        width: 100%; 
        padding: 0 5%; 
        box-sizing: border-box; 
    }
    /* 白帯を残す設定 */
    .white-box { 
        font-size: 1.6rem; 
        margin: 20px auto 0 auto; 
        text-align: center; 
        background: #fff; /* 白い背景 */
        padding: 5px 10px;
        width: fit-content;
    }
    
    /* 3. ログインフォームの白い枠 */
    .login-form-box {
        margin: 30px auto 10px;
        width: 90%;
        max-width: 320px;
        background: rgba(255, 255, 255, 0.9);
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }
    .concept-text p { flex: 1; line-height: 1.6; font-size: 1em; }
    
    /* 入力フォームのサイズ調整 */
    .text-side input, 
    .text-side button,
    .login-form-box input,
    .login-form-box button {
        width: 80% !important;
        margin: 0 auto 10px auto;
    }
    .note, .signup-link { width: 100% !important; margin: 10px auto; text-align: center; }

    /* 4. その他既存のスマホ設定 */
    .login-container { flex-direction: column; text-align: center; gap: 10px !important; }
    .text-side { text-align: center; }
    h1.logo { font-size: 2rem; margin: 0 0 15px 0; }
    .catch-copy p { font-size: 1.2rem; }
    .info-section { margin: 10px auto !important; padding: 10px 20px !important; }
.usage-wrapper {
        flex-direction: column; /* 横並びから縦並びに変更 */
        width: 90% !important;  /* 画面幅に合わせる */
        gap: 30px !important;   /* ステップ間の隙間 */
        margin: 20px auto !important;
    }

    /* 2. 画像のサイズをスマホで見やすい大きさに調整 */
    .usage-image {
        width: 100% !important; /* 親要素いっぱいに広げる */
        max-width: 300px;       /* ただし大きすぎないように制限 */
        margin: 0 auto 15px auto;
    }

    /* 3. 矢印を非表示にする */
    .arrow {
        display: none; 
    }

    /* 4. ステップ全体を整える */
    .usage-step {
        width: 100% !important;
        text-align: center;     /* 文字を中央寄せで読みやすく */
    }
    .full-width-white { padding: 20px !important; }
    .full-width-white .inner-800:first-child { flex-direction: column; }
.scene-grid {
        grid-template-columns: repeat(2, 1fr) !important; /* スマホは2列 */
    }
    .section-title { margin: 0 0 15px 0 !important; font-size: 1.5rem !important; }
    .detail-btn { width: 80%; padding: 15px 0; }
    .other-features ul { padding-left: 20px; }
    .create-header { flex-direction: column; gap: 10px; }
    .create-header h2 { font-size: 2rem; }
    .header-img { width: 120px; }
    .room-item { font-size: 0.8rem; flex-direction: column; align-items: stretch; gap: 10px; }
    .delete-btn { width: 100%; padding: 2px; }
    .room-notice { font-size: 0.59rem; line-height: 1.2; margin-top: 10px; padding-top: 7px; border-top: 1px solid #555; }
    .alert-box { margin-top: 5px; margin-bottom: 10px; padding: 12px; font-size: 0.72rem; max-width: 85%; }

.step-item {
        flex-direction: column;
        gap: 10px !important;    /* ← ここを小さく（例：10px）すると隙間が詰まります */
        padding: 10px 0 !important; /* ← 上下の余白も調整 */
    }
    .image-box {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        font-size: 0.8em;
    }
    .trial-box {
    flex-direction: column; /* 縦並びにする */
    margin: 20px 10px;      /* 左右の余白を詰める */
    padding: 15px;          /* 内側の余白を少し減らす */
    text-align: center;     /* 文字を中央寄せ */
  }
  
  .trial-text {
    margin-bottom: 20px;    /* 下に隙間を作る */
  }
  
  .trial-action {
    margin-left: 0;         /* 左側の余白を消す */
    width: 100%;            /* 横幅をいっぱいにする */
    min-width: auto;        /* 最小幅を解除 */
  }

}
