/*
@function vwsp($val, $max: 1.3) {
  @return unquote('min(' + unquote( ( ( $val / 768 ) * 100 ) + 'vw' ) + ', ' + ( ( $val / 2 ) * $max ) + 'px)');
}
*/
/*
@function vwpc($val, $min: 0.7) {
  @return unquote('max(' + unquote( ( ( $val / 1920 ) * 100 ) + 'vw' ) + ', ' + ( ( $val ) * $min ) + 'px)');
}
*/
/* Breadcrumb
-------------------------------------------------- */
.m-breadcrumb {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
}

.m-breadcrumb-container {
  padding: .8em 0 .3em;
}

.m-breadcrumb-item {
  margin-bottom: .5em;
}

.m-breadcrumb-item-link {
  font-size: 15px;
  line-height: 150%;
  color: #333333;
  font-weight: 400;
}

.m-breadcrumb-item-link:hover {
  color: #004094;
}

.m-breadcrumb-item::after {
  content: ">";
  display: inline-block;
  font-size: 16px;
  line-height: 150%;
  color: #333333;
  font-weight: 400;
  margin: 0 .6em;
  transform: scaleX(50%);
}

.m-breadcrumb-item:last-child::after {
  display: none;
}

/* Link
-------------------------------------------------- */
.m-link {
  display: inline-block;
  font-size: 20px;
  line-height: 150%;
  color: #ffffff;
  font-weight: bold;
  background: #004094 url(../images/common/m-link-arrow01.svg) no-repeat center right 1.2em;
  border-radius: 6px;
  padding: .8em 3.6em .9em 1.6em;
}

.m-link-str {
  display: inline-block;
}

.m-link:hover {
  filter: brightness(1.2);
  background-position: center right 1em;
}

@media screen and (max-width: 768px) {
  .m-link {
    font-size: min(3.84615vw, 22.5px);
  }
}

/* News
-------------------------------------------------- */
.m-news-item {
  display: flex;
  flex-direction: row;
  justify-content: start;
  font-size: 14px;
  line-height: 150%;
  color: #333333;
  font-weight: 500;
}

.m-news-item-cat {
  color: #004094;
  width: 8em;
  padding-right: 1em;
}

.m-news-item-date {
  padding-right: 1.7em;
}

.m-news-item-name-link {
  color: #333333;
}

.m-news-item-name-link:hover {
  color: #004094;
}

.m-news-item-more {
  padding-left: 1.7em;
}

.m-news-item-more-link {
  color: #333333;
  text-decoration: underline;
}

.m-news-item-more-link:hover {
  color: #004094;
}

.m-news__archive .m-news-item {
  padding: 1.5em 0;
  border-bottom: 1px solid #eee;
}

.m-news__archive .m-news-item:first-child {
  border-top: 1px solid #eee;
}

@media screen and (max-width: 768px) {
  .m-news-item {
    flex-wrap: wrap;
    font-size: min(3.33333vw, 19.5px);
  }
  .m-news-item-date {
    padding-right: 0;
  }
  .m-news-item-name {
    width: 100%;
  }
  .m-news-item-more {
    display: none;
    padding-left: min(7.17949vw, 42px);
  }
  .m-news__archive .m-news-item {
    padding-top: min(6.15385vw, 36px);
    padding-bottom: min(6.15385vw, 36px);
  }
}

/* Pagenavi
-------------------------------------------------- */
.m-pagenavi .wp-pagenavi {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  margin-top: 3em;
}

.m-pagenavi .wp-pagenavi a, .m-pagenavi .wp-pagenavi span {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  line-height: 100%;
  font-weight: 500;
  color: #fff;
  background: #004094;
  width: 2.8em;
  padding: .1em .1em .1em;
  margin: 0 .5em 1em;
  aspect-ratio: 1/1;
  border-radius: 100%;
}

.m-pagenavi .wp-pagenavi a:hover,
.m-pagenavi .wp-pagenavi span {
  color: #fff;
  background-color: #004094;
}

/* Partners
-------------------------------------------------- */
.m-voices {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  margin: 0 -0.7em 2em;
}

.m-voices-item {
  width: 33.3%;
  padding: 0 0.7em;
  margin-bottom: 2em;
}

.m-voices-item-in {
  display: block;
  height: 100%;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 64, 151, 0.4);
  padding: 1.5em;
  border-radius: 10px;
}

.m-voices-item-figure {
  margin-bottom: 2em;
}

.m-voices-item-figure-img {
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.m-voices-item-name {
  font-size: 20px;
  line-height: 150%;
  color: #004094;
  font-weight: bold;
  margin-bottom: .8em;
}

.m-voices-item-txt {
  font-size: 18px;
  line-height: 160%;
  color: #333333;
  font-weight: 500;
  letter-spacing: 0.02em;
  min-height: 4.8em;
}

@media screen and (max-width: 768px) {
  .m-voices {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 0;
    margin-bottom: min(12.30769vw, 72px);
    margin-left: 0;
  }
  .m-voices-item {
    width: 100%;
    max-width: 60vw;
    padding-right: 0;
    padding-left: 0;
    margin-bottom: min(4.10256vw, 24px);
  }
  .m-voices-item-in {
    padding: min(4.10256vw, 24px) min(4.10256vw, 24px) min(6.15385vw, 36px);
  }
  .m-voices-item-figure {
    margin-bottom: min(4.10256vw, 24px);
  }
  .m-voices-item-name {
    font-size: min(4.61538vw, 27px);
  }
  .m-voices-item-txt {
    font-size: min(4.10256vw, 24px);
    min-height: auto;
  }
}

/* Title
-------------------------------------------------- */
.m-title-sub {
  font-size: 30px;
  line-height: 150%;
  color: #004094;
  font-family: 'Arial';
  font-weight: bold;
  margin-bottom: .3em;
}

.m-title-heading {
  font-size: 30px;
  line-height: 110%;
  color: #004097;
  font-weight: bold;
  border-left: 7px solid #004094;
  padding: 0 0 .1em .4em;
  margin-bottom: .5em;
}

@media screen and (max-width: 768px) {
  .m-title {
    margin-bottom: min(5.12821vw, 30px);
  }
  .m-title-sub {
    font-size: min(6.15385vw, 36px);
  }
  .m-title-heading {
    font-size: min(6.15385vw, 36px);
  }
}
