@charset "utf-8";
body{
    margin: 0%;
}

.pc{
    display: block;
}
.sp{
    display: none;
}

.top{
    width: 100%;
    /* height: 360px; */
}

/* ヘッダー */

.header {
    height: 90px;
    background-color: white;
    z-index: 5;
}

.header nav {
    position: fixed;
    display: grid;
    justify-content: end;
    z-index: 5;
    right: 0;
}
.button {
    display: flex;
    justify-content: center;
    align-items: center;
}
.header nav .back {
    font-size: 15px;
    border-radius: 50%;
    border: none;
    background-color: #194f74;
    color: white;
    cursor: pointer;
    width: 70px;
    height: 70px;
    z-index: 5;
    margin: 20px 10px 20px 10px;
}
/* 募集要項 */
.head nav .entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.entry_list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.entry_list  a{
    color: #194f74;
    text-decoration: none;
    font-weight: bold;
}
.entry_title {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 16px;
    width: 10vw;
    height: 40px;
    font-weight: bold;
    background-color: #194f74;
    color: #ffffff;
}
.entry_item {
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 10vw;
    font-size: 14px;
    height: 40px;
    border-bottom: #194f74 solid 1px;
}

@media screen and (min-width:768px) {
    .header {
        height: 90px;
    }
}

@media screen and (max-width: 1170px) {
    .only-pc {
        display: none;
    }
}

@media screen and (max-width: 980px) {
    .header {
        height: 95px;
    }
    .header nav .back {
        font-size: 30px;
        width: 150px;
        height: 150px;
        margin: 20px;
    }
    .header nav .entry {
        display: none;
    }
}

.top .message{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-top: -300px;
    margin-bottom: 100px;
}

.anime{
    background-color: white;
    z-index: -1;
    position: absolute;
    width: 100%;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 3s;
}

.anime .pc #tanoshime{
    width: 100%;
}

.anime .pc #year{
    margin-top: -90000px; 
    width: 100%;
}

.main{
    opacity: 0;
    transition: opacity 3s;
}

h4{
    color: #194f74;
    font-family: serif;
    font-size: 30px;
}

.menu{
    margin: 0%;
    padding-bottom: 20px;
    width: 100%;
    height: 100%;
}

ul, li{
    overflow: hidden;
    margin: 0;
    padding: 0;
    list-style: none;
}

ul{
    display: flex;
}

li{
    flex: 1;
    transition: flex 300ms ease-out;
    position: relative;
    text-align: center;
}

.menu li p{
    position: absolute;
    color: white;
    font-size: 20px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    font-weight: bold;
}

.menu .mask{
    width:	100%;
	height:	100%;
    position: absolute;
    top: 0;
    left: 0;
    background-color:	rgba(0,0,0,0.4);
	-webkit-transition:	all 0.2s ease;
	transition:	all 0.2s ease;
    opacity: 1;
    z-index: 1;
}

.menu .mask .caption{
    position: absolute;
    color: white;
    font-size: 33px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    font-weight: bold;
    font-family: "HiraMinProN-W6";
}


.menu .menuitem_numbers,
.menu .menuitem_welfare,
.menu .menuitem_president,
.menu .menuitem_boast{
    display: flex;
    justify-content: center;
}

.menu .menuitem_department .transition{
    display: flex;
    height: 100%;
    color: white;
}

.menu .menuitem_numbers .transition,
.menu .menuitem_welfare .transition,
.menu .menuitem_president .transition,
.menu .menuitem_boast .transition{
    display: flex;
    justify-content: center;
    height: 100%;
    color: white;
}

li:hover{
    flex: 2;
    color: rgba(255,255,255,1);
}

li:hover .mask{
    opacity: 0;
    display: none;
}


.menu .open{
    position: absolute;
    left: 60%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 100%;
    opacity: 0;
    font-family: "HiraMinProN-W6";
    text-shadow: 1px 2px 3px #000;
}

.b{
    left: 50% !important;
    top: 50% !important;
}

.menu .open h5{
    font-size: 30px;
    margin-bottom: 20px;
}

.menu .open .explanation{
    font-size: 24px;
}

li:hover .open{
    opacity: 1;
}

@keyframes fadeInAnimation {
    0% {
      opacity: 0;
      visibility: visible;
    }
    100% {
      opacity: 1;
      visibility: visible;
    }
  }
  
  @keyframes fadeOutAnimation {
    0% {
      opacity: 1;
      visibility: visible;
    }
    100% {
      opacity: 0;
      visibility: hidden;
    }
  }

@media screen and (max-width:980px) { 
    .pc{
        display: none;
    }
    .sp{
        display: block;
    }
    ul{
        flex-direction: column;
    }
    h4{
        font-size: 60px;
        margin: 0px;
    }
    .menu .mask .caption{
        font-size: 50px;
    }
    .top .message p{
        font-size: 23px;
    }
    .top .message{
        margin-bottom: 80px;
    }
    .menu{
        height: 1500px;
    }
    .menu li img{
        width: 100%;
    }

    .menu .menuitem_department .transition{
        /* display: none; */
        justify-content: flex-start;
        flex-direction: column;
    }
    
    .menu .menuitem_numbers .transition,
    .menu .menuitem_welfare .transition,
    .menu .menuitem_president .transition,
    .menu .menuitem_boast .transition{
        /* display: none; */
        justify-content: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .anime .sp #tanoshime{
        width: 100%;
    }
    .anime .sp #year{
        margin-top: -90000px; 
        width: 100%;
    }
}