@charset "utf-8";
/*
Theme Name: black089
Theme URI: 
Author: kyohei hayashida
Author URI: http://kyoheihayashida.com
Description: kyohei's portfolio site design template.
Version: 1.0
*/
/* COMMON
------------------------------ */
html {
  font-size: 100%;
}
body {
  background-color: rgba(0, 8, 9, 1);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 15px;
  font-weight: 100;
  color: rgba(255, 255, 255, 1);
}
a {
  color: rgba(255, 255, 255, 1);
  text-decoration: none;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
a:hover {
  color: rgba(255, 255, 255, 1);
}
.wrapper {
  max-width: 900px;
  margin: 0 auto;
}
h1 {
  font-size: 1.2rem;
  font-weight: 300;
  letter-spacing: 1.4px;
}
p {
  letter-spacing: 1.3px;
}
p.text-category {
  font-size: 0.8rem;
  font-weight: 100;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
}
p.caption {
  font-size: 0.8rem;
  letter-spacing: 2.3px;
  margin-bottom: 20px;
}
p.text {
  font-size: 0.9rem;
  letter-spacing: 1.4px;
  margin-bottom: 20px;
}
article {
  font-size: 0.9rem;
  font-style: italic;
  letter-spacing: 1.4px;
  color: rgba(255, 255, 255, 0.8);
  padding-top: 9px;
  padding-left: 15px;
}
/* HEADER
------------------------------ */
.header-box {
  height: 70px;
  margin-top: 50px;
}
header h1 {
  font-weight: 200;
  font-size: 3.5rem;
  text-align: center;
  line-height: 100%;
}
/* NAV
------------------------------ */
.nav-box {
  height: 50px;
  width: 100%;
  margin-top: 10px;
}
nav {
  font-weight: 100;
  font-size: 1rem;
  text-transform: uppercase;
  text-align: left;
  letter-spacing: 2px;
  line-height: 100%;
}
nav .current {
  font-weight: 400;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.8);
  padding-bottom: 7px;
}
nav ul {
  list-style: none;
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
nav li {
  margin: 0 15px;
}
nav a {
  position: relative;
  display: inline-block;
  transition: .3s;
}
nav a::after {
  position: absolute;
  top: 23px;
  right: 0;
  bottom: 0;
  left: 50%;
  content: '';
  width: 0;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.8);
  transition: .3s;
  transform: trancelateX(-50%);
  -webkit-transform: translateX(-50%);
  -moz-transform: translateX(-50%);
}
nav a:hover::after {
  width: 100%;
}
.menu-box {
  height: 50px;
}
.toggle {
  display: none; /* PCでは非表示　*/
}
/* MAIN
------------------------------ */
main {
  padding: 0 2%;
}
.mv-box {
  margin: 0 auto 40px;
}
.pc {
  display: block !important;
}
.sp {
  display: none !important;
}
/* VISUAL LAYOUT */
.visual-box {
  width: 100%;
  margin: 0 auto;
}
#grid {
  margin-bottom: 6px;
  overflow: hidden;
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto;
}
#grid li img {
  max-width: 100%;
  height: auto;
  vertical-align: top;
}
.big {
  grid-column: 1 / 4;
  max-width: 100%;
}
.vertical {
  grid-column: 3 / 4;
  grid-row: 2 / 4;
  max-width: 100%;
  height: auto;
}
.horizontal {
  grid-column: 1 / 3;
  grid-row: 3 / 4;
  max-width: 100%;
  height: auto;
}
/* MASONRY LAYOUT */
.masonry-box {
  width: 100%;
  margin: 0 auto;
}
#gallery {
  margin: 0 auto;
  width: 300px;
  overflow: hidden;
  transition: opacity 0.3s;
  opacity: 0;
  max-height: 100vh;
  box-sizing: border-box;
}
#gallery.on {
  opacity: 1;
  max-height: 100%;
}
#gallery li {
  max-width: 296px;
  padding-right: -4px;
  margin-bottom: 6px;
}
#gallery li img {
  max-width: 100%;
  vertical-align: top;
}
/* OVERLAY */
.overlay {
  width: 100%;
  overflow: hidden;
  position: relative;
}
.caption-box {
  width: 80%;
  height: 100%;
  margin: 0 auto;
  display: flex;
  flex-flow: column wrap;
  justify-content: center;
}
.overlay p.caption-title {
  font-size: 1.3rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 1px;
  text-align: center;
  word-break: break-all;
}
.overlay p.caption-category {
  text-align: center;
  font-size: 0.6rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 1px;
  text-align: center;
  padding-bottom: 15px;
}
.overlay p.caption-text {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 1);
  line-height: 20px;
  letter-spacing: 1px;
  width: 80%;
  text-align: center;
  margin: 0px auto;
  word-break: break-all;
  padding-bottom: 20px;
}
.overlay p.caption-end {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 1);
  letter-spacing: 1px;
  text-align: right;
}
.overlay .mask {
  width: 100%;
  height: 100%;
  position: absolute;
  bottom: -100%; /* 枠の上に置いて表示させない */
  left: 0;
  background-color: rgba(0, 8, 9, 0.6);
  -webkit-transition: all 0.4s ease;
  transition: all 0.6s ease;
}
.overlay:hover .mask {
  bottom: 0; /* 上に昇ってくるように見せる */
}
/* 2COLUMN */
.two-column {
  display: flex;
  flex-flow: row nowrap;
  justify-content: center;
}
.left-box-work {
  width: 60%;
  padding: 0 15px 15px;
  text-align: center;
  margin-bottom: 100px;
}
.left-box-work img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.right-box-work {
  width: 40%;
  padding: 15px 15px;
  text-align: left;
  margin-bottom: 100px;
}
.left-box {
  width: 40%;
  padding: 0 15px 15px;
  text-align: center;
}
.left-box img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
}
.right-box {
  width: 60%;
  padding: 15px 15px;
  text-align: left;
}
.flex-box {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-start;
}
.two-column .text-box {
  width: auto;
  margin: 15px 0 35px;
}
/* 1COLUMN */
.one-column {
  margin-bottom: 80px;
}
.one-column img {
  width: 100%;
  height: 100%;
}
.video {
  width: 100%; /*横幅いっぱいにwidthを指定*/
  padding-bottom: 56.25%; /*高さをpaddingで指定(16:9)*/
  height: 0px; /*高さはpaddingで指定するためheightは0に*/
  position: relative;
}
.video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.one-column .text-box {
  width: 80%;
  margin: 35px 10% 35px;
}
.img-box {
  display: flex;
  flex-flow: column nowrap;
}
section {
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  margin: 20px 20px 0;
}
section p {
  font-size: 0.8rem;
}
.horizontal-link-left {
  margin: 0 auto 0 0;
}
.horizontal-link-right {
  margin: 0 0 0 auto;
}
/* FOTTER
------------------------------ */
footer {
  margin-top: 100px;
}
.info {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
}
.info ul {
  list-style: none;
  height: 80px;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
}
.info li {
  padding: 0 8px;
}
.info .icon {
  margin-top: 54px;
}
.profile {
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 1);
}
footer p {
  font-size: 0.8rem;
  text-align: center;
  line-height: 2rem;
  letter-spacing: 1px;
  margin-top: 8px;
}
footer img:hover {
  opacity: 0.6;
  transition-duration: 0.4s;
}
/* LODING
------------------------------ */
#loading {
  width: 55px;
  height: 55px;
  margin: 0 auto;
}
#loading p {
  text-align: center;
  font-size: 70px;
}
.sk-circle {
  margin: 100px auto;
  width: 55px;
  height: 55px;
  position: relative;
}
.sk-circle .sk-child {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
}
.sk-circle .sk-child:before {
  content: '';
  display: block;
  margin: 0 auto;
  width: 15%;
  height: 15%;
  background-color: rgb(255, 255, 255, .4);
  border-radius: 100%;
  -webkit-animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
  animation: sk-circleBounceDelay 1.2s infinite ease-in-out both;
}
.sk-circle .sk-circle2 {
  -webkit-transform: rotate(30deg);
  -ms-transform: rotate(30deg);
  transform: rotate(30deg);
}
.sk-circle .sk-circle3 {
  -webkit-transform: rotate(60deg);
  -ms-transform: rotate(60deg);
  transform: rotate(60deg);
}
.sk-circle .sk-circle4 {
  -webkit-transform: rotate(90deg);
  -ms-transform: rotate(90deg);
  transform: rotate(90deg);
}
.sk-circle .sk-circle5 {
  -webkit-transform: rotate(120deg);
  -ms-transform: rotate(120deg);
  transform: rotate(120deg);
}
.sk-circle .sk-circle6 {
  -webkit-transform: rotate(150deg);
  -ms-transform: rotate(150deg);
  transform: rotate(150deg);
}
.sk-circle .sk-circle7 {
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}
.sk-circle .sk-circle8 {
  -webkit-transform: rotate(210deg);
  -ms-transform: rotate(210deg);
  transform: rotate(210deg);
}
.sk-circle .sk-circle9 {
  -webkit-transform: rotate(240deg);
  -ms-transform: rotate(240deg);
  transform: rotate(240deg);
}
.sk-circle .sk-circle10 {
  -webkit-transform: rotate(270deg);
  -ms-transform: rotate(270deg);
  transform: rotate(270deg);
}
.sk-circle .sk-circle11 {
  -webkit-transform: rotate(300deg);
  -ms-transform: rotate(300deg);
  transform: rotate(300deg);
}
.sk-circle .sk-circle12 {
  -webkit-transform: rotate(330deg);
  -ms-transform: rotate(330deg);
  transform: rotate(330deg);
}
.sk-circle .sk-circle2:before {
  -webkit-animation-delay: -1.1s;
  animation-delay: -1.1s;
}
.sk-circle .sk-circle3:before {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}
.sk-circle .sk-circle4:before {
  -webkit-animation-delay: -0.9s;
  animation-delay: -0.9s;
}
.sk-circle .sk-circle5:before {
  -webkit-animation-delay: -0.8s;
  animation-delay: -0.8s;
}
.sk-circle .sk-circle6:before {
  -webkit-animation-delay: -0.7s;
  animation-delay: -0.7s;
}
.sk-circle .sk-circle7:before {
  -webkit-animation-delay: -0.6s;
  animation-delay: -0.6s;
}
.sk-circle .sk-circle8:before {
  -webkit-animation-delay: -0.5s;
  animation-delay: -0.5s;
}
.sk-circle .sk-circle9:before {
  -webkit-animation-delay: -0.4s;
  animation-delay: -0.4s;
}
.sk-circle .sk-circle10:before {
  -webkit-animation-delay: -0.3s;
  animation-delay: -0.3s;
}
.sk-circle .sk-circle11:before {
  -webkit-animation-delay: -0.2s;
  animation-delay: -0.2s;
}
.sk-circle .sk-circle12:before {
  -webkit-animation-delay: -0.1s;
  animation-delay: -0.1s;
}
@-webkit-keyframes sk-circleBounceDelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
@keyframes sk-circleBounceDelay {
  0%, 80%, 100% {
    -webkit-transform: scale(0);
    transform: scale(0);
  }
  40% {
    -webkit-transform: scale(1);
    transform: scale(1);
  }
}
/* CONTACT
------------------------------ */
.label {
  margin-bottom: 25px;
  display: block;
  letter-spacing: 1.4px;
  line-height: 30px;
  word-break: normal;
}
input[name="name"], input[name="email"], textarea[name="message"] {
  background-color: rgba(255, 255, 255, 1);
  border: 1px solid rgba(255, 255, 255, 1);
  border-radius: 5px;
  padding: 8px;
  font-size: 1rem;
  font-weight: 400;
}
input[name="name"], input[name="email"] {
  width: 80%;
}
textarea[name="message"] {
  width: 100%;
  height: 15rem;
}
input[confirm_value="CONFIRM"], input[submit_value="SEND"] {
  display: block;
}
.button input {
  font-weight: 400;
  font-color: rgba(255, 255, 255, 1);
  letter-spacing: 1.2px;
  background-color: rgba(41, 50, 51, 1);
  border: 3px solid rgba(41, 50, 51, 1);
  border-radius: 5px;
  width: 140px;
  display: block;
  text-align: center;
  padding: 5px;
}
.button:hover {
  width: 80px;
  display: block;
  opacity: 0.6;
  transition-duration: 0.4s;
}
/* MOBILE
------------------------------ */
@media (max-width: 900px) {
  img {
    max-width: 100%;
  }
  body {
    max-width: 100vw;
  }
  h1 {
    font-size: 1.1rem;
  }
  p.text-category {
    font-size: 0.9rem;
  }
  p.caption {
    font-size: 0.9rem;
  }
  p.text {
    font-size: 0.9rem;
  }
  article {
    font-size: 0.85rem;
  }
  /* header */
  .header-box {
    margin-top: 25px;
  }
  /* nav */
  nav li {
    margin: 0 10px;
  }
  /* mv-box */
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
    width: 55%;
    margin: 0 auto 30px;
  }
  /* VISUAL BOX */
  #grid {
    width: 69.2%;
    margin: 0 auto 6px;
    overflow: hidden;
    display: grid;
    gap: 6px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }
  #grid .big {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
  #grid .normal-a {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }
  #grid .normal-b {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
  }
  #grid .vertical {
    grid-column: 2 / 3;
    grid-row: 2 / 4;
  }
  #grid .horizontal {
    grid-column: 1 / 3;
    grid-row: 4 / 5;
  }
  /* OVERLAY */
  .overlay .mask {
    display: none;
  }
  /* 2COLUMN */
  .left-box {
    padding-top: 20px;
  }
  .flex-box {
    flex-flow: column nowrap;
  }
  .flex-box h1 {
    order: 2;
  }
  .flex-box article {
    padding: 0 0 10px;
    order: 1;
  }
  #gallery li {
    max-width: 297px;
    margin-bottom: 6px;
  }
}
@media (max-width: 834px) {
  #gallery li {
    max-width: 274.02px;
  }
}
@media (max-width: 828px) {
  #gallery li {
    max-width: 272.03px;
  }
}
@media (max-width: 800px) {
  #gallery li {
    max-width: 262.72px;
  }
}
@media (max-width: 768px) {
  #gallery li {
    max-width: 252.09px;
  }
}
@media (max-width: 750px) {
  #gallery li {
    max-width: 246.11px;
  }
}
@media (max-width: 720px) {
  #gallery li {
    max-width: 236.16px;
  }
}
@media (max-width: 640px) {
  #gallery li {
    max-width: 209.58px;
  }
}
@media (max-width: 601px) {
  #gallery li {
    max-width: 196.63px;
  }
}
@media only screen and (max-width: 600px) {
  /* MOBILE-MENU
------------------------------ */
  h1 {
    font-size: 1rem;
  }
  p.text-category {
    font-size: 0.8rem;
  }
  p.caption {
    font-size: 0.8rem;
  }
  p.text {
    font-size: 0.9rem;
  }
  article {
    font-size: 0.8rem;
  }
  .reverse { /* ヘッダーとナビを逆配置 */
    display: flex;
    flex-flow: column-reverse nowrap;
  }
  .nav-box {
    z-index: 20;
    margin-top: 0;
  }
  nav a::after {
    display: none;
  }
  .menu-box nav {
    background-color: rgb(1, 4, 8, 0.9);
    padding: 14px 0;
  }
  .menu-box nav a::after {
    display: none;
  }
  .menu {
    display: none;
    padding-bottom: 17px;
  }
  .menu li {
    text-align: center;
    padding: 10px;
    width: 30%;
    margin: 0 auto 10px;
  }
  .toggle {
    display: block;
    width: 100%;
    background-color: rgb(1, 4, 8, 1);
    margin-top: -28px;
    background-image: url("images/toggle-open.png");
    background-position: center bottom 16px;
    background-size: 60px;
  }
  .toggle a {
    font-weight: 300;
    display: block;
    padding: 12px 0 32px;
    text-align: center;
    letter-spacing: 2px;
  }
  .toggle.ac {
    background-image: url("images/toggle-close.png");
  }
  /* header */
  .header-box {
    margin-top: 50px;
  }
  header h1 {
    font-size: 2.6rem;
  }
  /* mv-box */
  .mv-box {
    margin: 0 auto 20px;
    z-index: 10;
  }
  .pc {
    display: none !important;
  }
  .sp {
    display: block !important;
    width: 80%;
    margin: 10px auto 30px;
  }
  /* VISUAL BOX */
  #grid {
    width: 100%;
    margin: 0 auto 6px;
  }
  /* 2COLUMN */
  .two-column {
    flex-flow: column nowrap;
  }
  .left-box-work {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 0;
  }
  .left-box-work img {
    width: auto;
  }
  .right-box-work {
    width: auto;
    margin-bottom: 0;
  }
  .left-box {
    width: 100%;
  }
  .left-box img {
    width: auto;
  }
  .right-box {
    width: auto;
    margin: 0 10% 15px;
  }
  .two-column .text-box {
    margin: 15px 10% 35px;
  }
  #gallery li {
    max-width: 188px;
  }
  /* FOTTER
------------------------------ */
  footer {
    margin-bottom: 20px;
  }
  .info ul {
    height: 68px;
  }
  .info .icon {
    margin-top: 37px;
  }
  .profile {
    width: 65px;
    height: 65px;
  }
  footer p {
    font-size: 0.6rem;
    font-weight: 300;
    line-height: 1.2rem;
    margin-top: 8px;
  }
  footer img:hover {
    opacity: 0.6;
    transition-duration: 0.4s;
  }
}
@media screen and (max-width: 428px) {
  #gallery li {
    max-width: 202px;
  }
}
@media screen and (max-width: 414px) {
  #gallery li {
    max-width: 196px;
  }
}
@media screen and (max-width: 390px) {
  #gallery li {
    max-width: 184px;
  }
}
@media screen and (max-width: 375px) {
  #gallery li {
    max-width: 177px;
  }
}
@media screen and (max-width: 360px) {
  #gallery li {
    max-width: 169.81px;
  }
}
@media screen and (max-width: 320px) {
  header h1 {
    font-size: 2.3rem;
  }
  #gallery li {
    max-width: 150.61px;
  }
}
@media screen and (max-width: 280px) {
  header h1 {
    font-size: 1.9rem;
  }
  #gallery li {
    max-width: 131.41px;
  }
}


