/* 画面上の表示範囲 */

html {
    height: 100vh;
    padding: 0;
    margin: 0;
    font-size: 16px;
}

/* 色の指定 */

:root {
    --background: #f3f3f3;
    --font: #333132;
    --cerulean: #008db7;
    --saxe: #418b89;
    --grass: #fff;
}

@media (prefers-color-scheme: dark) {
    html {
        transition: .5s;
    }

    :root {
        --background: #252525;
        --font: #f7f7f7;
        --cerulean: #1cadd9;
        --saxe: #4ab0ad;
        --grass: #363636;
    }
}

/* Webフォントの設定 */

.zen-maru gothic-light {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 300;
    font-style: normal;
}

.zen-maru gothic-regular {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 400;
    font-style: normal;
}

.zen-maru gothic-medium {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 500;
    font-style: normal;
}

.zen-maru gothic-bold {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 700;
    font-style: normal;
}

.zen-maru gothic-black {
    font-family: "Zen Maru Gothic", serif;
    font-weight: 900;
    font-style: normal;
}

/* 基本スタイル */

body {
    max-width: 1000px;
    height: auto;
    margin: 0 auto;
    font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
    color: var(--font);
    background-color: var(--background);
}

#container {
    padding: 3rem;
}

a {
    font-family: "Zen Maru Gothic";
    color: var(--font);
    text-decoration: none;
}

h1 {
    font-family: "Zen Maru Gothic";
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding-bottom: 2px;
}

h2 {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    margin: 0 0 0.5em 0;
    font-weight: bold;
}

p {
    font-size: 1rem;
    line-height: 1.6;
}

ul {
    padding-left: 0;
}

li {
    list-style: none;
    font-size: 1rem;
    line-height: 1.6;
}

button {
    border: none;
    color: var(--font);
    background-color: var(--grass);
    border-radius: 50px;
    cursor: pointer;
}

/* セクション範囲 */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: auto;
    padding: 2rem 0;
    box-sizing: border-box;
    z-index: 1000;
}

main {
    max-width: 760px;
    height: auto;
    margin: 5rem auto 0 auto;
}

#categories {
    margin: 2rem 0;
}

footer {
    display: inline-block;
    width: 100%;
    height: auto;
    padding: 0.5rem 0;
}

/* 個別のスタイル */

/* header */

.header-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: var(--grass);
    width: 3rem;
    height: 3rem;
    border-radius: 50px;
    padding: 0;
}

#home-btn {
    margin-left: 2rem;
}

#pagetitle {
    display: flex;
}

#scrollToTop {
    text-align: center;
    background-color: var(--grass);
    border-radius: 50px;
    margin: 0 1.25rem;
    width: 17rem;
    height: 3rem;
}

#nav-btn {
    margin-right: 2rem;
}

header button svg {
    width: 100%;
    height: 100%;
    display: block;
}

.icon-rect {
    fill: var(--grass);
}

.icon-path {
    stroke: var(--font);
}

.icon-dot {
    fill: var(--font);
}

nav {
    display: none;
}

nav ul {
    position: absolute;
    top: 75%;
    right: 3%;
    background-color: var(--grass);
    padding: 1rem 1.25rem;
    border-radius: 7px;
    z-index: 10000;
    cursor: default;
}

nav ul li a {
    font-family: "游ゴシック体", "YuGothic", "游ゴシック Medium", "Yu Gothic Medium", sans-serif;
    text-decoration: none;
    color: var(--font);
    cursor: pointer;
}

nav ul li span,
nav ul li a:hover {
    color: var(--saxe);
}

/* top image*/

#top-image {
    text-align: center;
}

#top-image img {
    display: inline-block;
    width: 25%;
    height: auto;
    margin: 2rem 0 0.5rem 0;
}

/* カテゴリボタン */

#categories button {
    font-family: "Zen Maru Gothic";
    background-color: var(--background);
    border: none;
    border-radius: 1em;
    padding: 0.3em 0.7em;
    margin: 0.7em 0.5em 0 0;
}

#categories #all {
    background-color: var(--grass);
}


.description {
    margin: 2rem 0;
}

/* 記事一覧 */

.artworks-wrapper {
    margin-top: 20px;
    padding-left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
}


.item img {
    width: 100%;
    border-radius: 5px;
}

/* footer */

footer p {
    display: inline-block;
    font-size: 0.9rem;
}

#notice {
    display: flex;
    float: left;
}

#notice p {
    font-size: 0.8rem;
    margin-top: 1.1rem;
}

#copyright {
    float: right;
}

#copyright p {
    font-size: 0.9rem;
}

.bullet {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: var(--cerulean);
    border-radius: 50%;
    margin-right: 10px;
}

/* レスポンシブ対応 */
/* モバイルデバイス用 */


@media screen and (max-width: 299px) {
    .artworks-wrapper {
        grid-template-columns: 1fr;
    }

    #top-image img {
        width: 30%;
    }
}

@media (min-width: 299px) and (max-width: 476px) {

    html {
        font-size: 12px;
    }

    body,
    header {
        max-width: 476px;
    }

    #container {
        padding: 2rem;
    }

    #pagetitle button {
        width: 12rem;
        margin: 0 0.5rem;
    }

    #pagetitle #copyButton {
        width: 3rem;
    }

    main p,
    main a,
    main li,
    nav li {
        font-size: 14px;
    }

    .artworks-wrapper {
        grid-template-columns: 1fr 1fr;
    }

    #top-image img {
        width: 30%;
    }
}

@media (min-width: 476px) and (max-width: 767px) {
    html {
        font-size: 14px;
    }

    body,
    header {
        max-width: 767px;
    }

    #top-image img {
        width: 30%;
    }
}


/* タブレット用 */
@media (min-width: 768px) and (max-width: 1200px) {
    html {
        font-size: 15px;
    }

    body,
    header {
        max-width: 1023px;
    }

    #copyright p {
        font-size: 12px;
    }

    #top-image img {
        width: 30%;
    }
}