@charset "UTF-8";
body *{
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.Quicksand {font-family: "Quicksand", sans-serif;}

/*フォントサイズ*/
.works_text h2{
    font-size: 1.3rem;
    margin: 30px 0;
    font-weight: bold;
    text-align: left;
}

h2 {
    font-size: 3rem;
    margin-bottom: 50px;
    font-weight: bold;
    text-align: center;
    
}

h2 span{
    font-size:1rem;
    display: block;
    margin-top: 2%;
}

strong{
    font-size: 2rem;
    font-weight: bold;
    line-height: 1.5;
}

h3{
    font-size: 1.15rem;
}

p{
    font-size: 1rem;
    line-height: 1.5;
}
/**/

#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;
}

/*コンテンツここから*/

.works_about_text, .works_process{
    margin-bottom: 95px;
}

.works_about_text li{
    margin-bottom: 35px;
}

.works_about_text li:last-child {
    margin-bottom: 0;
}

.works_about_text li h3{
    margin-bottom: 10px;
    font-weight: bold;
}

.works_about_text  li p{
    background-color: #F4F4F4;
    padding: 5px;
    border-radius: 8px;
}

.works_design{
    margin-bottom: 120px;
}

.design_All_img{
    margin-bottom: 50px;
    height: auto;
    max-height: 569px;
    overflow-y: auto;
    border: #D9D9D9 2px solid;
}

/*pdfスライダー開始*/
.swiper-button-next, .swiper-button-prev{
    color:transparent !important;
}

.swiper-pagination{
    position: relative !important;
    margin-top: 2% !important;
}

.swiper-pagination-bullet-active{
    background:#9f3639 !important;
}

/*pdfスライダー終了*/

.grid-layout {
    display: grid;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    /*margin-bottom: 50px;*/
}

.grid-layout li{
    border:#D9D9D9 2px solid;
    height: fit-content;
}

/*.more_works_design{
    display: none;
}*/

.is-hidden {
    display: none;
}

.more_btn {
    display: block;
    width: 200px;
    margin: 60px auto 0;
    padding: 15px;
    background: #9f3639;
    color: #fff;
    text-align: center;
    border-radius: 30px;
    cursor: pointer;
}

.grid-layout_other{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    margin-bottom: 50px;
}

.grid-layout_other li{
    border: #D9D9D9 1px solid;
}

.grid-layout_other li :hover{
    opacity:0.8;
	transition:0.3s;
}

.back_btn {
    display: flex;
    text-decoration: none;
    color: #000;
    align-items: center; 
    transition: opacity 0.3s;
}

.arrow_circle {
    width: 60px;
    height: 60px;
    border: 1px solid #000;
    border-radius: 50%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; 
    margin-bottom: 15px;
}

.back_btn:hover .arrow_circle::before {
    transform: translateX(-5px) rotate(-45deg);
}

.back_btn:hover .arrow_circle::after {
    transform: translateX(-5px);
}


.arrow_circle::after {
    content: "";
    width: 25px;
    height: 2px;
    background-color: #000;
    position: absolute;
    /* transitionを忘れずに */
    transition: transform 0.3s ease;
}

.arrow_circle::before {
    content: "";
    width: 10px;
    height: 10px;
    border-top: 2px solid #000;
    border-left: 2px solid #000;
    position: absolute;
    left: 15px; 
    /* 最初もしっかり回転させておく */
    transform: rotate(-45deg);
    /* 滑らかに動かすためのおまじない */
    transition: transform 0.3s ease;
}

.back_btn {
    flex-direction: column;
    margin: 40px auto;
    width: fit-content;
}
/**/

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;
    }
    
    .grid-layout {
        grid-template-columns: repeat(4, minmax(0, 1fr)); 
        /*gap: 40px 20px;*/ 
        max-width: 940px; 
    }

    .more_works_design {
        display: contents; 
    }

    .grid-layout .is-hidden {
        display: list-item !important; /* display: none を打ち消す */
    }

    .more_btn {
        display: none; 
    }

    .back_btn {
        flex-direction: row; 
        gap: 20px;
        margin: 60px 0;
    }

    .arrow_circle{
        margin-bottom: 0;
    }

    .section_team{
        max-width: 940px;
        margin: 0 auto;
        margin-bottom: 100px;
    }

}

@media screen and (min-width: 830px){
    .tag_title{
        display: flex;
    }
}


@media screen and (min-width: 1025px){
    #Container{
        max-width: 1920px;
    }
    
    .main_inner{
        max-width: 1080px;
        margin: 0 auto;
        padding-top: 50px;
    }

    /*.pc_menu{
        display: block;
    }*/

    .hamburger-menu{
        display: block;
    }

    .works_about_top {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 80px; /* 画像とテキストの間のゆとり */
        margin-bottom: 120px;
    }

    /* 左側：画像エリア */
    .works_topimg.livina_img {
        flex: 1.1; /* カンプに合わせて画像を少し広めに */
        margin-bottom: 0;
    }

    /* 右側：テキストエリア */
    .works_text {
        flex: 0.9;
        max-width: 350px;
    }

    /* PC版のタイトル調整 */
    .works_text h2.works_title {
        margin-top: 0;      
        line-height: 1.4;
        font-size: 24px;    
        text-align: left;   
    }

    strong{
    font-size: 32px;
    }

    /* 概要・コンセプトなどのリスト */
    .works_about_text li {
        margin-bottom: 30px;
    }

    /* 背景のグレーボックス（pタグ）の調整 */
    .works_about_text li p {
        padding: 10px 15px; 
    }

    .works_about_text{
        margin: 0;
    }

    .swiper-button-next, .swiper-button-prev{
        color:#757575 !important;
    }

}

@media screen and (min-width: 1250px){
    .main_inner{
        padding: 0;
        padding-top: 30px;
    }

    .grid-layout_other {
        /* 1frを5回繰り返す ＝ 5列 */
        grid-template-columns: repeat(5, 1fr);
        /* もし「必ず2行」に見せたいなら、gapを調整して高さを安定させる */
        gap: 20px; 
        max-width: 1080px; /* コンテンツ幅に合わせる */
    }

    

}