/* ---- サイト全体に適用 ----*/
html {
  font-size: 62.5%;
}
body {
  background-image: url(background.jpg);
  background-size: cover;
  background-repeat: repeat;
  width: 1000px;
  margin: auto;
  text-align: center;
  font-family: 'Noto Sans JP', sans-serif;
}
.container {
  width: 100%;
}
/* ---- 共通 ----*/
.header, h1, h2, .scroll_down a {
  text-transform: uppercase;
}
.header, h2 {
  color: #4D4D4D;
}
#top, #about, #skills, #works {
  margin-bottom: 100px;
}
/* ---- PCでは非表示の要素 ----*/
@media screen and (min-width: 641px) {
  .sp-header {
    display: none;
  }
}
/* ---- 見出し ----*/
h1, h2 {
  margin-bottom: 50px;
}
h1, h3 {
  font-family: 'M PLUS 1p', sans-serif;
  font-weight: bold;
}
h1 {
  color: #FFBEBA;
  font-size: 10rem;
}
h2 {
  font-size: 5rem;
  font-weight: bold;
}
h3 {
  font-size: 1.8rem;
  margin: 20px 0;
}
/* ---- TOP ----*/
.header {
  width: 800px;
  margin: 80px auto;
}
.header ul {
  list-style: none;
  display: flex;
  justify-content: space-between;
}
.header ul li {
  font-weight: bold;
  font-size: 3.5rem;
}
.header ul li a {
  text-decoration: none;
}
.header ul li a:hover {
  color: #cccccc;
}
/* ---- ABOUT ----*/
#about p {
  font-size: 3rem;
  text-align: center;
}
/* ---- SKILLS ----*/
.skills_maincontents {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0 20px;
}
.skills_maincontents::after {
  content: "";
  display: block;
  width: 310px;
}
.skills_container {
  margin-bottom: 80px;
}
.skills_contents {
  padding-top: 60px;
  width: 310px;
  height: 450px;
  background-color: #fff;
}
.skills_contents p {
  display: inline-block;
  font-size: 1.4rem;
  text-align: left;
}
.skill_js-text {
  margin-top: 10px;
}
/* ---- WORKS ----*/
.works_maincontents {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  width: 830px;
  margin: 0 auto;
}
.works_website {
  padding-bottom: 30px;
}
.works_website img {
  border-radius: 5%
}
.works_website p {
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 1.8rem;
  font-weight: normal;
  margin-top: 10px;
}
.works_website_img:hover {
  opacity: 0.8;
  transition: 0.3s;
  cursor: pointer
}
/* ---- コピーライト ----*/
.copyright {
  font-size: 1.2rem;
  padding: 10px 0;
}
/* ---- 見出しタグh1の動き(JS) ----*/
.slide-in {
  overflow: hidden;
  display: inline-block;
}
.slide-in_inner {
  display: inline-block;
}
/*左右のアニメーション*/
.leftAnime {
  opacity: 0;
  /*事前に透過0にして消しておく*/
}
.slideAnimeLeftRight {
  animation-name: slideTextX100;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes slideTextX100 {
  from {
    transform: translateX(-100%);
    /*要素を左の枠外に移動*/
    opacity: 0;
  }
  to {
    transform: translateX(0);
    /*要素を元の位置に移動*/
    opacity: 1;
  }
}
.slideAnimeRightLeft {
  animation-name: slideTextX-100;
  animation-duration: 1.3s;
  animation-fill-mode: forwards;
  opacity: 0;
}
@keyframes slideTextX-100 {
  from {
    transform: translateX(100%);
    /*要素を右の枠外に移動*/
    opacity: 0;
  }
  to {
    transform: translateX(0);
    /*要素を元の位置に移動*/
    opacity: 1;
  }
}
/* ---- 見出しタグh2に動く下線(JS) ----*/
.headline {
  position: relative;
}
.headline:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 4px;
  background: #4D4D4D;
  transition: all 0.5s;
}
.headline.isActive:after {
  width: 100%;
}
/* ---- TOPに戻るボタン(JS) ----*/
#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  font-size: 14px;
  line-height: 1;
  z-index: 98;
}
#page-top a {
  background: #4D4D4D;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  width: 60px;
  padding: 28px 5px;
  text-align: center;
  display: block;
  border-radius: 90px;
  opacity: 0.9;
  transition: all .3s ease;
  box-sizing: initial;
}
#page-top a:hover {
  text-decoration: none;
  opacity: .5;
}
/* ---- Worksのモーダルウィンドウ(JS) ----*/
.modal {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 99;
  background-color: rgba(0, 0, 0, 0.6);
  display: grid;
  align-items: center;
  visibility: hidden;
  opacity: 0;
  transition: all 0.3s;
}
.modalIsOpen {
  visibility: visible;
  opacity: 1;
}
.modal-content {
  background-color: #f0f0f1;
  width: 850px;
  height: 400px;
  padding: 50px;
  justify-self: center;
  overflow-y: scroll;
}
.modal-content {
  text-align: center;
}
.works_contents {
  text-align: left;
  padding-top: 40px;
}
.works_contents dt {
  font-size: 2.5rem;
  position: relative;
  display: inline-block;
  padding-left: 40px;
  margin-bottom: 15px;
  font-weight: normal;
}
.works_contents dt::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 0 15px 23px;
  border-color: transparent transparent transparent #29aae2;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  margin: auto;
}
.works_contents dd {
  font-size: 1.6rem;
  margin: 0 0 40px 50px;
}
.works_contents-text {
  margin: 10px 0;
}
.works_contents-text-space {
  padding-bottom: 10px;
}
.works_contents-link {
  text-align: left;
  font-size: 1.8rem;
}
.works_contents-link a {
  color: blue;
  text-decoration: none;
  font-style: italic;
}
.works_contents-link a:hover {
  text-decoration:underline dotted;
}
.works_contents-link_url {
  color: black;
  font-style: normal;
}
/* 「閉じる」ボタン*/
.modal_close {
  font-size: 300%;
  font-weight: bold;
  text-align: end;
  margin-top: -30px;
  cursor: pointer
}
/* 「Scroll down」アイコン*/
.scroll {
  position: relative;
}
.scroll_down {
  position:absolute;
  bottom:25%;
}
.scroll_down a {
  position: absolute;
  left: -24px;
  bottom: 17px;
  color: #000;
  font-size: 1.3rem;
  letter-spacing: .2em;
  writing-mode: vertical-rl;
}
.scroll_down:before {
    content: '';
    position: absolute;
    bottom: 5px;
    right: -6px;
    width: 2px;
    height: 20px;
    background: #000;
    transform: skewX(-31deg);
}
.scroll_down:after {
  content: '';
  position: absolute;
  bottom: 5px;
  right: 0;
  width: 2px;
  height: 85px;
  background:#000;
}
/* ---- スマートフォン用の表示 ----*/
@media screen and (max-width: 640px) {
  /* ---- スマートフォンでは非表示の要素 ----*/
  .header ul, .scroll {
    display: none;
  }
  /*サイト全体に適用*/
  body {
    width: 100%;
  }
  h1 {
    font-size: 5rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  #about {
    margin-bottom: 50px;
  }
  #about p {
    font-size: 1.6rem;
  }
  #skills {
    margin-bottom: 10px;
  }
  .skills_maincontents {
    display: inline-block;
    margin: 0 auto;
  }
  .works_maincontents {
    width: 100%;
  }
  .works_website p {
    font-size: 1.5rem;
  }
  .works_website_img {
    width: 80%;
    height: auto;
  }
  /*ハンバーガーメニュー*/
  .sp-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1;
  }
  .sp-header__inner {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 0.5rem 1rem;
  }
  /* ハンバーガーボタンのデザイン */
  .drawer__button {
    position: relative;
    width: 3rem;
    height: 3rem;
    background-color: transparent;
    border: none;
    cursor: pointer;
    z-index: 999;
  }
  /* ハンバーガーボタン内の線 */
  .drawer__button>span {
    display: block;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 3rem;
    height: 2px;
    background-color: #4D4D4D;
    transform: translateX(-50%);
  }
  .drawer__button>span:first-child {
    transform: translate(-50%, calc(-50% - 0.5rem));
    transition: transform 0.3s ease;
  }
  .drawer__button>span:nth-child(2) {
    transform: translate(-50%, -50%);
    transition: opacity 0.3s ease;
  }
  .drawer__button>span:last-child {
    transform: translate(-50%, calc(-50% + 0.5rem));
    transition: transform 0.3s ease;
  }
  /* 展開時のデザイン */
  .drawer__button.active>span:first-child {
    transform: translate(-50%, -50%) rotate(-45deg);
    background-color: #fff;
  }
  .drawer__button.active>span:nth-child(2) {
    opacity: 0;
  }
  .drawer__button.active>span:last-child {
    transform: translate(-50%, -50%) rotate(45deg);
    background-color: #fff;
  }
  /* ハンバーガーメニューのデザイン */
  .drawer__nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
    opacity: 0;
    visibility: hidden;
  }
  .drawer__nav.active {
    opacity: 1;
    visibility: visible;
  }
  .drawer__nav__inner {
    position: relative;
    width: 80%;
    height: 70%;
    background-color: #4D4D4D;
    padding: 4rem 1.5rem 1rem;
    margin: 0 0 0 auto;
    overflow: scroll;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    /*スクロールバー非表示（Edge）*/
    -ms-overflow-style: none;
    /*スクロールバー非表示（Firefox）*/
    scrollbar-width: none;
  }
  /*スクロールバー非表示（Chrome・Safari）*/
  .drawer__nav__inner::-webkit-scrollbar {
    display: none;
  }
  .drawer__nav.active .drawer__nav__inner {
    transform: translateX(0);
  }
  .drawer__nav__menu {
    list-style: none;
    padding-left: 0;
  }
  .drawer__nav__link {
    display: block;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    padding: 1rem 1rem;
    font-size: 4rem;
  }
  .drawer__nav__link:hover {
    color: black;
  }
  .drawer__nav__item {
    position: relative;
    margin: 30px auto;
  }
  .drawer__nav__item:after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fff;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    margin: 80px auto;
    border-radius: 50%;
  }
  .drawer__nav__item:last-child:after {
    content: none;
  }
  /* ハンバーガーメニュー展開時、背景を固定 */
  body.active {
    height: 100%;
    overflow: hidden;
  }
  /*Worksのモーダルウィンドウ(JS)*/
  .modal-content {
    width: 350px;
    height: 550px;
  }
  .modal-content img {
    width: 100%;
    height: auto;
  }
  .works_contents dt {
    font-size: 1.8rem;
    padding-left: 30px;
  }
  .works_contents dt::before {
    border-width: 10px 0 10px 15px;
  }
  .works_contents dd {
    font-size: 1.3rem;
    margin-left: 30px;
  }
}