/* bodyの余白をなくす */
body {
    padding: 0px;
    margin: 0px;
}

/* ナビゲーションメニュー */
nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style-type: none;
    margin: 20px auto 20px auto;
    max-width: 960px;
}

nav a {
    width: 300px;
    font-weight: bold;
    text-decoration: none;
    font-size: 34px;
    color: black;
    font-family: "Noto Sans JP", sans-serif;
    transition: all 0.3s ease;
}

nav a:hover {
    opacity: 0.6;
}

section {
    opacity: 0;
}

/* ナビゲーションメニューのMyProfileの部分 */
.home {
    border: 1px solid black;
    padding: 0px 20px;
    margin-left: 20px;
}

/* メニューの余白 */
.menu>a {
    margin-left: 20px;
    margin-right: 20px;
}

/* 名前 */
.name {
    font-size: 24px;
    font-weight: bold;
}

h1 {
    padding-top: 60px;
    padding-bottom: 40px;
    text-align: center;
    font-size: 34px;
    font-family: "Noto Sans JP", sans-serif;
}

p {
    font-size: 18px;
    font-family: "Noto Sans JP", sans-serif;
}

li {
    font-size: 18px;
    font-family: "Noto Sans JP", sans-serif;
}

/* divの 不要な空白を削除 */
div {
    font-size: 0;
}

/* メイン画像 */
.mainpic {
    width: 100%;
    /*height: 400px;*/
}

img {
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
}

/* About */
.about {
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    margin: 20px auto 20px auto;
    max-width: 960px;
}

/* 丸く切り取る画像 */
.circle {
    border-radius: 50%;
    width: 280px;
    height: 280px;
    object-fit: cover;
    border: 3px solid #999;
    padding: 3px;
}

/* プロフィールの説明部分 */
.content {
    margin: 0 auto;
    padding-left: 40px;
}

/* Works */
.works {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px auto 20px auto;
    max-width: 960px;
}

/* Worksの画像と説明部分 */
.item {
    padding-bottom: 60px;
    width: 25%;
}

/* Worksの画像と説明部分（2個目） */
.item_center {
    padding-right: 20px;
    padding-left: 20px;
}

/* フッター */
footer p {
    text-align: center;
    padding-bottom: 20px;
    font-family: "Noto Sans JP", sans-serif;
}

#back-btn {
    display: none;
    opacity: 0;

    padding: 28px 24px;
    background-color: #000;
    color: #fff;
    text-decoration: none;
    border-radius: 50%;
    text-align: center;
    font-family: "Noto Sans JP", sans-serif;

    position: fixed;
    bottom: 38px;
    right: 20px;

    /* transition: display 0.3 ease; */
}

#modal {
    display: none;
    opacity: 0;
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.8);
}
#modal img {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 80%;
    max-width: 800px;
    margin: auto;
}
#modal a {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    text-decoration: none;
}
#modal a:hover {
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.5s ease;
}

.opacity1 {
    opacity: 1;
    transition: all 1s ease;
}



/* 横幅が767pxまでの場合 */
@media (max-width: 767px) {
    .item {
        width: 100%;
        text-align: center;
        padding-bottom: 40px;
    }
}