/* 年代換算ユーティリティ スタイル
   蒼原市記録保存センター公式サイトの体裁（紺基調・静かな公的施設風）に合わせた。
   外部フォント・外部リソースは一切読み込まない。 */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", YuGothic, "Noto Sans JP", sans-serif;
  color: #222;
  background: #f4f4f2;
  line-height: 1.8;
  font-size: 15px;
}

a { color: #17457a; }
a:hover { text-decoration: none; }

/* ===== ヘッダー ===== */
.site-header {
  background: #fff;
  border-top: 6px solid #1d3a5f;
  border-bottom: 1px solid #ccc;
}
.site-header .inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.city-mark { font-size: 13px; color: #555; letter-spacing: 0.2em; }
.site-title { font-size: 24px; font-weight: bold; color: #1d3a5f; margin: 0; letter-spacing: 0.04em; }
.site-title a { color: inherit; text-decoration: none; }
.header-note { margin-left: auto; font-size: 12px; color: #666; text-align: right; }

/* ===== 本文枠 ===== */
.container { max-width: 960px; margin: 0 auto; padding: 24px 20px 40px; }
.page-title { font-size: 22px; color: #1d3a5f; margin: 8px 0 4px; }
.page-meta { font-size: 12px; color: #666; margin-bottom: 16px; }
h2.section {
  font-size: 17px;
  color: #1d3a5f;
  border-left: 5px solid #1d3a5f;
  padding-left: 10px;
  margin: 34px 0 10px;
}
.small { font-size: 12.5px; color: #555; }
.maker { font-size: 13px; color: #444; }

/* ===== ツールのカード ===== */
.tool-card {
  background: #fff;
  border: 1px solid #d5d5cf;
  border-top: 3px solid #1d3a5f;
  padding: 16px 18px 18px;
  margin: 12px 0 20px;
}
.tool-card h3 { margin: 0 0 6px; font-size: 16px; color: #1d3a5f; }
.tool-card p.desc { margin: 0 0 12px; font-size: 13.5px; color: #444; }

.fields { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field label { font-size: 12px; color: #555; }
.field input[type="number"], .field select {
  font-size: 16px;
  padding: 6px 8px;
  border: 1px solid #aaa;
  border-radius: 3px;
  background: #fff;
  font-family: inherit;
}
.field input.y { width: 6.5em; }
.field input.md { width: 4.5em; }
.field input.ey { width: 5em; }
button.calc {
  font-size: 15px;
  padding: 7px 18px;
  background: #1d3a5f;
  color: #fff;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
}
button.calc:hover { background: #2c5282; }

.result {
  margin-top: 14px;
  background: #f7f5ec;
  border: 1px solid #ddd6bd;
  padding: 10px 14px;
  display: none;
}
.result.show { display: block; }
.result .main-line { font-size: 17px; font-weight: bold; color: #1d3a5f; }
.result .sub-line { font-size: 13.5px; color: #444; }
.result .error { color: #a33; font-weight: bold; }

/* ===== フッター ===== */
.site-footer {
  background: #eceae4;
  border-top: 1px solid #ccc;
  font-size: 12.5px;
  color: #555;
}
.site-footer .inner { max-width: 960px; margin: 0 auto; padding: 16px 20px 22px; }
.site-footer .promise {
  background: #fff;
  border: 1px solid #d5d5cf;
  padding: 10px 14px;
  margin-bottom: 12px;
  color: #333;
}
.fiction-note { margin-top: 8px; }
