/**************************
 タブ切り替え
***************************/
.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
.tab-label {
  color: #395ca3;
  background:#fff;
  border: 2px solid #e6edf4;
  padding: 10px;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  flex: none;
  border-radius: 5px;
  position: relative;
  display: inline-block;
}
.tab-label.first-label{
  align-items: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  margin-top: 70px;
  padding: 10px;
  height: 250px;
  min-width: auto;
  width: calc(100% / 5 - 40px);
}
.tab-label.first-label:first-of-type{
  margin-left: 20px;
}
.tab-label.first-label:last-of-type{
  margin-right: 20px;
}
.second-label{
  position: relative;
  padding: 10px 30px 10px 15px;
}
.second-label:hover{
  background: #fde859;
}
.second-label::before{
  position: absolute;
  content: "";
  border-bottom: 2px solid #a7b6d5;
  border-right: 2px solid #a7b6d5;
  top: 50%;
  transform: translate(0,-50%) rotate(45deg);
  right: 10px;
  height: 10px;
  width: 10px;
}
.tab-label .img{
  margin-top: 40px;
}
.tab-label:not(:last-of-type) {
  margin-right: 20px;
}
.tab-label.first-label:not(:last-of-type) {
  margin-right: 5px;
}
.tab-content {
  width: 100%;
  height: 0;
  overflow: hidden;
  opacity: 0;
}
/* アクティブなタブ */
.tab-switch:checked+.tab-label {
 background:#fde859;/*背景色*/
 border: none;
}
.tab-label.first-label .img img{
  transition: all 0.3;
  transform: scale(0.8,0.8);
}
.tab-label.first-label:hover .img img{
  transform: scale(1,1);
  transition: all 0.3s;
}
.tab-switch:checked+.tab-label.first-label::before {
  content: "";
  position: absolute;
  border-top: 20px solid #fde859;
  border-left: 40px solid transparent;
  border-right: 40px solid transparent;
  bottom: -20px;
  left: 50%;
  transform: translate(-50%,0);
}
.tab-switch:checked+.tab-label+.tab-content {
  height: auto;
  overflow: auto;
  padding: 15px 0 0 0;
  opacity: 1;
  transition: .5s opacity;
}

.tab-switch:checked+.tab-label+.tab-content.second-contents,
.tab-switch:checked+.tab-label+.tab-content.last-contents{
  padding-top: 40px;
  margin-top: 40px;
  position: relative;
}
.tab-switch:checked+.tab-label+.tab-content.last-contents{
  padding-top: 80px;
}
.tab-switch:checked+.tab-label+.tab-content.last-contents::before{
  content: "";
  position: absolute;
  border-top: 40px solid #fde859;
  border-left: 100px solid transparent;
  border-right: 100px solid transparent;
  top: 20px;
  left: 50%;
  transform: translate(-50%,0);
}
/*背景？？*/
.tab-wrap.first-contents{
  position: relative;
  margin-top: 40px;
}
.tab-wrap.first-contents::before,
.tab-content.second-contents::before{
  background-color: #5c636f;
  background-image: url(../img/product/work/icon@2x.png);
  background-repeat: no-repeat;
  background-position: calc(50% - 75px);
  background-size: 25px;
  border-radius: 5px 5px 0 0;
  color: #fff;
  content: "ワークを選ぶ";
  display: block;
  font-size: 18px;
  text-align: center;
  padding: 10px 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}
.tab-wrap.first-contents::before{
  content: "業種を選ぶ";
}
.tab-wrap.first-contents::after{
  background: -moz-linear-gradient(bottom, #fff, #7b8595); 
  background: -webkit-linear-gradient(bottom, #fff, #7b8595); 
  background: linear-gradient(to top, #fff, #7b8595); 
  height: 30%;
  position: absolute;
  content: "";
  width: 100%;
  display: block;
  top: 45px;
}
.tab-content.second-contents::after{
  background: -moz-linear-gradient(bottom, #fff, #7b8595); 
  background: -webkit-linear-gradient(bottom, #fff, #7b8595); 
  background: linear-gradient(to top, #fff, #7b8595); 
  height: 30%;
  position: absolute;
  content: "";
  width: 100%;
  display: block;
  top: 45px;
}
.tab-content.second-contents .tab-wrap{
  padding: 40px 0;
  justify-content: center;
}
/* ラジオボタン非表示 */
.tab-switch {
  display: none;
}

.model-area{
  border-radius: 5px;
  background-color: #4a515f;
  color: #fff;
}
.model-area .area-ttl{
  border-radius: 5px 5px 0 0;
  background-color: #5c636f;
  font-size: 18px;
  text-align: center;
  padding: 10px 0;
}
.model-area .area-ttl span{
  margin-right: 10px;
}
.model-area .model-inner{
  padding: 15px 10px;
}
.model-area .model-inner .inner-tx{
  text-align: center;
}
.model-area .model-inner .inner-box iframe{
  display: block;
  height: 65px;
  width: 100%;
}
.model-area .model-inner .inner-box iframe.h-auto{
  height: auto;
}
.product-list{
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
.product-list a{
  align-items: center;
  display: flex;
  background-color: #fff;
  border-radius: 5px;
  padding: 5px 10px;
  position: relative;
  margin-bottom: 10px;
  font-size: 18px;
  width: calc(100% / 3 - 5px);
}
.product-list a:hover{
  opacity: 0.7;
}
.product-list a::before{
  position: absolute;
  content: "";
  border-top: 3px solid #a7b6d5;
  border-right: 3px solid #a7b6d5;
  top: 50%;
  transform: translate(0,-50%) rotate(45deg);
  right: 10px;
  height: 10px;
  width: 10px;
}
.product-list a.dummy{
  background-color: transparent;
  padding: 0;
  margin: 0;
}
.product-list a.dummy::before{
  content: none;
}
.product-list a div{
  margin-right: 10px;
  font-size: 0;
  width: 54px;
  height: 54px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.product-list a div img{
  width: 100%;
}
.product-list a p{
  margin: 0;
}

@media screen and (max-width: 1199px){
  .model-area .model-inner .inner-box iframe{
    height: 220px;
  }
  .model-area .model-inner .inner-box iframe.h-auto{
    height: 300px;
  }
}

@media screen and (max-width: 768px){
  .tab-label .img img{
    width: 100%;
  }
  .tab-label.first-label{
    flex: none;
    width: calc(100% / 3 - 40px);
  }
  .tab-wrap.first-contents{
    justify-content: center;
  }
  .tab-label.first-label:not(:last-of-type){
    margin-right: 20px;
  }
  .tab-label.first-label:nth-of-type(4),
  .tab-label.first-label:nth-of-type(5){
    margin-top: 30px;
  }
  .tab-wrap.first-contents::after{
    height: 50%;
  }
  .product-list a{
    margin: 0 auto;
    width: 80%;
  }
  .product-list a + a{
    margin-top: 10px;
  }
}
@media screen and (max-width: 767px){
  .model-area .area-ttl,
  .model-area .model-inner .inner-tx{
    text-align: center !important;
  }
}
@media screen and (max-width: 480px){
  .tab-label{
    width: 90%;
  }
  .product-list a{
    width: 100%;
  }
  .tab-label.first-label{
    height: 180px;
    width: calc(100% / 3 - 15px);
  }
  .tab-label:not(:last-of-type){
    margin: 0;
    margin-bottom: 10px;
  }
  .tab-label.first-label{
    margin-top: 70px;
  }
  .tab-label.first-label:not(:last-of-type){
    margin-right: 10px;
  }
  .tab-label.first-label:first-of-type{
    margin-left: 10px;
  }
  .tab-label .img{
    margin-top: 20px;
  }
  .tab-label .img + p{
    font-size: 14px;
    text-align: center !important;
  }
  .tab-wrap.first-contents::after{
    height: 30%;
  }
  .tab-content.second-contents::after{
    height: 40%;
    z-index: -1;
  }
  .tab-switch:checked + .tab-label + .tab-content{
    z-index: 2;
  }
  .tab-switch:checked + .tab-label + .tab-content.last-contents{
    margin-top: 20px;
  }
  .tab-switch:checked + .tab-label + .tab-content.last-contents{
    padding-top: 60px;
  }
  .tab-switch:checked + .tab-label.first-label::before{
    bottom: -10px;
    border-top: 10px solid #fde859;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
  }
  .tab-switch:checked + .tab-label + .tab-content.last-contents::before {
    border-top: 20px solid #fde859;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
  }
}


/****************/
/*  ディスプレイ幅表示制御  */
/****************/
@media screen and (max-width: 1024px) {
  .spc__hide{
    display: none !important;
  }
}
@media screen and (min-width: 1025px) {
  .spc__show{
    display: none !important;
  }
}
@media screen and (max-width: 768px) {
  .ipad__hide{
    display: none !important;
  }
}
@media screen and (min-width: 769px) {
  .ipad__show{
    display: none !important;
  }
}
@media screen and (max-width: 480px) {
  .smp__hide{
    display: none !important;
  }
}
@media screen and (min-width: 481px) {
  .smp__show{
    display: none !important;
  }
}