/* 就活エージェント業界ナビ スタイル（スタートダッシュ・ポップ） */
:root {
  --bg: #fffbf0;
  --surface: #ffffff;
  --ink: #17193b;
  --muted: #545a78;
  --accent: #2b5cff;
  --accent-2: #ff5a4e;
  --sun: #ffd23f;
  --mint: #22c79a;
  --violet: #7a3cff;
  --line: #17193b;
  --zebra: #f3f5ff;
  --font-head: "Dela Gothic One", "Hiragino Maru Gothic ProN", "Yu Gothic", sans-serif;
  --font-body: "M PLUS 2", "Hiragino Sans", "Yu Gothic", sans-serif;
  --radius: 14px;
  --shadow: 4px 4px 0 var(--ink);
  --shadow-lg: 6px 6px 0 var(--ink);
  --header-h: 64px;
  --zigzag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 9 L6 1 L12 9 L18 1 L24 9' fill='none' stroke='%2317193b' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
  --zigzag-yellow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='10' viewBox='0 0 24 10'%3E%3Cpath d='M0 9 L6 1 L12 9 L18 1 L24 9' fill='none' stroke='%23ffd23f' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--violet); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }

h1, h2, h3, h4, .hero-title, .page-title, .card-title {
  font-family: var(--font-head);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  text-wrap: balance;
  word-break: auto-phrase;
  line-break: strict;
  overflow-wrap: break-word;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 200;
  background: var(--sun);
  color: var(--ink);
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.skip-link:focus { top: 8px; }

.container { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
  height: var(--header-h);
}
.header-inner {
  width: min(1240px, 100% - 32px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  flex: 0 1 auto;
  min-width: 0;
}
.brand-mark { display: inline-flex; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1rem;
  white-space: nowrap;
}
.brand-text small {
  font-size: .62rem;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 0;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 10px;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  flex: none;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 3px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}
.menu-toggle span:nth-child(1) { top: 11px; }
.menu-toggle span:nth-child(2) { top: 18px; }
.menu-toggle span:nth-child(3) { top: 25px; }
.menu-toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-active span:nth-child(2) { opacity: 0; }
.menu-toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.global-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}
.global-nav a {
  display: block;
  padding: 6px 8px;
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
}
.global-nav a:hover { background: var(--zebra); color: var(--accent); }
.global-nav a[aria-current="page"] { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.global-nav a.is-compare { color: var(--accent); }
.global-nav a.is-feature { background: var(--accent-2); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }

@media (max-width: 1279px) {
  .menu-toggle { display: block; }
  .global-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    background: var(--bg);
    border-top: 2px solid var(--ink);
    padding: 16px 20px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform .25s ease, visibility .25s;
  }
  .global-nav.is-open { transform: translateX(0); visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: stretch; gap: 8px; }
  .global-nav a {
    padding: 13px 16px;
    font-size: 1rem;
    border: 2px solid var(--ink);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow);
    white-space: normal;
  }
  .global-nav a[aria-current="page"] { background: var(--sun); }
  .global-nav a.is-feature { background: var(--accent-2); }
}
@media (prefers-reduced-motion: reduce) {
  .global-nav, .menu-toggle span { transition: none; }
}

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 76px;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--accent) 0%, var(--violet) 100%);
  clip-path: polygon(62% 0, 100% 0, 100% 100%, 40% 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(115deg, transparent 0 22px, rgba(23, 25, 59, .045) 22px 24px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
  gap: 40px;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 3px 12px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(1.9rem, 3.9vw, 3.4rem);
  line-height: 1.4;
}
.mark {
  background: linear-gradient(transparent 60%, var(--sun) 60%);
  padding: 0 .08em;
}
.hero-lead { margin: 0 0 24px; font-size: 1rem; font-weight: 500; max-width: 34em; }
.hero-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 700;
  font-size: .95rem;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.btn.is-outline { background: var(--surface); color: var(--accent); }
.btn.is-outline:hover { color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .btn, .page-card, .blog-card { transition: none; }
  .btn:hover, .page-card:hover, .blog-card:hover { transform: none; }
}

.photo-wrap { position: relative; padding: 18px 18px 26px; }
.photo-card {
  margin: 0;
  background: var(--surface);
  border: 3px solid var(--ink);
  padding: 8px;
  border-radius: 6px;
  box-shadow: 8px 8px 0 var(--ink);
  transform: rotate(2deg);
}
.photo-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 2px; }
.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 6px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-head);
  font-size: .86rem;
  line-height: 1.25;
  text-align: center;
  color: var(--ink);
  pointer-events: none;
  z-index: 2;
}
.sticker.is-sun { background: var(--sun); top: -4px; left: -6px; transform: rotate(-8deg); }
.sticker.is-mint { background: var(--mint); bottom: -2px; left: 6px; transform: rotate(8deg); }
.sticker.is-coral { background: var(--accent-2); top: -2px; right: -4px; transform: rotate(10deg); font-size: .72rem; }

/* 就活タイムライン */
.timeline-band { background: var(--surface); border-block: 2px solid var(--ink); padding: 26px 0 22px; position: relative; }
.timeline-band::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 10px;
  background: var(--zigzag) repeat-x left bottom;
  pointer-events: none;
}
.timeline-title { margin: 0 0 18px; font-size: 1.15rem; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.timeline li {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--bg);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  font-size: .86rem;
  line-height: 1.6;
}
.timeline li b { display: block; margin-bottom: 4px; font-family: var(--font-head); font-weight: 400; font-size: .8rem; color: var(--accent); }
.timeline li strong { display: block; font-size: .92rem; line-height: 1.5; }
.timeline li.is-now { background: #fff7d1; }
.timeline .now-pin {
  position: absolute;
  top: -15px;
  right: 8px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 700;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 999px;
  transform: rotate(-4deg);
}
.timeline-note { margin: 16px 0 0; font-size: .8rem; color: var(--muted); }

/* ---------- 下層ヒーロー帯 ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 38px;
  background: var(--bg);
  border-bottom: 2px solid var(--ink);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, var(--accent), var(--violet));
  clip-path: polygon(70% 0, 100% 0, 100% 100%, 54% 100%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.breadcrumb { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; font-size: .78rem; font-weight: 500; }
.breadcrumb li + li::before { content: "›"; margin-right: 8px; color: var(--muted); }
.breadcrumb a { color: var(--ink); }
.page-hero h1 { margin: 0 0 10px; font-size: clamp(1.5rem, 2.9vw, 2.3rem); line-height: 1.45; }
.page-hero .lead { margin: 0; font-weight: 500; font-size: .95rem; max-width: 31em; }
.page-hero .photo-wrap { padding: 8px 14px 18px 8px; }
.page-hero .photo-card { box-shadow: 6px 6px 0 var(--ink); transform: rotate(1.5deg); }
.page-hero .sticker { width: 74px; height: 74px; font-size: .74rem; }
.page-hero .sticker.is-sun { top: -10px; left: -10px; }

/* ---------- 本文レイアウト ---------- */
.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 44px;
  padding-block: 48px 72px;
  align-items: start;
}
.article { min-width: 0; }
.article section + section { margin-top: 44px; }
.article p { margin: 0 0 1.15em; }
.article ul, .article ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.article li { margin-bottom: .35em; }

.article h2 {
  position: relative;
  margin: 0 0 20px;
  padding-left: 34px;
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  scroll-margin-top: 90px;
}
.article h2::before {
  content: "";
  position: absolute;
  left: 4px;
  top: .28em;
  width: 18px;
  height: 1.1em;
  background: var(--sun);
  border: 2px solid var(--ink);
  transform: skewX(-12deg);
}
.article h3 {
  display: inline-block;
  margin: 28px 0 12px;
  padding-bottom: 4px;
  font-size: 1.12rem;
  background: linear-gradient(var(--accent), var(--accent)) left bottom / 56px 4px no-repeat;
  scroll-margin-top: 90px;
}
.article h4 { margin: 20px 0 8px; font-size: 1rem; }
.article ul.type-guide { list-style: none; padding: 0; }

.updated { font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.source-note {
  padding: 12px 16px;
  font-size: .86rem;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-left-width: 8px;
  border-left-color: var(--mint);
  border-radius: 10px;
}
.note-box {
  padding: 16px 18px;
  margin: 0 0 1.3em;
  background: #fff7d1;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.note-box p:last-child { margin-bottom: 0; }
.note-box h3 { margin-top: 0; }
.section-break { height: 12px; margin: 40px 0 0; background: var(--zigzag) repeat-x center; border: 0; }
.table-note { font-size: .82rem; color: var(--muted); margin-top: 10px; }

/* 比較表 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 8px; border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--surface); }
.compare-table { width: 100%; min-width: 1060px; border-collapse: collapse; font-size: .84rem; line-height: 1.65; }
.compare-table th, .compare-table td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid #c9cde6; border-right: 1px solid #c9cde6; }
.compare-table thead th { background: var(--ink); color: #fff; font-weight: 700; white-space: nowrap; border-right-color: #3a3d6b; }
.compare-table tbody th { background: #eef1ff; font-weight: 700; min-width: 8.5em; }
.compare-table tbody tr:nth-child(even) td { background: var(--zebra); }
.compare-table tr > :last-child { border-right: 0; }
.compare-table tbody tr:last-child > * { border-bottom: 0; }

/* 運営者・プロフィール */
.profile-list { display: grid; gap: 4px; }

/* サイドバー */
.sidebar { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 22px; }
.sidebar > nav, .sidebar > .ad-slot {
  padding: 18px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.sidebar h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 10px;
  font-size: .95rem;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 8px;
}
.sidebar h2 svg { flex: none; }
.sidebar ol, .sidebar ul { margin: 0; padding-left: 1.2em; font-size: .86rem; line-height: 1.7; }
.sidebar li { margin-bottom: .45em; }
.sidebar ul.sidebar-links { list-style: none; padding: 0; }
.sidebar ul.sidebar-links li { padding-left: 1.2em; position: relative; }
.sidebar ul.sidebar-links li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; background: var(--accent-2); border: 2px solid var(--ink); border-radius: 50%; }
.ad-slot span { display: inline-block; padding: 1px 10px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; background: var(--mint); border: 2px solid var(--ink); border-radius: 999px; }
.ad-slot strong { display: block; margin: 8px 0 4px; }
.ad-slot p { margin: 0 0 8px; font-size: .84rem; }
.amazon-banner { margin: 0 0 14px; font-size: .86rem; line-height: 1.6; }
.amazon-banner a { display: block; padding: 10px 12px; border: 2px dashed var(--ink); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; }

/* ---------- カードグリッド（index） ---------- */
.index-section { padding: 56px 0 24px; }
.index-section h2, .related-sites h2 { margin: 0 0 14px; font-size: clamp(1.3rem, 2.4vw, 1.75rem); }
.section-lead { margin: 0 0 24px; color: var(--muted); }
.intro-block { background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 32px clamp(18px, 4vw, 40px); }
.stage-list { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; counter-reset: stage; }
.stage-list li { counter-increment: stage; position: relative; padding: 14px 14px 14px 52px; background: var(--bg); border: 2px solid var(--ink); border-radius: 12px; font-size: .88rem; line-height: 1.6; }
.stage-list li::before { content: counter(stage); position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); background: var(--sun); border: 2px solid var(--ink); border-radius: 50%; transform: rotate(-6deg); }
.stage-list strong { display: block; }
.stance-title { margin: 22px 0 8px; font-size: 1.05rem; }
.stance-list { margin: 0; padding-left: 1.3em; }

.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.page-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 20px 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.page-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }
.page-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 14px; background: var(--accent); border-bottom: 2px solid var(--ink); }
.page-card:nth-child(4n+2)::before { background: var(--accent-2); }
.page-card:nth-child(4n+3)::before { background: var(--mint); }
.page-card:nth-child(4n+4)::before { background: var(--sun); }
.page-card .num {
  position: absolute;
  top: 24px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  font-family: var(--font-head);
  font-size: .9rem;
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: rotate(-6deg);
}
.page-card .icon { color: var(--accent); margin-bottom: 8px; }
.page-card h3 { margin: 0 0 8px; padding-right: 48px; font-size: 1.02rem; line-height: 1.55; }
.page-card h3 a { color: var(--ink); text-decoration: none; }
.page-card h3 a::after { content: ""; position: absolute; inset: 0; }
.page-card p { margin: 0; font-size: .86rem; line-height: 1.75; color: var(--muted); }
.page-card .badge + br { display: none; }
.badge { align-self: flex-start; display: inline-block; margin-bottom: 6px; padding: 1px 10px; font-size: .7rem; font-weight: 700; background: var(--accent); color: #fff; border-radius: 999px; }

.feature-band {
  position: relative;
  margin-top: 40px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px clamp(18px, 4vw, 36px);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.feature-band h2 { margin: 0 0 6px; font-size: clamp(1.15rem, 2.2vw, 1.5rem); }
.feature-band p { margin: 0; font-size: .92rem; }
.feature-band .btn { background: var(--surface); }

/* 最新コメンタリー */
.latest-commentary { padding: 12px 0 0; }
.latest-commentary:not(:has(li)) { display: none; }
.latest-commentary h2 { margin: 0 0 14px; font-size: 1.4rem; }
.latest-commentary-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.latest-commentary-list li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: baseline; padding: 12px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.latest-commentary-list time { font-family: var(--font-head); font-size: .8rem; color: var(--accent); white-space: nowrap; }
.latest-commentary-list a { color: var(--ink); font-weight: 700; text-decoration: none; line-height: 1.6; }
.latest-commentary-list a:hover { color: var(--accent); text-decoration: underline; }
.latest-commentary-more { margin: 14px 0 0; text-align: right; font-weight: 700; }
.spacer-lg { height: 24px; }

/* 関連サイト */
.related-sites { margin-top: 48px; }
.related-sites ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.related-sites a { display: block; height: 100%; padding: 14px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); text-decoration: none; color: var(--ink); }
.related-sites a:hover { background: var(--zebra); }
.related-sites strong { display: block; font-size: .95rem; }
.related-sites span { display: block; margin-top: 4px; font-size: .8rem; color: var(--muted); line-height: 1.6; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.related-grid article { padding: 14px 16px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
.related-grid h3 { margin: 0 0 6px; font-size: .98rem; background: none; padding: 0; display: block; }
.related-grid p { margin: 0; font-size: .84rem; color: var(--muted); }

/* ---------- サービス早見表（A8掲載面） ---------- */
.article ul.type-guide, .type-guide { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin: 0 0 1.4em; padding: 0; list-style: none; }
.type-guide li { padding: 14px; background: var(--surface); border: 2px solid var(--ink); border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); font-size: .86rem; line-height: 1.7; margin: 0; }
.type-guide strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.agent-section { margin-top: 36px; }
.agent-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.agent-card {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 22px;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 0;
}
.agent-type { align-self: flex-start; margin-bottom: 8px; padding: 2px 12px; font-size: .72rem; font-weight: 700; background: var(--mint); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; }
.agent-card h3 { margin: 0 0 10px; font-size: 1.1rem; background-image: none; padding-bottom: 0; display: block; }
.agent-facts { margin: 0 0 12px; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .84rem; line-height: 1.65; }
.agent-facts dt { font-weight: 700; color: var(--accent); white-space: nowrap; }
.agent-facts dd { margin: 0; }
.agent-points { margin: 0 0 14px; padding-left: 1.3em; font-size: .86rem; }
.agent-points li { margin-bottom: .35em; }
.agent-ad { margin: auto 0 0; text-align: center; }
.agent-ad-pr { display: block; text-align: left; font-size: .68rem; color: #666; line-height: 1.5; }
.agent-ad--banner img { max-width: 100%; height: auto; }
.agent-ad--banner { margin-top: auto; }
.agent-ad-fallback {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
  font-size: .84rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: 10px;
}
.agent-cta-wrap { margin-top: 12px; text-align: center; }
.agent-cta {
  display: inline-block;
  padding: 12px 22px;
  font-weight: 700;
  font-size: .95rem;
  color: var(--ink);
  background: var(--sun);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.agent-cta:hover { color: var(--ink); transform: translate(-2px, -2px); box-shadow: var(--shadow-lg); }

/* ---------- フッター ---------- */
.site-disclaimer { padding: 22px 0 8px; }
.site-disclaimer p { width: min(1160px, 100% - 40px); margin: 0 auto; padding: 14px 18px; font-size: .8rem; line-height: 1.8; color: var(--muted); background: var(--surface); border: 2px dashed var(--ink); border-radius: 12px; }
.site-footer { position: relative; margin-top: 36px; padding: 52px 20px 28px; background: var(--ink); color: #fff; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -9px; height: 10px; background: var(--zigzag-yellow) repeat-x left top; pointer-events: none; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--sun); }
.footer-grid { width: min(1160px, 100%); margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.footer-grid h2 { margin: 0 0 10px; font-size: 1rem; color: var(--sun); }
.footer-grid p { margin: 0; font-size: .86rem; line-height: 1.85; color: #e6e8fb; }
.footer-grid nav a { display: block; margin-bottom: 6px; font-size: .88rem; text-decoration: none; }
.footer-grid nav a:hover { text-decoration: underline; }
.footer-note { width: min(1160px, 100%); margin: 28px auto 0; font-size: .76rem; line-height: 1.8; color: #c9cdf0; }
.footer-links { width: min(1160px, 100%); margin: 18px auto 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: .84rem; }
.copyright { width: min(1160px, 100%); margin: 16px auto 0; font-size: .76rem; color: #c9cdf0; }

/* ---------- レスポンシブ ---------- */
@media (max-width: 1099px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 30px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; }
  .hero::before { clip-path: polygon(0 52%, 100% 36%, 100% 100%, 0 100%); }
  .page-hero-inner { grid-template-columns: 1fr; }
  .page-hero::before { clip-path: polygon(0 70%, 100% 56%, 100% 100%, 0 100%); }
  .content-layout { grid-template-columns: 1fr; padding-block: 36px 56px; }
  .sidebar { position: static; }
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 16px; padding-left: 16px; border-left: 4px solid var(--ink); }
  .timeline li { margin-left: 10px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 32px); }
  .hero { padding: 32px 0 56px; }
  .photo-card { transform: rotate(.8deg); box-shadow: 6px 6px 0 var(--ink); }
  .sticker { width: 74px; height: 74px; font-size: .72rem; }
  .sticker.is-mint { display: none; }
  .page-grid { grid-template-columns: 1fr; }
  .feature-band { grid-template-columns: 1fr; }
  .latest-commentary-list li { grid-template-columns: 1fr; gap: 2px; }
  .brand-text strong { font-size: .88rem; }
  .brand-text small { display: none; }
  .agent-facts { grid-template-columns: 1fr; gap: 0 0; }
  .agent-facts dt { margin-top: 6px; }
  .compare-table { font-size: .8rem; }
}
@media (max-width: 380px) {
  .brand-mark svg { width: 26px; height: 26px; }
  .brand-text strong { font-size: .8rem; }
}

/* LATEST-COMMENTARY:START */
.latest-commentary {
  padding: 3rem 0;
}
/* .container を持たないサイトでも端に張り付かないための保険。
   :where() は詳細度0なので、サイト側の .container 定義が常に優先される。 */
:where(.latest-commentary .container) {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1rem;
}
.latest-commentary h2 {
  margin-bottom: 1.25rem;
}
.latest-commentary-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.latest-commentary-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line, #e5e5e5);
}
.latest-commentary-list time {
  flex: 0 0 auto;
  color: var(--muted, #666);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.latest-commentary-list a {
  flex: 1 1 16rem;
  min-width: 0;
  color: var(--ink, #222);
  text-decoration: none;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.latest-commentary-list a:hover {
  color: var(--accent, #0b5);
  text-decoration: underline;
}
.latest-commentary-more {
  margin-top: 1.25rem;
}
.latest-commentary-more a {
  color: var(--accent, #0b5);
  text-decoration: none;
  font-weight: 600;
}
.latest-commentary-more a:hover {
  text-decoration: underline;
}
@media (max-width: 600px) {
  .latest-commentary-list li {
    flex-direction: column;
    gap: 0.2rem;
  }
  /* 縦積み時に flex-basis(16rem) が高さに効かないよう auto に戻す */
  .latest-commentary-list a,
  .latest-commentary-list time {
    flex: 0 0 auto;
  }
}
/* LATEST-COMMENTARY:END */

/* Keep the sidebar in document flow unless its full contents fit the viewport. */
@media (min-width:1201px){
html body{overflow-x:clip!important}
}
@media (min-width: 1201px) {
  html body aside.sidebar {
    position: static;
  }
}
@media (min-width: 1201px) {
  html body aside.sidebar.sidebar--sticky-fit {
    position: sticky;
    top: var(--sidebar-sticky-top, 104px);
    align-self: start;
  }
}
