/* ============================================================
   Makoto Loan Simulator v2 — style.css  接頭辞: mkls-
   ============================================================ */

.mkls-wrap *, .mkls-wrap *::before, .mkls-wrap *::after { box-sizing: border-box; }

.mkls-wrap {
  font-family: 'Hiragino Kaku Gothic ProN','Hiragino Sans',Meiryo,'Yu Gothic',sans-serif;
  max-width: 740px;
  margin: 0 auto 2.5em;
  color: #1a1a1a;
  line-height: 1.7;
}

/* YMYL 注意文 */
.mkls-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #fffbf0;
  border: 1.5px solid #e6c84a;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 13px;
  color: #5a3c00;
  line-height: 1.75;
  margin-bottom: 24px;
}
.mkls-notice-icon { font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.mkls-notice strong { color: #7a5100; }

/* タブ */
.mkls-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid #1a5c3a;
  margin-bottom: 0;
}
.mkls-tab {
  flex: 1;
  padding: 13px 10px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  background: #f0f7f3;
  color: #555;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  margin-bottom: -2px;
  line-height: 1.4;
}
.mkls-tab.is-active {
  background: #fff;
  color: #1a3d2a;
  border-color: #1a5c3a;
  border-top: 2px solid #1a5c3a;
  border-left: 2px solid #1a5c3a;
  border-right: 2px solid #1a5c3a;
}
.mkls-tab:hover:not(.is-active) { background: #e0f0e8; color: #1a3d2a; }

/* パネル */
.mkls-panel {
  background: #fff;
  border: 2px solid #1a5c3a;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 24px 22px 28px;
  margin-bottom: 24px;
}
.mkls-panel-desc {
  font-size: 13.5px;
  color: #555;
  margin: 0 0 20px;
}

/* フォーム */
.mkls-form { margin-bottom: 20px; }
.mkls-form-row { margin-bottom: 18px; }
.mkls-form-row:last-child { margin-bottom: 0; }
.mkls-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a3d2a;
  margin-bottom: 7px;
}
.mkls-unit { font-weight: 400; color: #666; font-size: 12px; margin-left: 4px; }
.mkls-input {
  width: 100%;
  max-width: 280px;
  padding: 11px 14px;
  font-size: 16px;
  border: 1.5px solid #b0d8c2;
  border-radius: 8px;
  background: #fff;
  color: #1a1a1a;
  transition: border-color 0.15s, box-shadow 0.15s;
  -moz-appearance: textfield;
  font-family: inherit;
}
.mkls-input::-webkit-outer-spin-button,
.mkls-input::-webkit-inner-spin-button { -webkit-appearance: none; }
.mkls-input:focus {
  outline: none;
  border-color: #1a5c3a;
  box-shadow: 0 0 0 3px rgba(26,92,58,0.14);
}
.mkls-hint { font-size: 11.5px; color: #777; margin: 5px 0 0; }

/* エラー */
.mkls-error {
  display: none;
  background: #fff0f0;
  border: 1.5px solid #e24b4a;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #a32d2d;
  margin-bottom: 16px;
}
.mkls-error.is-visible { display: block; }

/* サマリー（通常型） */
.mkls-summary {
  display: flex;
  align-items: baseline;
  gap: 8px;
  background: #1a5c3a;
  color: #fff;
  border-radius: 10px;
  padding: 16px 22px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.mkls-summary-label { font-size: 13px; opacity: .85; flex-shrink: 0; }
.mkls-summary-value { font-size: 28px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.mkls-summary-unit  { font-size: 13px; opacity: .85; }

/* テーブル */
.mkls-table-wrap {
  overflow-x: auto;
  border-radius: 10px;
  border: 1.5px solid #c6e0d2;
  margin-bottom: 16px;
}
.mkls-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}
.mkls-table thead tr { background: #1a5c3a; color: #fff; }
.mkls-table th {
  padding: 12px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  white-space: nowrap;
  line-height: 1.4;
}
.mkls-th-left { text-align: left !important; padding-left: 18px !important; }
.mkls-th-small { font-size: 10px; font-weight: 400; opacity: .85; }
.mkls-table td {
  padding: 14px 12px;
  text-align: center;
  border-bottom: 1px solid #e0ede6;
  font-size: 14px;
}
.mkls-table tbody tr:last-child td { border-bottom: none; }
.mkls-table tbody tr:nth-child(even) { background: #f7fbf9; }
.mkls-table tbody tr:hover { background: #edf7f2; transition: background .1s; }
.mkls-td-left  { text-align: left; padding-left: 18px !important; font-weight: 700; color: #1a3d2a; white-space: nowrap; }
.mkls-td-main  { font-weight: 700; font-size: 15px; color: #1a3d2a; }
.mkls-td-sub   { font-size: 13px; color: #555; }
.mkls-td-na    { color: #aaa; font-size: 12px; }
.mkls-td-loading { color: #888; padding: 20px; font-size: 13px; text-align: center; }

/* 逆算型注記 */
.mkls-reverse-note {
  font-size: 12px;
  color: #777;
  margin: 4px 0 0;
  line-height: 1.7;
}

/* 注意書き */
.mkls-caution {
  background: #fffbf0;
  border: 1.5px solid #e6c84a;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 28px;
}
.mkls-caution-title { font-size: 13px; font-weight: 700; color: #7a5100; margin: 0 0 8px; }
.mkls-caution-list { margin: 0; padding-left: 18px; }
.mkls-caution-list li { font-size: 12.5px; color: #5a3c00; margin-bottom: 4px; line-height: 1.65; }
.mkls-caution-list li:last-child { margin-bottom: 0; }

/* CTA */
.mkls-cta-wrap {
  background: #1a5c3a;
  border-radius: 14px;
  padding: 28px 26px;
  color: #fff;
}
.mkls-cta-lead {
  font-size: 13.5px;
  color: rgba(255,255,255,.82);
  line-height: 1.8;
  margin: 0 0 20px;
}
.mkls-cta-btns { display: flex; flex-direction: column; gap: 12px; }
.mkls-cta-btn {
  display: block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 50px;
  line-height: 1.45;
  text-align: center;
  transition: transform .15s, box-shadow .15s, background .15s;
  letter-spacing: .02em;
}
.mkls-cta-btn:hover { transform: translateY(-1px); text-decoration: none; }
.mkls-cta-btn--primary {
  background: #e8380d;
  color: #fff;
  box-shadow: 0 3px 14px rgba(232,56,13,.38);
}
.mkls-cta-btn--primary:hover { background: #c72c09; box-shadow: 0 5px 18px rgba(232,56,13,.45); color: #fff; }
.mkls-cta-btn--secondary {
  background: #fff;
  color: #1a3d2a;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.mkls-cta-btn--secondary:hover { background: #f0f7f3; color: #1a3d2a; }
.mkls-cta-btn-sub {
  display: block;
  font-size: 10.5px;
  font-weight: 400;
  opacity: .85;
  margin-top: 3px;
}

/* レスポンシブ */
@media (max-width: 600px) {
  .mkls-panel { padding: 18px 14px 22px; }
  .mkls-tab   { font-size: 13px; padding: 11px 6px; }
  .mkls-input { max-width: 100%; }
  .mkls-summary-value { font-size: 22px; }
  .mkls-table th, .mkls-table td { padding: 10px 8px; font-size: 12px; }
  .mkls-td-main { font-size: 13px; }
  .mkls-cta-wrap { padding: 20px 16px; }
}
