@charset "UTF-8";

html {
    font-size: 62.5%;
    overflow: auto;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    color: #fff;
    text-align: center;
    font-size: 1.4rem;
    font-family: "M PLUS Rounded 1c", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
    overflow: hidden;
}

.slideswiper {
    background-color: #fff;
}

.slideshow {
    width: 100%;
    height: 100%;
}

.slide {
    background-position: center;
    background-size: cover;
}

.slide img {
    display: block;
    width: 100%;
}

.header {
    background: #151515 url('../img/header_bg.png') no-repeat left bottom;
    background-size: cover;
    
    padding: 170px 30px 80px;
    height: 31.3%;
    /* width: 100vw;
    height: 100vh; */
}

.site-title-sub {
    margin: 0 0 30px;
    letter-spacing: 1px;
    font-size: 2.2rem;
    font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.site-title-sub::before,
.site-title-sub::after {
    content: '';
    display: inline-block;
    width: 140px;
    height: 2px;
    margin: 0 30px;
    background-color: #fff;
    vertical-align: middle;
}

.site-title br {
    display: none;
}

h2 {
    font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}
.site-title {
    margin: 50px 0 40px;
    font-size: 6rem;
    font-family: "M PLUS 1p", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
}

.site-description {
    margin-bottom: 50px;
    color: #888;
    font-size: 1.6rem;
}

.button {
    display: inline-block;
    width: 400px;
    padding: 20px;
    border-radius: 4px;
    background-color: #fff;
    color: rgba(0,0,0,1.0);
    text-decoration: none;
    letter-spacing: 1px;
    font-size: 2em;
}

.button:hover {
    opacity: 0.9;
}

.button-showy {
    background-color: #f1b400;
}

.information {
    padding: 80px 30px;
    background-color: #fff;
    color: #444;
}

.tvcm {
    padding: 80px 30px;
    background-color: #f1b400;
    color: #fff;
}

.information-text table {
    font-size: 130%;
    margin: 50px 10% 100px;
    width: 80%;
    table-layout: fixed;
}
.oshirase td:first-child{
    width: 30%;
}
.oshirase td {
    padding:5px 15px;
    vertical-align: top;
    text-align: justify;
}

.information-abst {
    font-size: 1.6em;
    width: 80%;
    margin: 40px auto 0;
    line-height: 1.5;
}


.information i {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    color: #3261AB;
    font-size: 12rem;
    line-height: 195px;
}

.information-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 50%;
    margin: 60px auto 0px;
}

.information-box {
    position: relative;
    flex-basis: 50%;
    margin-bottom: 100px;
}

.information-box::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
}

.information-title{
    margin: 0 20px 20px;
    font-size: 2.5em;
}

.information-text {
    font-size: 1.7rem;
    line-height: 1.7;
    text-align: center;
}

.information-text .button {
    width: 60%;
    margin: 20px auto 0px;
    padding: 3px;
    text-align: center;
    font-size: 1.7em;
}

.information-text .button-ghost {
    border: 1px solid #000;
    background-color: rgba(255, 255, 255, 0.15);
    color: #444;
}

.video-message {
    background-color: #afa58d;
    padding-top: 100px;
}

.video-message-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 60px auto 0px;
}

.video-message-box {
    position: relative;
    flex-basis: 50%;
    margin: 0 auto 100px;
}

.video-message::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
}

.video-message-title{
    margin: 0 20px 20px;
    font-size: 2.5em;
}

.video-message-title br{
    display: none;
}

.video-message-text {
    font-size: 1.7rem;
    line-height: 1.7;
    text-align: center;
}

.video-message-abst {
    font-size: 1.6em;
    width: 60%;
    line-height: 1.5;
    margin-left: 20%;
}

.video-message br {
    display: none;
}

.video-message-text .button {
    width: 60%;
    margin: 20px auto 0px;
    padding: 3px;
    text-align: center;
    font-size: 1.5em;
    color: #444;
}

.video-message-text .button-ghost {
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.15);
}

.about-kosen {
    padding: 80px 30px;
    background-color: #fff;
    color: #444;
}

.about-kosen-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    table-layout: fixed;
    margin: 60px auto 2em;
}


.about-kosen-box1 {
    position: relative;
    vertical-align: top;
    flex-basis: 24%;
    text-align: center;
}

.about-kosen-box2 {
    position: relative;
    vertical-align: top;
    text-align: left;
    font-size: 1.6em;
    padding-left: 50px;
    line-height: 1.5;
    flex-basis: 75%;
    padding: 80px 30px;
}

.heading {
    margin: 50px 30% 100px;
    letter-spacing: 2px;
    font-size: 5rem;
    position: relative;
    padding: 0.5em 1em;
    text-align: center;
}
  
.heading:before,
.heading:after {
    position: absolute;
    content: '';
  }
  
.heading:after {
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border-top: 2px solid;
    border-left: 2px solid;
  }
  
.heading:before {
    right: 0;
    bottom: 0;
    width: 50px;
    height: 50px;
    border-right: 2px solid;
    border-bottom: 2px solid;
  }

.about-niihama {
    padding: 80px 30px;
    background-color: #007ab7;
}

.about-niihama-text {
    font-size: 1.6em;
    width: 80%;
    margin: 60px auto 0;
    line-height: 2;
}
.about-niihama-text-br {
    display: none;
}
.dept-wrapper {
    display: flex;
    flex-wrap: wrap;
    margin-top: 60px;
    margin-bottom: 0px;
    width: 100%;
}

.dept-box {
    position: relative;
    flex-basis: 20%;
    margin-bottom: 100px;
}

.dept-box::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
}
.dept-text {
    display: table-cell;
    vertical-align: top;
    font-size: 1.5rem;
    line-height: 1.7;
    text-align: justify;
}

.dept-text .button {
    width: 60%;
    margin-top: 20px;
    padding: 3px;
    margin-left: 20%;
    text-align: center;
    font-size: 1.2em;
    color: #fff;
}

.dept-text .button-ghost {
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.dept-img {
    display: block;
    width: 100%;
    margin: 0 0 20em;
}

.dept-description {
    position: absolute;
    top: calc(56.25% + 10px);
    left: 0;
    width: 100%;
    z-index: 1;
}

.dept-description-inner {
    display: table;
    width: 100%;
    height: 50%;
    padding: 20px;
}

.dept-heading {
    width: 100%;
    position: relative;
    padding: 20px;
    font-size: 2.5rem;
}

.frame-wrapper__video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    overflow: hidden;
    margin-bottom: 56.25%;
}

.frame-wrapper__video_small {
    position: relative;
    height: 0;
    padding-bottom: 315px;
    overflow: hidden;
    width: 560px;    
}
  
.frame-wrapper__video iframe {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;    
}

.frame-wrapper__video img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: cover;
}

.frame-wrapper__video_small iframe{
    width: 560px;
    height: 315px;
    position: absolute;
    top: 0;
    left: 0;    
}


.afterschool {
    padding: 80px 30px;
    background-color: #fff;
    color: #444;
}

.afterschool-abst {
    font-size: 1.6em;
    width: 60%;
    margin: 60px auto 0;
    line-height: 1.5;
}

.afterschool i {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    color: #f1b400;
    font-size: 12rem;
    line-height: 195px;
}

.afterschool-title{
    margin: 0 20px 20px;
    font-size: 2.5rem;
}

.afterschool-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 50px auto 0;
}

.afterschool-box {
    flex-basis: 25%;
}

.afterschool-text {
    font-size: 1.8rem;
    line-height: 1.5;
    padding: 0px 20px;
}


.afterschool-text .button {
    margin-top: 20px;
    padding: 3px;
    text-align: center;
    font-size: 1.2em;
    color: #f1b400;
    width: 80%;
    margin-left: 10%;
}

.afterschool-text .button-ghost {
    border: 1px solid #f1b400;
    background-color: rgba(255, 255, 255, 0.15);
}

.button-inv:hover {
    opacity: 0.9;
}

.career {
    padding: 80px 30px;
    background-color: #009250;
    color: #fff;
}

.career-abst {
    font-size: 1.6em;
    width: 80%;
    margin: 60px auto 0;
    line-height: 2.0;
    color: #fff;
}

.career-abst .button {
    margin-top: 20px;
    padding: 10px;
    text-align: center;
    font-size: 1.2em;
    color: #fff;
    width: 50%;
}

.career-abst .button-ghost {
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.career-abst-br {
    display: none;
}



.moreinfo {
    padding: 80px 30px;
    background-color: #fff;
    color: #444;
}

.moreinfo-abst {
    font-size: 1.6em;
    width: 80%;
    margin: 60px auto 0;
    line-height: 1.5;
    color: #444;
}

.moreinfo-abst br {
    display: none;
}

.moreinfo i {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    color: #444;
    font-size: 12rem;
    line-height: 195px;
}

.moreinfo-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 80%;
    margin: 60px auto 0px;
}

.moreinfo-box {
    position: relative;
    flex-basis: 33.3%;
    margin-bottom: 100px;
}

.moreinfo-box::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
}

.moreinfo-title{
    margin: 0 20px 20px;
    font-size: 2.5em;
}

.moreinfo-title br{
    display: none;
}

.moreinfo-text {
    font-size: 1.7rem;
    line-height: 1.7;
    text-align: center;
}

.moreinfo-abst br {
    display: none;
}

.moreinfo-text .button {
    width: 60%;
    margin: 20px auto 0px;
    padding: 3px;
    text-align: center;
    font-size: 1.5em;
    color: #444;
}

.moreinfo-text .button br {
    display: none;
}

.moreinfo-text .button-ghost {
    border: 1px solid #444;
    background-color: rgba(255, 255, 255, 0.15);
}



.examinfo {
    padding: 80px 30px;
    background-color: #5D639E;
    color: #fff;
}

.examinfo-abst {
    font-size: 1.6em;
    width: 80%;
    margin: 40px auto 0;
    line-height: 1.5;
    color: #fff;
}

.examinfo-abst br {
    display: none;
}

.examinfo i {
    width: 200px;
    height: 200px;
    margin-bottom: 30px;
    color: #fff;
    font-size: 12rem;
    line-height: 195px;
}

.examinfo-wrapper {
    display: flex;
    flex-wrap: wrap;
    width: 60%;
    margin: 60px auto 0px;
}

.examinfo-box {
    position: relative;
    flex-basis: 33.33%;
    margin-bottom: 100px;
}

.examinfo-box::after {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
}

.examinfo-title{
    margin: 0 20px 20px;
    font-size: 2.5em;
}

.examinfo-text {
    font-size: 1.7rem;
    line-height: 1.7;
    text-align: center;
}

.examinfo-text .button {
    width: 60%;
    margin: 20px auto 0px;
    padding: 3px;
    text-align: center;
    font-size: 1.7em;
    color: #fff;
}

.examinfo-text .button-ghost {
    border: 1px solid #fff;
    background-color: rgba(255, 255, 255, 0.15);
}

.footer {
    padding: 50px 0px;
    font-size: 1.8rem;
    color: #444;
    line-height: 2;
}

.keyword1 {
    font-size: 4rem;
}

.keyword2 {
    font-size: 4rem;
}


 
@media screen and (min-width: 1024px) {
    .slideshow .slick-slide:not(.slick-center) {
        -webkit-filter: opacity(40%);
        -moz-filter: opacity(40%);
        -o-filter: opacity(40%);
        -ms-filter: opacity(40%);
        filter: opacity(40%);
        transition: 0.2s linear;
    }
    
    .slideshow .slick-slide{
        margin: 0 2vw;
      }
    
}


@media screen and (max-width: 1023px) {
    
    .heading {
        margin: 50px 50px 100px;
        letter-spacing: 2px;
        font-size: 7rem;
        position: relative;
        padding: 0.5em 0.5em;
        text-align: center;
    }

    .header{
        width: 100vw;
        height: 50vh;
    }


    
    .keyword1 {
        font-size: 6rem;
    }
    
    .keyword2 {
        font-size: 8rem;
    }

    .site-title-sub {
        padding-top: 10vh;
        font-size: 4rem;
    }
    
    .site-title-sub::before,
    .site-title-sub::after {
        width: 60px;
    }
    .site-title {
        font-size: 8rem;
    }

    @media (orientation: landscape) {
        .header{
            width: 100vw;
            height: 100vh;
        }
        .site-title-sub {
            font-size: 2rem;
        }
        
        .site-title-sub::before,
        .site-title-sub::after {
            width: 60px;
        }
        .site-title {
            font-size: 4rem;
        }
    }
    .information-box {
        flex-basis: 100%;
    }
    .information-title br{
        display: inline;
    }
    .information-abst {
        width: 100%;
        font-size: 4rem;
        text-align: justify;
    }
    .information-abst-br {
        display: inline;
    }
    .information-wrapper {
        width: 100%;
    }
    .information-abst br {
        display: inline;
    }
    .information-title {
        font-size: 6rem;
    }
    .information-text {
        font-size: 4rem;
    }
    .information-text br{
        display: inline;
    }
    .information-text table {
        font-size: 100%;
    }
    .video-message-abst {
        font-size: 4rem;
    }
    .about-kosen-wrapper,
    .about-kosen-box1,
    .about-kosen-box2 {
        display: block;
        margin-bottom: 5em;
    }
    /* .dept-wrapper, .dept-box {display: block;}*/
    .about-kosen-box1 {
        flex-basis: 100%;
    }
    .about-kosen-box2 {
        flex-basis: 100%;
        font-size: 4rem;
        line-height: 1.8;
    }
    .about-niihama-text {
        width: 100%;
        text-align: justify;
        line-height: 1.8;
    }
    .about-niihama-text-br {
        display: inline;
    }
    .dept-box {
        flex-basis: 100%;
        margin: 0px 0px 200px;
    }
    .dept-heading { margin-top: 50px; }
    .frame-wrapper__video_small {
        position: relative;
        width: 100%;
        height: 0;
        padding-bottom: 56.25%;
        overflow: hidden;
    }
    .frame-wrapper__video_small iframe {
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;    
    }
    .dept-wrapper {
        margin-bottom: 0px;        
    }
    .about-niihama-text {
        width: 90%;
        margin-top: 20px;
        text-align: justify;
        line-height: 1.8;
        font-size: 4rem;
    }
    .dept-text {
        font-size: 3.5rem;
    }
    .dept-heading {
        font-size: 5rem;
    }
    .afterschool-box {
        flex-basis: 100%;
        margin-bottom: 200px;
        width: 100%;
    }
    .afterschool i {
        width: 500px;
        height: 500px;
        margin-bottom: 0px;
        color: #f1b400;
        font-size: 30rem;
        line-height: 500px;
    }
    .afterschool-wrapper {
        width: 100%;
    }
    .afterschool-title {
        font-size: 6rem;
        margin-bottom: 100px;
    }
    .afterschool-abst {
        width: 100%;
        text-align: justify;
        font-size: 4rem;
    }
    .afterschool-text {
        text-align: justify;
        width: 100%;
        font-size: 3.5rem;
    }
    .career-abst .button {
        width: 90%;
        margin-left: 5%;
    }

    .career-abst {
        text-align: justify;
        width: 100%;
        line-height: 1.8;
        font-size: 4rem;
    }

    .career-abst br {
        display: inline;
    }

    .more-info-br {
        display: inline;
    }

    .moreinfo-box {
        flex-basis: 100%;
    }
    .moreinfo-title br{
        display: inline;
    }
    .moreinfo-abst {
        width: 100%;
        font-size: 4rem;
    }
    .moreinfo-abst-br {
        display: inline;
    }
    .moreinfo-wrapper {
        width: 100%;
    }
    .moreinfo-abst br {
        display: inline;
    }
    .moreinfo-title {
        font-size: 6rem;
    }
    .moreinfo-text {
        font-size: 4rem;
    }

    .examinfo-box {
        flex-basis: 100%;
    }
    .examinfo-wrapper {
        width: 100%;
    }
    .examinfo-abst {
        font-size: 4rem;
    }
    .examinfo-title {
        font-size: 6rem;
    }
    .examinfo-text {
        font-size: 4rem;
    }
    .site-title br {
        display: inline;
    }
    .header {
        padding: 100px 10px 80px;
    }
    .examinfo-abst br {
        display: inline;
    }
    .moreinfo-text .button br {
        display: inline;
    }
    .video-message-box {
        flex-basis: 100%;
    }
    .video-message-abst {
        width: 80%;
        margin-left: 10%;
    }
    .video-message-abst br{
        display: inline;
    }
    .video-message-wrapper {
        width: 90%;
    }
    .footer {
        font-size: 4rem;
        width: 90%;
        margin-left: 5%;
    }
}
@media (min-width: 1024px) and (max-width: 1280px) {
    .dept-box {
        flex-basis: 50%;
        margin-bottom: 50px;
    }
    .slideshow {
        width: 100%;
        height: 100%;
        margin: 0;
    }
    .information-abst br{
        display: inline;
    }
    .information-wrapper {
        width: 100%;
    }
    .information-text .button {
        width: 90%;
    }
    .information-text br{
        display: inline;
    }
    .information-title br {
        display: inline;
    }
    .information-text .button br {
        display: inline;
    }
    .information-abst br {
        display: inline;
    }

    .about-kosen-box1 {
        flex-basis: 35%;
    }
    
    .about-kosen-box2 {
        flex-basis: 60%;
        margin: 0 auto;
    }

    .about-niihama-text-br {
        display: inline;
    }
    .afterschool-box {
        flex-basis: 50%;
        margin-bottom: 100px;
    }
    .career-abst .button {
        width: 80%;
    }
    .career-abst br {
        display: inline;
    }
    .site-title {
        font-size: 4.5rem;
    }
    .afterschool-abst {
        width: 80%;
    }
    .more-info-br {
        display: inline;
    }
    .moreinfo-abst br{
        display: inline;
    }
    .moreinfo-wrapper {
        width: 100%;
    }
    .moreinfo-text .button {
        width: 90%;
    }
    .moreinfo-title br {
        display: inline;
    }
    .moreinfo-text .button br {
        display: inline;
    }
    .moreinfo-abst br {
        display: inline;
    }
    .examinfo-wrapper {
        width: 100%;
    }
    .video-message-wrapper {
        width: 90%;
    }
    .video-message-abst {
        width: 80%;
        margin-left: 10%;
    }
    .heading {
        margin: 50px 10% 100px;
        letter-spacing: 2px;
        font-size: 5rem;
        position: relative;
        padding: 1em 1em;
        text-align: center;
    }
      
}

@media (min-width: 1281px) and (max-width: 1920px) {
    .heading {
        margin: 50px 15% 100px;
        letter-spacing: 2px;
        font-size: 5rem;
        position: relative;
        padding: 1em 1em;
        text-align: center;
    }
    .information-wrapper {
        //width: 80%;
    }
    .information-text .button {
        width: 90%;
    }
    .information-text br {
        display: inline;
    }
    .dept-box {
        flex-basis: 33.33%;
        margin-bottom: 50px;
    }
    .about-kosen-box1 {
        flex-basis: 29%;
    }
    .about-kosen-box2 {
        flex-basis: 70%;
    }
    .afterschool-box {
        flex-basis: 50%;
        margin-bottom: 100px;
    }
    .moreinfo-abst br {
        display: inline;
    }
    .more-info-br {
        display: inline;
    }
    .career-abst .button {
        width: 70%;
    }
    .site-title {
        font-size: 5.0rem;
    }
    .moreinfo-wrapper {
        width: 90%;
    }
    .moreinfo-text .button {
        width: 90%;
    }
    .examinfo-wrapper {
        width: 90%;
    }
    .video-message-wrapper {
        width: 90%;
    }
}


