/* PC_style (default) */
/* Common parts */
* {
  list-style: none;
  font-family: Arial, Helvetica, sans-serif;
}

html {
  overflow-y: scroll;
  font-size: 100%;
}
@media screen and (min-width: 1200px) {
  html {
    scroll-snap-type: y proximity;
    scroll-behavior: smooth;
  }
}

a {
  text-decoration: none;
  color: #000;
  cursor: pointer;
}

li {
  margin-left: 1.5em;
  list-style: none;
}

img {
  max-width: 100%;
}

h2 {
  display: flex;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: bold;
  font-size: 50px;
  text-align: center;
  margin-bottom: 50px;
  padding-top: 20px;
}
h2 .icon {
  height: 60px;
  filter: brightness(0);
}

.section-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 80px;
  min-height: 100vh;
  scroll-snap-align: start;
}
@media screen and (max-width: 1200px) {
  .section-container {
    min-height: 0;
  }
  .section-container:not(:first-of-type) {
    padding-top: 120px;
  }
}
.section-container.flex-start {
  justify-content: flex-start;
}

.section-container:last-of-type {
  margin-bottom: 0;
}

/* Common parts end*/
/* UNIVERSAL */
.fade {
  opacity: 1;
  transition: opacity 0.5s ease-in-out;
}

.fade:hover {
  opacity: 0.5;
}

.flex {
  display: flex;
}

.flex-c {
  flex-direction: column;
}

.flex-around {
  justify-content: space-around;
}

.flex-center {
  justify-content: center;
}

.center {
  margin: 0 auto;
}

.desktop-only {
  display: none;
}
@media screen and (min-width: 1200px) {
  .desktop-only {
    display: block;
  }
}

/* Nav Header */
header {
  border-bottom: #000 solid 1px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  background-color: #fff;
  z-index: 100;
}
header .logo > img {
  width: 30px;
}
header .main-nav {
  display: flex;
  font-size: 20px;
  font-weight: bold;
  text-transform: uppercase;
  margin-right: 40px;
  transition: all 0.5s ease;
}
header .main-nav a {
  font-family: Arial, Helvetica, sans-serif;
  color: #cbc781;
  -webkit-text-stroke: #000 1px;
}
header .main-nav .icon {
  display: none;
}
@media screen and (max-width: 800px) {
  header .main-nav .icon {
    display: inline-block;
    width: 50px;
    height: 50px;
  }
}
@media screen and (max-width: 800px) {
  header .main-nav {
    position: fixed;
    visibility: hidden;
    flex-direction: column;
    overflow: hidden;
    top: 80px;
    height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 80px;
    margin: 0;
    right: 0;
    background-color: rgba(115, 110, 110, 0.8);
    width: 100%;
    text-align: center;
    z-index: 0;
  }
  header .main-nav.active {
    visibility: visible;
    height: calc(100vh - 80px);
  }
  header .main-nav a {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    color: #fff;
    -webkit-text-stroke: 0;
    border-bottom: #fff solid 1px;
  }
  header .main-nav li {
    margin: 0;
    width: 50%;
  }
}

#hamburger {
  display: none;
  width: 30px;
  height: 30px;
  margin-right: 20px;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .5s ease-in-out;
  -moz-transition: .5s ease-in-out;
  -o-transition: .5s ease-in-out;
  transition: .5s ease-in-out;
  cursor: pointer;
}
@media screen and (max-width: 800px) {
  #hamburger {
    display: block;
  }
}
#hamburger span {
  display: block;
  position: absolute;
  height: 4px;
  width: 100%;
  background: #000;
  border-radius: 9px;
  opacity: 1;
  left: 0;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  -o-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: .25s ease-in-out;
  -moz-transition: .25s ease-in-out;
  -o-transition: .25s ease-in-out;
  transition: .25s ease-in-out;
}
#hamburger span:nth-child(1) {
  top: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}
#hamburger span:nth-child(2) {
  top: calc(50% - 2.5px);
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}
#hamburger span:nth-child(3) {
  bottom: 0px;
  -webkit-transform-origin: left center;
  -moz-transform-origin: left center;
  -o-transform-origin: left center;
  transform-origin: left center;
}
#hamburger.open span:nth-child(1) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
  width: calc(100% + 12px);
  top: -2px;
}
#hamburger.open span:nth-child(2) {
  width: 0%;
  opacity: 0;
}
#hamburger.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
  width: calc(100% + 12px);
  bottom: -2px;
}

footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 50px;
  width: 100%;
  height: 80px;
  margin-top: 20px;
  background-color: black;
}
footer img {
  width: 32px;
  height: 32px;
  filter: brightness(0) invert(1);
}

/* Key Visual */
.key-visual {
  max-width: 1600px;
  margin: auto;
}
.key-visual-introduction {
  font-family: "Square Peg", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  align-content: center;
  text-align: left;
  padding-left: 80px;
}
.key-visual-desktop {
  display: flex;
  justify-content: space-around;
  gap: 50px;
  align-items: center;
  font-weight: 400;
  font-style: normal;
  text-align: center;
}
.key-visual-desktop > * {
  width: 50%;
}
.key-visual-mobile {
  display: none;
  width: 100%;
}
.key-visual-mobile img {
  width: 100%;
}
@media screen and (max-width: 1200px) {
  .key-visual {
    width: 100%;
  }
  .key-visual-mobile {
    display: block;
  }
  .key-visual-desktop {
    display: none;
  }
}

/* ABOUT */
.about_container {
  display: flex;
  justify-content: center;
  gap: 50px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 1225px) {
  .about_container {
    padding: 0 25px;
  }
}
@media screen and (max-width: 1200px) {
  .about_container {
    gap: 30px;
    max-width: 800px;
  }
}
.about_pic {
  height: 400px;
  max-width: 50%;
  object-fit: contain;
}
.about_pic_mobile {
  display: none;
  max-width: 40%;
  height: auto;
  object-fit: contain;
}
@media screen and (max-width: 1200px) {
  .about_pic_mobile {
    display: block;
  }
}
@media screen and (max-width: 1200px) {
  .about_pic {
    display: none;
  }
}
.about_article {
  max-width: 50%;
}
@media screen and (max-width: 600px) {
  .about_article {
    font-size: 12px;
  }
}
@media screen and (max-width: 1200px) {
  .about_article {
    max-width: 100%;
  }
}

/* CASE STUDIES */
.casestudy_container {
  display: flex;
  justify-content: center;
  gap: 50px;
  justify-content: center;
  max-width: 1200px;
  margin: 0 auto;
}
@media screen and (max-width: 1225px) {
  .casestudy_container {
    padding: 0 25px;
  }
}
@media screen and (max-width: 1200px) {
  .casestudy_container {
    gap: 30px;
    max-width: 800px;
  }
}
.casestudy_image {
  width: 100%;
  transition: all 0.3s ease-in-out;
}
.casestudy_image img {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  border-radius: 50px;
}
.casestudy_image:hover {
  transform: scale(1.1);
  cursor: pointer;
}

/* WORKS */
.works-title {
  font-family: "Square Peg", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 50px;
  text-align: center;
  padding-bottom: 35px;
}
@media screen and (max-width: 800px) {
  .works-title {
    font-size: 30px;
    padding-bottom: 0;
  }
}

.works-container {
  display: flex;
  justify-content: space-around;
  gap: 50px;
  max-width: 1200px;
}
@media screen and (max-width: 800px) {
  .works-container {
    max-width: 300px;
    flex-direction: column;
    align-items: center;
    margin: auto;
    gap: 0;
  }
}

.works-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: -2;
  max-width: 600px;
  min-width: 200px;
  min-height: 200px;
  aspect-ratio: 1/1;
}
@media screen and (max-width: 600px) {
  .works-image-container {
    min-width: 0;
    min-height: 0;
  }
}

.worksPic {
  width: 80%;
  transition: all 0.4s ease-in-out;
}

.worksPic:hover {
  transform: scale(1.1);
}

.workPic-back {
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: all 0.4s ease-in-out;
}

.worksPic:hover ~ .workPic-back {
  width: 95%;
  height: 95%;
}

/* CONTACT */
.contact-container {
  display: flex;
  justify-content: space-around;
  max-height: 600px;
  max-width: 1200px;
  gap: 20px;
}

.contact-form > * {
  margin-bottom: 30px;
}
@media screen and (max-width: 600px) {
  .contact-form {
    width: 80%;
  }
}
.contact-form input {
  width: 500px;
}
@media screen and (max-width: 600px) {
  .contact-form input {
    width: 100%;
  }
}

.contact-input-field {
  display: flex;
  flex-direction: column;
}

label {
  font-family: "Square Peg", cursive;
  font-size: 35px;
}

.comment-font {
  font-family: "Noto Serif JP", serif;
  font-size: 20px;
  line-height: 46px;
}

.comment-input {
  height: 150px;
  padding: 10px;
  resize: none;
}

.contact-form input {
  height: 50px;
  padding-left: 10px;
}

.contact-photo-container {
  display: flex;
  justify-content: center;
}

.contact-photo {
  width: 400px;
  object-fit: contain;
}
@media screen and (max-width: 600px) {
  .contact-photo {
    width: 300px;
    padding: 0 16px;
  }
}

.contact-submit-btn {
  display: block;
  padding: 14px 28px;
  color: #fff;
  background-color: #000;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  box-shadow: 0 4px #999;
}

.contact-submit-btn:hover {
  transform: translate(0, 3px);
  transition: all 0.3s;
  box-shadow: 0 1px #999;
}

@media screen and (max-width: 1000px) {
  .contact-container {
    flex-direction: column;
    max-height: none;
    align-items: center;
  }
}
/* Gallery */
.gallery-container {
  max-width: 1400px;
  width: 100%;
}
@media screen and (max-width: 1400px) {
  .gallery-container {
    padding: 0 24px;
    margin: 32px auto;
  }
}

.gallery-title {
  font-family: "Square Peg", cursive;
  font-size: 64px;
  margin: 16px 0;
}

.image-grid {
  display: grid;
  justify-content: center;
  grid-template-columns: repeat(auto-fill, minmax(250px, 250px));
  gap: 60px;
}
.image-grid img {
  width: 100%;
  height: 250px;
  background-color: white;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s;
}
.image-grid img:hover {
  opacity: 0.7;
}

/* The Modal (background) */
.modal {
  /* Hidden by default */
  display: none;
  /* Stay in place */
  position: fixed;
  /* Sit on top */
  z-index: 101;
  /* Location of the box */
  padding-top: 100px;
  left: 0;
  top: 0;
  /* Full width */
  width: 100%;
  /* Full height */
  height: 100vh;
  /* Fallback color */
  background-color: rgba(80, 80, 80, 0.9);
}

/* Modal Content (image) */
.modal-content {
  position: relative;
  margin: auto;
  display: block;
  width: 100%;
  height: 100%;
  overflow: scroll;
}

.modal-image {
  margin: auto;
  max-width: 60%;
  height: auto;
  max-height: none;
}

/* Caption of Modal Image */
#caption {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  text-align: left;
  color: #ccc;
  padding: 20px 0;
}

/* Add Animation */
.modal-image,
#caption {
  -webkit-animation-name: zoom;
  -webkit-animation-duration: 0.6s;
  animation-name: zoom;
  animation-duration: 0.6s;
}
.modal-image a,
#caption a {
  color: #ccc;
  text-decoration: underline;
}

@-webkit-keyframes zoom {
  from {
    -webkit-transform: scale(0);
  }
  to {
    -webkit-transform: scale(1);
  }
}
@keyframes zoom {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
/* The Close Button */
.close {
  font-family: "Square Peg", cursive;
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 80px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  line-height: 80px;
  transition: 0.3s;
  text-align: center;
}

.close:hover,
.close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px) {
  .modal-content {
    width: 100%;
  }
}
