@charset "utf-8";
@import url('https://fonts.googleapis.com/css?family=Ubuntu+Mono');

/* common */
html {
  font-size: 62.5%;
}

body {
  font-size: 1.4rem;
  color: #333;
  font-family: "Helvetica Neue", "Helvetica", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Arial", "Yu Gothic", "Meiryo", sans-serif;
}

body,
h1,h2,h3,h4,
ul,ol,dl,
li,dt,dd,p {
  margin: 0;
  padding: 0;
}

h1,h2,h3,h4 {
  font-weight: normal;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: .3s;
}

img {
  vertical-align: bottom;
}

*, *::before, *::after {
  box-sizing: border-box;
}

.container {
  max-width: 980px;
  margin: auto;
  padding: 0 2.8em;
}

.name::before,
.name::after {
  content: ' - ';
}

.necessity {
  background: #f00;
  color: #fff;
  font-size: 1.1rem;
  /* font-weight: bold; */
  padding: 0.2rem 0.6rem;
  border-radius: .2rem;
  margin-left: 1.2rem;
}

/* page-top */
.page-top {
  height: 40px;
  width: 40px;
  position: fixed;
  right: 30px;
  bottom: 30px;
  background: #fff;
  border: 2px solid #fff;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2;
  cursor: pointer;
}
.page-top__arrow {
  display: block;
  height: 10px;
  width: 10px;
  border-top: 3px solid #000;
  border-right: 3px solid #000;
  transform: translateY(20%) rotate(-45deg);
}

/* header */
#header .container {
  padding-top: 2.8rem;
  padding-bottom: 2.8rem;
}

#header .logo-ER {
  display: inline-block;
  width: 4rem;
  height: 4.8rem;
  line-height: 4.8rem;
  text-align: center;
  font-family: 'Teko', sans-serif;
}

#header .E {
  background: #000;
  color: #fff;
}

#header .R {
  background: #00A0DC;
  color: #fff;
}

#header .bi {
  font-size: 2.4rem;
}

#header ul {
  display: flex;
  justify-content: center;
  gap: 4.2rem;
}

#header nav a {
  position: relative;
}

#header nav a:hover {
  color: #00A0DC;
}

#header nav a::after {
  position: absolute;
  content: '';
  left: 0;
  right: 0;
  margin: auto;
  width: 100%;
  height: 2px;
  background: #00A0DC;
  bottom: -8px;
  transform: scale(0, 1);
  transform-origin: center top;
  transition: transform .3s;
}

#header nav a:hover::after {
  transform: scale(1, 1);
}

#header .logo {
  display: flex;
  flex-direction: row;
  /* gap: 3.2rem; */
}

/* #header .logo-ER {
  display: flex;
  flex-direction: row;
} */

#header .title-box {
  display: flex;
  flex-direction: column;
  margin-left: 3.2rem;
}

#header .title {
  font-family: 'Ubuntu Mono', monospace;
}

#header .date {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 2rem;
}

/* .burger {
  width: 48px;
  height: 48px;
  background: #000;
  color: #fff;
  position: fixed;
  top: 0;
  right: 0;
  cursor: pointer;
  z-index: 999;
} */

/* .burger:hover {
  opacity: .7;
} */

/* .burger span {
  width: 50%;
  height: 2px ;
  background: #fff;
  position: absolute;
  left: calc((48px - 50%) / 2) ;
  transition: 0.3s ease-in-out;
} */
/* 1本目の線の位置を設定 */
/* .burger span:nth-child(1) {
  top: calc(48px / 3);
} */
/* 2本目の線の位置を設定 */
/* .burger span:nth-child(2) {
  top: calc(48px / 2);
} */
/* 3本目の線の位置を設定 */
/* .burger span:nth-child(3) {
  top:  calc((48px / 3) * 2);
} */

/* .burger.is-active span:nth-child(1){
  transform: rotate(45deg);
  top: 50%;
}
.burger.is-active span:nth-child(2) {
  opacity: 0;
}
.burger.is-active span:nth-child(3){
  transform: rotate(-45deg);
  top: 50%;
} */

/* .mask {
  display: none;
} */

/* .mask.is-active {
  display: block;
  position: fixed;
  top: 0;
  left: 0;  
  width: 100vw;
  height: 100vh;
  background: #00a1dce3;
  z-index: 990;
} */

/* .mask-menu ul {
  color: #fff;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  text-align: center;
  margin-top: 56px;
} */

/* main */
main {
  color: #666;
}

main .container > section {
  margin-top: 8rem;
}

main h2 {
  display: flex;
  gap: 3.2rem;
  align-items: baseline;
  position: relative;
  padding: 1rem 2rem;
  border-bottom: 6px solid #00A0DC;
}

main h2:before {
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 136px;
  height: 6px;
  content: '';
  background: #000;
}

main h2 .en {
  font-family: 'Ubuntu Mono', monospace;
  font-size: 2.8rem;
}

main h2 .ja {
  font-size: 1.6rem;
}

main h3 {
  text-align: center;
}

main ul {
  margin: 3.2rem auto 0;
}

main img {
  display: block;
}

main .profile,
main .service,
main .works,
main .contact {
  padding: 0 5%;
}

/* main > hero */
#hero {
  background: url(./img/mv.jpg) center bottom/cover;
  width: 100%;
  height: 28rem;
  position: relative;
}

#hero .message {
  background: rgba(15, 15, 15, 0.3);
  box-shadow: 0 0 .4rem #333;
  color: #fff;
  padding: .4rem .8rem;
  border-radius: .2rem;
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 2;
  position: absolute;
  top: 7.5%;
  left: 5%;
}

/* main > profile */
.profile {
  margin-top: 4.8rem;
}

.profile .yokke-img {
  border-radius: 50%;
  margin: auto;
}

.profile .message {
  margin-top: 1.6rem;
}

.profile dl {
  margin-top: 3.2rem;
  display: flex;
  flex-wrap: wrap;
}

.profile dt {
  margin-top: .4rem;
  width: 6.4rem;
}

.profile dd {
  margin-top: .4rem;
  width: calc(100% - 6.4rem);
}

.profile h3 {
  margin-top: 4.8rem;
}

.profile h3 .en {
  font-family: 'Ubuntu Mono', monospace;
}

.profile a:hover {
  color: #00A0DC;
}

.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 3.2rem;
  text-align: center;
}

.skills li img {
  margin: auto;
}

.skills p:last-of-type {
  margin-top: 1.2rem;
}

/* main > service */
.service li + li {
  margin-top: 4.8rem;
}

.service li img {
  margin: 2.4rem auto;
}

.service li p + p {
  margin-top: 1.2rem;
}

/* main > works */
#works ul {
  width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
}

.works li {
  border: 1px solid #ccc;
  overflow: hidden;
}

.works img {
  width: 100%;
  max-width: 32rem;
  max-height: 32rem;
  object-fit: contain;
  margin: 0 auto;
  transition: .5s;
}

.works li img:hover {
  transform: scale(1.1);
}

/* main > contact */
.contact {
  margin-top: 3.2rem;
}

#contact label {
  display: block;
  font-size: 1.4rem;
}

#contact .frame {
  margin-top: 3.2rem;
}

#contact .frame + .frame {
  margin-top: 1.6rem;
}

#contact .box {
  width: 100%;
  padding: 1.2rem;
  border: 1px solid #bbb;
}

#contact textarea {
  height: 16rem;
}

#contact .btn {
  margin-top: 3.2rem;
  text-align: center;
}

#contact button {
  all: unset;
  background: #333;
  color: #eee;
  font-size: 1.4rem;
  padding: 1.4rem 6.4rem;
  cursor: pointer;
  transition: .3s;
}

#contact button:hover {
  background: #00A0DC;
  color: #fff;
}

/* footer */
#footer {
  margin-top: 8rem;
  background: #111;
  color: #eee;
}

#footer .container {
  padding-top: 3.2rem;
}

#footer ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4.2rem;
}

#footer ul a:hover {
  color: inherit;
  opacity: .5;
}

#footer .sns {
  margin-top: 3.2rem;
  font-size: 2.4rem;
}

#footer .sns a:hover {
  color: #1DA1F2;
  opacity: 1;
}

#footer .copy-right {
  text-align: center;
  padding: 4.8rem 0 3.2rem;
  font-size: 1.2rem;
}

/* ----------
min-width: 768px
---------- */

@media (min-width: 768px) {
   /* header */
  #header ul {
    display: flex;
    justify-content: flex-end;
    gap: 5.6rem;
  }

  .burger {
    display: none;
  }

  .mask.is-active {
    display: none;
  }

  /* main */
  main ul {
    display: flex;
    gap: 4.2rem;
  }
  
  main li {
    width: calc((100% - 8.4rem) / 3);
  }
  
  /* main > hero */
  #hero {
    /* background: url(img/mainvisual_pc.jpg) center/cover; */
    width: 100%;
    height: 40rem;
  }

  #hero .message {
    font-size: 1.4rem;
  }

  /* main > profile */
  .profile {
    display: flex;
    gap: 4rem;
    flex-wrap: wrap;
  }

  .profile .flex-items {
    width: calc((100% - 4.8rem) / 2);
  }

  .profile .flex-items .introduction {
    display: block;
    }

  .profile .flex-items .introduction li {
    width: 100%;
    }
  
  .profile h3 {
    margin-top: 0;
  }

  #skills {
    margin-top: -12rem;
  }

  .skills li {
    width: calc((100% - (3.2rem * 2)) / 3);
  }

   /* main > service */
  .service li + li {
    margin-top: 0;
  }

  .service li img {
    margin: 4.8rem auto;
    width: 9.6rem;
    height: 9.6rem;
  }

  /* main > works */
  #works ul {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .works li {
    width: calc((100% - 6.4rem) / 3);
  }

  /* main > contact */
  #contact .frame {
    display: flex;
  }

  #contact label {
    width: 25%;
  }

  #contact .box {
    width: 75%;
  }

  /* footer */
  #footer .container {
    display: flex;
    justify-content: space-between;
    align-items:baseline
  }

  #footer .sns {
    margin-top: 0;
  }
}