/* =========================================================
   紀州有田商工会議所 女子ブログ（アーカイブ）
   静的サイト用スタイル
   ========================================================= */

:root {
  --green-800: #25634a;
  --green-700: #2f7d5c;
  --green-600: #3a9170;
  --green-200: #cfe8da;
  --green-100: #e6f4ec;
  --green-50: #f2f9f5;
  --peach-500: #f59b6b;
  --peach-200: #ffd9c0;
  --peach-100: #fff1e6;
  --ink: #26332e;
  --ink-soft: #46544e;
  --muted: #6b7a73;
  --line: #e4e9e3;
  --bg: #fbf9f4;
  --surface: #ffffff;

  --side-w: 308px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(38, 51, 46, .06), 0 2px 8px rgba(38, 51, 46, .05);
  --shadow-md: 0 4px 10px rgba(38, 51, 46, .07), 0 12px 28px rgba(38, 51, 46, .09);
  --topbar-h: 58px;

  --font-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Meiryo", sans-serif;
  --font-head: "Zen Maru Gothic", "Noto Sans JP", "Hiragino Maru Gothic ProN", "Yu Gothic UI", sans-serif;
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--bg);
  overflow-wrap: anywhere;
  word-break: normal;
  line-break: strict;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--green-700); text-underline-offset: .18em; }
a:hover { color: var(--green-800); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.45; margin: 0; letter-spacing: .02em; }
p, ul, ol { margin-top: 0; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #f5a25d; outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
[hidden] { display: none !important; }

.skip-link { position: fixed; left: 12px; top: -60px; z-index: 300; background: var(--green-700); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; transition: top .2s; }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- レイアウト ---------- */
.main { margin-left: var(--side-w); min-height: 100vh; padding: 40px clamp(20px, 4vw, 56px) 0; outline: none; }
.main > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.topbar, .scrim { display: none; }

/* ---------- 左メニュー ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--side-w); z-index: 100;
  background: var(--surface); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: thin; scrollbar-color: #cdd7d1 transparent;
}
.sidebar-inner { padding: 20px 18px 28px; display: flex; flex-direction: column; gap: 18px; min-height: 100%; }

/* 「HPへ戻る」はメニューをスクロールしても常に上部に表示 */
.side-top { position: sticky; top: 0; z-index: 5; display: flex; align-items: stretch; gap: 8px; margin: -20px -18px -4px; padding: 16px 18px 14px; background: linear-gradient(#fff 82%, rgba(255, 255, 255, 0)); }
.drawer-close { display: none; }
.back-link {
  flex: 1; min-width: 0;
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--green-700); color: #fff; text-decoration: none;
  font-weight: 700; font-size: .875rem; line-height: 1.35;
  box-shadow: 0 2px 0 var(--green-800);
  transition: background .2s, transform .2s;
}
.back-link:hover { background: var(--green-800); color: #fff; }
.back-link:active { transform: translateY(1px); box-shadow: none; }

.brand { display: block; text-decoration: none; color: inherit; padding: 4px 4px 0; }
.brand-logo { display: block; width: 100%; max-width: 224px; height: auto; margin-bottom: 14px; }
.brand-title {
  display: block; font-family: var(--font-head); font-weight: 700; font-size: 1.75rem; line-height: 1.2; letter-spacing: .06em; color: var(--green-800);
}
.brand-title::after { content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; margin-top: 10px; background: linear-gradient(90deg, var(--green-600), var(--peach-500)); }
.brand-sub { display: block; margin-top: 10px; font-size: .75rem; line-height: 1.6; color: var(--muted); }

.search { position: relative; }
.search input {
  width: 100%; height: 44px; padding: 0 44px 0 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--bg);
  font-size: .9375rem; appearance: none; -webkit-appearance: none;
}
.search input::placeholder { color: #94a19a; }
.search input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(58, 145, 112, .18); background: #fff; }
.search button { position: absolute; right: 4px; top: 4px; width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--green-700); cursor: pointer; display: grid; place-items: center; }
.search button:hover { background: var(--green-100); }
.search-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; margin: 0; padding: 6px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); max-height: 60vh; overflow: auto;
}
.search-results a { display: block; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .8125rem; line-height: 1.5; }
.search-results a:hover, .search-results a:focus-visible { background: var(--green-50); }
.search-results small { display: block; color: var(--muted); font-size: .6875rem; }
.search-results .none { padding: 10px; font-size: .8125rem; color: var(--muted); }

.menu ul { list-style: none; margin: 0; padding: 0; }
.menu a, .menu summary {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--ink-soft); text-decoration: none; font-size: .9375rem; line-height: 1.5; font-weight: 500;
  transition: background .15s, color .15s;
}
.menu a:hover, .menu summary:hover { background: var(--green-50); color: var(--green-800); }
.menu a[aria-current="page"] { background: var(--green-100); color: var(--green-800); font-weight: 700; box-shadow: inset 3px 0 0 var(--green-600); }
.menu-top { margin-bottom: 6px; }
.menu-head { margin: 18px 12px 6px; font-size: .6875rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.menu .lbl { flex: 1; min-width: 0; }
.menu .cnt { font-size: .6875rem; font-weight: 700; color: var(--muted); background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; line-height: 1.7; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: currentColor; }

.menu details > summary { list-style: none; cursor: pointer; }
.menu details > summary::-webkit-details-marker { display: none; }
.menu details > summary::before {
  content: ""; width: 7px; height: 7px; flex: none; margin-right: 2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; opacity: .7;
}
.menu details[open] > summary::before { transform: rotate(45deg); }
.menu details[open] > summary { color: var(--green-800); font-weight: 700; }
.post-list { margin: 2px 0 8px 17px !important; padding-left: 8px !important; border-left: 2px solid var(--green-100); }
.menu .post-list a { padding: 6px 10px; font-size: .8125rem; line-height: 1.5; font-weight: 400; display: block; }
.menu .post-list a[aria-current="page"] { font-weight: 700; }

.side-foot { margin-top: auto; padding: 16px 6px 0; border-top: 1px solid var(--line); font-size: .75rem; line-height: 1.7; color: var(--muted); }
.side-foot p { margin: 0; }

/* ---------- チップ ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; line-height: 1; padding: 6px 11px; border-radius: 999px;
  background: #eef0ee; color: #55605a; text-decoration: none; letter-spacing: .02em; white-space: nowrap;
}
a.chip:hover { filter: brightness(.96); }
.chip small { font-size: .6875rem; opacity: .75; }
.chip-lg { font-size: .875rem; padding: 9px 15px; }
.cat-food { background: #fff0e3; color: #b3511b; }
.cat-life { background: #e5f4ec; color: #23694b; }
.cat-sightseeing { background: #e4f0fb; color: #1f5f95; }
.cat-fashion { background: #fce8f1; color: #a2316a; }
.cat-sports { background: #e0f3f4; color: #14707a; }
.cat-tiweet { background: #f0eafb; color: #5f3aa1; }
.cat-etc { background: #eef0ee; color: #55605a; }
.dot.cat-food, .dot.cat-life, .dot.cat-sightseeing, .dot.cat-fashion, .dot.cat-sports, .dot.cat-tiweet, .dot.cat-etc { background: currentColor; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center;
  padding: clamp(28px, 4vw, 52px); border-radius: 28px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(520px 320px at 100% 0%, rgba(255, 190, 150, .55), transparent 70%),
    radial-gradient(480px 360px at 0% 100%, rgba(150, 215, 180, .6), transparent 70%),
    linear-gradient(135deg, #e3f3ea 0%, #fbf0e1 100%);
  border: 1px solid rgba(47, 125, 92, .12);
}
.hero::after { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; border-radius: 50%; right: -70px; bottom: -110px; background: rgba(255, 255, 255, .5); }
.eyebrow { margin: 0 0 10px; font-size: .75rem; font-weight: 700; letter-spacing: .2em; color: var(--green-700); }
.hero h1 { font-size: clamp(1.5rem, 3.1vw, 2.25rem); color: var(--ink); line-height: 1.4; }
.hero h1 span { color: var(--green-800); font-size: 1.35em; letter-spacing: .08em; }
.lead { margin: 14px 0 0; color: var(--ink-soft); font-size: 1rem; line-height: 1.85; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 22px 0 0; padding: 0; }
.hero-stats li { background: rgba(255, 255, 255, .78); border: 1px solid rgba(47, 125, 92, .14); border-radius: 14px; padding: 8px 16px; text-align: center; min-width: 88px; }
.hero-stats b { display: block; white-space: nowrap; font-family: var(--font-head); font-size: 1.25rem; line-height: 1.3; color: var(--green-800); }
.hero-stats span { display: block; font-size: .6875rem; color: var(--muted); letter-spacing: .06em; }
.hero-visual { display: block; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-md); transform: rotate(1.5deg); transition: transform .3s; background: #fff; }
.hero-visual:hover { transform: rotate(0) translateY(-3px); }
.hero-visual img { display: block; width: 100%; }

.notice {
  margin-top: 18px; padding: 14px 18px; border-radius: 14px; background: var(--peach-100); border: 1px solid var(--peach-200); color: #7a4a2b; font-size: .875rem; line-height: 1.8;
}
.notice b { margin-right: .5em; color: #a8531e; }

.cat-strip { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------- セクション ---------- */
.section { margin-top: 44px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head h2 { font-size: 1.375rem; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.section-head h2::before { content: ""; align-self: center; width: 6px; height: 1.2em; border-radius: 4px; background: linear-gradient(var(--green-600), var(--peach-500)); }
.section-head small { font-family: var(--font-body); font-size: .8125rem; font-weight: 500; color: var(--muted); }
.more { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; font-weight: 700; text-decoration: none; }
.more:hover { text-decoration: underline; }

.page-head { padding: 4px 0 8px; }
.page-head h1 { font-size: clamp(1.5rem, 3vw, 2rem); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head .lead { margin-top: 8px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; font-size: .8125rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--green-700); text-decoration: underline; }
.crumbs span[aria-hidden], .crumbs > span:not([aria-current]) { opacity: .6; }

/* ---------- カード ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(236px, 1fr)); gap: 22px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--green-200); }
.card-thumb { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-50); }
.thumb-ph { display: grid; place-items: center; width: 100%; height: 100%; font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; letter-spacing: .12em; color: var(--green-700); background: linear-gradient(135deg, var(--green-100), var(--peach-100)); }
.card-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-thumb img { transform: scale(1.05); }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .75rem; color: var(--muted); }
.card-meta .chip { position: relative; z-index: 2; padding: 5px 10px; }
.card-meta time { margin-left: auto; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.card-title { font-size: 1rem; line-height: 1.6; font-weight: 700; }
.card-title a { color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card:hover .card-title a { color: var(--green-800); }
.card-no { margin: auto 0 0; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; color: #9aa7a0; }

/* ---------- ページ送り ---------- */
.pager { margin-top: 36px; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pager-num, .pager-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .9375rem;
  transition: background .15s, border-color .15s, color .15s;
}
a.pager-num:hover, a.pager-nav:hover { background: var(--green-50); border-color: var(--green-600); color: var(--green-800); }
.pager-num.is-current { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.pager-nav.is-disabled { opacity: .4; }
.pager-gap { color: var(--muted); padding: 0 2px; }

/* ---------- 記事ページ ---------- */
.post { max-width: 760px; }
.post-head { padding-bottom: 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; font-size: .8125rem; color: var(--muted); }
.post-meta time { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.post-meta .no { font-weight: 700; letter-spacing: .1em; color: #9aa7a0; }
.post-head h1 { font-size: clamp(1.4rem, 2.8vw, 1.95rem); line-height: 1.55; }

.post-body { font-size: 1.0625rem; line-height: 2; color: #2c3a34; padding-top: 18px; }
.post-body > * { max-width: 100%; }
.post-body p { margin: 0 0 1.25em; }
.post-body h2, .post-body h3 { margin: 2.2em 0 .8em; font-size: 1.3rem; padding-left: .7em; border-left: 5px solid var(--green-600); }
.post-body strong { font-weight: 700; }
.post-body a { font-weight: 500; word-break: break-all; }
.post-body img:not(.emoji) { display: block; width: auto; max-width: 100%; height: auto; max-height: min(78vh, 700px); margin: 1.4em auto; border-radius: 14px; box-shadow: var(--shadow-sm); background: var(--green-50); }
.post-body figure { margin: 1.8em 0; }
.post-body figure img { margin: 0 auto; }
.post-body figcaption { margin-top: .6em; text-align: center; font-size: .875rem; color: var(--muted); }
.post-body a.zoom { display: block; cursor: zoom-in; }
.post-body a.zoom img { transition: box-shadow .2s, transform .2s; }
.post-body a.zoom:hover img { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.post-body img.emoji { display: inline; vertical-align: -.22em; margin: 0 .1em; border-radius: 0; box-shadow: none; background: none; }
.post-body mark { background: transparent; color: inherit; }
.post-body mark:not([style]) { background: linear-gradient(transparent 62%, #ffe0c9 62%); }
.post-body ul, .post-body ol { padding-left: 1.4em; margin-bottom: 1.25em; }
.post-body li { margin-bottom: .3em; }
.post-body code { font-size: .9em; padding: .1em .4em; border-radius: 6px; background: var(--green-50); }
.post-body .video { position: relative; aspect-ratio: 16 / 9; margin: 1.8em 0; border-radius: 14px; overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.post-body .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.post-body figure.embed { margin: 0; }
.post-body .table-wrap { overflow-x: auto; margin: 1.5em 0; }
.post-body table { border-collapse: collapse; min-width: 320px; }
.post-body td, .post-body th { border: 1px solid var(--line); padding: 8px 12px; }

/* WordPress 標準色 */
.has-vivid-red-color { color: #cf2e2e; }
.has-pale-pink-color { color: #f78da7; }
.has-luminous-vivid-orange-color { color: #ff6900; }
.has-luminous-vivid-amber-color { color: #fcb900; }
.has-vivid-cyan-blue-color { color: #0693e3; }
.has-vivid-green-cyan-color { color: #00b46f; }
.has-black-color { color: #000; }
.has-white-color { color: #fff; }

/* 前後の記事 */
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.pn { display: flex; flex-direction: column; gap: 6px; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s, transform .2s; min-width: 0; }
a.pn:hover { border-color: var(--green-600); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.pn-label { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; color: var(--green-700); letter-spacing: .06em; }
.pn-next { text-align: right; }
.pn-next .pn-label { justify-content: flex-end; }
.pn-title { font-size: .9375rem; line-height: 1.6; font-weight: 500; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pn-empty { background: transparent; border-style: dashed; justify-content: center; }
.pn-last .pn-label { color: var(--muted); justify-content: flex-end; }

.related { max-width: none; }

/* ---------- 全記事一覧 ---------- */
.archive-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 20px 0 8px; position: sticky; top: 0; z-index: 30; padding: 12px 0; background: var(--bg); }
.filter { position: relative; flex: 1 1 320px; max-width: 520px; }
.filter .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--green-700); }
.filter input { width: 100%; height: 48px; padding: 0 16px 0 44px; border: 1px solid var(--line); border-radius: 14px; background: #fff; font-size: 1rem; appearance: none; -webkit-appearance: none; }
.filter input:focus { outline: none; border-color: var(--green-600); box-shadow: 0 0 0 3px rgba(58, 145, 112, .18); }
.filter-count { margin: 0; font-size: .875rem; color: var(--muted); }
.filter-count b { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-800); }
.year-jump { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.year-jump a { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .8125rem; font-weight: 700; text-decoration: none; color: var(--ink-soft); }
.year-jump a:hover { background: var(--green-100); color: var(--green-800); }
.year-group { margin-top: 28px; }
.year-group h2 { font-size: 1.375rem; display: flex; align-items: baseline; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--green-200); }
.year-group h2 small { font-family: var(--font-body); font-size: .8125rem; color: var(--muted); font-weight: 500; }
.archive-list { list-style: none; margin: 0; padding: 0; }
.archive-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.archive-list time { flex: none; font-size: .8125rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 5.6em; }
.archive-list .chip { padding: 5px 10px; }
.archive-list .t { flex: 1 1 260px; min-width: 0; color: var(--ink); text-decoration: none; font-weight: 500; line-height: 1.6; }
.archive-list .t:hover { color: var(--green-700); text-decoration: underline; }
.no-hit { margin: 32px 0; padding: 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* ---------- ボタン / 404 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 22px; border-radius: 12px; background: var(--green-700); color: #fff; font-weight: 700; text-decoration: none; margin: 4px 8px 4px 0; }
.btn:hover { background: var(--green-800); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-700); border: 1px solid var(--green-700); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-800); }
.notfound { padding-top: 40px; }

/* ---------- フッター ---------- */
.site-footer { margin-top: 64px; padding: 28px 0 36px; border-top: 1px solid var(--line); text-align: center; }
.footer-back { display: inline-flex; align-items: center; gap: 6px; padding: 11px 20px; border-radius: 12px; border: 1px solid var(--green-700); color: var(--green-700); font-weight: 700; text-decoration: none; font-size: .9375rem; }
.footer-back:hover { background: var(--green-700); color: #fff; }
.footer-addr { margin: 18px 0 0; font-size: .8125rem; color: var(--muted); line-height: 1.8; }
.copy { margin: 6px 0 0; font-size: .75rem; color: #98a59e; }

/* ---------- ライトボックス ---------- */
.lightbox { position: fixed; inset: 0; z-index: 500; display: grid; place-items: center; padding: 24px; background: rgba(20, 28, 24, .86); cursor: zoom-out; }
.lightbox img { max-width: min(96vw, 1400px); max-height: 92vh; width: auto; height: auto; border-radius: 10px; box-shadow: 0 10px 50px rgba(0, 0, 0, .5); background: #fff; }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: #222; font-size: 1.75rem; line-height: 1; cursor: pointer; }
body.lb-open { overflow: hidden; }

/* =========================================================
   タブレット・スマホ：ハンバーガーメニュー
   ========================================================= */
@media (max-width: 1023px) {
  :root { --side-w: min(88vw, 356px); }

  .topbar {
    display: flex; align-items: center; gap: 8px;
    position: fixed; inset: 0 0 auto 0; z-index: 90; height: var(--topbar-h); padding: 0 8px 0 4px;
    background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
  }
  .topbar-title { font-family: var(--font-head); font-weight: 700; font-size: 1.125rem; letter-spacing: .06em; color: var(--green-800); text-decoration: none; margin-right: auto; }
  .topbar-back { display: inline-flex; align-items: center; gap: 2px; min-height: 40px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--green-50); border: 1px solid var(--green-200); color: var(--green-800); font-size: .8125rem; font-weight: 700; text-decoration: none; }

  .menu-btn { position: relative; width: 48px; height: 48px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; flex: none; }
  .menu-btn:hover { background: var(--green-50); }
  .menu-btn span { position: absolute; left: 13px; right: 13px; height: 2.5px; border-radius: 2px; background: var(--green-800); transition: transform .25s, opacity .2s, top .25s; }
  .menu-btn span:nth-child(1) { top: 16px; }
  .menu-btn span:nth-child(2) { top: 23px; }
  .menu-btn span:nth-child(3) { top: 30px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { top: 23px; transform: rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { top: 23px; transform: rotate(-45deg); }

  .sidebar { z-index: 200; transform: translateX(-102%); visibility: hidden; transition: transform .3s cubic-bezier(.3, .8, .3, 1), visibility 0s .3s; box-shadow: none; }
  .sidebar-inner { padding-top: 16px; padding-bottom: 40px; }
  .side-top { margin-top: -16px; }
  .back-link { font-size: .8125rem; padding: 12px 11px; gap: 6px; }
  .drawer-close { display: grid; place-items: center; flex: none; width: 46px; border: 1px solid var(--green-200); border-radius: 12px; background: var(--green-50); color: var(--green-800); cursor: pointer; }
  .drawer-close:hover { background: var(--green-100); }
  .drawer-close .ico { width: 1.4em; height: 1.4em; }
  body.nav-open .sidebar { transform: none; visibility: visible; transition: transform .3s cubic-bezier(.3, .8, .3, 1), visibility 0s; box-shadow: 0 0 60px rgba(0, 0, 0, .28); }
  .scrim { display: block; position: fixed; inset: 0; z-index: 150; background: rgba(20, 28, 24, .5); }
  .scrim[hidden] { display: none !important; }
  body.nav-open { overflow: hidden; }

  .main { margin-left: 0; padding-top: calc(var(--topbar-h) + 24px); }
  .archive-tools { top: var(--topbar-h); }
  .hero { grid-template-columns: 1fr; }
  .hero-visual { max-width: 440px; }
}

@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .main { padding-left: 16px; padding-right: 16px; }
  .hero { padding: 24px 20px; border-radius: 22px; }
  .hero-stats li { flex: 1; min-width: 0; padding: 8px 6px; }
  .hero-stats b { font-size: 1.05rem; }
  .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card-body { padding: 10px 12px 12px; gap: 6px; }
  .card-title { font-size: .875rem; }
  .card-meta time { margin-left: 0; width: 100%; }
  .card-no { display: none; }
  .post-body { font-size: 1rem; line-height: 1.95; }
  .post-nav { grid-template-columns: 1fr; }
  .pn-next, .pn-next .pn-label { text-align: left; justify-content: flex-start; }
  .pn-empty { display: none; }
  .pager-num, .pager-nav { min-width: 42px; height: 42px; padding: 0 10px; }
  .pager-nav span { display: none; }
  .section-head h2 { font-size: 1.2rem; }
  .archive-list time { min-width: 0; }
}

@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media print {
  .sidebar, .topbar, .scrim, .site-footer .footer-back, .post-nav, .related, .lightbox { display: none !important; }
  .main { margin: 0; padding: 0; }
  body { background: #fff; }
}
