/* Source: breadcrumb then content. Visual order: content then breadcrumb. */
.forest-page-layout {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.forest-page-layout__content {
  min-width: 0;
}

/* Retain the column stylesheet's body > nav rule inside the new wrapper. */
@media (max-width: 767px) {
  body:has(.fd-column--single) .forest-page-layout__content > nav {
    position: relative;
    top: auto;
  }
}

#forest-breadcrumbs {
  order: 1;
  position: static;
  float: none;
  clear: both;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 20px 0;
  border: 0;
  border-top: 1px solid #dedbd4;
  background: #f7f6f2;
  box-shadow: none;
  color: #4b4943;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.8;
  text-align: left;
  letter-spacing: normal;
  word-spacing: normal;
}

/* Column articles use a different body font from the legacy site pages. */
body:has(.fd-column) #forest-breadcrumbs {
  font-family: "Noto Sans JP", sans-serif;
}

#forest-breadcrumbs > .container {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

#forest-breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  margin: 0;
  padding: 0 15px;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  list-style: none;
}

#forest-breadcrumbs li {
  display: flex;
  align-items: baseline;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  float: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  text-align: left;
  list-style: none;
}

#forest-breadcrumbs a,
#forest-breadcrumbs span {
  min-width: 0;
  padding: 0;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}

#forest-breadcrumbs a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#forest-breadcrumbs a:hover {
  color: #775326;
}

#forest-breadcrumbs a:focus-visible {
  outline: 2px solid #775326;
  outline-offset: 3px;
}

#forest-breadcrumbs .forest-breadcrumbs__separator {
  flex: 0 0 auto;
  margin: 0 10px;
  color: #77736b;
}

@media (max-width: 640px) {
  #forest-breadcrumbs {
    padding: 16px 0;
    font-size: 12px;
  }

  #forest-breadcrumbs .forest-breadcrumbs__separator {
    margin: 0 8px;
  }
}
