/*------------------------------------------------------------
common
------------------------------------------------------------*/
body {
  font-family: 'Noto Sans JP', 'Century Gothic', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 游ゴシック体, YuGothic, "Yu Gothic Medium", 游ゴシック, 'Yu Gothic', メイリオ, Meiryo, sans-serif;
}

#merit {
  font-size: 13px;
  font-weight: 500;
  color: #2A2A2A;
  overflow: hidden;
  background: #fff;
  position: relative;
}

#merit * {
  box-sizing: border-box;
}

#merit a {
  color: #2A2A2A;
  transition: opacity .3s;
  
}

#merit a[href^="tel:"] {
  display: inline-block;
  transition: none;
}

#merit a:hover {
  text-decoration: none;
}

#merit a:focus-visible {
  outline: none;
}

#merit img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

#merit .js-fadein {
  opacity: 0;
  transform: translate(0, 20px);
  transition-property: opacity, transform;
  transition-duration: 1s;
}

#merit .scroll-in {
  opacity: 1;
  transform: translate(0, 0);
}

#merit .pc-br {
  display: none;
}

#merit .sp-br {
  display: inline;
}

#merit .inline-block {
  display: inline-block;
}

#merit .pc-inline {
  display: inline-block;
}

#merit .inner {
  width: calc(100% - 24px);
  max-width: 1200px;
  margin: 0 auto;
}

#merit .font-poppins {
  font-family: poppins,sans-serif;
  font-weight: 600;
  font-style: normal;
}

#merit .font-futura {
  font-family: futura-pt, sans-serif;
  font-weight: 700;
  font-style: italic;
}

#merit .blue {
  color: #004B9F;
}

#merit .main {
  height: calc(100vw / 750 * 280);
}

#merit .main-inner {
  position: relative;
  height: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  margin: 0 auto;
}

#merit .main-inner::before {
  position: absolute;
  content: "";
  height: 100%;
  width: calc(100vw / 750 * 496);
  background-color: #E4F3FF;
  top: 0;
  left: 0;
}

#merit .main-inner::after {
  position: absolute;
  content: "";
  height: calc(100vw / 750 * 140);
  width: calc(100vw / 750 * 260);
  background: url("../images/merit/merit_main_ttl_img_sp.png") no-repeat center center / contain;
  bottom: 0;
  right: 17px;
}

#merit .main-ttl {
  position: relative;
  margin-left: calc(100vw / 750 * 74);
  margin-top: 17px;
}

#merit .main-ttl .en {
  display: block;
  font-size: max(35px,calc(2.1875rem + ((1vw - 3.75px) * 9.3333)));
  line-height: 1;
  margin-bottom: 8px;
}

#merit .main-ttl .ja {
  display: block;
  font-size: max(14px,calc(0.875rem + ((1vw - 3.75px) * 3.7333)));
  font-weight: 500;
}

#merit .main-ttl .ja .big {
  display: inline-block;
  font-size: max(18px,calc(1.125rem + ((1vw - 3.75px) * 4.8)));
  margin-right: 1px;
  transform: translateY(1px);
}

#merit .description {
  text-align: center;
  margin: 75px auto 40px;
}

#merit .description .ttl {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.47;
  margin-bottom: 20px;
}

#merit .description .txt {
  font-size: 14px;
}

@media print, screen and (min-width: 768px) {
  #merit {
    font-size: 16px;
  }
  
  #merit .sp-br {
    display: none;
  }
  
  #merit .pc-br {
    display: inline;
  }
  
  #merit .pc-inline {
    display: inline;
  }
  
  #merit .main {
    height: 260px;
  }
  
  #merit .main-inner {
    width: calc(100% - 24px);
  }
  
  #merit .main-inner::before {
    width: calc(50vw - 280px);
    left: calc(50% - 50vw);
  }
  
  #merit .main-inner::after {
    height: 160px;
    width: 242px;
    background-image: url("../images/merit/merit_main_ttl_img_pc@2x.png");
    right: auto;
    left: 280px;
  }  
  
  #merit .main-ttl {
    margin-left: 0;
    margin-top: 16px;
  }
  
  #merit .main-ttl .en {
    font-size: 48px;
    margin-bottom: 3px;
  }
  
  #merit .main-ttl .ja {
    font-size: 18px;
  }
  
  #merit .main-ttl .ja .big {
    font-size: 28px;
    margin-right: 2px;
    transform: translateY(2px);
  }
  
  #merit .description {
    margin: 80px auto;
  }
  
  #merit .description .ttl {
    font-size: 34px;
    margin-bottom: 18px;
  }
  
  #merit .description .txt {
    font-size: 20px;
  }
}

/*------------------------------------------------------------
contents
------------------------------------------------------------*/
/*merit-link-boxここから*/
#merit .merit-link-box {
  width: calc(100% - 24px);
  max-width: 351px;
  margin: 0 auto;
}

#merit .link-item {
  position: relative;
  display: block;
  background-color: #E4F3FF;
  box-shadow: 3px 3px 6px rgba(0,0,0,.16);
}

#merit .link-item::before {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background-color: #004B9F;
  right: 25px;
  bottom: 50%;
  transform: translateY(50%);
}

#merit .link-item::after {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background: url("../images/merit/merit_linkbox_arrow_white.svg") no-repeat center center/12px 14px;
  right: 25px;
  bottom: 50%;
  transform: translateY(50%);
}

#merit .link-item:not(:last-child) {
  margin-bottom: 20px;
}

#merit .link-item-ttl {
  padding: 22px 51px 22px 25px;
  display: flex;
  align-items: center;
}

#merit .num-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  height: 38px;
  width: fit-content;
  margin-right: 20px;
}

#merit .num-wrap .en,#merit .num-wrap .num {
  display: block;
  line-height: 1;
}

#merit .num-wrap .en {
  font-size: 12px;
  font-weight: 700;
}

#merit .num-wrap .num {
  font-size: 32px;
}

#merit .link-item-ttl .ttl {
  font-weight: 700;
}
/*merit-link-boxここまで*/

#merit .merit-content-wrap:nth-child(2n) {
  background-color: #E4F3FF;
}

#merit .merit-content-box {
  width: calc(100% - 54px);
  max-width: 1160px;
  padding: 60px 0;
}

#merit .merit-content-box .num-wrap {
  height: auto;
}

#merit .merit-content-box .num-wrap .en {
  font-size: 18px;
}

#merit .merit-content-box .num-wrap .num {
  font-size: 45px;
}

#merit .merit-content-box .ttl-wrap .ttl {
  width: calc(100% + 25px);
  font-size: 19px;
  font-weight: 700;
  margin: 5px auto 20px;
}

#merit .merit-content-box .txt {
  margin-top: 15px;
  line-height: 1.69;
}

@media print, screen and (min-width: 768px) {
  /*merit-link-boxここから*/
  #merit .merit-link-box {
    max-width: 1160px;
    display: grid;
    grid-template-columns: 560px 560px;
    justify-content: space-between;
    grid-row-gap: 50px;
  }
  
  #merit .link-item {
    min-height: 150px;
    display: flex;
    align-items: center;
  }
  
  #merit .link-item:not(:last-child) {
    margin-bottom: auto;
  }
  
  #merit .link-item::before {
    width: 30px;
    height: 30px;
    right: 20px;;
    bottom: 20px;
    transform: none;
    transition: all .3s;
  }
  
  #merit .link-item::after {
    width: 30px;
    height: 30px;
    right: 20px;
    bottom: 20px;
    transform: none;
  }
  
  #merit .link-item:hover::before {
    opacity: .7;
  }
  
  #merit .link-item-ttl {
    padding: 0 0 0 30px;
  }
  
  #merit .num-wrap {
    height: 67px;
    margin-right: 44px;
  }
  
  #merit .num-wrap .en {
    font-size: 14px;
  }
  
  #merit .num-wrap .num {
    font-size: 44px;
  }
  
  #merit .link-item-ttl .ttl {
    font-size: 20px;
    line-height: 1.45;
  }
  /*merit-link-boxここまで*/
  
  #merit .merit-content-wrap {
    margin-top: 75px;
  }
  
  #merit .merit-content-box {
    width: 100%;
    display: grid;
    grid-template-areas:
      "ttl img" 
      "txt img";
    grid-template-rows: max-content 1fr;
    grid-column-gap: min(70px,calc(100vw / 1200 * 60));
    padding: 100px 0;
  }
  
  #merit .merit-content-wrap:nth-child(2n) .merit-content-box {
    grid-template-areas:
      "img ttl" 
      "img txt";
  }
  
  #merit .merit-content-box .ttl-wrap {
    grid-area: ttl;
    margin-top: -6px;
  }
  
  #merit .merit-content-box .num-wrap .en {
    font-size: 32px;
  }
  
  #merit .merit-content-box .num-wrap .num {
    font-size: 100px;
  }
  
  #merit .merit-content-box .ttl-wrap .ttl {
    font-size: 30px;
    line-height: 1.66;
    margin-top: 30px;
  }
  
  #merit .merit-content-box .merit-img {
    grid-area: img;
    width: 540px;
  }
  
  #merit .merit-content-box .txt {
    grid-area: txt;
    max-width: 550px;
    line-height: 2;
    margin-top: 0;
  }
}
