@charset "utf-8";

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Zen Kaku Gothic New", sans-serif;
  letter-spacing: 0.02em;
  color: #4a4a4a;
  background: #f5f5f5;
}

img {
  width: 100%;
}

.en {
  font-family: "Alata", sans-serif;
}

.en-roboto {
  font-family: "Roboto", sans-serif;
  padding: 0 2px;
}

/* --------------------------
  カーソル
--------------------------- */
.cursor {
  pointer-events: none;
}

.cursor__ball {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
}

.cursor__ball--big svg circle {
  fill: #171717a8;
}

.cursor__ball--small svg circle {
  fill: #00ff00;
}

/* --------------------------
  ロード画面
--------------------------- */
#loader {
  position: fixed;
  inset: 0;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 90;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#loader.hide {
  opacity: 0;
  pointer-events: none;
}

.wrapper {
  height: fit-content;
}

.typing {
  color: #00f066;
  line-height: 90px;
  letter-spacing: 0.05em;
  font-size: 100px;
  font-weight: bold;
  font-family: "Alata", sans-serif;
}

/* --------------------------
  header
--------------------------- */
header {
  position: fixed;
  top: 0;
  z-index: 50;
  width: 100%;
  background: #f5f5f582;
  transition: transform 0.3s ease;
}

header.hidden {
  transform: translateY(-100%);
}

.header__wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  padding: 0 30px;
}

h1 {
  line-height: 0;
}

h1 a {
  display: inline-block;
}

.logo__img {
  width: 300px;
}

.header-nav__list {
  display: flex;
}

.header-nav__link {
  margin: 0 20px;
  padding: 8px;
  font-size: 24px;
  color: #4a4a4a;
  letter-spacing: 0.02rem;
}

.header-nav__link:hover {
  color: #00f066;
}

.hamburger,
.sp-nav {
  display: none;
}

.link__github {
  position: relative;
  color: #00f066;
}

.github {
  position: absolute;
  top: 16px;
  right: -14px;
}

.link__github:hover {
  color: #a8a8a8;
}

.link__github:hover svg path {
  fill: #a8a8a8;
}

/* --------------------------
  background
--------------------------- */
.bg_pattern {
  position: fixed;
  width: 100%;
  height: 100%;
  opacity: 0.6;
  z-index: -1;
}

.Polka {
  background-image: radial-gradient(#dedede 2px, #f5f5f5 2px);
  background-size: 10px 10px;
}

/* --------------------------
  common
--------------------------- */
h2 {
  font-size: 16px;
  font-weight: normal;
}

.title__sub {
  padding: 0 0 40px 0;
  font-size: 62px;
  line-height: 62px;
  font-weight: bold;
  color: #00f066;
  font-family: "Alata", sans-serif;
}

.block__wrap {
  max-width: 1000px;
  margin: 16px auto;
}

.block__item {
  padding: 22px 22px 40px;
  background: #f9f9f9;
  border: 1.5px solid #a8a8a8;
  border-radius: 50px;
}

.block__title {
  width: fit-content;
  padding: 0 40px 6px;
  font-size: 24px;
  border-radius: 50vh;
  border: 1.5px solid #a8a8a8;
}

.circle {
  position: relative;
  padding: 0 0 0 40px;
  font-size: 24px;
}

.circle::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 6px;
  width: 20px;
  height: 20px;
  border-radius: 50vh;
  background: #00f066;
  border: 1.5px solid #4a4a4a;
}

/* --------------------------
  about
--------------------------- */
#about {
  padding: 180px 20px 80px;
}

.about__text {
  padding: 0 30px;
}

.name {
  font-size: 40px;
  margin: 0 0 10px 0;
  letter-spacing: 0.1rem;
}

/* --------------------------
  about career
--------------------------- */
.about__more {
  margin: 24px auto;
  text-align: end;
}

.about__btn {
  display: inline-block;
  margin: 0 16px 0 0;
  text-align: center;
}

.about__btn .block__title {
  background: #f5f5f5;
  width: 180px;
}

.about__btn .block__title:hover {
  background: #4a4a4a;
  color: #00f066;
}

.about__more .popup__detail {
  text-align: initial;
}

.about__more .detail__text {
  width: 100%;
  padding: 0 0 8px 16px;
}

.about__more .circle::after {
  top: 3px;
}

.career__title {
  padding: 0 0 8px 16px;
  font-size: 20px;
}

/* --------------------------
  skills
--------------------------- */
#skills {
  padding: 100px 20px 300px;
  background: #4a4a4a;
  border-radius: 100px 100px 0 0;
}

#skills h2 {
  color: #fff;
}

.skills__main {
  display: flex;
  gap: 16px;
}

.skill__dev {
  width: 80%;
}

.skill__title {
  margin: 24px 0 8px;
}

.skill__text {
  padding: 0 0 0 20px;
}

/* --------------------------
  works
--------------------------- */
#works {
  margin: -200px 0 0 0;
  padding: 100px 20px 80px;
  background: #f5f5f5;
  border-radius: 100px 100px 0 0;
}

.works__main {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* --------------------------
  works item
--------------------------- */
.item {
  display: contents;
}

.item__popup {
  width: calc((100% - 16px) / 2);
  padding: 24px;
  text-align: center;
  transition: 0.2s;
}

.item__popup:hover .works__img {
  transform: scale(1.02);
}

.works__img {
  display: block;
  width: 90%;
  margin: 0 auto;
  transition: transform 0.4s ease;
}

.works__text {
  font-size: 20px;
}

/* --------------------------
  popup
--------------------------- */
.popup-flag {
  display: none;
}

.popup-flag:not(:checked) ~ .popup-background,
.popup-flag:not(:checked) ~ .popup {
  display: none;
}

.popup-background {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background: #949494;
  opacity: 0.5;
}

.popup {
  width: 80%;
  max-width: 1200px;
  min-width: 780px;
  height: 90%;
  position: fixed;
  inset: 0;
  margin: auto;
  z-index: 101;
  background: #f9f9f9;
  border-radius: 50px;
  border: 1.5px solid #4a4a4a;
  overflow: hidden;
}

.popup__inner {
  height: 100%;
  padding: 24px;
  overflow: scroll;
}

.popup__inner::-webkit-scrollbar {
  display: none;
}

.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  border-radius: 50vh;
  background: #a8a8a8;
  border: 1.5px solid #4a4a4a;
}

.close-button::before,
.close-button::after {
  content: "";
  width: 60%;
  height: 1.5px;
  background: #4a4a4a;
  position: absolute;
  top: 50%;
  left: 12px;
}

.close-button::before {
  transform: rotate(45deg);
}

.close-button::after {
  transform: rotate(-45deg);
}

.close-button:hover {
  background: #4a4a4a;
}

.close-button:hover::before,
.close-button:hover::after {
  background: #00f066;
}

/* popup中身 */
.popup__inner .works__img {
  width: 70%;
}

.detail__main {
  font-size: 20px;
  text-align: center;
}

.popup__detail {
  padding: 0 50px;
}

.detail__item {
  display: flex;
  padding: 70px 0 0 0;
}

.detail__item a {
  color: #00f066;
  font-size: 20px;
  padding: 4px 0;
}

.detail__title {
  width: 30%;
}

.detail__text {
  width: 70%;
  font-size: 18px;
}

.detail_img {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 50px 0 0 0;
}

.detail_img .works__img:first-child {
  max-width: 65%;
}

.detail_img .works__img:last-child {
  max-width: 30%;
}

.detail__note {
  padding: 0 0 0 30px;
  line-height: 1.8;
}

.detail__link {
  margin: 16px 0 0 0;
  text-align: right;
}

.detail__item .link__github {
  /* font-weight: bold; */
  padding: 0 30px 0 0;
}

.detail__item .github {
  right: 6px;
  top: 5px;
}

/* アプリ詳細 */
.popup__app {
  margin: 50px 0 0 0;
  padding: 20px 50px;
  background: #dedede;
  border-radius: 30px;
}

.popup__app .detail__item {
  padding: 30px 0 0 0;
}

.app__detail {
  width: 60%;
}

.app__title {
  font-size: 20px;
}

.app__text {
  padding: 16px 0;
}

.app__detail .circle::after {
  background: #fff;
  top: 6px;
}


.app__img {
  width: 40%;
}

.app__img .works__img {
  border-radius: 8px;
}

/* --------------------------
contact
--------------------------- */
#contact {
  margin: 0 auto;
  padding: 50px 24px;
  background: #4a4a4a;
  color: #fff;
}

#contact .section__sub {
  color: #fff;
}

#contact .block__wrap {
  display: flex;
  justify-content: space-between;
  align-items: end;
}

.email {
  color: #00f066;
  text-decoration: underline;
  font-size: 38px;
  font-family: "Alata", sans-serif;
}


/* --------------------------
footer
--------------------------- */
footer {
  padding: 38px 24px 8px;
  background: #4a4a4a;
}

.footer-copyright {
  text-align: right;
  color: #fff;
  font-size: 12px;
}

/* --------------------------
850px 以下
--------------------------- */
@media screen and (max-width: 850px) {
  /* --------------------------
  カーソル
  --------------------------- */
  .cursor {
    display: none;
  }

  /* --------------------------
  ロード画面
  --------------------------- */
  .typing {
    font-size: 60px;
  }

  /* --------------------------
  header
  --------------------------- */
  .logo__img {
    width: 250px;
  }

  .header__wrap {
    padding: 0 16px;
    height: 70px;
  }

  .header-nav__list {
    display: none;
  }

  /* ハンバーガーメニュー */
  .hamburger {
    display: block;
    position: relative;
    z-index: 1000;
    width: 40px;
    height: 40px;
  }

  .hamburger span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #4a4a4a;
    border-radius: 50vh;
  }

  .hamburger,
  .hamburger span {
    display: inline-block;
    transition: all .5s;
    box-sizing: border-box;
  }

  .hamburger span:nth-of-type(1) {
    top: 10px;
  }
  .hamburger span:nth-of-type(2) {
    top: 20px;
  }
  .hamburger span:nth-of-type(3) {
    top: 30px;
  }

  #hamburger.active span:nth-of-type(1) {
    transform: translateY(10px) rotate(-45deg);
  }
  #hamburger.active span:nth-of-type(2) {
    opacity: 0;
  }
  #hamburger.active span:nth-of-type(3) {
    transform: translateY(-10px) rotate(45deg);
  }

  .sp-nav {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    padding: 100px 34px;
    width: 100vw;
    height: 100vh;
    background: #00f066;
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.3s ease,
      transform 0.3s ease,
      visibility 0.3s ease;
  }

  .sp-nav.active {
    opacity: 1;
    visibility: visible;
  }

  .no-scroll {
    overflow: hidden;
  }
  
  .sp-nav .title__sub {
    margin: 0;
    color: #fff;
  }

  .sp-nav__list li {
    margin: 20px 0;
  }

  .sp-nav .link__github {
    font-size: 34px;
  }

  .sp-nav .link__github .github {
    width: 24px;
    height: 24px;
    top: 17px;
    right: -28px;
  }

  .sp-nav .link__github svg path {
    fill: #fff;
  }

  .sp-nav .link__github:hover svg path {
    fill: #fff;
  }

  .sp-contact {
    position: fixed;
    bottom: 60px;
  }

  .sp-contact .email {
    color: #4a4a4a;
  }

  .email {
    font-size: 20px;
  }

  /* --------------------------
  common
  --------------------------- */

  .circle {
    padding: 0 0 0 30px;
    font-size: 20px;
  }

  .circle::after {
    content: "";
    top: 7px;
    left: 0;
    width: 16px;
    height: 16px;
  }

  /* --------------------------
  about
  --------------------------- */
  #about {
    padding: 120px 16px 60px;
  }

  .about__text {
    padding: 0 8px;
  }

  /* --------------------------
  about career
  --------------------------- */
  .about__btn {
    margin: 0;
  }

  .about__more .detail__text {
    padding: 0;
  }

  .about__more .detail__item {
    padding: 0 0 34px 0;
  }

  .about__more .detail__item:last-child {
    padding: 0;
  }

  .career__title {
    padding: 8px 0;
    font-size: 18px;
  }

  /* --------------------------
  skills
  --------------------------- */
  #skills {
    padding: 100px 16px 300px;
    border-radius: 60px 60px 0 0;
  }

  .skills__main {
    display: initial;
  }

  .skill__title {
    font-size: 20px;
  }

  .skill__dev {
    width: 100%;
    margin: 0 auto 16px;
  }

  /* --------------------------
  works
  --------------------------- */
  #works {
    padding: 100px 16px 80px;
    border-radius: 60px 60px 0 0;
  }
  /* --------------------------
  works item
  --------------------------- */
  .works__img {
    width: 100%;
    margin: 16px auto;
  }

  /* --------------------------
  popup
  --------------------------- */
  .popup {
    width: 94%;
    min-width: inherit;
    border-radius: 40px;
  }

  .popup__inner {
    padding: 16px;
  }

  .popup__detail {
    padding: 30px 0;
  }

  .close-button {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
  }

  .close-button::before,
  .close-button::after {
    content: "";
    left: 8px;
  }

  .detail__title {
    width: 100%;
  }
  
  .detail__item {
    display: block;
    padding: 0 0 24px 0;
  }

  .detail__item a {
    font-size: 16px;
  }

  .detail__main {
    font-size: 20px;
  }

  .detail {
    line-height: 32px;
    font-size: 16px;
  }

  .detail__text {
    width: 100%;
    padding: 8px;
    font-size: 16px;
  }

  .detail__note {
    padding: 0 0 0 16px;
    font-size: 14px;
  }

  .detail__sub {
    padding: 24px 0 8px 28px;
    font-size: 16px;
  }

  .detail__sub::after {
    left: 4px;
    width: 14px;
    height: 14px;
  }

  .detail_img {
    padding: 0;
  }

  .detail__item .github {
    top: 2px;
  }

/* アプリ詳細 */
.popup__app {
  margin: 0;
  padding: 0 16px 20px;
}

.app__detail {
  width: 100%;
}

.app__img {
  width: 100%;
}

 /* --------------------------
  contact
  --------------------------- */
  #contact .block__wrap {
    display: initial;
  }

  /* --------------------------
  footer
  --------------------------- */
  .item__popup {
    width: 100%;
  }
}

