/*タブ切り替え全体のスタイル*/
.tabs {
  padding-bottom: 40px;
  background-color: #fff;
  width: 750px;
  margin: 0 auto;
}

/*タブのスタイル*/
.tab_item {
  display: inline-block;
  width: 174px;
  height: 34px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid #162853;
  margin-left: 10px;
  background-position: center;
  background-size: 180px 40px;
  position: relative;
}
.tab_item:hover {
  width: 174px;
  height: 34px;
  padding: 0px;
  border-radius: 10px;
  border: 3px solid #c1075d;
  background-position: center;
  background-size: 180px 40px;
}
label.tab_item:nth-child(2) {
  background-image: url(../images/menu2-01.svg);
  margin-left: 0px;
  margin-bottom: 10px;
}
label.tab_item:nth-child(4) {
  background-image: url(../images/menu2-02.svg);
  margin-bottom: 10px;
}
label.tab_item:nth-child(6) {
  background-image: url(../images/menu2-03.svg);
  margin-bottom: 10px;
}
label.tab_item:nth-child(8) {
  background-image: url(../images/menu2-04.svg);
  margin-bottom: 10px;
}
label.tab_item:nth-child(10) {
  background-image: url(../images/menu2-05.svg);
  margin-left: 0px;
}
label.tab_item:nth-child(12) {
  background-image: url(../images/menu2-06.svg);
}
label.tab_item:nth-child(14) {
  background-image: url(../images/menu2-07.svg);
}
label.tab_item:nth-child(16) {
  background-image: url(../images/menu2-08.svg);
}

/*ラジオボタンを全て消す*/
input[name="tab_item"] {
  display: none;
}

/*タブ切り替えの中身のスタイル*/
.tab_content {
  width: 668px;
  height: 318px;
  display: none;
  padding: 35px 40px;
  border: 1px solid #162853;
  border-radius: 10px;
  margin-top: 20px;
  clear: both;
  overflow: hidden;
}


/*選択されているタブのコンテンツのみを表示*/
#tab01:checked ~ #tab01_content,
#tab02:checked ~ #tab02_content,
#tab03:checked ~ #tab03_content,
#tab04:checked ~ #tab04_content,
#tab05:checked ~ #tab05_content,
#tab06:checked ~ #tab06_content,
#tab07:checked ~ #tab07_content,
#tab08:checked ~ #tab08_content {
  display: block;
}

/*選択されているタブのスタイルを変える*/
.tabs input:checked + .tab_item {
  width: 174px;
  height: 34px;
  padding: 2px;
  border: 1px solid #162853;
  border-radius: 10px;
  background-position: center;
  background-size: 180px 40px;
}

.tabs input:checked + .tab_item:nth-child(2) {
  background-image: url(../images/menu3-01.svg);
}
.tabs input:checked + .tab_item:nth-child(4) {
  background-image: url(../images/menu3-02.svg);
}
.tabs input:checked + .tab_item:nth-child(6) {
  background-image: url(../images/menu3-03.svg);
}
.tabs input:checked + .tab_item:nth-child(8) {
  background-image: url(../images/menu3-04.svg);
}
.tabs input:checked + .tab_item:nth-child(10) {
  background-image: url(../images/menu3-05.svg);
}
.tabs input:checked + .tab_item:nth-child(12) {
  background-image: url(../images/menu3-06.svg);
}
.tabs input:checked + .tab_item:nth-child(14) {
  background-image: url(../images/menu3-07.svg);
}
.tabs input:checked + .tab_item:nth-child(16) {
  background-image: url(../images/menu3-08.svg);
}
/*
.tabs input:checked + .tab_item::after {
  content: '';
  background-color: #ed6d34;
  position: absolute;
  opacity: 0.2;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  width: 178px;
  height: 38px;
  border-radius: 9px;
}
*/


/*  ここからブレーク　　*/
@media screen and (max-width:599px) {

.tabs {
	width: 347px;
	margin-left: -21px;
}
.tab_item {
  display: inline-block;
  width: 164px;
  height: 30px;
  padding: 2px;
  border-radius: 10px;
  border: 1px solid #162853;
  margin-left: 7px;
  background-position: center;
  background-size: 170px;
  position: relative;
}
.tab_item:hover {
  width: 164px;
  height: 30px;
  padding: 0px;
  border-radius: 10px;
  border: 3px solid #c1075d;
  background-position: center;
  background-size: 170px;
}
.tabs input:checked + .tab_item {
  width: 164px;
  height: 30px;
  padding: 2px;
  border: 1px solid #162853;
  border-radius: 10px;
  background-position: center;
  background-size: 170px;
}
label.tab_item:nth-child(6),
label.tab_item:nth-child(14) {
  margin-left: 0px;
}
label.tab_item:nth-child(2),
label.tab_item:nth-child(4),
label.tab_item:nth-child(6),
label.tab_item:nth-child(8),
label.tab_item:nth-child(10),
label.tab_item:nth-child(12) {
  margin-bottom: 7px;
}
.tab_content {
	width: 285px;
	height: 415px;
	padding: 30px;
}
}
/*　　ここまでブレーク　　*/