@charset "utf-8";

:root {
  --media_pc: 1680; /* VW計算用 calc(vw / var(--media_pc)) */
  --media_sp: 750;
}

.container .caption {
  line-height: 1.2;
}
.section{
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  line-height: 0;
}
.main_wrap{
  position: relative;
  max-width: 100%;
  width:100%;
  margin: 0 auto;
  height: auto;
  overflow: hidden;
}
.container{
  overflow: hidden;
}
.main_wrap > div.bg{
  object-fit: cover;
  margin: auto;
  position: relative;
  display: grid;
  place-content: center;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: calc(100vh - 105px);
  height: calc(100svh - 105px);
}
.main_wrap > div.bg_wrap {
  background: url(../img/quality/kv_pc.webp) no-repeat center;
  background-size: cover;
  position: absolute;
  top: 0;
  height: 100%;
  width: 100%;
  transform: scale(1.2);
  transition: transform 8s;
}
.loaded .main_wrap > div.bg_wrap {
  transform: scale(1);
  transition: transform 8s;
}
.bg h2 {
  width: 206px;
  margin: 0 auto;
  opacity:0;
}
.bg.active h2 {
  opacity:1;
  transition-duration: .5s;
}
/*.main_wrap > div.bg img{
   visibility: hidden;
}*/
.main_wrap > div.bg .caption{
  position: absolute;
  bottom:0;
  right:0;
  margin:5px;
  font-size:12px;
  color:#fff;
}
.section{
  line-height: 0;
}
.contents_wrap{
  width:100%;
  padding:120px 0;
}

@media all and (max-width: 768px) {
  .container{
    margin-top: 18.667vw;
  }
  .main_wrap{
    position: relative;
    max-width: 100%;
    width:100%;
    margin: 0 auto;
    height: auto;
    overflow: hidden;
    padding-bottom:106.667%;
  }
  .main_wrap > div.bg{
    height:auto;
    padding-bottom:106.667%;
    position: absolute;
    top:0;
    left:0;
  }
  .main_wrap > div.bg_wrap {
    background: url(../img/quality/kv_sp.webp) no-repeat center;
    background-size: cover;
  }
  .bg h2 {
    width: calc(206 / var(--media_sp) * 100vw);
    position: absolute;
    top:50%;
    left:50%;
    transform: translate(-50%,-50%);
  }
  .main_wrap > div.bg .caption{
    margin:0.667vw 1.333vw;
    font-size:2.667vw;
  }
  .contents_wrap{
    padding: calc(120 / var(--media_sp) * 100vw) 0;
  }
}

.inner_wrap{
  width:95%;
  max-width:1280px;
  margin:0 auto;
}
.tab_wrap{
  width:100%;
  display:flex;
  gap:0.78125%;
  align-items: center;
}
.tab_wrap .tab{
  display:block;
  width:19.375%;
  height:56px;
  background-color:#fff;
  text-align: center;
  cursor: pointer;
  z-index: 0;
  position: relative;
  box-sizing: border-box;
  border:1px solid #444e67;
  font-size:17px;
  line-height:56px;
  color:#444e67;
  letter-spacing: 0.1em;
}
.tab_wrap .tab.current{
  pointer-events: none;
}
.tab_wrap .tab.current{
  color:#fff;
  background-color:#444e67;
}
.tab_wrap .tab:hover{
  opacity: .7;
  transition-duration: .5s;
  color:#fff;
  background-color:#444e67;
}
.intro_wrap{
  text-align: center;
  padding:97px 0;
}
h3{
  font-size:30px;
  line-height:1;
  color:#76829f;
  font-weight: normal;
  letter-spacing: 0.02em;
  margin-bottom:17px;
  font-family: "AGaramondPro-Regular";
}
.intro_ttl{
  font-size:31px;
  line-height:1;
  letter-spacing: 0.15em;
}
h4{
  font-size:25px;
  color:#76829f;
  font-weight: normal;
  line-height: 1;
  letter-spacing: 0.08em;
  border-bottom:1px solid #76829f;
  width:100%;
  padding-bottom:8px;
  margin-bottom:30px;
}

@media all and (max-width: 768px) {
  .inner_wrap{
    width:89.333%;
    max-width:inherit;
  }
  .tab_wrap{
    flex-wrap: wrap;
    gap:1.492%;
    align-items: center;
  }
  .tab_wrap .tab{
    width:49.254%;
    height: calc(80 / var(--media_sp) * 100vw);
    font-size: calc(28 / var(--media_sp) * 100vw);
    line-height: calc(80 / var(--media_sp) * 100vw);
  }
  .tab_wrap .tab:first-child{
    width:100%;
  }
  .tab_wrap .tab:nth-child(n+2){
    margin-top: calc(10 / var(--media_sp) * 100vw);
  }
  .intro_wrap{
    padding: calc(92 / var(--media_sp) * 100vw) 0 calc(100 / var(--media_sp) * 100vw);
  }
  h3{
    font-size: calc(32 / var(--media_sp) * 100vw);
    margin-bottom: calc(10 / var(--media_sp) * 100vw);
  }
  .intro_ttl{
    font-size: calc(38 / var(--media_sp) * 100vw);
    line-height:1.579;
    letter-spacing: 0.13em;
  }
  h4{
    font-size: calc(34 / var(--media_sp) * 100vw);
    padding-bottom: calc(7 / var(--media_sp) * 100vw);
    margin-bottom: calc(20 / var(--media_sp) * 100vw);
  }
}


