@charset "UTF-8";

header .container .col-xs-12,
footer .container .col-xs-12{
    float: left;
}
nav {
    margin-bottom: 1%;
}

.container {
    width: 90%;
    padding-right: initial;
    padding-left: initial;
}

header .row span{
    text-align: center;
}

.main_img {
    margin-bottom: 20px;
}

/*あかり塾とは
-----------------------------------------*/


.container .col-xs-12{
    float: none;
}

/*私たちが選ばれる理由
-----------------------------------------*/
.point {
    position: relative;
    /*ポイントマークの親要素*/
    padding-top: 25px;
    margin-bottom: 100px;
}

.point p {
    margin-top: 0;
    font-size: 15px;
}

.point .point_box img {
    /*ポイント*/
    position: absolute;
    top: 0;
    left: 4%;
    width: 23%;
    z-index: 999;
}

.text {
    text-align: justify;
}


/*こんな生徒さんにおすすめ*/
ul.recommend {
    list-style-type: disc;
    padding: 2rem;
}

/*生徒の声*/
.voice {
    border: 2px solid #3CC85E;
    padding: 20px;
    width: 95%;
    margin: 10px auto 30px;
}

.voice h5 {
    background-color: #3CC85E;
    color: #fff;
    padding: 10px;
    font-size: 2rem;
    font-weight: bold;
    display: inline-block;
}

.voice ul li {
    border-bottom: 1px dashed #3CC85E;
    margin-bottom: 18px;
}

.voice ul li::before {
    content: "●";
    color: #3CC85E;
}

/*失敗例*/
.failure {
    border: 2px solid #2A579A;
    padding: 20px;
    width: 95%;
    margin: 10px auto 30px;
}

.failure h5 {
    background-color: #2A579A;
    color: #fff;
    padding: 10px;
    font-size:2rem;
    font-weight: bold;
    display: inline-block;
}

.failure ul li {
    border-bottom: 1px dashed #2A579A;
    margin-bottom: 18px;
}

.failure ul li::before {
    content: "●";
    color: #2A579A;
}

/*大事にしていること*/
h6{
    font-weight: bold;
    font-size: 1.8rem;
}

/*施設からのお知らせ
-----------------------------------------
.time {
    border-bottom: 2px dotted #7F4F21;
}

time {
    font-family: "GenJyuuGothicX", sans-serif;
    font-weight: 600;
    color: #FF6633;
    vertical-align: middle;
    font-size: 20px;
}

.news {
    margin-bottom: 30px;
}

.news p {
    font-size: 15px;
    text-align: justify;
}*/

h4 {
    font-family: "GenJyuuGothicX", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #fc6565;
    background: url(../img/h4.png) left top no-repeat;
    margin-bottom: 25px;
    letter-spacing: 0.15em;
    border-bottom: 3px solid #fc6565;
    padding: 5px 0 5px 46px;
}


/*あかり塾はなぜ学力が身につくのか？
-----------------------------------------*/
ul.StyleCheckList {
    list-style: outside none;
    line-height: 2;
    padding-left: 2.5em;

}

ul.StyleCheckList li {
    position: relative;
    font-size: 20px;
    font-weight: 700;
}

ul.StyleCheckList li::before {
    display: block;
    content: '';
    position: absolute;
    top: 0.6em;
    left: -1.5em;
    width: 0.9em;
    height: 0.5em;
    border-left: 4px solid #E55;
    border-bottom: 4px solid #E55;
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}

/*昼の部について（フリースクール）
-----------------------------------------*/
.hirunobulist {
    margin-bottom: 100px;
}

.hirunobulist ol {
    counter-reset: my-counter;
    list-style: none;
    padding: 0;
}

.hirunobulist ol li {
    margin-bottom: 10px;
    padding-left: 30px;
    position: relative;
    font-family: "GenJyuuGothicX", sans-serif;
    font-weight: 600;
    font-size: 20px;
    text-align: justify;
}

.hirunobulist ol li:before {
    font-family: "GenJyuuGothicX", sans-serif;
    font-weight: 600;
    content: counter(my-counter);
    counter-increment: my-counter;
    background-color: #3CC85E;
    color: #fff;
    display: block;
    float: left;
    line-height: 22px;
    margin-left: -30px;
    text-align: center;
    height: 25px;
    width: 25px;
    border-radius: 50%;
}

/* 料金について 
-----------------------------------------*/
#about_charges {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 15rem;
}

#about_charges .row {
    width: 90%;
    margin: 0 auto;
}

.squre {
    border: 1px solid #3CC85E;
    padding: 1rem;
}

.row span {
    display: block;
}

.squre span {
    display: block;
}

.row span.mark_1 {
    display: inline-block;
    background: linear-gradient(transparent 60%, #ffffa8 0%);
    margin-right: 5rem;
}

.mark_2 {
    font-size: 2.5rem;
    margin-top: 5rem;
    background-color: #3CC85E;
    color: #ffffff;
    width: 26rem;
    padding: 0 1rem;
    transform: translateX(-12px) rotate(-3deg);
}

.s-1 {
    text-decoration: line-through;
}

#access div.row table {
    font-size: 2rem;
    font-weight: 600;
    width: 70%;
    margin: 0 auto;
    line-height: 2.5;
}

/* アクセス・Facebook */
.access-facebook {
    display: flex;
}

/* スライドショー */
/*=== 画像の表示エリア ================================= */
.slide {
    position: relative;
    overflow: hidden;
    /* 画像のサイズに合わせて変更ください */
    width: 100%;
    height: 380px;
    margin: auto;
    /* サンプルは中央寄せの背景：白 */
    background: #fff;
}

/*=== 画像の設定 ======================================= */
.slide img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* 画像のサイズを表示エリアに合せる */
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    animation: slideshow 24s linear infinite;
}

/*=== スライドのアニメーションを段差で開始する ========= */
.slide img:nth-child(2) {
    animation-delay: 8s;
}

.slide img:last-child {
    animation-delay: 16s;
}

/*=== スライドのアニメーション ========================= */
@keyframes slideshow {
    0% {
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    28% {
        opacity: 1
    }

    38% {
        opacity: 0;
    }

    100% {
        opacity: 0;
    }
}

/*===  お知らせ機能  =========================*/
#news {
    width: 80%;
    margin: 5rem auto;
}

#news h2 {
    background-color: unset;
    color: #fc6565;
    border-radius: unset;
    border: unset;
    box-shadow: unset;
    text-align: left;
    margin-bottom: 1rem;
}

#news ul {
    border: 2px solid #3CC85E;
    border-radius: 5px;
    background-color: #ecfcdc;
    padding: 1rem 2rem 1rem 2rem;
}

#news .news-li {
    line-height: 3;
    border-bottom: 1px solid #ccc;
    position: relative;
}

#news .news-li:last-child {
    border-bottom: none;
}

#news .news-li::after {
    content: "\f054";
    font-family: "fontawesome";
    display: inline-block;
    width: 1rem;
    height: 1rem;
    position: absolute;
    top: 40%;
    right: 1%;
}

.catch {
    display: flex;
    justify-content: center;
}

.catch a:first-of-type{
    margin-right: 3rem;
}

.catch a img {
    width: 100%;
}

.news-li a:link,
.news-li a:visited {
    color: inherit;
}

[class*="cat_"] {
    border: 1px solid #ccc;
    border-radius: 2rem;
    background: #fff;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
}

#news .news-li .news-li-line {
    display: inline-block;
    width: 95%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.news-li-content {
    display: none;
    background: #fff;
    padding: 1rem;
}

.news-li-content h4 {
    width: 90%;
}

time {
    font-family: "GenJyuuGothicX", sans-serif;
    font-weight: 600;
    color: #FF6633;
    vertical-align: middle;
    font-size: 18px;
}

/*パソコン用---------------------------------------
------------------------------------------*/
@media only screen and (min-width: 768px) {

    #about .row, .tokucho .row, .greeting .row {
        display: flex;
    }

    .tokucho {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
    }

    .greeting .col-lg-5:first-of-type{
        text-align: center;
    }

    .greeting img{
        width: auto;
    }


    .tokucho2 {
        margin-bottom: 20px;
        display: flex;
        flex-direction: row-reverse;
        justify-content: center;
    }

}

/*タブレット用-------------------------------------------------------------------------------------*/
@media only screen and (max-width: 768px) and (min-width:480px) {
    .point {
        position: relative;
        /*ポイントマークの親要素*/
        padding-top: 25px;
        margin-bottom: 50px;
        overflow: hidden;
    }

    .point p {
        margin-top: 0;
        font-size: 15px;
    }

    .point .point_box img {
        /*ポイント*/
        position: absolute;
        top: 0;
        left: 10px;
        width: 90px;
        z-index: 999;
    }

    .point img {
        /*イメージ画像*/
        /*float: left;
        width: 47%;*/
        margin-right: 3%;
    }

    /*.text {
    text-align: justify;
    float:left;
    width:50%;
}*/
}

/*スマホ用
------------------------------------------------------------------------------------------------*/
@media only screen and (max-width: 480px) {
    #carousel-example-generic {
        display: none;
    }

    .point {
        margin-bottom: 50px;
    }

    .text p {
        font-size: 13px;
        text-align: justify;
    }

    /*施設からのお知らせ*/
    time {
        font-family: "GenJyuuGothicX", sans-serif;
        font-weight: 600;
        color: #FF6633;
        vertical-align: middle;
        font-size: 18px;
    }

    .news {
        margin-bottom: 30px;
    }

    .news p {
        font-size: 13px;
        text-align: justify;
    }

    ul.StyleCheckList li {
        position: relative;
        font-size: 18px;
        font-weight: 700;
    }

    /* 料金について 
    -----------------------------------------*/
    .row span.mark_1 {
        margin-right: 0;
    }

    #about_charges div.squre {
        margin-bottom: 5rem;
    }

    #access div.row table {
        width: 80%;
    }

    #access div.row table tr {
        display: grid;
    }

    /* アクセス・Facebook */
    .access-facebook {
        display: block;
    }

    /* スライダー */
    .slide {
        height: 160px;
    }

    /* お知らせ機能 */
    #news h2 {
        text-align: center;
    }

    #news {
        width: 100%;
    }

    #news .news-li::after {
        top: 8px;
        bottom: 32%;
    }

    #news ul {
        padding: 1rem;
    }

    .catch {
        flex-direction: column;
    }

    .catch a:first-of-type{
        margin-right: 0;
        margin-bottom: 2rem;
    }

    .news-li-line {
        display: block;
    }

    .news-li-content {
        line-height: 2;
    }

    .news-li-content h4 {
        font-size: 1.5rem;
    }
}