:root {
  --fmcxb-gold: #d4a24e;
  --fmcxb-gold-light: #fffbf0;
  --fmcxb-navy: #1b2a4a;
  --fmcxb-navy-dark: #0f1d36;
  --fmcxb-text: #1a1a1a;
  --fmcxb-body: #555555;
  --fmcxb-muted: #777777;
  --fmcxb-divider: #e0e0e0;
  --fmcxb-light: #f8f9fa;
}

.fmcxb-banner {
  position: relative;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 820px;
  margin: 28px auto;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--fmcxb-divider);
  border-left: 4px solid var(--fmcxb-gold);
  border-radius: 10px;
  background: #ffffff;
  color: var(--fmcxb-text);
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  box-sizing: border-box;
}

.fmcxb-banner *,
.fmcxb-banner *::before,
.fmcxb-banner *::after {
  box-sizing: border-box;
}

.fmcxb-banner__visual {
  display: flex;
  min-height: 112px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  border-radius: 8px;
  background: var(--fmcxb-navy);
  color: #ffffff;
  text-align: center;
}

.fmcxb-banner__visual-mark {
  display: inline-flex;
  min-width: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--fmcxb-gold);
  border-radius: 50%;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.fmcxb-banner__visual-sub {
  margin-top: 8px;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.fmcxb-banner__content {
  min-width: 0;
}

.fmcxb-banner__eyebrow,
.fmcxb-banner__title,
.fmcxb-banner__body,
.fmcxb-banner__disclosure {
  margin: 0 !important;
}

.fmcxb-banner__eyebrow {
  color: #8a681f;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.fmcxb-banner__title {
  margin-top: 3px !important;
  color: var(--fmcxb-navy) !important;
  font-size: 19px !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
}

.fmcxb-banner__body {
  margin-top: 6px !important;
  color: var(--fmcxb-body) !important;
  font-size: 14px !important;
  line-height: 1.75 !important;
}

.fmcxb-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.fmcxb-banner__primary,
.fmcxb-banner__secondary {
  display: inline-flex !important;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 13px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.fmcxb-banner__primary {
  padding: 9px 18px;
  border: 1px solid var(--fmcxb-gold);
  background: var(--fmcxb-gold);
  color: var(--fmcxb-navy-dark) !important;
}

.fmcxb-banner__secondary {
  min-height: auto;
  padding: 7px 2px;
  border: 0;
  background: transparent;
  color: var(--fmcxb-navy) !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
}

.fmcxb-banner__primary:hover,
.fmcxb-banner__secondary:hover {
  opacity: 0.86;
}

.fmcxb-banner__primary:hover {
  transform: translateY(-1px);
}

.fmcxb-banner__primary:focus-visible,
.fmcxb-banner__secondary:focus-visible,
.fmcxb-banner__close:focus-visible {
  outline: 2px solid var(--fmcxb-navy);
  outline-offset: 3px;
}

.fmcxb-banner__disclosure {
  margin-top: 9px !important;
  color: var(--fmcxb-muted) !important;
  font-size: 10px !important;
  line-height: 1.55 !important;
}

.fmcxb-banner--diagnosis,
.fmcxb-banner--problem {
  background: var(--fmcxb-gold-light);
}

.fmcxb-banner--diagnosis .fmcxb-banner__visual,
.fmcxb-banner--problem .fmcxb-banner__visual {
  background: var(--fmcxb-navy-dark);
}

.fmcxb-banner--condition .fmcxb-banner__visual {
  background: #2a3c5e;
}

.fmcxb-banner--company {
  border-left-color: var(--fmcxb-navy);
}

.fmcxb-banner--company .fmcxb-banner__visual {
  background: var(--fmcxb-gold-light);
  color: var(--fmcxb-navy);
}

.fmcxb-banner--company .fmcxb-banner__visual-mark {
  border-color: var(--fmcxb-gold);
  color: var(--fmcxb-navy);
}

.fmcxb-banner--company .fmcxb-banner__visual-sub {
  color: var(--fmcxb-navy);
}

.fmcxb-banner--quiet {
  grid-template-columns: 84px minmax(0, 1fr);
  border-left-width: 1px;
  border-radius: 4px;
  background: #ffffff;
}

.fmcxb-banner--quiet .fmcxb-banner__visual {
  min-height: 84px;
  background: var(--fmcxb-light);
  color: var(--fmcxb-navy);
}

.fmcxb-banner--quiet .fmcxb-banner__visual-mark {
  min-width: 48px;
  min-height: 48px;
  color: var(--fmcxb-navy);
  font-size: 14px;
}

.fmcxb-banner--quiet .fmcxb-banner__visual-sub {
  display: none;
}

.fmcxb-banner--slidein {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 10020;
  width: min(390px, calc(100vw - 48px));
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  margin: 0;
  padding: 16px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(15, 29, 54, 0.14);
  opacity: 0;
  transform: translateY(18px);
  visibility: hidden;
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.fmcxb-banner--slidein.is-visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.fmcxb-banner--slidein .fmcxb-banner__visual {
  min-height: 78px;
}

.fmcxb-banner--slidein .fmcxb-banner__visual-mark {
  min-width: 46px;
  min-height: 46px;
  font-size: 13px;
}

.fmcxb-banner--slidein .fmcxb-banner__title {
  padding-right: 22px;
  font-size: 16px !important;
}

.fmcxb-banner--slidein .fmcxb-banner__body {
  font-size: 12px !important;
}

.fmcxb-banner--slidein .fmcxb-banner__actions {
  align-items: flex-start;
  flex-direction: column;
  gap: 3px;
  margin-top: 10px;
}

.fmcxb-banner--slidein .fmcxb-banner__primary {
  width: 100%;
}

.fmcxb-banner__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  color: #666666;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}

html.fmcxb-popup-open {
  overflow: hidden;
}

.fmcxb-popup-shell {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 220ms ease, visibility 220ms ease;
}

.fmcxb-popup-shell.is-visible {
  opacity: 1;
  visibility: visible;
}

.fmcxb-popup-shell__backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(8, 16, 30, 0.66);
  cursor: default;
}

.fmcxb-image-popup {
  position: relative;
  width: min(620px, 92vw, 88vh);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 4.4%;
  background: var(--fmcxb-navy-dark);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
  transform: translateY(18px) scale(0.98);
  transition: transform 220ms ease;
}

.fmcxb-popup-shell.is-visible .fmcxb-image-popup {
  transform: translateY(0) scale(1);
}

.fmcxb-image-popup__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.fmcxb-image-popup__close,
.fmcxb-image-popup__primary,
.fmcxb-image-popup__secondary {
  position: absolute;
  z-index: 2;
  display: block;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.fmcxb-image-popup__close {
  top: 2.9%;
  right: 2.9%;
  width: 7.8%;
  height: 7.8%;
  padding: 0;
  border-radius: 50%;
}

.fmcxb-image-popup__primary {
  top: 77.1%;
  left: 9.1%;
  width: 81.8%;
  height: 9.4%;
}

.fmcxb-image-popup__secondary {
  top: 88.6%;
  left: 28.5%;
  width: 43%;
  height: 6.2%;
}

.fmcxb-image-popup__close:focus-visible,
.fmcxb-image-popup__primary:focus-visible,
.fmcxb-image-popup__secondary:focus-visible,
.fmcxb-popup-shell__backdrop:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: -3px;
}

@media (max-width: 640px) {
  .fmcxb-banner {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 12px;
    margin: 22px auto;
    padding: 15px;
  }

  .fmcxb-banner__visual {
    min-height: 66px;
  }

  .fmcxb-banner__visual-mark {
    min-width: 43px;
    min-height: 43px;
    font-size: 12px;
  }

  .fmcxb-banner__visual-sub {
    display: none;
  }

  .fmcxb-banner__title {
    font-size: 16px !important;
  }

  .fmcxb-banner__body {
    font-size: 13px !important;
  }

  .fmcxb-banner__actions {
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
  }

  .fmcxb-banner__primary,
  .fmcxb-banner__secondary {
    width: 100%;
  }

  .fmcxb-banner__secondary {
    min-height: 36px;
  }

  .fmcxb-banner--slidein {
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    margin: 0;
    padding: 14px;
  }

  .fmcxb-banner--slidein .fmcxb-banner__visual {
    display: none;
  }

  .fmcxb-banner--slidein {
    grid-template-columns: 1fr;
  }

  .fmcxb-popup-shell {
    padding: 12px;
  }

  .fmcxb-image-popup {
    width: min(94vw, 82vh);
    box-shadow: 0 14px 44px rgba(0, 0, 0, 0.4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fmcxb-banner,
  .fmcxb-banner__primary,
  .fmcxb-banner__secondary {
    transition: none !important;
  }

  .fmcxb-popup-shell,
  .fmcxb-image-popup {
    transition: none !important;
  }
}
