/* パブリックコメント分析ツール - カスタムスタイル */

body {
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* STEPバッジ */
.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #275c91, #1f4a76);
  color: white;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  letter-spacing: 0.05em;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* プロバイダタブ */
.provider-tab {
  padding: 0.6rem 1.1rem;
  font-size: 0.875rem;
  color: #64748b;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  font-weight: 500;
  transition: all 0.15s ease;
  cursor: pointer;
}
.provider-tab:hover {
  color: #275c91;
}
.provider-tab.active {
  color: #1f4a76;
  border-bottom-color: #275c91;
  font-weight: 700;
}

/* ドロップゾーン ドラッグ中 */
#dropzone.drag-over {
  background-color: #dbe8f4;
  border-color: #275c91;
  border-style: solid;
}

/* テーブル */
#resultTable tr {
  border-bottom: 1px solid #e2e8f0;
  transition: background-color 0.15s ease;
}
#resultTable tr:hover {
  background-color: #f0f5fb;
}
#resultTable td {
  padding: 0.6rem 0.75rem;
  vertical-align: top;
  font-size: 0.82rem;
  line-height: 1.55;
}
#resultTable td.opinion-cell {
  max-width: 280px;
  white-space: pre-wrap;
  word-break: break-word;
  color: #475569;
}
#resultTable td.response-cell {
  max-width: 340px;
  white-space: pre-wrap;
  word-break: break-word;
  background-color: #fafcff;
  border-left: 3px solid #8fb6da;
}

/* 賛否バッジ */
.stance-badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}
.stance-agree {
  background-color: #dcfce7;
  color: #15803d;
}
.stance-disagree {
  background-color: #fee2e2;
  color: #b91c1c;
}
.stance-neutral {
  background-color: #e0e7ef;
  color: #475569;
}
.stance-question {
  background-color: #fef3c7;
  color: #a16207;
}

/* 分類タグ */
.category-tag {
  display: inline-block;
  background-color: #e0e7ef;
  color: #1f4a76;
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* サマリーカード */
.summary-card {
  background: white;
  border: 1px solid #dbe8f4;
  border-radius: 0.5rem;
  padding: 0.8rem 1rem;
  text-align: center;
}
.summary-card .label {
  font-size: 0.7rem;
  color: #64748b;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.summary-card .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f4a76;
}

/* モーダル表示 */
#settingsModal.show {
  display: flex !important;
}

/* エラーステータス */
.error-row {
  background-color: #fef2f2 !important;
}
.error-row td {
  color: #991b1b;
}

/* ローディングスピナー */
.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid #8fb6da;
  border-top-color: #1f4a76;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-right: 0.4rem;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* トースト表示 */
#toast.show {
  display: block;
  animation: slideIn 0.3s ease;
}
@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* スクロールバー */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: #f0f5fb;
}
::-webkit-scrollbar-thumb {
  background: #8fb6da;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5f94c6;
}

/* 印刷時 */
@media print {
  header, footer, #settingsModal, #dropzone, #analyzeBtn, #exportBtn {
    display: none !important;
  }
}
