:root {
  --bg: #f5f4ef;
  --surface: #ffffff;
  --ink: #23262a;
  --muted: #5c6167;
  --accent: #e98a15;
  --accent-2: #3a4750;
  --line: #dedad1;
  --footer-ink: #eef0f2;
  --font-head: "M PLUS 1", "Noto Sans JP", sans-serif;
  --font-body: "Noto Sans JP", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Menlo", "Consolas", monospace;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
}

body.no-scroll {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.container {
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  z-index: 200;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* header: rolled steel face motif */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(35, 38, 42, 0.92);
  backdrop-filter: blur(6px);
  color: #f2f3f0;
  border-bottom: 3px solid var(--accent);
}

.header-inner {
  max-width: 1280px;
  margin-inline: auto;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background: var(--accent);
  display: grid;
  place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.brand-text strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
}

.brand-text small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #b9bfc4;
}

.menu-toggle {
  margin-left: auto;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #8a919a;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #f2f3f0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.global-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  margin: 0;
  padding: 0;
}

.global-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 13px;
  text-decoration: none;
  color: #e9ecef;
  white-space: nowrap;
  border-radius: 3px;
}

.global-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.global-nav a[aria-current="page"] {
  color: #fff;
  background: var(--accent);
}

.global-nav .is-compare {
  color: #ffd9a8;
}

/* hero: metal grill + permit card */
.hero-block {
  position: relative;
  background:
    repeating-linear-gradient(180deg, rgba(58, 71, 80, 0.06) 0px, rgba(58, 71, 80, 0.06) 2px, transparent 2px, transparent 9px),
    linear-gradient(180deg, #fbfaf6 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: transparent;
}

.hero-inner {
  position: relative;
  max-width: 1160px;
  margin-inline: auto;
  padding: 48px 20px 56px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: start;
}

.hero-copy .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  margin: 0 0 10px;
}

.hero-block h1 {
  font-size: clamp(1.9rem, 3.9vw, 3.1rem);
  margin: 0 0 14px;
}

.hero-lead {
  margin: 0 0 18px;
  color: var(--muted);
}

.hero-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hero-chips a {
  display: inline-block;
  font-size: 13px;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.hero-chips a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-figure {
  position: relative;
}

.hero-frame {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(35, 38, 42, 0.10);
}

.hero-image {
  display: block;
  width: 100%;
}

.permit-card {
  position: relative;
  margin: -34px 0 0 24px;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 8px;
  padding: 14px 16px 12px;
  box-shadow: 0 8px 20px rgba(35, 38, 42, 0.14);
  z-index: 2;
}

.permit-card .permit-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  margin: 0 0 4px;
}

.permit-card .permit-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 4px;
}

.permit-card .permit-note {
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.hero-compact .hero-inner {
  padding: 32px 20px 44px;
}

.hero-compact .permit-card {
  display: none;
}

.page-band {
  background:
    repeating-linear-gradient(180deg, rgba(58, 71, 80, 0.08) 0px, rgba(58, 71, 80, 0.08) 2px, transparent 2px, transparent 9px),
    #eceae2;
  border-bottom: 1px solid var(--line);
  padding: 26px 0;
}

.page-band .eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent-2);
  margin: 0;
}

.band-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.25rem;
  margin: 2px 0 0;
}

/* section separator: orange line + door dot */
.sep {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 24px;
}

.sep::before,
.sep::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.sep i {
  width: 10px;
  height: 12px;
  border-radius: 5px 5px 1px 1px;
  background: var(--accent);
  pointer-events: none;
}

.latest-commentary {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 32px;
}

.latest-commentary h2 {
  font-size: 1.2rem;
  border-left: 4px solid var(--accent);
  padding-left: 10px;
  margin: 0 0 12px;
}

.latest-commentary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.latest-commentary-list li {
  padding: 8px 0;
  border-bottom: 1px dotted var(--line);
  font-size: 15px;
}

.latest-commentary-list time {
  font-family: var(--font-mono);
  color: var(--muted);
  margin-right: 10px;
  font-size: 13px;
}

.latest-commentary-more {
  text-align: right;
  margin: 12px 0 0;
  font-size: 14px;
}

.latest-commentary:not(:has(li)) {
  display: none;
}

.index-section {
  padding: 40px 0;
}

.intro-block h2,
.index-section h2 {
  font-size: 1.5rem;
  margin: 0 0 14px;
}

.stage-list {
  list-style: none;
  counter-reset: stage;
  padding: 0;
  margin: 20px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.stage-list li {
  counter-increment: stage;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 6px;
  padding: 12px 14px;
  font-size: 14.5px;
}

.stage-list li::before {
  content: counter(stage, decimal-leading-zero);
  font-family: var(--font-mono);
  color: var(--accent);
  display: block;
  font-size: 12px;
}

.stage-list li strong {
  display: block;
  margin-bottom: 2px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.page-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: 6px;
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.page-card.is-compare {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: #f4f5f4;
}

.page-card.is-compare h3 a {
  color: #fff;
}

.page-card.is-compare p {
  color: #d7dadd;
}

.page-card .num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.page-card.is-compare .num {
  color: #ffd9a8;
}

.page-card .icon {
  color: var(--accent-2);
}

.page-card.is-compare .icon {
  color: #ffd9a8;
}

.page-card h3 {
  font-size: 15.5px;
  margin: 0;
}

.page-card h3 a {
  text-decoration: none;
}

.page-card h3 a:hover {
  color: var(--accent);
}

.page-card p {
  font-size: 13.5px;
  margin: 0;
  color: var(--muted);
}

.page-card .badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 1px 6px;
  color: #ffd9a8;
}

.intro-block p,
.index-section p {
  margin: 0 0 14px;
}

.stance-title {
  font-size: 1.1rem;
  margin-top: 24px;
}

.stance-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14.5px;
}

.stance-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 8px;
}

.stance-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 8px;
  border-radius: 4px 4px 1px 1px;
  background: var(--accent);
}

.after-list {
  font-size: 14.5px;
}

.section-lead {
  color: var(--muted);
  font-size: 14.5px;
}

.related-sites ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.related-sites li a {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 12px 14px;
  text-decoration: none;
}

.related-sites li a:hover {
  border-color: var(--accent);
}

.related-sites strong {
  display: block;
  font-size: 15px;
}

.related-sites span {
  display: block;
  font-size: 13px;
  color: var(--muted);
}

/* two column content */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 32px;
  padding-block: 36px 48px;
}

.article section {
  margin-bottom: 34px;
}

.article h2 {
  font-size: 1.45rem;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 6px;
  margin-top: 0;
}

.article h3 {
  font-size: 1.15rem;
  margin-top: 22px;
}

.article h4 {
  font-size: 1rem;
}

.article p {
  margin: 0 0 14px;
}

.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 1.4em;
}

.article li {
  margin-bottom: 6px;
}

.updated {
  font-size: 13px;
  color: var(--muted);
}

.updated time {
  font-family: var(--font-mono);
}

.source-note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--muted);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
}

.compare-table {
  border-collapse: collapse;
  min-width: 760px;
  font-size: 13.5px;
  background: var(--surface);
}

.compare-table th,
.compare-table td {
  border: 1px solid var(--line);
  padding: 9px 10px;
  vertical-align: top;
  text-align: left;
  line-height: 1.7;
}

.compare-table thead th {
  background: var(--accent-2);
  color: #fff;
  font-weight: 700;
}

.compare-table tbody th {
  background: #efede6;
  font-weight: 700;
}

.compare-table tbody tr:nth-child(even) th,
.compare-table tbody tr:nth-child(even) td {
  background: #fafaf6;
}

.compare-table thead th:first-child,
.compare-table tbody th:first-child {
  border-left-width: 3px;
}

.compare-table tbody tr:nth-child(even) td,
.compare-table tbody tr:nth-child(even) th {
  border-left-width: 3px;
}

.table-note {
  font-size: 12.5px;
  color: var(--muted);
}

.compare-block {
  background: var(--accent-2);
  border-radius: 8px;
  padding: 20px;
  color: #eef0f2;
  margin: 6px 0 24px;
}

.compare-block h2 {
  color: #fff;
  border-bottom-color: var(--accent);
}

.profile-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent-2);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.profile-list h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.profile-list p {
  margin: 0 0 8px;
  font-size: 14px;
}

.profile-list .profile-fact {
  font-size: 12.5px;
  color: var(--muted);
}

.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  background: var(--accent);
  color: #fff;
  border-radius: 4px;
  padding: 10px 20px;
  border: none;
}

.btn:hover {
  background: #c9710d;
}

.btn-outline {
  background: transparent;
  color: var(--accent-2);
  border: 1px solid var(--accent-2);
}

.btn-outline:hover {
  background: var(--accent-2);
  color: #fff;
}

/* sidebar */
.sidebar {
  align-self: start;
  position: sticky;
  top: 84px;
}

.sidebar > * {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 16px;
}

.sidebar h2 {
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  margin-top: 0;
}

.sidebar ul,
.sidebar ol {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13.5px;
}

.sidebar li {
  margin-bottom: 8px;
}

.sidebar a {
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--accent);
}

.ad-slot span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.ad-slot strong {
  display: block;
  margin: 4px 0 6px;
}

.ad-slot p {
  font-size: 13px;
  margin: 0 0 10px;
}

.amazon-banner,
.sitenavi-banner,
.sidebar .amazon-banner,
.sidebar [style*="max-width:300px"] {
  background: transparent;
  border: none;
  padding: 6px 0;
}

/* disclaimer & footer */
.site-disclaimer {
  background: var(--accent-2);
  color: #eef0f2;
  padding: 18px 0;
}

.site-disclaimer p {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 13px;
}

.site-footer {
  background: #20262b;
  color: var(--footer-ink);
  padding: 40px 0 20px;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.footer-grid h2 {
  font-size: 15px;
  margin: 0 0 10px;
  color: #fff;
}

.footer-grid p,
.footer-grid a {
  font-size: 13px;
  color: #c9ced3;
}

.footer-grid a {
  display: block;
  text-decoration: none;
  padding: 3px 0;
}

.footer-grid a:hover {
  color: var(--accent);
}

.footer-note {
  max-width: 1160px;
  margin: 24px auto 0;
  padding: 14px 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: #a9b0b6;
}

.footer-links {
  max-width: 1160px;
  margin: 16px auto 0;
  padding: 0 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: #c9ced3;
  font-size: 13px;
}

.copyright {
  max-width: 1160px;
  margin: 16px auto 0;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a9b0b6;
}

.spacer-lg {
  height: 24px;
}

/* blog list */
.blog-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.blog-card-image {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.blog-card div {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.blog-card h2,
.blog-card h3 {
  font-size: 16px;
  margin: 6px 0 8px;
}

.blog-card h2 a,
.blog-card h3 a {
  text-decoration: none;
}

.blog-card h2 a:hover,
.blog-card h3 a:hover {
  color: var(--accent);
}

.blog-card p {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 12px;
  flex-grow: 1;
}

.read-more {
  font-size: 13px;
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

/* blog article */
.article-eyecatch img {
  width: 100%;
  border-radius: 6px;
}

.article-content h2 {
  font-size: 1.35rem;
  border-bottom: 2px solid var(--accent);
}

.share-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px 18px;
  margin: 24px 0 0;
}

.share-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.share-links a {
  font-size: 13.5px;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 7px 14px;
  background: var(--bg);
}

.share-links a:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* responsive */
@media (max-width: 1279px) {
  .menu-toggle {
    display: block;
  }

  .global-nav {
    position: fixed;
    top: 60px;
    left: 0;
    width: min(320px, 86vw);
    height: calc(100vh - 60px);
    background: #242930;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    overflow-y: auto;
    padding: 16px;
    z-index: 120;
  }

  .global-nav.is-open {
    transform: translateX(0);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.35);
  }

  .global-nav ul {
    flex-direction: column;
  }

  .global-nav a {
    padding: 12px 10px;
    font-size: 15px;
    white-space: normal;
  }
}

@media (max-width: 1024px) {
  .page-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 32px;
  }

  .hero-figure {
    order: 1;
  }

  .permit-card {
    order: 2;
    margin: -24px 16px 0;
  }

  .hero-copy {
    order: 3;
  }

  .hero-copy h1 {
    font-size: 1.6rem;
  }

  .permit-card .permit-title {
    font-size: 15px;
  }

  .page-grid,
  .blog-cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .article-content {
    padding-left: 16px;
    padding-right: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .global-nav {
    transition: none;
  }
}

/* Keep the sidebar in document flow unless its full contents fit the viewport (JS adds .sidebar--sticky-fit). */
html body aside.sidebar{position:static}
@media (min-width:1201px){
html body{overflow-x:clip!important}
html body aside.sidebar.sidebar--sticky-fit{position:sticky;top:var(--sidebar-sticky-top,84px);align-self:start}
}

/* LATEST-COMMENTARY:START */
.latest-commentary {
  padding: 3rem 0;
}
/* .container を持たないサイトでも端に張り付かないための保険。
   :where() は詳細度0なので、サイト側の .container 定義が常に優先される。 */
:where(.latest-commentary .container) {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.latest-commentary h2 {
  margin-bottom: 1.25rem;
}
.latest-commentary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-commentary-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}
.latest-commentary-list time {
  flex: 0 0 auto;
  color: var(--muted, #666);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.latest-commentary-list a {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--ink, #222);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-commentary-list a:hover {
  color: var(--accent, #0b5);
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: var(--accent, #0b5);
  text-decoration: none;
  font-weight: 600;
}
.latest-commentary-more a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .latest-commentary-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
  /* 縦積み時に flex-basis(16rem) が高さに効かないよう auto に戻す */
  .latest-commentary-list a,
  .latest-commentary-list time {
    flex: 0 0 auto;
  }
}
/* LATEST-COMMENTARY:END */
