@charset "UTF-8";
body *{
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.Quicksand {font-family: "Quicksand", sans-serif;}

/*フォントサイズ*/
h2 {
    font-size: 3rem;
    margin-top: 15px;
    margin-bottom: 45px;
    font-weight: bold;
    text-align: left;
}

h2 span{
    font-size:1rem;
    display: block;
    margin-top: 2%;
}

h3{
    font-size: 1rem;
}

p{
    font-size: 0.75rem;
}
/**/

#Container{
    width: 100%;
    max-width: 767px;
    margin: 0 auto;
}

main {
    width: 100%;
    position: relative;
}

.main_inner{
    padding: 20px ;
    padding-bottom: 0;
}

.pc_menu{
    display: none;
}

/*コンテンツここから*/

.grid-layout{
    display: grid;
    /* grid-template-columns: 1fr; */
    grid-template-rows: auto;
    gap: 50px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    /*max-width: 727px;*/
    margin-bottom: 50px;
}

.works_card{
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.grit_works.active .works_card {
    opacity: 1;
    transform: scale(1);
}

/*グリット内共通設定*/
figure{
    padding: 6px;
    background-color: #F5F5F5;
    border-radius: 8px;
    margin-bottom: 4%;
}

figure img{
    border-radius: 4px;
    transition: transform 0.3s ease;
}

figure img:hover{
    opacity:0.8;
	transition:0.3s;
}

.works_text{
    line-height: 1.5;
}

.works_text h3{
    font-weight: bold;
}

.achieve_tag{
    display: block;
    background-color: #9F3639;
    width: 54px;
    text-align: center;
    border-radius: 50px;
    margin-right: 2%;
}

.achieve_tag p{
    color: #fff;
}

.tag_title{
    margin-bottom: 1%;
}

/*グリット内共通設定 | 終了*/

/*works_01の設定*/
.works_01 h3 {
    letter-spacing: -5%;
}
/*works_01の設定終了*/

/**/

footer{
    height: 50px;
    text-align: center;
    line-height: 50px;
}

footer p{
    font-size: 16px;
}

@media screen and (min-width: 768px){
    #Container{
        max-width: 1024px;
    }
    h1 img{
        /*margin-bottom: 5vh;*/
        max-width: 335px;
    }
    /*li{
        max-width: 520px;
    }*/
    .grid-layout{
        grid-template-columns: 1fr 1fr;
        /*比率*/
        grid-template-rows: 1fr 1fr;
        gap:40px;
    }
    .large-card {
        grid-row: 1 / 3;
    }
    
    .text h2 {
        /* 中央寄せを解除 */
        top: auto;
        left: auto;
        transform: none; 

        /* 右下に配置 */
        right: 20px;  /* 右端からの距離（お好みで調整） */
        bottom: 15px; /* 下端からの距離（お好みで調整） */
        
        /* テキストを右揃えに（2行になった時用） */
        text-align: right;
    }

    .grit_works{
        max-width: 1240px;
    }

    .works_01 h3{
        letter-spacing: normal;
    }
}

@media screen and (min-width: 830px){
    .tag_title{
        display: flex;
        align-items: center;
    }
}


@media screen and (min-width: 1025px){
    #Container{
        max-width: 1920px;
    }
    
    .main_inner{
        max-width: 1240px;
        margin: 0 auto;
    }

    /*.pc_menu{
        display: block;
    }*/

    .hamburger-menu{
        display: block;
    }

    figure{
        margin-bottom: 16px;
    }
}

@media screen and (min-width: 1250px){
    .main_inner{
        padding: 0;
        padding-top: 50px;
    }
}