html {
    font-size:100%;


}
header {
    margin: 20px auto;
    max-width: 1020px;
}
.detail {
    text-align: center;
    font-family: "Sawarabi Mincho", serif;
    font-weight: 400;
    font-style: normal;
}
header h1 {
    margin-bottom: 30px;
}
header h1 a {
    color: #000; /* 黒に設定 */
    text-decoration: none; /* リンクの下線を削除（任意） */
}

header h1 a:visited {
    color: #000; /* 訪問済みリンクも黒に設定 */
}

.grid {
    display: grid;
    gap: 30px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    max-width: 1020px;
    margin: auto;
    padding: 30px;
}
.img-item {
    opacity: 0;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    filter: grayscale(100%);
}
.img-item:hover {
    filter: grayscale(0);
    transform: scale(1.5);
    z-index: 2;
    position: relative;
}
.copyright {
    background-color: #000;
    text-align: center;
    padding: 1rem 0;
    color: #fff;
}

@media (max-width:1020px) {
    .img-item {
        filter: grayscale(0);
    }
    .copyright {
        background-color: brown;
    }
}