* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  background: #ffffff;
}
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}
header.site-header {
  border-bottom: 1px solid #e2e6ea;
  padding: 12px 0;
}
header.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  text-decoration: none;
}
nav.site-nav a {
  margin-left: 16px;
  font-size: 0.9rem;
  color: #2b4c7e;
  text-decoration: none;
}
nav.site-nav a:hover { text-decoration: underline; }

.breadcrumb { padding-top: 12px; }
.breadcrumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0;
  margin: 0;
  font-size: 0.85rem;
  color: #666;
}
.breadcrumb li:not(:last-child)::after { content: "›"; margin-left: 4px; }
.breadcrumb a { color: #2b4c7e; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li[aria-current="page"] { color: #666; }

.hero {
  background: #f4f6f8;
  padding: 32px 16px;
  text-align: left;
}
.hero h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  color: #1a1a1a;
}
.hero p {
  margin: 0;
  color: #444;
  font-size: 1rem;
}

main.container { padding-top: 24px; padding-bottom: 48px; }

h2 { font-size: 1.3rem; margin-top: 32px; }
h3 { font-size: 1.1rem; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.card {
  border: 1px solid #e2e6ea;
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: block;
}
.card h3 { margin-top: 0; color: #2b4c7e; }
.card p { margin-bottom: 0; font-size: 0.95rem; color: #444; }

form.calc-form {
  background: #f4f6f8;
  border-radius: 8px;
  padding: 20px;
  margin-top: 16px;
}
.field-row {
  margin-bottom: 16px;
}
.field-row label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.9rem;
}
.field-row select,
.field-row input[type="number"],
.field-row input[type="date"] {
  width: 100%;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
}
.radio-group label {
  display: block;
  font-weight: normal;
  margin-bottom: 8px;
}
button.btn-primary {
  background: #2b4c7e;
  color: #fff;
  border: none;
  padding: 10px 20px;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
}
button.btn-primary:hover { background: #1e3a63; }

.result-box {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #cfe0d0;
  background: #f2f8f3;
  border-radius: 8px;
}
.result-box .amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a5c2a;
}
.result-box table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.result-box td { padding: 4px 0; font-size: 0.9rem; }
.result-box td:last-child { text-align: right; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  font-size: 0.9rem;
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
table.data-table th, table.data-table td {
  border: 1px solid #e2e6ea;
  padding: 8px;
  text-align: right;
}
table.data-table th:first-child, table.data-table td:first-child { text-align: left; }
table.data-table th { background: #f4f6f8; }

.region-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  margin-bottom: 4px;
}
.region-tab {
  background: #f4f6f8;
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.9rem;
  color: #444;
  cursor: pointer;
}
.region-tab:hover { background: #e9edf1; }
.region-tab.active {
  background: #2b4c7e;
  border-color: #2b4c7e;
  color: #fff;
}
.region-panel-desc {
  font-size: 0.9rem;
  color: #555;
  margin-top: 12px;
}

ul.gyoshu-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 4px 16px;
  padding-left: 20px;
  margin: 12px 0;
}
ul.gyoshu-list a { color: #2b4c7e; }

.disclaimer {
  margin-top: 24px;
  padding: 12px 16px;
  background: #fdf6ec;
  border: 1px solid #f0e0c0;
  border-radius: 6px;
  font-size: 0.85rem;
  color: #6b5730;
}

footer.site-footer {
  border-top: 1px solid #e2e6ea;
  padding: 24px 0;
  margin-top: 48px;
  font-size: 0.85rem;
  color: #666;
}
footer.site-footer a { color: #2b4c7e; }
