/* Align the WordPress news shell with the Laravel top page header/footer behavior. */
.l-top-header {
  font-size: 10px;
  top: 0;
  margin-top: 0;
}

.l-top-header__footer,
nav.l-menu {
  font-size: 10px;
}

@media screen and (min-width: 1024px) {
  .l-top-header {
    position: static;
  }

  .l-top-header__campaign,
  .l-top-header__trial {
    display: inline-block;
  }

  .l-top-header__footer {
    display: inline-flex;
    position: sticky;
    top: 0;
    z-index: 100;
  }

  .l-top-header__hamburger {
    display: none;
  }

  #NEWSTOPICS.is-single-post .related_post_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
  }

  #NEWSTOPICS.is-single-post .related_post_container li {
    width: auto;
    min-width: 0;
  }

  #NEWSTOPICS.is-single-post .related_post_container a {
    display: block;
    width: 100%;
  }

  #NEWSTOPICS.is-single-post .related_thumb {
    width: 100%;
    max-width: none;
  }

  #NEWSTOPICS.is-single-post .related_title {
    width: auto;
    min-width: 0;
  }
}

@media screen and (min-width: 768px) and (max-width: 1023px) {
  #NEWSTOPICS.is-single-post .related_post_container {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    justify-items: stretch;
  }

  #NEWSTOPICS.is-single-post .related_post_container li {
    width: auto;
    min-width: 0;
  }

  #NEWSTOPICS.is-single-post .related_post_container a {
    display: block;
    width: 100%;
  }

  #NEWSTOPICS.is-single-post .related_thumb {
    width: 100%;
    max-width: none;
  }

  #NEWSTOPICS.is-single-post .related_title {
    width: auto;
    min-width: 0;
  }
}

.l-top-header__upper {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 6.8em;
  padding-right: 7.2em;
}

@media screen and (min-width: 1024px) {
  .l-top-header__upper {
    min-height: auto;
    padding: 2.2em 2.4em 1.6em;
  }
}

.l-top-header__upper--container {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 1.6em;
}

@media screen and (min-width: 1024px) {
  .l-top-header__upper--container {
    width: min(100%, 118rem);
    gap: 2.4em;
  }
}

.l-top-header__logoBox {
  flex: 0 1 auto;
  min-width: 0;
}

.l-top-header__logo {
  width: min(22em, 100vw - 10.5em);
  margin: 1em 0 0.3em 1.5em;
  display: block;
}

@media screen and (min-width: 1024px) {
  .l-top-header__logo {
    width: 32.4em;
    max-width: 100%;
    margin: 0;
  }
}

.l-top-header__campaign {
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
}

.l-top-header__trial {
  flex-shrink: 0;
}

.l-top-header__footer {
  padding: 1.5em 0 0.5em;
  background-color: rgba(255, 255, 255, 0.9411764706);
}

.l-top-header__menu {
  gap: 1.2em;
}

.l-top-header__menu a[class^="l-top-header__menu-link--"] {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0 1.2em 0.75em;
  color: inherit;
  text-decoration: none;
}

.l-top-header__menu--item {
  margin-right: 0;
}

.l-top-header__menu .l-top-header__menu--item--voice {
  margin-right: 0;
}

nav.l-menu {
  margin-top: 0;
  padding-top: 6em;
  opacity: 0;
  -webkit-overflow-scrolling: touch;
}

nav.l-menu ul li a {
  display: flex;
  justify-content: center;
}

nav.l-menu.active {
  transform: translateY(0%);
  opacity: 1;
}

.l-footer__fixed--trial {
  position: fixed;
  right: 1.2em;
  bottom: 1.2em;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  gap: 1em;
  font-size: 10px;
}

.l-footer__fixed--free {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 9em;
  height: 9em;
  border-radius: 50%;
  background-color: #ffa907;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.l-footer__free-text {
  font-size: 1.8em;
  font-weight: 700;
  line-height: 1.3;
}

.l-footer__fixed--scroll {
  color: #bebebe;
  font-size: 4.5em;
  line-height: 1;
}

@media screen and (max-width: 767px) {
  #NEWSTOPICS.is-single-post .related_post_container {
    grid-template-columns: 1fr;
  }

  #NEWSTOPICS.is-single-post .related_post_container a {
    display: flex;
    align-items: center;
  }

  #NEWSTOPICS.is-single-post .related_thumb {
    flex: 0 0 42%;
    max-width: 112px;
  }

  #NEWSTOPICS.is-single-post .related_thumb img,
  #NEWSTOPICS.is-single-post .related_thumb .wp-post-image {
    height: 100%;
    aspect-ratio: 4 / 3;
  }

  #NEWSTOPICS.is-single-post .related_title {
    padding: 12px 14px;
    font-size: .82rem;
    line-height: 1.65;
  }
}
