:root {
  --image-large: 16/9;
  --image-small: 4/3;
  --back-image: url(../images/main-back.jpg);
  --main-color: #574d3d;
  --on-color: #fff;
}
/* header------------------------ */
#op-wrap {
  inset: 0;
  position: fixed;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(
    160deg,
    #d4d4d4 0%,
    var(--on-color) 15%,
    var(--on-color) 85%,
    #d4d4d4 100%
  );

  animation: opening 3s forwards;
}
@keyframes opening {
  0% {
    opacity: 1;
    z-index: 9999;
  }
  80% {
    opacity: 1;
    z-index: 9999;
  }
  99% {
    opacity: 0;
    z-index: 9999;
    display: none;
  }
  100% {
    opacity: 0;
    z-index: -1;
  }
}
#op-logo {
  position: absolute;
  inset: 0;
  margin: auto;
  width: fit-content;
  height: fit-content;
  transform: translateY(-50%);
  animation: opening-logo 3s forwards;
}
@keyframes opening-logo {
  0% {
    opacity: 0;
  }
  30% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
#op-logo img {
  width: 350px;
}
h1 {
  position: fixed;
  top: 20px;
  left: 20px;
}
header {
  margin: 0 0 0 auto;
  width: 70vw;
}
.s-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  /* overflow-x: hidden; */
}
.s-inner {
  width: 100%;
}
.slide img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 16/9;
  align-items: center;
  object-fit: cover;
  object-position: 50% 80%;
  aspect-ratio: var(--image-large);
}
.slick-arrow {
  display: none !important;
}
#head-link {
  width: 22%;
  min-width: 300px;
  padding: 0 0.5rem;
  display: flex;
  justify-content: space-between;
  margin: 0 20px 0 auto;
  border-bottom: solid 1px var(--main-color);
  align-items: end;
}

#head-link span::after {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-left: 5px;
  clip-path: polygon(100% 50%, 0 0, 0 100%);
  background-color: var(--main-color);
  vertical-align: middle;
}
@media screen and (max-width: 1200px) {
  header {
    width: 60vw;
  }
}
@media screen and (max-width: 768px) {
  h1 {
    width: 60%;
    height: auto;
    position: absolute;
  }
  header {
    margin: 15vh auto 0;
    width: 85%;
  }
  .s-wrapper {
    width: 100%;
  }
  .slide img {
    aspect-ratio: 5 /6;
  }
  #op-logo img {
    width: 250px;
  }
  #head-link {
    margin: 0 auto;
    width: 80%;
    padding: 0;
  }
}
/* nav--------------------------------------------------------------*/
#nav {
  width: max(300px, 20vw);
  height: 85vh;
  position: fixed;
  z-index: 998;
  left: 0;
  top: 15vh;
  border-radius: 0 100px 0 0;
  color: var(--on-color);
  background-image: var(--back-image);
  overflow-y: scroll;
  transition: 0.3s;
}
#nav::-webkit-scrollbar {
  display: none;
}
#nav-link {
  margin: 3rem 0 10rem 0;
}
#nav-link > li {
  margin: 0 0 2rem 0;
}
/* #nav-link > li:not(:nth-of-type(3))::after {
  content: "";
  display: block;
  width: 70%;
  height: 1px;
  background: var(--on-color);
} */
#nav-link li:hover {
  transition: 0.3s;
}
#nav-link > li:nth-child(4) {
  margin-top: -2rem;
}
#nav-link > li > a {
  font-family: "Abel", sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: normal;
}
#nav-link > li > a::before {
  content: "";
  display: inline-block;
  width: 0.7rem;
  height: 0.7rem;
  margin-right: 0.5rem;
  border: solid 1px var(--on-color);
  vertical-align: middle;
}
.box-color::before {
  background-color: var(--on-color);
}
.button-area {
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  cursor: pointer;
}
.close-button {
  position: relative;
  margin: 0 0 0.2rem 0.5rem;
  display: inline-block;
  vertical-align: middle;
  width: 1rem;
  height: 0.1rem;
  cursor: pointer;
  background: var(--on-color);
  border-radius: 0.1rem;
  transition: 0.3s;
}
.close-button::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--on-color);
  border-radius: 0.1rem;
  transform: rotate(90deg);
}
#nav-link-hide {
  width: calc(100% - 40px);
  margin-bottom: 3rem;
  height: 0px;
  display: flex;
  flex-wrap: wrap;
  font-size: 1rem;
  overflow-y: scroll;
  transition: 0.3s;
  opacity: 0;
}

#nav-link-hide li {
  width: 200px;
  margin: 0 2rem 1.5rem 0;
}
#nav-link-hide::-webkit-scrollbar {
  width: 10px;
  background-color: var(--on-color);
  border-radius: 10px;
}
#nav-link-hide::-webkit-scrollbar-thumb {
  background-color: #816a44;
  border-radius: 10px;
}
#addres-link > li {
  margin: 0 0 1rem;
}
#addres-link li p {
  color: var(--on-color);
  line-height: 1.8rem;
}
#addres-link a::before {
  content: "";
  display: block;
  width: 250px;
  height: 1px;
  background-color: var(--on-color);
  margin-bottom: 1rem;
}
#addres-link img {
  padding-right: 10px;
}

@media screen and (max-width: 768px) {
  #mobile-nav {
    position: fixed;
    background: var(--main-color);
    cursor: pointer;
    top: 25px;
    left: calc(100% - 70px);
    width: 50px;
    height: 50px;
    border: 1px solid var(--on-color);
    border-radius: 5px;
    z-index: 999;
  }
  #mobile-nav span {
    display: inline-block;
    transition: all 0.4s;
    position: absolute;
    left: 12.5px;
    height: 1.5px;
    border-radius: 2px;
    background: #fff;
    width: 50%;
  }
  #mobile-nav span:nth-of-type(1) {
    top: 15px;
  }

  #mobile-nav span:nth-of-type(2) {
    top: 24px;
  }

  #mobile-nav span:nth-of-type(3) {
    top: 33px;
  }
  #mobile-nav.active span:nth-of-type(1) {
    top: 18px;
    left: 14px;
    transform: translateY(6px) rotate(-45deg);
    width: 50%;
  }
  #mobile-nav.active span:nth-of-type(2) {
    opacity: 0;
  }
  #mobile-nav.active span:nth-of-type(3) {
    top: 30px;
    left: 14px;
    transform: translateY(-6px) rotate(45deg);
    width: 50%;
  }

  #nav {
    width: 300px;
    left: -300px;
    height: 100lvh;
    top: 20px;
  }
  #nav.mb-open {
    left: 0;
  }

  #nav-link {
    margin: 3rem 0 8rem 0;
  }
  .close-button {
    margin: 0 0 0.15rem 0.5rem;
  }
  #nav-link-hide {
    display: block;
    font-size: 1rem;
  }

  #nav-link-hide li {
    margin: 0 auto 1rem;
  }

  #addres-link > li {
    margin: 0 0 1rem;
  }
  #addres-link {
    padding-bottom: 3rem;
  }
}
/* top wrap works--------------------------------------------------------------*/
#main-wrap {
  margin: 3rem 0 3rem auto;
  width: max(500px, 70vw);
}
#project-content {
  margin: 8rem 40px 0 0;
}
#project-content p {
  margin: 30px 0;
  text-align: center;
}
.triangle {
  width: 2rem;
  height: 2rem;
  clip-path: polygon(0 0, 0% 100%, 100% 0);
  background-color: var(--main-color);
}
#project-link {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
#project-link::before {
  display: block;
  content: "";
  width: 280px;
  margin: 0 20px;
  order: 1;
}
#project-link::after {
  display: block;
  content: "";
  width: 280px;
  margin: 0 20px;
}
.project-img {
  position: relative;
  margin: 40px 20px 0;
  display: inline-block;
  width: 280px;
  height: 210px;
  transition: 0.3s;
  object-fit: cover;
}
.project-img > img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.img-mask {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: 0.3s;
}
.caption {
  text-align: center;
  line-height: 210px;
  color: var(--on-color);
  transition: 0.3s;
  pointer-events: none;
}
.project-img:hover .img-mask {
  opacity: 1;
}
@media screen and (max-width: 1200px) {
  #main-wrap {
    width: 60vw;
  }
  #project-content {
    margin: 8rem 0 0;
  }
}
@media screen and (max-width: 768px) {
  #main-wrap {
    margin: 3rem 0 0;
    width: 100%;
  }
  #project-content {
    margin: 0 auto;
    width: calc(100% - 60px);
    max-width: 400px;
  }
  #project-link {
    margin: 2rem auto 0;
    display: block;
    text-align: center;
    /* justify-content: center; */
  }
  .project-img {
    position: relative;
    margin: 2rem auto 0;
    width: 100%;
  }
}
/* bottom link box--------------------------------------------------------------*/
#link-content {
  margin: 8rem 40px 5rem auto;
  display: flex;
  width: max(500px, calc(70vw - 40px));
  justify-content: center;
  gap: 40px;
}
#about-link,
#contact-link {
  width: 30%;
  border: solid 1px var(--main-color);
}
#about-link > div,
#contact-link > div {
  margin: 1rem auto;
  width: 80%;
  min-width: 50%;
}
#about-link div h2,
#contact-link div h2 {
  font-size: 1.75rem;
  border-bottom: solid 1px var(--main-color);
}
#about-link a,
#contact-link a {
  margin: 1rem 0 0 auto;
  width: 8rem;
  height: 2rem;
  text-align: center;
  line-height: 2rem;
  display: block;
  color: var(--on-color);
  background-color: var(--main-color);
  border: solid 1px var(--main-color);
  transition: 0.3s;
}

#about-link a:hover,
#contact-link a:hover,
#to-top:hover {
  color: var(--main-color);
  background: var(--on-color);
  transition: 0.3s;
}
@media screen and (max-width: 1200px) {
  #link-content {
    margin: 4rem auto 0;
    display: block;
    width: 100%;
  }
  #about-link,
  #contact-link {
    width: min(350px, 100%);
    margin: 0 auto 2rem;
  }
}
@media screen and (max-width: 768px) {
  #link-content {
    justify-content: center;
  }
  #about-link,
  #contact-link {
    width: min(300px, 100%);
  }
  #about-link > div,
  #contact-link > div {
    min-width: 250px;
  }
}
/* footer--------------------------------------------------------------*/
footer {
  width: 100%;
  display: flex;
  justify-content: end;
  align-items: center;
  text-align: center;
  background-image: var(--back-image);
}
footer small {
  margin-right: 40px;
  width: calc(70vw - 40px);
  height: 5rem;
  line-height: 5rem;
  color: var(--on-color);
}
@media screen and (max-width: 1200px) {
  footer small {
    width: 60vw;
    margin: 0;
  }
}
@media screen and (max-width: 768px) {
  footer small {
    width: 100%;
    height: 3rem;
    line-height: 3rem;
  }
}
/* about/projet/contact--------------------------------------------------------------*/
#about-content,
#project-detail,
#contact-content {
  margin: 0 40px 0 auto;
  width: calc(100% - 40px);
  text-align: center;
}
#about-content h2,
#project-detail h2,
#contact-content h2 {
  width: 180px;
  position: relative;
  margin: calc(15vh + 1rem) auto 6rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--main-color);
}
#about-content h2::before,
#project-detail h2::before,
#contact-content h2::before {
  content: "";
  position: absolute;
  top: -1rem;
  left: 0;
  display: block;
  width: 2rem;
  height: 2rem;
  clip-path: polygon(0 0, 0% 100%, 100% 0);
  background-color: var(--main-color);
}
#about-content h3,
#project-detail h3 {
  font-size: 1.75rem;
  margin-bottom: 2rem;
}
#about-content > h3 + p,
#project-detail h3 + p {
  font-size: 1rem;
  margin: -2.3rem auto 3rem;
  text-align: center;
}
#about-profile {
  width: 70%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 auto;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.5rem;
}
#about-profile div {
  width: 50%;
  margin-bottom: 80px;
}
#about-profile div ul {
  width: fit-content;
  margin: 0 auto;
}
#about-profile div:nth-child(5) {
  margin: 0 auto;
  width: fit-content;
}
#about-profile img {
  width: 70%;
  max-width: 250px;
  aspect-ratio: 1/1;
  object-fit: cover;
}
#about-content h4 {
  width: 200px;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
  padding-bottom: 0.3rem;
  border-bottom: solid 1px var(--main-color);
}
#about-profile li {
  margin-bottom: 0.8rem;
  text-align: left;
}
#project-detail img {
  width: 70%;
  aspect-ratio: 4/3;
  object-fit: cover;
  margin-bottom: 4rem;
}
#project-detail ul,
#project-detail p {
  text-align: left;
}
#project-detail p {
  width: 50%;
  margin: 0 auto;
}
/* #project-detail span {
  padding-left: 1rem;
} */
#project-detail ul {
  width: 50%;
  margin: 2rem auto 0;
  padding-left: 0;
  font-size: 0.8rem;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.5rem;
}
#project-detail img:last-child {
  margin-bottom: 2rem;
}
#project-detail table {
  width: fit-content;
  margin: 2rem auto 0;
  font-family: "Noto Serif JP", serif;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.05em;
  line-height: 1.2rem;
  text-align: left;
  font-size: 0.825rem;
}
#project-detail table th,
#project-detail table td {
  padding: 0.1rem;
}
/* #project-detail table th {
  width: 20%;
} */

#to-top {
  display: block;
  margin: 3rem auto;
  text-align: center;
  width: 10rem;
  height: 2rem;
  line-height: 2rem;
  color: var(--on-color);
  background: var(--main-color);
  border: solid 1px var(--main-color);
}
@media screen and (max-width: 768px) {
  #about-content,
  #project-detail,
  #contact-content {
    margin: 0 auto;
    text-align: center;
  }
  #project-detail img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    margin-bottom: 2rem;
  }
  #project-detail p {
    width: calc(100% - 30px);
    margin: 0 auto;
  }
  #about-content h2,
  #project-detail h2,
  #contact-content h2 {
    padding-bottom: 0.1rem;
    margin: 150px auto 3rem;
  }
  #about-content h2::before,
  #project-detail h2::before,
  #contact-content h2::before {
    top: 0;
    width: 1.5rem;
    height: 1.5rem;
  }
  #about-content h3,
  #project-detail h3 {
    font-size: 1.5rem;
  }
  #project-detail table {
    width: calc(100% - 30px);
  }
  #about-content > h3 + p {
    margin: -2rem 0 2rem;
  }
  #about-profile {
    width: 100%;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  #about-profile div {
    width: 100%;
    margin-bottom: 3rem;
  }
  #about-profile div ul {
    width: 100%;
    padding-left: 0;
    font-size: 0.825rem;
  }
  #about-profile div li {
    line-height: 1.2rem;
    margin-bottom: 0.8rem;
  }

  #about-profile div:nth-child(5) {
    width: 100%;
  }
  #about-profile img {
    width: 70%;
    max-width: 250px;
    aspect-ratio: 1/1;
    object-fit: cover;
  }
}
iframe {
  display: block;
  margin: 0 auto;
}
