@charset "utf-8";

#message-text {
    width: 80%;
    max-width: 800px;
    text-align: center;
    margin: 10px auto;
    background-color: white;
}

#contents-classes{
    max-width: 1080px;
    margin: 1px auto;
    display: flex;
    flex-wrap: wrap; 
	align-items: flex-start;/*baseline;*/
    margin-bottom: 20px;
}

.class-item-scroll,
.class-item-inner {
    border: 1px solid #1d2087;
    max-width: 320px;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
	height:500px;
	display: flex;
	flex-direction: column;
	background-color:white;
	overflow:hidden;
}

.class-item-title {
    border: 1px solid #1d2087;
    max-width: 320px;
    width: 30%;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
	display: flex;
	flex-direction: column;
	background-color:white;
	overflow:hidden;
}

.class-shot {
	border-bottom: 1px solid #1d2087;
}
.class-shot img {
	margin: 10px auto 10px auto;
}

.class-item-scroll h3,
.class-item-title h3,
.class-item-inner h3 {
    background-color: #f2f2f2;
    padding-left: 10px;
    padding-right: 10px;
	overflow:hidden;
/*
	padding:5px 10px 5px 10px;
    text-align: left;
    background-color: white;
	line-height:1.2em;
	background-color:#f2f2f2;
	border-bottom: 1px solid #1d2087;
*/
}

.class-title{
}

.class-text {
	border-top:1px solid #1d2087;
	padding:10px 10px 10px 10px;
	/*	flex: 1 0 1px; */
	/* new IE bug */
	flex-grow:1;
	flex-shrink:0;
	flex-basis:1px;
}

.class-item-scroll .class-text{
    overflow: auto;
}
.class-item-inner .class-text {
    position: relative;
    overflow: hidden;
}

.class-item-inner .class-text:after {
    content: '';
    position: absolute;
    display: block;
    width: 100%;
    height: 110px;
    z-index: 99;
    bottom: 0px;
    background: linear-gradient( rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}


@media screen and (max-width: 880px) {
    /*-- -- */

	.class-item-scroll,
    .class-item-title,
    .class-item-inner {
        max-width: 380px;
        width: 46%;
    }
}

@media screen and (max-width: 720px) {
    /*-- -- */
	.class-item-scroll,
	.class-item-title {
        max-width: 98%;
        width: 98%;
		height:auto;
    }
    .class-item-inner {
        max-width: 98%;
        width: 98%;
    }
	.class-item-scroll .class-text{
		flex-grow:0;
		flex-shrink:1;
		flex-basis:auto;
	}
}
