/*--------------------------------
 アニメーション
---------------------------------*/
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 {
  animation-delay: 0.2s;
}

.fade-in-delay-2 {
  animation-delay: 0.4s;
}

.fade-in-delay-3 {
  animation-delay: 0.6s;
}

.fade-in-delay-4 {
  animation-delay: 0.8s;
}

.fade-in-delay-5 {
  animation-delay: 1.0s;
}

/*--------------------------------
 基本設定
---------------------------------*/
body {
  font-family: "Montserrat", "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  font-size: 15px;
  letter-spacing: .05em;
  color: #333;
}

a {
  transition: opacity .3s;
  text-decoration: none;
  color: #333;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
  border-style: none;
}

.pc-only {
  display: block;
}

.sp-only {
  display: none;
}

/*--------------------------------
 レイアウト
---------------------------------*/
.wrapper {
  padding-top: 73px;
}

.section {
  padding: 90px 0;
}

.section:nth-of-type(odd) {
  background-color: #f7f7f7;
}

.container {
  max-width: 1340px;
  margin: 0 auto;
  padding: 0 40px;
}

/*--------------------------------
 見出し
---------------------------------*/
.title {
  font-size: 34px;
  font-weight: bold;
  line-height: 1;
  margin-bottom: 40px;
  text-align: center;
  letter-spacing: .05em;
  color: #333;
}

.lead {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}

/*--------------------------------
 ヘッダー
---------------------------------*/
.header {
  position: fixed;
  top: 0;
  z-index: 1;
  width: 100%;
  background-color: #fff;
  box-shadow: 0 5px 10px -6px rgba(0, 0, 0, .1);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
}

.header-logo {
  font-size: 20px;
  font-weight: bold;
  line-height: 1.2;
  margin-right: 20px;
  letter-spacing: .05em;
}

.header-logo a {
  position: relative;
  color: #333;
  transition: .3s;
}

.header-logo a:after {
  position: absolute;
  bottom: -3px;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  transform: translateX(-50%);
  background-color: #333;
}

.header-logo a:hover:after {
  width: 100%;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  list-style: none;
}

.gnav-item:not(:last-child) {
  margin-right: 20px;
}

.gnav-item a {
  position: relative;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  padding: 5px 0;
  transition: .3s;
  letter-spacing: .05em;
  color: #333;
}

.gnav-item a:after {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  content: "";
  transition: .3s;
  transform: translateX(-50%);
  background-color: #333;
}

.gnav-item a:hover:after {
  width: 100%;
}

/*--------------------------------
 メインビジュアル
---------------------------------*/
.mv,
.mv * {
  box-sizing: border-box;
}

.mv {
  display: flex;
  max-width: 1280px;
  min-height: calc(600px + 10vh);
  /* max-height: 710px; */
  height: calc(100vh - 80px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.mv-left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: 343px;
  min-height: 600px;
  padding-left: 20px;
  padding-right: 20px;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.mv-right {
  width: 100%;
  height: 100%;
  background: url(../img/mv.webp) no-repeat center center / cover;
}

.card-profile {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: 120px;
  gap: 15px;
  position: relative;
  overflow: hidden;
}

.inoue-naoto {
  display: flex;
  align-items: center;
  width: auto;
  height: 20px;
  color: #404040;
  font-family: "Montserrat", "AppleLiGothic-Medium", sans-serif;
  font-size: 40px;
  font-weight: 500;
  letter-spacing: 0.11em;
  position: relative;
}

._2005 {
  display: flex;
  align-items: center;
  width: auto;
  color: #404040;
  font-family: "Montserrat", "AppleLiGothic-Medium", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
}

.card-ctg {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-shrink: 0;
  width: auto;
  height: 100px;
  gap: 15px;
  position: relative;
  overflow: hidden;
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.card-ctg:hover {
  background-color: rgba(64, 64, 64, 0.05);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.card-works,
.card-skill,
.card-about,
.card-contact {
  position: relative;
  display: flex;
  align-items: center;
  width: auto;
  height: 20px;
  color: #404040;
  font-family: "Montserrat", "AppleLiGothic-Medium", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.11em;
  transition: .3s;
}

.text,
.inoue-naoto2 {
  display: flex;
  align-items: center;
  width: auto;
  color: #404040;
  font-family: "HiraginoMinchoPro-W3", sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  position: relative;
}

/*--------------------------------
 Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.58730%;
  margin-bottom: 40px;
  color: #333;
  cursor: pointer;
  transition: all .5s ease;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.works-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.works-item:hover .works-name {
  justify-content: center;
  text-align: center;
  transform: scale(1.05);
}

.works-item:hover .works-info {
  justify-content: center;
  text-align: center;
  transform: scale(1.02);
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px 8px 0 0;
  position: relative;
}

.works-img img,
.works-img video {
  border: 1px solid #e6e6e6;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
}

.works-item:hover .works-img img,
.works-item:hover .works-img video {
  transform: scale(1.05);
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
  margin-bottom: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center center;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
  margin-bottom: 8px;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  transform-origin: center center;
}

/*--------------------------------
 Skill
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: -50px;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  width: 48%;
  margin-bottom: 50px;
  padding: 20px;
  border-radius: 8px;
  transition: all .3s ease;
  cursor: pointer;
}

.skill-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  background-color: #f9f9f9;
}

.skill-img {
  width: 60px;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: 14px;
  line-height: 1.8;
}

/*--------------------------------
 About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 800px;
  margin: 0 auto;
}

.profile-img {
  width: 20%;
  margin-right: 30px;
}

.profile-img img {
  border-radius: 50%;
}

.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

/*--------------------------------
 Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-item {
  display: inline-block;
  padding: 12px 24px;
  margin: 5px;
  border: 2px solid #333;
  border-radius: 25px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all .3s ease;
  cursor: pointer;
}

.contact-item:hover {
  background-color: #333;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.contact-text {
  margin-top: 10px;
}

/*--------------------------------
 ページトップ
---------------------------------*/
.page-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  padding: 15px;
  font-weight: bold;
  text-align: center;
  background-color: #4c4c4c;
  cursor: pointer;
  transition: all .3s ease;
  border-radius: 50%;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  z-index: 1000;
}

.page-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.page-top:hover {
  background-color: #333;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-top .material-icons-outlined {
  vertical-align: middle;
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

/*--------------------------------
 フッター
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

/*--------------------------------
 下層：Worksページ
---------------------------------*/
.article {
  padding: 80px 0;
}

.article-container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-title {
  margin-bottom: 30px;
  text-align: center;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  margin-bottom: 80px;
}

.article-body h3 {
  position: relative;
  font-size: 18px;
  margin-bottom: 5px;
  padding-left: 1em;
}

.article-body h3:not(:first-child) {
  margin-top: 50px;
}

.article-body h3::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  content: "";
  border-radius: 3px;
  background-color: #333;
}

.article-body p {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
}

.home-link {
  text-align: center;
}

/*--------------------------------
 レスポンシブ対応 (〜767px)
---------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: 14px;
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 26px;
    margin-bottom: 20px;
  }

  .lead {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* レイアウト */
  .wrapper {
    padding-top: 57px;
  }

  .section {
    padding: 60px 0;
  }

  .container {
    padding: 0 20px;
  }

  /* ヘッダー */
  .header .container {
    padding: 15px;
  }

  .header-logo {
    font-size: 15px;
    margin-right: 15px;
  }

  .gnav-item:not(:last-child) {
    margin-right: 10px;
  }

  .gnav-item a {
    font-size: 10px;
  }

  .gnav-item a:after {
    display: none;
  }

  /* メインビジュアル */
  .mv {
    flex-direction: column-reverse;
    height: auto;
  }

  .mv-left {
    width: 100%;
    height: auto;
    padding-top: 57px;
    padding-bottom: calc(20px + 3vh);
    padding-left: 20px;
    padding-right: 20px;
    min-height: auto;
  }

  .mv-right {
    width: 100%;
    height: 300px;
  }

  .card-profile,
  .card-ctg {
    width: 100%;
  }

  /* Works */
  .works-list {
    justify-content: space-between;
    margin-bottom: -40px;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 40px;
  }

  .works-img {
    height: 150px;
  }

  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  /* Skill */
  .skill-list {
    display: block;
    margin-bottom: 0;
  }

  .skill-item {
    width: 100%;
    margin-bottom: 35px;
  }

  .skill-item:last-child {
    margin-bottom: 0;
  }

  .skill-name {
    margin-bottom: 5px;
  }

  .skill-text {
    font-size: 13px;
    line-height: 1.7;
  }

  /* About */
  .profile {
    display: block;
  }

  .profile-img {
    width: 150px;
    margin: 0 auto 25px;
  }

  .profile-body p {
    font-size: 14px;
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /* 下層ページ */
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: .8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* ページトップボタン（スマートフォン） */
  .page-top {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    padding: 12px;
  }

  .page-top .material-icons-outlined {
    font-size: 20px;
  }
}
