@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_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;
  padding: 1rem;
  background: #FFF;
  background-image: url(../manage/img/header_bg.png);
  background-repeat: repeat-x;
}
.admin_header .title, .admin_header .account{
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: flex-start;
  max-width: 750px;
  color: #fff;
}

.admin_header .account .name, .admin_header .account .btn_logout{
  flex: 1;
  color: #fff;
  max-width: 750px;
}
.name_btn {
  text-decoration: none;
  color: #1f57d6 !important;
  border-color: #1f57d6 !important;
}
.name_btn:hover {
  background: #1f57d6 !important;
  color: #FFF !important;
  border-color: #FFF !important;
}
.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);
}
/* 規約 */
.kiyaku{
  width: 90%;
  height: 20rem;
  overflow-y: scroll;
  margin: 0 auto 20px auto;
  padding: 1rem;
  border: 1px solid #777;
}
.kiyaku h3,.kiyaku h4,.kiyaku p,.kiyaku ul,.kiyaku li{
  font-weight: normal !important;
  font-size: 1rem;
}
.kiyaku h3,.kiyaku h4{
  margin-top: 1rem;
}
.kiyaku ul{
  margin: 0 !important;
}
.kiyaku li{
  list-style-type: none;
}

.kiyaku2{
  height: 9rem;
}

.disc_li {
  list-style-type: disc;
}
.disc_li .btn {
  margin: 2px 0;
}
/* 各表示基本 */
.pc_show {
  display: block;
}
.sp_show {
  display: block;
}
/* ボタン基本 */
.btn , .btn:hover {
  width: 100%;
  color:#fff;
  text-align: center;
  text-decoration: none;
  min-width: 100px;
}
/* 一覧へ */
.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: 100px;
  color: white;
  background:#495057;
}
.btn_link:hover{
  width: 100px;
  color: white;
  background:#343a40;
}
.btn_download{
  width: 200px;
  color: white;
  background:#17a2b8;
  display: grid;
  margin: 1rem;
  margin-left: auto;
}
.btn_download:hover{
  width: 200px;
  color: white;
  background:#138496;
}
.user_list:hover{
  background: #d3d4d5;
}
/* ============================ 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;
}
.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;
}

.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;
}

.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-radius: 4px;
  text-decoration: none;
}

.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-group {
  margin-bottom: 24px;
}

.fmreport-detail-group.is-multi {
  border: 2px solid #d6e4f0;
  border-radius: 10px;
  padding: 14px;
  background: #f8fbfd;
}

.fmreport-detail-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid #d6e4f0;
}

.fmreport-detail-group-title {
  margin: 0;
  font-size: 18px;
  color: #2c5f8a;
}

.fmreport-detail-group-label {
  font-size: 14px;
  color: #555;
}

.fmreport-detail-item {
  margin-bottom: 12px;
}

.fmreport-detail-item:last-child {
  margin-bottom: 0;
}

.fmreport-detail-item-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.fmreport-detail-toggle {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid #2c5f8a;
  border-radius: 6px;
  background: #fff;
  color: #2c5f8a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.fmreport-detail-toggle:hover {
  background: #eef5fb;
}

.fmreport-detail-toggle-icon {
  line-height: 1;
  font-size: 18px;
}

.fmreport-detail-item-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.6;
}

.fmreport-detail-item-summary strong {
  font-size: 15px;
}

.fmreport-detail-item-meta {
  color: #555;
}

.fmreport-detail-item-body {
  margin-top: 12px;
}

.fmreport-detail-item-body[hidden] {
  display: none !important;
}

@media (max-width: 767px) {
  .fmreport-detail-item-header {
    flex-direction: row;
    align-items: flex-start;
  }

  .fmreport-detail-item-summary {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
}

.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-kpi-note {
  margin-bottom: 12px;
  font-size: 13px;
  color: #666;
}

.fmreport-kpi-table {
  width: 100%;
  border-collapse: collapse;
}

.fmreport-kpi-table th,
.fmreport-kpi-table td {
  border: 1px solid #e3e3e3;
  padding: 10px 12px;
}

.fmreport-kpi-table thead th {
  background: #f5f7fb;
  font-weight: bold;
}

.fmreport-kpi-table tbody th {
  width: 260px;
  background: #fafafa;
  text-align: left;
}

.fmreport-kpi-table tbody td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.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;
}

.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: flex;
  gap: 1rem;
}

.admin-sidebar {
  width: 206px;
  background: #ececec;
  border-right: 1px solid #d8dde6;
  padding: 12px 12px 20px;
  flex-shrink: 0;
}

.admin-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-sidebar-link {
  display: block;
  color: #374151;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 8px 2px;
  border-radius: 6px;
}

.admin-sidebar-link:hover,
.admin-sidebar-link:focus {
  color: #1f57d6;
  background: rgba(31, 87, 214, 0.06);
}

.admin-sidebar-link.is-active {
  color: #1f57d6;
  font-weight: 700;
}
.admin-main {
  flex: 1;
  padding: 20px;
  min-width: 0;
}

.admin-mobile-sidebar {
  display: none;
  padding: 12px 16px 0;
}

.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: flex;
	align-items: center;     /* 縦中央 */
	justify-content: center; /* 横中央 */
}
.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;
}
.contact-us-modal-body {
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.8;
}
.company-user-cell {
	line-height: 1.4;
}

.company-user-cell .company-name {
	font-size: 0.95rem;
	font-weight: 600;
	color: #333;
}

.company-user-cell .customer-name {
	font-size: 0.85rem;
	color: #666;
	margin-top: 0.15rem;
}
/************************
 *
 * 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;
  }

  /* 管理画面（検索フォーム/取込フォーム）のボタンが横に溢れないようにする */
  .fmreport-search-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .fmreport-search-actions button,
  .fmreport-search-actions a {
    width: 100%;
    max-width: none;
    margin-left: 0;
  }
}
@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;
  }
  .admin-sidebar {
    display: none;
  }
  .admin-mobile-sidebar {
    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.25rem
  }
  .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;
  }
}
