/*
Theme Name: AX/DX Labo.
Theme URI: https://www.axdx-labo.com/
Author: High Virtue Labo Inc.
Description: AX/DX Labo. 実務メディアサイト用カスタムテーマ。
Version: 1.0.0
Text Domain: axdx-labo
*/

/* ============================================================
   Design tokens (ported from AXDX/assets/tokens/*.css)
   ============================================================ */
:root {
  --ax-white: #ffffff;
  --ax-cloud: #f8fafc;
  --ax-mist: #f2f6f8;
  --ax-ink: #0e1620;
  --ax-slate: #5a6876;
  --ax-line: #dce3e9;
  --ax-cyan: #00c2ff;
  --ax-cyan-deep: #0090c4;
  --ax-navy: #04222e;
  --ax-cyan-pale: #eaf9fe;

  --color-bg: var(--ax-white);
  --color-bg-subtle: var(--ax-cloud);
  --color-bg-dark: var(--ax-navy);
  --color-bg-accent: var(--ax-cyan-pale);
  --color-text: var(--ax-ink);
  --color-text-secondary: var(--ax-slate);
  --color-text-ondark: var(--ax-white);
  --color-link: var(--ax-cyan-deep);
  --color-link-hover: var(--ax-ink);
  --color-border: var(--ax-line);
  --color-border-strong: var(--ax-ink);
  --color-border-accent: var(--ax-cyan);
  --color-accent: var(--ax-cyan);
  --color-accent-dark: var(--ax-cyan-deep);
  --color-accent-pale: var(--ax-cyan-pale);
  --color-success: #18794e;
  --color-warning: #a96800;
  --color-danger: #c43d3d;
  --color-info: #006fa6;

  --font-ja: "Noto Sans JP", "Yu Gothic", "Hiragino Kaku Gothic ProN", sans-serif;
  --font-display: "Archivo", "Noto Sans JP", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-bold: 700;
  --weight-display: 800;
  --leading-tight: 1.1;
  --leading-heading: 1.25;
  --leading-body: 1.9;
  --leading-ui: 1.5;
  --tracking-label: 0.12em;
  --tracking-display: -0.01em;

  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-6: 24px; --space-8: 32px; --space-12: 48px; --space-16: 64px;
  --space-20: 80px; --space-30: 120px;
  --section-gap: 96px;
  --section-gap-tablet: 80px;
  --section-gap-mobile: 64px;
  --width-wide: 1280px;
  --width-content: 1120px;
  --width-article: 780px;
  --gutter: 40px;
  --gutter-tablet: 32px;
  --gutter-mobile: 20px;
  --radius-none: 0px;
  --radius-xs: 2px;
  --radius-sm: 4px;
  --border: 1px solid var(--color-border);
  --border-strong: 1px solid var(--color-border-strong);
  --border-accent: 2px solid var(--color-border-accent);
  --shadow-header: 0 1px 0 var(--color-border), 0 2px 8px rgba(14, 22, 32, 0.04);
  --shadow-overlay: 0 8px 32px rgba(4, 34, 46, 0.14);
  --shadow-popover: 0 6px 20px rgba(4, 34, 46, 0.12);
  --motion-fast: 180ms;
  --motion-base: 280ms;
  --motion-slow: 480ms;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: var(--leading-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-width: 320px;
}
img { max-width: 100%; display: block; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--color-text);
  line-height: var(--leading-heading);
  letter-spacing: var(--tracking-display);
  margin: 0;
}
p { margin: 0; }
a { color: var(--color-link); text-decoration: none; transition: color var(--motion-fast) var(--ease); }
a:hover { color: var(--color-link-hover); }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; }
::selection { background: var(--ax-cyan-pale); }

.ax-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-text-secondary);
}
.ax-eyebrow { font-family: var(--font-mono); font-weight: 700; font-size: 13px; letter-spacing: 0.14em; color: var(--ax-cyan-deep); }
.ax-number { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; color: var(--ax-cyan-deep); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   Layout
   ============================================================ */
.ax-container { max-width: var(--width-wide); margin: 0 auto; padding-left: clamp(20px, 3vw, 40px); padding-right: clamp(20px, 3vw, 40px); }
.ax-container--content { max-width: var(--width-content); }
.ax-container--article { max-width: var(--width-article); }
.ax-section { padding-top: var(--section-gap); padding-bottom: var(--section-gap); }
.ax-section--subtle { background: var(--ax-cloud); border-top: var(--border); border-bottom: var(--border); }
.ax-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--ax-ink); margin-bottom: 32px; flex-wrap: wrap; }
.ax-section-head h2 { font-size: 32px; font-weight: 700; margin: 0; }
.ax-section-lede { font-size: 15px; line-height: 1.9; color: var(--ax-slate); margin: 0; max-width: 640px; }
@media (max-width: 900px) { .ax-section { padding-top: var(--section-gap-tablet); padding-bottom: var(--section-gap-tablet); } }
@media (max-width: 640px) { .ax-section { padding-top: var(--section-gap-mobile); padding-bottom: var(--section-gap-mobile); } }

.ax-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ax-grid--issue { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ax-grid--tight { gap: 16px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

/* ============================================================
   Buttons & links
   ============================================================ */
.ax-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 28px;
  flex: none; white-space: nowrap; font-size: 15px; font-weight: 700; border-radius: var(--radius-xs);
  transition: background-color var(--motion-fast) var(--ease), color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease);
  border: 1px solid transparent; cursor: pointer;
}
.ax-btn--primary { background: var(--ax-cyan); border-color: var(--ax-cyan); color: var(--ax-ink); }
.ax-btn--primary:hover { background: var(--ax-cyan-deep); border-color: var(--ax-cyan-deep); color: var(--ax-white); }
.ax-btn--secondary { background: var(--ax-white); border-color: var(--ax-ink); color: var(--ax-ink); }
.ax-btn--secondary:hover { background: var(--ax-ink); color: var(--ax-white); }
.ax-btn--sm { min-height: 44px; padding: 0 20px; font-size: 14px; }
.ax-arrow-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--ax-cyan-deep); }
.ax-arrow-link:hover { color: var(--ax-ink); }
.ax-mono-arrow { font-family: var(--font-mono); }

/* ============================================================
   Header / nav
   ============================================================ */
.ax-header { position: sticky; top: 0; z-index: 100; background: var(--ax-white); border-bottom: var(--border); box-shadow: var(--shadow-header); }
.ax-header-bar { max-width: var(--width-wide); margin: 0 auto; padding: 12px clamp(20px, 3vw, 40px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; min-height: 76px; }
.ax-logo { display: flex; flex-direction: column; gap: 3px; text-decoration: none; flex: none; white-space: nowrap; }
.ax-logo-mark { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--ax-ink); line-height: 1; }
.ax-logo-mark span { color: var(--ax-cyan-deep); }
.ax-logo-sub { font-size: 11px; color: var(--ax-slate); letter-spacing: 0.02em; }
.ax-nav { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px 22px; margin-left: auto; white-space: nowrap; }
.ax-nav a, .ax-nav button.ax-nav-toggle { font-size: 14px; font-weight: 500; color: var(--ax-ink); background: none; border: 0; padding: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.ax-icon-btn { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--ax-line); color: var(--ax-ink); flex: none; }
.ax-mobile-actions { display: none; align-items: center; gap: 8px; margin-left: auto; }
.ax-menu-toggle { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--ax-ink); border: 1px solid var(--ax-ink); color: var(--ax-white); font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.12em; cursor: pointer; }

.ax-megamenu { border-top: var(--border); background: var(--ax-cloud); display: none; }
.ax-megamenu.is-open { display: block; }
.ax-megamenu-grid { max-width: var(--width-wide); margin: 0 auto; padding: 36px clamp(20px, 3vw, 40px) 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.ax-megamenu-col { display: flex; flex-direction: column; gap: 12px; }
.ax-megamenu-col .ax-label { color: var(--ax-cyan-deep); }
.ax-megamenu-col strong { font-size: 14px; font-weight: 700; }
.ax-megamenu-col a { font-size: 13px; color: var(--ax-slate); }
.ax-megamenu-col a:hover { color: var(--ax-cyan-deep); }

.ax-drawer { display: none; border-top: var(--border); background: var(--ax-white); box-shadow: 0 8px 16px rgba(14,22,32,.06); }
.ax-drawer.is-open { display: block; }
.ax-drawer-inner { padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.ax-drawer-inner a { display: flex; align-items: center; min-height: 52px; border-bottom: var(--border); font-size: 15px; font-weight: 700; color: var(--ax-ink); }
.ax-drawer-cta { display: flex !important; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin-top: 16px; background: var(--ax-cyan); border: 1px solid var(--ax-cyan) !important; color: var(--ax-ink) !important; border-radius: var(--radius-xs); }

@media (max-width: 900px) {
  .ax-nav { display: none; }
  .ax-mobile-actions { display: flex; }
}

/* ============================================================
   Hero
   ============================================================ */
.ax-hero { position: relative; overflow: hidden; border-bottom: var(--border); }
.ax-hero-media { position: absolute; inset: 0 0 0 46%; z-index: 0; }
/* picture で包んだため、包み側にも大きさを持たせる（包みが auto だと img の height:100% が効かない） */
.ax-hero-media picture { display: block; width: 100%; height: 100%; }
.ax-hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 46% 50%; }
.ax-hero-fade { position: absolute; inset: 0; background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,.88) 14%, rgba(255,255,255,0) 46%); }
.ax-hero-inner { position: relative; z-index: 1; max-width: var(--width-wide); margin: 0 auto; padding: clamp(48px, 7vw, 96px) clamp(20px, 3vw, 40px) clamp(48px, 7vw, 104px); }
.ax-hero-copy { max-width: 580px; }
.ax-hero-copy h1 { font-size: clamp(34px, 6.4vw, 62px); font-weight: 700; line-height: 1.24; letter-spacing: -0.02em; margin: 20px 0 0; }
.ax-hero-copy h1 span { font-family: var(--font-display); font-weight: 800; color: var(--ax-cyan-deep); }
.ax-hero-rule { width: 48px; height: 2px; background: var(--ax-cyan); margin: 30px 0; }
.ax-hero-copy p { font-size: 17px; line-height: 1.95; max-width: 470px; }
.ax-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.ax-hero-mobile-img { display: none; }
@media (max-width: 900px) {
  .ax-hero-media, .ax-hero-fade { display: none; }
  .ax-hero-mobile-img { display: block; width: 100%; height: auto; aspect-ratio: 3/2; object-fit: cover; object-position: 55% 50%; }
}

/* ============================================================
   Cards — Article
   ============================================================ */
.ax-article-card { display: flex; flex-direction: column; border: var(--border); color: var(--ax-ink); transition: background-color var(--motion-fast) var(--ease); background: var(--ax-white); }
.ax-article-card:hover { background: var(--ax-cloud); color: var(--ax-ink); }
.ax-article-card-media { position: relative; aspect-ratio: 16/10; background: var(--ax-mist); border-bottom: var(--border); overflow: hidden; }
.ax-article-card-media img { width: 100%; height: 100%; object-fit: cover; }
.ax-article-card-badge { position: absolute; left: 0; bottom: 0; padding: 6px 12px; background: var(--ax-ink); color: var(--ax-white); font-size: 11px; font-weight: 700; }
.ax-article-card-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 18px 20px; flex: 1; }
.ax-article-card-date { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ax-slate); }
.ax-article-card h3 { font-size: 16px; font-weight: 700; line-height: 1.65; }
.ax-article-card-excerpt { font-size: 13.5px; line-height: 1.85; color: var(--ax-slate); }
.ax-article-card-arrow { font-family: var(--font-mono); color: var(--ax-cyan-deep); margin-top: auto; padding-top: 12px; text-align: right; }

/* Issue cards */
.ax-issue-card { display: flex; flex-direction: column; gap: 14px; padding: 24px 26px 20px; min-height: 168px; border: var(--border); border-top: 2px solid var(--ax-ink); background: var(--ax-white); color: var(--ax-ink); transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease); }
.ax-issue-card:hover { background: var(--ax-cloud); border-top-color: var(--ax-cyan); color: var(--ax-ink); }
.ax-issue-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ax-issue-card-num { font-family: var(--font-mono); font-size: 22px; font-weight: 500; line-height: 1; }
.ax-issue-card img { width: 52px; height: 52px; object-fit: contain; }
.ax-issue-card-title { font-size: 18px; font-weight: 700; line-height: 1.5; margin-top: auto; }
.ax-issue-card-desc { font-size: 14px; line-height: 1.7; color: var(--ax-slate); }
.ax-issue-card-tags { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ax-slate); }
.ax-issue-card-arrow { font-family: var(--font-mono); font-size: 16px; color: var(--ax-slate); }

/* Stage list */
.ax-stage-list { list-style: none; border-top: var(--border); max-width: 860px; }
.ax-stage-item a { display: grid; grid-template-columns: 64px 1fr auto; gap: 20px; align-items: baseline; padding: 22px 8px; border-bottom: var(--border); border-left: 2px solid transparent; color: var(--ax-ink); transition: background var(--motion-fast) var(--ease); }
.ax-stage-item a:hover, .ax-stage-item.is-active a { background: var(--ax-cloud); }
.ax-stage-item.is-active a { border-left-color: var(--ax-cyan); }
.ax-stage-num { font-family: var(--font-mono); font-size: 26px; letter-spacing: 0.02em; color: var(--ax-line); }
.ax-stage-item.is-active .ax-stage-num { color: var(--ax-cyan-deep); }
.ax-stage-body { display: flex; flex-direction: column; gap: 6px; }
.ax-stage-body strong { font-size: 18px; font-weight: 700; }
.ax-stage-body span { font-size: 14px; line-height: 1.8; color: var(--ax-slate); }
.ax-stage-arrow { font-family: var(--font-mono); color: var(--ax-cyan-deep); }

/* Practical guide tiles */
.ax-guide-tile { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 28px; border: var(--border); border-top: 2px solid var(--ax-ink); color: var(--ax-ink); transition: border-top-color var(--motion-fast) var(--ease), background-color var(--motion-fast) var(--ease); }
.ax-guide-tile:hover { border-top-color: var(--ax-cyan); background: var(--ax-cloud); color: var(--ax-ink); }
.ax-guide-tile strong { font-size: 16px; font-weight: 700; }

/* Resource card (teaser + list) */
.ax-resource-card { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: var(--border); color: var(--ax-ink); transition: background-color var(--motion-fast) var(--ease); }
.ax-resource-card:hover { background: var(--ax-cloud); color: var(--ax-ink); }
.ax-resource-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0; border-bottom: var(--border); }
.ax-resource-row-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; color: var(--ax-slate); }
.ax-resource-row h3 { font-size: 17px; font-weight: 700; margin: 6px 0 8px; }
.ax-resource-row p { font-size: 14px; line-height: 1.8; color: var(--ax-slate); max-width: 640px; }
.ax-resource-row p b { color: var(--ax-ink); }

/* Service icon grid */
.ax-service-tile { display: flex; flex-direction: column; gap: 10px; text-align: center; align-items: center; }
.ax-service-tile img { width: 48px; height: 48px; object-fit: contain; }
.ax-service-tile strong { font-size: 14px; font-weight: 700; }
.ax-service-tile span { font-size: 12.5px; color: var(--ax-slate); line-height: 1.7; }

/* Case card */
.ax-case-card { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: var(--border); border-top: 2px solid var(--ax-ink); }
.ax-badge { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.ax-badge--fill { background: var(--ax-ink); color: var(--ax-white); }
.ax-badge--outline { border: 1px solid var(--ax-ink); color: var(--ax-ink); }

/* ============================================================
   Callouts / editorial blocks
   ============================================================ */
.ax-callout { padding: 24px 28px; border-left: var(--border-accent); background: var(--ax-cyan-pale); margin: 32px 0; }
.ax-callout--caution { background: var(--ax-cloud); border-left-color: var(--ax-ink); }
.ax-callout p:first-child { margin-top: 0; }
.ax-box { padding: 24px 28px; border: var(--border); margin: 24px 0; }
.ax-box ul, .ax-checklist { list-style: none; }
.ax-checklist li { position: relative; padding-left: 30px; margin: 10px 0; }
.ax-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ax-cyan-deep); font-weight: 700; }

/* Data table */
.ax-table-wrap { overflow-x: auto; margin: 24px 0; }
.ax-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ax-table th, .ax-table td { border: var(--border); padding: 12px 16px; text-align: left; vertical-align: top; }
.ax-table th { background: var(--ax-cloud); font-weight: 700; }

/* Step flow */
.ax-steps { list-style: none; counter-reset: ax-step; display: flex; flex-direction: column; gap: 20px; margin: 24px 0; }
.ax-steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding-bottom: 20px; border-bottom: var(--border); }
.ax-steps li:last-child { border-bottom: none; }
.ax-steps .ax-step-num { font-family: var(--font-mono); font-size: 22px; color: var(--ax-cyan-deep); }
.ax-steps strong { display: block; font-size: 16px; margin-bottom: 6px; }
.ax-steps span { color: var(--ax-slate); font-size: 14.5px; line-height: 1.8; }

/* FAQ accordion (native <details>) */
.ax-faq { border-top: var(--border); }
.ax-faq details { border-bottom: var(--border); padding: 18px 0; }
.ax-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 15px; font-weight: 700; }
.ax-faq summary::-webkit-details-marker { display: none; }
.ax-faq summary::after { content: "＋"; font-family: var(--font-mono); color: var(--ax-ink); flex: none; }
.ax-faq details[open] summary::after { content: "－"; color: var(--ax-cyan-deep); }
.ax-faq details p { margin-top: 12px; color: var(--ax-slate); font-size: 14.5px; line-height: 1.85; }

/* ============================================================
   Article single — layout, TOC, byline
   ============================================================ */
.ax-article-head { max-width: var(--width-article); margin: 0 auto; padding: 48px clamp(20px, 3vw, 40px) 0; }
.ax-breadcrumb { font-size: 13px; color: var(--ax-slate); margin-bottom: 24px; }
.ax-breadcrumb a { color: var(--ax-slate); }
.ax-breadcrumb a:hover { color: var(--ax-cyan-deep); }
.ax-article-meta-line { font-family: var(--font-mono); font-size: 12px; color: var(--ax-slate); margin: 16px 0; }
.ax-article-head h1 { font-size: 34px; font-weight: 700; line-height: 1.5; margin: 8px 0 16px; }
.ax-article-lede { font-size: 17px; line-height: 1.9; color: var(--ax-slate); margin-bottom: 24px; }
.ax-byline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--ax-slate); padding: 16px 0; border-top: var(--border); border-bottom: var(--border); margin-bottom: 40px; }
.ax-byline b { color: var(--ax-ink); }
.ax-article-hero { max-width: var(--width-wide); margin: 0 auto 48px; padding: 0 clamp(20px, 3vw, 40px); }
/* axdx-hero は inc/setup.php で 1600x1000（16:10）として登録している。
   ここを 16/9 にすると比率が合わず、object-fit:cover で切り取られる。

   height:auto を必ず付けること。WordPressが出力する <img width="1600" height="1000">
   のHTML属性がCSSの height として使われるため、これが無いと幅も高さも確定してしまい、
   aspect-ratio が無視される。実測では表示枠が 1200x1000（比率1.2）になり、
   比率1.6の画像の左右が切り取られていた（2026-08-27）。 */
.ax-article-hero img { width: 100%; height: auto; aspect-ratio: 16/10; object-fit: cover; }

.ax-article-body-wrap { max-width: var(--width-wide); margin: 0 auto; padding: 0 clamp(20px, 3vw, 40px) 96px; display: grid; grid-template-columns: 220px 1fr; gap: 64px; }
.ax-toc { position: sticky; top: 100px; align-self: start; }
.ax-toc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: var(--ax-slate); margin-bottom: 12px; display: block; }
.ax-toc ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.ax-toc a { display: block; padding: 8px 0 8px 12px; border-left: 2px solid var(--ax-line); font-size: 13.5px; color: var(--ax-slate); line-height: 1.6; }
.ax-toc a:hover, .ax-toc a.is-active { border-left-color: var(--ax-cyan); color: var(--ax-ink); }
.ax-article-content { max-width: var(--width-article); }
.ax-article-content h2 { font-size: 24px; font-weight: 700; margin: 56px 0 20px; scroll-margin-top: 100px; }
.ax-article-content h2:first-child { margin-top: 0; }
.ax-article-content h3 { font-size: 17px; font-weight: 700; margin: 32px 0 8px; padding-top: 20px; border-top: var(--border); }
.ax-article-content table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14.5px; }
.ax-article-content th, .ax-article-content td { border: var(--border); padding: 12px 16px; text-align: left; }
.ax-article-content th { background: var(--ax-cloud); font-weight: 700; }
.ax-article-content p { margin: 16px 0; font-size: 16px; line-height: 1.9; }
.ax-article-content ul, .ax-article-content ol { margin: 16px 0; padding-left: 1.4em; }
.ax-article-content li { margin: 6px 0; line-height: 1.85; }
.ax-inline-cta { background: var(--ax-navy); color: var(--ax-white); padding: 40px; text-align: center; margin: 48px 0; }
.ax-inline-cta p { color: #c3d0d8; margin-bottom: 20px; }
.ax-sources { font-size: 13.5px; color: var(--ax-slate); }
.ax-sources li { margin: 6px 0; }
.ax-author-box { display: flex; gap: 16px; padding: 24px; border: var(--border); margin-top: 48px; background: var(--ax-cloud); }
.ax-author-box strong { display: block; font-size: 14px; }
.ax-author-box p { font-size: 13.5px; color: var(--ax-slate); margin-top: 6px; }

@media (max-width: 900px) {
  .ax-article-body-wrap { grid-template-columns: 1fr; }
  .ax-toc { position: static; margin-bottom: 32px; }
}

/* ============================================================
   Filters (Article list)
   ============================================================ */
.ax-filter-form { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; padding: 24px; background: var(--ax-cloud); border: var(--border); margin-bottom: 24px; }
.ax-filter-field { display: flex; flex-direction: column; gap: 6px; }
.ax-filter-field label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ax-slate); }
.ax-filter-field select { min-height: 44px; padding: 0 12px; border: var(--border); border-radius: var(--radius-xs); background: var(--ax-white); font-size: 14px; }
.ax-filter-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 24px; }
.ax-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: var(--border); font-size: 13px; background: var(--ax-white); }
.ax-chip a { color: var(--ax-slate); }
.ax-pagination { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 48px; }
.ax-pagination a, .ax-pagination span { display: flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border: var(--border); font-size: 14px; color: var(--ax-ink); }
.ax-pagination .current { background: var(--ax-ink); color: var(--ax-white); border-color: var(--ax-ink); }

/* ============================================================
   Forms
   ============================================================ */
.ax-form { display: flex; flex-direction: column; gap: 20px; }
.ax-form-field { display: flex; flex-direction: column; gap: 8px; }
.ax-form-field label { font-size: 14px; font-weight: 700; }
.ax-form-field input[type="text"], .ax-form-field input[type="email"], .ax-form-field input[type="tel"], .ax-form-field select, .ax-form-field textarea {
  min-height: 48px; padding: 0 14px; border: var(--border); border-radius: var(--radius-sm); font-family: var(--font-ja); font-size: 15px; background: var(--ax-white); color: var(--ax-ink);
}
.ax-form-field textarea { min-height: 160px; padding: 12px 14px; resize: vertical; }
.ax-form-field input:focus, .ax-form-field select:focus, .ax-form-field textarea:focus { outline: 2px solid var(--ax-cyan); outline-offset: 1px; }
.ax-radio-group, .ax-checkbox-group { display: flex; flex-direction: column; gap: 10px; }
.ax-radio-row, .ax-check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; line-height: 1.6; }
.ax-required { color: var(--color-danger); font-size: 12px; font-weight: 400; }
.ax-form-note { font-size: 13px; color: var(--ax-slate); line-height: 1.8; }
.ax-honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ax-form-message { padding: 16px 20px; border-left: var(--border-accent); background: var(--ax-cyan-pale); font-size: 14px; }
.ax-form-message--error { border-left-color: var(--color-danger); background: #fdecec; }

/* ============================================================
   Footer
   ============================================================ */
.ax-footer { background: var(--ax-navy); color: var(--ax-white); }
.ax-footer-grid { max-width: var(--width-wide); margin: 0 auto; padding: 80px clamp(20px, 3vw, 40px) 40px; display: grid; gap: 48px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.ax-footer-col h4 { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; color: #7d92a0; margin-bottom: 18px; }
.ax-footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.ax-footer-col a { color: #c3d0d8; font-size: 14px; }
.ax-footer-col a:hover { color: var(--ax-white); }
.ax-footer-brand .ax-logo-mark { color: var(--ax-white); }
.ax-footer-brand p { color: #7d92a0; font-size: 13px; margin-top: 12px; line-height: 1.8; max-width: 260px; }
.ax-footer-legal { border-top: 1px solid rgba(255,255,255,.12); padding: 20px clamp(20px, 3vw, 40px); text-align: center; font-size: 12px; color: #7d92a0; }
.ax-footer-legal p { margin: 0; }
/* 発行元の表示。誰が出しているメディアかを全ページで示す */
.ax-footer-company { line-height: 1.9; margin-bottom: 10px !important; }
.ax-footer-company a { color: #a9bcc7; text-decoration: underline; }
@media (max-width: 900px) { .ax-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ax-footer-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Diagnosis tool
   ============================================================ */
.ax-diag-pick-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-top: 32px; }
.ax-diag-pick-card { display: flex; flex-direction: column; gap: 12px; padding: 26px 24px; border: var(--border); border-top: 2px solid var(--ax-ink); background: var(--ax-white); cursor: pointer; text-align: left; }
.ax-diag-pick-card.is-selected { border-top-color: var(--ax-cyan); background: var(--ax-cyan-pale); }
.ax-diag-pick-card strong { font-size: 17px; }
.ax-diag-pick-card span { font-size: 13px; color: var(--ax-slate); }
.ax-diag-meta { font-family: var(--font-mono); font-size: 11px; color: var(--ax-slate); }
.ax-diag-panel { max-width: 640px; margin: 0 auto; padding: 48px 0; }
.ax-diag-progress-track { height: 4px; background: var(--ax-line); margin: 20px 0 32px; }
.ax-diag-progress-bar { height: 100%; background: var(--ax-cyan); transition: width var(--motion-base) var(--ease); }
.ax-diag-q-label { font-family: var(--font-mono); font-size: 12px; color: var(--ax-slate); display: flex; justify-content: space-between; }
.ax-diag-axis { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; color: var(--ax-cyan-deep); margin-top: 20px; }
.ax-diag-question { font-size: 20px; font-weight: 700; margin: 10px 0 28px; line-height: 1.6; }
.ax-diag-options { display: flex; flex-direction: column; gap: 10px; }
.ax-diag-option { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding: 12px 14px; border-radius: var(--radius-xs); cursor: pointer; font-size: 15px; line-height: 1.6; border: var(--border); background: var(--ax-white); }
.ax-diag-option input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ax-cyan-deep); }
.ax-diag-option.is-checked { border-color: var(--ax-cyan-deep); background: var(--ax-cyan-pale); font-weight: 700; }
.ax-diag-nav { display: flex; justify-content: space-between; margin-top: 32px; }
.ax-diag-result { max-width: 640px; margin: 0 auto; padding: 48px 0; }
.ax-diag-result-heading { font-size: 30px; font-weight: 700; margin: 12px 0; }
.ax-diag-score { font-family: var(--font-mono); color: var(--ax-slate); }
.ax-diag-urgent { padding: 20px 24px; background: #fdecec; border-left: 4px solid var(--color-danger); margin: 24px 0; }
.ax-diag-priorities { list-style: none; margin: 20px 0; }
.ax-diag-priorities li { padding: 14px 0; border-bottom: var(--border); }
.ax-diag-info-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; margin: 24px 0; }
@media (max-width: 640px) { .ax-diag-info-grid { grid-template-columns: 1fr; } }
.ax-diag-info-box { padding: 20px; border: var(--border); }
.ax-diag-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
