/* ==================================================
   医療AX (med-ax.jp) Stylesheet v1.0.0
   ダーク × グラデーション / 近未来ポータルテーマ
   ================================================== */

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: normal; }

/* ----- Variables ----- */
:root {
  --bg: #05070f;
  --bg-elev: #0b1020;
  --glass: rgba(255, 255, 255, 0.04);
  --glass-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef2ff;
  --text-muted: #9aa5c4;
  --text-dim: #6b7694;

  --cyan: #22d3ee;
  --violet: #818cf8;
  --magenta: #e879f9;
  --grad: linear-gradient(120deg, var(--cyan), var(--violet) 55%, var(--magenta));

  --font-jp: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-en: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;

  --container: 1160px;
  --header-h: 76px;
  --radius: 18px;
  --radius-lg: 28px;

  --trans: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --trans-slow: 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ----- Base ----- */
body {
  font-family: var(--font-jp);
  font-size: 16px;
  line-height: 1.9;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(129, 140, 248, 0.45); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; width: 100%; }
.pc-only { display: inline; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ----- 背景演出 ----- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
.bg-grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(129, 140, 248, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(129, 140, 248, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
}
.bg-orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: drift 22s ease-in-out infinite alternate; }
.bg-orb--cyan { width: 560px; height: 560px; top: -180px; left: -120px; background: rgba(34, 211, 238, 0.16); }
.bg-orb--violet { width: 640px; height: 640px; top: 20vh; right: -220px; background: rgba(129, 140, 248, 0.15); animation-delay: -7s; }
.bg-orb--magenta { width: 480px; height: 480px; top: 75vh; left: 10vw; background: rgba(232, 121, 249, 0.10); animation-delay: -14s; }
@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(60px, 40px) scale(1.12); }
}

/* ----- ボタン ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 26px; border-radius: 100px;
  font-weight: 700; font-size: 14px; letter-spacing: 0.02em;
  transition: transform var(--trans), box-shadow var(--trans), background var(--trans), border-color var(--trans);
  white-space: nowrap;
}
.btn--lg { padding: 16px 36px; font-size: 16px; }
.btn .arrow { font-family: var(--font-en); transition: transform var(--trans); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gradient {
  background: var(--grad); color: #05070f;
  box-shadow: 0 4px 24px rgba(129, 140, 248, 0.35);
}
.btn--gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(129, 140, 248, 0.5); }

.btn--outline { border: 1px solid var(--line-strong); color: var(--text); background: var(--glass); }
.btn--outline:hover { border-color: var(--violet); background: var(--glass-strong); transform: translateY(-2px); }

.btn--ghost { color: var(--text-muted); padding: 11px 16px; }
.btn--ghost:hover { color: var(--text); }

/* ----- ヘッダー ----- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  transition: background var(--trans), border-color var(--trans), backdrop-filter var(--trans);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 0 24px;
  height: 100%; display: flex; align-items: center; gap: 32px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-text { font-size: 22px; font-weight: 900; letter-spacing: 0.04em; }
.brand-text em {
  font-family: var(--font-en); font-weight: 700;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.global-nav { display: flex; gap: 28px; margin-left: auto; }
.global-nav a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 6px 0; transition: color var(--trans);
}
.global-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width var(--trans);
}
.global-nav a:hover { color: var(--text); }
.global-nav a:hover::after { width: 100%; }
.header-actions { display: flex; align-items: center; gap: 8px; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: transform var(--trans), opacity var(--trans); }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----- ヒーロー ----- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 96px) 0 72px;
  text-align: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-en); font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--line); border-radius: 100px; padding: 8px 20px;
  background: var(--glass);
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); animation: pulse 2s infinite; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(34, 211, 238, 0); }
}
.hero-title {
  font-size: clamp(40px, 7vw, 84px);
  font-weight: 900; line-height: 1.22; letter-spacing: 0.01em;
  margin: 28px 0 24px;
}
.hero-lead { font-size: clamp(15px, 1.6vw, 18px); color: var(--text-muted); margin-bottom: 40px; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-stats {
  display: flex; justify-content: center; gap: 0;
  margin-top: 72px;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
}
.hero-stats .stat { flex: 1; padding: 28px 16px; }
.hero-stats .stat + .stat { border-left: 1px solid var(--line); }
.hero-stats dt { font-size: 12px; letter-spacing: 0.1em; color: var(--text-dim); order: 2; }
.hero-stats dd { font-family: var(--font-en); font-size: clamp(28px, 4vw, 44px); font-weight: 700; line-height: 1.2; }
.hero-stats .unit { font-size: 0.45em; margin-left: 4px; color: var(--text-muted); }

.hero-scroll {
  margin: 64px auto 0; width: fit-content;
  font-family: var(--font-en); font-size: 10px; letter-spacing: 0.3em; color: var(--text-dim);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.hero-scroll span { width: 1px; height: 48px; background: linear-gradient(var(--violet), transparent); display: block; animation: scrollLine 2s infinite; }
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ----- ティッカー ----- */
.ticker { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; background: rgba(255, 255, 255, 0.015); }
.ticker-track {
  display: flex; gap: 40px; width: max-content;
  animation: ticker 30s linear infinite;
  font-family: var(--font-en); font-size: 14px; letter-spacing: 0.25em; color: var(--text-dim);
}
.ticker-track i { color: var(--violet); font-style: normal; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ----- セクション共通 ----- */
.section { padding: 110px 0; position: relative; }
.section-label {
  font-family: var(--font-en); font-size: 13px; font-weight: 600; letter-spacing: 0.3em;
  color: var(--cyan); margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4.2vw, 44px); font-weight: 900; line-height: 1.35; margin-bottom: 24px; }
.section-text { color: var(--text-muted); }
.section-text strong { color: var(--text); }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.section-head-row .section-title { margin-bottom: 0; }

/* ----- ABOUT ----- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; align-items: center; }
.about-points { margin-top: 28px; display: grid; gap: 14px; }
.about-points li {
  position: relative; padding-left: 30px; color: var(--text-muted); font-size: 15px;
}
.about-points li::before {
  content: "✦"; position: absolute; left: 0; top: 0;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.about-visual { display: flex; justify-content: center; }
.orbit-card { position: relative; width: 340px; height: 340px; display: grid; place-items: center; }
.orbit-ring { position: absolute; border: 1px dashed var(--line-strong); border-radius: 50%; }
.orbit-ring--1 { inset: 0; animation: spin 40s linear infinite; }
.orbit-ring--2 { inset: 52px; border-style: solid; border-color: var(--line); animation: spin 28s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  width: 128px; height: 128px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-en); font-size: 40px; font-weight: 700; color: #05070f;
  background: var(--grad);
  box-shadow: 0 0 60px rgba(129, 140, 248, 0.55);
}
.orbit-chip {
  position: absolute;
  font-size: 13px; font-weight: 700;
  padding: 8px 16px; border-radius: 100px;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  animation: float 5s ease-in-out infinite;
}
.chip-1 { top: 6%; left: 4%; }
.chip-2 { top: 16%; right: 0; animation-delay: -1.2s; }
.chip-3 { bottom: 14%; right: 6%; animation-delay: -2.4s; }
.chip-4 { bottom: 4%; left: 10%; animation-delay: -3.6s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ----- サービス ----- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature-card {
  position: relative;
  padding: 34px 28px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--glass);
  transition: transform var(--trans), border-color var(--trans), background var(--trans);
  overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0 0 auto;
  height: 2px; background: var(--grad);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--trans-slow);
}
.feature-card:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--glass-strong); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; font-size: 26px;
  background: var(--bg-elev); border: 1px solid var(--line-strong);
  margin-bottom: 20px;
}
.feature-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 14px; color: var(--text-muted); line-height: 1.85; margin-bottom: 18px; }
.feature-tag {
  display: inline-block; font-family: var(--font-en); font-size: 11px; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 12px; border-radius: 100px;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); background: rgba(34, 211, 238, 0.08);
}

/* ----- ニュース ----- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 110px 92px 1fr; gap: 24px; align-items: center;
  padding: 26px 12px;
  border-bottom: 1px solid var(--line);
  transition: background var(--trans), padding-left var(--trans);
}
.news-item:hover { background: var(--glass); padding-left: 24px; }
.news-item time { font-family: var(--font-en); font-size: 14px; color: var(--text-dim); letter-spacing: 0.05em; }
.news-cat {
  font-size: 11px; font-weight: 700; text-align: center;
  padding: 4px 0; border-radius: 100px; border: 1px solid;
}
.cat-ai { color: var(--cyan); border-color: rgba(34, 211, 238, 0.4); }
.cat-event { color: var(--magenta); border-color: rgba(232, 121, 249, 0.4); }
.cat-service { color: var(--violet); border-color: rgba(129, 140, 248, 0.4); }
.cat-notice { color: var(--text-muted); border-color: var(--line-strong); }
.news-item p { font-size: 15px; font-weight: 500; }

/* ----- セミナー ----- */
.seminar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.seminar-card {
  display: flex; gap: 20px;
  padding: 28px 24px;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(160deg, var(--glass-strong), var(--glass));
  transition: transform var(--trans), border-color var(--trans);
}
.seminar-card:hover { transform: translateY(-6px); border-color: rgba(129, 140, 248, 0.5); }
.seminar-date {
  flex-shrink: 0; width: 64px; height: 72px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 14px; background: var(--bg-elev); border: 1px solid var(--line-strong);
  font-family: var(--font-en);
}
.seminar-date .d { font-size: 26px; font-weight: 700; line-height: 1.1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seminar-date .m { font-size: 11px; letter-spacing: 0.15em; color: var(--text-dim); }
.seminar-type { font-size: 11px; font-weight: 600; letter-spacing: 0.05em; color: var(--cyan); }
.seminar-body h3 { font-size: 16px; font-weight: 700; line-height: 1.6; margin: 6px 0 8px; }
.seminar-body p { font-size: 13px; color: var(--text-muted); line-height: 1.8; }

/* ----- CTA ----- */
.cta-section { padding-bottom: 140px; }
.cta-box {
  position: relative;
  text-align: center;
  padding: clamp(48px, 8vw, 88px) 32px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 70% 120% at 50% -20%, rgba(129, 140, 248, 0.22), transparent 60%),
    var(--bg-elev);
  overflow: hidden;
}
.cta-box::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.5; pointer-events: none;
}
.cta-box h2 { font-size: clamp(26px, 4.5vw, 42px); font-weight: 900; line-height: 1.4; margin-bottom: 18px; }
.cta-box p { color: var(--text-muted); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ----- フッター ----- */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 32px; background: rgba(255, 255, 255, 0.015); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 56px; }
.footer-brand p { margin-top: 16px; font-size: 13px; color: var(--text-dim); line-height: 2; }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-nav h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--text-dim); margin-bottom: 16px; }
.footer-nav a { display: block; font-size: 14px; color: var(--text-muted); padding: 6px 0; transition: color var(--trans); }
.footer-nav a:hover { color: var(--text); }
.copyright { text-align: center; font-family: var(--font-en); font-size: 12px; letter-spacing: 0.08em; color: var(--text-dim); border-top: 1px solid var(--line); padding-top: 32px; }

/* ----- スクロールリビール ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--trans-slow), transform var(--trans-slow); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.4s; }
.reveal.d5 { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----- レスポンシブ ----- */
@media (max-width: 1024px) {
  .feature-grid, .seminar-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-visual { order: -1; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .global-nav, .header-actions { display: none; }
  .nav-toggle { display: block; }

  .site-header.is-nav-open { background: rgba(5, 7, 15, 0.95); }
  .global-nav.is-open {
    display: flex; flex-direction: column; gap: 0;
    position: fixed; top: var(--header-h); left: 0; right: 0;
    background: rgba(5, 7, 15, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px;
  }
  .global-nav.is-open a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; }

  .hero { padding-top: calc(var(--header-h) + 56px); }
  .hero-stats { flex-direction: column; }
  .hero-stats .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }

  .section { padding: 72px 0; }
  .feature-grid, .seminar-grid { grid-template-columns: 1fr; }

  .news-item { grid-template-columns: 92px 84px; grid-template-rows: auto auto; gap: 10px 16px; }
  .news-item p { grid-column: 1 / -1; }

  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-nav { grid-template-columns: 1fr; gap: 32px; }
}

/* ==================================================
   WordPress 固有スタイル (テーマ版のみ)
   ================================================== */

/* ----- アクセシビリティ ----- */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
  height: 1px; overflow: hidden; padding: 0; position: absolute !important; width: 1px;
  word-wrap: normal !important;
}
.skip-link { position: absolute; top: -48px; left: 8px; z-index: 999; background: var(--bg-elev); color: var(--text); padding: 10px 18px; border-radius: 0 0 8px 8px; border: 1px solid var(--line-strong); }
.skip-link:focus { top: 0; }

/* ----- wp_nav_menu (ul/li) 対応 ----- */
.global-nav ul { display: flex; gap: 28px; }
.global-nav li { display: block; }
.global-nav li a {
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  position: relative; padding: 6px 0; transition: color var(--trans); display: inline-block;
}
.global-nav li a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); border-radius: 2px; transition: width var(--trans);
}
.global-nav li a:hover { color: var(--text); }
.global-nav li a:hover::after { width: 100%; }
.global-nav .current-menu-item > a { color: var(--text); }

.footer-nav ul { display: block; }
.footer-nav ul a { display: block; font-size: 14px; color: var(--text-muted); padding: 6px 0; }
.footer-nav ul a:hover { color: var(--text); }

/* ----- 下層ページ共通 ----- */
.container--narrow { max-width: 860px; }
.page-hero {
  padding: calc(var(--header-h) + 72px) 0 0;
}
.page-title { font-size: clamp(26px, 4.5vw, 44px); font-weight: 900; line-height: 1.4; }
.entry-meta { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.entry-meta time { font-family: var(--font-en); font-size: 14px; color: var(--text-dim); letter-spacing: 0.05em; }
.entry-meta .news-cat { padding: 4px 14px; }
.section--single, .section--archive { padding-top: 56px; }

.entry-thumb { margin-bottom: 40px; }
.entry-thumb img { border-radius: var(--radius); border: 1px solid var(--line); }
.entry-back { margin-top: 56px; text-align: center; }

/* ----- 本文 (entry-content) ----- */
.entry-content > * + * { margin-top: 1.4em; }
.entry-content h2 {
  font-size: 26px; font-weight: 900; line-height: 1.5;
  margin-top: 2.2em; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.entry-content h2::after {
  content: ""; position: absolute; left: 0; bottom: -1px;
  width: 64px; height: 2px; background: var(--grad); border-radius: 2px;
}
.entry-content h3 { font-size: 20px; font-weight: 700; margin-top: 1.8em; }
.entry-content p { color: var(--text-muted); }
.entry-content strong { color: var(--text); }
.entry-content a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--violet); }
.entry-content ul, .entry-content ol { padding-left: 1.4em; color: var(--text-muted); }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-top: 0.4em; }
.entry-content blockquote {
  border-left: 3px solid var(--violet);
  padding: 4px 0 4px 20px; color: var(--text-muted);
  background: var(--glass); border-radius: 0 var(--radius) var(--radius) 0;
}
.entry-content img { border-radius: var(--radius); border: 1px solid var(--line); }
.entry-content code {
  font-family: var(--font-en); font-size: 0.9em;
  background: var(--glass-strong); border: 1px solid var(--line);
  padding: 2px 8px; border-radius: 6px;
}
.entry-content pre { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; overflow-x: auto; }
.entry-content pre code { background: none; border: 0; padding: 0; }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line-strong); padding: 10px 14px; font-size: 14px; }
.entry-content th { background: var(--glass-strong); }
.alignwide { margin-left: -60px; margin-right: -60px; max-width: none; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: none; }

/* ----- ページネーション ----- */
.pagination-wrap { margin-top: 48px; }
.pagination-wrap .nav-links { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pagination-wrap .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 44px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  font-family: var(--font-en); font-size: 14px; color: var(--text-muted);
  transition: border-color var(--trans), color var(--trans);
}
.pagination-wrap .page-numbers:hover { border-color: var(--violet); color: var(--text); }
.pagination-wrap .page-numbers.current { background: var(--grad); color: #05070f; border-color: transparent; font-weight: 700; }
.no-posts { color: var(--text-muted); text-align: center; padding: 48px 0; }

/* ----- セミナーカード内リンク ----- */
.seminar-body h3 a { transition: color var(--trans); }
.seminar-body h3 a:hover { color: var(--cyan); }

/* ----- Contact Form 7 ----- */
.medax-form label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.medax-form input[type="text"],
.medax-form input[type="email"],
.medax-form input[type="tel"],
.medax-form input[type="url"],
.medax-form input[type="number"],
.medax-form select,
.medax-form textarea {
  width: 100%; padding: 13px 16px;
  background: var(--glass); border: 1px solid var(--line-strong); border-radius: 12px;
  color: var(--text); font-family: var(--font-jp); font-size: 15px;
  transition: border-color var(--trans), box-shadow var(--trans);
}
.medax-form input:focus, .medax-form select:focus, .medax-form textarea:focus {
  outline: none; border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25);
}
.medax-form input[type="submit"], .medax-form button[type="submit"] {
  display: inline-flex; align-items: center; justify-content: center;
  width: auto; padding: 14px 40px; border: 0; border-radius: 100px; cursor: pointer;
  background: var(--grad); color: #05070f; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 24px rgba(129, 140, 248, 0.35);
  transition: transform var(--trans), box-shadow var(--trans);
}
.medax-form input[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(129, 140, 248, 0.5); }
.medax-form .wpcf7-not-valid-tip { color: #fb7185; font-size: 13px; margin-top: 4px; }
.medax-form .wpcf7-response-output { border: 1px solid var(--line-strong) !important; border-radius: 12px; padding: 14px 18px !important; margin: 24px 0 0 !important; }

/* ----- モバイル: wp_nav_menu 対応 ----- */
@media (max-width: 768px) {
  .global-nav.is-open ul { flex-direction: column; gap: 0; }
  .global-nav.is-open li a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; display: block; width: 100%; }
  .alignwide { margin-left: 0; margin-right: 0; }
}
