/* 氷川町 中小企業資金繰り支援（利子補給）ガイド 専用CSS */

:root {
  --hk-teal: #185f55;
  --hk-teal-dark: #0f3d36;
  --hk-teal-light: #e6f3f0;
  --hk-amber: #d97706;
  --hk-amber-light: #fef3c7;
  --hk-blue: #1d4ed8;
  --hk-blue-light: #eff6ff;
  --hk-ink: #1e293b;
  --hk-muted: #64748b;
  --hk-border: #cbd5e1;
  --hk-card-bg: #ffffff;
}

body.interest-page {
  color: var(--hk-ink);
  background-color: #f8fafc;
}

/* ヒーロー拡張 */
.interest-hero {
  background: linear-gradient(135deg, #0f3d36 0%, #185f55 50%, #23786c 100%);
  color: #ffffff;
  padding: 44px 20px 48px;
}

.interest-hero h1 {
  font-size: clamp(24px, 4.5vw, 36px);
  font-weight: 900;
  line-height: 1.3;
  margin: 12px 0 16px;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.interest-hero h1 small {
  display: block;
  font-size: clamp(14px, 2.5vw, 18px);
  font-weight: 700;
  color: #a7f3d0;
  margin-bottom: 6px;
}

.interest-hero h1 span {
  color: #fde047;
}

.interest-keyfacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.interest-keyfacts > div {
  background: #ffffff;
  border: 2px solid #0f766e;
  border-radius: 12px;
  padding: 16px 18px;
  color: #0f172a;
  box-shadow: 0 4px 12px rgba(15, 61, 54, 0.08), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.interest-keyfacts dt {
  font-size: 13px;
  font-weight: 800;
  color: #0f766e;
  margin-bottom: 6px;
}

.interest-keyfacts dd {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  margin: 0;
  color: #0f172a;
}

.interest-keyfacts dd small {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
  margin-left: 2px;
}

.interest-keyfacts small.keyfact-sub {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  margin-top: 4px;
}

.interest-keyfacts .keyfact-highlight {
  background: #fefce8;
  border: 2px solid #d97706;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
}

.interest-keyfacts .keyfact-highlight dt {
  color: #b45309;
}

.interest-keyfacts .keyfact-highlight dd {
  color: #92400e;
}

.interest-keyfacts .keyfact-highlight dd small {
  color: #78350f;
}

.interest-keyfacts .keyfact-highlight small.keyfact-sub {
  color: #b45309;
  font-weight: 800;
}

/* 比較テーブル */
.comparison-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 10px;
  border: 1px solid var(--hk-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  background: #ffffff;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 620px;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

.comparison-table thead th {
  background: #f1f5f9;
  font-weight: 800;
  color: #334155;
  border-bottom: 2px solid #cbd5e1;
}

.comparison-table tbody tr.highlight-row {
  background: #f0fdf4;
}

.comparison-table tbody tr.highlight-row td {
  border-left: 4px solid #16a34a;
  font-weight: 600;
}

.badge-best {
  display: inline-block;
  background: #16a34a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}

/* 制度カードグリッド */
.loan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.loan-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.loan-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.loan-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--hk-teal-light);
  color: var(--hk-teal-dark);
  margin-bottom: 10px;
}

.loan-card h3 {
  font-size: 18px;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0 0 10px;
  line-height: 1.4;
}

.loan-card-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
  color: #475569;
}

.loan-card-meta li {
  padding: 4px 0;
  border-bottom: 1px dashed #e2e8f0;
  display: flex;
  justify-content: space-between;
}

.loan-card-meta li strong {
  color: #0f172a;
}

/* シミュレーター */
.calc-box {
  background: #ffffff;
  border: 2px solid var(--hk-teal);
  border-radius: 14px;
  padding: 28px 24px;
  margin: 28px 0;
  box-shadow: 0 4px 14px rgba(24, 95, 85, 0.08);
}

.calc-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 800;
  color: var(--hk-teal-dark);
  margin: 0 0 20px;
}

.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.calc-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  margin-bottom: 6px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--hk-border);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  box-sizing: border-box;
}

.calc-field input:focus,
.calc-field select:focus {
  outline: none;
  border-color: var(--hk-teal);
  box-shadow: 0 0 0 3px rgba(24, 95, 85, 0.15);
}

.calc-result {
  background: var(--hk-teal-light);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.calc-result-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--hk-teal-dark);
  margin-bottom: 4px;
}

.calc-result-value {
  font-size: clamp(28px, 6vw, 42px);
  font-weight: 900;
  color: #0f3d36;
  line-height: 1.1;
  margin-bottom: 8px;
}

.calc-result-value small {
  font-size: 18px;
  font-weight: 700;
}

.calc-result-note {
  font-size: 12px;
  color: #475569;
  margin: 0;
}

/* フロータイムライン */
.step-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px 16px;
  position: relative;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.step-badge {
  display: inline-block;
  background: var(--hk-teal);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--hk-ink);
  margin: 0 0 8px;
}

.step-card p {
  font-size: 13px;
  color: #475569;
  margin: 0;
  line-height: 1.5;
}

/* 書類リスト */
.docs-list {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px 24px;
  margin: 20px 0;
}

.docs-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f1f5f9;
}

.docs-item:last-child {
  border-bottom: none;
}

.docs-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--hk-teal-light);
  color: var(--hk-teal-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.docs-body {
  flex: 1;
}

.docs-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--hk-ink);
  margin-bottom: 4px;
}

.docs-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.docs-download {
  display: flex;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

.docs-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  background: #f1f5f9;
  color: #334155;
  text-decoration: none;
  border: 1px solid #cbd5e1;
}

.docs-link-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* レスポンシブ */
@media (max-width: 640px) {
  .interest-hero {
    padding: 32px 16px 36px;
  }
  .interest-keyfacts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .calc-box {
    padding: 20px 16px;
  }
  .step-flow {
    grid-template-columns: 1fr;
  }
}
