@charset "utf-8";

/* ==========================================================================
  Global
========================================================================== */

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding: 110px;
}

body {
  color: #666;
  font-family: "Montserrat", "Yu Gothic Medium", "游ゴシック Medium", YuGothic, "游ゴシック体", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  line-height: 1.6;
  letter-spacing: .05em;
}

#wrapper {
  width: 100%;
}

.inner {
  max-width: 1040px;
  padding: 0 20px;
  margin-left: auto;
  margin-right: auto;
}

a {
  color: #666;
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: #8CACC2
}

img {
  max-width: 100%;
  height: auto;
}

li {
  list-style: none;
}

br.sp-only {
  display: none;
}

/* ==========================================================================
  Header
========================================================================== */

header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  padding: 16px 0;
  background: rgba(255, 255, 255, 0.5);
}

header .inner {
  display: flex;
  justify-content: space-between;
}

header .pc-menu {
  margin-left: auto;
}

header ul {
  display: flex;
  gap: 0 24px;
  padding-top: 8px

}

.ham-btn {
  display: none;
  appearance: none;
  background: none;
  border: 0;
}

header .sp-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100vh;
  background: rgba(255, 255, 255, 0.75);
  visibility: hidden;
  opacity: 0;
  transition: .4s;
}

header .sp-menu ul {
  display: block;
  width: fit-content;
  margin: 200px auto;
}

header .sp-menu ul li {
  margin-bottom: 20px;
}

header .sp-menu.is-active {
  opacity: 1;
  visibility: visible;
}

@media (max-width: 767px) {

  header .pc-menu {
    display: none;
  }

  .ham-btn {
    display: block;
    position: fixed;
    right: 20px;
    top: 5px;
    z-index: 12;
    width: 40px;
    height: 40px;
  }

  .ham-line {
    display: block;
    width: 100%;
    height: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    transition: 0.4s;
  }

  .ham-line::before,
  .ham-line::after {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: #333;
    transition: inherit;
  }

  .ham-line:before {
    top: -9px;
  }

  .ham-line:after {
    top: 9px;
  }

  .ham-btn.is-active .ham-line {
    background-color: transparent;
  }

  .ham-btn.is-active .ham-line::before {
    top: 0;
    transform: rotate(45deg);
  }

  .ham-btn.is-active .ham-line::after {
    top: 0;
    transform: rotate(-45deg);
  }
}

/* ==========================================================================
  main
========================================================================== */

main section {
  margin-bottom: 120px;
}

main h2 {
  color: #666;
  margin-bottom: 24px;
  letter-spacing: .2em;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.2);
}

main .top-img {
  height: 100vh;
  background: url(../images/background/topvisual.png);
  background-position: center top;
  background-attachment: fixed;
  background-size: cover;
  margin-bottom: 100px;
}

main .top-img h1 {
  position: absolute;
  top: 60%;
  right: 10%;
  font-size: 48px;
  letter-spacing: .2em;
  text-align: right;
}

main .top-works {
  background-color: rgba(110, 110, 110, .1);
  padding: 80px 0;
}

main .top-works ul {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 16px;
}

main .top-works li {
  display: flex;
  flex-direction: column;
  background: #fff;
  width: calc((100% - 32px) / 3);
  padding: 8px 8px 1px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgba(110, 110, 110, .1);
}

main .top-works li a {
  display: flex;
  flex: 1;
  flex-direction: column;
}

main .top-works li img {
  width: 100%;
  margin: auto 0 16px;
}

main .top-works li video {
  width: 100%;
  margin: auto 0;
}

main .top-works li a:hover {
  opacity: 0.7;
}

main .top-works li .ttl {
  margin-bottom: 16px;
  text-align: center;
}

main .top-about .about-blk {
  display: flex;
  align-items: center;
  gap: 30px 40px;
}

main .top-about .about-blk figure {
  width: 40%;
  position: relative;
}

main .top-about .about-blk figure img {
  border: 1px solid rgba(110, 110, 110, .5);
  padding: 5px;
}

main .top-about .about-blk .lead {
  width: 60%;
  line-height: 2;
  text-align: justify;}

main .top-contact a {
  display: block;
  background: #eee url(../images/email.png) no-repeat left 20px top 16px/38px;
  padding: 20px 40px 20px 78px;
  font-size: 18px;
  letter-spacing: .1em;
  border-radius: 4px;
}

@media (max-width: 768px) {

  br.sp-only {
    display: inline;
  }

  br.pc-only {
    display: none;
  }

  .inner {
    padding: 0 15px;
  }

  html {
    font-size: 15px;
    scroll-padding: 90px;
  }
  header {
    padding: 0 10px;
  }

  main section {
    margin-bottom: 80px;
  }

  main .top-img {
    background: url(../images/top-01-sp.jpg) no-repeat center/cover;
    margin-top: 0;
    margin-bottom: 40px;
  }

  main .top-img .catch {
    font-size: 32px;
  }

  main .top-img .catch span {
    font-size: 16px;
  }

  main .top-about .about-blk {
    flex-direction: column;
  }
  main .top-about .about-blk figure {
    max-width: 500px;
    width: 80%;
  }
  main .top-about .about-blk .lead {
    width: 80%;
    line-height: 1.8;
  }
  main .top-works li {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ==========================================================================
  footer
========================================================================== */

footer {
  border-top: 1px solid #ccc;
  padding: 32px 0;
}

footer ul {
  display: flex;
  justify-content: flex-end;
  gap: 0 24px;
  margin-bottom: 12px;
}

footer p {
  text-align: right;
}

@media (max-width: 767px) {

  footer ul {
    justify-content: center;
  }

  footer p {
    text-align: center;
  }
}
