/* taxcalc-tool.css : タイ個人所得税計算機（完全可視化版）専用CSS */

/* ベースページ側のローカルCSS（ベースHTMLのを踏襲） */
#will .minitable th, #will .minitable td { vertical-align: top; }
.last-update { color: var(--muted); font-size: .95rem; }
.toc { margin: 1.2rem 0; }
.toc ol { padding-left: 1.2rem; }
.kiji { line-height: 1.9; margin-bottom: 1em; }
.callout { border-left: 5px solid #004080; background: #f6faff; padding: 1em 1.2em; border-radius: 8px; }

/* ===== 計算機（元HTMLの見た目を保ちつつ、wrap内に収まるよう調整） ===== */
.tool-wrap { max-width: 900px; margin: 0 auto; }

/* 元HTMLの .container をサイト全体に波及させないため、.taxcalc の中だけに閉じ込める */
.taxcalc .container {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.taxcalc .container h2 {
  border-left: 6px solid #1a73e8;
  padding-left: 15px;
  color: #1a73e8;
  margin-bottom: 25px;
}

.taxcalc .container h3 {
  font-size: 1.1em;
  margin-top: 25px;
  border-bottom: 2px solid #e8eaed;
  padding-bottom: 8px;
  color: #5f6368;
}

.taxcalc .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.taxcalc .form-group { margin-bottom: 15px; }

.taxcalc label {
  display: block;
  margin-bottom: 6px;
  font-weight: bold;
  font-size: 0.95em;
  color: #202124;
}

.taxcalc input[type="number"],
.taxcalc input[type="text"],
.taxcalc select {
  width: 100%;
  padding: 12px;
  border: 1px solid #dadce0;
  border-radius: 6px;
  font-size: 1em;
  background-color: #fafafa;
  transition: border 0.2s;
  box-sizing: border-box;
}

.taxcalc input:focus,
.taxcalc select:focus {
  border-color: #1a73e8;
  background-color: #fff;
  outline: none;
}

.taxcalc input[readonly] {
  background-color: #e9ecef;
  color: #495057;
  border-color: #ced4da;
}

.taxcalc .input-group { display: flex; align-items: center; gap: 10px; }
.taxcalc .input-group input { flex: 1; }
.taxcalc .input-suffix { white-space: nowrap; color: #5f6368; }
.taxcalc .note { font-size: 0.8em; color: #70757a; margin-top: 4px; }

.taxcalc .income-sum {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  text-align: right;
  margin-bottom: 10px;
}

.taxcalc .checkbox-wrapper {
  background-color: #e8f0fe;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #d2e3fc;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.taxcalc .checkbox-wrapper input[type="checkbox"] { width: 20px; height: 20px; cursor: pointer; }
.taxcalc .checkbox-wrapper label { margin: 0; cursor: pointer; color: #1967d2; font-weight: bold; }

.taxcalc .tool-btn {
  background-color: #1a73e8;
  color: white;
  border: none;
  padding: 15px;
  font-size: 1.1em;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  box-shadow: 0 2px 5px rgba(26,115,232,0.3);
  transition: filter 0.2s;
}
.taxcalc .tool-btn:hover { filter: brightness(0.95); }

.taxcalc .result-box {
  margin-top: 30px;
  background-color: #fff;
  border: 2px solid #e8eaed;
  border-radius: 8px;
  overflow: hidden;
  display: none;
}

.taxcalc .result-header {
  background-color: #e8f0fe;
  padding: 15px;
  font-weight: bold;
  color: #1967d2;
  font-size: 1.1em;
  text-align: center;
}

.taxcalc .result-body { padding: 20px; }

.taxcalc .result-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed #dadce0;
  gap: 10px;
}
.taxcalc .result-row:last-child { border-bottom: none; margin-bottom: 0; }

.taxcalc .highlight-tax { color: #d93025; font-size: 1.4em; font-weight: bold; }
.taxcalc .highlight-monthly { color: #188038; font-size: 1.3em; font-weight: bold; }
.taxcalc .gross-up-info { color: #e37400; font-weight: bold; }

.taxcalc .detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9em;
  margin-top: 15px;
  margin-bottom: 25px;
}
.taxcalc .detail-table th, .taxcalc .detail-table td { border: 1px solid #dadce0; padding: 8px; text-align: right; }
.taxcalc .detail-table th { background-color: #f1f3f4; text-align: center; color: #5f6368; font-weight: bold; }
.taxcalc .detail-table tr:nth-child(even) { background-color: #f8f9fa; }
.taxcalc .text-left { text-align: left !important; }

.taxcalc .table-title {
  font-weight: bold;
  color: #5f6368;
  margin-bottom: 5px;
  margin-top: 20px;
  border-left: 4px solid #1a73e8;
  padding-left: 10px;
}

@media (max-width: 600px) {
  .taxcalc .form-grid { grid-template-columns: 1fr; }
  .taxcalc .container { padding: 18px; }
}
