body {
  letter-spacing: 2px;
  /* font-family: "Archivo Black", "Dela Gothic One", sans-serif; */
  font-family: "Noto Sans JP", sans-serif;
  color: var(--blk);
}

li {
  list-style: none;
}

body a {
  text-decoration: none;
  color: #000;
}

.wrapper {
  max-width: 1100px;
  margin: 0 auto;
}

.inner {
  padding: var(--l) 0;
}

.red {
  color: var(--red);
}

h1 {
  letter-spacing: 1px;
}

h2 {
  margin-bottom: var(--l);
  font-size: 32px;
  text-align: center;
}

header {
  width: 100%;
  position: fixed;
  z-index: 9999;
}

.contact {
  background-color: var(--gry);
}

.header__wrapper {
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  text-align: center;
  padding: 20px 60px;
}

.header__links ul {
  display: flex;
  gap: var(--m);
  align-items: center;
  list-style: none;
}

section {
  scroll-margin-top: 86px;
}

.btn {
  display: block;
  margin: 0 auto;
  align-content: center;
  line-height: 1;
  text-decoration: none;
  color: #ffffff;
  border-radius: 10px;
  max-width: 75%;
  height: 40px;
  transition: 0.3s;
  background-color: var(--blk);
  border: 1px solid var(--blk);
}

.btn:hover {
  background-color: #fff;
  color: var(--blk);
}

.center {
  text-align: center;
}

/* 
----kv 
*/

.kv {
  height: 100vh;
  align-content: center;
}

.kv h2 {
  margin-bottom: 16px;
  font-size: 14vw;
  text-align: center;
}

.kv__inner {
  margin: var(--s);
}

.kv__inner {
  padding: 0;
}

/* 
----concept 
*/

.concept__inner {
  padding: 200px 0;
}

/* 
----profile 
*/

.profile__content {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.profile__content img {
  width: 200px;
}

.profile__content-text {
  align-content: center;
}

.name {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: var(--s);
}

/* 
----skill 
*/

.skill__content ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 40px;
  place-items: center;
}

.skill__content-item li {
  text-align: center;
}

.skill__content-item {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  width: 200px;
  height: auto;
  align-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
}

.skill__content-item img {
  margin: 0 auto 20px;
}

/* 
----works 
*/

.works__content ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  column-gap: 20px;
  row-gap: 40px;
  place-items: center;
}

.works__content img {
  max-width: 100%;
  margin-bottom: var(--m);
}

.works__content p {
  margin-bottom: var(--s);
}

.inner {
  opacity: 0;
  transform: translate(0, 20%);
  transition: 1.7s;
}
.inner.active {
  transform: translate(0, 0);
  opacity: 1;
}

.footer__content {
  display: flex;
  justify-content: space-evenly;
}

.mail {
  font-size: 20px;
  font-weight: bold;
  color: var(--blk);
}

@media screen and (max-width: 968px) {
  h1,
  h2 {
    font-size: 24px;
  }

  .inner {
    max-width: 95%;
    margin: 0 auto;
  }

  .header__wrapper {
    padding: 10px 15px;
  }

  .sp__text {
    max-width: 90%;
    margin: 0 auto;
    font-size: 14px;
  }

  /* ハンバーガーアイコン */

  .hamburger {
    align-content: center;
  }

  .hamburger-icon {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 25px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1001;
  }

  /* ハンバーガーの線 */
  .hamburger-icon span {
    width: 30px;
    height: 3px;
    background: #333;
    transition: transform 0.3s, opacity 0.3s;
    position: absolute;
  }

  /* 1本目（上の線） */
  .hamburger-icon span:nth-child(1) {
    top: 0;
  }

  /* 2本目（中央の線） */
  .hamburger-icon span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  /* 3本目（下の線） */
  .hamburger-icon span:nth-child(3) {
    bottom: 0;
  }

  /* フルスクリーンメニュー */
  .header__links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out;
  }

  /* メニューが開いたとき */
  .header__links.active {
    opacity: 1;
    visibility: visible;
  }

  /* メニューのリンク */
  .header__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    flex-direction: column;
    gap: var(--xs);
  }

  .header__links li {
    margin: var(--xs);
  }

  .header__links a {
    color: #fff;
    font-size: 24px;
    text-decoration: none;
    transition: color 0.3s;
  }

  .header__links a:hover {
    color: #ddd;
  }

  .hamburger.active .hamburger-icon span {
    background: #fff;
  }

  /* ハンバーガーアイコンが「×」に変形 */
  .hamburger.active .hamburger-icon span:nth-child(1) {
    transform: translateY(12px) rotate(45deg);
  }

  .hamburger.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active .hamburger-icon span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .skill__content ul {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .skill__content-item {
    width: 75%;
    height: auto;
  }

  .skill__content img {
    max-width: 100%;
    height: auto;
  }

  .profile__content {
    flex-direction: column;
  }

  .profile__content img {
    margin: 0 auto;
  }

  .works__content ul {
    grid-template-columns: repeat(1, 1fr);
  }
}
