/* OKITIVE floating banner v3. Official logo and background artwork. */
.okitive-banner {
  position: fixed;
  z-index: 90;
  right: max(24px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  width: 280px;
  max-width: calc(100vw - 48px);
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  animation: okitive-enter .4s ease-out both;
}
.okitive-banner[hidden] { display: none !important; }
.okitive-banner__link {
  display: block;
  overflow: hidden;
  border: 1px solid #3aafb4;
  border-radius: 6px;
  background: #5cdbe0 url("../assets/okitive-background.jpg") center / cover;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 8px 32px #00000021;
  transition: box-shadow .2s ease;
}
.okitive-banner__logo {
  display: block;
  width: 100%;
  max-width: none;
  height: 120px;
  padding: 16px 48px 12px;
  object-fit: contain;
  background: transparent;
}
.okitive-banner__body { display: block; padding: 18px 20px 20px; border-top: 1px solid #17484c26; }
.okitive-banner__eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 10px;
  color: #234448;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .06em;
  line-height: 1.5;
}
.okitive-banner__eyebrow::before { width: 16px; height: 3px; background: #234448; content: ""; }
.okitive-banner__title { display: block; margin: 0; font-size: 18px; font-weight: 700; letter-spacing: 0; line-height: 1.8; }
.okitive-banner__description { display: block; margin: 10px 0 0; color: #234448; font-size: 12px; font-weight: 400; line-height: 1.9; }
.okitive-banner__cta {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 20px;
  border-top: 1px solid #17484c26;
  background: #ffffff47;
  color: #222;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .03em;
  line-height: 1.6;
  transition: background .2s ease;
}
.okitive-banner__cta svg { width: 17px; height: 17px; flex: none; }
.okitive-banner__close {
  position: absolute;
  z-index: 1;
  top: -16px;
  right: -12px;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid #dedede;
  border-radius: 50%;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px #00000014;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.okitive-banner__close svg { width: 17px; height: 17px; }
.okitive-banner__link:focus-visible, .okitive-banner__close:focus-visible { outline: 3px solid #175aa8; outline-offset: 4px; }
@media (hover: hover) {
  .okitive-banner__link:hover { box-shadow: 0 12px 38px #00000030; }
  .okitive-banner__link:hover .okitive-banner__cta { background: #ffffff73; }
  .okitive-banner__close:hover { background: #f2f2f2; }
}
@media (max-width: 700px), (max-height: 520px) {
  .okitive-banner { right: max(18px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); width: 216px; max-width: calc(100vw - 36px); }
  .okitive-banner__logo { height: 92px; padding: 12px 39px; }
  .okitive-banner__body { padding: 13px 16px 15px; }
  .okitive-banner__eyebrow { margin-bottom: 8px; font-size: 9px; }
  .okitive-banner__title { font-size: 14px; line-height: 1.8; }
  .okitive-banner__description { margin-top: 8px; font-size: 11px; line-height: 1.8; }
  .okitive-banner__cta { min-height: 44px; padding: 10px 16px; font-size: 11px; }
  .okitive-banner__close { top: -15px; right: -10px; }
}
@media (max-height: 380px) and (orientation: landscape) {
  .okitive-banner__logo { height: 66px; padding: 7px 58px; }
  .okitive-banner__body { padding: 10px 16px; }
  .okitive-banner__eyebrow, .okitive-banner__description { display: none; }
}
@keyframes okitive-enter { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .okitive-banner { animation: none; } .okitive-banner__link, .okitive-banner__cta { transition: none; } }
@media print { .okitive-banner { display: none !important; } }

/* OKITIVE compact mobile patch START */
.okitive-banner__title-desktop {
  display: block;
}
.okitive-banner__title-mobile {
  display: none;
}
.okitive-banner__cta {
  justify-content: center;
  text-align: center;
}

@media (max-width: 700px) {
  .okitive-banner {
    width: 132px;
    max-width: calc(100vw - 36px);
    right: max(18px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
  }
  .okitive-banner__logo {
    height: 58px;
    padding: 7px 22px;
  }
  .okitive-banner__body {
    padding: 8px 10px 10px;
  }
  .okitive-banner__eyebrow,
  .okitive-banner__description,
  .okitive-banner__title-desktop {
    display: none;
  }
  .okitive-banner__title-mobile {
    display: block;
  }
  .okitive-banner__title {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: 0;
  }
  .okitive-banner__cta {
    min-height: 32px;
    padding: 6px 8px;
    font-size: 10.5px;
    line-height: 1.5;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .okitive-banner__close {
    width: 36px;
    height: 36px;
    top: -13px;
    right: -10px;
  }
  .okitive-banner__close::after {
    content: "";
    position: absolute;
    inset: -4px;
  }
  .okitive-banner__close svg {
    width: 14px;
    height: 14px;
  }
}
/* OKITIVE compact mobile patch END */

/* OKITIVE small close START */
.okitive-banner__close {
  width: 32px;
  height: 32px;
  top: -12px;
  right: -10px;
}
.okitive-banner__close svg {
  width: 14px;
  height: 14px;
}
.okitive-banner__close::after {
  content: "";
  position: absolute;
  inset: -6px;
}
@media (max-width: 700px) {
  .okitive-banner__close {
    width: 26px;
    height: 26px;
    top: -10px;
    right: -8px;
  }
  .okitive-banner__close svg {
    width: 12px;
    height: 12px;
  }
  .okitive-banner__close::after {
    inset: -9px;
  }
}
/* OKITIVE small close END */