/*
 * トップページ右下のイベント告知バナー（Redesign HR Forum 2026）。
 * ページを2割スクロールしたら右から滑り込む。閉じたらそのタブでは出さない。
 * トップは ferretone.css を外した自己完結ページなので、ここだけで見た目が完結するように書く。
 */
.rdw-evb {
  --evb-ink: #0f0915;
  --evb-sub: rgb(15 9 21 / 72%);
  --evb-cta: #f14826;
  --evb-cta-hover: #d92400;
  position: fixed;
  right: 16px;
  bottom: var(--evb-bottom, 16px); /* reCAPTCHA のバッジがあるときは JS がその上へ持ち上げる */
  z-index: 40; /* ヘッダー(50)・SPのメニュー(49)より下、本文より上 */
  width: 280px;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", YuGothic, "Noto Sans JP", system-ui, sans-serif;
  line-height: 1.5;
  letter-spacing: 0;
  color: var(--evb-ink);
  -webkit-font-smoothing: antialiased;
  transform: translateX(calc(100% + 32px));
  visibility: hidden;
  /* 参考にした keihi.com と同じ、少し行き過ぎて戻るばねの動き。linear() が無いブラウザは前の行が効く */
  transition: transform 1s cubic-bezier(0.2, 0.9, 0.25, 1.04), visibility 0s linear 1s;
  transition: transform 1s linear(0 0%, 0.006 1.15%, 0.022 2.3%, 0.091 5.1%, 0.18 7.6%, 0.508 16.3%, 0.607 19.325%, 0.691 22.35%, 0.762 25.375%, 0.822 28.4%, 0.872 31.75%, 0.912 35.1%, 0.944 38.9%, 0.968 43%, 0.985 47.6%, 0.996 53.1%, 1.001 58.4%, 1.003 65.1%, 1 100%), visibility 0s linear 1s;
}

.rdw-evb.is-in {
  transform: none;
  visibility: visible;
  transition-delay: 0s;
}

.rdw-evb *,
.rdw-evb *::before,
.rdw-evb *::after {
  box-sizing: border-box;
}

.rdw-evb__card {
  display: block;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgb(24 32 49 / 8%), 0 16px 40px rgb(24 32 49 / 18%);
  color: inherit;
  text-decoration: none;
}

.rdw-evb__strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 34px;
  margin: 0;
  background: var(--evb-cta);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.rdw-evb__strip i {
  width: 1px;
  height: 13px;
  background: rgb(255 255 255 / 70%);
}

.rdw-evb__body {
  position: relative;
  padding: 18px 20px 20px;
  /* イベントページのファーストビューの水面。上を少し白く抜いて文字を読みやすくする */
  background:
    linear-gradient(180deg, rgb(255 255 255 / 55%) 0%, rgb(255 255 255 / 15%) 55%, rgb(255 255 255 / 0%) 100%),
    url("/hrforum2026/img/hero-water.webp") 50% 62% / cover no-repeat,
    #e4e1f2;
}

.rdw-evb__eyebrow {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.rdw-evb__title {
  margin: 6px 0 0;
  font-family: Montserrat, "Hiragino Sans", sans-serif;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0.01em;
  color: var(--evb-ink);
}

.rdw-evb__title span {
  display: block;
}

.rdw-evb__lead {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.rdw-evb__date {
  margin: 14px 0 0;
  font-family: Montserrat, "Hiragino Sans", sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

.rdw-evb__day {
  font-size: 25px;
  letter-spacing: 0.02em;
}

.rdw-evb__dow {
  margin-left: 2px;
  font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 13px;
}

.rdw-evb__time {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.rdw-evb__people {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 0;
}

.rdw-evb__faces {
  display: flex;
  flex: 0 0 auto;
  padding-left: 8px;
}

.rdw-evb__faces img {
  display: block;
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid #fff;
  border-radius: 50%;
  object-fit: cover;
  background: #e4e1f2;
}

.rdw-evb__who {
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--evb-sub);
}

.rdw-evb__who span {
  display: block;
  white-space: nowrap;
}

.rdw-evb__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  margin-top: 16px;
  border-radius: 100px;
  background: var(--evb-cta);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background-color 0.2s;
}

.rdw-evb__btn svg,
.rdw-evb__go svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform 0.2s;
}

.rdw-evb__card:hover .rdw-evb__btn,
.rdw-evb__card:hover .rdw-evb__go {
  background: var(--evb-cta-hover);
}

.rdw-evb__card:hover .rdw-evb__btn svg,
.rdw-evb__card:hover .rdw-evb__go svg {
  transform: translateX(3px);
}

.rdw-evb__card:focus-visible {
  outline: 3px solid #459bdc;
  outline-offset: 3px;
}

/* SPだけで使う部品 */
.rdw-evb__row,
.rdw-evb__go {
  display: none;
}

.rdw-evb__close {
  position: absolute;
  top: 42px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / 80%);
  color: var(--evb-ink);
  cursor: pointer;
  appearance: none;
}

.rdw-evb__close svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.rdw-evb__close:hover {
  background: #fff;
}

.rdw-evb__close:focus-visible {
  outline: 3px solid #459bdc;
  outline-offset: 2px;
}

/* ---- SP：画面を覆わないように、横長の1段に畳む ---------------------------- */
@media (max-width: 600px) {
  .rdw-evb {
    right: 12px;
    bottom: var(--evb-bottom, 12px);
    width: min(360px, calc(100vw - 24px));
  }

  .rdw-evb__strip {
    justify-content: flex-start;
    height: 28px;
    padding: 0 44px 0 14px;
    font-size: 12px;
  }

  .rdw-evb__strip i {
    height: 11px;
  }

  .rdw-evb__body {
    padding: 12px 14px 13px;
    background-position: 50% 70%;
  }

  .rdw-evb__eyebrow,
  .rdw-evb__title,
  .rdw-evb__lead,
  .rdw-evb__date,
  .rdw-evb__people,
  .rdw-evb__btn {
    display: none;
  }

  .rdw-evb__row {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .rdw-evb__row-text {
    flex: 1 1 auto;
    min-width: 0;
  }

  .rdw-evb__row-title {
    display: block;
    font-family: Montserrat, "Hiragino Sans", sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
  }

  .rdw-evb__row-date {
    display: block;
    margin-top: 4px;
    font-family: Montserrat, "Hiragino Sans", sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .rdw-evb__row-date small {
    font-family: "Hiragino Sans", "Noto Sans JP", sans-serif;
    font-size: 11px;
  }

  .rdw-evb__go {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--evb-cta);
    color: #fff;
    transition: background-color 0.2s;
  }

  /* 帯の右端に置く。押せる範囲は 40x40 を確保する */
  .rdw-evb__close {
    top: -6px;
    right: -2px;
    width: 40px;
    height: 40px;
    background: transparent;
    color: #fff;
  }

  .rdw-evb__close::before {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: rgb(255 255 255 / 22%);
  }

  .rdw-evb__close svg {
    position: relative;
  }

  .rdw-evb__close:hover {
    background: transparent;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rdw-evb,
  .rdw-evb.is-in {
    transition: none;
  }
}

@media print {
  .rdw-evb {
    display: none;
  }
}
