/* 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;
}

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

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

/* TOPに戻るボタン */

#page-top {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: black;
    color: #fff;
    bottom: 30px;
    right: 30px;
    cursor: pointer;
  }
   
  #page-top span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: block;
    width: 100%;
    text-align: center;
    font-size: 14px;
  }

/* 名前 */
.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;
}

/* スクロール　フェードイン */
.about {
    /* 最初は非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 1s, visibility 1s, transform 1s;
  }
  .works {
    /* 最初は非表示 */
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px);
    transition: opacity 1s, visibility 1s, transform 1s;
  }

  /* フェードイン時に入るクラス */
  .is-fadein {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }



/* 丸く切り取る画像 */
.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;
}

/* モーダル画像拡大 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
  }

.bigimg {
    position: absolute;
    width: 80%;
    max-width: 800px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
  }

.close-btn {
    position: absolute;
    top:10px;
    right: 20px;
    color: white;
    font-size: 40px;
    text-decoration: none;
  }

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