@charset "utf-8";

.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  position: relative;
}
.tab-label {
  width: 13em;
  box-shadow: -10px 5px 18px 3px rgba(0,0,0, .2);
  padding: .5em 0;
  text-align: center;
  order:-1;
  background: #fff;
  border: 2px solid #fff;
  transition: all ease .3s;
  cursor: pointer;
  position: absolute;
  top: -6.5vw;
  left: 0;
  white-space: nowrap;
  z-index: 99;
}
.tab-label span {
  display: block;
  font-size: .6em;
  text-align: center;
}
#TAB-01 + .tab-label{
  left: 0;
}
#TAB-02 +.tab-label{
  left: 15em;
}
#TAB-03 + .tab-label{
  left: 30em;
}
#TAB-04 + .tab-label{
  left: 45em;
}
.tab-content {
  width: 100%;
  display: none;
}
.tab-label:hover {
  box-shadow: -10px 5px 18px 3px rgba(0,0,0, .4);
}
.tab-switch:checked+.tab-label {
  border: 2px solid #E19D1E;
}
.tab-switch:checked+.tab-label+.tab-content {
  display: block;
}
.tab-switch {
  display: none;
}
.fadeIn {
  animation-duration: 1.2s;
}
.fadeIn2 {
  animation-duration: 1.5s;
}
#mf1 h3 {
  font-size: 1.2em;
  font-weight: bold;
  margin: 0 0 3vw;
}
#mf1 p + h3 {
  margin: 5vw 0 3vw;
}
#mf1 .tboxs {
  box-shadow: -3px 3px 3px 3px rgba(0,0,0, .2);
  padding: 2em;
  margin: 3em 0 3em;
  position: relative;
}
#mf1 h4 span {
  margin: 0 .3em 0 0;
  font-size: 2em;
  font-weight: bold;
  letter-spacing: .1em;
}
#mf1 .tboxs p {
  font-size: .9em;
}

.tab-01 figure img{
  margin: 3vw auto;
}
.tab-01 .tbox {
  margin: 5vw 0 0;
}

.tab-02 .tboxs h4:before {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  /* background: #E19D1E; */
  margin: 0 0.5em 0 0;
  vertical-align: inherit;
  border-left: 0.8em solid #E19D1E;
  border-right: 0.5em solid transparent;
  border-top: 0.5em solid transparent;
  border-bottom: 0.5em solid transparent;
}
.tab-02 .bg {
  width: 100%;
  height: 15vw;
  background: url("../img/top/s2.jpg") center center / cover no-repeat;
  margin: 3vw 0;
}

.tab-03 .tboxs {
  display: flex;
  justify-content: center;
  align-items: center;
}
.tab-02 .tboxs h4,
.tab-03 .tboxs h4 {
  margin-bottom: .5em;
  font-size: 1.1em;
  font-weight: bold;
}
.tab-03 .tboxs figure {
  width: 10%;
  margin: 0 5% 0 0;
}
.tab-03 .tboxs figure img {
  width: 100%;
}
.tab-03 .tboxs figure + div {
  width: 85%;
}


.tab-04 .tboxs:after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-top: 20px solid #444;
  border-right: 40px solid transparent;
  border-left: 40px solid transparent;
  border-bottom: 20px solid transparent;
  position: absolute;
  bottom: -3.5em;
  left: 50%;
  transform: translate(-50%, 0);
}
.tab-04 .tboxs:nth-of-type(6) {
  margin-bottom: 5vw;
}
.tab-04 .tboxs:nth-of-type(6):after {
  display: none;
}



@media screen and (max-width: 1400px) {
  .tab-label {
    top: -12.5vw;
  }
}

@media screen and (max-width: 1024px) {
  #mf1 .mf-inner {
    padding-top: 20vw;
  }
  .tab-label {
    font-size: 2.5vw;
    width: 15em;
    top: -30vw;
  }
  #TAB-02 +.tab-label {
    left: 18em;
  }
  #TAB-03 + .tab-label {
    left: 0;
    top: -18vw;
  }
  #TAB-04 + .tab-label {
    left: 18em;
    top: -18vw;
  }
}

@media screen and (max-width: 640px) {
  #mf1 .mf-inner {
    padding-top: 30vw;
  }
  .tab-label {
    top: -45vw;
  }
  #TAB-03 + .tab-label,
  #TAB-04 + .tab-label {
    top: -27vw;
  }
}