:root {
  color-scheme: light;
  --mie-navy: #07386f;
  --mie-blue: #0866c6;
  --mie-ice: #eef6ff;
  --mie-line: #c9ddf3;
  --mie-ink: #17283a;
  --mie-muted: #5d6f80;
  --mie-orange: #e84a24;
  --mie-green: #12824f;
  --mie-paper: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.mie-hub-page {
  margin: 0;
  color: var(--mie-ink);
  background: #f5f8fc;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  line-height: 1.85;
  letter-spacing: 0;
}
.mie-hub-page a { color: #065daf; }
.mie-header { min-height: 76px; background: #fff; border-bottom: 1px solid #dce7f2; }
.mie-header-inner {
  width: min(1120px, calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.mie-brand { display: flex; flex-direction: column; color: var(--mie-navy); text-decoration: none; line-height: 1.25; }
.mie-brand span { font-size: 11px; font-weight: 700; }
.mie-brand strong { font-size: 23px; font-weight: 900; }
.mie-header-contact { display: flex; align-items: center; gap: 14px; }
.mie-header-phone { display: flex; flex-direction: column; color: var(--mie-navy); font-size: 22px; font-weight: 900; text-align: right; text-decoration: none; line-height: 1.2; }
.mie-header-phone small { color: var(--mie-muted); font-size: 11px; font-weight: 600; }
.mie-header-cta { padding: 12px 18px; color: #fff !important; background: var(--mie-orange); border-bottom: 4px solid #a92f13; font-weight: 800; text-decoration: none; }
.mie-breadcrumb { background: #fff; border-bottom: 1px solid #e4edf6; }
.mie-breadcrumb ol { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 9px 0; display: flex; gap: 8px; list-style: none; color: var(--mie-muted); font-size: 12px; }
.mie-breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #91a1b1; }
.mie-hero {
  min-height: 430px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background-image: linear-gradient(90deg, rgba(3, 35, 73, .95), rgba(3, 54, 109, .72)), image-set(url("/hero-bg.avif") type("image/avif"), url("/hero-bg.webp") type("image/webp"));
  background-size: cover;
  background-position: center 58%;
}
.mie-hero-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 70px 0 50px; }
.mie-eyebrow { display: inline-flex; padding: 4px 10px; border: 1px solid rgba(255,255,255,.55); font-size: 13px; font-weight: 800; }
.mie-hero h1 { max-width: 900px; margin: 17px 0 14px; font-size: 48px; line-height: 1.3; }
.mie-hero p { max-width: 770px; margin: 0; font-size: 17px; }
.mie-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.mie-hero-tags span { padding: 6px 11px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); font-size: 13px; font-weight: 700; }
.mie-page-nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--mie-line); backdrop-filter: blur(8px); }
.mie-page-nav > div { width: min(1120px, calc(100% - 40px)); margin: 0 auto; display: flex; gap: 24px; overflow-x: auto; scrollbar-width: thin; }
.mie-page-nav a { flex: 0 0 auto; padding: 12px 0; color: var(--mie-navy); font-size: 14px; font-weight: 800; text-decoration: none; }
.mie-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.mie-section { padding: 66px 0; border-bottom: 1px solid #dfe9f3; scroll-margin-top: 58px; }
.mie-section-kicker { color: var(--mie-orange); font-size: 13px; font-weight: 900; }
.mie-section h2, .mie-cta h2 { margin: 4px 0 20px; color: var(--mie-navy); font-size: 36px; line-height: 1.45; }
.mie-section h3 { margin: 27px 0 8px; color: var(--mie-navy); font-size: 20px; line-height: 1.5; }
.mie-lead { max-width: 860px; color: #34495e; font-size: 17px; }
.mie-route-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 26px; }
.mie-route-item { min-height: 160px; padding: 20px; background: #fff; border: 1px solid var(--mie-line); }
.mie-route-item h3 { margin: 0 0 2px; font-size: 19px; }
.mie-route-item small { display: block; color: var(--mie-muted); }
.mie-route-item p { margin-bottom: 0; }
.mie-route-item.is-primary { border-top: 4px solid var(--mie-green); }
.mie-route-item.is-conditional { border-top: 4px solid #e1a115; }
.mie-route-item.is-outside { border-top: 4px solid #7b8b9a; }
.mie-decision-band { display: grid; grid-template-columns: 1fr 1fr; margin-top: 28px; background: #fff; border: 1px solid var(--mie-line); }
.mie-decision-band article { padding: 24px; }
.mie-decision-band article + article { border-left: 1px solid var(--mie-line); }
.mie-decision-band h3 { margin-top: 0; }
.mie-table-wrap { position: relative; overflow-x: auto; margin-top: 26px; background: #fff; border: 1px solid var(--mie-line); scrollbar-color: var(--mie-blue) #e7eff8; }
.mie-table-wrap table { width: 100%; min-width: 760px; border-collapse: collapse; }
.mie-table-wrap th, .mie-table-wrap td { padding: 15px 16px; border-bottom: 1px solid #dce8f4; text-align: left; vertical-align: top; }
.mie-table-wrap th { color: var(--mie-navy); background: #eaf4ff; }
.mie-notice { padding: 22px 24px; background: #fff6ee; border-left: 5px solid var(--mie-orange); }
.mie-notice strong { color: #9d3712; }
.mie-source-list { margin: 0; padding-left: 1.25em; }
.mie-source-list li { margin: 9px 0; }
.mie-faq-list { display: grid; gap: 10px; margin-top: 26px; }
.mie-faq-list details { background: #fff; border: 1px solid var(--mie-line); }
.mie-faq-list summary { position: relative; padding: 18px 54px 18px 20px; color: var(--mie-navy); cursor: pointer; font-weight: 800; list-style: none; }
.mie-faq-list summary::-webkit-details-marker { display: none; }
.mie-faq-list summary::after { position: absolute; top: 50%; right: 20px; content: "+"; color: var(--mie-blue); font-size: 24px; line-height: 1; transform: translateY(-50%); }
.mie-faq-list details[open] summary::after { content: "-"; }
.mie-faq-list p { margin: 0; padding: 0 20px 20px; }
.mie-cta { margin: 54px 0 76px; padding: 38px; color: #fff; background: var(--mie-navy); text-align: center; }
.mie-cta h2 { color: #fff; }
.mie-cta > p { max-width: 800px; margin: 0 auto; }
.mie-cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 22px; }
.mie-cta-actions a { min-width: 220px; padding: 13px 18px; color: #fff; border-bottom: 5px solid rgba(0,0,0,.32); font-weight: 900; text-decoration: none; }
.mie-cta-actions .is-line { background: #0b9f52; }
.mie-cta-actions .is-phone { background: #1769b0; }
.mie-cta-actions .is-form { background: var(--mie-orange); }
.mie-cta .mie-cta-note { margin-top: 18px; color: #dbe8f5; font-size: 12px; }
.mie-footer { padding: 34px 20px 44px; color: #b9c7d7; background: #071a31; text-align: center; }
.mie-footer > div { width: min(1120px, 100%); margin: 0 auto; }
.mie-footer strong, .mie-footer span, .mie-footer small { display: block; }
.mie-footer strong { color: #fff; font-size: 20px; }
.mie-footer nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 18px 0; }
.mie-footer a { color: #d9eaff; }
.mie-mobile-cta { display: none; }

@media (max-width: 780px) {
  body.mie-hub-page { padding-bottom: 68px; }
  .mie-header-inner { width: min(100% - 28px, 1120px); min-height: 64px; }
  .mie-brand strong { font-size: 18px; }
  .mie-brand span { font-size: 10px; }
  .mie-header-phone { display: none; }
  .mie-header-cta { padding: 9px 12px; font-size: 13px; }
  .mie-breadcrumb ol, .mie-hero-inner, .mie-page-nav > div, .mie-main { width: min(100% - 28px, 1120px); }
  .mie-hero { min-height: 500px; background-position: center; }
  .mie-hero-inner { padding: 50px 0 34px; }
  .mie-hero h1 { font-size: 34px; }
  .mie-hero p { font-size: 15px; }
  .mie-section { padding: 46px 0; }
  .mie-section h2, .mie-cta h2 { font-size: 27px; }
  .mie-route-grid, .mie-decision-band { grid-template-columns: 1fr; }
  .mie-route-item { min-height: 0; }
  .mie-decision-band article + article { border-top: 1px solid var(--mie-line); border-left: 0; }
  .mie-cta { padding: 28px 18px; }
  .mie-cta-actions a { width: 100%; min-width: 0; }
  .mie-mobile-cta { position: fixed; right: 0; bottom: 0; left: 0; z-index: 20; height: 68px; display: grid; grid-template-columns: repeat(3, 1fr); box-shadow: 0 -4px 18px rgba(0,0,0,.16); }
  .mie-mobile-cta a { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; color: #fff; text-decoration: none; line-height: 1.2; }
  .mie-mobile-cta .is-phone { background: #1769b0; }
  .mie-mobile-cta .is-line { background: #0b9f52; }
  .mie-mobile-cta .is-form { background: #e64d43; }
  .mie-mobile-cta strong { font-size: 15px; }
  .mie-mobile-cta small { max-width: 100%; overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 380px) {
  .mie-hero h1 { font-size: 31px; }
  .mie-header-cta { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
