/* 失業保険シミュレーター 共通スタイル
   白・チャコール・ティール基調のニュートラルなデザイン。外部アセットなし。 */

:root {
  --color-text: #2b2f33;
  --color-muted: #5c666d;
  --color-teal: #0f766e;
  --color-teal-dark: #0b5a54;
  --color-teal-light: #e6f4f2;
  --color-border: #d8dee2;
  --color-bg: #ffffff;
  --color-bg-soft: #f6f8f9;
  --color-warn-bg: #fdf6e3;
  --color-warn-border: #e3cf8a;
  --max-width: 880px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP",
    "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.75;
  font-size: 16px;
}

a {
  color: var(--color-teal-dark);
}

.site-header {
  border-bottom: 3px solid var(--color-teal);
  background: var(--color-bg);
}

.site-header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
}

.site-title span {
  color: var(--color-teal);
}

.site-nav {
  margin-left: auto;
  font-size: 0.9rem;
}

.site-nav a {
  margin-left: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  text-decoration: underline;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 24px 16px 48px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.4;
  margin: 0 0 12px;
}

h2 {
  font-size: 1.25rem;
  border-left: 5px solid var(--color-teal);
  padding-left: 10px;
  margin: 36px 0 12px;
}

h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 12px;
}

.lead {
  font-size: 1.02rem;
  color: var(--color-muted);
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--color-muted);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: var(--color-muted);
}

/* 注意書きボックス */
.disclaimer {
  background: var(--color-warn-bg);
  border: 1px solid var(--color-warn-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 20px 0;
  font-size: 0.95rem;
}

.disclaimer strong {
  display: block;
  margin-bottom: 4px;
}

.note {
  font-size: 0.88rem;
  color: var(--color-muted);
}

/* 計算フォーム */
.calculator {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label,
.form-group .label {
  display: block;
  font-weight: 700;
  margin-bottom: 6px;
}

.form-group input[type="number"],
.form-group select {
  width: 100%;
  max-width: 320px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.radio-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.radio-row label {
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.calc-button {
  background: var(--color-teal);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 32px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.calc-button:hover {
  background: var(--color-teal-dark);
}

/* 計算結果 */
.result {
  border: 2px solid var(--color-teal);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  display: none;
}

.result.visible {
  display: block;
}

.result-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--color-teal-dark);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.result-item {
  background: var(--color-teal-light);
  border-radius: 8px;
  padding: 12px;
}

.result-item .item-label {
  font-size: 0.85rem;
  color: var(--color-muted);
}

.result-item .item-value {
  font-size: 1.35rem;
  font-weight: 700;
}

.result-item .item-value small {
  font-size: 0.85rem;
  font-weight: 400;
}

.result-notes {
  margin: 12px 0 0;
  padding-left: 20px;
  font-size: 0.92rem;
}

.result-notes li {
  margin-bottom: 6px;
}

.error-message {
  color: #b3261e;
  font-weight: 700;
  margin-top: 10px;
  display: none;
}

/* 表 */
.table-wrap {
  overflow-x: auto;
  margin: 16px 0;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.95rem;
  min-width: 520px;
}

th,
td {
  border: 1px solid var(--color-border);
  padding: 8px 10px;
  text-align: right;
}

th {
  background: var(--color-teal-light);
  text-align: center;
  font-weight: 700;
}

td:first-child,
th:first-child {
  text-align: left;
}

tr.highlight td {
  background: var(--color-warn-bg);
  font-weight: 700;
}

/* CTAプレースホルダ */
.cta-placeholder {
  border: 2px dashed var(--color-teal);
  border-radius: 10px;
  padding: 20px;
  margin: 28px 0;
  text-align: center;
  background: #fff;
}

.cta-placeholder .cta-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.cta-placeholder p {
  color: var(--color-muted);
  font-size: 0.92rem;
  margin: 0;
}

/* 記事一覧 */
.page-list {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.page-list li {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px;
  background: #fff;
}

.page-list a {
  font-weight: 700;
  text-decoration: none;
  display: block;
  margin-bottom: 4px;
}

.page-list a:hover {
  text-decoration: underline;
}

.page-list .desc {
  font-size: 0.88rem;
  color: var(--color-muted);
}

ul.basic {
  padding-left: 22px;
}

ul.basic li {
  margin-bottom: 6px;
}

ol.steps {
  padding-left: 22px;
}

ol.steps li {
  margin-bottom: 10px;
}

.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-soft);
  margin-top: 40px;
}

.site-footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 32px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

@media (max-width: 600px) {
  h1 {
    font-size: 1.35rem;
  }

  .calculator {
    padding: 16px;
  }

  .result-item .item-value {
    font-size: 1.2rem;
  }
}
