@charset "UTF-8";

:root {
  --main-font-size: 14px;
  --main-color: #333;
  --text-bold: bold;
  --text-small: 0.7rem;
}

/*--------------------------------
 main visual
---------------------------------*/
#mv {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  max-width: 1200px;
  margin: auto;
  padding: 5% 2% 7%;
}

.catch {
  font-size: 1.5rem;
  line-height: 1.8;
  font-weight: bold;
  padding: 10% 0 0 6%;
}

.changephrase {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.p-frame__wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  position: relative;
}

.p-frame-img {
  position: relative;
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  z-index: 3;
}

.splide {
  position: absolute;
  top: 0;
  left: 13.5%;
  width: 73%;
  z-index: 1;
  padding: 3%;
}

.splide__slide {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.p-slide__img {
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ----- splash animation -----*/
#splash {
  position: absolute;
  top: 1%;
  left: 15%;
  width: 70%;
  height: 66.5%;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
  text-align: center;
  color: #fff;
}

#splash_text {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 999;
  transform: translate(-50%, -50%);
  color: #fff;
  width: 100%;
}

.loader_cover {
  width: 100%;
  height: 50%;
  background-color: #333;
  transition: all 0.2s cubic-bezier(0.04, 0.435, 0.315, 0.9);
  transform: scaleY(1);
}

.loader_cover-up {
  transform-origin: center top;
}

.loader_cover-down {
  position: absolute;
  bottom: 0;
  transform-origin: center bottom;
}

.coveranime {
  transform: scaleY(0);
}

/* ----- /splash animation -----*/

/*--------------------------------
 section:Works
---------------------------------*/
.works-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: -40px;
}

.works-item {
  width: 31.74603%;
  margin-right: 1.5873%;
  margin-bottom: 40px;
  color: #333;
}

.works-item:hover {
  opacity: 0.9;
}

.works-item:nth-of-type(3n) {
  margin-right: 0;
}

.works-img {
  box-shadow: 3px 3px 5px 0px rgba(0, 0, 0, 0.4);
}

.works-img img {
  border: 1px solid #e6e6e6;
}

.works-name {
  font-size: 12px;
  font-weight: bold;
  margin-top: 8px;
}

.works-info {
  font-size: 10px;
  margin-top: 5px;
}

/*--------------------------------
 section:Skills
---------------------------------*/
.skill-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 5% 0;
}

.skill-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 48%;
  margin-bottom: 50px;
}

.skill-img {
  width: 60px;
  height: auto;
  margin-right: 20px;
}

.skill-body {
  flex: 1;
}

.skill-name {
  margin-bottom: 10px;
}

.skill-text {
  font-size: var(--main-font-size);
  line-height: 1.8;
}

/*--------------------------------
 section:About
---------------------------------*/
.profile {
  display: flex;
  flex-wrap: wrap;
  max-width: 980px;
  margin: 0 auto;
  align-items: center;
}

.profile-img {
  width: 30%;
  margin-right: 30px;
  border-radius: 50%;
}

.profile-img img {
  border-radius: 50%;
}

.profile-body {
  flex: 1;
}

.profile-body p {
  font-size: 15px;
  line-height: 1.8;
}

.profile-body p span {
  font-size: 1.8rem;
  font-weight: bold;
}

.profile-body p.name {
  font-size: 1.6rem;
}

.profile-body p span.text {
  font-size: 1rem;
  font-weight: normal;
  font-style: italic;
}

.profile-body p:not(:last-child) {
  margin-bottom: 30px;
}

.text-stroke {
  display: block;
  text-align: left;
  margin: 0 auto 0 0;
  font-size: 3rem;
  font-weight: bold;
  color: transparent;
  -webkit-text-stroke: 0.04em #edebeb;
}

.profile-body .strikethrough {
  text-decoration: line-through;
  font-size: 0.6rem;
  font-weight: lighter;
}

.profile-body .emphasis-wave {
  font-size: 1rem;
  text-decoration: underline wavy #907725;
  text-underline-offset: 0.3em;
}

.profile-body .text-right {
  font-size: 0.5rem;
  padding-top: 20px;
  text-align: right;
}

.profile-body .hobby-text {
  font-size: 0.7rem;
  color: #4c4c4c;
  font-style: italic;
}

/*--------------------------------
 Works link
---------------------------------*/
.works-link {
  position: fixed;
  bottom: -100px;
  left: 0;
  width: 100%;
  background-color: #333;
  padding: 20px 30px;
  text-align: center;
  z-index: 1000;
  transition: bottom 0.5s ease;
}

.works-link.UpMove {
  bottom: 0;
}

.works-link.DownMove {
  bottom: -100px;
}

.works-btn {
  color: #fff;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
}

/*--------------------------------
 section: Contact
---------------------------------*/
.contact {
  text-align: center;
}

.contact-item:not(:last-child) {
  margin-right: 10px;
}

.contact-text {
  margin-top: 10px;
}

/*--------------------------------
 section: footer
---------------------------------*/
.footer {
  padding: 30px;
  background-color: #333;
  position: sticky;
  top: 100vh;
  width: 100%;
}

.copyright {
  font-size: 10px;
  text-align: center;
  color: #797979;
}

.contact-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1%;
  flex-wrap: nowrap;
  margin: 0 auto;
  max-width: 300px;
}

.contact-list a img {
  width: 70px;
}

/*--------------------------------
  トップへ戻るボタン(TOPページ)
---------------------------------*/
.page-top-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 120px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.page-top-fixed.show {
  opacity: 1;
  visibility: visible;
}

.rotate-bg {
  position: absolute;
  top: 5%;
  left: 0;
  width: 100%;
  height: 100%;
  animation: rotateReverse 12s linear infinite;
  z-index: 0;
}

.page-top {
  position: absolute;
  top: 55%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-color: #4c4c4c;
  color: #fff;
  padding: 24px 20px;
  font-weight: bold;
  text-align: center;
  border-radius: 50%;
  text-decoration: none;
}

.page-top::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%) rotate(-45deg);
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}

/* 反時計回り */
@keyframes rotateReverse {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(-360deg);
  }
}

/*media Queries 767
----------------------------------------------------*/
@media screen and (max-width: 767px) {
  body {
    font-size: var(--main-font-size);
  }

  .pc-only {
    display: none;
  }

  .sp-only {
    display: block;
  }

  .br-sp {
    display: block;
  }

  /* 見出し */
  .title {
    font-size: 2.6rem;
    margin: 0 auto;
  }

  .title span.en {
    top: 0.5em;
    left: 3.5em;
    font-size: 1rem;
  }

  .title span.jp {
    top: 2.25em;
    left: 5.2em;
    font-size: 0.7rem;
  }

  #skill .title span.en {
    top: 0.5em;
    left: 2.25em;
  }

  #skill .title span.jp {
    top: 2.25em;
    left: 3.25em;
  }

  .skills-title {
    font-size: 1.5rem;
    height: 100%;
    position: relative;
    display: inline-block;
    margin-bottom: 10%;
    padding-top: 1.5rem;
  }

  .sub-title {
    position: relative;
  }

  .lead {
    font-size: var(--main-font-size);
    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;
  }

  .has-child {
    position: relative;
  }

  .dropdown-group {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 10;
    min-width: 200px;
  }

  .has-child.is-open .dropdown-group {
    display: block;
  }

  .dropdown-title {
    font-weight: bold;
    border-bottom: 1px solid #ccc;
    padding: 5px 0;
    list-style: none;
  }

  /*--------------------------------
 メインビジュアル
---------------------------------*/
  #mv {
    display: flex;
    height: 100vh;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
  }

  .p-frame__wrapper {
    position: relative;
    width: 100vw;
    padding-top: 0;
    margin: 0 auto;
  }

  .splide {
    position: absolute;
    top: 0;
    left: 13.5%;
    width: 73%;
    z-index: 1;
    padding: 3%;
  }

  .p-frame-img {
    width: 100%;
    height: auto;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    pointer-events: none;
  }

  .splide-sp {
    position: absolute;
    top: 8%;
    left: 7%;
    width: 86%;
    height: 84%;
    overflow: hidden;
    z-index: 5;
    background: white;
  }

  .splide {
    top: -6%;
    left: 29%;
    width: 42%;
  }

  .splide__slide {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
  }

  .p-slide__img {
    width: 100vw;
    height: 100vw;
    object-fit: contain;
  }

  .changephrase {
    font-size: 1.2rem;
    line-height: 1.2;
    letter-spacing: 0.2rem;
  }

  .catch {
    top: 30%;
    left: 0;
    font-size: 0.9rem;
    padding: 10%;
  }

  /* Works */
  .works-name {
    font-size: 12px;
  }

  .works-info {
    margin-top: 3px;
  }

  .works-list {
    justify-content: space-between;
  }

  .works-item {
    flex: 0 0 48%;
    margin-right: 0;
    margin-bottom: 30px;
  }

  /* 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;
    text-align: center;
  }

  .profile-img {
    width: 150px;
    margin: 0 auto;
    margin-bottom: 25px;
  }

  .profile-body p {
    font-size: var(--main-font-size);
    line-height: 1.7;
  }

  .profile-body p:not(:last-child) {
    margin-bottom: 20px;
  }

  .about-btn {
    width: 210px;
    margin: 0 auto;
  }

  /* フッター */
  .footer {
    padding: 20px;
  }

  /*--------------------------------
    下層
  ---------------------------------*/
  .article {
    padding: 50px 0;
  }

  .article-body h3 {
    font-size: 16px;
    padding-left: 0.8em;
  }

  .article-body h3:not(:first-child) {
    margin-top: 30px;
  }

  .article-body p {
    font-size: var(--main-font-size);
    line-height: 1.7;
    margin-bottom: 20px;
  }

  /* 下部の全体画像表示 */
  .img-box {
    flex-direction: column;
    align-items: center;
    padding: 2rem 1rem;
  }

  .pc-image img {
    width: 100%;
    max-width: 500px;
    height: auto;
    box-shadow: 0 5px 10px -6px rgba(0, 0, 0, 0.7);
  }

  .sp-images {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    width: 100%;
    max-width: 500px;
  }

  .sp-image {
    flex: 1 1 45%;
    max-width: 240px;
  }

  .sp-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
    box-shadow: 0 5px 10px -6px rgba(0, 0, 0, 0.7);
  }

  .sns-list {
    width: 10%;
  }

  /*--------------------------------
  トップへ戻るボタン
---------------------------------*/
  .footer .page-top-link {
    font-size: 0.6rem;
  }
}
