/*

【CSS記述ルール】

① font-sizeはpxで指定してください
　（rem、%等の指定はしないようお願いいたします）

② reason はディレクトリ名に変更してください

③ 必ずディレクトリ名が付いたidセレクタを先頭に記述した後に、要素を記述してください
　（例：#oneday .inner、#oneday .page-title 等）

④ CSS内の画像指定パスは、CSSファイルから見た相対パスで指定してください
　（例：../images/ディレクトリ名/画像名.拡張子）

*/
/*------------------------------------------------------------
common
------------------------------------------------------------*/
.reason {
  font-family: noto-sans-cjk-jp, 'Noto Sans JP', 'Century Gothic', 'ヒラギノ角ゴ ProN W3', 'Hiragino Kaku Gothic ProN', 游ゴシック体, YuGothic, "Yu Gothic Medium", 游ゴシック, 'Yu Gothic', メイリオ, Meiryo, sans-serif;
  font-size: 13px;
  font-weight: 500;
  font-style: normal;
}

#reason * {
  box-sizing: border-box;
}

#reason a {
  transition: opacity .3s;
}

#reason a[href^="tel:"] {
  display: inline-block;
  transition: none;
}

#reason a:hover {
  text-decoration: none;
}

#reason a:focus-visible {
  outline: none;
}

#reason img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

#reason .js-fadein {
  opacity: 0;
  transform: translate(0, 20px);
  transition-property: opacity, transform;
  transition-duration: 1s;
}

#reason .scroll-in {
  opacity: 1;
  transform: translate(0, 0);
}

#reason .text {
  margin-bottom: 2em;
}

#reason .text:last-of-type {
  margin-bottom: 0;
}

#reason .pc-br {
  display: none;
}

#reason .notes {
  display: inline-block;
  position: relative;
  margin-left: 1em;
}

#reason .notes::before {
  content: '\0203B';
  display: block;
  position: absolute;
  top: 0;
  left: -1em;
}

#reason .inner {
  width: calc(100% - 30px);
  max-width: 1280px;
  margin: 0 auto;
  padding-bottom: 50px;
}

@media print, screen and (min-width: 768px) { /* ---------- タブレット・PC以上 ---------- */
  .reason {
    font-size: 16px;
  }

  #reason a[href^="tel:"] {
    color: inherit;
    pointer-events: none;
  }

  #reason a:not([href^="tel:"]):hover {
    opacity: .5;
  }

  #reason .sp-br {
    display: none;
  }

  #reason .pc-br {
    display: inline;
  }

  #reason .tab-none{
    display: none;
  }
}

/*------------------------------------------------------------
content style
------------------------------------------------------------*/

#reason {
  background-color: #F8F8F8;
}

#reason .inline-block{
  display: inline-block;
}

#reason .content-ttl {
  width: 100%;
  max-height: 180px;
  margin-top: 50px;
  padding: 60px 0 80px;
  background-image: url("../images/reason/reason_main_bg_sp.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-size: 17px;
  text-align: center;
  letter-spacing: .02em;
}

#reason .content-ttl-large{
  font-size: 27px;
  padding-bottom: 4px;
}

#reason .content-list{
  margin-top: -20px; 
}

#reason .content-item{
  position: relative;
  z-index: 0;
  margin-bottom: 60px;
}

#reason .content-item:last-of-type{
  margin-bottom: 0;
}

#reason .content-item::before{
  position: absolute;
  content: "";
  background-color: #fff;
  z-index: -1;
  height: calc(100% - 25px);
  width: calc(100% + 5px);
  top: 0;
  left: -15px;
  box-shadow: 1px 1px 4px rgba(0,0,0,.16);
}

#reason .content-item:nth-of-type(2n)::before{
  left: auto;
  right: -15px;
  box-shadow: 1px 1px 4px rgba(0,0,0,.16);
}

#reason .content-item-txt-block{
  width: calc(100% - 10px);
  padding: 28px 10px 20px 0;
}

#reason .content-item:nth-of-type(2n) .content-item-txt-block{
  margin-left: auto;
  padding: 28px 0 20px 10px;
}

#reason .content-item-txt-block .num{
  position: absolute;
  top: -24px;
  z-index: 1;
  font-family: futura-pt-condensed, sans-serif;
  font-weight: 400;
  font-style: italic;
  font-size: 45px;
  letter-spacing: .02em;
  color: #547BC2;
  line-height: 1;
}

#reason .content-item-ttl{
  margin-bottom: 25px;
  font-size: 20px;
  letter-spacing: .03em;
  line-height: 1.5;
  font-weight: bold;
}

#reason .content-item-ttl .sub-ttl-lower{
  margin-top: 5px;
  display: block;
  font-size: 15px;
  line-height: 2;
}

#reason .content-item-ttl .sub-ttl-upper{
  margin-bottom: 5px;
  display: block;
  font-size: 15px;
  line-height: 2;
}
#reason .content-item-ttl .txt{
  display: inline-block;
}

#reason .content-item-txt{
  font-size: 14px;
  letter-spacing: .02em;
  line-height: 1.64;
  font-weight: 400;
}

#reason .content-item-img-block{
  width: 86.9%;
  min-width: 300px;
  margin: 0 -15px 0 auto;
  box-shadow: 1px 1px 4px rgba(0,0,0,.16);
}

#reason .content-item:nth-of-type(2n) .content-item-img-block{
  margin: 0 auto 0 -15px;
}
@media print, screen and (min-width: 768px) { /* ---------- タブレット・PC以上 ---------- */
  #reason .inner {
    padding-bottom: 180px;
  }
  
  #reason .content-ttl {
    margin-top: 100px;
    padding: 150px 0 270px;
    max-height: 490px;
    font-size: 30px;
    background-image: url("../images/reason/reason_main_bg_pc.jpg");
  }
  
  #reason .content-ttl-large{
    font-size: 50px;
  }
  
  #reason .content-list{
    margin-top: -60px;
  }
  
  #reason .content-item{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-bottom: 150px;
  }
  
  #reason .content-item::before{
    z-index: -1;
    height: 100%;
    width: calc(100% - 60px);
    box-shadow: 2px 2px 8px rgba(0,0,0,.16);
  }
  
  #reason .content-item-txt-block{
    width: calc(100% - 460px);
    padding: 50px 0 50px 60px;
  }
  
  #reason .content-item:nth-of-type(2n) .content-item-txt-block{
    padding: 50px 60px 60px 0;
    order: 1;
  }
  
  #reason .content-item-txt-block .num{
    top: -46px;
    font-size: 90px;
  }

  #reason .content-item-ttl{
    margin-bottom: 46px;
    font-size: 36px;
  }

  #reason .content-item-ttl .sub-ttl-lower{
    font-size: 26px;
  }

  #reason .content-item-ttl .sub-ttl-upper{
    margin-bottom: 10px;
    font-size: 26px;
  }
  
  #reason .content-item-ttl .txt{
    margin-right: -160px;
  }

  #reason .content-item-txt{
    font-size: 16px;
    line-height: 2.125;
  }
  
  #reason .content-item-img-block{
    max-width: 400px;
    height: 440px;
    margin: auto -15px -60px 0;
    box-shadow: 2px 2px 8px rgb(0,0,0,.16)
  }

  #reason .content-item:nth-of-type(2n) .content-item-img-block{
    margin: auto 0 -60px -15px;
  }
  
  #reason .content-item-img-block img{
    object-fit: cover;
    height: 100%;
    object-position: 50% 100%;
  }

  #reason .content-item:nth-of-type(3) .content-item-img-block img{
    object-position: 60% 100%;
  }

  #reason .content-item:nth-of-type(4) .content-item-img-block img{
    object-position: 0 100%;
  }

  #reason .content-item:nth-of-type(5) .content-item-img-block img{
    object-position: 10% 100%;
  }
}

@media print, screen and (min-width: 1025px) {
  #reason .content-item::before{
    width: calc(100% - 60px + (50vw - 50%));
    left: calc(50% - 50vw);
  }
  
  #reason .content-item:nth-of-type(2n)::before{
    right: calc(50% - 50vw);
    left: auto;
  }
  
  #reason .content-item-img-block{
    max-width: 440px;
    height: 330px;
    margin: auto 0 -60px 0;
  }
  
  #reason .content-item:nth-of-type(2n) .content-item-img-block{
    margin: auto 0 -60px 0;
  }
  
  #reason .content-item-txt-block{
    width: calc(100% - 500px)
  }
}

@media print, screen and (min-width: 1400px){
  #reason .tab-none{
    display: inline-block;
  }
}