﻿/* CSS Document */

#Tb_wrap {
	display:block;
	background-color:#54C3F1;
}

#Tb_bg {
	background-image:url(/Content/images/tobita_kun_bg2.png);
	background-repeat: repeat;
}

#Tb_top {
	width:100%;
	height: auto;
	max-width:1040px;
	background-image: url(/Content/images/tobita_kun_bg.jpg);
	background-size:130%;
	background-repeat: no-repeat;
	background-position:center -40px;
	position:relative;
	padding:10px 0px 0px;
}

#Tb_top h1 {
	display:block;
	margin:0px auto 0px 0px;
	width:75%;
	height: 0px;
	max-width:602px;
	padding-top:45%;
	background-image: url(/Content/images/tobita_kun_01.png);
	background-size:100%;
	background-repeat: no-repeat;
	overflow:hidden;
}

#M_img {
	display:block;
	width:25%;
	position:absolute;
	top:2%;
	right:1%;
}


#Tb_top div {
	display: block;
	box-sizing: border-box;
	width: 100%;
	padding: 20px;
	background: #f7de07;
	border-radius: 5px;
}

#Tb_top div img {width:100%; padding:0px 0px 20px; margin:0px; box-sizing:border-box;}
#Tb_top div h2 {padding:0px 0px 20px; margin:0px;}

#Tb_item {
	display:block;
	width:85%;
	margin:auto;
	padding:20px 0px;
}

#Tb_item img {
	display:block;
	width:100%;
	max-width:480px;
	margin: 0px auto 20px;
}

#Tb_item div {
	display:block;
	width:100%;
	margin:auto;
	max-width:480px;
}

#copyright img { width:50%; max-width:173px; vertical-align:text-bottom;}


@media only screen and (min-width: 480px) {
#Tb_top h1 {padding-top:40%;}
#Tb_top div {padding:20px 20px 10px; overflow:hidden;}
#Tb_top div img { display: inline-block; padding:0px 10px 10px 0px; width:40%; float:left; max-width:225px;}
#Tb_top div h2,#Tb_top div p {width: auto; padding:0px 0px 10px;}

}

@media only screen and (min-width: 768px) {

#Tb_top {
	background-size:1040px;
	background-repeat: no-repeat;
	background-position:top right;
	position:relative;
	padding:20px;
}

#Tb_top h1 {
	width:58%;
	height: 0px;
	max-width:602px;
	padding-top:28%;
	background-image: url(/Content/images/tobita_kun_01.png);
	background-size:100%;
	background-repeat: no-repeat;
	overflow:hidden;
}

#M_img {
	display:block;
	width:35%;
	max-width:350px;
	min-width:280px;
	position:absolute;
	top:20px;
	right:6%;
}


#Tb_top div {
	width:58%;
	max-width:602px;
	padding:20px 10px 10px 20px;
	margin:20px 0px;
	overflow:hidden;
}

#Tb_top div h2 {font-size:1.2em; padding:0px;}
#Tb_top div p {font-size:0.9em; padding:0px 0px 10px;}
#Tb_top div img { display: inline-block; padding:0px 10px 10px 0px; width:225px; float:left;}
#Tb_top div h2,#Tb_top div p {width: auto; padding:0px 0px 10px; margin:0px;}

#Tb_item {
	width:100%;
	margin:auto;
	padding:20px 1%;
	overflow:hidden;
	box-sizing:border-box;
}

#Tb_item div {box-sizing:border-box; width:48%; margin:1%; float:left; max-width:480px;}
#Tb_item div:nth-child(odd) { clear:both;}
#piapro {display: inline;}

}


.button {
	display: inline-block;
	width: 96%;
	margin-left: 4%;
	height: auto;
	padding: 5px;
	text-align: center;
	font-weight: bold;
	text-decoration: none;
	outline: none;
	position: relative;
	z-index: 2;
	background-color: #dd0000;
	border-radius: 10px;
	color: #fff;
	overflow: hidden;
	border: 2px solid #FFFFFF;
	-webkit-box-shadow: 0px 4px 8px 1px #FF8888;
	box-shadow: 0px 4px 8px 1px #FF8888;
	margin-bottom: 20px;
}

.button:visited {color: #fff;}

.button::before,
.button::after {
	position: absolute;
	z-index: -1;
	display: block;
	content: '';
}
.button,
.button::before,
.button::after {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
	-webkit-transition: all .3s;
	transition: all .3s;
}

.button:hover {
	color: #dd0000;
}
.button::after {
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}
.button:hover::after {
	-webkit-transform: scale(2) rotate(180deg);
	transform: scale(2) rotate(180deg);
	background-color: #fff;
}