/* main */

.arrow_triangle{
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 5px;;
    border-left: 20px solid transparent;
    border-right: 10px solid transparent;
    border-top: 15px solid transparent;
    border-bottom: 15px solid transparent;

    border-left-color: rgb(0, 0, 0); 
}

.subpage_button{
    height: 100%;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    
    text-decoration: none;
}

.button_title{
    border-bottom: solid 1px rgb(0, 0, 0);
    font-size: 1.3rem;
    line-height: 0.9;
    color: rgb(0, 0, 0);
    font-family: 'Courier New', Courier, monospace;
}

/* main top_block*/
.top_block{
    position: relative;
    width: 90%;
    height: 35vh;
    min-height: 300px;
    padding: 0 5%;
    z-index: 0;

    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;

    /* ぼやかして斜めにフロー */
    background:url("include/clean_map.png");
    background-size: 300%;
    background-position: 40% 80%;
    overflow: hidden;

    animation-name: clean_map_flow;
    animation-duration: 120s;
    animation-timing-function: ease-out;
    animation-iteration-count: infinite;
}

.top_block:before{
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    z-index: -1;
    background: inherit;
    filter: blur(6px);
    content: " ";
}

/* ぼやかして斜めにフロー */
@keyframes clean_map_flow {
    0%{
        background-position: 10% 90%;
    }
    100%{
        background-position: 90% 10%;
    }
}

.welcome_block{
    padding: 20px 20px;
    font-size: 1.8rem;
    font-weight: bold;
    font-family: 'Courier New', Courier, monospace;
}

.map_block{
    height: 100px;
    width: 250px;
    min-width: 200px;

    box-shadow: 0 10px 25px 0 rgba(0, 0, 0, 0.5);
    background: rgb(186, 186, 186);
    overflow: hidden;
    cursor: pointer;
    border-radius: 5%;
    transition: all 0.3s;
}

.map_block:hover {
    transform: scale(1.05);
    transition-duration: 0.3s;
}

.map_button{
    height: 100%;
    width: 100%;
}

.map_button img {
    margin: 0 3%;
    height: 80%;
}


/* main bottom_block */
.bottom_block{
    height: 20vh;
    min-height: 200px;
    display: flex;
    justify-content: space-around;
}

.bottom_block > div{
    margin: 2.5% 2.5%;
    margin-bottom: 0;
    height: 10vh;
    min-height: 100px;
    width: 45%;
    max-width: 450px;
    min-width: 310px;

    display: flex;
    text-align: center;
    transition-duration: 0.3s;
}

.bottom_block > div > *{
    height: 100%;
    width: 55%;
    border: solid 2px rgb(186, 186, 186);
}

.bottom_block .subpage_button{
    height: 100%;
    background: rgb(186, 186, 186);

    transition-duration: 0.3s;
    transform: translateX(-5px) translateY(-5px);
}

.bottom_block .subpage_button:hover{
    transition-duration: 0.3s;
    transform: translate(0);
    opacity: 0.8;
}

.bottom_block .subpage_button img{
    height: 80%;
    object-fit: contain;
    overflow: hidden;
}

.intro_text{
    width: 45%;
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 0.8rem;
    color: rgb(186, 186, 186);
    font-family: 'Yu Gothic' sans-serif;
}

@media screen and (max-width: 700px){
    
    .welcome_block{
        font-size: 1.3rem;
    }

    .bottom_block{
        min-height: 350px;
        flex-wrap: wrap;
        align-content: flex-start;
    }
    .bottom_block > div{
        width:80%;
    }
}

@media screen and (max-width: 480px){
    .top_block{
        height: 35vh;
        flex-direction: column;
        justify-content: center;   
    }

    .welcome_block{
        font-size: 1rem;
    }

    .map_button_title{
        font-size: 2rem;
    }
}
