@charset "utf-8";

@import url(https://fonts.googleapis.com/css2?family=Comfortaa:wght@300..700&family=Kiwi+Maru:wght@400;500&display=swap);
/* CSS Document */
* {
    margin: 0;
    padding: 0;
}
body {
	margin: 0px;
	background:#FFF;
	width:100%;
	padding-top:220px;
}

body,td,th {
	font-size: 14px;
	font-family: "Comfortaa","Kiwi Maru","メイリオ", Meiryo, "ヒラギノ角ゴ Pro W3", "Hiragino Kaku Gothic Pro", Osaka, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
	color:#000;
	/*letter-spacing:1px;*/
	font-style: normal;
	line-height: 160%;
	font-weight: 400;
	text-align:center;
}

a img,
a {
	color:#000;
	text-decoration:none;
	transition:all 0.3s ease;
	-webkit-transition: all .3s;
	outline: none;
}

a:hover {
	color:#333;
}

a:hover img {
	opacity: 0.7;
	filter: alpha(opacity=70);
	-moz-opacity:0.7;
}

@media screen and (min-width: 901px) {
  .sp { display: none !important; }
}
@media screen and (max-width: 900px) {
  .pc { display: none !important; }
}

/*** header *******************************************/

header {
    position: fixed;
	top:0;
	width:100%;
    /*min-width: 1240px;*/
    height: 220px;
	z-index:9999;
	background: rgba(255,255,255,1);
    transition:all 0.5s ease;
	-webkit-transition: all .3s;
}

header::after {
    content: "";
    width: 100%;
    height: 60px;
    display: block;
    position: absolute;
    bottom: -50px;
    background: url("../img/base/h_line.svg") repeat-x center;
    background-size: auto 60px;
    transition:all 0.3s ease;
	-webkit-transition: all .3s;
}

header.thin {
    top:-200px;
    opacity: 0;
    pointer-events: none;
}

header.thin::after {
    opacity: 0;
}

#header {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    position:relative;
}


#logo {
	position:absolute;
    width: calc(100% / 3);
    height: 220px;
    margin: 0 auto 0;
    text-align: center;
    display:table-cell;
}

#logo img {
	position: relative;
    width: 230px;
    vertical-align: middle;
    height: 200px;
	margin: auto;
	transition:all 0.3s ease;
	-webkit-transition: all .3s;
}

.h-nav {
    position: absolute;
    right: 15px;
    top: 45px;
    width: calc(100% - (100% / 3));
    height: 140px;
}

.nav-sub {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    height: 38px;
    width: 465px;
    position: absolute;
    right: 0;
    top: 0;
    gap:25px;
    transition:all 0.3s ease;
	-webkit-transition: all .3s;
}


.thin .nav-sub{
    opacity: 0;
}

.nav-sub li {
    height: 38px;
}

.nav-sub li a {
    text-align: center;
    border-radius: 19px;
    color: #FFF;
    font-size: 20px;
    height: 38px;
    width: 100%;
    display: block;
    line-height: 40px;
}

.nav-sub .h-contact  {
    width: 190px;
}

.nav-sub .h-contact a {
    background: #fcc80e;
}

.nav-sub .h-contact a:hover {
    background: #fde48e;
}

.nav-sub .h-login {
    width: 250px;
}

.nav-sub .h-login a {
    background: #e95383;
}

.nav-sub .h-login a:hover {
    background: #f3a9c1;
}

.nav-main {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    height: 85px;
    max-width: 800px;
    width: 100%;
    position: relative;
    top:55px;
}

.nav-main li {
    width: calc(100% / 8 - 0px);
    text-align: center;
}

.nav-main li img {
    height: 85px;
    width: auto;
}

a:hover .nav-main li img {
	opacity: 0.5;
	filter: alpha(opacity=50);
	-moz-opacity:0.5;
}

/******************************************/

main {
    min-width: 100%;
}


.box {
	position:relative;
}


.main-head {
    position: relative;
    height: 550px;
    width: 100%;
    z-index: 1;
    display:block;
    overflow: hidden;
}

.main-head h1 {
    font-size: 46px;
    color: #FFF;
    /*font-weight: 500;*/
    text-align: center;
    display:block;
    vertical-align:middle;
    z-index: 2;
    width: 100%;
    letter-spacing: 13px;
    position: absolute;
    top: calc(50% - 26px);
    opacity: 0;
    animation: fadeH1 1.6s 0.9s ease-in-out forwards;
}

@keyframes fadeH1 {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


.main-head .img-head {
    position: absolute;
    display:block;
    width: 100%;
    height: 550px;
    z-index: 1;
    top:0;
    left: 0;
    object-fit: cover;
}


/**** footer **************************************************/


footer {
    background:#ef820b url(../img/base/bg_footer.png) repeat;
	height:210px;
	position:relative;
    text-align: center;
}

#footer {
	height:100%;
    width: 660px;
    margin: 0 auto;
	position:relative;
}


#footer .f-info {
	width: 290px;
    position: absolute;
    left: 0px;
    top: 40px;
}

#footer .f-info h2 {
    margin-bottom: 10px;
}

#footer .f-info p {
    width: 100%;
    text-align: center;
    font-size: 15px;
    margin-bottom: 12px;
    letter-spacing: 2.2px;
}

#footer .txt-copy {
    font-size: 12px;
    display: block;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 18px;
}


#footer .btn-contact {
	width: 330px;
    position: absolute;
    right: 0px;
    top: 84px;
    height: 54px;
    text-align: center;
    font-weight: 500;
    color: #000;
    font-size: 20px;
    display: block;
    line-height: 54px;
    background: #ffcc02;
    border-radius: 27px;
}

#footer .btn-contact:hover {
    background: #fedb5d;
}

#footer .btn-contact::after {
    content: url('../img/base/f_contact.svg');
    display: block;
    position: absolute;
    top:-44px;
    left: 30px;
    height: auto;
    width: 268px;
}

.btn-topback {
    position: fixed;
    bottom: calc(39% - 27px);
    right: 5%;
    display: block;
    height: 54px;
    width: 54px;
    background: #81c4c9;
    z-index: 9999;
    transition:all 0.6s ease;
	-webkit-transition: all .6s;
    opacity: 0;
    pointer-events: none;
}

.btn-topback.active {
    opacity: 1;
    pointer-events: auto;
}

.btn-topback img {
    width: auto;
    height: 28px;
    position: relative;
    top:calc(50% - 14px);
    
    
}

/******************************************************/

.obj-right,
.obj-left,
.obj {
    opacity: 0;
}

.obj.active { animation: fade 1.6s 0.3s ease-in-out forwards; }

@keyframes fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.obj-left.active { animation: fadeLeft 1.6s 0.3s ease-in-out forwards; }

@keyframes fadeLeft {
    from { opacity: 0; translate: 15%; }
    to { opacity: 1; translate: 0; }
}

.obj-right.active { animation: fadeRight 1.6s 0.3s ease-in-out forwards; }

@keyframes fadeRight {
    from { opacity: 0; translate: -15%; }
    to { opacity: 1; translate: 0; }
}

/******************************************************/

@media screen and (max-width: 900px) {
    
    body {
        padding-top:26vw;
    }
    
    body,td,th {
        font-size: 2.8vw;
    }
    
    a:hover img {
        opacity: 1;
        filter: alpha(opacity=100);
        -moz-opacity:1;
    }
    
    #footer,#header,
    header,main {
        min-width: 100%;
        width: 100%;
    }
    
    header {
        aspect-ratio: 15 / 4;
        height: auto;
    }
    
    header.thin {
        top:-100px;
    }
    
    footer {
        padding: 8% 0;
        height: inherit;
    }
    
    #footer .f-info {
        width: 100%;
        position: relative;
        top:auto;
        left: auto;
        text-align: center;
        margin-bottom: 5%;
    }
    
    #footer .f-info h2 {
        width: 70%;
        margin: 0 auto 3%;
    }
    
    #footer .f-info p {
        font-size: 3.6vw;
        margin: 0 auto 3%;
        letter-spacing: 0.4vw;
    }
    
    #footer .f-info p.txt-tel {
        width: 70%;
    }
    
    #footer .f-info p.txt-tel img {
        display: block;
    }

    .btn-f-contact {
        width: 42%;
        margin: 0 auto 5%;
        display: block;
    }
    
    #footer .txt-copy {
        font-size: 2vw;
        position: relative;
        bottom: auto;
    }
    
    #logo {
        width: 100%;
        height: auto;
        padding-top: 5%;
    }
    
    #logo img {
        width: 20%;
        height: auto;
    }
    
    .h-nav {
        width: 70%;
        height: auto;
        right: 0;
        top:auto;
        bottom: 39%;
        margin: 0 15%;
    }
    
    .nav-sub {
        width: 100%;
        height: auto;
        gap:4%;
    }
    
    .nav-sub .h-contact {
        width: 42%;
    }
    
    .nav-sub .h-login {
        width: 52%;
    }
    
    .nav-sub li {
        height: auto;
    }
    
    .nav-sub li a {
        font-size: 3vw;
        height: auto;
        line-height: 6vw;
        border-radius: 3vw;
    }
    
    header::after {
        height: 5vw;
        background-size: auto 5vw;
        bottom: -4vw;
    }
    
/******************************************************/
    
    .ham {
        position: absolute;
        top: 4vw;
        right: 4vw;
        z-index: 100;
        width: 9%;
        height: auto;
        aspect-ratio: 1 / 1;
        border: none;
        background: transparent;
        cursor: pointer;
    }

    .ham_line {
        position: absolute;
        left: 23%;
        width: 54%;
        height: 2px;
        border-radius: 4px;
        background-color: #b6e1d9;
        transition: all .4s;
    }

    .ham_line:nth-of-type(1) {
        top: calc(26% - 1px);
    }
    .ham_line:nth-of-type(2) {
        top: calc(50% - 1px);
    }
    .ham_line:nth-of-type(3) {
        top: calc(74% - 1px);
    }

    /* メニューオープン時 */
    .ham.active .ham_line:nth-of-type(1) {
        transform: translateY(2vw) rotate(-45deg);
        top: 24%;
    }
    .ham.active .ham_line:nth-of-type(2) {
        opacity: 0;
    }
    .ham.active .ham_line:nth-of-type(3) {
        transform: translateY(-2.2vw) rotate(45deg);
        top: 72%;
    }
    .ham.active .ham_line {
        background-color: #F08300;
    }

    .nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #FFF;
        transform: translateX(100%);
        transition:all 0.3s ease;
        -webkit-transition: all .3s;
        outline: none;
        z-index: 90;
        opacity: 0;
        filter: alpha(opacity=0);
        -moz-opacity:0;
    }

    .nav.active {
        transform: translateX(0);
        opacity: 1;
        filter: alpha(opacity=100);
        -moz-opacity:1;
    }

    .nav_list {
        margin: 0;
        padding: 10% 0 0;
        list-style: none;
    }

    .nav_item {
        padding: 0 20px;
    }

    .nav_link {
        display: block;
        padding: 3% 0;
        color: #F08300;
        text-decoration: none;
        text-align: center;
        font-size: 4vw;
    }
    .nav_link:hover {
        color: #F08300;
    }
    
    .rinen .nav_item:nth-of-type(1) .nav_link,
    .sisetu .nav_item:nth-of-type(2) .nav_link,
    .gaiyou .nav_item:nth-of-type(3) .nav_link,
    .year .nav_item:nth-of-type(4) .nav_link,
    .day .nav_item:nth-of-type(5) .nav_link,
    .special .nav_item:nth-of-type(6) .nav_link,
    .bosyuu .nav_item:nth-of-type(7) .nav_link,
    .recruit .nav_item:nth-of-type(8) .nav_link { 
        color: #FCC80E; 
    }

/******************************************************/
    
    main {
        overflow: hidden;
    }
    
    .main-head h1 {
        font-size: 6vw;
        letter-spacing: 1vw;
        width: 100%;
        top:calc(50% - 2vw);
    }
    
    .main-head,
    .main-head .img-head {
        height: auto;
        aspect-ratio: 13 / 6;
    }
    
    
}

@media screen and (max-width: 428px) {
    body {
        padding-top:43vw;
    }
    
    header {
        aspect-ratio: 9 / 4;
    }
    
    #logo {
        padding-top: 7%;
    }
    
    #logo img {
        width: 39%;
    }
    
    .h-nav {
        width: 90%;
        margin: 0 5%;
    }
    
    .nav-sub li a {
        font-size: 3.7vw;
        line-height: 10vw;
        border-radius: 5vw;
    }

    .ham {
        top: 10vw;
        right: 10vw;
        width: 11.6%;
    }
    
    /* メニューオープン時 */
    .ham.active .ham_line:nth-of-type(1) {
        transform: translateY(3.2vw) rotate(-45deg);
    }
    .ham.active .ham_line:nth-of-type(3) {
        transform: translateY(-2.4vw) rotate(45deg);
    }
    
    .nav_link {
        padding: 6% 0;
        font-size: 5vw;
    }
}






