@charset "UTF-8";

/*CSSライブラリのインポート*/
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@100;200;300;400;500;600;700&display=swap");
@import url("https://fonts.googleapis.com/css?family=Noto+Sans+JP:100,300,400,500,700,900&display=swap&subset=japanese");
@keyframes bg-color {
  0% { background-color: #F9EB7D; }
  25% { background-color: #FF6778; }
  50% { background-color: #C57DFF; }
  75% { background-color:  #72D1F1; }
  100% { background-color: #8DFF9E; }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  color: #555555;;
  font-family: "Noto Sans JP", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1{
  font-size: 45px;
  font-weight: 700;
}

h2{
  font-size: 30px;
  font-weight: 700;

}

h3{
  font-size: 20px;
  font-weight: 700;
}

p{
  font-size: 16px;
  line-height: 1.8em;
}

header{
  width: 100%;
  height: 100px;
  position: fixed;
  z-index: 2;
  animation: bg-color 40s ease-in-out infinite;
  background-color: #F9EB7D;
}

.drawer_hidden{
  display: none;
}

nav{
  margin-top: 80px;
}

.nav_list{
  list-style: none; /* li使用時に発生する黒丸を削除 */
  display: block;
  position: fixed;
  padding-left: 40px;
}

.nav-list-item{
  margin-top: 50px;
}

.nav-list-item a{
  font-size: large;
  font-weight: bold;
  text-decoration: none; /* リンクに設定した場合発生する文字の装飾を解除。 */
}

.nav-list-item a:hover{
  border-bottom: solid 3px #555555;
}

.main_visual{
  width: 100%;
  height: 720px;
  margin: auto; /* 中央寄せ */
  text-align: center; /* 横方向に中央寄せで文字を配置する。*/
  animation: bg-color 40s ease-in-out infinite;
  background-color: #F9EB7D;
}

.main_visual img{
  margin-top: 220px;
}

.main_visual h1{
font-size: 45px;
animation-name: fadeInAnime;/*1で解説*/
animation-fill-mode:backwards;/*2で解説*/
animation-duration:3s;/*3で解説*/
animation-timing-function:ease;/*5で解説*/
animation-delay: 0.5s;/*6で解説*/
animation-direction:normal;/*7で解説*/
}

/*1で解説*/
@keyframes fadeInAnime{
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#works{
  inline-size: 80%;
  text-align: center;
  margin: 0 auto;
}

#works > h2{
  padding-top: 100px;
  margin: 0 auto 30px;
}

.works-list{
  inline-size: 100%;
  margin: 0 auto; /* 中央寄せ */
  gap: 40px; /* 上下 */
  display: flex; /* Flexboxを設定 */
  flex-wrap: wrap; /* 子要素が親要素の横幅いっぱいに配置されたら改行し、下に配置し始める設定 */
  justify-content: space-around;
}

figure{
  width: 320px;
  text-align: left;
}

figure a{
  text-decoration: none;
}

figure img{
  width: 360px;
  height: 225px;
  object-fit: contain;
}

small{
  font-size: 12px;
}

figcaption{
  font-size: 16px;
  font-weight: bold;
  margin-top: 1px;
}

figcaption p{
  margin-top: 3px;
}


#profile{
  margin: 100px auto;
}

#profile h2{
  margin: 0 auto;
  margin-bottom: 15px;
  text-align: center;
}

.profile-items{
  width: 100%;
  margin: 0 auto; /* 中央寄せ */
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* 子要素が親要素の横幅いっぱいに配置されたら改行し、下に配置し始める設定 */
  column-gap: 5%; /* 左右　*/
}

.icon img{
  width: 300px;
  height: 300px;
  margin: 0 auto;
}

.profile-text{
  width: 420px;
  text-align: left;
  margin-top: 20px;
}

.profile-items h3{
  margin-bottom: 5px;
}

.profile-items h4{
  text-align: right;
  margin-top: 5px;
  font-weight: 700;
}

footer{
  width: 100%;
  height: 100px;
  animation: bg-color 40s ease-in-out infinite;
  background-color: #F9EB7D;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer > small{
  letter-spacing: .1em;
}

footer > a{
  text-align: right;
}

.footer_button{
    border-radius: 100%;
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f0f0;
    color: #555555;
    border: 2px solid #555555;
    text-decoration: none;
    text-align: center;
    position: absolute;
    right: 45px;
}

/* =========================
      hamburger menu
=========================== */
#drawer_input {
  display: none;
}

.drawer_open {
  display: none;
}

/* =========================
 タブレット用（width 1200px）
=========================== */

  /* =========================
        hamburger menu
  =========================== */
@media screen and (max-width: 1200px) {
  .drawer_hidden {
    display: none;
}

.drawer_open {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    z-index: 100;
    cursor: pointer;
    border-radius: 100%;
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    color: #555555;
    border: 2px solid #555555;
    right: 15px;
    top: 10px;
}

.drawer_open span, .drawer_open span:before, .drawer_open span:after {
    content: '';
    display: block;
    height: 3px;
    width: 35px;
    border-radius: 3px;
    background: #505050;
    transition: 0.5s;
    position: absolute;
}

.drawer_open span:before {
    bottom: 10px;
}

.drawer_open span:after {
    top: 10px;
}

#drawer_input:checked~.drawer_open span {
    background: rgba(255, 255, 255, 0);
}

#drawer_input:checked~.drawer_open span::before {
    bottom: 0;
    transform: rotate(45deg);
}

#drawer_input:checked~.drawer_open span::after {
    top: 0;
    transform: rotate(-45deg);
}

nav {
    height: 720px;
    width: 100%;
    position: fixed;
    left: -100%;
    animation: bg-color 40s ease-in-out infinite;
    background: #F9EB7D;
    transition: .5s;
    align-items:center;
    justify-content: center;
    margin: 0;
    display: flex;
    margin-top: 0px;
}

.nav_list{
  padding-left: 0;
}
.nav_list{
  list-style: none; /* li使用時に発生する黒丸を削除 */
  display: block;
  position: fixed;
  text-align: center;
}
.nav-list-item a{
  font-size: 24px;
  margin-bottom: 40px;
  font-weight: bold;
  display: inline-block;
/*コレ*/align-items: center;
}

.nav-list-item:hover{
  border-bottom: none;
}

#drawer_input:checked~nav {
  left: 0;
}
 }

/* =========================
スマホ用（width 480px）
=========================== */

@media screen and (max-width: 480px) {

  html, body, header, .first-view, main, .main_visual, .works, .profile, footer {
      width: 100%;
  }

  .none {
      display: none !important;
  }

  /* =========================
           header
  =========================== */
header{
  height: 100px;
}

.nav_list {
  width: 100%;
  display: block;
  /*コレ*/text-align: center;
  animation: bg-color 40s ease-in-out infinite;
  background-color: #F9EB7D;
}

  /* =========================
           main
  =========================== */
  .main_visual{
    height: 660px;
   }

  .main_visual img{
    width: 80%;
    margin-top: 45%;
  }
  
   .main_visual > h1{
    font-size: 45px;
  }

    .works-list{
      inline-size: 100%;
      margin-bottom: 64px;
    }

    figure{
      width: 100%;
    }

    figure img{
      width: 100%;
      height: 262px;
    }

    figcaption{
      width: 100%;
      margin: 0 autopx;
    }

  .profile-text{
    inline-size: 80%;
    margin: 0 auto; /* 中央寄せ */
    display: flex;
    flex-direction: column;
  }
  
  .icon{
    width: 420px;
    text-align: center;
    padding-bottom: 30px;
  }
  
  .icon img{
    width: 250px;
    height: 250px;
  }

  footer > small{
    letter-spacing: .1em;
  }

  .footer_button{
    position: absolute;
    right: 15px;
}
}
