
/**
 * Top-page appearance
 */

#mv {
    margin: 0 auto;
}

#mv .slick-slider {
    position: relative;
    margin: 0 auto;
    margin-bottom: 24px;
}

#mv .slick-slider::after {
    content: "";
    display: block;
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 48px;
    pointer-events: none;
    background-image: url('../images/common/header_curtain_bottom.svg');
    background-repeat:repeat-x;
    background-size:cover;
}

#mv .slick-slider .slick-slide>a,
#mv .slick-slider .slick-slide>span {
    position: relative;
    display: block;
    -webkit-transition: none;
    transition: none;
    opacity: 1;
}

#mv .slick-slider .slick-slide>a::after,
#mv .slick-slider .slick-slide>span::after {
    position: relative;
    content: "";
    display: block;
    padding-top: 28%;
    /* gradient */
    /*
    background: -moz-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 1) 100%);
    background: -webkit-linear-gradient(top, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 1) 100%);
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0) 82%, rgba(255, 255, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00ffffff', endColorstr='#ffffff', GradientType=0);
    */
}
#mv .slick-slider .slick-slide>span::after {
    padding-top: 35%;
}

#mv .slick-slider .slick-slide>a>img,
#mv .slick-slider .slick-slide>span>img {
    position: absolute;
    display: block;
    top: -70%;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#mv .slick-slider ul.slick-dots {
    display: block;
    position: absolute;
    bottom: 50px;
    left: 50%;
    width: auto;
    text-align: center;
    -webkit-transform: translateY(-50%);
    transform: translateX(-50%);
}

#mv .slick-slider ul.slick-dots>li {
    display: inline-block;
    overflow: hidden;
    color: transparent;
    margin-left: 15px;
    line-height: 10px;
}

#mv .slick-slider ul.slick-dots>li:first-child {
    margin-left: 0;
}

#mv .slick-slider ul.slick-dots>li>button {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #888;
    overflow: hidden;
}

#mv .slick-slider ul.slick-dots>li.slick-active>button {
    background-color: #fff;
}
#mv .slick-list{
    height: 40vw;
}

#main>article:first-of-type>section {
    min-height: 635px;
}

#usage.mobile{
	display:none;
}

#news {
    position: relative;
    margin-bottom: 7em;
    overflow: visible !important;
    padding-top: 1.5em;
}

#news>section>h1 {
    font-size: 18px;
    line-height: 22px;
    font-weight: bold;
    padding-bottom: .5em;
    padding-left: 2em;
    background: transparent url("../images/common/ico_speaker.svg") no-repeat left 2px;
    background-size: 22px auto;
    color: #604C3F;
}

#news>section>ul {
    display: block;
    padding: .5em 0;
    border-top: 1px solid #888;
    border-bottom: 1px solid #888;
    list-style-type: none;
}

#news>section>ul>li {
    display: block;
    position: relative;
    margin: 1em 0;
}

#news>section>ul>li>time {
    position: absolute;
    left: 0;
    display: block;
    width: 120px;
    white-space: nowrap;
}
#news>section>ul>li>span.tag {
    position: absolute;
    left: 125px;
    display: block;
    width: 75px;
    line-height: 22px;
    white-space: nowrap;
    margin: 0;
}
#news>section>ul>li span.new {
	font-size: 0.85em;
	color: red;
}
#news>section>ul>li>.news-link {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-left: 210px;
}

#news>section>ul>li>.link-disable {
    display: block;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-left: 210px;
	cursor: default;
	color: #4d4d4d;
}
#news>section>ul>li>.link-disable:hover {
	opacity: 1;
}

#news>section>aside {
    position: absolute;
    top: 0;
    right: 300px;
}

#news>section>aside>a {
    color: #604C3F;
    padding-left: 1em;
    background-image: url("../images/common/tri_brown.svg");
    background-position: left center;
    background-size: 4px 7px;
}

#news div.links {
    margin-top: 2em;
    min-height: 390px;
}

#news div.links>ul.row {
    margin-right: -30px;
    margin-top: -15px;
}

#news div.links>ul.row>.col {
    padding-right: 30px;
    padding-top: 15px;
}

#news #sidebar {
    background-color: #f1f1f1;
}

#lesson {
    padding-top: 5em;
    padding-bottom: 5em;
    background: transparent url("../images/top/top_event_back.jpg") no-repeat top center;
    background-size: cover;
}

#lesson h1 {
    color: #fff;
    text-align: center;
    font-size: 2em;
    margin-bottom: .75em;
}

#lesson h1>small {
    display: block;
    color: #fff;
    font-size: .5em;
    font-weight: normal;
	opacity: .5;
}

#lesson ul.row {
    margin-right: -45px;
    margin-top: -30px;
}
#lesson ul.row > .col {
    padding-right: 45px;
    padding-top: 30px;
}

#lesson ul.row figure > a {
    position: relative;
    padding-bottom: 2.5em;
    overflow: hidden;
}

#lesson ul.row figure > a::before {
    content: "";
    position: absolute;
    width: 100%;
    height: -webkit-calc(100% - 3em);
    height: calc(100% - 3em);
    z-index: 10;
}

#lesson ul.row figure > a > img {
    margin-top: -15px;
    margin-bottom: -15px;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

#lesson ul.row figure > a > small {
    position: absolute;
    z-index: 20;
    width: 100%;
    padding: 0 15px;
    text-align: center;
    line-height: 2.5;
    background-color: #BAD995;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

#lesson ul.row figure > figcaption {
    line-height: 1.25;
    background-color: white;
    padding: 1em;
    height: 110px;
    overflow: hidden;
}
#lesson ul.row figure > figcaption .event_date {
    font-weight: bold;
    color: #48392F;
    margin-bottom: .5em;
}
#lesson ul.row figure > figcaption .event_txt {
    line-height: 1.5em;
    color: #604C3F;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}
#lesson aside {
    margin-top: 2em;
    text-align: center;
}

#lesson aside a.btn.tri-circle {
    width: 30.33%;
    font-size: 16px;
}

#lesson aside a.btn.tri-circle::before {
    vertical-align: sub;
}


#lesson a.btn--blue {
	background-color: inherit;
	border: solid 2px #FFF;
}

#pool,
#facilities {
    padding-top: 7em;
    padding-bottom: 7em;
}
#pool {
    border-bottom: 1px solid #ccc;
}

#pool h1,
#facilities h1 {
    position: absolute;
    top: 0;
    width: 270px;
    height: 100%;
    background-repeat: no-repeat;
    background-position: top center;
    background-size: cover;
    color: #fff;
    font-size: 1.5em;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    line-height: 1;
    text-align: center;
}
#pool h1 {
    left: 0;
    background-image: url("../images/top/top_facility_back.jpg");
}
#facilities h1 {
    right: 0;
    background-image: url("../images/top/top_facility2_back.jpg");
}

#pool h1::before,
#facilities h1::before {
    content:"";
    display: block;
    height: 30%;
}

#pool h1::after,
#facilities h1::after {
    content: "";
    position: absolute;
    display: block;
    left: 0;
    top: 45%;
    margin-left: 20px;
    display: block;
    height: 50px;
    width: 50px;
    background-repeat: no-repeat;
    background-position: left bottom;
    background-size: 50px 50px;
    line-height: 1;
}

#pool h1::after {
   /* background-image: url("../images/top/mrk_sports.png"); */
}
#pool h1 span {
    display: block;
    padding-bottom: 1em;
}
#pool h1 span img{
	width: 40%;
}

#facilities h1::after {
   /* background-image: url("../images/top/mrk_facility.png"); */
}
#facilities h1 span {
    height: 50px;
    width: 50px;
    margin-bottom: 15px;
    margin-left: 21%;
}
#facilities h1 span img{
	width: 35%;
}

#pool h1 > small,
#facilities h1 > small {
position: relative;
    display: block;
    font-size: .6em;
    letter-spacing: .05em;
    margin-top: 0em;
    padding-top: 2em;
    font-weight: normal;
    text-align: center;
	line-height: 1.4em;
}

#pool h1 > small::after,
#facilities h1 > small::after {
    content: "";
    position: absolute;
    display: block;
    top: 20%;
    height: 5px;
    background-color: #956134;
}
#pool h1 > small::after {
    background-color: #90cef1;
    left: 22%;
    width: 54%;
}
#facilities h1 > small::after {
    background-color: #956134;
	left: 22%;
    width: 54%;
}

#pool ul.row,
#facilities ul.row {
    padding-bottom: 40px;
}

#pool ul.row {
    margin-left: 315px;
    margin-right: -20px;
}
#facilities ul.row {
    margin-right: 315px;
    margin-left: -20px;
	min-height: 28em;
}

#pool ul.row > .col {
    padding-right: 20px;
    padding-top: 40px;
}
#facilities ul.row > .col {
    padding-left: 20px;
    padding-top: 40px;
}

#pool ul.row figure > a,
#facilities ul.row figure >a {
    text-align: center;
    font-size: 1em;
}

#facilities ul.row figure > a {
    color: #92ce21;
}

#pool ul.row figure > a .color_default,
#facilities ul.row figure > a .color_default{
    color: #77c4e5;
    font-size: 1.1em;
    font-weight: bold;
    margin: 0.75em 0 0.5em;
    display: block;
}

#pool ul.row figure > figcaption,
#facilities ul.row figure > figcaption {
    opacity: .8;
    line-height: 1.4;
}

#pool ul a.block img,
#facilities ul a.block img{
	margin-bottom: .5em;
}


#pool aside,
#facilities aside {
    position: absolute;
    bottom: 30px;
    width: 270px;
    text-align: center;
}

#pool aside {
    left: 0;
}

#facilities aside {
    right: 0;
}

#pool aside a.btn.tri-circle,
#facilities aside a.btn.tri-circle {
    background-color: transparent;
    border: 1px solid #fff;
    border-radius: 5px;
    font-size: 16px;
    width: 80%;
}

#pool aside a.btn.tri-circle::before,
#facilities aside a.btn.tri-circle::before {
    vertical-align: sub;
}

#instagram{
	background-color:#F2F2F2;
	padding: 4em 0;
	width: 100%;
}
#instagram h1 {
    color: #333;
    text-align: center;
    font-size: 2em;
    margin-bottom: .75em;
}
#instagram h1>small {
    display: block;
    color: #956134;
    font-size: .5em;
    font-weight: normal;
}

#Instagram{
    padding: 5em 0;
}
/*
#instagram #sb_instagram .sbi_load_btn .sbi_btn_text{
    font-size: 1.25em;
    padding: 2.5em;
}
#instagram #sb_instagram .sbi_follow_btn a {
    font-size: 1.15em;
    padding: .44em 3.2em;
}
*/

/**
 * Breakpoint: ~1040px
 */

@media screen and (max-width: 1040px) {
	
	#news {
	}
	
	#news div.links {
		margin-top: 2em;
	}
	#news>section>aside {
		padding-bottom: 2em;
		top: 25px;
		right: 0px;		
	}
	#main>article:first-of-type>section {
		padding: 1.5em 0 3.5em;
	}
	
    #sidebar {
        display:block;
		position: inherit;
		width: 100%;
    	margin-left: 0;
	    padding: 2em;	
		left: 0;
		min-height: inherit !important;
    }
	#sidebar h1{
		width: 100%;
		margin-left: inherit;
		margin-top: inherit;
	}
	#sidebar #twitter #twitter-widget-0{
		width: 100% !important;
	}
	
	#sidebar .cal_bottom br{
		display: none;
	}
	#sidebar .cal_bottom a{
		margin-left: 2em;
	}
	#sidebar #sidebar_info{
		display: none;
	}
}	
/**
 * Breakpoint: ~780px
 */

@media screen and (max-width: 780px) {

    #mv {
        zoom: .5;
		margin-top: 0;
    }
    .slick-initialized .slick-slide {
        height: 100vw !important;
    }
    #mv .slick-list{
        height: 100vw;
    }
	#mv .slick-slider .slick-slide>a>img, 
	#mv .slick-slider .slick-slide>span>img {
		position: absolute;
		display: block;
		top: 0;
		object-fit: cover;
		object-position: 50% 50%;
		height: 100vw;

	}	
	
	#main>article:first-of-type>section {
		padding: 2em 0 3.5em 0;
	}
	#sidebar{
		display: block;
		padding: 0 1.5em;
	}
	#sidebar > #openinfo {
		display: none;
		padding: 0;
	}	
	#sidebar .cal_bottom br{
		display: block;
	}
	#sidebar .cal_bottom a{
		margin-left: 0;
	}	

	
	#usage.mobile{
		display: block;
		padding: 1em 1.5em;
		text-align: center;
		margin-bottom: 1.5em;
		border: solid 6px #EEE;
		margin: 2em 1.2em 0;
	}
	#usage.mobile dt{
		font-size: 1.25em;
		font-weight: bold;
		color: #333;
	}
	#usage.mobile dd span{
		font-size: 1.5em;
		font-weight: bold;
		color: #99CC33;
	}
	#usage.mobile dd:last-of-type{
		margin-top: 1em;
		padding-top: 1em;
		border-top: dashed 1px #CCC;
		font-size: .85em;
		text-align: left;
	}

    #news {
        margin-bottom: 0;
        padding-top: 0;
    }
    #news>section>ul {
        border-bottom: none;
    }

    #news>section>ul>li {
        margin: .5em 0;
    }

    #news>section>ul>li>.news-link {
        padding-top: 1.75em;
        margin-bottom: 1em;
        margin-left: 0;
        white-space: normal;
    }

    #news>section>ul>li>.link-disable  {
        padding-top: 1.75em;
        margin-bottom: 1em;
        margin-left: 0;
        white-space: normal;
    }

    #news>section>aside {
        position: static;
        border-bottom: 1px solid #888;
    }

    #news>section>aside>a {
        display: block;
        padding: 8px 18px;
        border-radius: 5px;
        background-color: #604C3F;
        color: #fff;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
        max-width: 100%;
        line-height: 20px;
        text-align: center;
    }

    #news>section>aside>a::before {
        content:"";
        display: inline-block;
        width: 20px;
        height: 20px;
        margin-right: 8px;
        background-image: url("../images/common/tri_cir_white.png");
        background-position: center;
        background-size: 20px 20px;
        vertical-align: sub;
    } 
    #news div.links {
        min-height: 0;
    }
    #news div.links>ul.row {
        margin-right: 0;
    }
    #news div.links>ul.row>.col {
        padding-right: 0;
    }
	#news div.links>ul.row>.col.col-2 {
		width: 47.5%;
	}
	#news div.links>ul.row>.col.col-2:nth-child(odd) {
		margin-right: 5%;
	}

    #lesson ul.row {
        margin-top: -10px;
        margin-right: -20px;
        border-bottom: none;
    }
    #lesson ul.row > .col {
        padding-top: 10px;
        padding-right: 20px;
    }
    #lesson ul.row figure > a > small {
        font-size: .88em;
    }
    #lesson ul.row figure > figcaption {
        display: none;
    }
    #lesson aside a.btn.tri-circle {
        width: 100%;
    }

    #pool,
    #facilities {
        padding-top: 2em;
        padding-bottom: 1em;
        border-bottom: none;
    }
    #facilities {
        padding-top: 0;
    }

    #pool h1,
    #facilities h1 {
		position: relative;
		width: 100vw;
		margin-left: -5vw;
		padding: 2em 0 4em 0;
		text-align: center;
    }
    #pool h1::before,
    #facilities h1::before {
        display: none;
    }
    #pool h1::after,
    #facilities h1::after {
		position: absolute;
		top: 0;
		left: auto;
		right: 50%;
		margin-top: 1em;
		margin-right: 2.5em;
    }
    #pool h1 span,
	#facilities h1 span{
        margin-left: 0;
        width: 100%;
    }
	#pool h1 span img,
	#facilities h1 span img{
		width: 28%;
	}

    #facilities h1 span{
        margin-left: 0;
    }
    #facilities h1 > small br{
		display: none;
    }
	#pool h1 > small br{
		display: none;
    }
    #pool h1 > small::after {
		width: 23%;
		left: 39%;
    }
    #facilities h1 > small::after {
		width: 21%;
		left: 39%;
    }

    #pool ul.row,
    #facilities ul.row {
        margin-top: 10px;
        padding-bottom: 10px;
    }
    #pool ul.row {
        margin-left: 0;
    }
    #facilities ul.row {
        margin-right: 0;
    }

    #pool ul.row > .col,
    #facilities ul.row > .col  {
        padding-top: 10px;
    }

    #pool ul.row figure > a > small,
    #facilities ul.row figure > a > small {
        display: block;
        font-size: .8em;
    }
    #pool ul.row figure > figcaption,
    #facilities ul.row figure > figcaption {
        display: none;
    }

    #pool aside,
    #facilities aside {
        top: 0;
        width: 100%;
        position: inherit;
    }

    #pool aside > a.btn.tri-circle,
    #facilities aside > a.btn.tri-circle {
        width: 100%;
        background-color: #77c4e5;
    }
	
	#instagram #sbi_load .sbi_load_btn,
	#instagram #sb_instagram .sbi_follow_btn a {
		width: 100%;
	}	
	#sb_instagram #sbi_load .sbi_follow_btn {
		margin-left: 0;
		margin-top: 1em;
		width: 100%;
	}	
}

