/* ==========================================================================
   全ページ共通（inc/site-enhance.php で読み込み）
   ========================================================================== */

/* --------------------------------------------------------------------------
   ヘッダー固定：PC（1025px 以上）も全ページで固定。高さは 119px
   ※ 1024px 以下は style.css 側で元から固定
   -------------------------------------------------------------------------- */
@media screen and (min-width: 1025px) {
  header.l-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9;
    background-color: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  }
  .admin-bar header.l-header {
    top: 32px;
  }
  body {
    padding-top: 119px;
  }
  body.home .top-hero,
  body.admin-bar.home .top-hero {
    margin-top: 0;
  }
  /* 目次やページ内リンクで飛んだとき、見出しがヘッダーの下に隠れないように */
  [id] {
    scroll-margin-top: 140px;
  }
}
@media screen and (max-width: 1024px) {
  [id] {
    scroll-margin-top: 90px;
  }
}

/* --------------------------------------------------------------------------
   TOPへ戻るボタン（全ページ・右下）
   reCAPTCHA バッジ（右下、下から14px・高さ60px）と重ならないよう、その上に配置
   -------------------------------------------------------------------------- */
.top-pagetop {
  position: fixed;
  right: 16px;
  bottom: 92px;
  z-index: 8;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: #8BC15F;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.top-pagetop::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 55%;
  width: 12px;
  height: 12px;
  border-top: 3px solid #fff;
  border-left: 3px solid #fff;
  transform: translate(-50%, -50%) rotate(45deg);
}
.top-pagetop.is-visible {
  opacity: 1;
  visibility: visible;
}
.top-pagetop:hover {
  opacity: 0.8;
}
@media screen and (max-width: 767px) {
  .top-pagetop {
    width: 44px;
    height: 44px;
    right: 12px;
    bottom: 88px;
  }
}

/* --------------------------------------------------------------------------
   公開日・最終更新日
   -------------------------------------------------------------------------- */
.oki-date {
  display: inline-block;
  margin-right: 0.6em;
  white-space: nowrap;
}
.oki-date--mod {
  color: #20508B;
}
.oki-post-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.2rem;
  margin: 0.75rem 0 1.25rem;
  font-size: 0.9rem;
  color: #5b6773;
}
.oki-post-dates__item time {
  color: #1f2a37;
  font-weight: 500;
}
