/*記事一覧*/
#blog__mv .mv__bg {
  position: relative;
  background: none;
  display: flex;
  justify-content: center;
  max-height: 100%;
  overflow: hidden;
}
#blog__mv .mv__bg img {
  position: absolute;
  z-index: -1;
  top: 50%;
  transform: translateY(-50%);
}
#blog__mv.blog__mv__event-blog .mv__bg img {
  transform: unset;
  top: 0;
}
#blog__mv.blog__mv__employee-blog .mv__bg img {
  top: 43%;
}
/* @media screen and (max-width: 768px) {
  #blog__mv .mv__bg img,
  #blog__mv.blog__mv__event-blog .mv__bg img {
    position: static;
    height: 100%;
    width: auto;
    max-width: inherit;
    transform: unset;
  }
  #blog__mv.blog__mv__ceo-blog .mv__bg img {
    transform: translateX(-10%);
  }
} */
@media screen and (min-width: 768px) {
  #blog__mv .mv__bg.blog-list-mv__bg {
    height: 400px;
  }
  #blog__mv .mv__bg {
    height: 220px;
  }
  #blog__mv .mv__box {
    max-width: 38.5rem;
    padding: 2.5rem;
    margin-top: -9rem;
  }
}

#blog__container {
  width: 100%;
  padding: 40px 30px 10px 30px;
  padding: 2.5rem 1.875rem 0.625rem 1.875rem;
}
@media screen and (min-width: 768px) {
  #blog__container {
    max-width: 100%;
    padding: 5rem 7.5rem 0rem 7.5rem;
    margin: 0 auto;
  }
}

@media screen and (min-width: 768px) {
  .blog__list {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    margin: auto;
    align-items: stretch;
  }
}
.blog__list > li {
  width: 100%;
  margin-bottom: 24px;
}
.blog__list > li.blog__list__item {
  position: relative;
  display: flex;
  flex-direction: column;
}
.blog__list__item a {
  display: flex;
  flex-direction: column;
  flex-grow: 1; /* liの高さいっぱいに伸ばす */
}
@media screen and (min-width: 768px) {
  .blog__list > li {
    flex-basis: 31%;
    margin-bottom: 60px;
  }
  .blog__list > li.blog__list__item {
    margin-right: 3.5%;
  }
  .blog__list.blog__list__first li.blog__list__item:nth-child(4),
  .blog__list.blog__list__first li.blog__list__item:nth-child(7),
  .blog__list.blog__list__first li.blog__list__item:nth-child(10) {
    margin-right: 0;
  }
  .blog__list.blog__list__notfirst li.blog__list__item:nth-child(3),
  .blog__list.blog__list__notfirst li.blog__list__item:nth-child(6),
  .blog__list.blog__list__notfirst li.blog__list__item:nth-child(9),
  .blog__list.blog__list__notfirst li.blog__list__item:nth-child(12) {
    margin-right: 0;
  }
  .blog__list li.blog__list__pickup {
    width: 100%;
    flex-basis: auto;
  }
  .blog__list li.blog__list__pickup a {
    display: flex;
    justify-content: space-between;
  }
  .blog__list li.blog__list__pickup .blog__image {
    width: 50%;
  }
  .blog__list li.blog__list__pickup .blogtxt__wrap {
    width: 45%;
  }
  .blog__list li.blog__list__pickup .blog__ttl {
    font-size: 28px;
  }
}
.blog__category {
  color: #fff;
  background: linear-gradient(130deg, #9aca5f 0%, #248d3a 100%);
  padding: 8px 10px;
  position: absolute;
  font-size: 11px;
  line-height: 1.2;
  right: 0;
  font-weight: 700;
}
@media screen and (min-width: 768px) {
  .blog__category {
    font-size: 13px;
    padding: 10px 12px;
  }
}
.blog__image {
  width: 100%;
  height: auto;
  overflow: hidden;
  aspect-ratio: 372 / 209; /* ← 比率を固定 */
}
.blog__image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* or contain */
  object-position: center;
  display: block;
}
.blog__list__pickup .blog__image img {
  width: 100%;
  height: auto;
}
.blog__list li .blog__ttl p {
  margin: 10px 0;
  font-size: 16px;
  font-weight: bold;
  line-height: 1.5em;
}
.blog__list li .blog__txt p {
  line-height: 1.64em;
}
.blogtxt__wrap {
  width: 100%;
  bottom: 0;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: end;
}
.blog__date {
  font-size: 10px;
  color: #9f9f9f;
  font-weight: 600;
  font-family: "Montserrat", sans-serif;
}
.blog__department {
  font-size: 10px;
  color: #248d3a;
  font-weight: 700;
}
.blog__info {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #e3e3e3;
  padding-bottom: 12px;
  margin-bottom: 12px;
  gap: 2px;
}
.blog__tag__list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.blog__tag {
  font-size: 10px;
  color: #248d3a;
  padding: 2px 8px;
  border: 1px solid #248d3a;
  border-radius: 100vh;
  line-height: 1.2;
}
@media screen and (min-width: 768px) {
  .blog__list li .blog__ttl p {
    font-size: 18px;
    margin: 15px 0;
  }
  .blog__info {
    flex-direction: row;
    padding-bottom: 16px;
    margin-bottom: 16px;
    justify-content: space-between;
    margin-top: auto;
  }
  .blog__date {
    font-size: 12px;
    text-align: right;
  }
  .blog__department {
    font-size: 12px;
  }
  .blog__tag {
    font-size: 12px;
    padding: 3px 10px;
  }
}

/*目次*/
#ez-toc-container {
  padding: 1.3rem !important;
  margin: 30px 0;
}
div#ez-toc-container .ez-toc-title {
  font-size: 16px !important;
}
@media screen and (min-width: 768px) {
  div#ez-toc-container .ez-toc-title {
    font-size: 20px !important;
  }
}
div#ez-toc-container ul li a {
  border-bottom: 0.5px solid #707070;
  font-size: 13px;
}
@media screen and (min-width: 768px) {
  div#ez-toc-container ul li a {
    font-size: 16px;
  }
}
.ez-toc-list a {
  padding: 16px 0;
}
@media screen and (min-width: 768px) {
  .ez-toc-list a {
    padding: 20px 0;
  }
  #ez-toc-container {
    padding: 3rem !important;
  }
}
#ez-toc-container .ez-toc-title {
  font-weight: bold !important;
  margin-bottom: 20px;
}
#ez-toc-container ul {
  margin-left: 0 !important;
}
.ez-toc-list a {
  display: block;
  width: 100%;
}
.ez-toc-list li ul li a {
  padding-left: 1.5em;
}
.ez-toc-list li ul li ul li a {
  padding-left: 3em;
}

/*記事詳細*/
/* #blog__main {
  padding-top: 1.5rem;
  margin-bottom: 2.5rem;
} */
/* @media screen and (min-width: 768px) {
  #blog__main {
    margin-bottom: 7.5rem;
  }
} */

#blog__single {
  background-color: #fff;
  /* padding: 0 1.25rem; */
  width: 100%;
  margin: auto;
  margin-top: 48px;
  max-width: 84%;
}
@media screen and (min-width: 768px) {
  #blog__single {
    max-width: 56.3rem;
    margin-top: 80px;
  }
}
.blog__single__category {
  font-size: 11px;
  font-weight: 800;
}
.blog__single__category-en {
  font-size: 13px;
  font-weight: 700;
  color: #248d3a;
  font-family: "Poppins", sans-serif;
  margin-right: 8px;
}
@media screen and (min-width: 768px) {
  .blog__single__category-en {
    font-size: 16px;
    margin-right: 16px;
  }
  .blog__single__category {
    font-size: 14px;
  }
}
.blog__single__thumbnail {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  .blog__single__thumbnail {
    margin-bottom: 56px;
  }
}
.blog__single__thumbnail img {
  width: 100%;
  height: auto;
  display: block;
}
.blog__single__info {
  padding-bottom: 22px;
  margin-bottom: 16px;
  position: relative;
}
@media screen and (min-width: 768px) {
  .blog__single__info {
    padding-bottom: 32px;
    margin-bottom: 20px;
  }
}
.blog__single__info::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1px;
  bottom: -1px;
  background-color: #248d3a;
  display: block;
  left: 0;
}
@media screen and (min-width: 768px) {
  .blog__single__info::after {
    width: 48px;
  }
}
#blog__single ul.blog__single__tag__list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 32px;
}
@media screen and (min-width: 768px) {
  #blog__single ul.blog__single__tag__list {
    margin-bottom: 56px;
  }
}
.blog__title {
  font-size: 24px;
  margin: 16px 0 12px;
}
@media screen and (min-width: 768px) {
  .blog__title {
    font-size: 34px;
    margin: 32px 0 16px;
  }
}

.blog__single__content h2 {
  font-size: 20px;
  margin: 32px 0 24px;
  border-top: 1px solid #e3e3e3;
  position: relative;
  padding-top: 32px;
}
.blog__single__content h2::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1px;
  top: -1px;
  background-color: #248d3a;
  display: block;
  left: 0;
}
@media screen and (min-width: 768px) {
  .blog__single__content h2 {
    font-size: 26px;
    margin: 57px 0 48px;
  }
  .blog__single__content h2::after {
    width: 48px;
  }
}
.blog__single__content h3 {
  margin: 30px 0 10px 0;
  color: #278f3c;
  font-size: 16px;
}
@media screen and (min-width: 768px) {
  .blog__single__content h3 {
    font-size: 20px;
    margin: 40px 0 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e3e3e3;
  }
}
.blog__single__content h4 {
  font-size: 16px;
}
.blog__single__content p {
  line-height: 1.75em;
  margin: 10px 0;
  font-size: 13px;
  padding: 8px 0;
}
@media screen and (min-width: 768px) {
  .blog__single__content p {
    font-size: 16px;
    padding: 20px 0;
  }
}
.blog__single__content p a,
.blog__single__content p.has-text-color a,
.blog__single__content figure figcaption a {
  color: #278f3c !important;
  word-break: break-all;
}
.blog__single__content hr.wp-block-separator {
  border-bottom: 0;
  margin: 20px 0;
}
.blog__single__content .wp-block-cover {
  margin: 30px 0;
  min-height: fit-content !important;
  padding: 1.3rem;
}
.blog__single__date {
  text-align: right;
}
@media screen and (min-width: 768px) {
  .blog__single__content .wp-block-cover {
    padding: 3rem;
  }
}
.blog__single__content .wp-block-cover p {
  margin: 0;
}
.blog__single__content .wp-block-image figure {
  margin-top: 30px;
  margin-bottom: 30px;
}
.blog__single__content figure:nth-child(2) {
  display: unset;
}
.blog__single__content figure figcaption {
  text-align: center;
}
.blog__single__content iframe.wp-embedded-content {
  width: 100%;
}
#blog__single .wp-block-image img {
  width: revert-layer;
}

#blog__related {
  width: 100%;
  /* padding: 40px 30px 10px 30px; */
  /* padding: 2.5rem 1.875rem 0.625rem 1.875rem; */
  padding: 2.5rem 0 0.625rem 0;
  max-width: 84%;
  margin: auto;
}
@media screen and (min-width: 768px) {
  #blog__related {
    width: 100%;
    margin: 0 auto;
    max-width: 63.13rem;
    padding: 56px 0 0 0;
  }
}
.blog__related__title {
  font-size: 20px;
  font-weight: bold;
  width: 100%;
  height: auto;
  /* overflow: hidden; */
  margin-bottom: 24px;
  padding-top: 33px;
  position: relative;
  border-top: 1px solid #e1e1e1;
}
.blog__related__title::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1px;
  top: -1px;
  background-color: #248d3a;
  display: block;
  left: 0;
}
@media screen and (min-width: 768px) {
  .blog__related__title {
    font-size: 26px;
    padding-top: 56px;
    margin-bottom: 32px;
  }
  .blog__related__title::after {
    width: 48px;
  }
}
.blog__related__container {
  width: 100%;
  height: auto;
  overflow: hidden;
  margin-bottom: 48px;
}
@media screen and (min-width: 768px) {
  .blog__related__container {
    margin-bottom: 80px;
  }
}
.blog__related__taxonomy {
  font-size: 21px;
  font-weight: bold;
  padding-bottom: 10px;
  margin-bottom: 30px;
  position: relative;
}
.blog__related__taxonomy::before {
  display: block;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: -webkit-linear-gradient(320deg, #9aca5f 0%, #248d3a 100%);
  background: -o-linear-gradient(320deg, #9aca5f 0%, #248d3a 100%);
  background: linear-gradient(130deg, #9aca5f 0%, #248d3a 100%);
  content: "";
}

@media screen and (min-width: 768px) {
  /* #blog__related .blog__list li {
    flex-basis: 31.69%;
  }
  #blog__related .blog__list li:nth-child(2) {
    margin: 0 2.45%;
  }
  #blog__related .blog__list li {
    margin-bottom: 0;
  } */
  #blog__related .blog__list li:nth-of-type(3) {
    margin-right: 0;
  }
  #blog__related .blog__list li {
    margin-bottom: 0;
  }
}

.blog__single__back-link.btn__white {
  max-width: 84%;
  margin: 0 auto 80px;
}
@media screen and (min-width: 768px) {
  .blog__single__back-link.btn__white {
    margin-bottom: 160px;
  }
}
.blog__single__back-link.btn__white a::after {
  content: "";
  width: 10px;
  width: 0.625rem;
  height: 10px;
  height: 0.625rem;
  border: 0px;
  border-top: solid 2px #248d3a;
  border-left: solid 2px #248d3a;
  -webkit-transform: rotate(-45deg) translateY(-50%);
  transform: rotate(-45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  left: 10%;
}
.blog__single__back-link.btn__white:hover a::after {
  border-top: solid 2px #fff;
  border-left: solid 2px #fff;
  border-right: none;
}
.blog__single__back-link.btn__white a.blog__category-link {
  font-size: 14px;
  font-weight: 700;
}

/* globalway stories */
#blog__mv {
  position: relative;
}
#blog__mv h1 {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64%;
}
#blog__mv.blog-list-mv h1 {
  width: 83%;
}
.blog-mv__bg.mv__bg,
.blog-list-mv__bg.mv__bg {
  height: fit-content;
}
#blog__mv .blog-mv__bg.mv__bg img,
#blog__mv .blog-list-mv__bg.mv__bg img {
  position: static;
  transform: none;
  width: 100%;
  height: auto;
}
.blog__nav ul {
  display: flex;
  flex-direction: column;
}
.blog__nav ul li {
  border-bottom: 1px solid #e1e1e1;
}
.blog__nav ul li a {
  font-weight: 700;
  font-size: 14px;
  display: block;
  padding: 15px 20px;
  position: relative;
}
.blog__nav ul li.blog-current a {
  color: #238e3a;
  border-left: 3px solid #238e3a;
  background-color: #f4fff6;
}
.blog__nav__label {
  display: block;
  padding: 15px 20px;
  font-weight: 700;
  font-size: 14px;
  position: relative;
  border-bottom: 1px solid #e1e1e1;
}
.blog__nav__label::after {
  content: "";
  right: 28px;
  top: 13px;
  position: absolute;
  border-top: solid 2px #248d3a;
  border-right: solid 2px #248d3a;
  transform: rotate(135deg);
  width: 16px;
  height: 16px;
  background: transparent;
}
.blog__nav__label.open::after {
  transform: rotate(-45deg);
  top: 23px;
}
.blog__nav ul li a::after {
  content: "";
  right: 28px;
  top: 23px;
  position: absolute;
  border-top: solid 2px #248d3a;
  border-right: solid 2px #248d3a;
  transform: rotate(45deg) translateY(-50%);
  width: 16px;
  height: 16px;
  background: transparent;
}
.blog__nav > ul {
  display: none;
  transition: 0.4s;
}
.blog__nav > ul.open {
  display: block;
}

@media screen and (min-width: 768px) {
  #blog__mv h1 {
    width: 100%;
    max-width: 526px;
    margin: auto;
  }
  .blog__nav__label {
    display: none;
  }
  .blog__nav {
    border-bottom: 1px solid #e1e1e1;
  }
  .blog__nav ul {
    align-items: center;
    max-width: 1200px;
    margin: auto;
    justify-content: space-between;
    display: flex;
    flex-direction: row;
  }
  .blog__nav ul li {
    border-right: 1px solid #e1e1e1;
    flex-basis: 20%;
    border-bottom: none;
  }
  .blog__nav ul li:first-of-type {
    border-left: 1px solid #e1e1e1;
  }
  .blog__nav ul li a {
    display: block;
    padding: 18px 0;
    text-align: center;
    width: 100%;
    transition: 0.2s;
  }
  .blog__nav ul li a::after {
    display: none;
  }
  .blog__nav ul li.blog-current a {
    border-top: 3px solid #238e3a;
    border-left: none;
  }
  .blog__nav ul li a:hover {
    color: #238e3a;
  }
}
