/* ============================================================
   メディカルGEO フロントページ — Bright UI Design v3
   参考: shindancloud.com スタイル
   ============================================================ */

/* ── Variables ──────────────────────────────────────────── */
:root {
  --c-blue:       #1a56db;
  --c-blue-d:     #1342b0;
  --c-sky:        #0ea5e9;
  --c-teal:       #0891b2;
  --c-blue-lt:    #eff6ff;
  --c-blue-lt2:   #dbeafe;
  --c-sky-lt:     #e0f2fe;
  --c-green:      #059669;
  --c-green-lt:   #d1fae5;
  --c-purple:     #7c3aed;
  --c-purple-lt:  #ede9fe;
  --c-orange:     #f59e0b;
  --c-orange-lt:  #fef3c7;
  --c-red:        #ef4444;
  --c-red-lt:     #fee2e2;
  --c-dark:       #0f172a;
  --c-dark-2:     #1e293b;
  --c-text:       #1e293b;
  --c-text-s:     #64748b;
  --c-text-xs:    #94a3b8;
  --c-border:     #e2e8f0;
  --c-bg:         #f8fafc;
  --c-white:      #ffffff;
  --grad-primary: linear-gradient(135deg, #1a56db 0%, #0ea5e9 100%);
  --grad-hero:    linear-gradient(140deg, #1342b0 0%, #1a56db 45%, #0891b2 100%);
  --grad-lt:      linear-gradient(135deg, #eff6ff 0%, #e0f2fe 100%);
  --r:            12px;
  --r-lg:         18px;
  --r-xl:         24px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-md:    0 8px 32px rgba(0,0,0,.1);
  --shadow-lg:    0 16px 48px rgba(0,0,0,.12);
  --shadow-blue:  0 8px 32px rgba(26,86,219,.25);
  --trans:        .2s ease;
}

/* ── Global ─────────────────────────────────────────────── */
::selection { background: var(--c-blue-lt2); color: var(--c-blue-d); }

/* ══════════════════════════════════════════════════════════
   COCOON OVERRIDE
══════════════════════════════════════════════════════════ */
body.page-template-front-page-medical .entry-header,
body.page-template-front-page-medical .entry-title,
body.page-template-front-page-medical .breadcrumb,
body.page-template-front-page-medical .entry-footer,
body.page-template-front-page-medical .after-entry,
body.page-template-front-page-medical .pager-post-navi,
body.page-template-front-page-medical .sns-buttons,
body.page-template-front-page-medical .sns-follow-buttons,
body.page-template-front-page-medical-php .entry-header,
body.page-template-front-page-medical-php .entry-title,
body.page-template-front-page-medical-php .breadcrumb,
body.page-template-front-page-medical-php .entry-footer,
body.page-template-front-page-medical-php .after-entry,
body.page-template-front-page-medical-php .pager-post-navi,
body.page-template-front-page-medical-php .sns-buttons,
body.page-template-front-page-medical-php .sns-follow-buttons { display: none !important; }

body.page-template-front-page-medical .entry-content,
body.page-template-front-page-medical-php .entry-content {
  padding: 0 !important; margin: 0 !important;
  max-width: 100% !important; width: 100% !important;
}
body.page-template-front-page-medical article.entry,
body.page-template-front-page-medical .entry-body,
body.page-template-front-page-medical #content,
body.page-template-front-page-medical #primary,
body.page-template-front-page-medical .site-main,
body.page-template-front-page-medical-php article.entry,
body.page-template-front-page-medical-php .entry-body,
body.page-template-front-page-medical-php #content,
body.page-template-front-page-medical-php #primary,
body.page-template-front-page-medical-php .site-main {
  padding: 0 !important; margin-top: 0 !important;
  margin-bottom: 0 !important; max-width: 100% !important;
}

/* フロントページ全幅化 — Cocoon ラッパーを突破 */
body.page-template-front-page-medical #container,
body.page-template-front-page-medical #container-inner,
body.page-template-front-page-medical .content-wrap,
body.page-template-front-page-medical #wrapper,
body.page-template-front-page-medical .wrap,
body.page-template-front-page-medical-php #container,
body.page-template-front-page-medical-php #container-inner,
body.page-template-front-page-medical-php .content-wrap,
body.page-template-front-page-medical-php #wrapper,
body.page-template-front-page-medical-php .wrap {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ヒーロー・統計バーを100vw全幅に */
.mg-hero,
.mg-stats,
.mg-cta {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

/* 投稿者名非表示 */
.entry-meta .author, .entry-meta .vcard, .entry-author,
.author-info, .byline, .post-author, .article-header .author,
span.by-author, .author.vcard, a[rel="author"],
.screen-reader-text + .author { display: none !important; }
body.page .entry-meta,
body.page .entry-footer .entry-meta { display: none !important; }

/* ══════════════════════════════════════════════════════════
   FIXED NAVBAR
══════════════════════════════════════════════════════════ */
.mg-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--c-border);
  height: 64px;
  transition: box-shadow .3s ease;
  font-family: 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', sans-serif;
  -webkit-font-smoothing: antialiased;
}
.mg-navbar.is-scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.08);
}
.mg-navbar__inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
}
.mg-navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 32px;
  text-decoration: none;
}
.mg-navbar__logo img {
  height: 32px;
  width: auto;
}
.mg-navbar__nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.mg-navbar__link {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text);
  text-decoration: none;
  border-radius: 6px;
  transition: background var(--trans), color var(--trans);
  white-space: nowrap;
}
.mg-navbar__link:hover {
  background: var(--c-blue-lt);
  color: var(--c-blue);
}
.mg-navbar__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.mg-navbar__contact {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-s);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color var(--trans);
  white-space: nowrap;
}
.mg-navbar__contact:hover { color: var(--c-blue); }
.mg-btn--sm {
  padding: 9px 18px;
  font-size: 13px;
}
/* Hamburger toggle (mobile) */
.mg-navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 8px;
}
.mg-navbar__toggle span {
  display: block;
  height: 2px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.mg-navbar__toggle.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mg-navbar__toggle.is-active span:nth-child(2) { opacity: 0; }
.mg-navbar__toggle.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Cocoon theme header — hide on this template */
body.page-template-front-page-medical #header,
body.page-template-front-page-medical #header-container,
body.page-template-front-page-medical #header-wrapper,
body.page-template-front-page-medical .site-header,
body.page-template-front-page-medical-php #header,
body.page-template-front-page-medical-php #header-container,
body.page-template-front-page-medical-php #header-wrapper,
body.page-template-front-page-medical-php .site-header { display: none !important; }

/* Push content below fixed navbar */
body.page-template-front-page-medical .entry-content,
body.page-template-front-page-medical-php .entry-content {
  padding-top: 64px !important;
}

/* Smooth scroll for anchor links */
html { scroll-behavior: smooth; scroll-padding-top: 72px; }

@media (max-width: 900px) {
  .mg-navbar__toggle { display: flex; }
  .mg-navbar__nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: white;
    border-bottom: 1px solid var(--c-border);
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    padding: 8px 0;
  }
  .mg-navbar__nav.is-open { display: flex; }
  .mg-navbar__link {
    padding: 12px 24px;
    border-radius: 0;
    font-size: 15px;
  }
  .mg-navbar__actions { gap: 8px; }
  .mg-navbar__contact { display: none; }
}
@media (max-width: 480px) {
  .mg-navbar__actions .mg-btn--sm { font-size: 12px; padding: 8px 14px; }
}

/* ── Base Reset ─────────────────────────────────────────── */
.mg-hero, .mg-stats, .mg-section, .mg-cta {
  font-family: 'Hiragino Sans', 'Meiryo', 'Noto Sans JP', sans-serif;
  color: var(--c-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.mg-hero *, .mg-stats *, .mg-section *, .mg-cta * { box-sizing: border-box; }

/* ── Layout ─────────────────────────────────────────────── */
.mg-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}
.mg-inner--wide { max-width: 1120px; }
.mg-section      { padding: 96px 0; }
.mg-section--bg  { background: var(--c-bg); }
.mg-section--lt  { background: var(--grad-lt); }

/* ── Buttons ─────────────────────────────────────────────── */
.mg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all var(--trans);
  border: 2px solid transparent;
  line-height: 1.4;
  cursor: pointer;
  white-space: nowrap;
}
.mg-btn--lg { padding: 16px 34px; font-size: 16px; border-radius: var(--r-lg); }
.mg-btn--sm { padding: 10px 20px; font-size: 13px; }

.mg-btn--primary {
  background: var(--grad-primary);
  color: var(--c-white);
  box-shadow: var(--shadow-blue);
}
.mg-btn--primary:hover {
  background: linear-gradient(135deg, #1342b0 0%, #0891b2 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(26,86,219,.35);
}

.mg-btn--white {
  background: var(--c-white);
  color: var(--c-blue);
  box-shadow: var(--shadow);
}
.mg-btn--white:hover {
  background: var(--c-blue-lt);
  transform: translateY(-2px);
}

.mg-btn--outline {
  background: transparent;
  color: var(--c-blue);
  border-color: var(--c-blue);
}
.mg-btn--outline:hover {
  background: var(--c-blue-lt);
  transform: translateY(-1px);
}

.mg-btn--outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.5);
}
.mg-btn--outline-white:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* ── Section Header — 2-column layout ───────────────────── */
.mg-section-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 72px;
}

/* テキストブロック */
.mg-section-head__text {
  text-align: left;
}

/* ── 画像: 白背景セクション → 右列 ─── */
.mg-section:not(.mg-section--bg) .mg-section-head .mg-section-illust { order: 2; }
.mg-section:not(.mg-section--bg) .mg-section-head .mg-section-head__text { order: 1; }

/* ── 画像: グレー背景セクション → 左列（デフォルト） ── */
.mg-section--bg .mg-section-head .mg-section-illust { order: 1; }
.mg-section--bg .mg-section-head .mg-section-head__text { order: 2; }

/* ── 画像スタイル ─────────────────── */
.mg-section-illust {
  display: flex;
  align-items: center;
}
.mg-section:not(.mg-section--bg) .mg-section-illust { justify-content: flex-end; }
.mg-section--bg                  .mg-section-illust { justify-content: flex-start; }

.mg-section-illust img {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
  transition: transform .4s ease, box-shadow .4s ease;
}
.mg-section-illust:hover img {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-lg);
}

/* CTA セクションのイラスト（中央・小） */
.mg-section-illust--cta {
  justify-content: center;
  margin-bottom: 24px;
}
.mg-section-illust--cta img {
  width: 260px;
  max-width: 260px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

/* ── section-head 内のラベル・タイトル位置調整 ── */
.mg-section-head__text .mg-section-label { margin-bottom: 12px; }
.mg-section-head__text .mg-section-title { margin-bottom: 16px; text-wrap: balance; }
.mg-section-head__text .mg-section-sub   { text-wrap: pretty; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 860px) {
  .mg-section-head {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .mg-section-head__text { text-align: center; order: 2 !important; }
  .mg-section-illust,
  .mg-section:not(.mg-section--bg) .mg-section-illust,
  .mg-section--bg .mg-section-illust {
    order: 1 !important;
    justify-content: center;
  }
  .mg-section-illust img { max-width: 380px; }
  .mg-section-illust--cta img { width: 220px; }
}
.mg-section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.mg-section-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  line-height: 1.4;
  letter-spacing: -.02em;
  margin: 0 0 16px;
  color: var(--c-dark);
  text-wrap: balance;
}
.mg-section-sub {
  font-size: 17px;
  color: var(--c-text-s);
  line-height: 1.8;
  margin: 0;
  text-wrap: balance;
}
.mg-section-cta { text-align: center; margin-top: 56px; }
.mg-section-note { font-size: 13px; color: var(--c-text-xs); margin-top: 12px; }

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.mg-hero {
  background: var(--grad-hero);
  padding: 88px 0 100px;
  position: relative;
  overflow: hidden;
}
.mg-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 30px 30px;
  pointer-events: none;
}
.mg-hero::after {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(14,165,233,.25) 0%, transparent 70%);
  pointer-events: none;
}
.mg-hero .mg-inner {
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Hero Text */
.mg-hero__logo {
  display: block;
  width: 200px;
  height: auto;
  margin-bottom: 28px;
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 10px 20px;
}
.mg-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,.8);
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
  letter-spacing: .04em;
}
.mg-hero__title {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  letter-spacing: -.03em;
  margin: 0 0 22px;
  text-wrap: balance;
}
.mg-hero__title-em {
  display: inline-block;
  background: linear-gradient(90deg, #fde68a 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mg-hero__desc {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  line-height: 1.85;
  margin: 0 0 36px;
}
.mg-hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  align-items: center;
}
.mg-hero__chips {
  display: flex;
  gap: 20px;
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.mg-hero__chips li {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.mg-hero__chips li svg { color: #6ee7b7; flex-shrink: 0; }

/* Hero Visual — Report Card */
.mg-report-card {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.3), 0 0 0 1px rgba(255,255,255,.1);
}
.mg-report-card__head {
  background: #f1f5f9;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--c-border);
}
.mg-report-card__dots { display: flex; gap: 5px; }
.mg-report-card__dots span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.mg-report-card__dots span:nth-child(1) { background: #fc5f5a; }
.mg-report-card__dots span:nth-child(2) { background: #fdbd41; }
.mg-report-card__dots span:nth-child(3) { background: #35cd4b; }
.mg-report-card__label {
  font-size: 12px; font-weight: 600;
  color: var(--c-text-s); margin-left: 4px;
}
.mg-report-card__body { padding: 24px; }

/* Gauge */
.mg-gauge { text-align: center; margin-bottom: 20px; }
.mg-gauge__svg { width: 160px; display: block; margin: 0 auto; }
.mg-gauge__num {
  font-size: 42px; font-weight: 900;
  color: var(--c-text); line-height: 1;
  margin: -6px 0 8px;
}
.mg-gauge__num span { font-size: 15px; font-weight: 400; color: var(--c-text-s); }
.mg-gauge__tag {
  display: inline-block; font-size: 12px; font-weight: 700;
  padding: 4px 14px; border-radius: 999px;
}
.mg-gauge__tag--yellow { background: #fef3c7; color: #92400e; }
.mg-gauge__tag--green  { background: var(--c-green-lt); color: #065f46; }

/* Report Bars */
.mg-report-bars { display: grid; gap: 10px; margin-bottom: 16px; }
.mg-report-bar__meta {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--c-text-s);
  margin-bottom: 5px; font-weight: 500;
}
.mg-report-bar__track {
  height: 6px; background: var(--c-border);
  border-radius: 99px; overflow: hidden;
}
.mg-report-bar__fill {
  height: 100%; border-radius: 99px;
  transition: width 1.2s cubic-bezier(.4,0,.2,1);
}
.mg-report-bar__fill--green  { background: linear-gradient(90deg, #059669, #34d399); }
.mg-report-bar__fill--yellow { background: linear-gradient(90deg, #d97706, #fbbf24); }
.mg-report-bar__fill--blue   { background: linear-gradient(90deg, #1a56db, #60a5fa); }
.mg-report-bar__fill--red    { background: linear-gradient(90deg, #dc2626, #f87171); }

.mg-report-alert {
  display: flex; align-items: center; gap: 8px;
  background: #fff7ed; border: 1px solid #fed7aa;
  color: #9a3412; font-size: 12px; font-weight: 600;
  padding: 10px 14px; border-radius: 8px;
}

/* ══════════════════════════════════════════════════════════
   STATS
══════════════════════════════════════════════════════════ */
.mg-stats {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-border);
  padding: 0;
}
.mg-stats__list {
  display: flex; margin: 0; padding: 0;
}
.mg-stats__item {
  flex: 1; text-align: center;
  padding: 36px 20px;
}
.mg-stats__item dt {
  font-size: 14px; font-weight: 700;
  color: var(--c-text-s);
  letter-spacing: .04em; margin-bottom: 10px;
}
.mg-stats__item dd {
  font-size: 52px; font-weight: 900;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1; margin: 0;
}
.mg-stats__item dd span {
  font-size: 16px; font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-left: 3px;
}
.mg-stats__sep {
  width: 1px; background: var(--c-border);
  margin: 20px 0;
}

/* ══════════════════════════════════════════════════════════
   PROBLEMS
══════════════════════════════════════════════════════════ */
.mg-problems {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.mg-problem {
  background: var(--c-white);
  border-radius: var(--r);
  padding: 24px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-red);
  transition: box-shadow var(--trans), transform var(--trans);
}
.mg-problem:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.mg-problem__icon {
  width: 40px; height: 40px;
  background: var(--c-red-lt);
  color: var(--c-red);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mg-problem__text {
  font-size: 15px; font-weight: 600;
  color: var(--c-text); line-height: 1.6;
  margin: 0; padding-top: 8px;
  text-wrap: balance;
}
.mg-problems__cta {
  text-align: center;
  background: var(--grad-lt);
  border-radius: var(--r-xl);
  padding: 40px;
  border: 1px solid var(--c-blue-lt2);
}
.mg-problems__cta p {
  font-size: 18px; color: var(--c-text);
  margin: 0 0 24px; font-weight: 500;
}
.mg-problems__cta strong { color: var(--c-blue); }

/* ══════════════════════════════════════════════════════════
   STEPS
══════════════════════════════════════════════════════════ */
.mg-steps {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.mg-step {
  flex: 1;
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 36px 28px 32px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  position: relative;
}
.mg-step__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 56px; height: 56px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 14px; font-weight: 900;
  letter-spacing: .06em;
  border-radius: 50%;
  margin-bottom: 20px;
  box-shadow: var(--shadow-blue);
}
.mg-step__icon-wrap {
  width: 56px; height: 56px;
  background: var(--c-sky-lt);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  color: var(--c-sky);
}
.mg-step h3 {
  font-size: 18px; font-weight: 800;
  color: var(--c-dark); margin: 0 0 12px;
  text-wrap: balance;
}
.mg-step p {
  font-size: 15px; color: var(--c-text-s);
  line-height: 1.75; margin: 0 0 18px;
  text-wrap: balance;
}
.mg-step__badge {
  display: inline-block; font-size: 12px; font-weight: 700;
  color: var(--c-green); background: var(--c-green-lt);
  padding: 4px 14px; border-radius: 999px;
}
.mg-step__connector {
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px; color: var(--c-text-xs); flex-shrink: 0;
}

/* ══════════════════════════════════════════════════════════
   CATEGORIES (診断内容)
══════════════════════════════════════════════════════════ */
.mg-cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.mg-cat {
  background: var(--c-white);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--trans), transform var(--trans);
  position: relative;
}
.mg-cat:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mg-cat__header {
  padding: 24px 20px 16px;
  background: var(--grad-lt);
  border-bottom: 1px solid var(--c-border);
}
.mg-cat--featured .mg-cat__header {
  background: var(--grad-primary);
}
.mg-cat__badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #fff;
  color: var(--c-blue);
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px;
  letter-spacing: .04em;
  box-shadow: var(--shadow-sm);
}
.mg-cat--featured .mg-cat__badge {
  background: rgba(255,255,255,.2);
  color: #fff;
}
.mg-cat__icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
}
.mg-cat__icon--blue   { background: var(--c-blue-lt);   color: var(--c-blue); }
.mg-cat__icon--green  { background: rgba(255,255,255,.2); color: var(--c-white); }
.mg-cat--featured .mg-cat__icon--green { background: rgba(255,255,255,.2); color: #fff; }
.mg-cat__icon--purple { background: var(--c-purple-lt); color: var(--c-purple); }
.mg-cat__icon--orange { background: var(--c-orange-lt); color: var(--c-orange); }
.mg-cat__title {
  font-size: 17px; font-weight: 800;
  margin: 0 0 4px; color: var(--c-dark);
}
.mg-cat--featured .mg-cat__title { color: #fff; }
.mg-cat__score {
  font-size: 13px; font-weight: 600;
  color: var(--c-text-s);
}
.mg-cat--featured .mg-cat__score { color: rgba(255,255,255,.75); }
.mg-cat__body { padding: 18px 20px 22px; }
.mg-cat__list {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
}
.mg-cat__list li {
  font-size: 14px; color: var(--c-text-s);
  padding-left: 18px; position: relative; line-height: 1.6;
}
.mg-cat__list li::before {
  content: '';
  position: absolute; left: 2px; top: 7px;
  width: 6px; height: 6px;
  background: var(--c-sky-lt);
  border: 2px solid var(--c-sky);
  border-radius: 50%;
}

/* ══════════════════════════════════════════════════════════
   SERVICES
══════════════════════════════════════════════════════════ */
.mg-services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mg-service {
  background: var(--c-white);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--trans), transform var(--trans);
}
.mg-service:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mg-service--featured {
  border: 2px solid var(--c-blue);
}
.mg-service__header {
  padding: 28px 26px 20px;
  background: var(--grad-lt);
  border-bottom: 1px solid var(--c-border);
  position: relative;
}
.mg-service--featured .mg-service__header {
  background: var(--grad-primary);
}
.mg-service__tag {
  position: absolute;
  top: 16px; right: 16px;
  background: var(--c-orange);
  color: #fff;
  font-size: 11px; font-weight: 800;
  padding: 4px 12px; border-radius: 999px;
  letter-spacing: .04em;
}
.mg-service__num {
  font-size: 11px; font-weight: 900;
  letter-spacing: .12em;
  color: var(--c-text-xs);
  margin-bottom: 12px;
}
.mg-service--featured .mg-service__num { color: rgba(255,255,255,.5); }
.mg-service__icon {
  width: 52px; height: 52px;
  background: var(--c-white);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--c-blue);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.mg-service--featured .mg-service__icon {
  background: rgba(255,255,255,.2);
  color: #fff;
  box-shadow: none;
}
.mg-service h3 {
  font-size: 20px; font-weight: 800;
  color: var(--c-dark); margin: 0;
}
.mg-service--featured h3 { color: #fff; }
.mg-service__body { padding: 24px 26px 28px; }
.mg-service p {
  font-size: 15px; color: var(--c-text-s);
  line-height: 1.8; margin: 0 0 18px;
}
.mg-service ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; gap: 8px;
  border-top: 1px solid var(--c-border);
  padding-top: 18px;
}
.mg-service ul li {
  font-size: 14px; color: var(--c-text-s);
  padding-left: 20px; position: relative;
  display: flex; align-items: center; gap: 6px;
}
.mg-service ul li::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  background: var(--c-blue-lt);
  border-radius: 50%;
}
.mg-service ul li::after {
  content: '';
  position: absolute; left: 3px; top: 50%;
  transform: translateY(-50%) rotate(-45deg);
  width: 7px; height: 4px;
  border-left: 2px solid var(--c-blue);
  border-bottom: 2px solid var(--c-blue);
}

/* ══════════════════════════════════════════════════════════
   TARGETS
══════════════════════════════════════════════════════════ */
.mg-targets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 680px;
  margin: 0 auto;
}
.mg-target {
  background: var(--c-white);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--trans), transform var(--trans);
}
.mg-target:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mg-target__icon {
  width: 80px; height: 80px;
  background: var(--grad-lt);
  color: var(--c-blue);
  border-radius: 24px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: var(--shadow-sm);
}
.mg-target h3 {
  font-size: 21px; font-weight: 800;
  margin: 0 0 12px; color: var(--c-dark);
}
.mg-target p {
  font-size: 15px; color: var(--c-text-s);
  line-height: 1.7; margin: 0;
}

/* ══════════════════════════════════════════════════════════
   REASONS
══════════════════════════════════════════════════════════ */
.mg-reasons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.mg-reason {
  background: var(--c-white);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--trans), transform var(--trans);
}
.mg-reason:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.mg-reason__num {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 13px; font-weight: 900;
  border-radius: 50%;
  margin-bottom: 18px;
  box-shadow: var(--shadow-blue);
}
.mg-reason h3 {
  font-size: 17px; font-weight: 800;
  color: var(--c-dark); margin: 0 0 10px;
  line-height: 1.4;
  text-wrap: balance;
}
.mg-reason p {
  font-size: 14px; color: var(--c-text-s);
  line-height: 1.85; margin: 0;
  text-wrap: pretty;
}

/* ══════════════════════════════════════════════════════════
   FAQ
══════════════════════════════════════════════════════════ */
.mg-faqs {
  max-width: 740px; margin: 0 auto;
  display: grid; gap: 10px;
}
.mg-faq {
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--trans), box-shadow var(--trans);
}
.mg-faq[open] {
  border-color: var(--c-sky);
  box-shadow: 0 0 0 3px var(--c-sky-lt);
}
.mg-faq__q {
  display: flex;
  align-items: center; justify-content: space-between;
  gap: 12px; padding: 20px 22px;
  cursor: pointer; list-style: none; user-select: none;
}
.mg-faq__q::-webkit-details-marker { display: none; }
.mg-faq__q-inner {
  font-size: 16px; font-weight: 700;
  color: var(--c-text); line-height: 1.5;
  display: flex; align-items: baseline; gap: 10px;
  text-wrap: balance;
}
.mg-faq__q-inner::before {
  content: 'Q';
  flex-shrink: 0;
  font-size: 13px; font-weight: 900;
  color: #fff;
  background: var(--grad-primary);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  line-height: 1;
  box-shadow: var(--shadow-blue);
}
.mg-faq__icon {
  width: 30px; height: 30px;
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--c-blue);
  transition: background var(--trans), border-color var(--trans);
}
.mg-faq__minus { display: none; }
.mg-faq[open] .mg-faq__plus  { display: none; }
.mg-faq[open] .mg-faq__minus { display: block; }
.mg-faq[open] .mg-faq__icon  {
  background: var(--grad-primary);
  border-color: transparent;
  color: #fff;
}
.mg-faq__a {
  padding: 4px 22px 22px;
  font-size: 15px; color: var(--c-text-s);
  line-height: 1.85;
  display: flex; gap: 10px; align-items: flex-start;
}
.mg-faq__a::before {
  content: 'A';
  flex-shrink: 0;
  font-size: 13px; font-weight: 900;
  color: var(--c-sky);
  background: var(--c-sky-lt);
  width: 26px; height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  line-height: 1;
  margin-top: 2px;
}

/* ══════════════════════════════════════════════════════════
   ARTICLES
══════════════════════════════════════════════════════════ */
.mg-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.mg-article-card {
  display: flex; flex-direction: column;
  background: var(--c-white);
  border-radius: var(--r-lg);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--c-border);
  transition: box-shadow var(--trans), transform var(--trans);
}
.mg-article-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.mg-article-card__thumb {
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden; background: var(--c-bg);
}
.mg-article-card__thumb img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .4s ease;
}
.mg-article-card:hover .mg-article-card__thumb img { transform: scale(1.05); }
.mg-article-card__noimg {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-lt);
  color: rgba(26,86,219,.3);
}
.mg-article-card__body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column;
  gap: 8px; flex: 1;
}
.mg-article-card__cat {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: .06em;
  color: var(--c-blue);
  background: var(--c-blue-lt);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
}
.mg-article-card__title {
  font-size: 16px; font-weight: 700;
  color: var(--c-text); line-height: 1.55;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mg-article-card__date {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--c-text-xs);
  margin: auto 0 0; padding-top: 8px;
}
.mg-articles__empty {
  color: var(--c-text-s); font-size: 14px;
  grid-column: 1 / -1; text-align: center;
  padding: 48px 0;
}
.mg-articles__more { text-align: center; margin-top: 48px; }

/* ══════════════════════════════════════════════════════════
   CTA FINAL
══════════════════════════════════════════════════════════ */
.mg-cta {
  background: var(--grad-hero);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.mg-cta::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.mg-cta::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -150px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(14,165,233,.2) 0%, transparent 70%);
  pointer-events: none;
}
.mg-cta__inner {
  text-align: center; position: relative; z-index: 1;
}
.mg-cta__logo {
  display: block; width: 180px; height: auto;
  margin: 0 auto 32px;
  background: rgba(255,255,255,.92);
  border-radius: 12px;
  padding: 8px 16px;
}
.mg-cta__label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; letter-spacing: .1em;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px; border-radius: 999px;
  text-transform: uppercase; margin-bottom: 22px;
}
.mg-cta__title {
  font-size: clamp(26px, 3.5vw, 44px);
  font-weight: 900; color: #fff;
  line-height: 1.35; letter-spacing: -.02em;
  margin: 0 0 18px;
}
.mg-cta__desc {
  font-size: 16px; color: rgba(255,255,255,.75);
  line-height: 1.85; margin: 0 0 44px;
}
.mg-cta__btns {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-bottom: 20px;
}
.mg-cta__note {
  font-size: 13px; color: rgba(255,255,255,.45);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  .mg-hero .mg-inner   { grid-template-columns: 1fr; }
  .mg-hero__visual     { display: none; }
  .mg-cats             { grid-template-columns: repeat(2, 1fr); }
  .mg-services         { grid-template-columns: 1fr; }
  .mg-reasons          { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .mg-section    { padding: 72px 0; }
  .mg-problems   { grid-template-columns: repeat(2, 1fr); }
  .mg-steps      { flex-direction: column; }
  .mg-step__connector { transform: rotate(90deg); margin: -4px auto; }
  .mg-stats__list { flex-wrap: wrap; }
  .mg-stats__item { flex: 1 0 50%; }
  .mg-stats__sep  { display: none; }
  .mg-targets     { grid-template-columns: 1fr; max-width: 360px; }
  .mg-reasons     { grid-template-columns: 1fr; }
  .mg-hero__actions { flex-direction: column; align-items: flex-start; }
  .mg-cta__btns  { flex-direction: column; align-items: center; }
  .mg-articles   { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .mg-problems   { grid-template-columns: 1fr; }
  .mg-cats       { grid-template-columns: 1fr; }
  .mg-articles   { grid-template-columns: 1fr; }
  .mg-hero__title { font-size: 28px; }
}
