/* Global theme overrides, migrated from inline wp_head output. */
body {
  --nlr-header-bg: #fff;
  --nlr-header-border: #d9d9d9;
  --nlr-header-text: #160d10;
  --nlr-header-muted: #34252a;
  --nlr-header-accent: #c00024;
}

body .wp-site-blocks > header.wp-block-template-part,
body #header,
body .header-container,
body #site-header,
body #header-container {
  background: var(--nlr-header-bg) !important;
  border-bottom: 1px solid var(--nlr-header-border) !important;
  box-shadow: none !important;
  margin: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
}

body .wp-site-blocks > header.wp-block-template-part > *,
body #header > *,
body .header-container > *,
body #site-header > *,
body #header-container > * {
  box-sizing: border-box !important;
}

body .wp-site-blocks > header.wp-block-template-part .wp-block-group,
body .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignwide,
body .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignfull {
  align-items: center !important;
  display: flex !important;
  gap: clamp(14px, 2.4vw, 28px) !important;
  justify-content: space-between !important;
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: 1120px !important;
  min-height: 68px !important;
  padding: 12px 18px !important;
  width: min(100%, 1120px) !important;
}

body .wp-site-blocks > header.wp-block-template-part::before,
body #header::before,
body .header-container::before,
body #site-header::before,
body #header-container::before {
  display: none !important;
}

body .wp-block-site-title,
body #site-name,
body .site-name,
body .header-logo {
  line-height: 1.2 !important;
  margin: 0 !important;
}

body .wp-block-site-title a,
body #site-name a,
body .site-name a,
body .header-logo a {
  color: #9f001e !important;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif !important;
  font-size: clamp(1.18rem, 3vw, 1.72rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
  line-height: 1.18 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body #site-catch,
body .tagline,
body .header-description,
body .site-description,
body .wp-block-site-tagline {
  color: #3b252b !important;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif !important;
  font-size: clamp(.84rem, 2.4vw, 1rem) !important;
  font-weight: 800 !important;
  line-height: 1.45 !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

body .entry-title,
body .article-title,
body .entry-title.entry-header-title,
body h1.entry-title,
body .wp-block-post-title,
body .nlr-report-title {
  color: #8f001b !important;
  text-shadow: none !important;
}

body .entry-header,
body .article-header {
  background:
    linear-gradient(135deg, #fff 0%, #fff6e8 64%, #fdf9f3 100%) !important;
  border: 1px solid rgba(143, 0, 27, .16) !important;
}

body .entry-header .post-date,
body .article-header .post-date,
body .entry-header .entry-date,
body .article-header .entry-date,
body .entry-header .post-update,
body .article-header .post-update,
body .entry-header .post-meta,
body .article-header .post-meta {
  color: #5e3d45 !important;
}

body .wp-block-site-title a::after {
  display: none !important;
}

body .wp-block-navigation,
body #navi,
body .navi {
  margin: 0 !important;
}

body .wp-block-navigation .wp-block-navigation__container,
body #navi .menu,
body .navi .menu {
  align-items: center !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: clamp(8px, 1.8vw, 18px) !important;
  justify-content: flex-end !important;
}

body .wp-block-navigation .wp-block-navigation-item__content,
body #navi .menu-item a,
body .navi .menu-item a {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  color: var(--nlr-header-muted) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Yu Gothic", YuGothic, Meiryo, sans-serif !important;
  font-size: clamp(.82rem, 1.7vw, .96rem) !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  padding: 8px 0 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

body .wp-block-navigation .wp-block-navigation-item__content:hover,
body #navi .menu-item a:hover,
body .navi .menu-item a:hover {
  color: var(--nlr-header-accent) !important;
}

body .wp-block-navigation__submenu-icon {
  color: var(--nlr-header-muted) !important;
  height: .65em !important;
  margin-left: .28em !important;
  width: .65em !important;
}

@media (max-width: 782px) {
  body .wp-site-blocks > header.wp-block-template-part .wp-block-group,
  body .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignwide,
  body .wp-site-blocks > header.wp-block-template-part .wp-block-group.alignfull {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 10px !important;
    min-height: 0 !important;
    padding: 12px !important;
  }

  body .wp-block-site-title a,
  body #site-name a,
  body .site-name a,
  body .header-logo a {
    font-size: 1.32rem !important;
  }

  body #navi,
  body #navi-in,
  body .navi-in {
    max-width: 100% !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scrollbar-width: none !important;
    width: 100% !important;
  }

  body #navi::-webkit-scrollbar,
  body #navi-in::-webkit-scrollbar,
  body .navi-in::-webkit-scrollbar {
    display: none !important;
  }

  body .wp-block-navigation .wp-block-navigation__container,
  body #navi .menu,
  body .navi .menu {
    gap: 6px !important;
    justify-content: flex-start !important;
    max-width: none !important;
    min-width: max-content !important;
    width: max-content !important;
  }

  body .wp-block-navigation .wp-block-navigation-item,
  body #navi .menu-item,
  body .navi .menu-item {
    flex: 0 0 auto !important;
    max-width: none !important;
    min-width: max-content !important;
    width: auto !important;
  }

  body .wp-block-navigation .wp-block-navigation-item__content,
  body #navi .menu-item a,
  body .navi .menu-item a {
    font-size: .84rem !important;
    justify-content: center !important;
    padding: 4px 6px !important;
    width: auto !important;
  }
}
