@charset "utf-8";

/*========= レイアウト ===============*/
#header {
  width: 100vw;
}

section {
  width: 100%;
}

h2 {
  font-size: 2.3rem;
  letter-spacing: 2px;
  font-weight: 600;
}

.sec_ttlbox {
  background-color: #3d4857;
  width: 960px;
  height: 40px;
  border-radius: 5px;
  display: flex;
  align-items: center;
}

@media screen and (max-width: 1024px) {
  h2 {
    font-size: 1.2rem;
  }
  .sec_ttlbox {
    width: 80vw;
  }
}

/*========= 各section 共通 ===============*/
.sec_wrap {
  width: 960px;
  margin: 0 auto;
}
.sec_txtbox1 p {
  font-size: 1rem;
}
.sec_txtbox2 p {
  font-size: 0.9rem;
}

@media screen and (max-width: 1024px) {
  .sec_wrap {
    width: 80vw;
  }
  .sec_ttl {
    width: 80vw;
  }
  .sec_box {
    width: 80vw;
  }
  .sec_box img {
    width: 100%;
    border-radius: 5px;
  }
  .sec_txtbox2 p {
    font-size: 0.8rem;
  }
  .sec_ttlbox span {
    font-size: 0.88rem;
  }
}

/*========= section 1 ===============*/
.sec_01 {
  width: 960px;
  height: auto;
  margin: 0 auto;
  padding: 0;
  background-color: #fff;
}
.ttlbox {
  margin-top: 150px;
}
.vr_wrap {
  display: flex;
  justify-content: space-between;
}
.vr_box1 {
  width: 460px;
  height: 296px;
  background-image: url(../images/plan/Atype.png);
  background-color: #000;
}
.vr_box2 {
  width: 460px;
  height: 296px;
  background-image: url(../images/plan/Ftype.png);
}

.vr_box1::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 296px;
  z-index: 2;
  transition: background-color 0.5s;
  background-color: rgba(0, 0, 0, 0);
}
.vr_box1:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}
.vr_box2::before {
  content: "";
  position: absolute;
  width: 460px;
  height: 296px;
  z-index: 2;
  transition: background-color 0.5s;
  background-color: rgba(0, 0, 0, 0);
}
.vr_box2:hover::before {
  background-color: rgba(0, 0, 0, 0.5);
}

@media screen and (max-width: 1024px) {
  .sec_01 {
    width: 80vw;
  }
  .sec_01 img {
    width: 100%;
  }
  .ttlbox {
    margin-top: 160px;
  }
  .vr_wrap {
    display: block;
  }
  .vr_box1,
  .vr_box2 {
    width: 80vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50% 50%;
  }
  .vr_box1 {
    background-image: url(../images/plan/Atype.png);
  }
  .vr_box2 {
    margin-top: 40px;
    background-image: url(../images/plan/Ftype.png);
  }
}

/**************************
 タブ切り替え
***************************/
.tab-wrap {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
}
.tab-wrap:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #fff;
  display: block;
  order: -1;
}
.tab-label {
  color: White;
  background: #9da3aa;
  text-align: center;
  padding: 0.8em 1em;
  order: -1;
  position: relative;
  z-index: 1;
  cursor: pointer;
  flex: 1;
  border-top: solid 2px #3d4857;
  border-right: solid 2px #3d4857;
}
.tab-label:first-of-type {
  border-left: solid 2px #3d4857;
}
.tab-label:last-of-type {
  border-right: solid 2px #3d4857;
}
.tab-content {
  width: 960px;
  height: 0;
  overflow: hidden;
  opacity: 0;
  position: relative;
  top: -2px;
}
.contentbox {
  width: 960px;
  display: flex;
  justify-content: center;
  border-top: solid 2px #3d4857;
  border-left: solid 2px #3d4857;
  border-right: solid 2px #3d4857;
  border-bottom: solid 2px #3d4857;
}
.tab-content img {
  width: 100%;
}

/* アクティブなタブ */
.tab-switch:checked + .tab-label {
  background: #3d4857; /*背景色*/
  color: #ddb54a;
}
.tab-switch:checked + .tab-label + .tab-content {
  height: auto;
  overflow: auto;
  padding: 0;
  opacity: 1;
  transition: 0.5s opacity;
}
/* ラジオボタン非表示 */
.tab-switch {
  display: none;
}

@media screen and (max-width: 1024px) {
  .tab-label {
    font-size: 0.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
  }

  .contentbox {
    width: 80vw;
  }
}
