@charset "UTF-8";
/* CSS Document */

#main-header {
    position: relative;
    display: flex;
    flex-flow: column;
}
#main-text {
    position: relative;
    top: 0;
    transform: translateY(0);
    left: 15px;
    order: 3;
    color: #000;
    margin: 20px 0 30px;
}
#main-text h1 {
    color: #000;
    font-size: 18px;
    line-height: 1.8;
    font-family: YuMincho, "Yu Mincho", "Hiragino Mincho ProN", serif;
    margin-bottom: 20px;
    letter-spacing: 3px;
    opacity: 1;
    animation: fadein 2s ease-in-out 0.5s both;
}
#main-text p {
    color: #000;
    font-size: 14px;
    line-height: 2;
    font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, sans-serif;
    letter-spacing: 0;
    animation: fadein02 2s ease-in-out 1.5s both;
}
@keyframes fadein{
    0%{
        opacity: 0;
        transform: translateY(15%);
    }
    100%{
        opacity: 1; 
        transform: translateY(0%);
    }
}
@keyframes fadein02{
    0%{
        opacity: 0;
        transform: translateY(15%);
    }
    100%{
        opacity: 1; 
        transform: translateY(0%);
    }
}
.main-image {
    width: 100%;
    height: 100%;
    vertical-align: bottom;
    object-fit: cover;
    font-family: 'object-fit: cover;';
    order: 1;
}
.sekkei {
    position: relative;
    bottom: auto;
    right: 20px;
    font-size: 12px;
    color: #000;
    text-decoration: none;
    z-index: 2;
    order: 2;
    text-align: right;
    margin: 10px 0 0;
}
#contents {
    padding: 0;
}
#content-flex {
    display: flex;
    flex-flow: column;
    justify-content: flex-start;
}
#content-flex-text {
    margin: 30px 15px 30px 15px;
    width: calc(100% - 30px);
    order: 2;
}
#content-flex-image{
    width: 100%;
    height: auto;
}
/* IE11 */
@media all and (-ms-high-contrast:none){
  *::-ms-backdrop, #content-flex-image{
    height: 0%;
} 
}
/* IE110 */
@media all and (-ms-high-contrast:none){
  #content-flex-image{
    height: 0%;
} 
}
#content-flex h2 {
    font-size: 18px;
    letter-spacing: 5px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: #000;
    font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, sans-serif;
    font-weight: normal;
    padding: 0;
    text-align: left;
}
#content-flex p {
    font-size: 14px;
    line-height: 2;
    letter-spacing: 1px;
    color: #000;
    font-family: YuGothic, "Yu Gothic medium", "Hiragino Sans", Meiryo, sans-serif;
    padding: 0;
    text-align: left;
}
#link-box {
    display: flex;
    flex-flow: column;
    justify-content: space-between;
    align-items: center;
    width: auto;
    margin: 40px auto;
}
#link-box .button2 {
    margin: 0;
}
#link-box .button2 a {
    opacity: 1;
    transition: background-color 1s;
    background-color: #4d4d4d;
    width: 280px;
    display: block;
    padding: 10px 20px;
    color: #fff;
    border-radius: 8px;
    position: relative;
    height: 25px;
    line-height: 1.6;
    margin-bottom: 20px;
}
#link-box .button2 a:hover {
    background-color: #9ac01b;
    transition: all 1s;
}
#link-box .button2 a::after {
    content: none;
}
#link-box .button2 a::before {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background-image: url("../img/arrow.png");
    top: 50%;
    right: 20px;
    transform: translateY(-13px);
    position: absolute;
    background-size: contain;
}
#recruit-box {
    text-align: center;
    margin: 80px auto 100px;
    padding: 0 15px;
}
#recruit-box h2 {
    font-size: 21px;
    color: #4d4d4d;
    font-weight: normal;
}
#recruit-box ul {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 0;
    max-width: 860px;
}
#recruit-box ul li {
    width: 48%;
    margin-bottom: 20px;
    height: 48%;
}
#recruit-box ul li a{
    display: block;
    height: 100%;
    width: 100%;
}
#recruit-box ul li a h3 {
    margin-top: 5px;
    text-align: left;
    font-size: 14px;
}
@media screen and (min-width:768px){
#main-header {
    position: relative;
    display: block;
}
#main-text {
    position: absolute;
    top: calc(50% + 20px);
    transform: translateY(-50%);
    right: 30px;
    margin: 0;
    left: auto;
}
#main-text h1{
	color: #fff;
	font-size: 2.2vw;
}
#main-text p{
	color: #fff;
	font-size: 1.4vw;
}
.sekkei {
    position: absolute;
    bottom: 20px;
    right: auto;
    font-size: 12px;
    color: #fff;
    text-decoration: none;
    left: 20px;
}
#content-flex-text {
    margin: 30px 0 30px 30px;
    width: calc(100% - 30px);
    order: 1;
}
#content-flex h2 {
    font-size: 24px;
}
#content-flex p {

}
#link-box{
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    width: 750px;
    margin: 40px auto;
}
#link-box .button2 a {
    margin-bottom: 0;
    width: 320px;
}
#recruit-box {
    text-align: center;
    margin: 80px auto 100px;
    padding: 0 30px;
}
#recruit-box ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    width: 100%;
    margin: 20px auto 0;
    max-width: 860px;
}
#recruit-box ul li{
    width: 19%;
}
}
@media screen and (min-width:960px){
#main-text {
    position: absolute;
    top: calc(50% + 30px);
    transform: translateY(-50%);
    right: 5%;
}
#main-text h1 {
    font-size: 2.2vw;
}
#main-text p {
    font-size: 1.4vw;
}
#content-flex h2 {
    text-align: left;
}
#content-flex p {
    text-align: left;
}
#content-flex {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}
#content-flex-text {
    margin: 30px 0 30px 5%;
    width: calc(50% - 5%);
}
#content-flex-image {
    width: 50%;
    order: 2;
}
}
@media screen and (min-width:1281px){
#main-text h1 {
    font-size: 1.8vw;
}
#main-text p {
    font-size: 1.2vw;
}
#recruit-box ul {
    max-width: 960px;
    order: 2;
}
#content-flex p {
    font-size: 16px;
}
#content-flex-text {
    margin: 30px 0 30px 10%;
    width: calc(50% - 10%);
}
}
@media screen and (min-width:1441px){
#recruit-box ul {
    max-width: 1100px;
}    
}