@charset "UTF-8";

*{
  margin: 0;
  padding: 0;
}

@font-face{
  font-family: 'Nanum_Pen_Script';
  src: url(../font/Nanum_Pen_Script/NanumPenScript-Regular.ttf);
}

@font-face {
  font-family: 'Zen_Maru_Gothic';
  src: url(../font/Zen_Maru_Gothic/ZenMaruGothic-Light.ttf);
}

@font-face{
  font-family: 'Kalam';
  src: url(../font/Kalam/Kalam-Bold.ttf);
  src: url(../font/Kalam/Kalam-Regular.ttf);
}

body{
  font-family: 'Zen_Maru_Gothic';
  font-size: 3vw;
  color: #2d2d2d;
  background-image: url(../images/portfolio-bg2.jpg);
}

body h1,h2,h3{
  font-family: 'Kalam';
  color: #2d2d2d;
}

body h2{
  font-size: 6vw;
  font-weight: 100;
  font-family: 'Kalam';
}

body ul li{
  list-style: none;
  color: #2d2d2d;
  white-space: pre-wrap;
  line-break: anywhere;
  text-align: justify;
}

body a{
  position: relative;
  text-decoration: none;
  color: #2d2d2d;
}

/*-----------------------------
body

background: rgb(215,215,215);
background: linear-gradient(344deg, rgba(215,215,215,1) 0%, rgba(241,255,199,1) 48%, rgba(204,255,51,1) 100%);
--------------------------------*/


/*-----------------------------
h1
--------------------------------*/
header{
  position: absolute;
  position: fixed;
  margin-left: 2vw;
  z-index: 100;
}

header h1 a{
  color: #ccff33;
  font-weight: 100;
}

/*-----------------------------
nav
--------------------------------*/
.NavMenu_2{
  display: none;
}

.NavMenu_2{
  position: absolute;
  position: fixed;
  top: 0;
  right: 0;
  width: 4vw;
  height: 100vh;
  background-color: #fffff6;
  padding-top: 2%;
  border-left: 0.1vw solid #d9d9d9;
}

.NavMenu_2 ul{
  height: 60vh;
}

.NavMenu_2 ul li{
  width: 3vw;
  border: 0.1vw solid #d9d9d9;
  border-left: none;
  border-radius: 0 0.5vw 0.5vw 0;
  background-color: white;
  margin: 3vw 0;
}

.NavMenu_2 ul li a{
  display: block;
  width: 2vw;
  writing-mode: vertical-lr;
  letter-spacing: 0.1em;
  padding: 1vw 0.5vw;
  transition: 0.1s;
}

/*見てるページのスタイル*/
.NavMenu_2 ul li:nth-child(1){
  position: relative;
  border: none;
}

.NavMenu_2 ul li:nth-child(1)::before{
  position: absolute;
  content: "";
  width: 4vw;
  height: 4.8vw;
  top: -0.2vw;
  left: -0.9vw;
  border-radius: 0 0.5vw 0.5vw 0;
  background-color: #ccff33;
  box-shadow: 2px 2px 5px 1px #d9d9d9;
}

/*hover時*/
.NavMenu_2 ul li a:hover{
  transform: rotateY(360deg);
  transition: 0.1s;
}


/*-----------------------------
nav ハンバーガーメニュー
--------------------------------*/
/*ナビメニューのスタイルを指定*/
nav .NavMenu{
	position: fixed; /*表示位置を固定*/
	width: 100%;
  height: 100vh; /*全幅表示*/
	top: 0; /*表示位置を指定*/
	right: 0; /*表示位置を指定*/
	text-align: center; /*テキストを中央揃え*/
	transform: translateX(100%); /*ナビを上に隠す上から出したい場合は、transform: translateYを使う。*/
	transition: all 0.6s; /*アニメーションの時間を指定*/
  z-index: 300;
}

nav .NavMenu ul{
	width: 80vw;
	margin: 10vw auto;
	padding: 10vw;
  background-color: #fffff6;
}

nav .NavMenu ul li{
  position: relative;
  width: 70vw;
  margin: 0 auto 3vw auto;
  border-bottom: 0.1vw solid #2d2d2d;
}

nav .NavMenu ul li::before{
  position: absolute;
  content: "";
  width: 2.5vw;
  height: 2.5vw;
  top: 5.5vw;
  left: 2vw;
  border: 0.1vw solid #2d2d2d;
  margin-bottom: 1vw;
  transition: 0.5s;
}

nav .NavMenu ul li::after{
  position: absolute;
  content: "✔️";
  width: 3.5vw;
  height: 3.5vw;
  top: 4vw;
  left: 2vw;
  opacity: 0;
  transition: 0.5s;
}



nav .NavMenu ul li a{
  display: block; /*クリックできる領域を広げる*/
	color: #000;
  text-align: center;
  line-height: 4;
  letter-spacing: 0.5em;
   border-radius: 35% 65% 45% 55% / 65% 36% 64% 35% ;
  transition: 0.5s;
}

nav .NavMenu ul li a:hover{
  color: #ccff33;
  transform: scale(1.2);
  transition: 0.5s;
}

nav .NavMenu ul li:hover::after{
  opacity: 1;
  transition: 0.5s;
}



/*トグルボタンが押されたときに付与するクラス*/
nav .NavMenu.active{
	transform: translateY(0%);/*上から出したい場合は、transform: translateYを使う。*/
}


/*トグルボタンのスタイルを指定*/
.Toggle {
	position: fixed;    /* bodyに対しての絶対位置指定 */
	right: 1.8vw;
	top: 1.5vw;
	width: 9vw;
	height: 9vw;
  background-color: #e7e4df;
  border-radius: 35% 65% 45% 55% / 65% 36% 64% 35% ;
	cursor: pointer;/*divだけどカーソルが変わるようにしている*/
	z-index: 350 ;/*ボタンを一番上にしている(押せなくなるから)*/
}

.Toggle span {
	display: block;
	position: absolute;
	width: 5vw;
	right: 2vw;
  border-bottom: solid 0.5vw #2d2d2d;
	transition: .35s ease-in-out;			/*変化の速度を指定*/
	
}

.Toggle span:nth-child(1) {
	top: 2vw;
}

.Toggle span:nth-child(2) {
	top: 4vw;
}

.Toggle span:nth-child(3) {
	top: 6vw;
}

/* 最初のspanをマイナス45度に */
.Toggle.active span:nth-child(1) {
	top: 4vw;
	left: 1.8vw;
	transform: rotate(-45deg);
}

/* 2番目と3番目のspanを45度に */
.Toggle.active span:nth-child(2),
.Toggle.active span:nth-child(3) {
	top: 4vw;
	transform: rotate(45deg);
}

/*-----------------------------
main-visual
--------------------------------*/
.main-visual{
  width: 100vw;
  padding-top: 25vw;
}

.main-visual .title{
  width: 100vw;
  color: #2d2d2d;
  font-family: 'Nanum_Pen_Script';
  font-size: 11vw;
  text-align: center;
  margin: 0 auto;
}

.title + p {
  text-align: center;
  margin-top: 5%;
  letter-spacing: 0.1em;
}

.main-visual p:nth-of-type(2){
  opacity: 0;
  animation: textanimation 6s forwards;
}

.title span:nth-child(6){
  margin-right: 5%;
}

@keyframes textanimation {
50% {
      opacity: 0;
  }

  100% {
      opacity: 1;
  }
}

/*-----------------------------
.title-anime
--------------------------------*/
.title-anime {
	width: 20ch;	/*文字の長さ*/
	border-right: 1vw solid #000;	/*点滅バー*/
	overflow: hidden;	/*必須*/
	white-space: nowrap;	/*必須*/
	color:#00aec9;
	font-size:4.0rem;
	line-height:1.4;
	font-weight:700;
	animation: typing 3s steps(18), blink .4s step-end infinite alternate;	/*アニメーション関連*/
}
@keyframes typing {
	from {
		width: 0;
	}
}
@keyframes blink {
	50% {
		border-color: transparent;		/*点滅風に見せる*/
	}
}


/*-----------------------------
scroll
--------------------------------*/
.scroll{
  width: 4vw;
  margin: 15vw auto 5vw auto;
}

.scroll p{
  position: relative;
  font-size: 2vw;
  color: #2d2d2d;
  letter-spacing: 0.1em;
  padding-left: 1vw;
  line-height: 2;
  writing-mode: vertical-rl;
}

.scroll p::before{
  position: absolute;
  content: "";
  width: 2vw;
  height: 0vw;
  top: -0.5vw;
  left: -2vw;
  border-right: 0.1vw solid #ccff33;
  border-bottom: 0.2vw solid #ccff33;
  transform: skewY(45deg);
  animation: scroll-anime 2s linear infinite;
}
.scroll p::after{
  position: absolute;
  content: "";
  width: 2vw;
  height: 0vw;
  top: -0.5vw;
  left: 0vw;
  border-left: 0.1vw solid #ccff33;
  border-bottom: 0.2vw solid #ccff33;
  transform: skewY(-45deg);
  animation: scroll-anime 2s linear infinite;
}

@keyframes scroll-anime{
  0%{
    height: 0vw;
  }

  100%{
    height: 9vw;
  }
}

/*--------------------
about.
------------------------*/

.about-wrap{
  width: 80vw;
  text-align: center;
  margin: 15vw auto;
  opacity: 0;
  transition: 1s;
  transform: rotate(50deg);
}

.about-wrap h2{
  padding: 3% 0 5% 0;
}

.about-wrap div:nth-of-type(1){
  position: relative;
}

.about-wrap div:nth-of-type(1)::before{
  position: absolute;
  content: "";
  width: 80vw;
  height: 58vw;
  bottom: -7vw;
  left: 0vw;
  background-color: #fff;
  border-radius: 51% 49% 67% 33% / 49% 57% 43% 51% ;
  z-index: -10;
}

.about-wrap div p{
  white-space: pre-wrap;
  letter-spacing: 0.2em;
  margin-bottom: 3%;
}


/*---------------------
nextpage-box
-----------------------*/
.nextpage-box, .nextpage-box2{
  position: relative;
  display: block;
  width: 20vw;
  margin: 10% auto;
}

.nextpage-box p, .nextpage-box2 p{
  position: relative;
  z-index: 10;
}

.nextpage-box a, .nextpage-box2 a {
  display: inline-block;
  width: 20vw;
  font-size: 2.5vw;
  line-height: 1.7;
  text-align: center;
}

.nextpage-box p::before{
  position: absolute;
  content: "";
  width: 0;
  height: 4vw;
  bottom: 0;
  left: 0;
  transition: 0.5s;
}

.nextpage-box p:hover::before{
  width: 22vw;
  background-color: #ccff33;
  transition: 0.5s;
}

.nextpage-box::after{
  position: absolute;
  content: "";
  width: 22vw;
  height: 2vw;
  bottom: 0;
  left: -1vw;
  border-right: 0.1vw solid #d9d9d9;
  border-bottom: 0.1vw solid #d9d9d9;
  transform: skewX(45deg);
  z-index: -10;
}

.nextpage-box2 p::before{
  position: absolute;
  content: "";
  width: 0;
  height: 4vw;
  bottom: 0;
  right: 1vw;
  transition: 0.5s;
}

.nextpage-box2 p:hover::before{
  width: 20vw;
  background-color: #ccff33;
  transition: 0.5s;
}

.nextpage-box2::after{
  position: absolute;
  content: "";
  width: 20vw;
  height: 2vw;
  bottom: 0;
  left: 0;
  border-left: 0.1vw solid #d9d9d9;
  border-bottom: 0.1vw solid #d9d9d9;
  transform: skewX(-45deg);
  z-index: -10;
}
/*--------------------
work.
------------------------*/

.work-wrap{
  width: 95vw;
  text-align: center;
  margin: 15vw auto;
  opacity: 0;
  transition: 1s;
  transform: rotate(50deg);
}


/*--------------------
work.slider
------------------------*/
.work-slider{
  display: flex;
  width: 90vw;
  height: 40vw;
  overflow: hidden;
  margin: 10vw auto 3vw;
  background-color: #fff;
}

.slider-wrap{
  display: flex;
  animation: slider 80s infinite linear;
}

.slider-item{
  position: relative;
  width: calc(360vw /6);
}

.slider-item img{
  width: 100%;
}

@keyframes slider {
  from {
    transform: translateX(0);
  }
    to {
    transform: translateX(-100%);
  }
}




/*--------------------
contact
------------------------*/

.contact-wrap{
  width: 80vw;
  text-align: center;
  margin: 30vw auto;
  opacity: 0;
  transition: 1s;
  transform: rotate(50deg);
}

.contact-wrap h2{
  padding-top: 1%;
}

.contact-wrap p{
  display: block;
  width: fit-content;
  margin: 10vw auto;
  background: rgb(215,215,215);
  background: linear-gradient(94deg, rgba(215,215,215,1) 0%, rgba(241,255,199,1) 48%, rgba(204,255,51,1) 100%);
  border-radius: 1.5vw;
  background-position: 1% 50%;
  background-size: 200% auto;
  /*アニメーションの指定*/
  transition: all 0.3s ease-out;
}

.contact-wrap p:hover{
  background-position: 99% 50%;
}

.contact-wrap p a{
  display: block;
  width: 50vw;
  padding: 10% 15% 10% 0%;
}

.contact-wrap p a i{
  width: 3vw;
  font-size: 3vw;
  margin-right: 5%;
}

/*elemのｱﾆﾒｰｼｮﾝのクラス名*/
.isAnimate {
  opacity: 1;
  transform: rotate(0deg); 
}

/*--------------------
footer
------------------------*/
footer{
  position: relative;
}

footer p {
  text-align: center;
  line-height: 3;
}

/*--------------------
pagetop
------------------------*/
.pagetop{
  position: absolute;
  position: fixed;
  width: 7vw;
  height: 7vw;
  bottom: 1.5vw;
  right: 1.5vw;
  border: 0.3vw solid #e7e4df;
  border-radius: 1vw;
}

.pagetop p a{
  display: block;
  height: 7vw;
  color: #d9d9d9;
  font-size: 7vw;
  line-height: 0.7;
  background-color: #fff;
  transition: 0.5s;
}

.pagetop p a:hover{
  background-color: #ccff33;
  transition: 0.5s;
}