﻿:root {
  --ink: #222;
  --muted: #666;
  --paper: #fff;
  --page: #eeeeec;
  --line: #c9cbc8;
  --light-line: #e2e3e0;
  --nav: #171717;
  --green: #27634d;
  --green-dark: #194533;
  --green-light: #e9f0ec;
  --link: #075f9a;
  --warning: #fff7d6;
  --page-width: 1040px;
  color: var(--ink);
  background: var(--page);
  font-family: "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", メイリオ, Meiryo, "ＭＳ Ｐゴシック", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
  border-radius: 0;
  box-shadow: none;
}

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.65;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover { color: #a21f1f; }
img { max-width: 100%; }

.skip-link {
  position: fixed;
  top: -4rem;
  left: 1rem;
  z-index: 100;
  padding: 6px 10px;
  color: #fff;
  background: #000;
}

.skip-link:focus { top: 0; }

.header-inner,
.footer-inner,
.container {
  width: min(var(--page-width), calc(100% - 20px));
  margin-inline: auto;
}

.site-header {
  border-top: 5px solid var(--green);
  background: var(--paper);
}

.header-inner { padding-top: 14px; }

.site-header .brand {
  display: inline-block;
  margin: 0 0 12px;
  color: #202020;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 20px;
  text-decoration: none;
}

.site-header .brand::after {
  display: inline-block;
  margin-left: 12px;
  color: #777;
  content: "会社・暮らし・ゲーム・ネットのまとめブログ";
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  vertical-align: 2px;
}

.brand-mark { display: none; }

.site-header nav {
  background: var(--nav);
  border-bottom: 3px solid var(--green);
}

.nav-list {
  display: flex;
  align-items: stretch;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list li { border-right: 1px solid #444; }
.nav-list li:first-child { border-left: 1px solid #444; }

.nav-list a {
  display: block;
  padding: 7px 13px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.nav-list a:hover,
.nav-list a[aria-current="page"] {
  color: #fff;
  background: var(--green);
}

main { min-height: 68vh; }

.topic-bar {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topic-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  min-height: 34px;
  padding-block: 4px;
}

.topic-links strong {
  margin-right: 6px;
  padding: 1px 8px;
  color: #fff;
  background: var(--green);
  font-size: 11px;
}

.topic-links a {
  padding: 0 10px;
  border-right: 1px solid #bbb;
  color: #333;
  font-size: 12px;
  line-height: 1.3;
  text-decoration: none;
}

.topic-links a:hover { color: #a21f1f; text-decoration: underline; }

.site-layout {
  display: grid;
  grid-template-columns: minmax(0, 730px) minmax(240px, 1fr);
  gap: 12px;
  align-items: start;
  padding-block: 12px 36px;
}

.content-column,
.sidebar-widget,
.page-hero,
.prose {
  background: var(--paper);
  border: 1px solid var(--line);
}

.content-column {
  min-width: 0;
  padding: 12px 14px 20px;
}

.section-title,
.widget-title {
  margin: 0;
  color: #fff;
  background: var(--green-dark);
  border-left: 6px solid #d2aa21;
  font-weight: 700;
  line-height: 1.4;
}

.section-title {
  padding: 6px 9px;
  font-size: 15px;
}

.widget-title {
  padding: 5px 8px;
  font-size: 13px;
}

.site-note {
  margin: 0 0 12px;
  padding: 11px 13px;
  background: #fafafa;
  border: 1px solid #bbb;
  border-top: 4px solid var(--green);
}

.site-note-label {
  margin: 0 0 3px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 700;
}

.site-note h1 {
  margin: 0 0 5px;
  font-size: 20px;
  line-height: 1.45;
}

.site-note p:last-child { margin: 0; color: #4f4f4f; }

.notice {
  margin: 0 0 14px;
  padding: 8px 10px;
  background: var(--warning);
  border: 1px solid #d7c36f;
  border-left: 5px solid #b28a00;
}

.notice strong { display: block; font-size: 13px; }
.notice p { margin: 2px 0 0; color: #5b512d; font-size: 12px; }

.post-list { margin-bottom: 16px; }

.post-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 11px;
  padding: 11px 3px;
  border-bottom: 1px dotted #999;
}

.post-card:first-child { border-top: 0; }

.post-thumb {
  display: grid;
  min-height: 58px;
  align-self: start;
  place-items: center;
  color: #333;
  background: #e8e8e5;
  border: 1px solid #aaa;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.post-thumb:hover { color: #333; background: #ddd; }

.post-meta {
  margin: 0 0 1px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.post-title {
  margin: 0 0 3px;
  font-size: 14px;
  line-height: 1.45;
}

.post-title a { color: var(--link); }
.post-excerpt { margin: 0; color: #555; font-size: 12px; line-height: 1.6; }

.article-body { font-size: 14px; line-height: 1.9; }
.article-body h2 { margin-top: 28px; }
.article-body h3 { margin-top: 22px; }
.article-body blockquote {
  margin: 14px 0;
  padding: 7px 12px;
  color: #555;
  background: #f3f3f1;
  border-left: 4px solid #999;
}
.article-source {
  margin-top: 24px;
  padding: 9px 10px;
  background: #f3f3f1;
  border: 1px solid #bbb;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.article-ad {
  margin: 18px 0;
  padding: 10px;
  border: 1px solid #aaa;
  text-align: center;
}
.article-note {
  margin-top: 24px;
  padding-top: 8px;
  color: #666;
  border-top: 1px dotted #999;
  font-size: 11px;
}

.category-grid {
  margin-top: 8px;
  border-top: 1px solid #bbb;
}

.category-card {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  padding: 7px 9px;
  background: #fff;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-left: 1px solid #bbb;
}

.category-card:nth-child(even) { background: #f5f5f3; }
.category-card strong { color: var(--green-dark); font-size: 13px; }
.category-card small { color: #555; font-size: 12px; }

.sidebar {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.sidebar-widget { overflow: hidden; }
.widget-body { padding: 7px 9px; }

.side-list,
.rank-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list li { border-bottom: 1px dotted #aaa; }
.side-list li:last-child { border-bottom: 0; }

.side-list a {
  display: block;
  padding: 5px 2px;
  color: #333;
  font-size: 12px;
  text-decoration: none;
}

.side-list a::before { color: var(--green); content: "■ "; font-size: 8px; }
.side-list a:hover { color: #a21f1f; text-decoration: underline; }

.rank-list { counter-reset: rank; }

.rank-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 4px;
  padding: 5px 0;
  border-bottom: 1px dotted #aaa;
  counter-increment: rank;
}

.rank-list li::before {
  display: block;
  width: 16px;
  height: 16px;
  color: #fff;
  background: #555;
  content: counter(rank);
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.rank-list a { color: #333; font-size: 12px; line-height: 1.45; text-decoration: none; }
.rank-list a:hover { text-decoration: underline; }

.status-box {
  padding: 7px 8px;
  background: #f5f5f3;
  border-left: 3px solid var(--green);
}

.status-box strong { display: block; margin-bottom: 2px; font-size: 12px; }
.status-box p { margin: 0; color: #666; font-size: 11px; line-height: 1.6; }

.page-hero {
  width: min(var(--page-width), calc(100% - 20px));
  margin: 12px auto 0;
  padding: 12px 16px;
  border-top: 4px solid var(--green);
}

.page-hero .container { width: 100%; }
.eyebrow,
.card-number { color: var(--green-dark); font-size: 10px; font-weight: 700; letter-spacing: 0.04em; }
.page-hero h1 { margin: 1px 0 3px; font-size: 22px; line-height: 1.4; }
.page-hero p { margin: 0; color: var(--muted); font-size: 12px; }

.prose {
  max-width: 790px;
  margin: 10px 0 36px;
  padding: 18px 20px 26px;
}

.prose h2 {
  margin: 24px 0 8px;
  padding: 5px 8px;
  color: #fff;
  background: var(--green-dark);
  border-left: 6px solid #d2aa21;
  font-size: 15px;
  line-height: 1.45;
}

.prose h2:first-child { margin-top: 0; }

.prose h3 {
  margin: 20px 0 7px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--green);
  font-size: 14px;
}

.prose p,
.prose li { color: #3e3e3e; }
.prose ul,
.prose ol { padding-left: 22px; }
.prose .meta { color: var(--muted); font-size: 12px; }

.contact-box {
  margin: 12px 0;
  padding: 10px;
  background: var(--green-light);
  border: 1px solid #9eb5aa;
}

.contact-address { display: inline-block; margin-top: 2px; font-weight: 700; overflow-wrap: anywhere; }

.definition-list {
  display: grid;
  grid-template-columns: 130px 1fr;
  margin: 0;
  border-top: 1px solid #aaa;
}

.definition-list dt,
.definition-list dd {
  margin: 0;
  padding: 7px 9px;
  border-right: 1px solid #aaa;
  border-bottom: 1px solid #aaa;
}

.definition-list dt {
  background: #f0f0ee;
  border-left: 1px solid #aaa;
  font-weight: 700;
}

.card-grid { border-top: 1px solid #bbb; }
.card {
  padding: 8px 9px;
  background: #fff;
  border-right: 1px solid #bbb;
  border-bottom: 1px solid #bbb;
  border-left: 1px solid #bbb;
}
.card h3 { margin: 2px 0; font-size: 14px; }
.card p { margin: 0; color: #555; }
.news-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.news-arrow { font-size: 18px; }

.hero-actions { margin-top: 12px; }
.button {
  display: inline-block;
  padding: 5px 9px;
  color: #fff;
  background: var(--green-dark);
  border: 1px solid #123527;
  text-decoration: none;
}
.button:hover { color: #fff; background: #102d22; }

.site-footer {
  color: #ccc;
  background: #1c1c1c;
  border-top: 4px solid var(--green);
}

.footer-inner { padding: 16px 0; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-footer .brand { color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; }
.footer-links { display: flex; flex-wrap: wrap; gap: 5px 13px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: #ccc; font-size: 11px; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.copyright { margin: 7px 0 0; color: #888; font-size: 10px; }

@media (max-width: 760px) {
  body { font-size: 13px; }
  .header-inner { width: 100%; padding-top: 9px; }
  .site-header .brand { margin: 0 10px 8px; font-size: 25px; }
  .site-header .brand::after { display: none; }
  .nav-list { justify-content: flex-start; overflow-x: auto; }
  .nav-list li:first-child { border-left: 0; }
  .nav-list a { padding: 7px 10px; }
  .topic-links { width: 100%; padding-inline: 10px; }
  .topic-links strong { width: 100%; margin: 0 0 3px; background: transparent; color: var(--green-dark); }
  .site-layout { display: flex; flex-direction: column; padding-top: 8px; }
  .content-column { order: 1; width: 100%; padding: 9px; }
  .sidebar { order: 2; width: 100%; }
  .site-note h1 { font-size: 17px; }
  .post-card { grid-template-columns: 64px minmax(0, 1fr); gap: 8px; padding: 9px 2px; }
  .post-thumb { min-height: 48px; font-size: 11px; }
  .post-title { font-size: 14px; }
  .post-excerpt { display: none; }
  .category-card { grid-template-columns: 1fr; gap: 1px; }
  .page-hero { margin-top: 8px; padding: 10px 11px; }
  .page-hero h1 { font-size: 20px; }
  .prose { margin-top: 8px; padding: 13px 12px 20px; }
  .definition-list { grid-template-columns: 1fr; }
  .definition-list dt { padding-bottom: 2px; border-bottom: 0; }
  .definition-list dd { padding-top: 2px; border-left: 1px solid #aaa; }
  .footer-top { display: block; }
  .footer-links { margin-top: 8px; }
}

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