/* 報道関係者向け 追尾バナー + 取材申込モーダル(トップページ) */

/* ---- バナー(PC: 右側に追尾) ---- */
.press-banner {
  position: fixed;
  z-index: 1000; /* .nav-top(999)より上、Bootstrap のモーダル(1040〜)より下 */
  top: 50%;
  right: 20px;
  width: 216px;
  -webkit-transform: translate3d(0, calc(-50% + var(--press-follow, 0px)), 0);
  transform: translate3d(0, calc(-50% + var(--press-follow, 0px)), 0);
  opacity: 0;
  visibility: hidden;
  transition: opacity .6s ease, visibility .6s;
}
.press-banner.is-ready {
  opacity: 1;
  visibility: visible;
}
.press-banner.is-closed {
  display: none;
}

.press-banner-link {
  display: block;
  padding: 18px 18px 14px;
  background: rgba(14, 14, 16, .92);
  border: 1px solid #ff642b;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
  color: #f5f5f3;
  text-decoration: none;
  transition: background-color .2s ease;
}
.press-banner-link:hover,
.press-banner-link:focus {
  background: #1c1c20;
  color: #fff;
  text-decoration: none;
}
.press-banner-link:focus {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.press-banner-label {
  display: inline-block;
  padding: 0 8px;
  background: #ff642b;
  color: #0e0e0e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.8;
  letter-spacing: .2em;
}
.press-banner-body {
  display: block;
  margin-top: 10px;
}
.press-banner-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
}
.press-banner-sub {
  display: block;
  margin-top: 2px;
  color: #bdbdc2;
  font-size: 12px;
  line-height: 1.6;
}
.press-banner-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #ff642b;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}
.press-banner-cta::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.press-banner-link:hover .press-banner-cta::after {
  -webkit-transform: translateX(3px) rotate(45deg);
  transform: translateX(3px) rotate(45deg);
}

.press-banner-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: #0e0e0e;
  color: #ccc;
  font-size: 16px;
  line-height: 26px;
  text-align: center;
  cursor: pointer;
}
.press-banner-close:hover,
.press-banner-close:focus {
  border-color: #fff;
  color: #fff;
}

@media (prefers-reduced-motion: reduce) {
  .press-banner,
  .press-banner-cta::after {
    transition: none;
  }
}

/* ---- スマホ・タブレット: 画面下部に常時固定 ---- */
@media (max-width: 991px) {
  .press-banner,
  .press-banner.is-closed {
    display: block;
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: auto;
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-transform: none;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: #0e0e0e;
    border-top: 2px solid #ff642b;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, .4);
  }
  .press-banner-close {
    display: none;
  }
  .press-banner-link {
    display: flex;
    align-items: center;
    height: 60px;
    padding: 0 12px 0 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .press-banner-link:hover,
  .press-banner-link:focus {
    background: transparent;
  }
  .press-banner-link:focus {
    outline-offset: -3px;
  }
  .press-banner-label {
    flex: none;
    margin-right: 12px;
  }
  .press-banner-body {
    flex: 1;
    min-width: 0;
    margin: 0;
  }
  .press-banner-title {
    font-size: 14px;
    line-height: 1.4;
  }
  .press-banner-sub {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .press-banner-cta {
    flex: none;
    margin: 0 0 0 10px;
    padding: 7px 14px;
    border: 0;
    border-radius: 999px;
    background: #ff642b;
    color: #0e0e0e;
  }
  .press-banner-cta::after {
    width: 7px;
    height: 7px;
    margin-left: 8px;
  }

  /* バーの分だけ既存の要素を避ける */
  body.has-press-bar {
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
  }
  body.has-press-bar .nav-top {
    bottom: calc(74px + env(safe-area-inset-bottom));
  }
  body.has-press-bar .uai-news-posi .uai-news-list {
    bottom: calc(62px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 359px) {
  .press-banner-sub {
    display: none;
  }
}

/* ---- 取材申込モーダル ---- */
.press-modal .modal-content {
  background: #0e0e10;
  border: 1px solid #2a2a30;
  border-radius: 4px;
  color: #f5f5f3;
}
.press-modal .modal-header {
  padding: 16px 20px;
  border-bottom-color: #2a2a30;
}
.press-modal .modal-title {
  color: #f5f5f3;
  font-weight: 700;
}
.press-modal .modal-title small {
  margin-left: 8px;
  color: #a3a3aa;
  letter-spacing: .1em;
}
.press-modal .close {
  color: #fff;
  font-size: 30px;
  opacity: .8;
  text-shadow: none;
}
.press-modal .close:hover,
.press-modal .close:focus {
  color: #fff;
  opacity: 1;
}
.press-modal .modal-body {
  position: relative;
  padding: 0;
}
.press-modal .modal-body::before {
  content: "読み込み中…";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  color: #a3a3aa;
  text-align: center;
}
.press-modal-frame {
  position: relative;
  display: block;
  width: 100%;
  height: 560px;
  border: 0;
  background: transparent;
}
.press-modal .modal-footer {
  padding: 16px 20px;
  border-top-color: #2a2a30;
  text-align: center;
}
.press-modal-link {
  color: #ff642b;
  font-weight: 700;
}
.press-modal-link:hover,
.press-modal-link:focus {
  color: #ff8a5c;
}
@media (max-width: 767px) {
  .press-modal .modal-dialog {
    margin: 10px;
  }
  .press-modal .modal-footer {
    font-size: 13px;
  }
}
