@charset "utf-8";

/* ==========================================================================
  Global
========================================================================== */
html {
  font-size: 16px;
}
body {
  color: #444;
  background: url(../images/bk01.png) repeat;
  font-family: 'Open Sans','Hiragino Kaku Gothic ProN','游ゴシック  Medium',meiryo,sans-serif;
  line-height: 1.6;
}
:root {
  --ac-color: #f3b70d; /*アクセントカラー*/
}
#wrapper {
  max-width: 1040px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  padding: 0 1.25rem;
}
a {
  color: #333;
  text-decoration: none;
  transition: .3s;
}
a:hover { 
  color: var(--ac-color);
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}
.target {
  opacity : 0;
  transform: translateY(20px);
  transition: all 1.5s;
}
.is-active {
  opacity: 1;
  transform: translateY(0);
}
.sp {
  display: none;
}

/* ==========================================================================
  Header
========================================================================== */
header {
  border-bottom: 1px solid #bbb;
  padding: 1.5rem 0 2rem;
  text-align: center;
}
header h1 {
  letter-spacing: 1.5px;
  text-shadow: 1px 1px #fff,2px 2px #bbb;
  margin-bottom: 1.25rem;
}
nav ul {
  display: flex;
  justify-content: center;
  gap: 0 1.5rem;
}
nav ul li:not(:last-child)::after {
  content: "/";
  margin-left: 1.5rem;
  color: #bbb;
}
nav ul img {
  position: relative;
  bottom: 3px;
}
nav ul img:hover {
  opacity: 0.8;
}
header ul.sp-menu {
  padding-top: 4rem;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 11;
  width: 100vw;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: start;
  align-items: center;
  background: rgba(255,255,255,0.95);
  pointer-events: none;
  opacity: 0;/*通常時はここで消してる*/
  transition: opacity 0.2s linear;
}
header ul.sp-menu.is-active {
  pointer-events: auto;
  opacity: 1;/*ボタンがクリックされると表示される*/
}
header ul.pc-menu .active a {
  color: var(--ac-color);
}

/* ==========================================================================
   footer
========================================================================== */
footer {
  border-top: 1px solid #bbb;
  padding: 2rem 0;
  text-align: center;
}
#ptop {
  position: fixed;
  right: 5vw;
  bottom: 5vh;
  cursor: pointer;
}
#ptop:hover {
  opacity: 0.7;
}

/* ==========================================================================
  content
========================================================================== */
main {
  flex-grow: 1;
  padding: 2rem 1rem;
}
main > section {
  margin-bottom: 8rem;
}
main h2, main h3 {
  position: relative;
  font-size: 1.5rem;
  text-align: center;
  letter-spacing: 1.5px;
  text-shadow: 1px 1px #fff,2px 2px #bbb;
  margin: 1rem 0 3.5rem;
}
main h2::before,
main h3::before {
  content: '';
  position: absolute;
  bottom: -0.625rem;
  display: inline-block;
  width: 3rem;
  height: 5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--ac-color);
  border-radius: 1px;
}
main h2::before {
  background-color: #bbb
}
main section img {
  padding: 0.5rem;
  border: 1px solid #fff;
  transition: 0.6s;
}
main section img:hover {
  opacity: 0.5;
}
main section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 3rem 5%;
}
main section ul li {
  width: 30%;
  position: relative;
}
main section ul li.new span {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 20;
  background: #666;
  color: #fff;
  padding: 0.25rem 0.5rem;
}
main section ul li::after {
  pointer-events: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  content: '';
  background-image: linear-gradient(45deg,#666 10px, transparent 0);
}

/* ==========================================================================
  about
========================================================================== */

#about .aboutbox {
  padding: 4rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0 8%;
  background-image: repeating-linear-gradient(-45deg,transparent,transparent 4px,#eee 0,#eee 7px);
}
#about figure {
  width: 46%;
  text-align: right;
}
#about dl {
  width: 46%;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
  padding-bottom: 1rem;
}
#about dt {
  width: 25%;
  margin-right: 5%;
  border-bottom: 1px solid #bbb;
  padding: 0 0 0.25rem 0.5rem;
}
#about dd {
  width: 70%;
  border-bottom: 1px solid #fff;
  padding: 0 0 0.25rem 0.5rem;
}

/* ==========================================================================
  works
========================================================================== */
#works .workbox {
  padding: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  background-image: repeating-linear-gradient(-45deg,transparent,transparent 4px,#eee 0,#eee 7px);
  margin-bottom: 5rem;
}
#works .workbox img {
  padding: 0.5rem;
  border: 1px solid #fff;
}
#works .workbox figure {
  width: 300px;
  margin-bottom: 2rem;
  margin-top: -7rem;
  padding-top: 7rem;
}
#works .workbox section {
  width: calc(100% - 300px);
  padding: 1rem 0 0 4rem;
}
#works .workbox h4 {
  margin: 0 0 1.5rem;
  padding: 0 .25rem .125rem;
  display: inline-block;
  font-size: 1.125rem;
  border-bottom: 2px solid var(--ac-color);
}
#works .workbox h4.sp {
  display: none;
}
#works .workbox section dl {
  overflow: hidden;
}
#works .workbox section dt {
  float: left;
  clear: both;
  color: #999;
  margin-bottom: .5rem;
}
#works .workbox section dd {
  padding-left: 7rem;
  margin-bottom: .5rem;
}
#works .workbox .concept {
  color: #666;
  width: 100%;
}
#works .workbox .more {
  display: block;
  margin: 2rem 1rem 2rem auto;
  background: var(--ac-color);
  color: #fff;
  padding: 0.25rem 0.75rem; 
}
#works .workbox .more:hover {
  background: transparent;
  border: 1px solid var(--ac-color);
  color: var(--ac-color);
}

/* ==========================================================================
  detail
========================================================================== */

#detail .detailbox {
  padding: 4rem;
  background-image: repeating-linear-gradient(-45deg,transparent,transparent 4px,#eee 0,#eee 7px);
}
#detail dl {
  font-size: 0.875rem;
  width: 80%;
  margin: 4rem auto;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
  padding-bottom: 1rem;
}
#detail dt {
  width: 25%;
  margin-right: 5%;
  border-bottom: 1px solid #bbb;
  padding: 0 0 0.25rem 0.5rem;
}
#detail dd {
  width: 70%;
  border-bottom: 1px solid #fff;
  padding: 0 0 0.25rem 0.5rem;
}
.swiper {
  padding-bottom: 3rem;
}
.swiper-slide {
  text-align: center;
}
.swiper-button-next, .swiper-button-prev {
  color: var(--ac-color);
}
.swiper-pagination-bullet-active {
  background: var(--ac-color);
}
.lum-lightbox {
  z-index: 10;
}


/* ==========================================================================
  contact
========================================================================== */
main#contact section{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#contact input,
#contact textarea,
#contact button {
  background: #fff;
  border-radius: 2px;
  padding: 0.125rem;
}
#contact button {
  display: block;
  width: 100%;
  margin: 2rem auto 0;
  border: 1px solid #eee;
  padding: 0.5rem 0 0.25rem;
  cursor: pointer;
  transition: .3s;
}
#contact button:hover {
  background: var(--ac-color);
  color: #fff;
}
#contact .descript {
  text-align: center;
  color: #888;
  letter-spacing: 0.5px;
  margin-bottom: 2.5rem;
}
#contact dl {
  position: relative;
  padding: 3rem 4rem 1.5rem;
  color: #777;
  background-image: repeating-linear-gradient(-45deg,transparent,transparent 4px,#eee 0,#eee 7px);
}
#contact dt {
  float: left;
  clear: both;
  margin-bottom: 1.75rem;
}
#contact dd {
  padding-left: 13rem;
  margin-bottom: 1.75rem;
}
#contact dt span {
  background: var(--ac-color);
  border-radius: 2px;
  color: #fff;
  font-size: 0.75rem;
  padding: 0.175rem;
}
#contact dt span.nin {
  background: #ccc;
}

/* ==========================================================================
   media query
========================================================================== */

@media  (max-width: 800px) {
  html {
    font-size: 15px;
  }
  main {
    padding: 2rem 0;
  }
  main > section {
    margin-bottom: 7rem;
  }
  main section ul {
    justify-content: center;
  }
  main section ul li {
    width: 42.5%;
  }
  #about .aboutbox {
    padding: 2rem;
    gap: 0 5%;
  }
  #works .workbox {
    padding: 1.5rem;
    flex-direction: column;
    align-items: center;
  }
  #works .workbox figure {
    width: 300px;
    margin-bottom: 1rem;
  }
  #works .workbox section {
    width: 300px;
    padding: 1rem 0;
    margin-bottom: 1rem;
  }
  #works .workbox h4.sp {
    display: inline-block;
  }
  #works .workbox h4.pc {
    display: none;
  }
  #works .workbox .concept {
    width: 96%;
  }
  #contact dt {
    float: none;
    margin-bottom: 0.625rem;
  }
  #contact dd {
    padding-left: 0;
    margin-bottom: 2rem;
  }
}
@media  (max-width: 600px) {
  html {
    font-size: 14px;
  }
  header ul.pc-menu {
    display: none;
  }
  /*ハンバーガーボタンー*/
  .ham-menu {
    display: inline-block;
    cursor: pointer;
    position: fixed;
    right: 0.375rem;
    top: 0.625rem;
    z-index: 12;
    width: 60px;/*ハンバーガーの幅*/
    height: 60px;/*ハンバーガーの高さ*/
  }
  .ham-line {
    position: absolute;
    transition: 0.3s;
    width: calc(100% - (12px * 2));
    height: 3px;
    background-color: #999;
  }
  .line-top {
    top: 17px;
    left: 12px;
  }
  .line-middle {
    top: calc(50% - (4px / 2));
    left: 12px;
  }
  .line-bottom {
    bottom: 17px;
    left: 12px;
  }
  .ham-menu-active > .line-top {
    top: calc(50% - (4px / 2));
    transform: rotate(45deg);
  }
  .ham-menu-active > .line-middle {
    width: 0;
    height: 0;
    left: 18px;
  }
  .ham-menu-active > .line-bottom {
    top: calc(50% - (4px / 2));
    transform: rotate(-45deg);
  }
  header {
    padding-bottom: 0;
  }
  nav ul {
    gap: 1.25rem 0;
    font-size: 1.25rem;
  }
  nav ul li:not(:last-child)::after {
    display: none;
  }
  nav ul img {
    bottom: 0;
  }

  .sp {
    display: inline;
  }
  main > section {
    margin-bottom: 5.5rem;
  }
  main section ul li {
    width: fit-content;
    text-align: center;
  }
  main section ul li::after {
    display: none;
  }
  #about .aboutbox {
    padding: 2rem 1rem;
    flex-direction: column;
  }
  #about figure {
    width: 100%;
    text-align: center;
    margin-bottom: 2rem;
  }
  #about dl {
    width: 100%;
  }
  #works .workbox {
    padding: 1.5rem 0.5rem;
  }
  #detail dl {
    width: 100%;
  }
  #detail .detailbox {
    padding: 2rem 1rem;
    flex-direction: column;
  }
  #contact input,
  #contact textarea,
  #contact button {
    width: 100%;
  }
  #contact dl {
    padding: 3rem 1rem 1.5rem;
  }
}