@charset "UTF-8";

/*==================== COMMON ====================*/
html {
  font-size: 100%;
}

body {
  font-family: 'Montserrat', 'Noto Sans JP', sans-serif;
  background-color: #FCFCFC;
  letter-spacing: .05em;
  color: #333;
}

* {
  margin: 0;
  padding: 0;
}

a {
  text-decoration: none;
}

li {
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/*==================== LAYOUT ====================*/
.wrapper {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1em;
}

/*==================== LAYOUT - TABLET ====================*/
@media (max-width: 768px) {
  .wrapper {
    width: 90%;
  }
}

/*==================== LAYOUT - MOBILE ====================*/
@media (max-width: 425px) {
  .wrapper {
    width: 90%;
    margin: 0 auto;
    padding: 0;
  }
}

/*==================== HEADER ====================*/
#header {
  width: 100%;
  padding: 20px 0;
  position: fixed;
  right: 0;
  z-index: 10;
}

.header-active {
  height: 30px;
  background-color: rgba(255, 255, 255, .9);
  box-shadow: 0 3px 6px rgb(0 0 0 / 5%);
}

#header .nav {
  display: flex;
  justify-content: flex-end;
}

#header .nav .nav_list {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

#header .nav .nav_item {
  padding-left: 30px;
}

#header .nav .nav_item a {
  font-size: 10px;
  font-weight: bold;
  letter-spacing: .1em;
  color: #A9A9A9;
}

#header .nav .nav_item a:hover {
  color: #DFDFDF;
}

#header .nav .nav_item a:hover {
  opacity: .7;
}

#header .nav .nav_item i {
  font-size: 16px;
  color: rgb(30, 48, 80);
}

/*==================== HEADER - TABLET ====================*/
@media (max-width: 768px) {
  #header .nav .nav_item a:hover {
    color: #A9A9A9;
  }

  .header-active {
    height: 30px;
    background-color: rgba(255, 255, 255, .9);
    box-shadow: 0 3px 6px rgb(0 0 0 / 5%);
  }
}

/*==================== LOGO ====================*/
#logo {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  letter-spacing: 0.1em;
  text-align: center;
}

#logo h1 {
  display: block;
}

#logo h1 a {
  color: #333;
}

#logo span {
  font-size: 10px;
  color: #A9A9A9;
  display: block;
  padding-bottom: 4px;
}

/*==================== LOGO - TABLET ====================*/
@media (max-width: 768px) {
  #logo {
    height: 80vh;
    font-size: 20px;
  }
}

/*==================== LOGO - MOBILE ====================*/
@media (max-width: 425px) {
  #logo {
    height: 60vh;
    font-size: 1em;
  }
}

/*==================== WORKS ====================*/
#works {
  background-color: #F4F4F4;
}

#works,
#about,
#skill,
#contact {
  padding-bottom: 100px;
}

#works h2,
#about h2,
#skill h2,
#contact h2 {
  font-size: 30px;
  text-align: center;
  padding-top: 70px;
  padding-bottom: 50px;
  letter-spacing: .05em;
}

#works ul {
  display: flex;
  justify-content: space-between;
}

#works li {
  width: calc(100% / 3 - 30px);
}

#works li p {
  font-family: 'Noto Sans JP', sans-serif;
  padding-top: 24px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

#works img:hover {
  opacity: .7;
}

.fig {
  width: fit-content;
  margin-inline: auto;
  color: #333;
  padding-top: 12px;
}

/*==================== WORKS - TABLET ====================*/
@media (max-width: 768px) {
  #works,
  #about,
  #skill {
    padding-bottom: 50px;
  }

  #works h2,
  #about h2,
  #skill h2 {
    font-size: 22px;
    padding-top: 50px;
    padding-bottom: 30px;
  }

  #works ul {
    flex-direction: column;
    gap: 40px;
  }

  #works li {
    width: 100%;
    margin-bottom: 24px;
    margin-inline: auto;
    padding: 0 8px;
  }

  #works .works_item_img {
    margin-inline: auto;
  }

  #works li p {
    font-size: 15px;
    padding-top: 20px;
  }

  .fig {
    padding-top: 24px;
  }
}

/*==================== WORKS - MOBILE ====================*/
@media (max-width: 425px) {
  #works,
  #about,
  #skill {
    padding-bottom: 30px;
  }

  #works h2,
  #about h2,
  #skill h2 {
    font-size: 20px;
    padding-top: 60px;
    padding-bottom: 40px;
  }

  #works ul {
    gap: 40px;
  }

  #works li {
    width: 100%;
    margin-bottom: 10px;
    padding: 0;
  }
}

/*==================== ABOUT ====================*/
#about {
  background-color: #FCFCFC;
}

#about .about_list {
  display: flex;
  justify-content: space-between;
}

#about .about_list,
#skill .skill_list {
  padding: 20px;
}

#about .about_item {
  width: 48%;
}

#about .about_item .text_box {
  position: relative;
  padding: 20px;
}

#about .about_item .text_box .name,
#about .about_item .text_box .place,
#about .about_item .text_box .birthday {
  border-left: 4px solid #333;
  padding-left: 16px;
}

#about .about_item .text_box .name,
#about .about_item .text_box .place {
  margin-bottom: 16px;
}

#about .about_item .text_box .birthday {
  margin-bottom: 20px;
}

#about .about_item .text_box p {
  letter-spacing: .05em;
  line-height: 1.7;
}

/*==================== ABOUT - TABLET ====================*/
@media (max-width: 768px) {
  #about .about_list,
  #skill .skill_list {
    padding: 10px;
  }

  #about .about_item {
    width: 49%;
  }

  #about .about_item .text_box {
    padding: 10px;
  }

  #about .about_item .text_box p {
    font-size: 15px;
  }
}

@media (max-width: 660px) {
  #about .about_list {
    flex-direction: column;
  }

  #about .about_item {
    margin-inline: auto;
  }

  #about .about_item:nth-child(2) {
    padding-top: 24px;
  }
}
/*==================== ABOUT - MOBILE ====================*/
@media (max-width: 425px) {
  #about .about_list,
  #skill .skill_list {
    padding: 0;
  }

  #about .about_list {
    flex-direction: column;
  }

  #about .about_item {
    width: 100%;
  }

  #about .about_item:nth-child(2) {
    margin-top: 20px;
  }

  #about .about_item_img {
    margin-inline: auto;
  }

  #about .about_item .text_box {
    padding: 0;
  }
}

/*==================== SKILL ====================*/
#skill {
  background-color: #F4F4F4;
  letter-spacing: .05em;
}

#skill .skill_list .skill_title {
  font-size: 20px;
}

#skill .skill_list .skill_description {
  padding-top: 8px;
  text-indent: 1em;
}

#skill .skill_list li + li {
  margin-top: 30px;
}

/*==================== SKILL - TABLET ====================*/
@media (max-width: 768px) {
  #skill .skill_list .skill_title {
    font-size: 18px;
  }

  #skill .skill_list .skill_description {
    font-size: 15px;
  }

  #skill .skill_list li + li {
    margin-top: 25px;
  }
}

/*==================== SKILL - MOBILE ====================*/
@media (max-width: 425px) {
  #skill .skill_list .skill_title {
    font-size: 16px;
  }

  #skill .skill_list li + li {
    margin-top: 20px;
  }
}

/*==================== FOOTER ====================*/
#footer {
  background-color: #DFDFDF;
}

#footer .copyright {
  font-size: 12px;
  text-align: center;
  padding: 40px;
  letter-spacing: .05em;
}

/*==================== FOOTER - TABLET ====================*/
@media (max-width: 768px) {
  #footer .copyright {
    padding: 30px;
  }
}

/*==================== FOOTER - MOBILE ====================*/
@media (max-width: 425px) {
  #footer .copyright {
    font-size: 11px;
    padding: 24px;
  }
}