
.m-tit {
    font-size: 4.2rem;
    font-weight: 600;
    font-family: 'Paperozi';
    margin-bottom: .8em;
    color: #000;
}

.box-arr {
    position: absolute;
    width: 3.4rem;
    height: 1.1rem;
    background: url(../images/common/arr1.svg) no-repeat right bottom / contain;
    transition: all 0.2s cubic-bezier(0.02, 1.04, 1, 1);
}
.box:hover .box-arr {
    width: 7.1rem;
    height: 1.8rem;
    background: url(../images/common/arr1_hover.svg) no-repeat right bottom / contain;
}

.m-visual {
    height: 62rem;
    background: url(../images/main/main_visual.jpg) no-repeat center center / cover;
}
.m-visual * {
    letter-spacing: 0;
}
.m-visual .inner {
    padding-top: 8rem;
    height: 100%;
    color: #fff;
    justify-content: center;
    position: relative;
}
.m-visual h4 {
    font-size: 2.6rem;
}
.m-visual h2 {
    font-size: 9rem;
    font-weight: 700;
    margin-block: 0rem 3rem;
}
.m-visual h2 span {
    font-size: 5.6rem;
    font-family: 'SchoolSafeAutumnTrip';
    font-weight: 400;
}
.m-visual h3 {
    font-size: 2.8rem;
}
.m-visual h3 b {
    display: inline-block;
    margin-left: .5rem;
}
.m-visual a {
    position: absolute;
    right: 0;
    bottom: 0;
}
.m-visual a {
    font-size: 2.3rem;
    font-weight: 500;
    padding: 0.8rem 2rem;
    border-radius: 2rem 2rem 0 0;
    background: #3d99c3;
    align-items: center;
}
.m-visual a img {
    width: 2.4rem;
    margin-right: 1.3rem;
}

.m1 {
    padding-block: 7rem 10rem;
}
.m1 .box-wrap {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4.5rem 4rem;
}
.m1 .box-wrap .box {
    position: relative;
    border-radius: 2rem;
    overflow: hidden;
}
.m1 .box-wrap .box .box-arr {
    right: 3.5rem;
    bottom: 3.5rem;
}
.m1 .box-wrap .box .img {
    display: flex;
}
.m1 .box-wrap .box img {
    width: 100%;
}
.m1 .box-wrap .box .txt {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem 2.5rem;
    transition: all 0.3s;
}
.m1 .box-wrap .box:hover .txt {
    background: rgba(61, 153, 195, 0.7);
}
.m1 .box-wrap .box .txt h3 {
    font-size: 3rem;
    font-weight: 500;
    color: #fff;
}
.m1 .box-wrap .box1 .txt h3 {
    color: #333;
}
.m1 .box-wrap .box1:hover .txt h3 {
    color: #fff;
}

.m1 .box-wrap .box3 {
    grid-column: 1 / 3;
}
.m1 .box-wrap .box3 .txt {
    justify-content: flex-end;
}
.m1 .box-wrap .box3 .txt p {
    font-size: 2.3rem;
    color: #3d99c3;
    background: #fff;
    width: fit-content;
    padding: 0.25rem 0.6rem;
    font-weight: 600;
    border-radius: 0.5rem;
    margin-bottom: 2rem;
}
@media (max-width: 768px) {
    .m1 .box-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 1fr);
    }
    .m1 .box-wrap .box3 {
        grid-column: 1 / 2;
    }
    .m1 .box-wrap .box3 .img {
        height: 100%;
    }
}
@media (max-width: 500px) {
    .m1 .box-wrap .box .txt h3 {
        font-size: 2.4rem;
    }
}

.m2 {
    padding-block: 7rem;
    background: #f0f7fa;
}
.m2 .m-tit {
    margin-bottom: 1em;
}
.m2 .tab-menu {
    width: 30%;
}
.m2 .tab-menu ul li {
    margin-top: .8rem;
    font-size: 2.8rem;
    letter-spacing: 0;
    font-weight: 600;
    color: #b5b5b5;
    width: fit-content;
    cursor: pointer;
}
.m2 .tab-menu ul li:hover {
    border-bottom: 1px solid #b5b5b5;
}
.m2 .tab-menu ul li.on {
    color: #0073a8;
    border-bottom: 1px solid #0073a8;
}
.m2 .tab-box-wrap {
    width: 70%;
}
.m2 .tab-box-wrap .tab-box {
    display: none;
}
.m2 .tab-box-wrap .tab-box.on {
    display: block;
}
.m2 .box .box-arr {
    left: 4rem;
    bottom: 3.5rem;
}
.m2 .box .img-box {
    border-radius: 2rem;
    position: relative;
    transition: all 0.1s;
}
.m2 .box .img-box::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: #fff;
    border-radius: 2.2rem;
}
.m2 .box:hover .img-box::before {
    width: calc(100% + 6px);
    height: calc(100% + 6px);
}
.m2 .box:hover .img-box {
    box-shadow: 0px 10px 12px 0 rgba(0, 0, 0, 0.2);
}
.m2 .box .img-box .img {
    display: flex;
    border-radius: 2rem;
    overflow: hidden;
    position: relative;
}
.m2 .box .img-box img {
    width: 100%;
}
.m2 .tab-box .img-txt {
    position: absolute;
    top: 0;
    left: 0;
    padding: 3.5rem 4rem 6rem;
    height: 100%;
    color: #fff;
    justify-content: space-between;
}
.m2 .tab-box .img-txt p {
    font-size: 2rem;
    font-weight: 600;
}
.m2 .tab-box .img-txt h4 {
    font-family: "Paperozi";
    font-size: 3.4rem;
    font-weight: 600;
}
.m2 .tab-box .txt p {
    font-size: 2.3rem;
    color: #3d99c3;
    background: #fff;
    width: fit-content;
    padding-inline:0.6rem;
    font-weight: 600;
    border-radius: 1rem;
    margin-bottom: 1.8rem;
}
.m2 .box .txt {
    margin-top: 2.5rem;
}
.m2 .box .txt h3 {
    font-size: 3rem;
    font-weight: 500;
}
.m2 .tab-box-wrap .tab-box2.on {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.m2 .tab-box2 .box {
    max-width: 407px;
}

.m2 .tab-box .img img{
    transition: all 0.2s;
}
.m2 .tab-box .img:hover img{
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .m2 .tab-menu {
        width: 100%;
        margin-bottom: 4.5rem;
    }
    .m2 .m-tit {
        margin-bottom: 1.5rem;
    }
    .m2 .tab-menu ul {
        display: flex;
        flex-flow: row wrap;
        gap: 3rem;
    }
    .m2 .tab-menu ul li {
        margin-top: 0;
    }
    .m2 .tab-box-wrap {
        width: 100%;
    }
    .m2 .tab-box:not(.tab-box2) .box .txt h3 br {
        display: none;
    }
}
@media (max-width: 768px) {
    .m2 .tab-box .img-txt {
        padding: 2.5rem 3rem 6rem;
    }
}
@media (max-width: 500px) {
    .m2 .tab-box-wrap .tab-box2.on {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .m2 .box .img-box .img {
        min-height: 150px;
    }
}

.m3 {
    padding-block: 7rem 10rem;
}

.m3 .box-wrap {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4rem 2rem;
}
.m3 .box-wrap .box {
    border-radius: 2rem;
    overflow: hidden;
    background: #f7f7f7;
    padding: 2.5rem 2rem;
    min-height: 18rem;
    transition: all 0.2s;
}
.m3 .box-wrap .box h4 {
    font-size: 2.4rem;
    font-weight: 600;
    margin-bottom: 0.8em;
    color: #0073a8;
    transition: all 0.2s;
}
.m3 .box-wrap .box p {
    font-size: 2.3rem;
    line-height: 1.5;
}
.m3 .box-wrap .box-type2 h4 {
    color: #13ad8d;
}
.m3 .box-wrap .box:hover,
.m3 .box-wrap .box:hover h4 {
    color: #fff;
}
.m3 .box-wrap .box:hover {
    background: #3d99c3;
}
.m3 .box-wrap .box-type2:hover {
    background: #13ad8d;
}
@media (max-width: 1024px) {
    .m3 .box-wrap .box h4 {
        font-size: 2.2rem;
    }
    .m3 .box-wrap .box p {
        font-size: 2rem;
    }
}
@media (max-width: 768px) {
    .m3 .box-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    .m3 .box-wrap .box h4 {
        font-size: 2.3rem;
    }
    .m3 .box-wrap .box p {
        font-size: 2.2rem;
    }
    .m3 .box-wrap .box:nth-of-type(5),
    .m3 .box-wrap .box:nth-of-type(6) {
        margin-top: 2.5rem;
    }
}

.m4 {
    padding-block: 7rem 10rem;
    background: url(../images/main/m4_bg.png) no-repeat center bottom / cover;
}
.m4 .inner {
    display: grid;
    grid-template-columns: 2fr 1fr;
    column-gap: 6rem;
 }
.m4_1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr;
}
.m4_1 .m-tit {
    grid-column: 1 / 3;
}
.m4_1 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 2rem;
}
.m4 .box {
    border-radius: 2rem;
    overflow: hidden;
    padding: 2rem;
    background: #fff;
    transition: all 0.2s;
}
.m4_1 .box {
    border: 2px solid #fff;
}
.m4_1 .box h2 {
    font-size: 3rem;
    font-weight: 600;
    margin-top: 1rem;
}
.m4_1 .box .img {
    margin-top: 4rem;
    position: relative;
}
.m4_1 .box .img img {
    border-radius: 2rem;
    overflow: hidden;
}
.m4_1 .box .img::before {
    content: "";
    position: absolute;
    top: 0%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background: url(../images/common/ico_plus.png) #3d99c3 no-repeat center center / 1.9rem;
    border-radius: 50%;
    transition: all 0.2s;
}
.m4_1 .box2 .img::before {
    background-color: #13ad8d;
}
.m4_1 .box:hover .img::before {
    width: 6rem;
    height: 6rem;
}
.m4_1 .box p {
    font-size: 2.3rem;
    color: #fff;
    background: #3d99c3;
    width: fit-content;
    padding: 0.3rem 0.8rem;
    font-weight: 600;
    border-radius: 1rem;
    margin-bottom: 1rem;
}
.m4_1 .box:hover {
    border-color: #3d99c3;
}
.m4_1 .box2 p {
    background: #13ad8d;
}
.m4_1 .box2:hover {
    border-color: #13ad8d;
}

.m4_2 {
    display: grid;
    grid-template-rows: auto 1fr 1fr;
    gap: 2rem 0;
}
.m4_2 .m-tit {
    margin-bottom: 2.2rem;
}
.m4_2 .box {
    position: relative;
}
.m4_2 .box-arr {
    right: 3.5rem;
    bottom: 3rem;
    filter: brightness(0);
}
.m4_2 h3 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 0.5em;
}
.m4_2 h5 {
    font-size: 2.3rem;
    font-weight: 500;
}
.m4_2 .box4 h5 {
    text-indent: -.8em;
    padding-left: .8em;
}
.m4_2 .box:hover {
    background-color: #3d99c3;
    color: #fff;
}
.m4_2 .box:hover .box-arr {
    filter: brightness(1);
}
.m4_2 .box4:hover {
    background-color: #13ad8d;
}
@media (max-width: 1200px) {
    .m4 .inner {
        gap: 4.5rem;
    }
    .m4_1 .box h2 {
        font-size: 2.8rem;
    }
}
@media (max-width: 1024px) {
    .m4 .inner {
        grid-template-columns: 1fr;
    }
    .m4_1 .box .img img {
        width: 100%;
    }
    .m4_2 {
        grid-template-rows: auto 1fr;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .m4_2 .m-tit {
        grid-column: 1 / 3;
    }
    .m4_2 .box {
        padding-bottom: 6rem;
    }
}
@media (max-width: 768px) {
    .m4 .box {
        padding: 2rem 1.8rem;
    }
    .m4_1 .box h2,
    .m4_2 h3 {
        font-size: 2.6rem;
    }
    .m4_2 .box {
        padding-bottom: 6rem;
    }
}
@media (max-width: 500px) {
    .m4_1 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .m4_1 .m-tit,
    .m4_2 .m-tit {
        grid-column: 1 / 2;
        margin-bottom: 2.2rem;
    }
    .m4_2 {
        grid-template-rows: 1fr;
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}