/*== ヘッダー設定 ==*/
#site-header,#site-header.open {
  background: none;
  transition: background .25s ease;
  @media screen and (min-width: 1024px){
    #header-menu .menu-item-link{
      color: var(--white);
    }
    #header-menu .menu-item-contact .menu-item-link{
      background: var(--white);
      color:var(--main-color);
    }
    #header-menu .menu-item-contact .menu-item-link:before {
      background: var(--main-color);
    }
  }
}
#site-header.scrolled {
  background: var(--white);
  @media screen and (min-width: 1024px){
    #header-menu .menu-item-link{
      color: var(--main-color);
    }
    #header-menu .menu-item-contact .menu-item-link{
      background: var(--main-color);
      color:var(--white);
    }
    #header-menu .menu-item-contact .menu-item-link:before {
      background: var(--white);
    }
  }
}
#site-header.open {
  @media screen and (max-width: 1023px){
    background: var(--white);
  }
}

/*== 共通パーツ ==*/
#body-wrapper {
  padding-top:0;
  .section-inner {
    max-width: 960px;
    margin: 0 auto;
  }
  .section-header {
    border-top: 1px solid var(--black);
    border-bottom: 1px solid var(--black);
    margin-bottom: 4rem;
    padding: 0;
    @media screen and (max-width: 1023px){
      /*padding: 1.5rem 0;*/
    }
  }
  .section-title-main {
    line-height: 1.2;
    font-family: 'Oswald';
    font-weight: 200;
    letter-spacing: .2rem;
    display: inline-block;
    vertical-align: baseline;
    font-size: 8vw;
    padding-right: 1rem;
    @media screen and (min-width: 500px){
      font-size: 4rem;
    }
    @media screen and (min-width: 1024px){
      font-size: 3rem;
    }
  }
  .section-title-sub {
    line-height: 1.4;
    display: inline-block;
    vertical-align: text-bottom;
    font-size: 3.4vw;
    @media screen and (min-width: 500px){
      font-size: 1.4rem;
      font-weight: 500;
    }
    @media screen and (min-width: 767px){
      font-size: 1.2rem;
      font-weight: 400;
    }
  }
  .section-chatch {
    font-size: 5.2vw;
    margin:0 0 2rem;
    line-height: 2;
    font-weight: 500;
    @media screen and (min-width: 768px){
      font-size: 2.5rem;
    }
    @media screen and (min-width: 1024px){
      font-size: 1.8rem;
    }
  }
  .section-desc {
    margin-bottom: 2rem;
  }
  .with_bg .section-inner{
    position: relative;
  }
  .with_bg .section-inner > *{
    position: relative;
    z-index: 2;
  }
  .with_bg .img-wrap {
    margin-bottom: 2.25rem;
    @media screen and (min-width: 1024px){
      position: absolute;
      bottom: 0;
      right: 0;
      z-index: 1;
      padding: 0;
      margin-bottom: 0;
    }
  }
  .with_bg .img-wrap{
    text-align: center;
    @media screen and (min-width: 1024px){
      text-align: left;
    }
  }
  .layered-box {
    background: var(--white);
    box-shadow: 0 0 5px rgba(0,0,0,0.25);
    max-width: 880px;
    box-sizing: border-box;
  }
  @media screen and (max-width: 1023px){
    .button-wrapper {
      text-align: center;
      margin-top: 5rem;
    }
    .button-wrapper .button {
      padding: 1.75rem 2.25rem;
      min-width: 70%;
    }
  }
}

/*== メインビジュアル ==*/
#body-wrapper .mv {
  position: relative;
  z-index: 1;
  width: 100%;
  @media screen and (min-width: 1024px){
    height: 70vh;
    min-height: 700px;
  }
  .hero_img{
    width: 100%;
    height: 100%;
    position: relative;
    @media screen and (min-width: 1024px){
      position: absolute;
      object-fit: cover;
    }
    @media screen and (min-width: 1440px){
      object-position: center 25%;
    }
  }
  .chatch {
    font-family: "Zen Old Mincho", serif;
    font-weight: 600;
    color: var(--white);
    position: absolute;
    @media screen and (max-width: 767px){
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 100%;
      padding: 3rem;
      top: 0;
    }
    @media screen and (min-width: 768px){
      bottom: 0;
      right: 0;
      text-align: right;
      padding:0 24px 60px;
    }
    @media screen and (min-width: 1024px){
      padding: 0 90px 80px;
    }
    .chatch-sub {
      font-size: 2.25rem;
      padding-bottom: .5rem;
      line-height:1.8;
      @media screen and (min-width: 1024px){
        text-align: center;
        line-height: 1.4;
      }
    }
    .chatch-main,.chatch-main * {
      font-size: 9vw;
      line-height: 1.2;
      text-align: left;
      letter-spacing: .25rem;
      @media screen and (min-width: 768px){
        font-size: 4.5rem;
      }
    }
    .letter_kanji {
      letter-spacing: .5rem;
    }
    .letter_marks {
      letter-spacing: -1.8rem;
    }
    .letter_marks_before {
      letter-spacing: .5rem;
    }
    .letter_dash {
      letter-spacing: -.5rem;
    }
    .letter_dash_before {
      letter-spacing: .25rem;
    }
    .letter_kana {
      letter-spacing: -.25rem;
    }
  }
}

/*== ニュース ==*/
#body-wrapper .news {
  position: relative;
  top: -45px;
  z-index: 2;
  margin-bottom: 8rem;
  @media screen and (min-width: 767px){
    margin-bottom: 2rem;
    padding: 0 3rem;
  }
  @media screen and (min-width: 1024px){
    margin-bottom: 4rem;
  }
  .section-inner {
    padding:3rem;
    @media screen and (min-width: 1024px){
      padding:2rem 0;
      display: grid;
      grid-template-columns: 1fr 5fr;
      align-items: center;
    }
  }
  .section-header {
    text-align: center;
    border: none;
    margin: 0;
    @media screen and (max-width: 1023px){
      padding: 0 0 3rem;
      margin-bottom: 1.5rem;
      border-bottom: 1px solid var(--sep-color);
    }
  }
  .section-title {
    font-size: 2rem;
    font-family: 'Oswald';
    font-weight: 300;
    color: var(--main-color);
    letter-spacing: .2rem;
    @media screen and (max-width: 1023px){
      font-size: 2.6rem;
    }
  }
  .section-body {
    @media screen and (min-width: 1024px){
      padding:.5rem 2rem;
      border-left: 1px solid var(--sep-color);
    }
  }
  .entry {
    margin-bottom: 2.5rem;
    @media screen and (min-width: 1024px){
      margin-bottom: 1.5rem;
      display: grid;
      grid-template-columns: 80px 156px 1fr;
      align-items: center;
    }
  }
  .entry:last-child {
    margin-bottom: 0;
  }
  .entry-date {
    @media screen and (max-width: 1023px){
      display: inline-block;
    }
  }
  .entry-category {
    @media screen and (max-width: 1023px){
      display: inline-block;
      min-width: 120px;
    }
    margin-bottom: 0;
    text-align: center;
  }
  .entry-category_link {
    font-size: .8rem;
    margin-left: 8px;
    padding: 2px 0;
    background: var(--light-color);
    color: var(--white);
    width: calc(100% - 8px);
    display: inline-block;
    border-radius: 3px;
    line-height:1.4;
    font-weight: 500;
    @media screen and (max-width: 768px){
      font-size: .9rem;
    }
  }
  .entry-title{
    line-height: 1.6;
    @media screen and (max-width: 1023px){
      margin-top: .75rem;
    }
    @media screen and (min-width: 1023px){
      padding-left: 1rem;
    }
  }
}

/*= ミッション =*/
#body-wrapper .mission{
  .section-body{
    margin-bottom:10rem;
    .section-inner {
      padding-bottom: 7rem;
    }
  }
}

/*= サービス =*/
#body-wrapper .service{
  margin-bottom:7.2rem;
  @media screen and (min-width: 1024px){
    .section-body .section-inner {
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      column-gap: 2rem;
    }
  }
  @media screen and (max-width: 1023px){
    .section-img {
      text-align: center;
      padding: 1.75rem 0 8rem;
    }
  }
}

/*= フィーチャー =*/
#body-wrapper .feature {
  margin-bottom: 7.2rem;
  .feature-list {
    border-top: 1px solid var(--black);
    @media screen and (min-width: 1024px){
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
    }
  }
  .feature-item {
    padding: 2.5rem 2rem;
    border-bottom: 1px solid var(--black);
    @media screen and (max-width: 1023px){
      padding: 3rem 2rem;
    }
  }
  .feature-item:nth-child(odd) {
    @media screen and (min-width: 1024px){
      border-right: 1px solid var(--black);
    }
  }
  .feature-item .item-inner {
    padding-left: 1rem;
    display: grid;
    grid-template-columns: 22% minmax(0,1fr);
    align-items: center;
    @media screen and (min-width: 1024px){
      max-width: 600px;
    }
  }
  .feature-item:nth-child(odd) .item-inner {
    @media screen and (min-width: 1024px){
      margin-left: auto;
    }
  }
  .feature-item-header {
    text-align: center;
  }
  .feature-item-body {
    padding: 0 2rem;
  }
  .feature-item-title {
    font-size: 1.5rem;
    font-weight:700;
    line-height: 1.8;
    margin-bottom: .4rem;
  }
  .feature-item-desc {
    margin-bottom: 1rem;
  }
  .feature-item-link {
    text-decoration: underline;
    font-weight: 700;
  }
  .section-sep_img {
    display: inline-block;
    margin:7.2rem 0 0;
  }
  .section-sep_img,
  .section-sep_img img{
    width: 100%;
  }
  @media screen and (max-width: 768px){
    .feature-item-title {
      font-size:  4vw;
    }
  }
  @media screen and (min-width:768px) and (max-width:1023px) {
    .feature-item-title {
      font-size: 2rem;
    }
  }
  @media screen and (max-width: 1023px){
    .feature-item-header img{
      padding-right: 12px;
    }
    .feature-item-desc,
    .feature-item-link {
      margin-bottom: 1.5rem;
    }
    .section-sep_img {
      margin:12rem 0 10rem;
    }
  }
}

/*= お客様の声 =*/
#body-wrapper .interview {
  @media screen and (max-width: 1023px){
    padding: 1.5rem 0;
  }
  margin-bottom: 11rem;
  position: relative;
  .bg-wraper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    z-index: 1;
  }
  .bg-wraper img {
    object-fit: cover;
    width: 100%;
  }
  .section-wrapper {
    padding-top: 6.5rem;
  }
  .section-inner {
    position: relative;
    margin: 0 auto;
    padding: 5rem;
    z-index: 2;
    max-width: 880px;
    background: var(--white);
  }
  .section-header {
    border: none;
    background: var(--white);
  }
  .button-wrapper {
    text-align: center;
  }
  .entry-thumbnail {
    width: 100%;
    border-radius: .6rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
  }
  .entry-thumbnail img{
    object-fit: cover;
    object-position: center;
    width: 100%;
  }
  .entry-thumbnail_noimage {
    background: var(--diff-color);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .noimage_label {
    font-family: "Oswald";
    font-size: 1.5rem;
    color: var(--white);
    font-weight: 200;
  }
  .entry-header{
    margin-bottom: .5rem;
  }
  .entry-clients {
    margin-bottom: 0;
    margin-right: .5rem;
    display: inline-block;
    padding-top: 1px;
  }
  .entry-terms {
    display: inline-block;
  }
  .entry-terms-item {
    display: inline-block;
    margin-right: .25rem;
    margin-bottom: 1px;
    vertical-align: bottom;
  }
  .entry-terms_label {
    background: var(--light-color);
    color: var(--white);
    border-radius: 3px;
    display: inline-block;
    padding: 4px 8px;
  }
  .entry-title {
    line-height: 1.6;
    color: var(--main-color);
    font-weight: 700;
  }
  .entry-link {
    text-decoration: underline;
    font-weight: 700;
  } 
  @media screen and (max-width: 1023px){
    .layered-box {
      margin: 0 5%;
      padding: 5% 5% 12%;
    }
    .entry {
      margin-bottom: 6rem;
    }
    .section-header {
      margin-bottom: 1.5rem;
    }
    .entry-terms {
      vertical-align: text-bottom;
    }
    .entry-terms_label {
      font-size: 1.1rem;
    }
    .entry-title{
      margin: 1rem 0 1.5rem;
      font-size: 2.4rem;
    }
    .entry-thumbnail,
    .entry-thumbnail img{
      height: 240px;
    }
  }
  @media screen and (min-width:1024px){
    .entry-list {
      margin-bottom: 3rem;
      display: grid;
      grid-template-columns: repeat(2,minmax(0,1fr));
      column-gap:2rem;
    }
    .entry-terms {
      vertical-align: text-top;
    }
    .entry-terms_label {
      font-size: .7rem;
      padding-bottom:3px;
    }
    .entry-title{
      margin-bottom: 1rem;
      font-size: 1.5rem;
    }
    .entry-thumbnail,
    .entry-thumbnail img{
      height: 200px;
    }
  }
}

/*= スタッフ =*/
#body-wrapper .staff {
  margin-bottom: 10rem;
  @media screen and (max-width:1023px){
    padding-top: 1.5rem;
    .section-title-sub {
      vertical-align: sub;
    }
    .section-header {
      padding: 1rem 0;
    }
    .section-body .section-inner {
      padding-bottom: 5rem;
    }
  }
  @media screen and (min-width: 1024px){
    .section-body .section-inner {
      padding-bottom: 11rem;
    }
  }
}