body {
    color: #000;
    font-family: "Noto Sans JP", sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
    line-height: 1.8;
}

p, .comment {
    font-size: 0.875em;
    margin-bottom: 1em;
}

a {
    text-decoration: none;
    color: #333;
    padding: 8px 12px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* コンテナ */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Works セクション */
.Works {
    padding: 80px 0 100px;
}

.section__title {
    text-align: center;
    font-size: 2.5rem;
    background: url(./img/worktitle.webp) center/contain no-repeat;
    line-height: 1.8;
    margin-bottom: 20px;
}

.section__subtitle {
    text-align: center;
    padding-bottom: 60px;
    font-size: 1rem;
    color: #296A65;
}

.Works__list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.Works__item {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 8px;
    gap: 30px;
}

.Works__image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.Works__title h3 {
    font-size: 1.125rem;
    margin: 15px 0;
}

.Works__image {
    position: relative;
}

.Works__image a {
    display: block;
}

.Works__image img {
    width: 100%;
    height: auto;
    display: block;
}


.Works .osusume {
    width: 50%;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    z-index: 10;
}



.Category {
    font-size: 0.875em;
    background: #EEE;
    border-radius: 5px;
    padding: 5px 10px;
    text-align: center;
    display: inline-block;
}

/* トップに戻るボタン */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 10px 20px;
    background: #996666;
    color: #fff;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    display: block;
    transition: all 0.3s ease-in-out;
    z-index: 1000;
}

#back-to-top:hover {
    opacity: 0.8;
}

html {
    scroll-behavior: smooth;
}

/* デスクトップ（769px以上） */
@media screen and (min-width: 769px) {
    body {
        font-size: 1.125rem;
    }
    .Works__item {
        width: calc(33.333% - 20px);
    }
}

/* タブレット（480pxから768px） */
@media screen and (min-width: 480px) and (max-width: 768px) {
    .Works__item {
        width: calc(50% - 20px);
    }
}

/* モバイル（479px以下） */
@media screen and (max-width: 479px) {
    body {
        font-size: 0.875rem;
    }
    .section__title {
        font-size: 1.875rem;
    }
    .section__subtitle {
        font-size: 0.875rem;
    }
    .container {
        max-width: 100%;
    }
}
