/* 
Theme Name: Portfolio
Description:Authorのポートフォリオサイト
Theme URI:
Author: Chiaki Nakano
Author URI: https://cheerdesign.site/
Version:1.0
 */

@charset "utf-8";

/* 全体 */
:root {
  --text-color: #333;
  --main-color: #AECCDA;
  --accent-color: #526066;
  --background-color: #D6E5EC;
}

html {
  font-size: 16px;
  font-family: YuGothic, 'Yu Gothic', 'Hiragino Kaku Gothic ProN', 'ヒラギノ角ゴ ProN W3', sans-serif;
  color: var(--text-color);
  scroll-behavior: smooth;
  line-height: 1.8;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--text-color);
}

button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-block;
  border: 1px solid var(--main-color);
  border-radius: 10px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: .3s ease-in-out;
  position: relative;
  overflow: hidden;
  z-index: 0;
  font-weight: bold;
}

button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--main-color);
  transition: transform .3s cubic-bezier(0.8, 0, 0.2, 1) 0s;
  transform: scale(0, 1);
  transform-origin: right top;
}

button:hover {
  color: #fff;
}

button:hover::before {
  content: "";
  transform-origin: left top;
  transform: scale(1, 1);
  z-index: -1;
}

.wrapper {
  max-width: 1024px;
  margin: 0 auto;
}

section {
  padding: 5rem 0 2.5rem;
}

.flex {
  display: flex;
}

h1,
h2,
h3,
.catch,
address {
  font-family: "Noto Serif JP", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-size: 5rem;
  line-height: 5rem;
  margin-bottom: 1rem;
}

h2 {
  color: var(--main-color);
  font-size: 8rem;
  margin-bottom: 2.5rem;
  position: relative;
  transform: translate3d(-50px, 0, 0);
  transition: 1s;
  opacity: 0;
}

h3 {
  color: var(--main-color);
  font-size: 4rem;
  margin-bottom: 2.5rem;
  position: relative;
  transform: translate3d(-50px, 0, 0);
  transition: 1s;
  opacity: 0;
}

.left.fadeIn-left {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.up {
  transform: translate3d(0, 50px, 0);
  transition: 1s;
  opacity: 0;
}

.up.fadeIn-up {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}

.top-page {
  width: 100px;
  height: 100px;
  opacity: 0;
  visibility: hidden;
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
}

.top-page.fadeIn {
  opacity: 0;
  visibility: visible;
  animation-name: fadeInAnime;
  animation-duration: 1s;
  animation-fill-mode: forwards;
}

@keyframes fadeInAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.top-page img {
  width: 100%;
  height: auto;
  position: relative;
  animation: rotation 20s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.top-page a::after {
  content: "\f062";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 2rem;
  color: var(--text-color);
  position: absolute;
  top: 32%;
  left: 38%;
}

/* header */
header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 100;
}

header .wrapper {
  /* width: 100%; */
  padding: 1rem 0;
  justify-content: space-between;
  align-items: center;
}

header .logo {
  height: 35px;
  width: auto;
}

header .menu {
  align-items: center;
  gap: 2rem;
}

header .menu a {
  position: relative;
}

header .menu a::after {
  content: "";
  position: absolute;
  bottom: -.5rem;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: var(--text-color);
  transition: all .3s;
  transform: scale(0, 1);
  transform-origin: center top;
}

header .menu a:hover::after {
  content: "";
  transform: scale(1, 1);
}

/*  */

/* main-visual */
/* .main-visual {
  background-image: url(../img/mv.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 90vh;
} */
.main-visual {
  display: block;
  position: relative;
  height: calc(100vh - 67px);
  width: 100%;
}

.main-visual img {
  width: auto;
  height: 50%;
  position: absolute;
  top: 20%;
  right: 5%;
}

.main-visual .title {
  position: absolute;
  bottom: 15%;
  left: 5%;
}

.scroll-down {
  position: absolute;
  left: 50%;
  bottom: .6rem;
  height: 4rem;
}

.scroll {
  font-size: .7rem;
  text-align: center;
  letter-spacing: 0.05rem;
  position: relative;
}

.scroll::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 4rem;
  background: var(--main-color);
  animation: pathmove 2s ease-in-out infinite;
  opacity: 0;
}

@keyframes pathmove {
  0% {
    height: 0;
    top: 1rem;
    opacity: 0;
  }

  30% {
    height: 30px;
    opacity: 1;
  }

  100% {
    height: 0;
    top: 60px;
    opacity: 0;
  }
}

.main-visual .catch {
  text-indent: 1rem;
}

/*  */

/* works */
.works h2::after {
  content: "/ 制作実績";
  position: absolute;
  left: 0;
  bottom: 1rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.works .search-list {
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.works .search-list-item.is-active {
  background-color: var(--main-color);
  color: #fff;
}

.works .works-list {
  width: 80%;
  margin: 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
}

.works .works-list-item {
  max-width: calc((100% - 2rem) / 3);
  overflow: hidden;
}

.works .works-list-item.is-hide {
  display: none;
}

.works img {
  border-radius: 10px;
  transition: .8s all;
}

.works img:hover {
  transform: scale(1.2, 1.2);
  transition: .8s all;
}

/*  */

/* about */
.about h2::after {
  content: "/ 私について";
  position: absolute;
  left: 0;
  bottom: 1rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.about .container {
  margin: 0 auto;
  width: 80%;
}

.about .profile {
  margin-bottom: 3.5rem;
  width: 100%;
  height: fit-content;
}

.about .photo,
.about .text {
  width: 50%;
  height: auto;
}

.about .photo {
  justify-content: center;
  align-items: center;
}

.about .photo img {
  width: 80%;
  height: auto;
}

.about .text {
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
  box-shadow: 0 3px 15px rgba(82, 96, 102, .3);
}

.about .text p:nth-of-type(1) {
  font-size: 1.3rem;
  letter-spacing: .1rem;
  margin-bottom: 1rem;
}

.about .text span {
  background: linear-gradient(transparent 50%, var(--background-color) 50%);
}

.about .text p:nth-of-type(2) {
  line-height: 1.5rem;
}

.about .container button {
  display: block;
  margin: 0 auto;
}

/*  */

/* contact */
.contact h2 {
  color: #fff;
}

.contact h2::after {
  content: "/ 連絡先";
  position: absolute;
  left: 0;
  bottom: 1rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.contact {
  background-color: var(--background-color);
}

.contact address {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.contact .sns {
  gap: 1.5rem;
}

.contact .sns i {
  font-size: 1.5rem;
  transition: 1s;
  transform: rotateZ(0deg);
}

.contact .sns i:hover {
  font-size: 1.5rem;
  transition: 1s;
  transform: rotateZ(360deg);
}

/*  */

/* footer */
footer {
  background-color: var(--accent-color);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

/*  */

/* about me */
article .about {
  padding-bottom: 5rem;
}

.skill,
.biography {
  background-color: var(--background-color);
}

.skill h3,
.biography h3 {
  color: #fff;
}

/* Skill */
.skill h3::after {
  content: "/ 何ができるのか";
  position: absolute;
  left: 0;
  bottom: .5rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.skill .container {
  width: 80%;
  margin: 0 auto;
}

.skill .design,
.skill .cording {
  width: 50%;
  padding: 0 1rem;
}

.skill .icon {
  width: 200px;
  height: 200px;
  background-color: #fff;
  border-radius: 50%;
  margin: 0 auto;
  justify-content: center;
  align-items: center;
}

.skill .icon img {
  width: 100px;
  height: 100px;
}

.skill .text span {
  font-size: 1.3rem;
  border-bottom: 5px dotted #fff;
}

.skill .text p:nth-of-type(1) {
  text-align: center;
  margin: 1.5rem 0;
}

.skill .text p:nth-of-type(2) {
  line-height: 1.5rem;
  margin-bottom: 1.5rem;
}

.skill i {
  gap: 1rem;
}

/*  */

/* Strength */
.strength h3::after {
  content: "/ 私の強み";
  position: absolute;
  left: 0;
  bottom: .5rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.items {
  gap: 1.5rem;
  line-height: 1.5rem;
}

.strength .item {
  width: calc((100% - 3rem) / 3);
}

.strength .item span {
  font-size: 1.2rem;
  border-bottom: 5px dotted var(--main-color);
}

.strength .item p:nth-of-type(1) {
  margin-bottom: 1rem;
}

.strength .circle-box {
  width: 350px;
  height: 330px;
  margin: 0 auto 2.5rem auto;
  position: relative;
}

.strength .num01 {
  position: absolute;
  top: 0;
  left: 22%;
}

.strength .num01 p {
  position: absolute;
  top: 28%;
  left: 7%;
  text-align: center;
  line-height: 2rem;
  font-weight: bold;
}

.strength .num02 {
  position: absolute;
  left: 0;
  bottom: 0;
}

.strength .num02 p {
  position: absolute;
  bottom: 33%;
  left: 14%;
  text-align: center;
  line-height: 2rem;
  font-weight: bold;
}

.strength .num03 {
  position: absolute;
  right: 0;
  bottom: 0;
}

.strength .num03 p {
  position: absolute;
  bottom: 33%;
  right: 11%;
  text-align: center;
  line-height: 2rem;
  font-weight: bold;
}

.strength .svg {
  transform: rotate(-90deg);
}

.strength .circle {
  stroke: var(--main-color);
  stroke-width: 5px;
  fill: transparent;
  stroke-dasharray: 628px;
  stroke-dashoffset: 628px;
  transition: stroke-dashoffset 3s ease;
}

.strength .circle.on {
  stroke-dashoffset: 0;
}

/*  */

/* Biography */
.biography {
  position: relative;
  height: auto;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.biography h3::after {
  content: "/ 経歴";
  position: absolute;
  left: 0;
  bottom: .5rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.biography ul {
  position: relative;
  padding-top: 2.5rem;
  flex-wrap: nowrap;
  gap: 2rem;
}

.biography ul::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: .5rem;
  width: var(--line-width, 0);
  height: 1px;
  background-color: var(--text-color);
  transition: width 0.3s ease-out;
}

.biography li {
  flex: 0 0 auto;
  width: 300px;
  height: auto;
  position: relative;
  transition: transform 0.3s ease-in-out;
}

.biography li p {
  white-space: normal;
  line-height: 1.5rem;
}

.biography li p:nth-of-type(1) {
  margin-bottom: .5rem;
  font-weight: bold;
}

.biography li::before {
  content: "●";
  position: absolute;
  top: -2rem;
  left: 0;
}

/* 横スクロールバーのスタイルを変更 */
.biography::-webkit-scrollbar {
  height: 10px;
  /* スクロールバーの高さ（横スクロール用） */
}

.biography::-webkit-scrollbar-thumb {
  background-color: var(--background-color);
  /* スクロールバーの色 */
  border-radius: 10px;
  /* スクロールバーの角を丸く */
  border: 1px solid var(--main-color);
}

.biography::-webkit-scrollbar-track {
  background-color: var(--main-color);
  /* スクロールトラックの色 */
}


/*  */

/* CareerPlan */
.careerplan h3::after {
  content: "/ キャリアプラン";
  position: absolute;
  left: 0;
  bottom: .5rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.careerplan .container {
  width: 80%;
  margin: 0 auto;
}

.careerplan .anime {
  width: 50%;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding-right: 2rem;
}

.careerplan .anime img {
  animation: floating-x 3s ease-in-out infinite alternate-reverse;
}

@keyframes floating-x {
  0% {
    transform: translateX(-5%);
  }

  100% {
    transform: translateX(5%);
  }
}

.careerplan .plan-box {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.careerplan .plan-box:nth-of-type(3) {
  margin-bottom: 0;
}

.careerplan .plan-number {
  background-color: var(--main-color);
  border-radius: 10px;
  width: fit-content;
  margin-bottom: .5rem;
}

.careerplan .plan-number p {
  color: #fff;
  padding: .5rem 1rem;
}

/* Study */
.study h3::after {
  content: "/ バナートレース";
  position: absolute;
  left: 0;
  bottom: .5rem;
  color: var(--accent-color);
  font-size: 2rem;
}

.study p {
  margin: 2.5rem 0;
}

.study figure {
  flex-wrap: wrap;
  gap: 1rem;
}

.study img {
  width: 150px;
  height: 150px;
  border: 1px solid #D6E5EC;
}

/*  */

/* Works */
/* Works-item */
.works-item {
  background-color: var(--background-color);
  padding: 2.5rem 0;
}

.works-item .works-name h4,
.works-item .works-name p {
  font-size: 2rem;
  font-weight: bold;
}

.works-item .works-mockup {
  background-color: #fff;
  border-radius: 50px;
  text-align: center;
  width: 100%;
  height: fit-content;
  padding: 1rem;
}

.works-item .works-mockup img {
  width: 50%;
}

.works-item .container {
  width: 80%;
  margin: 0 auto;
}

.works-item .works-name {
  width: 100%;
  gap: 3rem;
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  margin: 2.5rem 0;
  text-align: center;
  border-top: 1px solid var(--text-color);
  border-bottom: 1px solid var(--text-color);
}

.works-item dl {
  margin-bottom: 2.5rem;
}

.works-item dt {
  margin-bottom: 1rem;
  font-weight: bold;
  font-size: 1.5rem;
}

.works-item dt span {
  background: repeating-linear-gradient(-45deg,
      rgba(255, 255, 255, .7),
      rgba(255, 255, 255, .7) 4px,
      transparent 4px,
      transparent 8px);
  background-position: center bottom;
  background-repeat: repeat-x;
  background-size: auto .75em;
}

.works-item dd {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  line-height: 2rem;
}

.works-item dd img {
  margin-bottom: 1rem;
}

.works-item .screenshot {
  background-color: #fff;
  padding: 1rem;
  margin-bottom: 1rem;
}

.works-item .works-btn {
  display: block;
  margin: 2.5rem auto 0 auto;
}

.works-item .wave {
  text-decoration: var(--accent-color) wavy underline 1px;
}

.bottom-nav {
  opacity: 0;
  visibility: hidden;
}