@charset "UTF-8";

:root {
  --bg: #f7f8f3;
  --panel: #fff;
  --ink: #222d25;
  --muted: #546257;
  --line: #dce3d8;
  --accent: #285741;
  --accent-dark: #184131;
  --soft: #eaf1e5;
  --gold: #f3e6b4;
  --sans: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.85 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
input, button { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #317057; outline-offset: 4px; }
.wrap { width: min(1176px, calc(100% - 64px)); margin-inline: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 99; padding: 10px; background: white; }
.skip-link:focus { top: 10px; }

.site-header { position: relative; background: var(--panel); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-grid; grid-template-columns: 36px 1fr; align-items: center; column-gap: 10px; line-height: 1.45; }
.brand::before {
  grid-row: span 2;
  width: 36px;
  height: 36px;
  background: url("favicon.svg") center / contain no-repeat;
  content: "";
}
.brand strong { font-size: 18px; letter-spacing: .02em; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .06em; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.main-nav { display: flex; gap: 22px; font-size: 13px; font-weight: 600; }
.main-nav a { padding-block: 6px; }
.main-nav a[aria-current="page"] { color: var(--accent); border-bottom: 2px solid #88a690; }
.menu-toggle { display: none; background: var(--panel); color: var(--accent); border: 1px solid var(--line); border-radius: 7px; padding: 7px 10px; font-size: 12px; }

.hero { background: var(--soft); border-bottom: 1px solid var(--line); padding: 48px 0; }
.hero-inner { display: grid; grid-template-columns: 1fr .94fr; gap: 48px; align-items: center; }
.hero-tag { display: inline-block; border-radius: 20px; padding: 4px 12px; background: var(--gold); }
.hero h1 {
  margin: 14px 0;
  font-size: clamp(30px, 4.2vw, 56px);
  line-height: 1.33;
  letter-spacing: .015em;
  font-weight: 800;
  white-space: pre-line;
}
.hero p { max-width: 460px; margin: 0 0 10px; color: var(--muted); }
.hero-image { margin: 0; padding: 8px; border-radius: 18px; background: var(--panel); box-shadow: 0 14px 30px #1e43251a; }
.hero-image img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 12px; }
.button { display: inline-flex; align-items: center; gap: 14px; margin-top: 10px; padding: 10px 19px; border: 0; border-radius: 8px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 700; }
.button:hover { background: var(--accent-dark); color: #fff; }

.section { padding: 40px 0 48px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 17px; }
.section-heading h2 { font-size: 28px; line-height: 1.4; margin: 4px 0 0; }
.section-heading small { color: var(--muted); font-size: 12px; }
.archive-layout, .article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 268px; gap: 28px; align-items: start; }
.archive-layout > *, .article-layout > * { min-width: 0; }
.search-form { position: relative; }
.search-form input { width: 100%; padding: 12px 50px 12px 16px; border: 1px solid #9dad9d; border-radius: 9px; background: var(--panel); color: var(--ink); }
.search-form button { position: absolute; inset: 4px 4px 4px auto; width: 43px; border: 0; border-radius: 6px; background: var(--soft); color: var(--accent); display: grid; place-items: center; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 13px 0 18px; }
.chip { border: 1px solid var(--line); border-radius: 20px; background: var(--panel); padding: 4px 12px; font-size: 12px; color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: white; }
.result-info { padding-bottom: 8px; color: var(--muted); font-size: 13px; }
.article-row {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  margin-bottom: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel);
}
.article-row:hover { border-color: #a5bca9; }
.list-image { width: 100%; aspect-ratio: 8/5; height: auto; object-fit: cover; border-radius: 6px; background: var(--soft); }
.article-row h3 { margin: 4px 0; font-size: 17px; line-height: 1.55; }
.article-row:hover h3 { text-decoration: underline; text-underline-offset: .2em; }
.article-row p { margin: 0; display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: var(--muted); font-size: 13px; }
.category-label { display: inline-block; padding: 2px 9px; border-radius: 15px; background: var(--soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.side-panel { padding: 19px 19px 11px; margin-bottom: 17px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.side-panel h2 { font-size: 17px; line-height: 1.5; margin: 5px 0 13px; }
.side-panel p, .side-panel > a:not(.category-item) { color: var(--muted); font-size: 13px; }
.category-item { display: flex; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); padding: 9px 0; font-size: 13px; }
.category-item:hover span { text-decoration: underline; }
.category-item b { color: var(--accent); flex-shrink: 0; }

.breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 20px 0 0; color: var(--muted); font-size: 12px; }
.breadcrumb a { text-decoration: underline; text-underline-offset: .2em; }
.page-title { max-width: 900px; margin: 20px 0 25px; }
.page-title h1 { font-size: clamp(27px, 3.2vw, 42px); line-height: 1.42; margin: 8px 0 13px; letter-spacing: .01em; }
.page-title p { margin: 0; color: var(--muted); }
.article-meta { display: flex; gap: 9px 16px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.article-cover { margin: 0 0 17px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: white; }
.article-cover img { width: 100%; max-height: 365px; aspect-ratio: 16/9; object-fit: contain; }
.article-paper, .simple-paper { padding: clamp(22px, 4vw, 43px); border: 1px solid var(--line); border-radius: 12px; background: var(--panel); overflow-wrap: anywhere; }
.article-paper p { margin: 0 0 1.35em; }
.article-paper h2 { margin: 42px 0 19px; padding: 12px 15px; border-left: 4px solid var(--accent); border-radius: 0 6px 6px 0; background: var(--soft); font-size: 22px; line-height: 1.55; }
.article-paper h3 { margin: 28px 0 14px; font-size: 18px; line-height: 1.6; }
.article-paper :is(ol, ul) { padding-inline-start: 1.55em; }
.article-paper li + li { margin-top: .35em; }
.article-paper a, .simple-paper a:not(.button) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.marker { background: linear-gradient(transparent 58%, var(--gold) 58%); }
.memo-box, .information-box, .alert-box, .question-box, .has-box-style, .article-paper blockquote, .article-paper pre {
  margin: 21px 0;
  padding: 14px 18px;
  border-left: 3px solid #83a089;
  border-radius: 0 6px 6px 0;
  background: var(--bg);
}
.article-paper blockquote p:last-child, .article-paper div > p:last-child { margin-bottom: 0; }
.alert-box { border-color: #a97832; background: #fbf5e5; }
.article-paper pre { overflow: auto; font-size: 14px; }
.table-scroll { overflow-x: auto; margin: 22px 0; }
.article-paper table { width: 100%; min-width: 490px; border-collapse: collapse; font-size: 14px; }
.article-paper :is(td, th) { border: 1px solid var(--line); padding: 9px 12px; text-align: left; vertical-align: top; }
.article-paper th { background: var(--soft); }
.toc { padding: 15px 19px; margin: 24px 0; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.toc summary { font-weight: 700; cursor: pointer; }
.toc ol { margin-bottom: 3px; }
.article-note { padding-top: 17px; margin-top: 28px !important; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.related { margin: 27px 0; }
.related h2 { font-size: 20px; }
.related a { display: block; border-top: 1px solid var(--line); padding: 12px 0; font-size: 14px; }
.related a:hover, .article-navigation a:hover { text-decoration: underline; }
.article-navigation { display: flex; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 13px; }
.simple-layout { max-width: 840px; margin: 0 auto 50px; }
.simple-paper h2 { font-size: 21px; margin: 27px 0 13px; }
.simple-paper h2:first-child { margin-top: 0; }
.contact-box, .empty-state { padding: 24px; text-align: center; background: var(--soft); border-radius: 8px; }
.empty-state h3 { font-size: 17px; }
.ad-unit { overflow: hidden; margin: 30px 0; }
.ad-unit > span { display: block; text-align: center; font-size: 11px; }
.site-footer { padding: 30px 0 24px; margin-top: 42px; border-top: 1px solid var(--line); background: var(--soft); }
.footer-inner { display: flex; justify-content: space-between; gap: 22px; }
.footer-inner p, .footer-links, .copyright { color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 8px 15px; flex-wrap: wrap; align-content: start; }
.footer-links a:hover { text-decoration: underline; }
.copyright { margin-top: 14px; }

@media (max-width: 880px) {
  .wrap { width: calc(100% - 44px); }
  .archive-layout, .article-layout { grid-template-columns: minmax(0, 1fr) 218px; gap: 18px; }
  .main-nav { gap: 12px; }
  .hero-inner { gap: 24px; }
  .article-row { grid-template-columns: 108px minmax(0, 1fr); gap: 13px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 66px; gap: 9px; }
  .brand { grid-template-columns: 30px 1fr; gap: 0 7px; }
  .brand::before { width: 30px; height: 30px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .menu-toggle { display: block; flex-shrink: 0; }
  .main-nav {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    z-index: 20;
    padding: 13px 16px;
    flex-direction: column;
    gap: 7px;
    border-bottom: 1px solid var(--line);
    background: var(--panel);
  }
  .main-nav.is-open { display: flex; }
  .hero { padding: 25px 0 22px; }
  .hero-inner, .archive-layout, .article-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .hero h1 { font-size: clamp(26px, 7.2vw, 40px); }
  .hero p { font-size: 14px; }
  .hero-image { padding: 5px; border-radius: 11px; }
  .hero-image img { aspect-ratio: 2.45/1; border-radius: 8px; }
  .section { padding: 29px 0; }
  .section-heading h2 { font-size: 23px; }
  .article-row { grid-template-columns: 77px minmax(0, 1fr); gap: 10px; padding: 10px; }
  .article-row h3 { font-size: 15px; }
  .article-row p { font-size: 12px; }
  .article-paper, .simple-paper { padding: 20px 16px; }
  .article-paper h2 { font-size: 19px; }
  .article-paper h3 { font-size: 17px; }
  .footer-inner { flex-direction: column; }
}

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

.mobile-categories { display: none; }
@media (max-width: 720px) {
  .mobile-categories { display: block; margin-bottom: 13px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
  .mobile-categories summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--accent); }
  .mobile-categories .category-item:first-of-type { margin-top: 8px; }
  .archive-layout > aside { display: none; }
}
