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


@media only screen and (max-width: 768px) {

}


/* #school_history
----------------------------------------- */
#school_history {
    background-color: #f5f5dc;
}

#school_history .inner {
    padding-top: 9rem;
    padding-bottom: 14rem;
}

#school_history .layout {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 1rem 0;
    margin-top: 8rem;
}
#school_history .layout .con {
    display: flex;
    flex-flow: column;
    align-items: center;
    gap: 1rem 0;
    position: relative;
}
#school_history .layout .con .ad {
    font-size: 3.8rem;
    line-height: 1;
}
#school_history .layout .con:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 5.5rem;
    background-color: #000000;
}

#school_history .layout .con .jp_era_wrap {
    position: absolute;
    right: -1rem;
    top: -0.8rem;
    transform: translateX(100%);
}
#school_history .layout .con:nth-child(even) .jp_era_wrap {
    position: absolute;
    left: -1rem;
    right: auto;
    transform: translateX(-100%);
}
#school_history .layout .con .jp_era_wrap .jp_era_layout {
    display: flex;
    align-items: flex-end;
    column-gap: 1rem;
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .era {
    font-size: 2rem;
    line-height: 1;
    white-space: nowrap;
    padding-bottom: 1rem;
    padding-left: 6rem;
    position: relative;
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .img_wrap {
    width: 16.2rem;
    position: absolute;
    bottom: 0;
    right: -1rem;
    transform: translateX(100%);
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .jp_era_layout .img_wrap {
    width: 16.2rem;
    position: absolute;
    bottom: 0;
    right: auto;
    left: -1rem;
    transform: translateX(-100%);
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .era::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000000;
    
    position: absolute;
    bottom: 0;
    right: 0;
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .era::after {
    content: '';
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #000000;
    border-radius: 50%;
    
    position: absolute;
    bottom: -0.2rem;
    left: 0;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .jp_era_layout .era {
    padding-left: 0;
    padding-right: 6rem;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .jp_era_layout .era::after {
    left: auto;
    right: 0;
}

#school_history .layout .con .jp_era_wrap .txt {
    font-size: 1.6rem;
    white-space: nowrap;
    padding-top: 0.5rem;
    position: absolute;
    left: 6rem;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .txt {
    left: auto;
    right: 6rem;
    text-align: right;
}

@media screen and (max-width: 768px) {
#school_history .inner {
    padding-top: 6rem;
    padding-bottom: 8rem;
}

#school_history .layout {
    gap: 1rem 0;
    margin-top: 6rem;
}
#school_history .layout .con {
    gap: 1rem 0;
}
#school_history .layout .con .ad {
    font-size: 3.8rem;
}
#school_history .layout .con:not(:last-child)::after {
    content: '';
    display: block;
    width: 1px;
    height: 5.5rem;
    background-color: #000000;
}

#school_history .layout .con .jp_era_wrap {
    position: relative;
    right: auto;
    top: auto;
    transform: translateX(0);
    
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-top: 1rem;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap {
    position: relative;
    left: auto;
    right: auto;
    transform: translateX(0);
}
#school_history .layout .con .jp_era_wrap .jp_era_layout {
    display: flex;
    flex-flow: column;
    align-items: center;
    margin-top: 1rem;
    gap: 1rem;
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .era {
    font-size: 2rem;
    line-height: 1;
    white-space: normal;
    text-align: center;
    padding-bottom: 1rem;
    padding-left: 0;
    position: relative;
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .img_wrap {
    width: 16.2rem;
    position: relative;
    bottom: auto;
    right: auto;
    transform: translateX(0);
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .jp_era_layout .img_wrap {
    width: 16.2rem;
    position: relative;
    bottom: auto;
    right: auto;
    left: auto;
    transform: translateX(0);
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .era::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background-color: #000000;
    
    position: absolute;
    bottom: 0;
    right: 0;
}
#school_history .layout .con .jp_era_wrap .jp_era_layout .era::after {
    display: none;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .jp_era_layout .era {
    padding-left: 0;
    padding-right: 0;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .jp_era_layout .era::after {
    left: auto;
    right: 0;
}

#school_history .layout .con .jp_era_wrap .txt {
    font-size: 1.6rem;
    white-space: nowrap;
    padding-top: 0.5rem;
    position: relative;
    left: auto;
    text-align: center;
}
#school_history .layout .con:nth-child(even) .jp_era_wrap .txt {
    left: auto;
    right: auto;
    text-align: center;
}
}




/* #facilities
----------------------------------------- */
#facilities {
}

#facilities .inner {
    padding-top: 11rem;
    padding-bottom: 18rem;
}

#facilities .layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem 4.6rem;
    margin-top: 8rem;
}
#facilities .layout .con {
    width: 100%;
    /*width: calc(545/1136*100%);*/
    position: relative;
    z-index: 1;
}

#facilities .layout .con > a {
    display: block;
    position: relative;
    z-index: 1;
}
#facilities .layout .con > a:hover {
    opacity: 1;
}
#facilities .layout .con > a::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0);
    transition: all .6s;
    
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
}
#facilities .layout .con > a:hover::before {
    background-color: rgba(0,0,0,0.70);
}
#facilities .layout .con > a::after {
    content: '';
    display: block;
    width: 5.5rem;
    height: 5.5rem;
    background: url(../images/zoom.svg) no-repeat center center / contain;
    opacity: 0;
    transition: all .6s;
    
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    z-index: 2;
}
#facilities .layout .con > a:hover::after {
    opacity: 1;
}

#facilities .layout .con:nth-child(2n) > a {
    transform: translateY(7rem);
}

#facilities .layout .con .txt {
    position: absolute;
    top: 2rem;
    right: 0;
    z-index: 2;
    background-color: #fff;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
}
#facilities .layout .con:nth-child(2n) .txt {
    top: auto;
    bottom: 2rem;
    right: auto;
    left: 0;
    padding-right: 1.5rem;
    padding-left: 3rem;
}

#facilities .layout .con .img_wrap {
    position: relative;
    z-index: 1;
}
#facilities .layout .con .img_wrap::before {
    content: '';
    display: block;
    width: 5.1rem;
    height: 5.1rem;
    background: url("../images/img_frame_left.svg") no-repeat center center / contain;
    
    position: absolute;
    top: -0.8rem;
    left: -0.8rem;
    z-index: 2;
}
#facilities .layout .con .img_wrap::after {
    content: '';
    display: block;
    width: 5.1rem;
    height: 5.1rem;
    background: url("../images/img_frame_right.svg") no-repeat center center / contain;
    
    position: absolute;
    bottom: -0.8rem;
    right: -0.8rem;
    z-index: 2;
}

.pswp__custom-caption {
    position: fixed;
    background-color: #fff;
    font-size: 1.6rem;
    line-height: 1;
    padding: 1rem 1.5rem;
    padding-right: 3rem;
    pointer-events: none;
}

@media screen and (max-width: 768px) {

#facilities .inner {
    padding-top: 8rem;
    padding-bottom: 12rem;
}

#facilities .layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem 3rem;
    margin-top: 6rem;
}

#facilities .layout .con > a::after {
    width: 3rem;
    height: 3rem;
}
#facilities .layout .con > a:hover::after {
    opacity: 1;
}

#facilities .layout .con:nth-child(2n) > a {
    transform: translateY(4rem);
}

#facilities .layout .con .txt {
    top: 1rem;
    padding: 0.5rem 1rem;
    padding-right: 1.5rem;
    font-size: 1.2rem;
}
#facilities .layout .con:nth-child(2n) .txt {
    bottom: 1rem;
    padding-right: 1rem;
    padding-left: 1.5rem;
}

#facilities .layout .con .img_wrap {
    position: relative;
    z-index: 1;
}
#facilities .layout .con .img_wrap::before {
    content: '';
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    background: url("../images/img_frame_left.svg") no-repeat center center / contain;
    
    position: absolute;
    top: -0.8rem;
    left: -0.8rem;
    z-index: 2;
}
#facilities .layout .con .img_wrap::after {
    content: '';
    display: block;
    width: 3.1rem;
    height: 3.1rem;
    background: url("../images/img_frame_right.svg") no-repeat center center / contain;
    
    position: absolute;
    bottom: -0.8rem;
    right: -0.8rem;
    z-index: 2;
}

.pswp__custom-caption {
    position: fixed;
    background-color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    padding: 0.5rem 1rem;
    padding-right: 1.5rem;
    pointer-events: none;
}
}

