
/* ----------------------------------------------------------------------
	
	馬主席のご案内　各競馬場
	
---------------------------------------------------------------------- */

/* - 
---------------------------------------------------------------------- */

/* - 入場門や目印となる施設
------------------------------------------------------------ */
#area_map {
	border-bottom: 1px dotted #ccc;
	padding-bottom: 30px;
	padding-bottom: 20px;
}

div.map_area {
	display: table;
	width: 100%;
}

div.map_area > div.cell {
	display: table-cell;
	vertical-align: top;
}

div.map_area > div.cell.img {
	padding-right: 10px;
	width: 730px;
}

div.map_area > div.cell.img img { vertical-align: top; }


div.map_area > div.cell.txt {
	margin-top: 10px;
	background-color: #f5f5f5;
}

div.map_area > div.cell.txt > p {
	color: #fff;
	font-size: 1.3rem;
	font-weight: bold;
	padding: 6px 10px;
	background-color: #555;
}


div.map_area > div.cell.txt > ul { padding: 0 10px; }

div.map_area > div.cell.txt > ul > li {
	font-size: 1.3rem;
	padding: 10px 0;
	
	display: table;
}

div.map_area > div.cell.txt > ul > li > span {
	/*vertical-align: middle;*/
	
	display: table-cell;
	vertical-align: top;
}


div.map_area > div.cell.txt > ul > li > span.num > span {
	background-color: #188542;
	color: #fff;
	padding: 3px 6px;
	margin-right: 0.5em;
	line-height: 1;
	font-weight: bold;
	font-size: 1.1rem;
	margin-right: 0.8em;
	background-color: rgba(34,34,34,0.9);
	color: #f8e250;
}

div.map_area > div.cell.txt > ul > li > span.txt { font-size: 1.3rem; }



/* - ルートリスト（ボタン）ブロック
-------------------------------------------------- */
div.route_list {
	background-color: #f3f2ee;
	padding: 5px;
	
	position: relative;
}

div.route_list.on:after {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	/*border-color: rgba(42, 168, 61, 0);
	border-top-color: #2aa83d;*/
	
	border-color: rgba(243,242,238, 0);
	border-top-color: #f3f2ee;
	
	border-width: 24px;
	margin-left: -24px;
}




div.route_list > ul {
	font-size: 0;
	padding: 5px;
}

div.route_list > ul > li {
	font-size: 1.3rem;
	width: 33.33%;
	display: inline-block;
	padding: 10px;
	vertical-align: top;
	
	padding: 5px;
}

div.route_list.div2 > ul > li {
	width: 50%;
}


div.route_list > ul > li > a {
	background-color: #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	
	box-shadow: 0 1px 5px rgba(0,0,0,0.1);
	
	text-decoration: none;
	display: block;
	border-radius: 4px;
	font-weight: bold;
	text-align: center;
	color: #444;
	font-size: 1.5rem;
	padding: 10px;
	
	/*border: 1px dotted #fff;*/
	border-radius: 4px;
}

div.route_list > ul > li > a > div.inner {
	display: table;
    width: 100%;
    table-layout: fixed;
}


div.route_list > ul > li > a i {
	margin-right: 0.4em;
    color: #188542;
	
	display: none;
}

div.route_list > ul > li > a > div.inner > p {
	display: table-cell;
	vertical-align: middle;
}

div.route_list > ul > li > a > div.inner > p.img { width: 32%; }
div.route_list > ul > li > a > div.inner > p.img img { vertical-align: top; }
div.route_list > ul > li > a > div.inner > p.txt {
	/*margin-top: 10px;*/
	text-align: left;
	padding-left: 15px;
	font-size: 1.4rem;
}

.no-touch div.route_list > ul > li > a:hover { background-color: #fff8e1; }

div.route_list > ul > li.current > a {
	color: #f8e250;
	background-color: #000;
	
	background-color: #444;
	
	box-shadow: 0 0 0 rgba(0,0,0,0);
	/*border: 1px solid #999;*/
}

div.route_list > ul > li.current > a i { color: #fff; }

.no-touch div.route_list > ul > li.current > a {
	color: #f8e250;
	background-color: #222;
	background-color: #444;
}



/* --- 全て表示するボタン --- */
div.route_list .all {
	padding: 10px;
	
	padding: 5px 10px 10px 10px;
}

div.route_list .all > a {
	display: block;
	padding: 15px 10px;
	font-size: 1.5rem;
	text-align: center;
	text-decoration: none;
	border-radius: 4px;
	box-shadow: 0 1px 4px rgba(0,0,0,0.1);
	background-color: #fff;
	font-weight: bold;
	color: #444;
}

.no-touch div.route_list .all > a:hover { background-color: #fff8e1; }

div.route_list .all > a i {
	margin-right: 0.4em;
	color: #188542;
}


div.route_list .all.on > a {
	background-color: #444;
	color: #fff;
}
div.route_list .all.on > a i {
	color: #fff;
}

.no-touch div.route_list .all.on > a:hover {
	background-color: #444;
}


div.route_list .all > a span.on {
	display: inline;
}

div.route_list .all > a span.off {
	display: none;
}

div.route_list .all.on > a span.on {
	display: none;
}

div.route_list .all.on > a span.off {
	display: inline;
}





span.sp { display: inline; }
br.sp { display: none; }




/* - ルートユニット
------------------------------------------------------------ */
div.section > div.unit.off { display: none; }

div.main > div.section.route.off { display: none; }



/* ----- タブ ----- */
.tab {
	background-color: #ebebeb;
	padding: 5px;
}

.tab > ul {
	font-size: 0;
}

.tab > ul > li {
	font-size: 1.3rem;
	width: 50%;
	display: inline-block;
	padding: 5px;
	vertical-align: top;
}

.tab.div3 > ul > li { width: 33.33%; }

.tab > ul > li > a {
	display: block;
	padding: 15px 10px;
	background-color: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	font-size: 1.4rem;
	font-weight: bold;
	color: #444;
	text-decoration: none;
	text-align: center;
}

.no-touch .tab > ul > li > a:hover {
	background-color: #fff8e1;
}

.tab > ul > li.current > a {
	background-color: #268300;
	color: #FFF;
}

.no-touch .tab > ul > li.current > a:hover {
	background-color: #268300;
}


.tab > ul > li > a i { margin-right: 0.4em; }
.tab > ul > li > a i.fa-chevron-circle-down { display: none; }
.tab > ul > li.current > a i.fa-chevron-circle-down { display: inline-block; }
.tab > ul > li > a i.fa-chevron-circle-right { display: inline-block; }
.tab > ul > li.current > a i.fa-chevron-circle-right { display: none; }



/*
.tab > ul {
	display: table;
	width: 100%;
	table-layout: fixed;
}

.tab > ul > li {
	display: table-cell;
	vertical-align: middle;
	text-align: center;
	border-left: 1px solid #fff;
}

.tab > ul > li:first-child { border-left: none; }

.tab > ul > li > a {
	display: block;
	background-color: #e7e7e7;
	height: 4.4rem;
	line-height: 4.4rem;
	font-weight: bold;
	color: #444;
	text-decoration: none;
	font-size: 1.4rem;
}

.no-touch .tab > ul > li > a:hover { background-color: #dcedc8; }

.tab > ul > li.current > a  {
	background-color: #268300;
	color: #fff;
	position: relative;
	background: #268300;
}

.no-touch .tab > ul > li.current > a:hover { background-color: #268300; }

.tab > ul > li.current > a:after {
	top: 100%;
	left: 50%;
	border: solid transparent;
	content: " ";
	height: 0;
	width: 0;
	position: absolute;
	pointer-events: none;
	border-color: rgba(38, 131, 0, 0);
	border-top-color: #268300;
	border-width: 10px;
	margin-left: -10px;
}
*/

/* --- 矢印 --- */
div.arrow {
	text-align: center;
	padding: 10px 0;
}

div.arrow.addon {
	padding: 0;
	position: relative;
	top: -10px;
	margin-bottom: -20px;
	z-index: 25;
	
	top: -8px;
	margin-bottom: -16px;
}

div.arrow i {
	font-size: 6rem;
	color: #3c96d6;
	
	font-size: 4rem;
	color: #aaa;
	color: #bbb;
}

/* ----- 写真ユニット ----- */
div.photo_line {
	background-color: #f3f2ee;
    padding: 10px;
	
	position: relative;
}

div.photo_line > ul { font-size: 0; }

div.photo_line > ul > li {/* --- デフォルトは3カラム --- */
	width: 33.33%;
	padding: 5px;
	font-size: 1.3rem;
	display: inline-block;
	padding: 5px 5px 0 5px;
	
	padding: 5px;
	
	vertical-align: top;
}

div.photo_line.div2 > ul > li { width: 50%; }
div.photo_line.div1 > ul > li { width: 100%; }
div.photo_line.div4 > ul > li { width: 25%; }

div.photo_line > ul > li img { vertical-align: top; }

div.photo_line.div1 > ul > li img { width: 100%; }

/*
div.photo_line > h4 {
	font-weight: bold;
	font-size: 1.3rem;
	color: #555;
	border-bottom: 1px dashed #ddd;
	margin-bottom: 5px;
	padding-bottom: 4px;
}
*/


div.photo_line > h4 {
	padding: 5px 10px;
	/*padding-right: 12px;*/
	background-color: #333;
	color: #fff;
	font-weight: bold;
	
	position: absolute;
	top: -10px;
	left: 0;
	/*
	border-radius: 0 4px 4px 0;
	border-radius: 0 2rem 2rem 0;*/
}


div.photo_line > p {
	padding: 0 5px;
	font-size: 1.3rem;
	line-height: 1.4;
}

div.photo_line > ul > li > p {
	font-size: 1.3rem;
	line-height: 1.4;
}

div.photo_line > ul > li.ex > p {
	line-height: 1.6;
	padding: 0 10px;
}


/* ----- 全天球カメラ埋め込み（iframe） ----- */
div.photo_line > ul > li div.if_wrap {
	position: relative;
    padding-bottom: 56.25%;  /* 16:9 */
    padding-top: 30px;/* YouTubeのときはChrome用に30pxのスペースをとる。 */
    height: 0;/* padding-bottomがエレメントの高さをセットするので0とする。widthはレスポンシブにセットされるので記述しない。 */
    overflow: hidden;/* このエレメントから外にはみ出るコンテンツを非表示にする。 */
}

div.photo_line > ul > li div.if_wrap iframe {
	position: absolute;
    top:0;
    left: 0;
    width: 100%;
    height: 100%;
}



/* ----- 参考情報 ----- */
div.reference  {
	padding: 20px;
	
	background-color: #fff;
	border: 1px solid #ddd;
	border: 1px dashed #ddd;
	padding: 15px;
	padding-top: 20px;
	margin: 20px 5px 10px 5px;
}

div.reference > h4 {
	/*font-size: 1.5rem;*/
	font-weight: bold;
	/*border-bottom: 1px dotted #ddd;
	padding-bottom: 0.4em;*/
	color: #555;
	
	background-color: #333;
	color: #fff;
	padding: 5px 10px;
	margin: 0 5px;
}

div.reference > ul { font-size: 0; }

div.reference > ul > li {/* --- デフォルトは3カラム --- */
	width: 33.33%;
	padding: 5px;
	font-size: 1.3rem;
	display: inline-block;
	padding: 5px 5px 0 5px;
	
	padding: 5px;
	
	vertical-align: top;
}

div.reference.div2 > ul > li { width: 50%; }
div.reference.div1 > ul > li { width: 100%; }
div.reference.div4 > ul > li { width: 25%; }

div.reference > ul > li img { vertical-align: top; }
div.reference.div1 > ul > li img { width: 100%; }






/* --- 一覧に戻るボタン --- */
.btn {
	background-color: #eaeaea;
	padding: 10px;
}

.btn.off { display: none; }

.btn > a {
	display: block;
	padding: 10px;
	font-size: 1.6rem;
	font-weight: bold;
	text-align: center;
	background-color: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
	border-radius: 4px;
	text-decoration: none;
	
	font-size: 1.5rem;
}

.no-touch .btn > a:hover { background-color: #fff8e1; }

.btn > a > i {
	margin-right: 0.5em;
	color: #188542;
	font-size: 1.3rem;
	vertical-align: middle;
	position: relative;
	top: -1px;
}








/* ------------------------------------------------------------

	979px以下

------------------------------------------------------------ */
@media screen and ( max-width : 979px ) {
	
	div.map_area {
		display: block;
	}
	
	div.map_area > div.cell {
		display: block;
	}
	
	div.map_area > div.cell.img {
		padding-right: 0;
		width: auto;
	}
	
	div.map_area > div.cell.img img {
		width: 100%;
	}
	
	div.map_area > div.cell.txt {
		/*margin-top: 0;*/
	}
	
	div.map_area > div.cell.txt > p {
		padding: 5px 10px;
	}
	
	div.map_area > div.cell.txt > ul {
		font-size: 0;
		padding: 10px;
	}
	
	div.map_area > div.cell.txt > ul > li {
		font-size: 1.3rem;
		display: inline-block;
		/*margin-left: 1em;*/
		padding: 5px;
	}
	
	div.map_area > div.cell.txt > ul > li:first-child{
		margin-left: 0;
	}
	
	
	div.route_list > ul > li {
		width: 50%;
	}
	
	/*
	div.route_list > ul > li > a {
		display: table;
		width: 100%;
	}
	
	div.route_list > ul > li > a > p {
		display: table-cell;
		vertical-align: middle;
		text-align: left;
	}
	
	div.route_list > ul > li > a > p.img {
		width: 50%;
	}
	
	div.route_list > ul > li > a > p.txt {
		padding-left: 10px;
		font-size: 1.4rem;
	}
	*/
	
}


/* ------------------------------------------------------------

	767px以下

------------------------------------------------------------ */
@media screen and (max-width : 767px) {
	
	div.map_area > div.cell.txt > ul > li > span.num { margin-right: 0.5em; }
	div.map_area > div.cell.txt > ul > li > span.txt { font-size: 1.3rem; }
	
	/*
	span.sp { display: none; }
	br.sp { display: block; }
	*/
	
	div.photo_line > ul > li {
		/*width: 50%;*/
		width: 33.33%;
	}
	
	
	.tab > ul > li {
		width: 100%;
		display: block;
	}
	
	.tab.div3 > ul > li { width: 100%; }
	
	.tab > ul > li > a {
		font-size: 1.3rem;
	}
	
	.tab + .unit {
		margin-top: 20px;
	}
	
}


/* ------------------------------------------------------------

	639px以下

------------------------------------------------------------ */
@media screen and (max-width : 639px) {
	
	div.route_list > ul > li,
	div.route_list.div2 > ul > li {
		width: 100%;
		padding: 5px;
	}
	
	div.route_list > ul > li > a,
	div.route_list.div2 > ul > li > a {
		display: table;
		width: 100%;
	}
	
	div.route_list > ul > li > a > p,
	div.route_list.div2 > ul > li > a > p {
		display: table-cell;
		vertical-align: middle;
		text-align: left;
	}
	
	div.route_list > ul > li > a > p.img ,
	div.route_list.div2 > ul > li > a > p.img {
		width: 40%;
	}
	
	div.route_list > ul > li > a > p.txt,
	div.route_list.div2 > ul > li > a > p.txt {
		padding-left: 15px;
		/*font-size: 1.4rem;*/
	}
	
	div.route_list .all {
		padding: 10px 5px;
	}
	
	/*
	span.sp { display: inline; }
	br.sp { display: none; }
	*/
	
	
	.tab > ul > li > a {
		/*font-size: 1.3rem;
		height: auto;
		line-height: 1.4;*/
	}
	
	
	div.photo_line > ul {
		max-width: 480px;
		margin: 0 auto;
	}
	
	div.photo_line > ul > li {
		width: 100%;
	}
	
	div.photo_line > ul > li.ex > p { padding: 0; }
	
	div.photo_line.div2 > ul > li {
		width: 100%;
	}
	
	div.photo_line > p {
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}
	
	
	/* ----- 参考情報 ----- */
	div.reference > h4 {
		max-width: 470px;
		margin: 0 auto;
	}
	
	div.reference > ul {
		max-width: 480px;
		margin: 0 auto;
		margin-top: 10px;
	}
	
	div.reference > ul > li { width: 100%; }
	
	div.reference > ul > li.ex > p { padding: 0; }
	
	div.reference.div2 > ul > li { width: 100%; }
	
	div.reference > p {
		max-width: 480px;
		margin-left: auto;
		margin-right: auto;
	}
	
	
}


/* ------------------------------------------------------------

	479px以下

------------------------------------------------------------ */
@media screen and (max-width : 479px) {
	
	div.photo_line > ul {
		max-width: none;
	}
	
	div.photo_line > p {
		max-width: none;
		/*margin-left: auto;
		margin-right: auto;*/
	}
	
	
	/* ----- 参考情報 ----- */
	div.reference > h4 {
		max-width: none;
		margin: 0 auto;
	}
	div.reference > ul {
		max-width: none;
		margin-top: 10px;
	}
	div.reference > p { max-width: none; }
	
	
}

/* ------------------------------------------------------------

	359px以下

------------------------------------------------------------ */
@media screen and (max-width : 359px) {
	
	div.route_list > ul > li > a > p.img {
		width: 35%;
	}
	div.route_list > ul > li > a > p.txt {
		font-size: 1.4rem;
	}
	
	span.sp { display: none; }
	br.sp { display: block; }
	
}


