/* ============================================================
   CSS変数
   ============================================================ */
:root {
  --primary:       #ea580c;
  --primary-hover: #c2410c;
  --primary-light: #fb923c;
  --primary-bg:    #fff7ed;
  --bg-page:       #f8f9fa;
  --bg-chat:       #f1f3f4;
  --white:         #ffffff;
  --text-main:     #111827;
  --text-muted:    #6b7280;
  --text-light:    #9ca3af;
  --border:        #e5e7eb;
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:     0 4px 20px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.05);
  --shadow-lg:     0 12px 48px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06);
  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
}

/* ============================================================
   リセット
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', 'Meiryo', 'Hiragino Sans', sans-serif;
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* ============================================================
   ログイン画面
   ============================================================ */
.login-page {
  display: flex;
  min-height: 100vh;
}

/* 左パネル（オレンジ） */
.login-panel-left {
  flex: 0 0 42%;
  background: url('jihatsu_login_pic.jpg') center/cover no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

/* 装飾円 */
.login-panel-left::before {
  content: '';
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  top: -80px;
  right: -80px;
}
.login-panel-left::after {
  content: '';
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  bottom: -60px;
  left: -40px;
}

.login-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  padding: 32px;
  margin-top: 28%;
}

.login-brand h1 {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}

.login-brand p {
  font-size: 18px;
  font-weight: 400;
  opacity: 0.95;
  line-height: 1.8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* 右パネル（フォーム） */
.login-panel-right {
  flex: 1;
  background: var(--bg-page);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px 40px;
  width: 100%;
  max-width: 400px;
}

.login-logo {
  display: block;
  max-width: 180px;
  height: auto;
  margin: 0 auto 20px;
}

.login-card-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 6px;
}

.login-card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 15px;
  font-family: inherit;
  color: var(--text-main);
  background: var(--white);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.btn-primary {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234,88,12,0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #fdba74;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.reset-link {
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
}

.reset-link a {
  color: var(--primary-light);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.reset-link a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.error-msg {
  color: #dc2626;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  min-height: 20px;
}

/* モバイル：左パネルを非表示 */
@media (max-width: 768px) {
  .login-panel-left {
    display: none;
  }
  .login-panel-right {
    background: var(--primary);
  }
  .login-card {
    box-shadow: var(--shadow-lg);
  }
}


/* ============================================================
   パスワード変更モーダル
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.45);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.modal {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  width: 100%;
  max-width: 440px;
  margin: 20px;
  box-shadow: var(--shadow-lg);
}

.modal h2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.modal > p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}


/* ============================================================
   チャット画面 — 全体レイアウト
   ============================================================ */
.chat-wrapper {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  background: var(--white);
}

/* ============================================================
   ヘッダー
   ============================================================ */
.chat-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  z-index: 10;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.header-brand h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.01em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-email {
  font-size: 12px;
  color: var(--text-muted);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-header {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-header:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
  transform: translateY(-1px);
}

.btn-logout {
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #dc2626;
  transform: translateY(-1px);
}


/* ============================================================
   メッセージエリア
   ============================================================ */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: var(--bg-chat);
}

.message {
  display: flex;
  gap: 10px;
  max-width: 80%;
}

.message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--primary-bg);
}

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

.message.user .message-avatar {
  background: var(--primary-bg);
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-main);
  white-space: pre-wrap;
  word-break: break-word;
  max-width: 100%;
}

/* AIバブル */
.message.ai .message-bubble {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  border-top-left-radius: 4px;
}

/* ユーザーバブル */
.message.user .message-bubble {
  background: var(--primary);
  color: var(--white);
  border-top-right-radius: 4px;
}

.typing-indicator .message-bubble {
  color: var(--text-light);
  font-style: italic;
  background: var(--white);
  border: 1px solid var(--border);
}


/* ============================================================
   入力エリア
   ============================================================ */
.chat-input-area {
  padding: 12px 20px 16px;
  background: var(--white);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.input-wrapper {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  transition: border-color 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.input-wrapper:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(234,88,12,0.15);
}

.input-wrapper textarea {
  width: 100%;
  padding: 12px 16px 8px;
  border: none;
  background: transparent;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  outline: none;
  max-height: 160px;
  line-height: 1.7;
  color: var(--text-main);
  display: block;
}

.input-wrapper textarea::placeholder {
  color: var(--text-light);
}

.input-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px 10px;
}

.input-hint {
  font-size: 11px;
  color: var(--text-light);
}

.btn-group {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-mic {
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 7px 11px;
  font-size: 16px;
  cursor: pointer;
  color: var(--text-muted);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn-mic:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-mic.recording {
  background: #fee2e2;
  border-color: #fca5a5;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.55; }
}

.btn-send {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 22px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  box-shadow: var(--shadow-sm);
  transition: background 0.2s, transform 0.15s, box-shadow 0.15s;
}

.btn-send:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(234,88,12,0.25);
}

.btn-send:active {
  transform: translateY(0);
}

.btn-send:disabled {
  background: #fdba74;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}


/* ============================================================
   コードブロック
   ============================================================ */
.code-block {
  background: #f9fafb;
  border: 1px solid var(--border);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  margin-top: 10px;
}

.code-block pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: 'Noto Sans JP', 'Meiryo', sans-serif;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-main);
}

.code-block-btns {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-copy {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--primary-light);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-copy:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}

.btn-excel {
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-excel:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}


/* ============================================================
   メニューに戻るボタン
   ============================================================ */
.btn-menu-back {
  background: none;
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.btn-menu-back:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
}


/* ============================================================
   会話内 選択ボタン（新規/更新など）
   ============================================================ */
.choice-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 4px 20px 12px 64px;
}

.btn-choice {
  padding: 9px 18px;
  background: var(--white);
  border: 1.5px solid var(--primary-light);
  color: var(--primary);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.1s;
}

.btn-choice:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-choice:active {
  transform: translateY(0);
}


/* ============================================================
   引き継ぎメモ アップロードUI
   ============================================================ */
.handoff-upload {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-handoff-file {
  padding: 8px 16px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-handoff-file:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-handoff-skip {
  padding: 8px 16px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.btn-handoff-skip:hover {
  background: var(--bg-page);
  border-color: #d1d5db;
}


/* ============================================================
   アカウントドロップダウン
   ============================================================ */
.account-menu-wrapper {
  position: relative;
}

.btn-account {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-page);
  border: 1.5px solid var(--border);
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  font-family: inherit;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  max-width: 280px;
  min-width: 0;
}

.btn-account:hover {
  background: var(--primary-bg);
  border-color: var(--primary-light);
  color: var(--primary);
}

.account-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  flex: 1 1 auto;
}

.account-plan-badge {
  flex-shrink: 0;
  background: var(--primary-bg);
  color: var(--primary);
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  border: 1px solid var(--primary-light);
  white-space: nowrap;
}

.account-caret {
  font-size: 10px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.account-menu-wrapper.open .account-caret {
  transform: rotate(180deg);
}

.account-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  z-index: 200;
  overflow: hidden;
}

.account-menu-wrapper.open .account-dropdown {
  display: block;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  box-sizing: border-box;
}

.dropdown-item:hover {
  background: var(--bg-page);
}

.dropdown-item--danger {
  color: #dc2626;
}

.dropdown-item--danger:hover {
  background: #fef2f2;
}

.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}


/* ============================================================
   ダウンロードボタン
   ============================================================ */
.btn-download {
  background: var(--primary);
  color: #fff;
  border: 1.5px solid var(--primary);
  border-radius: var(--radius-sm);
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-download:hover {
  background: var(--primary-bg);
  transform: translateY(-1px);
}


/* ============================================================
   メニュー画面
   ============================================================ */
body.menu-page {
  background: var(--bg-page);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.menu-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.menu-heading {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-main);
  text-align: center;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.menu-sub {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 40px;
}

.menu-cards {
  display: flex;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  justify-content: center;
}

.menu-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  flex: 1;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.menu-card.locked {
  opacity: 0.6;
}

.menu-card.locked:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f4f6;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.btn-card {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.btn-card:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-card:active:not(:disabled) {
  transform: translateY(0);
}

.btn-card:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  font-size: 13px;
}

.menu-footer {
  text-align: center;
  padding: 16px 24px 32px;
}

.menu-footer-text {
  font-size: 13px;
  color: var(--text-light);
}


/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 600px) {
  .chat-messages {
    padding: 16px 12px;
  }
  .message {
    max-width: 95%;
  }
  .account-email {
    display: none;
  }
  .btn-menu-back {
    font-size: 11px;
    padding: 5px 8px;
  }
  .chat-input-area {
    padding: 10px 12px 12px;
  }

  .menu-cards {
    flex-direction: column;
    align-items: center;
    max-width: 360px;
  }
  .menu-card {
    max-width: 100%;
    width: 100%;
  }
  .menu-heading {
    font-size: 22px;
  }
  .menu-main {
    padding: 32px 16px;
    justify-content: flex-start;
    padding-top: 48px;
  }
}
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

.menu-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.menu-card.locked {
  opacity: 0.6;
}

.menu-card.locked:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.card-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f3f4f6;
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-icon {
  font-size: 48px;
  margin-bottom: 16px;
  line-height: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex: 1;
}

.btn-card {
  width: 100%;
  padding: 12px 20px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.btn-card:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-card:active:not(:disabled) {
  transform: translateY(0);
}

.btn-card:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  font-size: 13px;
}

.menu-footer {
  text-align: center;
  padding: 16px 24px 32px;
}

.menu-footer-text {
  font-size: 13px;
  color: var(--text-light);
}


/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 600px) {
  .chat-messages {
    padding: 16px 12px;
  }
  .message {
    max-width: 95%;
  }
  .account-email {
    display: none;
  }
  .btn-menu-back {
    font-size: 11px;
    padding: 5px 8px;
  }
  .chat-input-area {
    padding: 10px 12px 12px;
  }

  .menu-cards {
    flex-direction: column;
    align-items: center;
    max-width: 360px;
  }
  .menu-card {
    max-width: 100%;
    width: 100%;
  }
  .menu-heading {
    font-size: 22px;
  }
  .menu-main {
    padding: 32px 16px;
    justify-content: flex-start;
    padding-top: 48px;
  }
}
