/*
Theme Name: Alonez Golf
Theme URI: https://alonez.jp/
Author: Alonez, Inc.
Description: SEOゴルフ情報メディア「Alonez Golf」専用テーマ。清潔感 × ゴルフ × 専門メディア。外部ライブラリ・Webフォント非依存、モバイルファースト、構造化データ・目次・関連記事を内蔵。
Version: 1.0.2
Requires at least: 5.9
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: alonez-golf
Tags: blog, seo, japanese, one-column, two-columns, custom-menu, featured-images, translation-ready
*/

/* ==========================================================================
   1. Tokens
   ========================================================================== */
:root {
  --ag-green: #0f3d2e;
  --ag-green-mid: #1a5c45;
  --ag-green-light: #1a7a58;
  --ag-green-pale: #f4f8f6;
  --ag-green-border: #cfdcd6;
  --ag-ink: #1c1c1a;
  --ag-ink-2: #3d3d38;
  --ag-ink-3: #4a4a44;
  --ag-muted: #6b6b66;
  --ag-muted-2: #8a8a83;
  --ag-muted-3: #a0a099;
  --ag-line: #e3e3df;
  --ag-line-2: #f0f0ec;
  --ag-line-3: #ececE7;
  --ag-off: #f7f7f5;
  --ag-off-2: #fbfbf9;
  --ag-alert: #c9553f;
  --ag-alert-ink: #a33f2b;
  --ag-alert-bg: #fdf7f5;
  --ag-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ag-sans: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --ag-wrap: 1200px;
  --ag-body: 800px;
}

/* ==========================================================================
   2. Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fff;
  color: var(--ag-ink);
  font-family: var(--ag-sans);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--ag-green); text-decoration: none; }
a:hover { color: var(--ag-green-light); text-decoration: underline; }
::selection { background: #cfe6dc; }
h1, h2, h3, h4, h5, p, ul, ol, dl, figure, blockquote { margin: 0; }
ul, ol { padding: 0; }
button { font-family: inherit; }
:focus-visible { outline: 2px solid var(--ag-green); outline-offset: 2px; }
.ag-sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ag-skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--ag-green); color: #fff; padding: 12px 18px;
}
.ag-skip:focus { left: 0; }
.ag-wrap { max-width: var(--ag-wrap); margin: 0 auto; padding: 0 16px; }
.ag-mono { font-family: var(--ag-mono); }

/* ==========================================================================
   3. Header
   ========================================================================== */
.ag-header { border-bottom: 1px solid var(--ag-line); background: #fff; position: relative; z-index: 40; }
.ag-header__bar { display: flex; align-items: center; gap: 12px; height: 58px; }
.ag-logo { display: flex; align-items: baseline; gap: 8px; flex-shrink: 0; text-decoration: none; }
.ag-logo:hover { text-decoration: none; }
.ag-logo__name { font-size: 19px; font-weight: 700; letter-spacing: .02em; color: var(--ag-green); }
.ag-logo__sub { font-size: 10px; color: var(--ag-muted-2); letter-spacing: .14em; font-family: var(--ag-mono); }
.ag-logo img { max-height: 34px; width: auto; }
.ag-logo__mark { height: 36px; width: auto; flex: 0 0 auto; }
@media (max-width: 420px) { .ag-logo__mark { height: 30px; } }
.ag-logo__text { display: flex; align-items: baseline; gap: 8px; }
.ag-logo { align-items: center; gap: 10px; }
.ag-header__tools { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.ag-btn-icon {
  display: flex; align-items: center; gap: 6px; height: 44px; min-width: 44px;
  padding: 0 12px; border: 1px solid var(--ag-line); background: #fff;
  color: var(--ag-ink-2); font-size: 13px; cursor: pointer;
}
.ag-btn-icon:hover { border-color: var(--ag-green); color: var(--ag-green); }
.ag-btn-burger {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  width: 44px; height: 44px; padding: 0 11px; border: 1px solid var(--ag-line);
  background: #fff; cursor: pointer;
}
.ag-btn-burger span { display: block; height: 1.5px; background: var(--ag-ink); }
.ag-btn-burger:hover { border-color: var(--ag-green); }

.ag-catnav { border-top: 1px solid var(--ag-line-2); background: var(--ag-off-2); }
.ag-catnav ul {
  max-width: var(--ag-wrap); margin: 0 auto; padding: 0 16px; list-style: none;
  display: flex; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.ag-catnav ul::-webkit-scrollbar { display: none; }
.ag-catnav li { flex: 0 0 auto; }
.ag-catnav a {
  display: flex; align-items: center; height: 44px; padding: 0 14px;
  font-size: 13.5px; color: var(--ag-ink-2); white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.ag-catnav a:hover, .ag-catnav .current-cat > a {
  color: var(--ag-green); border-bottom-color: var(--ag-green); text-decoration: none;
}

/* Drawer */
.ag-drawer { position: fixed; inset: 0; z-index: 50; background: rgba(12,30,24,.45); display: none; }
.ag-drawer.is-open { display: block; }
.ag-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(320px, 88vw);
  background: #fff; padding: 20px 20px 40px; overflow-y: auto;
}
.ag-drawer__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--ag-line); }
.ag-drawer__label { font-size: 12px; letter-spacing: .14em; color: var(--ag-muted-2); font-family: var(--ag-mono); }
.ag-drawer__close { width: 44px; height: 44px; border: 0; background: none; font-size: 20px; color: var(--ag-ink-2); cursor: pointer; }
.ag-drawer h2 { margin: 22px 0 8px; font-size: 12px; letter-spacing: .1em; color: var(--ag-muted-2); font-weight: 400; }
.ag-drawer ul { list-style: none; margin: 0; border-top: 1px solid var(--ag-line-2); }
.ag-drawer li { border-bottom: 1px solid var(--ag-line-2); }
.ag-drawer li a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; font-size: 15px; color: var(--ag-ink);
}
.ag-drawer li .ag-count { font-size: 12px; color: var(--ag-muted-2); font-family: var(--ag-mono); }

/* ==========================================================================
   4. Layout
   ========================================================================== */
.ag-cols { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 20px; align-items: flex-start; }
.ag-main { flex: 1 1 100%; min-width: 0; }
.ag-main--article { max-width: var(--ag-body); }
/* 1000px 未満ではサイドバーを本文の下へ回す（本文カラムを潰さない） */
.ag-side { flex: 1 1 100%; max-width: none; min-width: 0; padding-bottom: 40px; order: 2; }
@media (min-width: 1000px) {
  .ag-main { flex: 1 1 0%; }
  .ag-side { flex: 0 0 300px; max-width: 300px; order: 0; }
  .ag-side--sticky { position: sticky; top: 24px; }
}
/* サイドバーが横並びのときは中身を2カラムにせず縦積み。回り込み時は横に並べる */
@media (max-width: 999px) {
  .ag-side > section { max-width: 640px; }
  .ag-side .ag-ad--side { max-width: 336px; }
}

/* ==========================================================================
   5. Section headings
   ========================================================================== */
.ag-sec { margin-bottom: 44px; }
.ag-sec__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--ag-ink); padding-bottom: 8px; margin-bottom: 18px;
}
.ag-sec__head h2 { font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.ag-sec__meta { font-size: 11px; color: var(--ag-muted-2); letter-spacing: .1em; font-family: var(--ag-mono); }
.ag-sec__link { font-size: 12.5px; }
.ag-side h2 {
  margin-bottom: 12px; font-size: 13px; letter-spacing: .1em;
  border-bottom: 1px solid var(--ag-line); padding-bottom: 8px; font-weight: 700;
}

/* ==========================================================================
   6. Hero
   ========================================================================== */
.ag-hero { border-bottom: 1px solid var(--ag-line); background: var(--ag-off); }
.ag-hero__in { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding: 28px 16px 32px; }
.ag-hero__lead { flex: 1 1 300px; min-width: 0; }
.ag-hero h1 {
  font-size: clamp(21px, 3.4vw, 30px); line-height: 1.5; font-weight: 700;
  letter-spacing: .01em; color: var(--ag-green); text-wrap: pretty;
}
.ag-hero p { margin-top: 14px; font-size: 15px; line-height: 1.9; color: var(--ag-ink-3); max-width: 44em; text-wrap: pretty; }
.ag-hero__aside { flex: 0 1 320px; min-width: 260px; border-left: 3px solid var(--ag-green); padding-left: 16px; }
.ag-hero__aside p.ag-kicker { margin-bottom: 10px; font-size: 12px; letter-spacing: .12em; color: var(--ag-muted); font-family: var(--ag-mono); }
.ag-hero__aside ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ag-hero__aside a { font-size: 14.5px; line-height: 1.6; }

/* ==========================================================================
   7. Cards / lists
   ========================================================================== */
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.ag-grid--tight { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
@media (max-width: 419px) { .ag-grid, .ag-grid--tight { grid-template-columns: 1fr; } }
.ag-card { display: flex; flex-direction: column; }
.ag-card__thumb { display: block; aspect-ratio: 16 / 9; background: var(--ag-off); border: 1px solid var(--ag-line); overflow: hidden; }
.ag-card__thumb:empty, .ag-list__thumb:empty { display: none; }
.ag-card__ph { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; background: var(--ag-off); }
.ag-card__thumb .ag-card__ph img, .ag-card__ph img { width: 34% !important; height: auto !important; opacity: .3; aspect-ratio: auto; }
.ag-card__thumb img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ag-card__body { padding-top: 12px; }
.ag-cat {
  display: inline-block; font-size: 11.5px; letter-spacing: .08em; color: var(--ag-green);
  border: 1px solid var(--ag-green-border); padding: 3px 8px; margin-bottom: 8px;
}
.ag-cat:hover { text-decoration: none; background: var(--ag-green-pale); }
.ag-card h3 { font-size: 16.5px; line-height: 1.6; font-weight: 700; text-wrap: pretty; }
.ag-card h3 a { color: var(--ag-ink); }
.ag-card__excerpt { margin-top: 8px; font-size: 13.5px; line-height: 1.8; color: var(--ag-muted); text-wrap: pretty; }
.ag-card__date { margin-top: 10px; font-size: 12px; color: var(--ag-muted-2); font-family: var(--ag-mono); }

.ag-list { list-style: none; }
.ag-list > li { border-bottom: 1px solid var(--ag-line-3); }
.ag-list__link { display: flex; gap: 14px; padding: 14px 0; align-items: flex-start; }
.ag-list__link:hover { text-decoration: none; background: var(--ag-off-2); }
.ag-list__thumb { flex: 0 0 96px; width: 96px; aspect-ratio: 16 / 9; background: var(--ag-off); border: 1px solid var(--ag-line); overflow: hidden; }
.ag-list__thumb img { width: 100% !important; height: 100% !important; object-fit: cover; }
.ag-list--lg .ag-list__thumb { flex-basis: 128px; width: 128px; }
@media (min-width: 600px) { .ag-list__thumb { flex-basis: 128px; width: 128px; } .ag-list--lg .ag-list__thumb { flex-basis: 176px; width: 176px; } }
.ag-list__body { flex: 1 1 auto; min-width: 0; }
.ag-list__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 5px; }
.ag-list__meta .ag-c { font-size: 11.5px; color: var(--ag-green); }
.ag-list__meta .ag-d { font-size: 11.5px; color: var(--ag-muted-2); font-family: var(--ag-mono); }
.ag-list__title { display: block; font-size: 15.5px; line-height: 1.65; font-weight: 600; color: var(--ag-ink); text-wrap: pretty; }
.ag-list__excerpt { display: block; margin-top: 6px; font-size: 13px; line-height: 1.8; color: var(--ag-muted); text-wrap: pretty; }

.ag-rank { list-style: none; }
.ag-rank li { border-bottom: 1px solid var(--ag-line-2); }
.ag-rank a { display: flex; gap: 10px; padding: 11px 0; align-items: flex-start; }
.ag-rank a:hover { text-decoration: none; }
.ag-rank__no { flex: 0 0 20px; font-size: 12px; color: var(--ag-green); font-family: var(--ag-mono); padding-top: 2px; }
.ag-rank__t { font-size: 13.5px; line-height: 1.7; color: var(--ag-ink); text-wrap: pretty; }

.ag-simple { list-style: none; }
.ag-simple li { border-bottom: 1px solid var(--ag-line-2); }
.ag-simple a { display: block; padding: 11px 0; font-size: 13.5px; line-height: 1.7; color: var(--ag-ink); }

/* Category tiles */
.ag-tiles {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1px; background: var(--ag-line); border: 1px solid var(--ag-line);
}
.ag-tile { display: block; background: #fff; padding: 16px; min-height: 88px; }
.ag-tile:hover { background: var(--ag-off); text-decoration: none; }
.ag-tile__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ag-tile__name { font-size: 15px; font-weight: 600; color: var(--ag-green); }
.ag-tile__count { font-size: 11.5px; color: var(--ag-muted-2); font-family: var(--ag-mono); }
.ag-tile__desc { display: block; margin-top: 6px; font-size: 12.5px; line-height: 1.7; color: var(--ag-muted); }

/* Buttons */
.ag-btn {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--ag-green); color: var(--ag-green); font-size: 14px;
}
.ag-btn:hover { background: var(--ag-green); color: #fff; text-decoration: none; }
.ag-btn--solid { background: var(--ag-green); color: #fff; border-color: var(--ag-green); font-size: 14.5px; }
.ag-btn--solid:hover { background: var(--ag-green-mid); border-color: var(--ag-green-mid); color: #fff; }

/* ==========================================================================
   8. Breadcrumb / pagination
   ========================================================================== */
.ag-crumb { padding-top: 14px; }
.ag-crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--ag-muted-2); }
.ag-crumb a { color: var(--ag-muted); }
.ag-crumb li[aria-current] span, .ag-crumb .ag-crumb__current { color: var(--ag-muted-3); }

.ag-pager { padding: 24px 0 48px; display: flex; gap: 8px; flex-wrap: wrap; }
.ag-pager .page-numbers {
  display: flex; align-items: center; justify-content: center; min-width: 44px;
  height: 44px; padding: 0 12px; border: 1px solid var(--ag-line);
  color: var(--ag-ink); font-size: 14px;
}
.ag-pager .page-numbers:hover { border-color: var(--ag-green); text-decoration: none; }
.ag-pager .page-numbers.current { background: var(--ag-green); border-color: var(--ag-green); color: #fff; }

/* ==========================================================================
   9. Article
   ========================================================================== */
.ag-article__head { padding-bottom: 22px; border-bottom: 1px solid var(--ag-line); }
.ag-article__head .ag-cat { font-size: 12px; padding: 4px 10px; margin: 0; }
.ag-article h1 {
  margin-top: 14px; font-size: clamp(23px, 3.6vw, 32px); line-height: 1.5;
  font-weight: 700; letter-spacing: .005em; text-wrap: pretty;
}
.ag-article__lead { margin-top: 16px; font-size: 15px; line-height: 1.95; color: var(--ag-ink-3); text-wrap: pretty; }
.ag-article__meta {
  margin-top: 18px; display: flex; flex-wrap: wrap; gap: 14px 24px;
  align-items: center; font-size: 12.5px; color: var(--ag-muted);
}
.ag-article__meta time { font-family: var(--ag-mono); }
.ag-byline { display: flex; align-items: center; gap: 8px; }
.ag-byline img { width: 28px; height: 28px; border: 1px solid var(--ag-line); }
.ag-eyecatch { margin-top: 24px; }
.ag-eyecatch img { width: 100%; border: 1px solid var(--ag-line); }
.ag-eyecatch figcaption { margin-top: 8px; font-size: 12px; color: var(--ag-muted-2); }

/* TOC ---------------------------------------------------------------------
   見出しバーは深緑ベタ、項目は連番 + 下罫線。H2 と H3 で階層を出す。 */
.ag-toc { margin-top: 32px; border: 1px solid #dfe7e3; background: #fff; }
.ag-toc__btn {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 0 18px; border: 0; border-bottom: 1px solid #dfe7e3;
  background: var(--ag-green); cursor: pointer; text-align: left;
}
.ag-toc__btn:hover { background: var(--ag-green-mid); }
.ag-toc__icon { display: flex; flex-direction: column; gap: 3px; flex: 0 0 auto; }
.ag-toc__icon span { display: block; width: 15px; height: 2px; background: #8fc4b0; }
.ag-toc__icon span:nth-child(2) { width: 11px; }
.ag-toc__title { font-size: 14.5px; font-weight: 700; letter-spacing: .1em; color: #fff; }
.ag-toc__toggle { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.ag-toc__state { font-size: 11px; color: #8fc4b0; font-family: var(--ag-mono); letter-spacing: .08em; }
.ag-toc__caret { font-size: 10px; color: #8fc4b0; line-height: 1; }
.ag-toc[data-open="false"] .ag-toc__btn { border-bottom-color: transparent; }
.ag-toc[data-open="false"] .ag-toc__list { display: none; }

.ag-toc__list { list-style: none; padding: 8px 18px 18px; margin: 0; }
.ag-toc__list a {
  display: flex; gap: 12px; align-items: baseline; padding: 10px 0;
  font-size: 14.5px; line-height: 1.65; color: var(--ag-ink); text-decoration: none;
}
.ag-toc__list a:hover { color: var(--ag-green); text-decoration: none; }
.ag-toc__no {
  flex: 0 0 auto; min-width: 22px; padding-top: 3px;
  font-family: var(--ag-mono); font-size: 11.5px; color: var(--ag-green); letter-spacing: .02em;
}
.ag-toc__label {
  flex: 1 1 auto; font-weight: 600;
  border-bottom: 1px solid var(--ag-line-2); padding-bottom: 10px;
}
.ag-toc__list li:last-child .ag-toc__label { border-bottom: 0; padding-bottom: 0; }
.ag-toc__list .lv3 { padding-left: 22px; }
.ag-toc__list .lv4 { padding-left: 44px; }
.ag-toc__list .lv3 a, .ag-toc__list .lv4 a { font-size: 13.5px; }
.ag-toc__list .lv3 .ag-toc__no, .ag-toc__list .lv4 .ag-toc__no { color: var(--ag-muted-3); }
.ag-toc__list .lv3 .ag-toc__label, .ag-toc__list .lv4 .ag-toc__label { font-weight: 400; }
@media (max-width: 419px) {
  .ag-toc__list { padding: 6px 14px 14px; }
  .ag-toc__list .lv3 { padding-left: 14px; }
  .ag-toc__list .lv4 { padding-left: 28px; }
}

/* Body typography */
.ag-body { padding-top: 8px; font-size: 16.5px; line-height: 1.95; }
.ag-body > p { margin-bottom: 20px; text-wrap: pretty; }
.ag-body h2 {
  margin: 40px 0 16px; padding-bottom: 10px; font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.55; font-weight: 700; border-bottom: 2px solid var(--ag-green); text-wrap: pretty;
  scroll-margin-top: 16px;
}
.ag-body h3 {
  margin: 32px 0 14px; font-size: 18px; line-height: 1.6; font-weight: 700;
  padding-left: 12px; border-left: 3px solid var(--ag-green); scroll-margin-top: 16px;
}
.ag-body h4 {
  margin: 26px 0 12px; font-size: 16px; line-height: 1.6; font-weight: 700;
  color: var(--ag-ink-2); scroll-margin-top: 16px;
}
.ag-body ul, .ag-body ol { margin-bottom: 22px; padding-left: 1.5em; }
.ag-body li { margin-bottom: 8px; }
.ag-body li:last-child { margin-bottom: 0; }
.ag-body img { margin: 0 auto; }
.ag-body figure { margin-bottom: 24px; }
.ag-body figcaption { margin-top: 8px; font-size: 12.5px; color: var(--ag-muted-2); line-height: 1.7; }
.ag-body blockquote {
  margin-bottom: 24px; padding: 4px 0 4px 18px; border-left: 2px solid #c9c9c2; color: var(--ag-ink-3);
}
.ag-body blockquote p { font-size: 16px; line-height: 1.95; }
.ag-body blockquote cite { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ag-muted-2); font-style: normal; }
.ag-body a { text-decoration: underline; text-underline-offset: 2px; }

/* Tables */
.ag-body table, .ag-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ag-body .ag-scroll, .ag-scroll { margin-bottom: 24px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ag-scroll table { min-width: 420px; }
.ag-body th, .ag-body td, .ag-table th, .ag-table td { padding: 11px 12px; border: 1px solid var(--ag-line); text-align: left; }
.ag-body thead th, .ag-table thead th { background: var(--ag-green); color: #fff; font-weight: 600; border-color: var(--ag-green); }
.ag-body tbody th, .ag-table tbody th { background: var(--ag-off-2); font-weight: 600; }
.ag-body caption, .ag-table caption { text-align: left; font-size: 12.5px; color: var(--ag-muted-2); padding-bottom: 8px; }

/* Boxes (shortcodes) */
.ag-box { margin-bottom: 24px; padding: 16px 18px; border: 1px solid var(--ag-line); border-left-width: 4px; background: var(--ag-off-2); }
.ag-box__label { margin-bottom: 6px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: var(--ag-muted); }
.ag-box p { margin: 0; font-size: 15px; line-height: 1.9; color: var(--ag-ink-2); }
.ag-box p + p { margin-top: 10px; }
.ag-box--note { border-color: var(--ag-alert); background: var(--ag-alert-bg); }
.ag-box--note .ag-box__label { color: var(--ag-alert-ink); }
.ag-box--point { border-color: var(--ag-green); background: var(--ag-green-pale); }
.ag-box--point .ag-box__label { color: var(--ag-green); }

/* CTA */
.ag-cta { margin-top: 36px; border: 1px solid var(--ag-green); padding: 22px; }
.ag-cta__kicker { margin-bottom: 8px; font-size: 12px; letter-spacing: .1em; color: var(--ag-green); font-family: var(--ag-mono); }
.ag-cta h2 { margin-bottom: 8px; font-size: 18px; line-height: 1.6; font-weight: 700; border: 0; padding: 0; }
.ag-cta p { margin-bottom: 16px; font-size: 14.5px; line-height: 1.9; color: var(--ag-ink-3); }

/* FAQ */
.ag-faq { margin-bottom: 24px; border-top: 1px solid var(--ag-line); }
.ag-faq__item { border-bottom: 1px solid var(--ag-line); }
.ag-faq__q {
  width: 100%; min-height: 56px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; padding: 12px 4px; border: 0;
  background: none; cursor: pointer; text-align: left;
}
.ag-faq__q > span:first-child { font-size: 15.5px; line-height: 1.7; font-weight: 600; color: var(--ag-ink); }
.ag-faq__sign { flex: 0 0 auto; font-size: 16px; color: var(--ag-green); }
.ag-faq__a { padding: 0 4px 18px; font-size: 15.5px; line-height: 1.95; color: var(--ag-ink-3); text-wrap: pretty; }
.ag-faq__item[data-open="false"] .ag-faq__a { display: none; }

/* 定義リスト（プライバシーポリシーの運営者情報など） */
.ag-defs { margin: 0 0 24px; border: 1px solid var(--ag-line); padding: 18px; }
.ag-defs dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; font-size: 15px; line-height: 1.8; }
.ag-defs dt { color: var(--ag-muted); }
.ag-defs dd { margin: 0; }
@media (max-width: 419px) { .ag-defs dl { grid-template-columns: 1fr; gap: 2px; } .ag-defs dd { margin-bottom: 10px; } }

/* Author box */
.ag-author {
  margin-top: 32px; padding: 18px; border: 1px solid var(--ag-line);
  background: var(--ag-off-2); display: flex; gap: 16px; flex-wrap: wrap; align-items: flex-start;
}
.ag-author img { flex: 0 0 56px; width: 56px; height: 56px; border: 1px solid var(--ag-line); }
.ag-author__body { flex: 1 1 220px; min-width: 0; }
.ag-author__kicker { margin-bottom: 4px; font-size: 11.5px; letter-spacing: .1em; color: var(--ag-muted-2); }
.ag-author__name { margin-bottom: 6px; font-size: 15px; font-weight: 700; }
.ag-author__bio { font-size: 13.5px; line-height: 1.85; color: var(--ag-muted); }

/* Related */
.ag-related { margin-top: 44px; }
.ag-related .ag-card h3 { font-size: 14.5px; font-weight: 600; line-height: 1.7; }

/* Share */
.ag-share { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px; }
.ag-share a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--ag-line); font-size: 13px; color: var(--ag-ink-2);
}
.ag-share a:hover { border-color: var(--ag-green); color: var(--ag-green); text-decoration: none; }

/* ==========================================================================
   10. Archive / search / 404
   ========================================================================== */
.ag-arch__head { padding-bottom: 24px; border-bottom: 1px solid var(--ag-line); }
.ag-arch__head h1 { font-size: clamp(22px, 3.4vw, 30px); line-height: 1.5; font-weight: 700; }
.ag-arch__desc { margin-top: 12px; font-size: 15px; line-height: 1.95; color: var(--ag-ink-3); max-width: 46em; text-wrap: pretty; }
.ag-arch__count { margin-top: 14px; font-size: 12px; color: var(--ag-muted-2); font-family: var(--ag-mono); }

.ag-narrow { max-width: var(--ag-body); margin: 0 auto; padding: 28px 16px 60px; }
.ag-searchform { display: flex; gap: 8px; flex-wrap: wrap; }
.ag-searchform input[type="search"] {
  flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 14px;
  border: 1px solid #c9c9c2; font-size: 15px; font-family: inherit; color: var(--ag-ink); background: #fff;
}
.ag-searchform button {
  height: 48px; padding: 0 22px; background: var(--ag-green); color: #fff;
  border: 0; font-size: 14.5px; cursor: pointer;
}
.ag-searchform button:hover { background: var(--ag-green-mid); }
.ag-searchnote { margin-top: 12px; font-size: 12.5px; color: var(--ag-muted-2); line-height: 1.8; }

.ag-404__kicker { font-size: 12px; letter-spacing: .2em; color: var(--ag-muted-2); font-family: var(--ag-mono); }
.ag-404 h1 { margin-top: 12px; font-size: clamp(22px, 3.4vw, 30px); line-height: 1.5; font-weight: 700; }
.ag-404 > p { margin-top: 14px; font-size: 15px; line-height: 1.95; color: var(--ag-ink-3); text-wrap: pretty; }
.ag-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-chips a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  border: 1px solid var(--ag-line); font-size: 13.5px; color: var(--ag-ink);
}
.ag-chips a:hover { border-color: var(--ag-green); color: var(--ag-green); text-decoration: none; }

/* Static page */
.ag-page__head { padding-bottom: 20px; border-bottom: 1px solid var(--ag-line); }
.ag-page__head h1 { font-size: clamp(22px, 3.4vw, 28px); line-height: 1.5; font-weight: 700; }

/* ==========================================================================
   11. Ad slots
   ========================================================================== */
.ag-ad { border: 1px dashed #d6d6d0; background: var(--ag-off-2); padding: 18px; text-align: center; }
.ag-ad__label { margin-bottom: 6px; font-size: 10.5px; letter-spacing: .16em; color: var(--ag-muted-3); font-family: var(--ag-mono); }
.ag-ad--inline { margin: 32px 0; min-height: 120px; display: flex; flex-direction: column; justify-content: center; }
.ag-ad--list { margin-bottom: 44px; }
.ag-ad--side { height: 280px; display: flex; flex-direction: column; justify-content: center; }
.ag-ad ins { display: block; }

/* ==========================================================================
   12. Footer
   ========================================================================== */
.ag-footer { margin-top: 40px; border-top: 1px solid var(--ag-line); background: var(--ag-off); }
.ag-footer__in { display: flex; flex-wrap: wrap; gap: 32px; padding: 36px 16px 28px; max-width: var(--ag-wrap); margin: 0 auto; }
.ag-footer__brand { flex: 1 1 240px; min-width: 0; }
.ag-footer__name { font-size: 17px; font-weight: 700; color: var(--ag-green); }
.ag-footer__logo { height: 78px; width: auto; }
.ag-footer__desc { margin-top: 14px; font-size: 13px; line-height: 1.85; color: var(--ag-muted); max-width: 30em; }
.ag-footer nav { flex: 1 1 180px; }
.ag-footer nav p { margin-bottom: 10px; font-size: 12px; letter-spacing: .1em; color: var(--ag-muted-2); }
.ag-footer nav ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ag-footer nav a { font-size: 13.5px; color: var(--ag-ink-2); }
.ag-footer__copy { border-top: 1px solid var(--ag-line); }
.ag-footer__copy p {
  max-width: var(--ag-wrap); margin: 0 auto; padding: 14px 16px;
  font-size: 11.5px; color: var(--ag-muted-2); font-family: var(--ag-mono);
}

/* ==========================================================================
   13. WP core alignment / editor classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-block-image { margin-bottom: 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ag-body .wp-block-table { margin-bottom: 24px; overflow-x: auto; }

@media (max-width: 599px) {
  .ag-hero__aside { border-left: 0; border-top: 3px solid var(--ag-green); padding: 16px 0 0; }
  .ag-cols { gap: 32px; }
  .ag-side { max-width: none; }
  .alignleft, .alignright { float: none; margin: 0 auto 1em; }
}
@media print {
  .ag-catnav, .ag-drawer, .ag-side, .ag-ad, .ag-share, .ag-header__tools { display: none !important; }
}
