/* まちかどメディア brand CSS — direction18 warm editorial palette */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700;900&family=Noto+Serif+JP:wght@500;700;900&display=swap');

:root {
  --cream:   #f6efe3;
  --paper:   #fffaf0;
  --ink:     #2b1c12;
  --brown:   #5b3824;
  --muted:   #8b6b54;
  --line:    #ddc3a4;
  --orange:  #b85b22;
  --mustard: #c08a2d;
  --red:     #8f2f22;
  --serif:   "Noto Serif JP", "Shippori Mincho", serif;
  --sans:    "Noto Sans JP", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: linear-gradient(180deg, #fff7ea, var(--cream));
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.8;
}
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, calc(100% - 44px)); margin: auto; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 250, 240, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}
.site-header .nav {
  height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand-logo-img { height: 36px; width: auto; }
.brand-sub-txt {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .12em;
  margin-top: 4px;
  font-weight: 500;
}
.nav-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brown);
}
.nav-links a:hover { color: var(--orange); }

/* ── Footer ── */
.site-footer {
  background: #382316;
  color: #f8ead8;
  padding: 44px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
}
.footer-logo-img { height: 28px; width: auto; filter: invert(1) brightness(1.6); margin-bottom: 12px; }
.site-footer p, .site-footer a {
  display: block;
  color: rgba(248, 234, 216, .72);
  font-size: 13px;
  margin: 7px 0;
}
.site-footer a:hover { color: #f8ead8; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; color: rgba(248,234,216,.5); letter-spacing: .1em; }
.copyright {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(248,234,216,.15);
  text-align: center;
  color: rgba(248,234,216,.4);
  font-size: 12px;
}

/* ── Article pages ── */
.single-body { background: var(--paper); min-height: 100vh; }
.art-wrap {
  width: min(760px, calc(100% - 44px));
  margin: 0 auto;
  padding: 56px 0 88px;
}
.art-cat {
  display: inline-flex; align-items: center;
  padding: 4px 12px;
  background: #ead5b6;
  border-radius: 4px;
  font-size: 11px; font-weight: 900;
  color: var(--brown);
  margin-bottom: 18px;
}
h1.art-title {
  margin: 0 0 20px;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(26px, 4vw, 44px);
  line-height: 1.38;
  letter-spacing: .04em;
  color: var(--ink);
}
.art-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  color: var(--muted); font-size: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 38px;
}
.art-meta a { color: var(--orange); }
.art-body {
  font-size: 16px;
  line-height: 2;
  color: var(--ink);
}
.art-body p { margin: 0 0 1.4em; }
.art-body h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--brown);
  margin: 2.2em 0 .7em;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.art-body h3 {
  font-family: var(--serif);
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--ink);
  margin: 1.8em 0 .5em;
}
.art-body ul, .art-body ol { margin: 0 0 1.4em 1.5em; }
.art-body li { margin-bottom: .4em; }
.art-body a { color: var(--orange); border-bottom: 1px solid rgba(184,91,34,.3); transition: .2s; }
.art-body a:hover { color: var(--red); }
.art-body strong { font-weight: 700; color: var(--ink); }
.art-body blockquote {
  margin: 1.5em 0; padding: 16px 22px;
  background: var(--cream);
  border-left: 3px solid var(--orange);
  color: var(--muted); font-size: 15px;
}
.art-body .machikado-faq {
  background: var(--cream);
  border: 1px solid var(--line);
  border-top: 2px solid var(--brown);
  padding: 26px 30px;
  margin: 2.2em 0;
}
.art-body .machikado-faq h2 {
  font-size: 14px; letter-spacing: .14em; color: var(--brown);
  border: none; padding: 0 0 10px; border-bottom: 1px solid var(--line);
  margin: 0 0 18px;
}
.art-body .faq-q strong { color: var(--brown); font-size: 14px; }
.art-body .faq-a { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 4px 0 0; }
.post-nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 54px; padding-top: 26px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.post-nav a { color: var(--orange); }

/* Related */
.related-section { background: var(--cream); padding: 56px 0; border-top: 1px solid var(--line); }
.related-inner { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.related-section h2 {
  font-family: var(--serif); font-size: 22px; margin: 0 0 28px;
  color: var(--ink); letter-spacing: .06em;
}
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-card {
  background: var(--paper); border: 1px solid var(--line);
  overflow: hidden; transition: .2s;
}
.related-card:hover { border-color: var(--orange); }
.related-thumb {
  aspect-ratio: 4/3; background: #ead5b6;
  background-size: cover !important; background-position: center !important;
}
.related-card-body { padding: 14px 16px; }
.related-card-cat { font-size: 10px; color: var(--orange); font-weight: 700; margin-bottom: 5px; }
.related-card-title { font-size: 14px; line-height: 1.5; color: var(--ink); font-weight: 500; }
.related-card-date { font-size: 11px; color: var(--muted); margin-top: 6px; }

/* Archive */
.archive-page { width: min(960px, calc(100% - 44px)); margin: 0 auto; padding: 56px 0 80px; }
.archive-head { border-bottom: 1px solid var(--line); padding-bottom: 22px; margin-bottom: 32px; }
.archive-head .tag { background: #ead5b6; color: var(--brown); border-radius: 4px; padding: 3px 10px; font-size: 11px; font-weight: 900; }
.archive-head h1 { font-family: var(--serif); font-size: clamp(26px, 4vw, 42px); margin: 12px 0 0; color: var(--ink); }
.archive-list { border-top: 1px solid var(--line); }
.archive-item {
  display: grid;
  grid-template-columns: 52px 130px 130px 1fr;
  gap: 18px; padding: 20px 0 21px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.archive-item::after {
  content: ""; position: absolute; bottom: -1px; left: 0;
  height: 1px; width: 0; background: var(--orange); transition: .35s;
}
.archive-item:hover::after { width: 100%; }
.archive-item:hover .arch-title { color: var(--orange); }
.arch-num { font-family: var(--serif); font-size: 22px; color: var(--mustard); font-weight: 900; }
.arch-cat { font-size: 11px; color: var(--orange); font-weight: 700; }
.arch-date { font-size: 11px; color: var(--muted); }
.arch-title { font-family: var(--serif); font-size: clamp(15px, 1.8vw, 20px); line-height: 1.5; margin: 0 0 4px; transition: .2s; }
.arch-excerpt { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* Page (static) */
.page-wrap { width: min(760px, calc(100% - 44px)); margin: 0 auto; padding: 56px 0 88px; }
.page-wrap h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(24px, 3.5vw, 38px); color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin: 0 0 34px;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .nav-links { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .archive-item { grid-template-columns: 40px 1fr; gap: 8px 14px; }
  .arch-cat, .arch-date, .arch-main { grid-column: 2; }
}
@media (max-width: 600px) {
  .art-wrap, .page-wrap { padding: 36px 0 60px; }
  .post-nav { grid-template-columns: 1fr; }
}
