html {
  font-size: 100%;
}

body {
  background: #f5f5e6;
  color: #2a4f55;
  font-family: "Zen Kaku Gothic New", sans-serif;
}

img {
  vertical-align: bottom;
  object-fit: cover;
}

a {
  display: inline-block;
}

p {
  margin-bottom: 1rem;
  line-height: 2rem;
}

.wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 0 50px;
  margin: 0 auto;
}

section {
  margin: 100px auto 200px;
  width: 100%;
  max-width: 1200px;
  padding: 0 50px;
}

h2 {
  font-size: 7rem;
  position: relative;
  font-family: "Amarna", sans-serif;
  font-weight: 400;
}

h2::before {
  content: "";
  display: inline-block;
  width: 50px;
  height: 50px;
  background-color: #389484;
  border-radius: 100%;
  position: absolute;
  top: 5.5rem;
  left: -1.5rem;
  z-index: -1;
}

hgroup > p {
  margin-left: 30px;
  font-size: 1.1rem;
}

hgroup + p {
  width: 85%;
  margin: 50px auto 100px;
  font-size: 1.1rem;
  line-height: 2.4rem;
}

.btn {
  width: 200px;
  height: 50px;
  line-height: 50px;
  display: block;
  border-radius: 100px;
  background: #389484;
  color: #f5f5e6;
  text-align: center;
}

.gnav .btn::after {
  content: "";
  background: url(../images/mail.webp) no-repeat center center/contain;
  display: inline-block;
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin: 0 0 4px 3px;
}

/* header ----------------------------------------------------------------------------*/
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

.logo img {
  width: 13vw;
  min-width: 100px;
  margin: 10px 0 0 -1.5vw;
}

.menu-toggle {
  display: none;
}
.gnav {
  background: #f5f5e6;
  height: 50px;
  width: 800px;
  border-radius: 100px;
  margin: 30px 30px 0 auto;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 5;
}

header ul {
  display: flex;
  flex: auto;
  color: #2D796A;
  font-weight: 500;
  font-size: 1rem;
  text-align: center;
  line-height: 50px;
  transition: color 0.3s;
}

header ul li {
  width: 200px;
}

.nopc {
  display: none;
}

/* meinview ----------------------------------------------------------------------------*/

.mv {
  height: 100svh;
  min-height: 900px;
  width: 100%;
  margin-bottom: 200px;
}

.mv video {
  object-fit: cover;
  top: 0;
  margin-left: 10%;
  z-index: -1;
  width: 90%;
  height: 90%;
}

.sp-video {
    display: none;
  }

  .pc-video {
    display: block;
  }

.mv hgroup {
  position: absolute;
  height: 90%;
  width: 100%;
  top: 0;
  left: 0;
}

.mv hgroup > p:first-of-type {
  writing-mode: horizontal-tb;
  font-size: clamp(3rem,3vw,4.5rem);
  line-height: clamp(5rem,5vw,7.5rem);
  font-family: "Zen Maru Gothic", sans-serif;
    color: #f5f5e6;
  position: absolute;
  left: 10%;
  top: 20%;
  padding: 10vw 0 0;
  background:  url(../images/seed.webp) no-repeat 1rem clamp(1rem,1vw,1.2rem)/ 15vw auto;
}


h1 {
  font-size: 13vw;
  position: absolute;
  font-family: "Amarna", sans-serif;
  font-weight: 500;
  color: #f5f5e6;
  right: 20px;
  bottom: 0;
  margin: 0;
  line-height: 67%;
  text-align: right;
}


/* Projects ----------------------------------------------------------------------------*/

.project {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
}

.project .box {
  width: 50%;
}

.project .text {
  position: relative;
  margin-bottom: 100px;
}

.project h3 {
  border-bottom: #f3e19d 5px solid;
  margin: 0 0 10px 200px;
  padding-left: 5px;
  width: 220px;
  line-height: 2.5rem;
  font-size: 1.7em;
  color: #389484;
}

.project h3::before {
  content: "";
  display: block;
  position: absolute;
  width: 100px;
  height: 100px;
  top: -20px;
  left: 50px;
}

.project h3::after {
  content: "";
  display: block;
  position: absolute;
  width: 160px;
  height: 160px;
  top: -50px;
  left: 20px;
  border-radius: 90%;
  border: #f3e19d solid 11px;
  z-index: -1;
}

.camera h3::before {
  background: url("../images/project/camera.webp") no-repeat center center/cover;
}

.dtp h3::before {
  background: url("../images/project/dtp.webp") no-repeat center center/cover;
}

.movie h3::before {
  background: url("../images/project/movie.webp") no-repeat center center/cover;
}

.web h3::before {
  background: url("../images/project/web.webp") no-repeat center center/cover;
}

.project li {
  margin-left: 220px;
}

/* ABOUT ----------------------------------------------------------------------------*/

#about hgroup + p {
  margin-bottom: 40px;
}

.em {
  margin: 100px auto 130px calc(7.5% - 20px);
  font-size: 1.3rem;
  font-weight: 500;
  line-height: 5rem;
  background: #ffffff;
  display: inline-block;
  padding: 20px 30px;
}

.em + p {
  font-size: 1.1rem;
  margin: 0 7.5% 200px;
}

.em span {
  font-size: 1.8rem;
  line-height: 3rem;
  margin: 1.5rem auto;
  background-color: #ffffff;
  display: inline-block;
  margin: 5px;
}

.about {
  position: relative;
  margin-bottom: 100px;
}

.about img {
  width: 700px;
  position: absolute;
  left: calc(100% - 700px);
  top: 0px;
  z-index: -1;
}

.member h3 {
  text-align: center;
  font-family: "Josefin Sans", sans-serif;
  font-size: 3rem;
  font-weight: 500;
  width: 300px;
  margin: 0 auto -30px;
  color: #389484;
  background: #f5f5e6;
  position: relative;
  z-index: 1;
}

.member h3::after {
  content: "";
  display: inline-block;
  width: 30px;
  height: 30px;
  background-color: #f3e19d;
  border-radius: 100%;
  position: absolute;
  top: 2rem;
  left: 2.5rem;
  z-index: -1;
}

.member .prf {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-radius: 255px 15px 225px 15px/15px 225px 15px 255px;
  border: #f2ce5c solid 3px;
  padding: 50px 50px 50px 0;
}

.prf .box {
  display: flex;
  margin: 20px 0;
  flex: auto;
}

.prf img {
  width: 160px;
  object-fit: contain;
}

.prf .text {
  width: calc(100% - 160px);
}

.prf p {
  font-size: 0.9rem;
  line-height: 1.5rem;
  margin-bottom: 0.5rem;
}

.prf .text p:first-of-type {
  font-weight: 500;
  font-size: 1rem;
  margin: 0;
}

.comment {
  position: relative;
  padding: 8px;
  background-color: #ffffff;
  color: #2a4f55;
  border-radius: 10px;
  min-height: 3.1rem;
}

.comment::before {
  content: "";
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: rotate(-45deg);
  left: -14px;
  top: 7px;
  border-left: 20px solid #ffffff;
  border-top: 20px solid#ffffff;
  border-right: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

.comment::after {
  content: "";
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  border-radius: 50%;
  transform: rotate(-45deg);
  left: -20px;
  top: -8px;
  border-left: 20px solid #f5f5e6;
  border-top: 20px solid #f5f5e6;
  border-right: 20px solid transparent;
  border-bottom: 20px solid transparent;
}

/* WORK ----------------------------------------------------------------------------*/

#work h2::before {
  left: -0.8rem;
}

.work {
  background: url(../images/work/bg.webp) no-repeat center center/contain;
  width: calc(100% - 10%);
  max-width: 660px;

  margin: 50px auto 0;
  font-size: 1.2rem;
  line-height: 2.4rem;
  height: 440px;
  font-size: 5rem;
  font-weight: 700;
  color: #111;
  text-align: center;
  font-family: "Caveat", cursive;
  position: relative;
  display: grid;
  align-items: center;
}

.work p {
  rotate: -25deg;
  position: absolute;
  top: 130px;
  left: 30px;
}

/* CONTACT ----------------------------------------------------------------------------*/

section#contact {
  position: relative;
  color: #f5f5e6;
  padding: 0 0 100px 0;
  margin: 100px 0 0;
  max-width: 100%;
}

#contact video {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: calc(100% + 140px);
  object-fit: cover;
}

.contact {
  width: 85%;
  max-width: 920px;
  margin: 50px auto 100px;
  font-size: 1.1rem;
  line-height: 2.4rem;
}

.form {
  margin: 30px 50px;
}

.form small {
  font-weight: 400;
}
.form dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 0;
}

.form dt {
  width: 20%;
  font-weight: 500;
  text-align: left;
}

.form dd {
  width: 80%;
}

.form dd input,
.form dd textarea {
  width: 100%;
  border: 0;
  color: #2a4f55;
  background: #f5f5e6;
  border-radius: 5px;
  margin: 0 10px;
}

.form dd textarea {
  height: 10rem;
}

.form p {
  margin-left: 25%;
}

.form p input {
  border: 0;
  margin: 20px auto;
}

footer {
  color: #f5f5e6;
  padding: 10px 20px;
}

.footer,
.box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer p {
  margin: 10px 10px 0;
}

.footer span {
  font-size: 1.7em;
  display: block;
  font-weight: 500;
}

.footer img {
  width: 50px;
}

.footer ul {
  text-align: right;
}


/*----------------------------------------------------------------------------*/

@media (max-width: 1200px) {

  .prf img {
    width: 120px;
  }

  .prf .text {
    width: calc(100% - 120px);
  }
}

/*----------------------------------------------------------------------------*/

@media (max-width: 980px) {

.menu-wrapper {
  position: relative;
}

.menu-icon {
  width: 40px;
  height: 30px;
  position: fixed;
  top: 40px;
  right: 40px;
  cursor: pointer;
  z-index: 10;
  display: inline-block;
}

.menu-icon span {
  display: block;
  height: 4px;
  margin: 6px 0;
  background: #389484;
  border-radius: 2px;
  transition: 0.4s;
}

.menu-icon::after {
 content: '';
 display: block;
 width: 70px;
 height: 70px;
 border-radius: 40px;
 background: #f5f5e6;
 top: -15px;
 right: -15px;
 position: absolute;
 z-index: -1;

}
#menu-toggle:checked + .menu-icon span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}
#menu-toggle:checked + .menu-icon span:nth-child(2) {
  opacity: 0;
}
#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

#menu-toggle:checked + .menu-icon span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}


#menu-toggle:checked ~ .overlay {
  opacity: 1;
  pointer-events: auto;
}

.gnav {
  border-radius: 0;
  top: 0;
  right: -100%;
  width: 50%;
  height: 100%;
  transition: right 0.4s ease;
  margin: 0 0 0 50%;
  padding: 100px 0;
}

#menu-toggle:checked ~ .gnav{
  right: 0; 
}

header ul {
  display: block;
}

header ul li {
  width: 100%;
  margin: 30px auto;
  text-align: center;
}

.gnav .btn {
  margin: 0 auto;
}

.nopc {
  display: block;
  margin: 100px 0;
}

.nopc img {
  width: 50px;
  height: 50px;
  background: #389484;
  border-radius: 50px;
}

.sp-video {
  display: block;
}

.pc-video {
  display: none;
}

.mv video {
  margin-left: 0;
  width: 100%
}

  .mv hgroup > p:first-of-type {
      writing-mode: vertical-rl;
      font-size: clamp(2.5rem,5vw,3rem);
      line-height: clamp(4.5rem,5vw,5rem);
      left: clamp(1rem,53vw,6rem);
      top: 3rem;;
      padding: 50px 50px 0;
      background: url(../images/seed.webp) no-repeat clamp(5rem,9vw,8rem) 0.5rem / clamp(10rem,20vw,12rem) auto;
    }



  .project h3 {
    margin: 0 0 10px 150px;
    width: 200px;
    font-size: 1.6em;
  }

  .project h3::before {
    width: 80px;
    height: 80px;
    top: -10px;
    left: 40px;
  }

  .project h3::after {
    width: 120px;
    height: 120px;
    top: -30px;
    left: 20px;
    border: #f3e19d solid 7px;
  }

  .project li {
    margin-left: 160px;
  }

  .em {
    margin-top: 200px;
  }

  .member .prf {
    grid-template-columns: 1fr 1fr;
  }

  .work {
    font-size: 7vw;
  }

  .work p {
    top: 160px;
    left: 40px;
  }

  .form dl {
    flex-direction: column;
    gap: 0;
  }

  .form dt,
  .form dd {
    width: 100%;
  }

  .form dd input,
  .form dd textarea {
    margin: 5px 0 20px;
  }

  .form p {
    margin-left: 0;
  }
}

/*----------------------------------------------------------------------------*/

@media (max-width: 860px) {

  .em {
    font-size: 1.2rem;
    line-height: 4rem;
  }

  .about img {
    width: 100%;
    left: 0;
  }

  .project h3 {
    margin: 0 0 10px 140px;
    width: 170px;
    font-size: 1.4em;
  }

  .project h3::before {
    left: 30px;
  }

  .project h3::after {
    left: 10px;
  }

  .project li {
    margin-left: 150px;
  }
}

/* SP ----------------------------------------------------------------------------*/

@media (max-width: 767px) {

  .wrapper,
  section {
    padding: 0 5%;
  }

  hgroup + p {
    width: 100%;
  }

  .project div {
    width: 100%;
  }

  .project h3 {
    margin: 0 0 10px 200px;
    width: 42vw;
    font-size: 5.5vw;
    line-height: 7vw;
  }

  .project h3::before {
    width: 100px;
    height: 100px;
    top: -20px;
    left: 50px;
  }

  .project h3::after {
    width: 160px;
    height: 160px;
    top: -50px;
    left: 20px;
    border: #f3e19d solid 11px;
  }

  .project li {
    margin-left: 220px;
  }

  .em {
    margin-top: 25vw;
    line-height: 3rem;
    font-weight: 500;
  }

  .em + p {
    margin-bottom: 100px;
  }
}

/*----------------------------------------------------------------------------*/

@media (max-width: 620px) {

  /* .mv,
  .mv hgroup {
    min-height: 700px;
  }

  .mv video {
    min-height: calc(700px - 10%);
  } */

  .member .prf {
    display: block;
    margin: 0 auto;
    padding: 10px;
  }

  .prf .box {
    display: flex;
    margin: 20px 0 20px -20px;
    flex: auto;
  }

  .prf img {
    width: 160px;
  }

  .about img {
    position: static;
  }

  .em {
    margin: 0 0 40px;
  }

  .em + p {
    margin-bottom: 40px;
  }

  .comment {
    min-width: 120px;
    width: 90%;
    min-height: 60px;
  }

  .form {
    margin: 30px 0;
  }
}

/*----------------------------------------------------------------------------*/

@media (max-width: 500px) {

  section {
    margin: 80px auto 150px;
  }

  .mv {
    margin-bottom: 150px;
  }


  h2 {
    font-size: 5.3rem;
    margin-left: 10px;
  }

  h2::before {
    width: 40px;
    height: 40px;
    top: 5rem;
    left: -1rem;
  }

  .project h3 {
    margin: 0 0 10px 150px;
    width: 46vw;
  }

  .project h3::before {
    width: 80px;
    height: 80px;
    top: -10px;
    left: 30px;
  }

  .project h3::after {
    width: 120px;
    height: 120px;
    top: -30px;
    left: 10px;
    border: #f3e19d solid 7px;
  }

  .project li {
    margin-left: 160px;
  }

  .footer .box {
    position: relative;
  }

  .insta {
    position: absolute;
    top: -50px;
  }
}
