html {
    scroll-behavior: smooth;
}  
h2 {
    text-align: center;
    color: white;
    text-shadow: 1px 1px 2px rgb(0, 0, 0, 50%);
}
.sub-title {
    margin: 150px auto 0;
    animation: kuru 8s infinite;
}
@keyframes kuru {
    0% {
        transform: rotateY(0deg);
    }
    50% {
        transform: rotateY(90deg);
    }
    100% {
        transform: rotateY(0deg);
    }
}
    /* background */
body {
    animation: bgchange 20s infinite alternate-reverse;
  }
  @keyframes bgchange{
        0%   {background: #eeeeee;}
        10%  {background: #cccccc;}
        20%  {background: #aaaaaa;}
        30%  {background: #888888;}
        40%  {background: #777777;}
        50%  {background: #666666;}
        60%  {background: #555555;}
        70%  {background: #444444;}
        80%  {background: #333333;}
        90%  {background: #222222;}
        100% {background: #111111;}
   }
   /* header */
.header {
    display: flex;
    width: 100%;
    align-items:center;
    padding: 0 15px 0;
    margin: 0 auto;
    color: black;
    text-shadow: 1px 1px 2px white;
}   
.title {
    margin-top: 15px;
    font-size: 30px;
    font-weight: bold;
    margin-right: auto;
    border: 1px solid black;
    box-shadow: 1px 1px 2px white;
    background-color: white;
}
.menu {
    font-size: 15px;
    font-weight: bold;
}
.menu-item {
    list-style: none;
    display: inline-block;
    padding: 10px;
}
a {
    text-decoration: none;
    color: #111111;
}
a:hover {
    color: #eeeeee;
    transition: color 1s;
}
   /* main */
.main {
    font-size: 70px;
    text-align: center;
    animation: poyo 2s ease-out infinite;
}  
@keyframes poyo {
    0%, 40%, 60%, 80% {
        transform: scale(1.0);
    }
    50%, 70% {
        transform: scale(0.95);
    }
}    
.main-1 {
    color: #eeeeee;
    margin: 70px auto 0;
    text-shadow: 2px 2px 4px black;
}
.main-2 {
    color: #111111;
    text-shadow: 2px 2px 4px white;
    margin: auto;
} 
    /* works */
.image {
    align-items: center;
    text-align: center;
}
.image ul {
    padding: 0;
    display: flex;
    justify-content: space-around;
}
.image li {
    list-style: none;
    margin-top: 100px;
}
.image img {
    width: 250px;
    height: 200px;
    box-shadow: 0 0 8px #eeeeee;
    border-radius: 2px;
}
.image-text1 {
    color: black;
    text-shadow: 1px 1px 2px white;
    font-size: 15px;
    font-weight: bold;
}
.image-text2 {
    color: white;
    text-shadow: 1px 1px 2px black;
    font-size: 25px;
    animation: poyo 3s ease-out infinite;
}
.nav_toggle,
.nav {
  display: none;
}

@media screen and (max-width: 500px) {
.menu {
    display: none;
}
.image ul {
    display: block;
}
  .nav_toggle {
    display: block;
    position: relative;
    width: 1.75rem;
    height: 1.5rem;
    margin-right: 10px;
    z-index: 2;
  }
  .nav_toggle i {
    display: block;
    width: 100%;
    height: 2px;
    background-color: black;
    box-shadow: 1px 1px 2px white;
    position: absolute;
    transition: transform 0.5s, opacity 0.5s;
  }
  .nav_toggle i:nth-child(1) {
    top: 0;
  }
  .nav_toggle i:nth-child(2) {
    top: 0;
    bottom: 0;
    margin: auto;
  }
  .nav_toggle i:nth-child(3) {
    bottom: 0;
  }
  /* クリックされた後のハンバーガーのマーク */
  .nav_toggle.show i:nth-child(1) {
    transform: translateY(10px) rotate(-45deg);
  }
  .nav_toggle.show i:nth-child(2) {
    opacity: 0;
  }
  .nav_toggle.show i:nth-child(3) {
    transform: translateY(-12px) rotate(45deg);
  }
  /* クリックで表示されるメニュー：クリックされる前 */
  .nav {
    display: flex;
    position: fixed;
    align-items: center;
    justify-content: center;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s, visibility 0.5s;
    background-color: #fff;
    z-index: 1;
  }
  .nav_menu_li {
    margin-bottom: 30px;
  }
  .nav_menu_li a {
    color: black;
    text-decoration: none;
  }
  /* クリックで表示されるメニュー：クリックされた後 */
  .nav.show {
    opacity: 1;
    visibility: visible;
  }
}
/* about */
.profile {
    width: 300px;
    padding: 2rem;
    margin: 50px auto 0;
}
.profile img {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto;
    animation: mochi1 2s infinite;
}
@keyframes mochi1 {
    0% {
        transform: scale(1, 0.8);
    }
    20% {
        transform: scale(0.8, 1.1);
    }
    90% {
        transform: scale(1, 1);
    }
    100% {
        transform: scale(1, 0.8);
    }
}
.name {
    text-align: center;
    font-weight: bold;
    font-size: 1.2rem;
    margin: 1rem auto 1rem;
    letter-spacing: 10px;
    text-shadow: 1px 1px 2px black;
    color: white;
}
.desc {
    text-align: center;
    line-height: 1.6rem;
    text-shadow: 1px 1px 2px white;
    font-weight: bold;
}
/* contact */
.contact {
    text-align: center;
}
.contact label {
    text-shadow: 1px 1px 2px white;
}
.contact dl {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.contact dt {
    width: 15%;
}
.contact dd {
    width: 85%;
    margin-bottom: 10px;
}
.contact dd input,
.contact dd textarea {
    width: 100%;
    border: solid 1px #222222;
    padding: 10px;
    box-shadow: 1px 1px 2px #666666;
}
.contact dd textarea {
    height: 10rem;
}
.buttun input {
    width: 200px;
    /* background-color: #222222; */
    color: #333333;
    padding: 15px 0;
    border: solid 1px #222222;
    font-weight: bold;
}
.buttun input:hover {
    /* background: #888888; */
    color: #333333;
    text-shadow: 1px 1px 2px black;
}
/* footer */
.footer {
    font-size: 0.5em;
    padding: 10px 0;
    text-align: center;
    text-shadow: 1px 1px 2px white;
}
