:root {
  --ink: #1b2733;
  --ink-soft: #4a5a68;
  --green: #1f6b4e;
  --green-pale: #eef5f1;
  --amber: #b7791f;
  --rule: #d5dde3;
  --bg: #ffffff;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.9;
  font-size: 16px;
  font-feature-settings: "palt";
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--rule);
  background:
    linear-gradient(to right, var(--green) 0 4px, transparent 4px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--ink);
}
.global-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.2rem;
}
.global-nav a:hover { color: var(--green); text-decoration: underline; }

/* Typography */
h1, h2 {
  font-family: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  letter-spacing: 0.02em;
}
h1 {
  font-size: 1.7rem;
  line-height: 1.55;
  margin: 2rem 0 0.5rem;
  font-weight: 700;
}
h2 {
  font-size: 1.3rem;
  line-height: 1.6;
  margin: 3rem 0 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
  position: relative;
  font-weight: 600;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 3.5rem;
  height: 3px;
  background: var(--green);
}
h3 {
  font-size: 1.05rem;
  margin: 2rem 0 0.75rem;
  font-weight: 700;
}
p { margin: 1.1rem 0; }
a { color: var(--green); }
strong { font-weight: 700; }

.article-meta {
  color: var(--ink-soft);
  font-size: 0.85rem;
  margin: 0 0 2rem;
}

.ad-notice {
  font-size: 0.78rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding: 0.6rem 0;
  margin: 0;
}

/* Tables — the signature element */
.table-scroll { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
thead th {
  background: var(--green-pale);
  font-weight: 700;
  text-align: left;
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--ink);
  white-space: nowrap;
}
tbody td, tbody th {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--rule);
  font-variant-numeric: tabular-nums;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #f7faf8; }
td:not(:first-child), th:not(:first-child) {
  text-align: right;
}

/* Blockquote as placeholder/CTA area */
blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  color: var(--ink-soft);
  font-size: 0.92rem;
}
blockquote p { margin: 0.3rem 0; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 3rem 0 1.5rem;
}

ul, ol { padding-left: 1.4rem; }
li { margin: 0.35rem 0; }

/* ===== Top page ===== */
.hero {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 3rem 0 1.5rem;
}
.hero-text { flex: 1 1 60%; }
.hero h1 {
  font-size: 2.1rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}
.hero .thesis {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0;
}
.hero-art {
  flex: 0 0 220px;
  max-width: 220px;
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* 編集方針ストリップ */
.policy-strip {
  display: flex;
  gap: 0.75rem;
  margin: 1.5rem 0 1rem;
  padding: 1rem 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.policy-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.5;
}
.policy-item svg {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  color: var(--green);
}
.policy-item b { color: var(--ink); }

/* 記事一覧 */
.article-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 2.5rem;
}
.article-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid var(--rule);
  padding: 1.1rem 0;
  margin: 0;
}
.article-list .spot {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: var(--green-pale);
  border-radius: 50%;
  color: var(--green);
}
.article-list .spot svg { width: 1.7rem; height: 1.7rem; }
.article-list a {
  font-weight: 500;
  text-decoration: none;
  font-size: 1.02rem;
  line-height: 1.65;
}
.article-list a:hover { text-decoration: underline; }
.article-list .desc {
  display: block;
  color: var(--ink-soft);
  font-size: 0.87rem;
  margin-top: 0.3rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  margin-top: 4rem;
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: #fafbfb;
}
.footer-nav a {
  color: var(--ink-soft);
  margin-right: 1.2rem;
}
.footer-note { margin: 1rem 0; }
.copyright { margin: 0.5rem 0 0; }

/* Accessibility */
a:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media (max-width: 640px) {
  .hero { flex-direction: column-reverse; text-align: left; padding-top: 1.5rem; }
  .hero-art { max-width: 170px; margin: 0 auto; }
  .hero h1 { font-size: 1.6rem; }
  .policy-strip { flex-direction: column; gap: 0.6rem; }
  .logo { font-size: 1.1rem; white-space: nowrap; gap: 0.35rem; }
  .logo-mark { width: 1.3rem; height: 1.3rem; }
  .global-nav { text-align: right; }
  .global-nav a { font-size: 0.78rem; margin-left: 0.8rem; white-space: nowrap; }
}
@media (max-width: 480px) {
  body { font-size: 15px; }
  h1 { font-size: 1.4rem; }
  table { font-size: 0.85rem; }
  thead th, tbody td { padding: 0.45rem 0.5rem; }
}
