@charset "utf-8";

.first-view{
    height: calc(100vh - 90px);
    background-image: url(../images/index/bg-main.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
}

.first-view-text{
    width: 100%;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-bottom: 30px;
    color: #dce7ff;
    font-weight: bold;
    text-shadow: 6px 2px 14px #000000;
}

.first-view-text h1{
    font-family: "Rubik", system-ui;
    font-size: 56px;
    line-height: 72px;
}

.first-view-text p{
    font-family: "Noto Sans JP", system-ui;
    font-size: 18px;
    margin-top: 20px;
}

.lead {
    max-width: 1200px;
    margin-top: 60px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
}

.lead h2{
    text-align: center;
    margin-bottom: 30px;
}

.lead p{
    font-size: 1.2em;
    line-height: 1.6em;
    text-align: center;
}

.lead img{
    margin-top: 30px;
    margin-bottom: 20px;
    width: 100%;
}

.link-button{
    color: #000000;
    display: inline-block;
    min-width: 180px;
    line-height: 48px;
    border-radius: 24px;
    font-family: "Rubik", system-ui;
    font-size: 18px;
}

.link-button-area{
    text-align: center;
    margin-top: 20px;
}

.site-map{
    background-color: #b7bcdb;
    padding-top: 45px;
    padding-bottom: 40px;
}

.site-map h2{
    text-align: center;
}

.page-list{
    display: grid;
    padding: 40px 60px 10px 60px;
    grid-template-columns: repeat(auto-fit, 240px);
    grid-template-rows: repeat(auto-fit, 460px);
    column-gap: 40px;
    row-gap: 40px;
    justify-content: center;
}

.page-list ul{
    flex-wrap: wrap;
    margin: 0 auto;
}

.page-list li{
    background-color: #f8f9ff;
    padding: 12px 12px 12px 12px;
    flex-shrink: 0;
    margin: 0 auto;
    width: 240px;
}

.page-list img{
    margin-top: 20px;
    margin-bottom: 15px;
}

.page-description{
    height: 4em;
    line-height: 1.2em;
}

@media (max-width: 800px){
    .first-view{
        height: calc(100vh - 50px);
        background-image: url(../images/index/bg-main-h.jpg);
        align-items: flex-end;
        padding-bottom: 30px;
    }

    .first-view-text{
        padding-left: 20px;
    }

    .first-view-text h1{
        font-size: 36px;
        line-height: 48px;
    }

    .first-view-text p{
        font-size: 12px;
        margin-top: 12px;
    }
    
    .lead{
        padding-right: 20px;
        padding-left: 20px;
    }

    .lead p{
        text-align: left;
    }

    .page-list{
        padding-left: 12px;
        padding-right: 12px;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        column-gap: 10px;
        row-gap: 30px;
    }

    .page-list li{
        width: 42vw;
        padding: 0px;
    }

    .page-list h3{
        margin-top: 0.5em;
        font-size: 1em;
        text-align: center;
    }

    .page-list img{
        margin-top: 10px;
        margin-bottom: 6px;
    }

    .page-description{
        font-size: 0.9em;
        height: 5em;
        line-height: 1.2em;
    }

    .link-button{
        display: inline-block;
        min-width: 120px;
        line-height: 48px;
        border-radius: 24px;
        font-family: "Rubik", system-ui;
        font-size: 13px;
        margin-bottom: 10px;
    }
}
