@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
}
* {
    color: #5f4332;
}

body {
     font-family: "Noto Serif JP", serif;
}

header {
    height: 150px;
    padding-top: 80px;
    background-image: url(images/works_top.png);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; 
}

#topnav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex; 
    justify-content: space-between;  
    align-items: center;
    padding: 10px 40px;
    background-color: rgba(255, 255, 255, 0.3); 
    z-index: 1000; 
}

header nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 20px;
    text-shadow: 
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 20px #fff,
        0 0 40px #fff;
}

article {
    background-color: #f9e3ce;
}

.wrap {
    font-size: 32px;
    padding: 80px 100px;
    display: inline-block;
    background-image: url("images/line1.png");
    background-repeat: no-repeat;
    background-position: bottom center;
    background-size: 260px 25px;
    margin: 0 100px;
    padding-bottom: 25px;
}

#works_list {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 150px;
    padding: 80px;
    flex-wrap: wrap;
}

/* #works_list img {
    width: 50%;
    height: auto;
    display: block;
} */

#works_list img {
    width: 300px;
    height: auto;
    object-fit: cover;
    display: block;
}

.worksgp {
    width: 300px; 
    text-align: start;
}

.memo {
    width: 300px;
    margin-top: 10px;
    font-size: 13px;
    line-height: 16px;
    flex-wrap: wrap;
}

.dp {
    padding-top: 10px;
}

footer {
    background-image: url(images/footer_imag.jpg);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover; 
}

footer img {
    display: block;
    margin: 0 auto;
    padding-top: 20px;
}

#small {
    text-align: center;
    font-size: 16px;
    padding: 10px;
}

#page_top {
   position: fixed;
   bottom: 30px;
   right: 30px;
}

/* ==========================
   スマホ（550px以下）
========================== */
@media screen and (max-width: 550px) {

    header {
        height: 120px;
        padding-top: 60px;
        background-position: center;
    }

    /* ナビ */
    #topnav {
        padding: 10px 15px;
        flex-direction: column;
        gap: 10px;
    }

    #topnav img {
        width: 30%;
        min-width: 100px;
    }

    header nav ul {
        gap: 15px;
        font-size: 14px;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* 見出し */
     .wrap {
        font-size: 24px;
        padding: 40px 20px 20px;
        margin: 0 20px;
        background-size: 180px 18px;
    }


    /* 作品一覧 */
    #works_list {
        flex-direction: column;
        gap: 50px;
        padding: 40px 20px;
    }

    /* 画像 */
    #works_list img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    /* 説明 */
    .works_info {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .memo {
        width: 100%;
        font-size: 14px;
        line-height: 1.7;
    }

    .dp {
        padding-top: 8px;
    }

    /* フッター */
    footer img {
        width: 120px;
    }

    #small {
        font-size: 12px;
    }

    /* TOPへ戻るボタン */
    #page_top {
        right: 15px;
        bottom: 15px;
    }

    #page_top img {
        width: 50px;
    }

}