html {
    font-size: 16px;
    font-family: Avenir, "游ゴシック体", YuGothic, "游ゴシック", "Yu Gothic", sans-serif;
    background-color: rgb(244, 244, 244);
    font-style: rgb(48, 48, 48);
    width: 100%;
    height: fit-content;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

a:hover {
    background-color: rgb(48, 48, 48);
    color: rgb(250, 250, 250);
}

::selection {
    color: rgb(255, 255, 255);
    background-color: rgb(0, 0, 255);
}

body {
    padding: 90px;
    height: 100%;
    /* max-width: 1600px; */
    margin: auto;
}

.text {
    font-size: 0.8rem;
    line-height: 1.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.text.phrase {
    font-weight: 700;
}

.flex {
    display: flex;
    justify-content: space-between;
    margin: auto;
}

header {
    z-index: 10;
    position: sticky;
    top: 90px;
    height: fit-content;
}

.myname {
    font-weight: 700;
    margin-bottom: 2rem;
    margin-right: 2rem;
    font-size: 1.1rem;
}

.menu {
    margin-bottom: 1rem;
}

.menu div {
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.copyright {
    bottom: 0px;
    font-size: 0.7rem;
}

img {
    max-width: 100%;
    width: 100%;
    height: auto;
}

.link.img a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.link.img a:hover {
    background-color: rgb(0, 0, 0, 0) !important;
}

.container {
    width: 83%;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto;
    gap: 1rem 1rem;
    grid-auto-flow: row;
}

.copyright.bottom {
    display: none;
}

.about {
    z-index: 10;
}

/* work */
.work.about {
    grid-column: 1/2;
    grid-row: 1/3;
    position: sticky;
    top: 90px;
    height: fit-content;
    margin-right: 1rem;
}

.work.title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.work.info {
    font-size: 0.6rem;
    margin-bottom: 2rem;
}

.work.img {
    grid-column: 2/4;
    cursor: pointer;
}

.work.movie {
    grid-column: 2/4;
}

.work.caption {
    grid-column: 2/4;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* 画像拡大 */
#zoomBack {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(250, 250, 250, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 500;
    display: none;
}

#zoomImg {
    padding: 20px;
    max-height: 90%;
    width: auto;
}

/* .popupAnimation {
  animation: popupAnimation 0.1s ease-out;
}

@keyframes popupAnimation {
  from {
    transform: scale(0.95);
  }
} */

/* about */
.about.container {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.icon.img {
    height: 1rem;
    width: 1rem;
}

.icon.link:hover {
    background-color: rgba(0, 0, 0, 0);
}

/* レスポンシブ（タブレット）*/
@media screen and (max-width: 1100px) {
    body {
        padding: 40px;
    }

    header {
        top: 40px;
        position: sticky;
    }

    .header {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
        margin-bottom: 1rem;
    }

    .container {
        width: 100%;
        grid-template-rows: auto;
        gap: 1rem 1rem;
    }

    .work.container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .work.img,
    .work.movie,
    .work.caption {
        grid-column: auto;
    }

    .flex {
        display: block;
        justify-content: space-between;
    }

    .menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .menu div {
        margin-left: 0rem;
    }

    .copyright.left {
        display: none;
    }

    .copyright.bottom {
        margin-top: 2rem;
        display: block;
        padding-bottom: 1rem;
    }

    .work.about {
        position: static;
    }
}

/* レスポンシブ（携帯） */
@media screen and (max-width: 600px) {
    body {
        padding: 20px;
    }

    .myname {
        margin-bottom: 1rem;
        font-size: 0.9rem;
    }

    .menu.inline {
        font-size: 0.7rem;
    }

    .container {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 1rem 1rem;
    }

    header {
        top: 20px;
    }
}

/* ダークモード */
@media (prefers-color-scheme: dark) {
    html {
        background-color: rgb(26, 26, 26);
        color: rgb(250, 250, 250);
    }

    a:hover {
        background-color: rgb(250, 250, 250);
        color: rgb(48, 48, 48);
    }

    /* svgアイコンの色 */
    .icon.link {
        filter: invert(100%) sepia(35%) saturate(0%) hue-rotate(124deg) brightness(103%) contrast(96%);
    }

    .icon.link:hover {
        background-color: rgba(0, 0, 0, 0);
    }

    /*オーバーレイの色*/
    #zoomBack {
        background-color: rgba(45, 45, 45, 0.9);
    }
}
