/**** 自作css ****/

/* urlリンク用 */
.urllink {
	clear:both;
	text-align: center;
	margin: 0 4px;
	padding: 0px 3px;
	text-decoration:none;
	color:#fff;
	background: #414852;
}

.urllink:hover{
	color:#fff;
	text-decoration: none;
	background-color: #3286e5;
}

/* クラフターマクロ表示用 */
.macro {
	line-height: 1.3;
	font-size: 14px;
	margin-bottom: 1em;
}

/* cssタブ */
.css_tabs {
    margin-top: 10px;
    padding-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
/*    width: 600px; */
    margin: 0 auto;
}

/* cssタブ内は改行無効に */
.css_tabs > br {
    display: none;
}

/*タブのスタイル*/
.css_tab_item {
    height: 50px;
    border-bottom: 3px solid #5ab4bd;
    background-color: #d9d9d9;
    line-height: 50px;
    font-size: 16px;
    text-align: center;
    color: #565656;
    display: block;
    float: left;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}

/* タブの個数によって幅切替 SP考慮で最大5つまで */
.css_tab_item:first-of-type:nth-last-of-type(2),
.css_tab_item:first-of-type:nth-last-of-type(2) ~ .css_tab_item {
    width: calc(100%/2);
}

.css_tab_item:first-of-type:nth-last-of-type(3),
.css_tab_item:first-of-type:nth-last-of-type(3) ~ .css_tab_item {
    width: calc(100%/3);
}

.css_tab_item:first-of-type:nth-last-of-type(4),
.css_tab_item:first-of-type:nth-last-of-type(4) ~ .css_tab_item {
    width: calc(100%/4);
}

.css_tab_item:first-of-type:nth-last-of-type(5),
.css_tab_item:first-of-type:nth-last-of-type(5) ~ .css_tab_item {
    width: calc(100%/5);
}

.css_tab_item:hover {
    opacity: 0.75;
}

/*ラジオボタンを全て消す*/
input[name="css_tab_item"] {
    display: none;
}

/*タブ切り替えの中身のスタイル*/
.css_tab_content {
    display: none;
    padding: 0px 10px 0;
    clear: both;
    overflow: hidden;
}

/*選択されているタブのコンテンツのみを表示*/
#tab_1:checked ~ #tab1_content,
#tab_2:checked ~ #tab2_content,
#tab_3:checked ~ #tab3_content,
#tab_4:checked ~ #tab4_content,
#tab_5:checked ~ #tab5_content,
#tab_6:checked ~ #tab6_content,
#tab_7:checked ~ #tab7_content,
#tab_8:checked ~ #tab8_content,
#tab_9:checked ~ #tab9_content {
    display: block;
}

/*選択されているタブのスタイルを変える*/
.css_tabs input:checked + .css_tab_item {
    background-color: #5ab4bd;
    color: #fff;
}

/* cssサブタブ */
.css_sub_tabs {
    margin-top: 10px;
    padding-bottom: 40px;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
/*    width: 600px; */
    margin: 0 auto;
}

/* cssタブ内は改行無効に */
.css_sub_tabs > br {
    display: none;
}

/*タブのスタイル*/
.css_sub_tab_item {
    width: calc(100%/2);
    height: 50px;
    border-bottom: 3px solid #5ab4bd;
    background-color: #d9d9d9;
    line-height: 50px;
    font-size: 16px;
    text-align: center;
    color: #565656;
    display: block;
    float: left;
    text-align: center;
    font-weight: bold;
    transition: all 0.2s ease;
}
.css_sub_tab_item:hover {
    opacity: 0.75;
}

/*ラジオボタンを全て消す*/
input[name="css_sub_tab_item"] {
    display: none;
}

/*タブ切り替えの中身のスタイル*/
.css_sub_tab_content {
    display: none;
    padding: 0px 10px 0;
    clear: both;
    overflow: hidden;
}

/*選択されているタブのコンテンツのみを表示*/
#sub_tab_1_1:checked ~ .sub_tab1_content,
#sub_tab_1_2:checked ~ .sub_tab2_content,
#sub_tab_2_1:checked ~ .sub_tab1_content,
#sub_tab_2_2:checked ~ .sub_tab2_content,
#sub_tab_3_1:checked ~ .sub_tab1_content,
#sub_tab_3_2:checked ~ .sub_tab2_content,
#sub_tab_4_1:checked ~ .sub_tab1_content,
#sub_tab_4_2:checked ~ .sub_tab2_content,
#sub_tab_5_1:checked ~ .sub_tab1_content,
#sub_tab_5_2:checked ~ .sub_tab2_content,
#sub_tab_6_1:checked ~ .sub_tab1_content,
#sub_tab_6_2:checked ~ .sub_tab2_content,
#sub_tab_7_1:checked ~ .sub_tab1_content,
#sub_tab_7_2:checked ~ .sub_tab2_content,
#sub_tab_8_1:checked ~ .sub_tab1_content,
#sub_tab_8_2:checked ~ .sub_tab2_content,
#sub_tab_9_1:checked ~ .sub_tab1_content,#sub_tab_9_2:checked ~ .sub_tab2_content {
    display: block;
}

/*選択されているタブのスタイルを変える*/
.css_sub_tabs input:checked + .css_sub_tab_item {
    background-color: #5ab4bd;
    color: #fff;
}
