.mainlead {
    border: 1px solid #CC0000;
    margin-top: 30px;
    border-radius: 8px;
    text-align: center;
    padding: 0.5em;
    background-color: #f9f7f7;
}

.mainlead .sub {
    color: #CC0000;
    font-weight: bold;
    font-size: 1.5em;
}

.maintext {
    line-height: 1.1em;
    font-size: 300%;
    font-weight: bold;
    color: #CC0000;
}
.condition {
    margin-top: 1em;
    color: #935f20;
    font-weight: bold;
}

.special {
    color: red;
    font-weight: bold;
    font-size: 48px;
    line-height: 1.1em;
}
.caution {
    font-size: 0.8em;
    line-height: 2em;
}

.price h2 {
    font-size: 2.4rem;
    color: #333;
    margin-top: 2em;
    border-bottom: 1px solid #CCC;
    width: 80%;
    margin: 0 auto;
}
.price dl {
    display: flex;
    width: 80%;
    margin: 0 auto;
    border: 1px solid #CCC;
    background-color: #FFF;
    border-radius: 30px;
    overflow: hidden;
    margin-top: 30px;
}

.price dl dt {
    width: 45%;
    text-align: center;
    background-color: #00F;
    color: #FFF;
}

.price dl dd {
    text-align: center;
    color: #333;
    width: 55%;
}

.price p {
    font-size: 1.4rem;
    color: #333;
}

.price ul li {
    font-size: 1.8rem;
    color: #333;
    text-align: center;
}

.price ul {
    width: 80%;
    margin: 0 auto;
}

.caution {
    font-size: 0.8em;
    line-height: 2em;
}

.price table tr.midashi th,.price table tr.midashi td {
    background-color: #F4F4F4;
}

.price table tr.special th, .price table tr.special td {
    background-color: yellow;
    font-weight: bold;
    color: red;
}

.price p {
    color: red;
    font-weight: bold;
    font-size: 1.8rem;
}

.price table {
    width: 80%;
    margin: 50px auto 0 auto;
    border: 1px solid #CCC;
    border-collapse: collapse;
}

.price table th {
    color: #333;
    padding: 0.2em;
    border: 1px solid #CCC;
    background-color: #EEEEFF;
}

.price table td {
    border: 1px solid #CCC;
    padding: 0.2em;
    color: #333;
}


.price .caution h3 {
    width: 80%;
    text-align: left;
    margin: 1em auto 0.2em auto;
    text-align: center;
    border-bottom: 1px solid #CCC;
}

.caution ul li {
    text-align: left;
    font-size: 1.2rem;
    line-height:1.2em;
}

.price .caution {
    margin-bottom: 30px;
}

.caution h3 {}

.price {
    border: 1px solid #CCC;
    border-radius: 8px;
    text-align: center;
    font-size: 28px;
    color: red;
    padding: 0.5em;
    background-color: #FFFAFA;
    margin-top: 30px;
}

.price .caution {
    font-size: 18px;
    color: #333;
}
.formarea .time {
    font-size:80%;
}
.classlist h2{
    margin-top:2em;
    text-align:center;
}
.classline {
	display:flex;
	width:100%;
	border-bottom:1px dotted #CCC;
	padding:0.3em 0;
	margin:0 auto;
	font-size:14px;
	flex-wrap:wrap;
}
.classname{
	width:30%;
	font-weight:bold;
	padding:0;
}
.teacher{
	width:8%;
}
.time{
	width:15%;
    text-align: center;
}
.level {
    width: 16%;
    text-align: center;
}
.level span.target{
    font-weight: bold;
}
.level .target{
    color:#f24e4e;
}
/*
.level .l4.target{
    color:#f78145;
}
.level .l3.target{
    color:#f2c94e;
}
.level .l2.target{
    color:#a0b046;
}
.level .l1.target,
.level .le{
    color:#11644d;
}
*/
.day {
    width: 20%;
    text-align: center;
}

.detail {
    width: 11%;
    text-align:right;
}

.detailinfo {
    width: !00%;
    font-size: 14px;
    padding: 0.5em;
    border-radius: 5px;
    background-color: #F4F4F4;
    margin-top:5px;
    display:none;
}
.detailinfo .sub{
font-weight:bold;
display:block;
}
.hanrei{
	display:flex;
	padding:0.3em 0;
	margin:0 auto;
	background-color:#F3F3F3;
}
a.detailbutton {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: blue;
    color: #FFF;
}
a.closebutton {
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    background-color: red;
    color: #FFF;
    display:none;
}
.classlist h3{
    margin-top:1em;
}
.classline.history .classname {
    width: 73%;
}

.classline.history .classname span {
    color: red;
    padding-left: 0.8em;
}

.classline.history {
    background-color: #F4F4F4;
}


@media (max-width:768px){
    .mainlead {
        margin: 0 1em;
    }
    .price {
        margin:30px 0.5em 0 0.5em;
        font-size:20px;
    }
    .price dl, .price ul, .price .early, .price h2, .price .campaign, .price .caution h3{
        width:98%;
    }
    .price ul li, .price  p {
        text-align:left;
    }
    .mainlead {
        margin: 0 1em;
    }
    
    .classlist {
        /* padding: 0 1em; */
    }
    
    .classlist h2, h3 {
        padding: 0 1em;
    }
    
    .classlist h2 {
        font-size: 18px;
    }
	.classline{
		display:block;
		clear:both;
		width:100%;
		box-sizing:border-box;
		padding:0.5em 1em;
	}
	.classline:after{
		content:"";
		display:block;
		clear:both;
	}
		.gakunen{
			width:100%;
		}
	.time{
		width:100%;
	}
	.formarea h2{
	    font-size:18px;
	   }
	   
.formarea .term{
    display:block;
}
.formarea .time {
    display:block;
    padding-left:1em;
}
.pricetable {
    display: block;
}

.price table {
    width: 100%;
    margin-top: 0;
}

.price table th {
    width: 40%;
}

.price h2 {
    margin-bottom: 1em;
}

.classline.midashi {
    display:none;
}

.classname {
    width: 100%;
}

.teacher {
    width: 100%;
}

.level {
    width: 100%;
    text-align: left;
}

.day {
    width: 100%;
    text-align: left;
}

.time {
    width: 100%;
    text-align:left;
}

.detail {
    width: 100%;
}
.special {
    font-size: 32px;
}

.classline.history .classname span {
    display: block;
}

.classline.history .classname {
    width: 100%;
}

.elemlabel {
    float: none;
    width: 100%;
    text-align: left;
    box-sizing: border-box;
    padding: 0 1em;
}

.elemobj {
    box-sizing: border-box;
    width: 100%;
    padding: 0 1em;
}

.early {}

.early p {
    margin: 0;
}
}