@charset "UTF-8";
/* CSS Document */
html {
  font-size: 62.5%;
}
body {
  margin: 0;
  padding: 0;
  font-size: 1.6rem;
  color: #555;
  font-family: 'Noto Sans JP', sans-serif;
  background-color: #Fefcfb;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img {
  vertical-align: bottom;
  max-width: 100%;
  height: auto;
}
/* スマホ用スタイル */
#wrapper {
  width: 100%;
  margin: 0 auto;
}
header {
	z-index: 999;
}
header h1 img {
  width: 50px;
}
header h1 {
  margin: 0;
  padding: 0;
  width: 150px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
}
nav {
  position: fixed;
  right: 64px;
  top: 12px;
	z-index: 900;
	animation: slide-skew 2s cubic-bezier(0.25, 0.9, 0.5, 1) forwards;
	font-family: 'Lora', serif;
}
@keyframes slide-skew {
  0% {
    transform: translate(0, -100px);
    opacity: 0;
  }
  100% {
    transform: translate(0,0);
  }
  20%,100% {
    opacity: 1;
  }
}
nav ul {
  text-align: right;
	overflow: hidden;
}
nav ul li {
  display: inline;
  margin: 0 12px 10px 0;
  font-size: 1.4rem;
}
nav ul li a {
  text-decoration: none;
  color: #888;
  font-weight: 400;
}

/* navの文字が反転 */
nav ul li a span {
	position: relative;
    display: inline-block;
    -webkit-transition: -webkit-transform 0.3s;
    -moz-transition: -moz-transform 0.3s;
    transition: transform 0.3s;
}
nav ul li a span::before {
	position: absolute;
    top: 100%;
    content: attr(data-hover);
    font-weight: 600;
    -webkit-transform: translate3d(0,0,0);
    -moz-transform: translate3d(0,0,0);
    transform: translate3d(0,0,0);
}
nav ul li a:hover span,
nav ul li a:focus span {
	-webkit-transform: translateY(-100%);
	-moz-transform: translateY(-100%);
	transform: translateY(-100%);
}
/* footer */
footer small {
  font-size: 1.2rem;
  line-height: 40px;
  width: 95%;
  border-top: solid 1px #aaa;
  display: block;
  margin: 0 auto;
}
.pagetop {
  text-align: right;
  margin: 0 10px;
}
.pagetop a {
  text-decoration: none;
  color: #888;
  font-size: 1.4rem;
font-weight: bold;
}
/* ダークモード切り替え */
label {
  width: 50px;
  height: 25px;
  position: fixed;
  top: 10px;
  right: 10px;
  display: block;
  background: #f3f3f3;
  border-radius: 50px;
  box-shadow: inset 0px 5px 15px rgba(0, 0, 0, 0.2), inset 0px -5px 15px rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: 0.3s;
	z-index: 900;
}
label:after {
  content: "";
  width: 15px;
  height: 15px;
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(180deg, #555, #888);
  border-radius: 40px;
  box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}
input {
  width: 0;
  height: 0;
  visibility: hidden;
}
input:checked + label {
  background: #aaa;
}
input:checked + label:after {
  left: 45px;
  transform: translateX(-100%);
  background: linear-gradient(180deg, #fff, #eee);
}
label:active:after {
  width: 20px;
}
.light_theme {
  background-color: #fefcfb;
  color: #555;
}
.light_theme a {
  color: #555;
}
.dark_theme {
  background-color: #333;
  color: #ddd;
}
.dark_theme a, .dark_theme span {
  color: #ddd;
}
/* ↑ 共通 ↑ */

/* Works */
#works { 
	margin: 80px auto 80px;
}
#works h2 {
  font-size: 2.4rem;
  display: inline;
  margin-left: 20px;
	font-family: 'Lora', serif;
}
#works h4 {
  font-size: 1.2rem;
  display: inline;
  margin-left: 12px;
}
#works section {
  margin: 0 auto 36px;
  width: 90%;
}
#works img {
  margin: 0 auto;
  display: block;
	overflow: hidden;
}
.works_wrap {
	margin-top: 28px;
}
#works .works_url {
	font-size: 1.4rem;
}
#works h3 {
	margin: 8px 0 0;
}
#works h5 {
	font-size: 1.4rem;
}
#works h5 a {
	text-decoration: none;
	color: #aaa;
	font-size: 1.4rem;
}
/* Contact button */
#contact_button {
  position: relative;
  margin-bottom: 40px;
}
.contact_button__sec a {
  text-decoration: none;
  color: #333;
  font-size: 1.4rem;
}
.contact_button__sec {
  text-align: right;
}
.contact_button__sec img {
	width: 24px;
	margin: 8px 8px 0;
}

/* タブレット */
@media screen and (min-width:600px) {
  header h1 {
    top: 20px;
    left: 20px;
  }
  nav {
    right: 64px;
    top: 20px;
  }
  nav ul li {
    display: inline;
    margin: 0 44px 10px 0;
    font-size: 1.6rem;
  }
  /* ダークモード切り替え */
  label {
    top: 20px;
    right: 20px;
  }
	 /* footer */
  footer small {
    font-size: 1.2rem;
    line-height: 40px;
  }
	
	/* ↑ 共通 ↑ */
	
	
  /* Works */
  #works h2 {
    font-size: 3.0rem;
  }
  #works h4 {
    font-size: 1.4rem;
  }
  .works_wrap {
    display: flex;
    flex-wrap: wrap;
    margin-top: 32px;
  }
  #works section {
    width: 300px;
  }
}
/* PC */
@media screen and (min-width:960px) {
  header h1 {
    top: 20px;
    left: 40px;
  }
  nav {
    right: 88px;
    top: 20px;
  }
  nav ul li {
    margin: 0 48px 10px 0;
	  font-size: 1.8rem;
  }
  /* ダークモード切り替え */
  label {
    top: 20px;
    right: 40px;
  }
	/* 横に流れるテキスト */
  .slideshow_wrap {
    padding: 80px 0;
  }
  .slideshow span {
    width: 400px;
    font-size: 3.2rem;
  }
  /* footer */
  footer small {
    width: 95%;
  }
  .pagetop {
    text-align: right;
    margin: 0 40px;
  }
  .pagetop a {
    font-size: 1.6rem;
  }
	/* ↑ 共通 ↑ */
	
	
  /* Works */
  #works {
    width: 90%;
  }
  #works h2 {
    font-size: 4.0rem;
  }
  #works h4 {
    font-size: 1.6rem;
  }
	#works h5 {
		font-size: 1.2rem;
	}
	#works h5 a {
		font-size: 1.2rem;
	}
  .works_wrap {
    margin: 40px 0 12px;
  }
  #works section {
	  width: 25vw;
	}
	.mask {
		overflow: hidden;
	}
	.mask img {
		transition: all .6s;
	}
	.mask a:hover img {
	transform: scale(1.1);
}
}






/*  最初にLOADING中 */
.start {
  background: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9990;
}
.start p {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
}
.start img {
  width: 200px;
}
.start2 {
  background: #FFF;
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: 9989;
}
.start2 p {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: none;
  z-index: 9999;
}
.start2 img {
  width: 200px;
}