
/* Top image */

p {
	line-height: 140%;
}

#topimage-sp li,
#topimage-pc li {
	width: 100%;
}
#topimage-sp img,
#topimage-pc img {
	position: relative;
	width: 100%;
	z-index: 0;
}
#topimage-pc {
	display: none;
}

#topimage-sp li {
	background-color: #000;
}
#topimage-sp li:nth-child(3) img,
#topimage-sp li:nth-child(4) img,
#topimage-sp li:nth-child(5) img,
#topimage-sp li:nth-child(6) img {
	opacity: .95;
	filter: alpha(opacity=95);
}
#topimage-sp li a {
	color: #fff;
	text-align: center;
	width: 100%;
	position: absolute;
	bottom: 0%;
	left: 0%;
	right: 0%;
	z-index: 100000;
	padding: 15px;
	background-color: rgba(0,102,153,0.8);
	box-sizing: border-box;
	display: block;
}
#topimage-sp h2,
#topimage-sp p {
	color: #fff;
	text-align: center;
}
#topimage-sp h2 {
	font-size: 17px;
	font-weight: bold;
	line-height: 130%;
	margin: 0 0 10px 0;
}
#topimage-sp h2.top {
	margin: 15px 0 0 0;
}
#topimage-sp p.sub {
	font-size: 12px;
	line-height: 130%;
}
#topimage-sp p.button {
	margin: 15px 0 0 0;
}
#topimage-sp p.button span {
	padding-right: 20px;
	position: relative;
}
#topimage-sp p.button span::after {
	display: block;
	content: '';
	position: absolute;
	top: 37%;
	right: 10px;
	width: 6px;
	height: 6px;
	border-right: 1px solid #fff;
	border-bottom: 1px solid #fff;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}

/* Pager */

.cycle-pager {
	width: 100%;
	text-align: center;
	margin: 5px auto;
	display: block;
	overflow: hidden; 
}
.cycle-pager span {
	color: #ddd;
	font-size: 40px;
	padding: 1px 5px;
	display: inline-block;
}
.cycle-pager span.cycle-pager-active {
	color: #3399cc;
}
.cycle-pager > * {
	cursor: pointer;
}

/* h1 */

h1.toppage {
	width: 90%;
	text-align: center;
	padding: 20px;
	margin: 20px auto;
	background-color: #f2f2f2;
	box-sizing: border-box;
}

/* OnTime menu */

#top-menu {
	width: 90%;
	margin: 20px auto;
}
#top-menu .well2 {
	box-sizing: border-box;
}
#top-menu .well2 a {
	display: block;
}
#top-menu .well2 a {
	padding-right: 28px;
	position: relative;
}
#top-menu .well2 a::after {
	display: block;
	content: '';
	position: absolute;
	top: 45%;
	right: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #3399cc;
	border-bottom: 2px solid #3399cc;
	-webkit-transform: rotate(-45deg);
	transform: rotate(-45deg);
}
#top-menu .well2 h2 {
	font-size: 24px;
	line-height: 120%;
}
#top-menu .well2 h2 span {
	color: #003399;
}
#top-menu .well2 img {
	width: 100%;
	margin: 15px 0;
}
#top-menu .well2 p {
	line-height: 140%;
}

/* Top footer */

#top-footer {
	padding: 20px 0;
	margin: 50px 0 0 0;
	background-color: #f2f2f2;
}
#top-footer .inner {
	width: 90%;
	margin: 0 auto;
}
#top-footer .inner h2 {
	font-size: 18px;
	text-align: center;
	margin: 20px 0;
}

#top-footer .fb-outer {
	overflow: hidden !important;
	position: relative;
	width: 100% !important;
	word-wrap: break-word;
	word-break: break-all;
}
#top-footer .fb-outer p {
	font-size: 14px;
}
#top-footer .fb-page {
	width: 100% !important;
	margin: 20px auto;
	text-align: center;
	display: block;
}

#top-footer .twitter-outer {
	overflow: hidden !important;
	width: 100% !important;
}
#top-footer .twitter-outer p {
	font-size: 14px;
}
#top-footer .twitter-inner {
	width: 100% !important;
	margin: 20px auto;
	text-align: center;
	display: block;
}

/* copyright */

.p-copyright p {
	padding: 20px 0 0 0;
}


@media screen and (min-width: 768px) {

	/* Top image */

	#topimage-sp a {
		padding: 30px;
	}
	#topimage-sp h2 {
		font-size: 28px;
		font-weight: bold;
		line-height: 130%;
		margin: 0 0 10px 0;
	}
	#topimage-sp h2.top {
		margin: 15px 0 0 0;
	}
	#topimage-sp p.sub {
		font-size: 14px;
		line-height: 130%;
	}
	#topimage-sp p.button {
		font-size: 17px;
		margin: 20px 0 0 0;
	}

	/* Pager */

	.cycle-pager span {
		font-size: 45px;
	}

	/* OnTime menu */

	#top-menu .well2:hover {
		background-color: #e1f0ff;
	}
	#top-menu .well2 a::after {
		display: block;
		content: '';
		position: absolute;
		top: 45%;
		right: 0;
		width: 12px;
		height: 12px;
		border-right: 3px solid #3399cc;
		border-bottom: 3px solid #3399cc;
		-webkit-transform: rotate(-45deg);
		transform: rotate(-45deg);
	}
	#top-menu .well2 h2 {
		font-size: 30px;
	}

	/* Top footer */

	#top-footer {
		padding: 10px 0 50px 0;
	}
	#top-footer .inner h2 {
		font-size: 28px;
		text-align: left;
		margin: 30px 0;
	}

}

@media screen and (min-width: 970px) {

	/* Top image */

	#topimage-sp a {
		padding: 40px;
	}
	#topimage-sp a:hover {
		background-color: rgba(117,117,117,0.8);
	}
	#topimage-sp h2 {
		font-size: 34px;
		font-weight: bold;
		line-height: 130%;
		margin: 0 0 10px 0;
	}
	#topimage-sp h2.top {
		margin: 15px 0 0 0;
	}
	#topimage-sp p.sub {
		font-size: 14px;
		line-height: 130%;
	}
	#topimage-sp p.button {
		font-size: 20px;
		margin: 20px 0 0 0;
	}



	/* OnTime menu */

	#top-menu ul {
		display: -webkit-flex;
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		-webkit-justify-content: space-around;
		justify-content: space-around;
	}
	#top-menu ul li {
		width: 49%;
	}
	#top-menu h2 {
		font-size: 26px;
	}

	/* Top footer */

	#top-footer .inner {
		display: -webkit-flex;
		display: flex;
		flex-wrap: wrap;
		align-items: stretch;
		-webkit-justify-content: space-between;
		justify-content: space-between;
	}
	#top-footer .inner h2 {
		margin: 40px 0;
	}

	#top-footer .inner .fb-outer {
		width: 48% !important;	
	}

	#top-footer .inner .twitter-outer {
		width: 48% !important;	
	}

}

@media screen and (min-width: 1200px) {

	/* Top image */

	#topimage-pc {
		display: block;
	}
	#topimage-sp {
		display: none;
	}

	#topimage-pc li {
		background-color: #000;
	}
	#topimage-pc li:nth-child(3) img,
	#topimage-pc li:nth-child(4) img,
	#topimage-pc li:nth-child(5) img,
	#topimage-pc li:nth-child(6) img {
		opacity: .95;
		filter: alpha(opacity=95);
	}
	#topimage-pc li a {
		color: #fff;
		text-align: center;
		width: 100%;
		position: absolute;
		bottom: 0%;
		left: 0%;
		right: 0%;
		z-index: 100000;
		padding: 20px 10%;
		background-color: rgba(0,102,153,0.8);
		box-sizing: border-box;
		display: block;
	}
	#topimage-pc li a:hover {
		background-color: rgba(117,117,117,0.8);
	}
	#topimage-pc h2,
	#topimage-pc p {
		color: #fff;
		text-align: center;
	}
	#topimage-pc h2 {
		font-size: 42px;
		font-weight: bold;
		line-height: 130%;
		margin: 0 0 10px 0;
	}
	#topimage-pc h2.top {
		margin: 15px 0 0 0;
	}
	#topimage-pc p.sub {
		font-size: 17px;
		line-height: 130%;
	}
	#topimage-pc p.button {
		font-size: 22px;
		margin: 20px 0 0 0;
	}
	#topimage-pc p.button span {
		padding-right: 25px;
		position: relative;
	}
	#topimage-pc p.button span::after {
		display: block;
		content: '';
		position: absolute;
		top: 37%;
		right: 10px;
		width: 8px;
		height: 8px;
		border-right: 2px solid #fff;
		border-bottom: 2px solid #fff;
		-webkit-transform: rotate(-45deg);
		transform: rotate(-45deg);
	}

	/* h1 */

	h1.toppage {
		width: 1130px;
		padding: 30px;
		margin: 40px auto;
	}

	/* OnTime menu */

	#top-menu {
		width: 1130px;
		margin: 40px auto;
	}
	#top-menu .well2 h2 {
		font-size: 32px;
	}
	#top-menu .well2 h2 span {
		display: block;
	}

	/* Top footer */

	#top-footer .inner {
		width: 1130px;
	}
	#top-footer .fb-page {
		text-align: left;
	}

}
