@charset "utf-8";
@import url(https://fonts.googleapis.com/earlyaccess/notosansjp.css);
@import url("https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200");
/* ============================ Base ============================ */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}
body {
  font-family: 'Noto Sans JP', "メイリオ", Meiryo, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "ＭＳ Ｐゴシック", sans-serif;
  font-weight: 400;
  font-size: var(--base-font-size);
  color: #494949;
  text-align: center;
}
.fs_12 { font-size: 1.2rem;}
.fs_11 { font-size: 1.1rem;}
.fs_10 { font-size: 1rem;}
.fs_09 { font-size: 0.9rem;}
.fs_08 { font-size: 0.8rem;}
.fs_07 { font-size: 0.7rem;}
.fs_06 { font-size: 0.6rem;}
.admin_header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  min-height: 64px;
  height: auto;
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
  position: sticky;
  top: 0;
  z-index: 1100;
  overflow: visible;
  box-sizing: border-box;
}
.admin-header-left {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  min-width: 0;
}
.admin-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.5rem;
  padding: 0.4rem 0.75rem;
  color: #1f2937;
  background: #eff6ff;
  border: 1px solid #93c5fd;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}
.admin-sidebar-toggle:hover,
.admin-sidebar-toggle:focus {
  color: #1d4ed8;
  background: #dbeafe;
  border-color: #60a5fa;
}
.admin-sidebar-toggle-icon {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.1rem;
  height: 0.85rem;
}
.admin-sidebar-toggle-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}
.admin-sidebar-toggle-label {
  white-space: nowrap;
}
.admin_header .title {
  display: block;
  flex: 0 1 auto;
  margin: 0;
  max-width: none;
  color: #111827;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin_header .account {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
  max-width: none;
  color: #111827;
  overflow: visible;
  padding-top: 0.25rem;
}

.admin-header-account-links {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 !important;
  overflow: visible;
}

.admin_header .account .name_btn,
.admin_header .account .name_btn:hover,
.admin_header .account .btn_logout,
.admin_header .account .btn_logout:hover {
  width: auto;
  max-width: none;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .admin_header {
    flex-wrap: wrap;
    align-items: flex-start;
    padding: 0.75rem;
  }

  .admin-header-left {
    flex: 1 1 100%;
  }

  .admin_header .account {
    flex: 1 1 100%;
    justify-content: flex-start;
    padding-top: 0.15rem;
  }

  .admin-header-account-links {
    width: 100%;
  }
}

.admin-header-notify-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  overflow: visible;
  margin-top: 0.15rem;
  margin-right: 0.35rem;
}
.admin-header-notify-btn .header-notify-badge {
  position: static;
  margin-left: 0.15rem;
  z-index: 2;
}

.admin_header .account .btn_logout {
  flex: 0 0 auto;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
}
.admin_header .name_btn {
  color: #374151 !important;
  border-color: #e5e7eb !important;
  background: #fff;
}
.admin_header .name_btn:hover {
  color: #2563eb !important;
  border-color: #2563eb !important;
  background: #eff6ff !important;
}
.name_btn {
  text-decoration: none;
}
.admin_footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0 2rem;
}
.admin_footer .btn {
  flex: 1;
  max-width: 250px;
}
.btn-default {
  color: #333;
  background-color: #fff;
  border-color: #ccc;
}

.alert-success {
  border-width: 1px;
  border-style: solid;
  padding: 10px;
  margin-bottom: 5px;
  color: #3c763d;
  background-color: #dff0d8;
  border-color: #d6e9c6;
}
.content {
  width: 100%;
  max-width: 1280px;
  background-color: #FFF;
  margin: 0 auto;
  flex: 1;
}
.container {
  width: 100%;
  max-width: 1280px;
  margin: 1rem auto;
  padding: 0;
  flex: 1;
}
.admin_container {
  width: 100%;
  max-width: 1280px;
  margin: 1rem auto;
  padding: 0;
  flex: 1;
}
a {
  text-decoration: underline;
}
p {
  margin: 0;
  padding: 0;
}
.row {
  margin-left: 0;
  margin-right: 0;
}
.form-control {
  border: 1px solid #444 !important;
}
.input_alert {
  color: #f13c3c;
  font-weight: bold;
  font-size: 20px;
  text-align: right;
}
.material-symbols-outlined {
  font-variation-settings:
    'FILL' 0,
    'wght' 500,
    'GRAD' 0,
    'opsz' 24;
  color: #f13c3c;
  font-size: 24px;
  vertical-align: sub;
}
/* パスワード */
.password__toggle {
  text-decoration: underline;
  text-align: right;
}
.password__toggle span {
  color: #423c3c;
}
.password__toggle:hover {
  cursor: pointer;
}
label:hover {
  cursor: pointer;
}
textarea {
  min-height: 7rem;
}
.copy {
  color: #d8f0fc;
  font-weight: bold;
  font-size: 1rem;
}
.inquiry_title {
  background-color: #225389;
  color: #FFF;
  padding: 0.5rem;
}
.inquiry {
  border: 3px solid #225389;
  padding: 0.5rem;
  background-color: #FFF;
}
.inquiry .inq_title {
  font-weight: bold;
}
/* 必須マーク */
.required {
  background-color: #008cd6;
  color: #FFF;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 7.5px;
  font-size: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  display: inline-block;
  text-align: center;
  margin: 0 5px;
  transition: transform 0.2s ease;
}
.required:hover {
  transform: translateY(-2px);
}
/* 規約 */
.pll_check, .terms_check, .transportation_expenses {
  display: block;
  border: 1px solid #434343;
  margin: 0 auto 1em;
  padding: 1.5em;
  line-height: 1.8;
  font-size: .8em;
  max-height: 300px;
  overflow-y: auto;
  scroll-behavior: smooth;
}
.disc_li {
  list-style-type: disc;
}
.disc_li .btn {
  margin: 2px 0;
}
/* 各表示基本 */
.pc_show {
  display: block;
}
.sp_show {
  display: block;
}
/* ボタン基本：幅100%。並び・サイズは親の row / col-* で制御 */
.btn , .btn:hover {
  width: 100%;
  color:#fff;
  text-align: center;
  text-decoration: none;
  min-width: 100px;
  box-sizing: border-box;
}
/* 一覧テーブル内はセル幅に合わせてコンパクト表示 */
.table .btn,
.table .btn:hover,
.fmreport-table .btn,
.fmreport-table .btn:hover {
  width: auto;
  display: inline-block;
  max-width: 100%;
}
/* コンテンツ幅に合わせる（一覧上の操作ボタン・リンク風ボタン等） */
.btn-inline,
.btn-inline:hover {
  width: auto;
  max-width: none;
  display: inline-block;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.btn-inline--sm,
.btn-inline--sm:hover {
  padding-left: 0.875rem;
  padding-right: 0.875rem;
}
/* 一覧へ */
.btn_list{
	background:#0d6efd;
}
.btn_list:hover{
	background:#0b5ed7;
}
/*  戻る */
.btn_back{
  background:#6c757d;
}
.btn_back:hover{
  background:#5a6268;
}

/* 検索 */
.btn_search{
  background:#28a745;
}
.btn_search:hover{
  background:#218838;
}
/* 詳細 */
.btn_detail{
  background:#495057;
}
.btn_detail:hover{
  background:#343a40;
}
/* 作成（新規作成画面へ） */
.btn_create{
	background:#20c997;
}
.btn_create:hover{
	background:#1aa179;
}
/* 編集（編集画面へ） */
.btn_edit{
  background:#17a2b8;
}
.btn_edit:hover{
  background:#138496;
}

/* 確認 */
.btn_confirm{
  background:#f0ad4e;
}
.btn_confirm:hover{
  background:#ec971f;
}
/* 登録 */
.btn_submit{
  background:#007bff;
}
.btn_submit:hover{
  background:#0069d9;
}

.btn_trash {
  padding: 0.05rem 0.5rem 0.25rem;
}
.btn_icon {
  max-width: 2.5rem;
}
/* 変更（更新確定） */
.btn_update{
  background:#6f42c1;
}
.btn_update:hover{
  background:#5a32a3;
}
/* クリア */
.btn_clear{
  background:#adb5bd;
}
.btn_clear:hover{
  background:#868e96;
}
/* 閉じる（軽い操作） */
.btn_close{
  background:#adb5bd;
}
.btn_close:hover{
  background:#868e96;
}
/* ログアウト */
.btn_logout{
	background:#343a40;
}
.btn_logout:hover{
	background:#23272b;
}
/* 削除 */
.btn_delete{
  background:#dc3545;
}
.btn_delete:hover{
  background:#c82333;
}

.btn_link{
  width: 100%;
  max-width: 100%;
  color: white;
  background:#495057;
}
.btn_link:hover{
  width: 100%;
  max-width: 100%;
  color: white;
  background:#343a40;
}
.btn_download{
  width: 100%;
  max-width: 100%;
  color: white;
  background:#17a2b8;
  display: block;
  margin: 0;
}
.btn_download:hover{
  width: 100%;
  max-width: 100%;
  color: white;
  background:#138496;
}
.user_list:hover{
  background: #d3d4d5;
}
/* ログイン（統一デザイン） */
/* ユーザ=青(#2563eb) / 専門家=緑(#059669) で全画面統一 */
.btn_login {
  background: #007bff;
}

.btn_login:hover {
  background: #1f57d6;
}
#btn_zipcode {
 font-size: 0.9rem;
}
/* ============================ Top ============================ */
.body_color {
  background-color: #d8f0fc;
}
.logo_L {
  max-width: 850px !important;
  width: 95%;
  padding-top: 1rem;
}
.login_body {
  background: white;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  padding: 20px;
  width: 800px;
  max-width: 95%;
  margin: 0 auto;
  text-align: center;
}
.form_area {
  margin: 0 auto;
  width: 480px;
  max-width: 100%;
}
.input-group-text {
  background-color: #007bff;
  color: white;
  border: none;
  width: 200px;
  text-align: center;
  border-radius: 0;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}
.login_form {
  border-color: #007bff !important;
  border-bottom-right-radius: 10px;
  border-top-right-radius: 10px;
}
.login_link {
  color: #008cd6;
}

/* C000 / D000 ログイン */
.login-body {
  background: #f9fafb;
}

.login-body--user {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
}

.login-body--expert {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 55%, #ffffff 100%);
}

.login-body .content {
  background: transparent;
  text-align: left;
}

.login-container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

.login-page {
  width: 100%;
}

.login-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  padding: 1.75rem 1.5rem 1.5rem;
}

.login-page--user .login-card {
  border-top: 4px solid #2563eb;
}

.login-page--expert .login-card {
  border-top: 4px solid #059669;
}

.login-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.login-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.login-page--user .login-card-icon {
  background: #eff6ff;
  color: #2563eb;
}

.login-page--expert .login-card-icon {
  background: #ecfdf5;
  color: #059669;
}

.login-card-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-page--user .login-card-eyebrow {
  color: #2563eb;
}

.login-page--expert .login-card-eyebrow {
  color: #059669;
}

.login-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

.login-card-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
}

.login-card-form {
  text-align: left;
}

.login-page .input-group-text {
  width: 9.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 0;
  border-bottom-left-radius: 10px;
  border-top-left-radius: 10px;
}

.login-page--user .input-group-text {
  background-color: #2563eb;
}

.login-page--expert .input-group-text {
  background-color: #059669;
}

.login-page--user .login_form {
  border-color: #2563eb !important;
}

.login-page--expert .login_form {
  border-color: #059669 !important;
}

.login-page--user .btn_login {
  background: #2563eb;
}

.login-page--user .btn_login:hover {
  background: #1d4ed8;
}

.login-page--expert .btn_login {
  background: #059669;
}

.login-page--expert .btn_login:hover {
  background: #047857;
}

.login-card-submit {
  width: 100%;
  margin-top: 0.5rem;
  border-radius: 10px;
  font-weight: 700;
}

.login-card-links {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.login-card-links p {
  margin: 0 0 0.45rem;
}

.login-page--user .login_link {
  color: #2563eb;
}

.login-page--expert .login_link {
  color: #059669;
}

.login_link--sub {
  font-size: 0.9rem;
  color: #6b7280 !important;
}

@media (max-width: 575px) {
  .login-container {
    padding: 1.25rem 0.75rem 1rem;
  }

  .login-card {
    padding: 1.25rem 1rem 1rem;
  }

  .login-page .input-group-text {
    width: 7.5rem;
    font-size: 0.85rem;
  }
}

/* B010 新規お申込み */
.signup-body {
  background: #f9fafb;
}

.signup-body--user {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 55%, #ffffff 100%);
}

.signup-body--expert {
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 55%, #ffffff 100%);
}

.signup-body .content {
  background: transparent;
  text-align: left;
}

.signup-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2rem 1rem 1.5rem;
}

.signup-page {
  width: 100%;
}

.signup-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
  padding: 1.75rem 1.5rem 1.5rem;
}

.signup-page--user .signup-card {
  border-top: 4px solid #2563eb;
}

.signup-page--expert .signup-card {
  border-top: 4px solid #059669;
}

.signup-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.signup-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.signup-page--user .signup-card-icon {
  background: #eff6ff;
  color: #2563eb;
}

.signup-page--expert .signup-card-icon {
  background: #ecfdf5;
  color: #059669;
}

.signup-card-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.signup-page--user .signup-card-eyebrow {
  color: #2563eb;
}

.signup-page--expert .signup-card-eyebrow {
  color: #059669;
}

.signup-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

.signup-card-lead {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
}

.signup-card-form {
  font-size: 1rem;
}

.signup-form-body .row > [class*="col-md-4"] > p,
.signup-form-body .row > [class*="col-md-4"] > p {
  margin-bottom: 0;
  font-weight: 600;
  color: #374151;
}

.signup-section-title {
  margin: 2rem 0 0.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #e5e7eb;
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
}

.signup-form-body .signup-section-title:first-child {
  margin-top: 0;
}

.signup-page--user .signup-section-title {
  border-bottom-color: #bfdbfe;
}

.signup-page--expert .signup-section-title {
  border-bottom-color: #a7f3d0;
}

.signup-page--user .required {
  background-color: #2563eb;
}

.signup-page--expert .required {
  background-color: #059669;
}

.signup-page .form-control:focus,
.signup-page .form-select:focus {
  border-color: #9ca3af;
  box-shadow: 0 0 0 0.2rem rgba(17, 24, 39, 0.08);
}

.signup-page--user .form-control:focus,
.signup-page--user .form-select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.signup-page--expert .form-control:focus,
.signup-page--expert .form-select:focus {
  border-color: #059669;
  box-shadow: 0 0 0 0.2rem rgba(5, 150, 105, 0.15);
}

.signup-page--user .btn_search {
  background: #2563eb;
}

.signup-page--user .btn_search:hover {
  background: #1d4ed8;
}

.signup-page--expert .btn_search {
  background: #059669;
}

.signup-page--expert .btn_search:hover {
  background: #047857;
}

.signup-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e5e7eb;
}

.signup-card-back,
.signup-card-submit {
  min-width: 12rem;
  border-radius: 10px;
  font-weight: 700;
}

.signup-page--user .signup-card-submit {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.signup-page--user .signup-card-submit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.signup-page--expert .signup-card-submit {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.signup-page--expert .signup-card-submit:hover {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

.signup-page--user .btn_submit {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.signup-page--user .btn_submit:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.signup-page--expert .btn_submit {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.signup-page--expert .btn_submit:hover {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

.signup-confirm-body .row > [class*="col-md-4"] > p {
  margin-bottom: 0;
  font-weight: 600;
  color: #374151;
}

.signup-confirm-body .row > [class*="col-md-8"] > p {
  margin-bottom: 0;
  color: #111827;
}

.signup-confirm-body .row {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #f3f4f6;
}

.signup-confirm-body .row:last-child {
  border-bottom: none;
}

.signup-complete-card {
  text-align: center;
  padding: 2.5rem 1.5rem 1.75rem;
}

.signup-complete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 auto 1rem;
  border-radius: 999px;
  font-size: 2rem;
}

.signup-page--user .signup-complete-icon {
  background: #eff6ff;
  color: #2563eb;
}

.signup-page--expert .signup-complete-icon {
  background: #ecfdf5;
  color: #059669;
}

.signup-complete-lead {
  max-width: 28rem;
  margin: 0 auto;
}

.signup-complete-actions {
  justify-content: center;
  border-top: none;
  padding-top: 0.5rem;
}

.signup-page--user .signup-complete-actions .signup-card-submit,
.signup-page--user .signup-complete-actions .btn_list {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.signup-page--user .signup-complete-actions .signup-card-submit:hover,
.signup-page--user .signup-complete-actions .btn_list:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.signup-page--expert .signup-complete-actions .signup-card-submit,
.signup-page--expert .signup-complete-actions .btn_list {
  background: #059669;
  border-color: #059669;
  color: #fff;
}

.signup-page--expert .signup-complete-actions .signup-card-submit:hover,
.signup-page--expert .signup-complete-actions .btn_list:hover {
  background: #047857;
  border-color: #047857;
  color: #fff;
}

/* 決済画面（Stripe仮） */
.payment-page {
  min-height: calc(100vh - 120px);
  padding: 2rem 1rem 2.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2ff 100%);
}

.payment-shell {
  max-width: 980px;
  margin: 0 auto;
}

.payment-mock-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  font-size: 0.9rem;
}

.payment-alert {
  margin-bottom: 1rem;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 1.25rem;
}

.payment-summary-card,
.payment-form-card,
.payment-empty-card,
.payment-complete-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.payment-summary-card,
.payment-form-card {
  padding: 1.5rem;
}

.payment-brand {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.payment-brand-mark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #635bff;
  text-transform: lowercase;
}

.payment-brand-sub {
  font-size: 0.85rem;
  color: #6b7280;
}

.payment-summary-title,
.payment-form-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: #111827;
}

.payment-summary-list {
  margin: 0;
}

.payment-summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #f3f4f6;
}

.payment-summary-row dt {
  margin: 0;
  color: #6b7280;
  font-weight: 500;
}

.payment-summary-row dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
  color: #111827;
}

.payment-summary-row--total {
  border-bottom: none;
  padding-top: 1rem;
  margin-top: 0.25rem;
}

.payment-summary-row--total dt,
.payment-summary-row--total dd {
  font-size: 1.05rem;
  color: #111827;
}

.payment-form-lead {
  margin: -0.5rem 0 1.25rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.payment-form .form-label {
  font-weight: 600;
  color: #374151;
}

.payment-form .form-control {
  border-radius: 0.65rem;
  border-color: #d1d5db;
  padding: 0.7rem 0.85rem;
}

.payment-form .form-control:focus {
  border-color: #635bff;
  box-shadow: 0 0 0 0.2rem rgba(99, 91, 255, 0.15);
}

.payment-submit-btn {
  width: 100%;
  background: #635bff;
  border-color: #635bff;
  color: #fff;
  font-weight: 700;
}

.payment-submit-btn:hover {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}

.payment-note {
  margin: 1rem 0 0;
  font-size: 0.82rem;
  color: #6b7280;
}

.payment-empty-card {
  padding: 2rem 1.5rem;
  text-align: center;
}

.payment-footer-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.payment-complete-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  text-align: center;
}

.payment-complete-icon {
  font-size: 3rem;
  color: #635bff;
  margin-bottom: 0.75rem;
}

.payment-complete-eyebrow {
  margin: 0 0 0.35rem;
  color: #635bff;
  font-size: 0.85rem;
  font-weight: 700;
}

.payment-complete-title {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  font-weight: 700;
}

.payment-complete-lead {
  margin: 0 0 1.25rem;
  color: #4b5563;
  line-height: 1.7;
}

.payment-complete-summary {
  margin: 0 0 1.5rem;
  text-align: left;
  border: 1px solid #f3f4f6;
  border-radius: 0.75rem;
  overflow: hidden;
}

.payment-complete-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.payment-complete-row:last-child {
  border-bottom: none;
}

.payment-complete-row dt {
  margin: 0;
  color: #6b7280;
}

.payment-complete-row dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.payment-complete-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.payment-complete-btn {
  min-width: 220px;
}

@media (max-width: 767px) {
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .payment-complete-actions {
    flex-direction: column;
  }

  .payment-complete-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 575px) {
  .signup-container {
    padding: 1.25rem 0.75rem 1rem;
  }

  .signup-card {
    padding: 1.25rem 1rem 1rem;
  }

  .signup-card-actions {
    flex-direction: column;
  }

  .signup-card-back,
  .signup-card-submit {
    width: 100%;
    min-width: 0;
  }
}

.login_footer {
  width: 100%;
  max-width: 1280px;
  background-color: #FFF;
  margin: 0 auto;
  padding-bottom: 10px;
}
/* お知らせ */
.notice_body {
  text-align: left;
  border: 2px solid #ffda00;
  border-radius: 10px;
  margin: 1rem 2rem 2rem;
}
.notice_head {
  margin: -1rem 0 10px 1.5rem;
  padding: 0 .5rem;
  background-color: #FFF;
  width: fit-content;
}
.notice_foot {
  margin-bottom: -1rem;
  margin-left: auto;
  padding: 0 .5rem;
  background-color: #FFF;
  width: fit-content;
}
.notice_foot a {
  text-decoration: none;
}
/* アラート */
.alert_body {
  text-align: left;
  border: 2px solid #dc3545;
  border-radius: 10px;
  margin: 1rem 2rem 2rem;
}
.alert_head {
  margin: -1rem 0 10px 1.5rem;
  padding: 0 .5rem;
  background-color: #FFF;
  width: fit-content;
}

.contact_us {
  position: fixed;
  bottom: 65px;
  left: 20px;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.my_footer {
  background-color: #0078D4;
  color: white;
  padding: 15px 0;
}
.my_footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}
.my_footer a:hover {
  text-decoration: underline;
}
/* 顧問先アカウントブロック,画像ブロック */
.customer_block ,.img_block {
  background-color: #fafafa;
  border: 1px solid #ccc;
  border-radius: 1rem;
  margin: 1rem 0;
}
/* 画像登録デザイン */
# dragDropArea{
  background-color: #f4f4f4;
  margin: 10px;
  padding: 10px;
  border: #ddd dashed 5px;
  min-height: 200px;
  text-align: center;
}
# dragDropArea p{
  color: #999;
  font-weight: bold;
  font-size: 14px;
  font-size: 1.4em;
}
# dragDropArea .drag-drop-buttons{
  margin-top: 20px;
  font-size: 12px;
  font-size: 1.2em;
}
.drag-drop-buttons input{
  margin: auto;
}
.drag-drop-info {
  position: relative;
  border-radius: 8px;
  width: 100%;
  height: 180px;
  background: #87CEFA;
  overflow: hidden;
  margin-bottom: 1rem;
}

.drag-drop-info:before {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 24px; bottom: 24px;
  left: 24px; right: 24px;
  border: dashed 2px #fafafa;
  color: #fafafa;
  font-size: 14px;
  content: 'ここにファイルをドロップ';
  pointer-events: none;
}

.drag-drop-info input {
  display: block;
  position: absolute;
  top: 0; left: 0;
  width: 999px; height: 999px;
  font-size: 999px;
  opacity: 0;
}

.preview-item {
  max-width: 100%;
  margin: 0 auto 1rem;
  text-align: center;
}

.preview-item img,
.preview-item embed {
  max-width: 100%;
  max-height: 100vh;
  margin: auto;
  display: block;
  border: 1px solid #ccc;
}
.preview-item embed {
  width: 650px;
  height: 800px;
}

.file-name {
  font-size: 1rem;
  font-weight: bold;
  color: #666;
  margin-bottom: 6px;
  word-break: break-all;
}

/* テーブル表示 */
.data-list td{
  vertical-align: middle;
}
.data-list ul, .data-list li{
  padding: 0;
  margin: 0;
}
.img_link {
  text-align: left;
}
/* チェックボックス */
.form_check {
  display: flex !important;
  align-items: center;
  justify-content: start;
}
/* PDF表示 */
.pdf_display {
  width: 100%;
  height: 800px;
}

.chat_body {
  width: 100%;
  max-width: 750px;
  background-color: #FFF;
  margin: 1rem auto;
  position: relative;
  flex: 1;
}
/* Chatbot */
#chatbot_space {
  width: 95%;
  height: 690px;
  max-height: calc(100vh - 275px);
  min-height: 400px;
  margin: 0 auto;
  position: relative;
}
.tax_block {
	display: none;
	flex-direction: column;
	gap: 0;
	padding: 0;
}
.tax_btn {
  padding: 10px;
  color: white;
  background: linear-gradient(135deg, #ff8c42 0%, #ff4d8d 100%);
  border: none;
  border-radius: 24px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.2s, box-shadow 0.2s;
  margin: .25rem auto;
  max-width: 300px;
}
.tax_message {
	font-size: 14px;
	line-height: 1.6;
	color: #555;
}
.tax_log {
	font-size: 14px;
	line-height: 1.6;
	color: #2f7d32;
	margin: auto;
}
/* **************** チャットボットデザイン **************** */
.chat-container {
  width: 100%;
  max-width: 600px;
  max-height: 100dvh;
  min-height: 600px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  display: none;
  overflow: hidden;
  margin: auto;
}
.chat-header {
  padding: 5px 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ×ボタン */
#close_chat {
  cursor: pointer;
  font-weight: bold;
  padding-right: 0.5rem;
  margin-left: auto; 
  font-size: 2rem;
}

.chat-header h1 {
  font-size: 20px;
  font-weight: 600;
}

.status-indicator {
  width: 10px;
  height: 10px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

.chat-messages {
  flex: 1;
  padding: 20px;
  background: #f8f9fa;
}

.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.chat-messages::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.message {
  display: flex;
  margin-bottom: 16px;
  animation: slideIn 0.3s ease-out;
}

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

.message.user {
  justify-content: flex-end;
}

.message-block {
  max-width: 70%;
}
.message-content {
  max-width: 100%;
  padding: 12px 16px;
  border-radius: 18px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message.user .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 4px;
}

.message.ai .message-content {
  background: white;
  color: #333;
  border: 1px solid #e5e7eb;
  border-bottom-left-radius: 4px;
}

.message-meta {
  font-size: 11px;
  color: #999;
  margin-top: 4px;
  padding: 0 4px;
}

.confidence-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  margin-left: 8px;
}

.confidence-high {
  background: #d1fae5;
  color: #065f46;
}

.confidence-medium {
  background: #fef3c7;
  color: #92400e;
}

.confidence-low {
  background: #fee2e2;
  color: #991b1b;
}

.typing-indicator {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  width: fit-content;
  margin-bottom: 16px;
}

.typing-indicator.active {
  display: flex;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #9ca3af;
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-10px);
  }
}

.chat-input-area {
  padding: 10px;
  background: white;
  border-top: 1px solid #e5e7eb;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.messageInput {
  flex: 1;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 24px;
  font-size: 14px;
  font-family: inherit;
  resize: none;
  max-height: 120px;
  transition: border-color 0.2s;
}

.messageInput:focus {
  outline: none;
  border-color: #667eea;
}

.sendButton {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.sendButton:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.sendButton:active:not(:disabled) {
  transform: translateY(0);
}

.sendButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.error_container {
  display: flex;
  justify-content: center; /* 水平方向のセンター */
  align-items: center;     /* 垂直方向のセンター */
  height: 90dvh;           /* 画面の高さ100% */
}

.highlight {
  color: #fff3a3;
  font-weight: bold;
}
/* ******************* 財務分析レポート ******************* */
.fmreport-wrap {
  max-width: 1800px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

.fmreport-title {
  margin: 0 0 18px;
  font-size: 26px;
}

.fmreport-search-form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.fmreport-search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.fmreport-search-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}

.fmreport-search-item-keyword {
  min-width: 260px;
  flex: 1;
}

.fmreport-search-item label {
  font-size: 13px;
  color: #555;
}

.fmreport-search-item input,
.fmreport-search-item select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
}

.fmreport-search-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

.fmreport-search-actions button,
.fmreport-search-actions a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fmreport-search-actions button {
  max-width: 50%;
  width: 250px;
}
.fmreport-search-actions a {
  max-width: 50%;
  width: 250px;
  margin-left: auto;
}

.fmreport-search-actions button:hover {
  max-width: 50%;
  width: 250px;
}
.fmreport-search-actions a:hover {
  max-width: 50%;
  width: 250px;
}

.fmreport-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.fmreport-pager-summary {
  font-size: 14px;
  color: #444;
}

.fmreport-page-size-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.fmreport-page-size-links .label {
  margin-right: 4px;
  font-size: 14px;
  color: #555;
}

.fmreport-page-size-links a,
.fmreport-page-size-links span.current {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #ccc;
  text-decoration: none;
  color: #333;
  background: #fff;
  border-radius: 4px;
}

.fmreport-page-size-links span.current {
  background: #333;
  color: #fff;
  border-color: #333;
}

.fmreport-table-wrap {
  overflow-x: auto;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.fmreport-table {
  width: 100%;
  border-collapse: collapse;
  max-width: 1300px;
  font-size: 0.9rem;
}

.fmreport-table th,
.fmreport-table td {
  border-bottom: 1px solid #e8e8e8;
  padding: 12px 10px;
  vertical-align: middle;
}

.fmreport-table thead th {
  background: #f5f7fb;
  font-weight: bold;
  text-align: center;
  white-space: nowrap;
}

.fmreport-table tbody td.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.fmreport-table tbody td {
  text-align: center;
}
.company_list {
  table-layout: fixed;
}
.company_list th {
  width: 20%
}
.company_list td {
  width: 80%
}
.fmreport-title-cell {
  text-align: left !important;
  min-width: 240px;
}

.fmreport-empty {
  text-align: center !important;
  padding: 30px 10px !important;
  color: #777;
}

.fmreport-severity {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
}

.fmreport-severity.is-high {
  background: #fde8e8;
  color: #c0392b;
}

.fmreport-severity.is-middle {
  background: #fff4db;
  color: #b9770e;
}

.fmreport-severity.is-low {
  background: #eaf6ea;
  color: #2e8b57;
}

.fmreport-severity.is-none {
  background: #f3f3f3;
  color: #666;
}

.report-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
}

.report-status--new {
  background: #fff4db;
  color: #b9770e;
}

.report-status--rejected {
  background: #fde8e8;
  color: #c0392b;
}

.report-status--resolved {
  background: #eaf6ea;
  color: #2e8b57;
}

.report-status--reviewing {
  background: #e8f0fe;
  color: #1a56db;
}

.report-status--default {
  background: #f3f3f3;
  color: #666;
}

.report-moderation-section {
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #e8e8e8;
  border-radius: 8px;
  background: #fafafa;
}

.report-moderation-section__title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: bold;
}

.report-post-status {
  display: inline-block;
  margin-bottom: 0.5rem;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #666;
  font-size: 12px;
  font-weight: bold;
}

.report-post-status--hidden {
  background: #fde8e8;
  color: #c0392b;
}

.report-post-body--before {
  border-color: #d9d9d9 !important;
}

.account-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  line-height: 1.4;
}

.account-status--active {
  background: #eaf6ea;
  color: #2e8b57;
}

.account-status--suspended {
  background: #fff4db;
  color: #b9770e;
}

.account-status--pending {
  background: #e8f0fe;
  color: #1a5fb4;
}

.account-status--stopped {
  background: #fde8e8;
  color: #c0392b;
}

.btn.account-status--active,
.btn.account-status--active:hover {
  background: #eaf6ea;
  color: #2e8b57 !important;
  border: 1px solid #2e8b57;
}

.btn.account-status--active:hover {
  background: #d4edd4;
}

.btn.account-status--suspended,
.btn.account-status--suspended:hover {
  background: #fff4db;
  color: #b9770e !important;
  border: 1px solid #b9770e;
}

.btn.account-status--suspended:hover {
  background: #ffe9b8;
}

/* =========================
   ユーティリティ
========================= */
.u-hidden {
  display: none;
}

th.col-w-70, td.col-w-70 { width: 70px; }
th.col-w-80, td.col-w-80 { width: 80px; }
th.col-w-90, td.col-w-90 { width: 90px; }
th.col-w-100, td.col-w-100 { width: 100px; }
th.col-w-110, td.col-w-110 { width: 110px; }
th.col-w-120, td.col-w-120 { width: 120px; }
th.col-w-140, td.col-w-140 { width: 140px; }
th.col-w-160, td.col-w-160 { width: 160px; }
th.col-w-180, td.col-w-180 { width: 180px; }

.btn-fixed-200 {
  width: 100% !important;
  max-width: none;
}

.data-list.selector {
  font-size: small;
  width: 100%;
}

.img-max-160 {
  max-width: 160px;
}

.fmreport-search-item--full {
  width: 100%;
}

.fmreport-search-actions--center {
  justify-content: center;
  margin-top: 20px;
}

#zipcode_error {
  display: none;
}

.fmreport-pagination {
  margin-top: 16px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

.fmreport-pagination a,
.fmreport-pagination span {
  display: inline-block;
  min-width: 36px;
  padding: 8px 10px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  background: #fff;
  color: #333;
}

.fmreport-pagination span.current {
  background: #333;
  color: #fff;
  border-color: #333;
}

.fmreport-pagination span.disabled {
  color: #aaa;
  background: #f8f8f8;
}
/* 詳細 */
.fmreport-detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.fmreport-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.fmreport-detail-header h1 {
  margin: 0;
  font-size: 26px;
}

.fmreport-detail-back a {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background: #fff;
  text-decoration: none;
  color: #333;
}

.fmreport-detail-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.fmreport-detail-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.fmreport-detail-title-row h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
}

.fmreport-severity {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

.fmreport-severity.is-high {
  background: #fde8e8;
  color: #c0392b;
}

.fmreport-severity.is-middle {
  background: #fff4db;
  color: #b9770e;
}

.fmreport-severity.is-low {
  background: #eaf6ea;
  color: #2e8b57;
}

.fmreport-severity.is-none {
  background: #f3f3f3;
  color: #666;
}

.fmreport-info-table {
  width: 100%;
  border-collapse: collapse;
}

.fmreport-info-table th,
.fmreport-info-table td {
  border: 1px solid #e3e3e3;
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.fmreport-info-table th {
  width: 140px;
  background: #f8f8f8;
  font-weight: bold;
}

.fmreport-text-block {
  line-height: 1.9;
  white-space: normal;
  word-break: break-word;
}

.fmreport-json-block {
  margin: 0;
  padding: 14px;
  background: #f8f8f8;
  border: 1px solid #e3e3e3;
  border-radius: 6px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
  font-size: 12px;
}
.company_list th {
  background: #f5f7fb
}
/* メールテンプレート表示 */
.mailtemp_list .mail-tag-remove {
  display: none !important;
}
.mailtemp_list td {
  text-align: left !important;
  line-height: 10px;
}

/* メールテンプレート表示 */
.mailtemp_confirm .mail-tag-remove {
  display: none !important;
}
.mailtemp_confirm {
  line-height: 10px;
  padding: 10px;
}

/* =========================
*   マイページ
========================= */
/* =========================
   Header
========================= */
.dashboard-header {
  background: #0078D4;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.dashboard-navbar {
  min-height: 72px;
  padding-top: 0;
  padding-bottom: 0;
}

.dashboard-brand {
  color: #fff !important;
  font-size: 1.5rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  white-space: nowrap;
}

.dashboard-brand-logo {
  width: 34px;
  height: 34px;
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  flex-shrink: 0;
}

.dashboard-nav-list {
  gap: 0.5rem;
}

.dashboard-nav-link {
  color: #fff !important;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  white-space: nowrap;
}
.dashboard-nav-link:hover,
.dashboard-nav-link:focus {
  opacity: 0.85;
}

.dashboard-header-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-user-name {
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-bell-link, .dashboard-logout-btn {
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.1rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: bold;
}
.dashboard-bell-link {
  line-height: 1;
  border: 1px solid #fff;
  gap: 0.35rem;
}
.dashboard-bell-link--spaced {
  margin-right: 10px;
}
.dashboard-bell-link__label {
  white-space: nowrap;
}
.header-notify-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  line-height: 1;
  border-radius: 999px;
  background: #ff4d4f;
  color: #fff;
  font-size: 12px;
  text-align: center;
  padding: 0 6px;
  font-weight: bold;
  flex-shrink: 0;
}

.dashboard-logout-btn {
  background: #dc3545;
  white-space: nowrap;
}

.dashboard-logout-btn:hover,
.dashboard-logout-btn:focus {
  background: #c82333;
  color: #fff;
}

.dashboard-navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.dashboard-navbar-toggler:focus {
  box-shadow: none;
}

.dashboard-navbar-toggler-icon {
  filter: brightness(0) invert(1);
}

/* =========================
   Main
========================= */
.dashboard-main {
  padding: 0.25rem;
}

.dashboard-page-title {
  font-size: 2.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.dashboard-page-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 1.75rem;
}

.dashboard-card {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.04);
}

.dashboard-card-body {
  padding: 1.25rem 1.25rem;
}

.dashboard-action-card {
  min-height: 180px;
}
.dashboard-action-block {
  display: flex;
  justify-content: center;
  align-items: center;
}
.dashboard-action-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
}
.dashboard-action-icon--blue { color: #2563eb; }
.dashboard-action-icon--green { color: #16a34a; }
.dashboard-action-icon--purple { color: #9333ea; }
.dashboard-action-icon--orange { color: #f97316; }

.dashboard-action-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.dashboard-action-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #6b7280;
  margin-bottom: 1rem;
  min-height: 3.5em;
}

.dashboard-btn-link {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.65rem 1.15rem;
  border-radius: 0.55rem;
  transition: 0.2s ease;
}

.dashboard-btn-link:hover,
.dashboard-btn-link:focus {
  color: #fff;
  opacity: 0.9;
}

.dashboard-btn-link--blue { background: #2563eb; }
.dashboard-btn-link--green { background: #16a34a; }
.dashboard-btn-link--purple { background: #9333ea; }
.dashboard-btn-link--orange { background: #f97316; }

/* section */
.dashboard-section-card {
  margin-top: 1.5rem;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.dashboard-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1f2937;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dashboard-section-link {
  color: #4f46e5;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-section-link:hover,
.dashboard-section-link:focus {
  text-decoration: underline;
}

/* notice / alert items */
.dashboard-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
}

.dashboard-info-item {
  display: block;
  text-decoration: none;
  border-radius: 10px;
  padding: 1rem 1rem 1rem 1rem;
  border-left: 4px solid transparent;
  transition: 0.2s ease;
  color: inherit;
}

.dashboard-info-item:hover,
.dashboard-info-item:focus {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.dashboard-info-item--danger {
  background: #fdeeee;
  border-left-color: #ef4444;
}

.dashboard-info-item--warning {
  background: #f8f4dd;
  border-left-color: #eab308;
}

.dashboard-info-item--info {
  background: #eef4ff;
  border-left-color: #3b82f6;
}

.dashboard-info-item--success {
  background: #edf9ef;
  border-left-color: #22c55e;
}

.dashboard-info-item--purple {
  background: #f4edff;
  border-left-color: #8b5cf6;
}

.dashboard-info-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
}

.dashboard-info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.dashboard-info-text {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.dashboard-info-date {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.dashboard-status-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-status-badge--danger {
  background: #fca5a5;
  color: #7f1d1d;
}

.dashboard-status-badge--warning {
  background: #fde68a;
  color: #78350f;
}

.dashboard-status-badge--info {
  background: #bfdbfe;
  color: #1e3a8a;
}

/* summary */
.dashboard-summary-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dashboard-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid #eef2f7;
}

.dashboard-summary-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.dashboard-summary-label {
  font-size: 1rem;
  color: #4b5563;
  font-weight: 600;
}

.dashboard-summary-value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #1f2937;
  text-align: right;
  white-space: nowrap;
}

.dashboard-summary-value--green {
  color: #16a34a;
}

.dashboard-summary-note {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* OCR box */
.dashboard-ocr-text {
  color: #6b7280;
  margin-bottom: 1rem;
  line-height: 1.7;
  font-size: 0.95rem;
}

.dashboard-ocr-btn {
  display: block;
  width: 100%;
  text-align: center;
  background: #4f46e5;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 0.9rem 1rem;
  border-radius: 0.6rem;
}

.dashboard-ocr-btn:hover,
.dashboard-ocr-btn:focus {
  color: #fff;
  background: #4338ca;
}
/* 管理画面 */
.admin-layout {
  display: block;
  flex: 1;
  min-width: 0;
}

.admin-main-wrap {
  min-width: 0;
  width: 100%;
}

.admin-sidebar-backdrop {
  position: fixed;
  top: var(--admin-header-height, 64px);
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background: rgba(17, 24, 39, 0.35);
}

.admin-sidebar {
  position: fixed;
  top: var(--admin-header-height, 64px);
  left: 0;
  bottom: 0;
  width: 240px;
  max-width: 85vw;
  background: #fff;
  border-right: 1px solid var(--app-border, #e5e7eb);
  padding: 16px 12px 24px;
  z-index: 1050;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  overflow-y: auto;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.12);
}

.admin-sidebar.is-open {
  transform: translateX(0);
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #6b7280;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border-left: 3px solid transparent;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus {
  color: #2563eb;
  background: #eff6ff;
}

.admin-sidebar-link.is-active {
  color: #2563eb;
  background: #eff6ff;
  border-left-color: #2563eb;
  font-weight: 700;
}
.admin-main {
  flex: 1;
  padding: 20px;
  min-width: 0;
  background: transparent;
}

.admin-body {
  background: #f9fafb;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.admin-body.admin-sidebar-open {
  overflow: hidden;
}

.admin-mobile-sidebar {
  display: none;
}

.ocr_continer {
  border: 1px solid #cdcdcd;
}
.ocr_block {
  display: flex;
}
.ocr_textblock {
  flex: 1;
}
.ocr_textarea {
  background: #e8e8e8;
  color: #333;
  margin: 0.25rem;
  padding: 0.25rem;
  min-height: 100px;
  border-radius: 0.25rem;
  text-align: left !important;
}

/* メールテンプレート */
.picker_btn {
  max-width: 250px;
  position: absolute;
  top: -15px;
  right: -5px;
}
.picker_send {
  flex: 1;
}
.body_prev {
  border: 1px solid #cdcdcd;
  border-radius: 0.25rem;
}
.mail-editor {
	min-height: 46px;
	padding: 10px 12px;
	line-height: 0.6;
	white-space: pre-wrap;
	word-break: break-word;
}
.mail-editor[data-multiline="1"] {
	min-height: 280px;
}
.mail-editor:focus {
	outline: none;
	border-color: #86b7fe;
	box-shadow: 0 0 0 0.2rem rgba(13,110,253,.25);
}

.mail-tag {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	margin: 0 2px;
	border-radius: 999px;
	background: #eef4ff;
	border: 1px solid #b9d0ff;
	color: #1f4fa3;
	font-size: 0.95em;
	white-space: nowrap;
	user-select: none;
}
.mail-tag[data-token] {
	cursor: default;
}
.mail-tag-remove {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	border: none;
	background: transparent;
	color: #1f4fa3;
	font-size: 14px;
	line-height: 1;
	padding: 0;
}
.mail-tag-remove:hover {
	color: #c00;
}

.merge-modal {
	position: fixed;
	inset: 0;
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
}

.merge-modal.is-open {
	display: flex;
}
.merge-modal-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,.4);
}
.merge-modal-dialog {
	position: relative;
	width: min(720px, calc(100vw - 32px));
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0,0,0,.2);
	overflow: hidden;
}
.merge-modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 18px;
	border-bottom: 1px solid #ddd;
}
.merge-modal-body {
	padding: 16px 18px;
	max-height: 60vh;
	overflow: auto;
}
.merge-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 0;
	border-bottom: 1px solid #eee;
	gap: 12px;
}
.merge-item-info {
	flex: 1;
}
.merge-item-title {
	font-weight: bold;
}
.merge-item-token {
	font-family: monospace;
	font-size: 12px;
	color: #666;
	margin-top: 2px;
}
.merge-item-desc{
	font-size:12px;
	color:#666;
	margin-top:2px;
}
body.modal-open {
	overflow: hidden;
}
/************************
 *
 * responsive
 *
*********************** *
*/
/* タブレット (768px未満) */
@media screen and (max-width: 767px) {
  .left a {
    display: block;
    margin-bottom: 5px;
  }
  .my_footer {
    padding: 0;
  }
}
@media screen and (max-width: 600px) {
  .chat_body {
    margin: 0 auto;
  }
  .chat-container {
    max-height: 100dvh;
  }
  .btn , .btn:hover {
    font-size: 1rem;
  }
  .picker_btn {
    max-width: 120px;
    font-size: 0.7rem;
  }
}
@media (max-width: 991.98px) {
  .pc_show {
    display: none;
  }
  .dashboard-nav-list {
    flex-direction: row;
  }
  .nav-item {
    display: flex;
    justify-content: center;
    width: 25%;
    border: 1px solid white;
    border-radius: .5rem;
  }
  .dashboard-nav-link {
    font-size: 1rem;
    padding: 0.75rem 0 !important;
  }

  .dashboard-header-right {
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 1rem;
  }

  .dashboard-user-name {
    font-size: 1rem;
  }

  .dashboard-logout-btn {
    font-size: 1rem;
    padding: 0.65rem 1rem;
  }
  .admin-layout {
    display: block;
  }
}

@media (max-width: 767.98px) {
  .dashboard-main {
    padding-top: 1.25rem;
  }

  .dashboard-page-title {
    font-size: 1.6rem;
  }

  .dashboard-action-card {
    min-height: auto;
  }

  .dashboard-summary-value {
    font-size: 1.1rem;
  }

  .dashboard-info-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 500px) {
  .admin_header {
    padding: 0.75rem;
  }
  .dashboard-nav-list {
    flex-direction: column;
  }
  .nav-item {
    display: flex;
    justify-content: center;
  }
  .dashboard-nav-link {
    font-size: 1rem;
    padding: 0.75rem 0 !important;
  }

  .dashboard-header-right {
    flex-wrap: wrap;
    justify-content: space-evenly;
    padding-top: 1rem;
  }
}

/* ============================== */
/* ========== 相談詳細 ========== */
/* ============================== */
.consultation-detail-page {
	max-width: 1000px;
	margin: 0 auto;
}

.detail-box {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.detail-box h3 {
	font-size: 20px;
	margin-bottom: 16px;
}

.status-badge {
	display: inline-block;
	background: #eef5ff;
	color: #1f6fd1;
	font-weight: bold;
	border-radius: 999px;
	padding: 8px 18px;
}

.ai-answer {
	background: #fafafa;
	border-left: 4px solid #1f6fd1;
	padding: 16px;
	line-height: 1.8;
}

.request-status {
	display: inline-block;
	border-radius: 999px;
	padding: 5px 12px;
	font-weight: bold;
	background: #eee;
}

.request-status-admin_check {
	background: #fff3cd;
	color: #856404;
}

.request-status-assigned {
	background: #e7f1ff;
	color: #084298;
}

.request-status-accepted {
	background: #d1e7dd;
	color: #0f5132;
}

.request-status-rejected {
	background: #f8d7da;
	color: #842029;
}

.status-timeline {
	list-style: none;
	padding: 0;
	margin: 0;
}

.status-timeline li {
	border-left: 4px solid #1f6fd1;
	padding: 0 0 18px 16px;
	margin-bottom: 12px;
}

.timeline-date {
	font-size: 13px;
	color: #666;
	margin-bottom: 4px;
}

.timeline-message {
	line-height: 1.7;
}

.expert-request-note {
	margin-top: 6px;
	color: #888;
	font-size: 13px;
	text-align: center;
}
.consultation-result-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 32px 16px;
}

.consultation-result-page h1 {
	font-size: 28px;
	margin-bottom: 24px;
}

.consultation-result-page section {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
}

.consultation-result-page h2 {
	font-size: 20px;
	margin-bottom: 16px;
}

.consultation-body,
.ai-answer,
.expert-bio {
	line-height: 1.8;
}

.consultation-meta,
.ai-category,
.expert-sub {
	color: #666;
	font-size: 14px;
}

.expert-list {
	display: grid;
	gap: 16px;
}

.expert-card {
	border: 1px solid #ddd;
	border-radius: 10px;
	padding: 18px;
	background: #fafafa;
}

.expert-card-header {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.expert-card h3 {
	font-size: 18px;
	margin: 0;
}

.match-score {
	background: #eef5ff;
	color: #1f6fd1;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
	font-weight: bold;
}

.recommend-reason {
	background: #fff;
	border-left: 4px solid #1f6fd1;
	padding: 10px 12px;
	line-height: 1.7;
}

.empty-box {
	background: #fafafa;
	border-radius: 8px;
	padding: 20px;
	color: #666;
}


/* ============================== */
/* ======== チャット画面 ======== */
/* ============================== */

/* ---- Layout / Box ---- */
.chat-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px;
}

.chat-header-box,
.chat-info-box,
.chat-message-box,
.chat-post-box,
.chat-action-box,
.chat-post-disabled {
	background: #fff;
	border: 1px solid #e5e5e5;
	border-radius: 12px;
	padding: 20px;
	margin-bottom: 20px;
}

.chat-post-disabled {
	color: #666;
	background: #f8f8f8;
}

/* ---- Consultation Summary ---- */
.chat-consultation-title {
	font-size: 16px;
	line-height: 1.7;
	text-align: left;
}

.chat-consultation-body {
	margin-top: 10px;
	text-align: left;
}

.chat-consultation-body-text {
	margin-top: 6px;
	padding: 12px 14px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-left: 4px solid #1f6fd1;
	border-radius: 10px;
	line-height: 1.8;
	color: #374151;
	white-space: normal;
	word-break: break-word;
}

/* ---- Status / Member Badges ---- */
.chat-status-row {
	margin-top: 8px;
}

.chat-status,
.chat-escalated,
.chat-closed-reason,
.member-role,
.member-status,
.member-type {
	display: inline-block;
	border-radius: 999px;
	padding: 4px 10px;
	font-size: 13px;
	background: #f1f1f1;
	margin-right: 6px;
}

.chat-escalated {
	background: #fff3cd;
}

.chat-escalated-handled {
	background: #d1e7dd;
}

/* ---- Escalation alert (admin EC3001) ---- */
.escalation-alert-box {
	border: 2px solid #ffc107;
	background: #fff8e1;
}

.escalation-alert-box--handled {
	border-color: #badbcc;
	background: #f4fbf6;
}

.escalation-alert-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}

.escalation-alert-header h3 {
	margin: 0;
}

.escalation-status-badge {
	display: inline-block;
	border-radius: 999px;
	padding: 4px 12px;
	font-size: 13px;
	font-weight: 700;
}

.escalation-status-badge--pending {
	background: #ffc107;
	color: #212529;
}

.escalation-status-badge--handled {
	background: #198754;
	color: #fff;
}

.escalation-alert-title {
	font-weight: 700;
	margin-bottom: 12px;
}

.escalation-meta {
	display: grid;
	gap: 8px;
	margin: 0 0 16px;
}

.escalation-meta__row {
	display: grid;
	grid-template-columns: 180px 1fr;
	gap: 8px 16px;
}

.escalation-meta__row dt {
	margin: 0;
	font-weight: 700;
	color: #555;
}

.escalation-meta__row dd {
	margin: 0;
}

.escalation-body-box {
	border: 1px solid #f0c36d;
	border-radius: 8px;
	background: #fff;
	padding: 16px;
	margin-bottom: 8px;
}

.escalation-alert-box--handled .escalation-body-box {
	border-color: #badbcc;
}

.escalation-body-box--handled {
	background: #f8fffa;
}

.escalation-body-box__title {
	font-size: 1rem;
	font-weight: 700;
	margin: 0 0 8px;
}

.escalation-body-box__text {
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.7;
}

.escalation-alert-text {
	margin-bottom: 0;
	color: #555;
}

@media (max-width: 767px) {
	.escalation-meta__row {
		grid-template-columns: 1fr;
	}
}

.chat-closed-reason {
	background: #f8d7da;
}

.chat-member-list {
	margin: 0;
	padding-left: 20px;
	text-align: left;
}

.chat-member-list li {
	margin-bottom: 10px;
	line-height: 1.7;
}

/* ---- Messages ---- */
.chat-messages {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: #f8f9fa;
}

.chat-message {
	max-width: 78%;
	border-radius: 16px;
	padding: 12px 14px;
	border: 1px solid #e5e7eb;
	background: #fafafa;
	text-align: left;
	word-break: break-word;
}

/* user / expert screen: mine or other */
.chat-message.is-mine {
	margin-left: auto;
	background: #eaf3ff;
	border-color: #cfe4ff;
}

.chat-message.is-other {
	margin-right: auto;
	background: #ffffff;
	border-color: #e5e7eb;
	color: #333;
}

/* admin check screen: role-based placement */
.chat-message.is-user,
.chat-message.is-expert {
	margin-right: auto;
}

.chat-message.is-user {
	background: #ffffff;
	border-color: #dbeafe;
}

.chat-message.is-expert {
	background: #fafafa;
	border-color: #e5e7eb;
}

.chat-message.is-admin {
	margin-left: auto;
	background: #fff7ed;
	border-color: #fed7aa;
}

/* system message */
.chat-message.message-type-system {
	max-width: 100%;
	margin: 4px auto;
	background: #f3f4f6;
	color: #6b7280;
	text-align: center;
	border-style: dashed;
}

/* ---- Message Meta ---- */
.chat-message-meta {
	font-size: 13px;
	color: #6b7280;
	margin-bottom: 6px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
}

.sender-name {
	font-weight: 700;
	color: #374151;
}

.message-date {
	white-space: nowrap;
}

.chat-message-body {
	line-height: 1.8;
	white-space: normal;
	word-break: break-word;
}

.chat-system-message {
	font-size: 14px;
	line-height: 1.7;
}

/* ---- Role Badge ---- */
.chat-role-badge {
	display: inline-block;
	margin-left: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 11px;
	font-weight: 700;
	vertical-align: middle;
	background: #eef2f7;
	color: #475569;
}

.chat-role-user {
	background: #e0f2fe;
	color: #075985;
}

.chat-role-main_expert {
	background: #ede9fe;
	color: #5b21b6;
}

.chat-role-support_expert {
	background: #ecfdf5;
	color: #047857;
}

.chat-role-admin,
.chat-role-admin_viewer {
	background: #fff7ed;
	color: #c2410c;
}

/* ---- Attachment ---- */
.chat-attachment {
	margin-top: 8px;
	padding: 8px 10px;
	border-radius: 8px;
	background: #fff;
	border: 1px solid #ddd;
}

.attachment-size,
.help-text {
	color: #666;
	font-size: 13px;
}

/* ---- Modal ---- */
.chat-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 2000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.chat-modal-overlay.is-open {
	display: flex;
}

.chat-modal {
	background: #fff;
	border-radius: 12px;
	width: 100%;
	max-width: 640px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	overflow: hidden;
}

.chat-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 18px 20px;
	border-bottom: 1px solid #e5e5e5;
}

.chat-modal-header h3 {
	margin: 0;
	font-size: 20px;
}

.chat-modal-close {
	border: 0;
	background: transparent;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
}

.chat-modal-body {
	padding: 20px;
}

.chat-modal-note {
	color: #666;
	line-height: 1.7;
	margin-bottom: 16px;
}

.chat-modal-body textarea {
	width: 100%;
	resize: vertical;
}

.chat-modal-actions {
	display: flex;
	justify-content: center;
	gap: 12px;
	padding: 16px 20px 20px;
	border-top: 1px solid #e5e5e5;
}

.support-request-reason-row td {
	background: #fafafa;
	text-align: left !important;
}

.support-request-reason-current-box {
	border-left: 4px solid #6f42c1;
}

.support-request-reason-box {
	background: #f8f5ff;
	border: 1px solid #e4d8ff;
	border-left: 4px solid #6f42c1;
	border-radius: 8px;
	padding: 12px 14px;
	line-height: 1.8;
	text-align: left;
}

.support-request-reason-text {
	margin-top: 6px;
	color: #374151;
	word-break: break-word;
}

/* ============================== */
/* 追加専門家：辞退理由 */
/* ============================== */
.support-request-reject-row td {
	background: #fffafa;
	text-align: left !important;
}

.support-request-reject-current-box {
	border-left: 4px solid #dc3545;
}

.support-request-reject-box {
	background: #fff5f5;
	border: 1px solid #f5c2c7;
	border-left: 4px solid #dc3545;
	border-radius: 8px;
	padding: 12px 14px;
	line-height: 1.8;
	text-align: left;
}

.support-request-reject-text {
	margin-top: 6px;
	color: #842029;
	word-break: break-word;
}

/* ============================== */
/* B123 追加専門家選択 */
/* ============================== */
.support-expert-select-row {
	cursor: pointer;
	transition: background-color 0.15s ease, box-shadow 0.15s ease;
}

.support-expert-select-row:hover {
	background: #f8fbff;
}

.support-expert-select-row.is-selected {
	background: #eaf3ff;
	box-shadow: inset 4px 0 0 #0d6efd;
}

.support-expert-check {
	cursor: pointer;
	transform: scale(1.15);
}

.support-select-note {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
}

.support-select-note-ok {
	background: #ecfdf5;
	color: #047857;
}

.support-select-note-rejected {
	background: #fff7ed;
	color: #c2410c;
}

.support-select-note-pending {
	background: #eff6ff;
	color: #1d4ed8;
}

.support-select-note-joined {
	background: #ede9fe;
	color: #5b21b6;
}

.support-select-note-disabled {
	background: #f3f4f6;
	color: #6b7280;
}

.reservation-action-status {
	max-width: 520px;
	margin: 0 auto 16px;
	text-align: center;
	line-height: 1.7;
}

.reservation-action-buttons {
	display: flex;
	justify-content: center;
	align-items: stretch;
	gap: 24px;
	flex-wrap: wrap;
}

.reservation-action-buttons .btn {
	min-width: 220px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 767.98px) {
	.reservation-action-buttons {
		gap: 12px;
	}

	.reservation-action-buttons .btn {
		width: 100%;
		min-width: 0;
	}
}
/* ---- Mobile ---- */
@media (max-width: 600px) {
	.chat-page {
		padding: 16px 8px;
	}

	.chat-header-box,
	.chat-info-box,
	.chat-message-box,
	.chat-post-box,
	.chat-action-box,
	.chat-post-disabled {
		padding: 16px;
	}

	.chat-messages {
		padding: 12px;
	}

	.chat-message {
		max-width: 92%;
	}

	.chat-message-meta {
		display: block;
	}

	.message-date {
		display: block;
		margin-top: 4px;
	}
}

/* ============================ User Avatar ============================ */
.user-avatar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  vertical-align: middle;
}
.user-avatar--inline {
  display: inline-flex;
}
.user-avatar__link {
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
}
.user-avatar__image,
.user-avatar__initial {
  border-radius: 50%;
  flex-shrink: 0;
  box-sizing: border-box;
}
.user-avatar__image {
  object-fit: cover;
  background: #fff;
  border: 1px solid #4f7be8;
}
.user-avatar__initial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #4f7be8;
  border: 1px solid #4f7be8;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}
.user-avatar--xs .user-avatar__image,
.user-avatar--xs .user-avatar__initial {
  width: 28px;
  height: 28px;
  font-size: 12px;
}
.user-avatar--sm .user-avatar__image,
.user-avatar--sm .user-avatar__initial {
  width: 38px;
  height: 38px;
  font-size: 14px;
}
.user-avatar--md .user-avatar__image,
.user-avatar--md .user-avatar__initial {
  width: 48px;
  height: 48px;
  font-size: 18px;
}
.user-avatar--lg .user-avatar__image,
.user-avatar--lg .user-avatar__initial {
  width: 64px;
  height: 64px;
  font-size: 24px;
}
.user-avatar--xl .user-avatar__image,
.user-avatar--xl .user-avatar__initial {
  width: 90px;
  height: 90px;
  font-size: 32px;
}
.user-avatar__name {
  font-weight: 600;
  color: inherit;
}
.user-avatar--with-name {
  gap: 10px;
}

.icon-pending-preview {
  position: relative;
  display: inline-block;
  vertical-align: top;
}
.icon-pending-preview__clear {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: #6c757d;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  z-index: 1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.icon-pending-preview__clear:hover {
  background: #495057;
  color: #fff;
}

.dashboard-user-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
}
.dashboard-user-link:hover {
  text-decoration: none;
  color: inherit;
}
.user-avatar-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.chat-member-item,
.chat-message-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.post-avatar {
  background: transparent;
  color: inherit;
}
.post-avatar .user-avatar {
  gap: 0;
}
.post-avatar .user-avatar__image,
.post-avatar .user-avatar__initial {
  width: 38px;
  height: 38px;
}

/* ******************* スレッド・コミュニティ ******************* */
.fmreport-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 10px 40px;
  text-align: left;
}
.fmreport-page > .fmreport-title {
  text-align: center;
}

.thread-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 20px auto;
}
.thread-toolbar .btn {
  width: auto;
  flex: 0 0 auto;
}
.thread-toolbar--center {
  justify-content: center;
}
.thread-toolbar .btn_login {
  min-width: 180px;
  max-width: 220px;
}
.thread-toolbar .btn_clear {
  min-width: 100px;
  max-width: 120px;
}
.thread-toolbar .btn_clear--wide {
  min-width: 120px;
  max-width: 140px;
}
.thread-toolbar .btn_clear--back,
.btn_clear--back {
  min-width: 180px;
}
.btn_clear--profile-back {
  min-width: 160px;
}

.thread-action-back {
  margin: 20px auto;
}
.thread-action-back .btn {
  width: auto;
  max-width: 240px;
}
.thread-action-back--medium {
  max-width: 800px;
}
.thread-action-back--wide {
  max-width: 100%;
}
.thread-action-back--narrow {
  max-width: 700px;
}

.thread-card {
  margin: 20px auto;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px 24px;
  background: #fff;
}
.thread-card--narrow {
  max-width: 700px;
}
.thread-card--medium {
  max-width: 800px;
}
.thread-card--wide {
  max-width: 900px;
}
.thread-card--center {
  text-align: center;
}

.thread-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.thread-card-header__body {
  text-align: left;
  flex: 1;
}
.thread-card-header__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  white-space: nowrap;
}

.thread-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.thread-section-header .btn {
  width: auto;
  max-width: 200px;
  flex-shrink: 0;
  white-space: normal;
  line-height: 1.3;
  padding: 6px 14px;
  font-size: 13px;
}
.thread-section-title {
  margin: 0;
}
.thread-section-title--lg {
  font-size: 20px;
  margin-bottom: 16px;
}

.thread-meta {
  margin: 0 0 6px;
}
.thread-meta--muted {
  font-size: 13px;
  color: #888;
}
.thread-meta--sub {
  font-size: 14px;
  color: #666;
  margin-bottom: 6px;
}
.thread-meta--date {
  font-size: 12px;
  color: #999;
}
.thread-text {
  margin: 0 0 8px;
  line-height: 1.7;
}
.thread-text--body {
  line-height: 1.8;
}

.thread-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  vertical-align: middle;
}
.thread-badge--approval {
  background: #fff3cd;
  color: #8a6d00;
}
.thread-badge--unread {
  background: #ff4d4f;
  color: #fff;
}
.thread-badge--expert {
  background: #e8f0ff;
  color: #4f7be8;
}
.thread-badge--user {
  background: #f2f2f2;
  color: #666;
}
.thread-badge--active {
  background: #e8f0ff;
  color: #4f7be8;
}

.thread-link {
  color: #4f7be8;
  text-decoration: none;
  font-size: 13px;
}
.thread-link:hover {
  text-decoration: underline;
}
.thread-link--underline {
  text-decoration: underline;
}
.thread-link--danger {
  color: #c94a4a;
}
.thread-link--report {
  color: #d9534f;
  text-decoration: underline;
}

.thread-link--reported {
  cursor: default;
  text-decoration: none;
  font-weight: bold;
}

.thread-text--moderated,
.thread-post-item--moderated .thread-text--body,
.reply-card--moderated .thread-text--body,
.reply-card-child--moderated .thread-text--body {
  color: #888;
  font-style: italic;
}

.thread-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.thread-inline-form {
  display: block;
  margin: 0;
  width: 100%;
}
.thread-pending-label {
  display: block;
  margin: 0;
  color: #888;
  font-size: 12px;
  text-align: center;
  padding: 4px 0;
}
.thread-form-spacer {
  margin-left: 6px;
}

/* SRB300 ルーム一覧：操作列 */
.fmreport-table .col-action {
  width: 130px;
  min-width: 120px;
}
.fmreport-table .col-members {
  width: 72px;
}
.fmreport-table .thread-action-cell {
  text-align: left;
  vertical-align: middle;
}
.thread-action-buttons {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
}
.thread-action-buttons .btn {
  width: 100%;
  min-width: 0;
  margin: 0;
}
.thread-action-buttons .thread-inline-form .btn {
  width: 100%;
}

.thread-form {
  max-width: 800px;
  margin: 30px auto;
}
.thread-form--narrow {
  max-width: 700px;
  margin: 20px auto;
}
.thread-form-card {
  max-width: 700px;
  margin: 20px auto;
  border: 1px solid #ddd;
  padding: 24px;
  border-radius: 10px;
  background: #fff;
}
.thread-form-group {
  margin-top: 15px;
}
.thread-form-group--lg {
  margin-top: 20px;
  margin-bottom: 20px;
}
.thread-form-actions {
  margin-top: 20px;
}
.thread-form-actions--right {
  text-align: right;
}
.thread-readonly-field {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
}

.thread-alert-box {
  padding: 12px;
  background: #f7f9ff;
  border: 1px solid #dbe5ff;
  border-radius: 8px;
  margin-bottom: 15px;
}
.thread-quote-box {
  background: #f8f9fa;
  padding: 14px;
  border-radius: 8px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.thread-empty-state {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 30px;
  text-align: center;
  color: #888;
}
.thread-empty-text {
  color: #888;
}

.thread-topic-card {
  border: 1px solid #ddd;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  background: #fff;
}
.thread-topic-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.thread-topic-header__body {
  text-align: left;
  flex: 1;
}
.thread-topic-header__actions {
  white-space: nowrap;
}
.thread-topic-posts {
  margin-top: 18px;
}
.thread-posts-title {
  margin-bottom: 10px;
}
.thread-post-item {
  border-radius: 10px;
  background: #f6f6f6;
  max-width: 88%;
  padding: 12px 14px;
  scroll-margin-top: 120px;
  margin-top: 12px;
  margin-left: 0;
  margin-right: auto;
}
.thread-post-item--mine {
  margin-left: auto;
  margin-right: 0;
  background: #e8f0ff;
  text-align: right;
}
.thread-post-item--mine .post-user-row {
  flex-direction: row-reverse;
}
.thread-post-item--mine .post-user-info {
  text-align: right;
}
.thread-post-item--mine .post-user-name-row {
  justify-content: flex-end;
}
.thread-post-item--mine .thread-text--body {
  text-align: right;
}
.thread-post-item--mine .thread-post-actions,
.thread-post-item--mine .thread-post-actions--reply {
  text-align: right;
}
.reply-card--mine {
  margin-left: auto;
  margin-right: 0;
  max-width: 88%;
  background: #e8f0ff;
  border-left: none;
  border-right: 4px solid #4f7be8;
  text-align: right;
}
.reply-card-child--mine {
  margin-left: auto;
  margin-right: 0;
  max-width: 88%;
  background: #edf2ff;
  border-left: none;
  border-right: 3px solid #9bb3ff;
  text-align: right;
}
.thread-post-actions {
  margin-top: 6px;
}
.thread-post-actions--reply {
  margin-top: 8px;
}
.thread-post-action-group {
  margin-left: 12px;
}
.thread-post-action-sep {
  margin: 0 5px;
}
.thread-reply-author {
  font-size: 13px;
  color: #4f7be8;
  margin-bottom: 5px;
  font-weight: bold;
}
.thread-reply-submit {
  margin-top: 6px;
}
.thread-new-post-form {
  margin-top: 20px;
}
.thread-new-post-actions {
  margin-top: 10px;
  text-align: right;
}

.thread-list-row {
  border-top: 1px solid #eee;
  padding: 12px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.thread-list-row__name {
  font-weight: bold;
}
.thread-list-row__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.thread-list-row__actions--wide {
  gap: 10px;
}

.thread-notify-item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 12px;
  background: #fff;
}
.thread-notify-item--unread {
  background: #f7f9ff;
}
.thread-topic-list-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  background: #fff;
}
.thread-topic-list-card__body {
  flex: 1;
  min-width: 0;
}
.thread-topic-list-card__action {
  flex-shrink: 0;
}
.thread-text--preview {
  color: #555;
  margin-bottom: 8px;
}
.thread-card--compact {
  margin-bottom: 16px;
  padding: 12px 16px;
}
.thread-meta--room {
  margin-bottom: 0;
}
.notify-tab-list {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.notify-tab-list .btn,
.notify-tab-list .btn:hover {
  width: auto;
  min-width: 0;
  flex: 0 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
.thread-topic-list-card__action .btn,
.thread-topic-list-card__action .btn:hover {
  width: auto;
  min-width: 5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}
.thread-post-item .js-expert-offer-btn,
.thread-post-item .js-expert-offer-btn:hover {
  width: auto;
  min-width: 0;
  white-space: nowrap;
}
#expertOfferModal .modal-footer .btn,
#expertOfferModal .modal-footer .btn:hover {
  width: auto;
  min-width: 6rem;
}
.support-inquiry-list-actions .btn,
.support-inquiry-list-actions .btn:hover {
  width: auto;
}
.support-inquiry-header-actions .btn,
.support-inquiry-header-actions .btn:hover {
  width: auto;
}
.support-inquiry-form-actions {
  text-align: left;
  margin-top: 1rem;
}
.support-inquiry-form-actions--submit {
  text-align: center;
  margin-top: 1.5rem;
}
.support-inquiry-submit-btn,
.support-inquiry-submit-btn:hover {
  min-width: 14rem;
  padding: 0.65rem 2rem;
  font-size: 1.05rem;
}
.support-inquiry-urgency-group {
  text-align: left;
}
.support-inquiry-urgency-group .form-check {
  text-align: left;
  margin-bottom: 0.5rem;
}
.support-inquiry-urgency-group .form-check-label {
  text-align: left;
}
.notify-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #e55353;
  color: #fff;
  font-size: 12px;
  line-height: 1;
}
.thread-notify-title {
  font-weight: bold;
  margin-bottom: 6px;
}
.thread-notify-status {
  font-size: 14px;
  color: #333;
}
.thread-notify-status--unread {
  color: #4f7be8;
  font-weight: bold;
}
.thread-notify-status--read {
  color: #999;
}
.thread-notify-body {
  margin-top: 6px;
}
.thread-notify-date {
  margin-top: 6px;
  font-size: 12px;
  color: #888;
}
.thread-notify-action {
  margin-top: 10px;
}

.thread-bookmark-item {
  border: 1px solid #ddd;
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  margin-bottom: 14px;
}
.thread-bookmark-quote {
  padding: 12px;
  background: #f8f9fa;
  border-radius: 8px;
  line-height: 1.7;
  margin-bottom: 12px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 18px;
}
.profile-name {
  margin: 0 0 6px;
}
.profile-registered {
  font-size: 13px;
  color: #888;
}
.profile-bio {
  margin-top: 10px;
  color: #555;
  line-height: 1.7;
}
.profile-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.profile-stat-item {
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  background: #fafafa;
}
.profile-stat-value {
  font-size: 24px;
  font-weight: bold;
}
.profile-stat-label {
  font-size: 13px;
  color: #888;
}
.profile-post-item {
  border-top: 1px solid #eee;
  padding: 14px 0;
}
.profile-post-date {
  font-size: 13px;
  color: #888;
  margin-bottom: 4px;
}
.profile-post-title {
  font-weight: bold;
  margin-bottom: 6px;
}
.profile-post-body {
  line-height: 1.7;
  color: #333;
  margin-bottom: 8px;
}
.profile-avatar-center {
  text-align: center;
  margin-bottom: 20px;
}

/* 投稿・返信（SRB301） */
.mention-link {
  color: #4f7be8;
  font-weight: bold;
  text-decoration: none;
}
.mention-link:hover {
  text-decoration: underline;
}
.post-action-link {
  color: #4f7be8;
  text-decoration: underline;
  font-size: 13px;
  cursor: pointer;
}
.post-edit-link {
  color: #555;
  text-decoration: underline;
  font-size: 13px;
  margin-right: 8px;
}
.post-delete-link {
  color: #c94a4a;
  text-decoration: underline;
  font-size: 13px;
}
.expert-consult-link {
  margin-left: 8px;
  color: #28a745;
  text-decoration: underline;
  font-size: 13px;
}
.like-btn {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #ddd;
  border-radius: 14px;
  color: #666;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}
.like-btn.liked {
  background: #4f7be8;
  color: #fff;
  border-color: #4f7be8;
}
.bookmark-btn {
  display: inline-block;
  padding: 3px 10px;
  border: 1px solid #ddd;
  border-radius: 14px;
  color: #666;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  margin-left: 6px;
}
.bookmark-btn.bookmarked {
  background: #f5a623;
  color: #fff;
  border-color: #f5a623;
}
.reply-box {
  display: none;
  margin-top: 10px;
  margin-left: 30px;
}
.reply-card {
  margin-left: 40px;
  margin-top: 10px;
  padding: 12px;
  background: #f7f9ff;
  border-left: 4px solid #4f7be8;
  border-radius: 4px;
  scroll-margin-top: 120px;
}
.reply-card-child {
  margin-left: 70px;
  margin-top: 10px;
  padding: 12px;
  background: #f9fbff;
  border-left: 3px solid #9bb3ff;
  border-radius: 4px;
  scroll-margin-top: 120px;
}
.post-user-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.post-user-info {
  flex: 1;
  min-width: 0;
}
.post-user-name-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}
.post-user-name {
  color: #333;
  font-weight: bold;
  text-decoration: none;
}
.post-user-name:hover {
  text-decoration: underline;
}
.expert-badge {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  background: #e8f0ff;
  color: #4f7be8;
  border-radius: 12px;
  font-size: 11px;
  font-weight: bold;
}
.like-users {
  margin-top: 4px;
  font-size: 12px;
  color: #888;
}
.consult-btn {
  display: inline-block;
  width: auto;
  margin-top: 0;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #198754;
  background: #fff;
  border: 1px solid #198754;
  border-radius: 4px;
  text-decoration: none;
  line-height: 1.4;
}
.consult-btn:hover {
  color: #fff;
  background: #198754;
  text-decoration: none;
}

.thread-admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.thread-admin-toolbar .btn {
  width: auto;
  max-width: 240px;
}

@media (max-width: 767px) {
  .thread-toolbar {
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
  }
  .thread-toolbar .btn {
    width: 100%;
    max-width: none;
  }
  .thread-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .thread-section-header .btn {
    max-width: none;
    width: 100%;
  }
}

.fmreport-table .col-type {
  width: 100px;
}

/* SRC105 専門家一覧テーブル */
.expert-table {
  table-layout: fixed;
  min-width: 960px;
}
.expert-table .col-name {
  width: 20%;
}
.expert-table .col-org {
  width: 14%;
}
.expert-table .col-specialty {
  width: 34%;
}
.expert-table .col-status {
  width: 10%;
}
.expert-table .col-accept {
  width: 10%;
}
.expert-table .col-action {
  width: 12%;
}
.expert-table td.col-name,
.expert-table td.col-org,
.expert-table td.col-specialty {
  text-align: left;
}
.expert-table td.col-org {
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-height: 1.5;
}
.expert-table td.col-status,
.expert-table td.col-accept {
  white-space: nowrap;
}
.expert-table td.col-action .btn {
  width: auto;
  min-width: 0;
}
.expert-specialty-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-start;
}
.expert-specialty-tags .badge {
  font-weight: normal;
  white-space: nowrap;
}
.expert-status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: bold;
  white-space: nowrap;
}
.expert-status-badge--online {
  background: #e8f7ee;
  color: #1f8b4c;
}
.expert-status-badge--offline {
  background: #f0f0f0;
  color: #666;
}
.expert-status-badge--accepting {
  background: #eef5ff;
  color: #1f6fd1;
}
.expert-status-badge--stopped {
  background: #fff3e0;
  color: #c77700;
}

/* 管理画面：スレッドFAQ化 */
.admin-faq-count {
  text-align: center;
}
.admin-faq-count-badge {
  display: inline-block;
  min-width: 34px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4f46e5;
  font-weight: bold;
  text-align: center;
}
.admin-faq-no-answer {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: bold;
}

/* SNSリンク（ブランドアイコン） */
.sns-link-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.sns-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid #dee2e6;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease, box-shadow 0.15s ease;
}
.sns-link-btn:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}
.sns-link-btn--x.bg-dark {
  border-color: #212529;
}
.sns-link-btn--x.bg-dark:hover {
  background: #343a40 !important;
  border-color: #343a40;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.sns-link-icon {
  display: block;
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.sns-link-btn--facebook {
  width: auto;
  min-width: 44px;
  padding: 0 10px;
}
.sns-link-btn--facebook .sns-link-icon {
  width: auto;
  height: 22px;
  max-width: 72px;
}
.sns-link-icon-fallback {
  font-size: 1.5rem;
  color: #6c757d;
  line-height: 1;
}

/* =========================
   App Shell (SRB/SRC/SRD)
   システムイメージ準拠
========================= */
:root {
  --app-primary: #2563eb;
  --app-primary-hover: #1d4ed8;
  --app-primary-soft: #eff6ff;
  --app-bg: #f9fafb;
  --app-surface: #ffffff;
  --app-border: #e5e7eb;
  --app-text: #111827;
  --app-text-muted: #6b7280;
  --app-sidebar-width: 240px;
  --app-header-height: 64px;
  --app-radius: 12px;
  --app-shadow: 0 1px 3px rgba(17, 24, 39, 0.08);
}

.app-body {
  text-align: left;
  background: var(--app-bg);
  color: var(--app-text);
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 100vh;
}

.app-body--user {
  --app-primary: #2563eb;
  --app-primary-hover: #1d4ed8;
  --app-primary-soft: #eff6ff;
  --app-bg: #eff6ff;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 50%, #f9fafb 100%);
}

.app-body--expert {
  --app-primary: #059669;
  --app-primary-hover: #047857;
  --app-primary-soft: #ecfdf5;
  --app-bg: #ecfdf5;
  background: linear-gradient(180deg, #ecfdf5 0%, #f8fafc 50%, #f9fafb 100%);
}

.app-body--user .app-brand-logo {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.app-body--expert .app-brand-logo {
  background: linear-gradient(135deg, #34d399, #059669);
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 1030;
  min-height: var(--app-header-height);
  background: var(--app-surface);
  border-bottom: 1px solid var(--app-border);
  box-shadow: var(--app-shadow);
  padding: 0.5rem 0;
  flex-shrink: 0;
}

.app-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
  min-height: calc(var(--app-header-height) - 1rem);
  padding: 0.35rem 1.5rem;
}

.app-header-left,
.app-header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.app-sidebar-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  color: var(--app-text);
  text-decoration: none;
}

.app-sidebar-toggle:hover,
.app-sidebar-toggle:focus {
  color: var(--app-primary);
}

.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--app-text);
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.app-brand:hover,
.app-brand:focus {
  color: var(--app-primary);
}

.app-brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  flex-shrink: 0;
}

.app-header-notify {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  color: var(--app-text-muted);
  text-decoration: none;
}

.app-header-notify:hover,
.app-header-notify:focus {
  background: var(--app-primary-soft);
  color: var(--app-primary);
}

.app-header-notify .header-notify-badge {
  position: absolute;
  top: 2px;
  right: 2px;
}

.app-header-user {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: var(--app-text);
  text-decoration: none;
}

.app-header-user:hover,
.app-header-user:focus {
  background: #f3f4f6;
  color: var(--app-text);
}

.app-header-user-name {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.app-header-logout {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--app-border);
  color: var(--app-text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.app-header-logout:hover,
.app-header-logout:focus {
  background: #f9fafb;
  color: var(--app-text);
}

.app-shell {
  display: flex;
  align-items: stretch;
  flex: 1 0 auto;
  min-height: 0;
}

.app-sidebar {
  width: var(--app-sidebar-width);
  flex-shrink: 0;
  background: var(--app-surface);
  border-right: 1px solid var(--app-border);
  padding: 1.25rem 0.75rem;
}

.app-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.app-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  color: var(--app-text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.app-sidebar-link:hover,
.app-sidebar-link:focus {
  background: #f3f4f6;
  color: var(--app-text);
}

.app-sidebar-link.is-active {
  background: var(--app-primary-soft);
  border-left-color: var(--app-primary);
  color: var(--app-primary);
}

.app-sidebar-icon {
  font-size: 1.1rem;
  width: 1.25rem;
  text-align: center;
  flex-shrink: 0;
}

.app-sidebar-badge {
  margin-left: auto;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.25rem;
  text-align: center;
}

.app-sidebar-divider {
  height: 1px;
  margin: 0.5rem 0.25rem;
  background: var(--app-border);
}

.app-sidebar-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(17, 24, 39, 0.45);
}

.app-main {
  flex: 1;
  min-width: 0;
  padding: 1.75rem 1.5rem 2.5rem;
}

.app-main > .container {
  flex: none;
  width: 100%;
  margin-bottom: 1.5rem;
}

.app-main .container,
.app-main .fmreport-page,
.app-main .consultation-detail-page,
.app-main .consultation-result-page {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.app-main h1,
.app-main h2,
.app-main h3,
.app-main .fmreport-title {
  text-align: left;
  color: var(--app-text);
}

.app-main h2.mb-4,
.app-main .fmreport-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.app-main .lead,
.app-main .fmreport-subtitle {
  color: var(--app-text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.app-footer {
  flex-shrink: 0;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
  margin-top: auto;
}

.app-footer-copy {
  margin: 0;
  text-align: center;
  color: var(--app-text-muted);
  font-size: 0.85rem;
}

.app-main .detail-box,
.app-main .consultation-box,
.app-main .ai-answer-box,
.app-main .expert-candidate-box,
.app-main .dashboard-card,
.app-main .fmreport-list-card {
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

.app-main .input_alert {
  text-align: left;
}

.app-main .table {
  text-align: left;
}

.app-main .profile-edit-actions,
.app-main .form_confirm > .row.my-4,
.app-main .form_confirm > .row.my-5 {
  margin-bottom: 2rem;
  padding-bottom: 0.5rem;
}

@media (min-width: 992px) {
  .app-sidebar-toggle {
    display: none;
  }

  .app-sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    top: var(--app-header-height);
    left: 0;
    bottom: 0;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--app-shadow);
  }

  .app-sidebar.is-open {
    transform: translateX(0);
  }

  .app-header-user-name {
    display: none;
  }

  .app-header-logout {
    padding: 0.45rem 0.65rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 575.98px) {
  .app-main {
    padding: 1rem 0.75rem 1.5rem;
  }

  .app-header-inner {
    padding: 0 0.75rem;
  }
}

/* =========================
   B000 ランディング
========================= */
.landing-body {
  background: linear-gradient(180deg, #eff6ff 0%, #f9fafb 45%, #ffffff 100%);
}

.landing-body .content {
  background: transparent;
  text-align: left;
}

.landing-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1rem 2rem;
  flex: none;
}

.landing-page {
  padding: 2rem 0 1rem;
}

.landing-hero {
  text-align: center;
  margin-bottom: 2.5rem;
}

.landing-hero-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.landing-hero-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
  flex-shrink: 0;
}

.landing-hero-title {
  margin: 0;
  font-size: 2.25rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: 0.02em;
}

.landing-hero-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #6b7280;
}

.landing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.landing-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.06);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.landing-card-head {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.landing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 12px;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.landing-card-icon--login {
  background: #eff6ff;
  color: #2563eb;
}

.landing-card-icon--signup {
  background: #ecfdf5;
  color: #059669;
}

.landing-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #111827;
}

.landing-card-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #6b7280;
}

.landing-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: auto;
}

.landing-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.98rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  width: 100%;
  max-width: none;
}

.landing-btn:hover,
.landing-btn:focus {
  transform: translateY(-1px);
  text-decoration: none;
}

.landing-btn--primary {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

.landing-btn--primary:hover,
.landing-btn--primary:focus {
  background: #1d4ed8;
  color: #fff;
}

/* 専門家=緑（signup 系クラス名は歴史的経緯で残置） */
.landing-btn--signup {
  background: #059669;
  color: #fff;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.24);
}

.landing-btn--signup:hover,
.landing-btn--signup:focus {
  background: #047857;
  color: #fff;
}

.landing-btn--primary-invert {
  background: #fff;
  color: #2563eb;
  border: 2px solid #2563eb;
}

.landing-btn--primary-invert:hover,
.landing-btn--primary-invert:focus {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #1d4ed8;
}

.landing-btn--signup-invert {
  background: #fff;
  color: #059669;
  border: 2px solid #059669;
}

.landing-btn--signup-invert:hover,
.landing-btn--signup-invert:focus {
  background: #ecfdf5;
  color: #047857;
  border-color: #047857;
}

.landing-btn--secondary {
  background: #fff;
  color: #374151;
  border: 1px solid #d1d5db;
}

.landing-btn--secondary:hover,
.landing-btn--secondary:focus {
  background: #f9fafb;
  color: #111827;
  border-color: #9ca3af;
}

@media (max-width: 767.98px) {
  .landing-page {
    padding: 1.25rem 0 0.5rem;
  }

  .landing-hero {
    margin-bottom: 1.75rem;
  }

  .landing-hero-title {
    font-size: 1.85rem;
  }

  .landing-grid {
    grid-template-columns: 1fr;
  }

  .landing-card-actions {
    grid-template-columns: 1fr;
  }
  #btn_zipcode {
   font-size: 1rem;
  }
}

.article-inline-image {
  max-width: 100%;
}

.article-inline-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.article-textarea-wrap {
  position: relative;
}

.article-textarea-toolbar {
  position: absolute;
  top: -0.5rem;
  right: -0.25rem;
  z-index: 2;
}

.article-textarea-wrap .article-section-textarea {
  padding-top: 2.5rem;
}

.article-textarea-hint {
  margin-top: 0.35rem;
}
