@charset "utf-8";

.header {
  position: fixed;
  z-index: 100000;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
  padding: 1rem 3rem;

  .site_logo {
    filter: drop-shadow(1px 1px 2px #999);

    span {
      display: block;
    }

    a {
      color: var(--white);
      font-size: var(--fz_10);
    }
  }

  .g_nav {
    display: flex;

    .g_nav_item {
      margin-right: 1rem;
      text-align: center;
      line-height: 40px;
      width: 100px;

      &:nth-child(4) {
        width: 200px;
        height: 40px;
        line-height: 40px;
        border-radius: 100px;
        background: var(--accent-color1);
        border: 1px solid var(--accent-color1);
        position: relative;

        &::after {
          content: "＞";
          color: var(--white);
          font-weight: bold;
          font-size: var(--fz_10);
          position: absolute;
          right: 25px;
        }

        &:hover {
          background: var(--white);
          transition: 0.3s;

          a {
            color: var(--accent-color1);
          }

          &::after {
            color: var(--accent-color1);
          }
        }
      }

      &:last-child {
        width: 200px;
        height: 40px;
        line-height: 40px;
        border-radius: 100px;
        background: #06c755;
        margin-right: 0;
        position: relative;
        border: 1px solid #06c755;

        &::after {
          content: "＞";
          color: var(--white);
          font-weight: bold;
          font-size: var(--fz_10);
          position: absolute;
          right: 25px;
        }

        &:hover {
          background: var(--white);
          transition: 0.3s;

          a {
            color: #06c755;
          }

          &::after {
            color: #06c755;
          }
        }
      }

      a {
        color: var(--white);
        font-weight: bold;
        text-shadow: 1px 1px 2px #999;
        display: inline-block;
        width: 100%;
      }
    }
  }

  nav:has(.g_nav_sp) {
    display: none;
  }

  .h_btn {
    display: none;
  }
}

.main {
  background: var(--white);
  overflow: hidden;

  .main_visual {
    .main_left_container {
      width: 50%;
      min-height: 750px;
      max-height: 80vh;
      background: var(--main-color);
      padding: 12.5rem 0 1.5rem;
      position: relative;

      &::before {
        content: "";
        display: block;
        width: 50vw;
        min-height: 750px;
        max-height: 80vh;
        background: var(--main-color);
        position: absolute;
        top: 0;
        translate: -100% 0%;
      }

      &::after {
        /* content: "Web Design";
        font: clamp(4.5rem, 2.3rem + 0.91vw, 5rem) / 1.8 "din-bold", sans-serif;
        font-weight: bold;
        color: rgb(255 255 255 / 0.5);
        position: absolute;
        transform: rotate(90deg);
        bottom: 122px;
        right: -100px; */
        content: url(../images/mv_catch.svg);
        position: absolute;
        transform: rotate(0deg);
        bottom: 22px;
        right: 30px;
        opacity: .5;
      }

      .site_title {
        width: 80%;
        padding: 1.275rem 3rem;
        background: var(--sub-color);
        font-size: var(--fz_20);
        color: var(--white);
        margin-bottom: 3rem;
        position: relative;

        &::before {
          content: "";
          display: block;
          width: 50vw;
          height: 100%;
          background: var(--sub-color);
          position: absolute;
          top: 0;
          translate: -100% 0%;
        }
      }

      .main_slider {
        width: 320px;
        /* height: 180px; */
        margin-left: 3rem;
        font-size: var(--fz_14);
        color: var(--white);
        z-index: 100;

        img {
          width: 100%;
          height: 200px;
          object-fit: cover;
          object-position: top;
          margin-bottom: 1.75rem;
        }
      }
    }

    .main_right_container {
      position: absolute;
      top: 0;
      left: 50%;
      width: 50%;
      min-height: 750px;
      max-height: 80vh;

      video {
        height: 100%;
        min-height: 750px;
        max-height: 80vh;
      }
    }
  }

  .about {
    position: relative;

    .sub_title {
      position: absolute;
      left: 25%;
      top: 120px;
    }

    .container {
      display: flex;
      justify-content: space-around;
      padding: 200px 80px 100px;

      .site_img_container {
        width: 400px;
        height: 260px;
        display: block;
        position: relative;
        z-index: 10;
        margin-top: 60px;

        &::before {
          content: "";
          display: block;
          width: 100%;
          height: 100%;
          background: var(--main-color);
          position: absolute;
          z-index: -1;
          top: -80px;
          left: -80px;
        }

        img {
          width: 100%;
          height: 100%;
          object-fit: cover;
        }
      }

      .site_catch_container {
        width: 40%;
        font-size: var(--fz_14);

        .site_catch {
          margin-bottom: 20px;
        }
      }
    }

    &::after {
      content: url(../images/bg_logo.svg);
      position: absolute;
      bottom: -40px;
      right: -5%;
    }
  }

  .service {
    position: relative;

    &::before {
      content: "";
      display: block;
      width: 200%;
      height: 700px;
      background: rgb(17, 158, 149, 0.4);
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%) rotate(-15deg);
      z-index: 1;
    }

    .sub_title {
      position: absolute;
      left: 180px;
      top: 80px;
    }

    .container {
      position: relative;
      z-index: 100;

      .service_list {
        display: flex;
        justify-content: space-around;
        width: 80%;
        margin-left: auto;
        background: var(--main-color);
        padding: 20px;
        position: relative;
        margin-bottom: 50px;

        &::before {
          content: "";
          display: block;
          position: absolute;
          background: var(--main-color);
          width: 50vw;
          height: 100%;
          position: absolute;
          top: 0;
          right: 1px;
          translate: 100% 0%;
        }

        &:nth-of-type(2) {
          margin-right: auto;

          &::before {
            translate: -100% 0%;
            left: 1px;
          }

          &::after {
            right: 0;
            left: auto;
          }
        }

        &::after {
          content: "";
          width: calc(100% + 50vw);
          height: 50px;
          display: block;
          background: var(--sub-color);
          position: absolute;
          bottom: 0;
          left: 0;
          z-index: 1;
        }

        .service_list_item {
          width: calc((100% / 3) - 10px);
          text-align: center;
          position: relative;

          img {
            width: 100%;
            height: 100%;
            margin-bottom: 50px;
            height: -webkit-fill-available;
          }

          h3 {
            position: absolute;
            width: 100%;
            z-index: 10;
            bottom: -7px;
            left: 50%;
            translate: -50%;
          }
        }
      }

      .service_catch {
        width: 50%;
        margin-left: auto;
        margin-bottom: 50px;
      }
    }
  }

  .works {
    position: relative;
    z-index: 100;
    padding: 200px 0 50px;

    &::after {
      content: url(../images/bg_logo.svg);
      position: absolute;
      bottom: 50%;
      right: 3%;
      z-index: -1;
    }

    .sub_title {
      position: absolute;
      left: 20%;
      top: 140px;
    }

    .works_list {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      grid-template-rows: repeat(2, 1fr);
      gap: 20px 20px;
      grid-template-areas:
        "main main sub1 sub2"
        "main main sub3 sub4";

      .works_list_item {
        img {
          width: 100%;
          height: 80%;
          max-height: 385px;
          object-fit: cover;
          object-position: top left;
          box-shadow: 1px 1px 10px 1px rgb(0 0 0 / 0.2);
        }

        &:first-of-type {
          grid-area: main;
          height: 100%;
        }

        &:nth-of-type(2) {
          grid-area: sub1;
        }

        &:nth-of-type(3) {
          grid-area: sub2;
        }

        &:nth-of-type(4) {
          grid-area: sub3;
        }

        &:nth-of-type(5) {
          grid-area: sub4;
        }

        a {
          color: var(--base-color);
          display: block;
          width: 100%;
          height: 100%;
        }
      }
    }
  }

  .contact {
    position: relative;
    background: rgb(17, 158, 149, 0.4);

    .inner {
      display: flex;
      justify-content: center;
      padding: 100px 50px 50px;

      .sub_title {
        order: 2;
        height: fit-content;
      }

      .contact_catch {
        margin-bottom: 50px;
      }

      form {
        width: 100%;

        dt {
          margin-bottom: 5px;

          span {
            color: var(--white);
            font-size: 0.75rem;
            margin-left: 1em;
            padding: 0.3em 0.5em;
            background: var(--accent-color1);
            border-radius: 5px;
          }
        }

        dd {
          margin-bottom: 50px;

          input[type="text"],
          input[type="email"],
          select {
            width: 100%;
            height: 40px;
            padding: 0.3em;
            border: none;
            position: relative;
          }

          textarea {
            width: 100%;
            height: 200px;
            border: none;
            resize: none;
          }

          .caution {
            position: absolute;
            color: #f00;
            display: block;
            font-size: 0.75rem;
          }
        }

        input[type="submit"] {
          width: 300px;
          height: 40px;
          line-height: 40px;
          border-radius: 100px;
          margin: 30px auto;
          color: var(--white);
          background: var(--sub-color);
          border: 1px solid var(--sub-color);
          position: relative;
          text-align: center;
          z-index: 100;
          left: 50%;
          translate: -50%;

          &:hover {
            color: var(--sub-color);
            background: var(--white);
            transition: 0.3s;
          }
        }
        dd:has(select){
          position: relative;
          &::after{
            content: "▼";
            position: absolute;
            top: 50%;
            right: 15px;
            translate: 0 -44%;
          }
        }
      }
    }
  }
}

.footer {
  background: var(--main-color);
  padding: 30px 20px 10px;

  .inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    .footer_logo {
      width: 260px;
    }

    .f_nav {
      display: flex;

      .f_nav_item {
        margin-right: 15px;
        text-align: center;
        line-height: 40px;
        width: 100px;

        &:nth-child(4) {
          width: 200px;
          height: 40px;
          line-height: 40px;
          border-radius: 100px;
          background: var(--accent-color1);
          border: 1px solid var(--accent-color1);
          position: relative;

          &::after {
            content: "＞";
            color: var(--white);
            font-weight: bold;
            font-size: var(--fz_10);
            position: absolute;
            right: 25px;
          }

          &:hover {
            background: var(--white);
            transition: 0.3s;

            &::after {
              color: var(--accent-color1);
            }

            a {
              color: var(--accent-color1);
            }
          }
        }

        &:last-child {
          width: 200px;
          height: 40px;
          line-height: 40px;
          border-radius: 100px;
          background: #06c755;
          border: 1px solid #06c755;
          margin-right: 0;
          position: relative;

          &::after {
            content: "＞";
            color: var(--white);
            font-weight: bold;
            font-size: var(--fz_10);
            position: absolute;
            right: 25px;
          }

          &:hover {
            background: var(--white);
            transition: 0.3s;

            &::after {
              color: #06c755;
            }

            a {
              color: #06c755;
            }
          }
        }

        a {
          color: var(--white);
          font-weight: bold;
          text-shadow: 1px 1px 2px #999;
          display: inline-block;
          width: 100%;
        }
      }
    }

    .copyright {
      width: 100%;
      text-align: center;
      font-size: 0.75rem;
      margin-top: 30px;

      small {
        font-weight: bold;
      }
    }
  }
}

/* ｰｰ works ｰｰ */
.sub_visual {
  display: flex;

  .sub_left_container {
    width: 50%;
    min-height: 350px;
    max-height: 50vh;
    background: var(--main-color);
    padding: 160px 0 20px;
    position: relative;

    &::before {
      content: "";
      display: block;
      width: 50vw;
      min-height: 350px;
      max-height: 50vh;
      background: var(--main-color);
      position: absolute;
      top: 0;
      translate: -100% 0%;
    }

    .site_title {
      width: 70%;
      padding: 30px 50px 30px 100px;
      background: var(--sub-color);
      font: 2.5rem / 1.3 "din-bold", sans-serif;
      color: var(--white);
      margin-bottom: 20px;
      position: relative;

      &::before {
        content: "";
        display: block;
        width: 50vw;
        height: 100%;
        background: var(--sub-color);
        position: absolute;
        top: 0;
        translate: -100% 0%;
      }

      span {
        display: block;
        font-size: var(--fz_14);
      }
    }
  }

  .sub_right_container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    min-height: 350px;
    max-height: 350px;

    video {
      width: 100%;
      object-fit: cover;
      height: 100%;
      min-height: 350px;
      max-height: 350px;
    }
  }
}

.works_content {
  position: relative;
  z-index: 100;
  padding: 100px 0;

  .works_catch {
    margin-bottom: 30px;
    text-align: right;
  }

  .content_inner {
    width: 80%;
    margin-inline: auto;

    .sub_title {
      font: clamp(4.5rem, 2.3rem + 0.91vw, 5rem) / 1.3 "din-bold", sans-serif;
      font-weight: bold;
      color: var(--main-color);
    }

    &:nth-of-type(odd) {
      .sub_title {
        text-align: right;
      }

      .works_content_list {
        &::after {
          left: -250px;
        }
      }
    }

    .works_content_list {
      display: flex;
      gap:30px;
      margin-bottom: 100px;
      position: relative;

      &::after {
        content: "";
        display: block;
        position: absolute;
        top: 40%;
        left: -50px;
        width: 100vw;
        height: 75%;
        background: var(--main-color);
        z-index: -1;
      }

      .works_list_item {
        width: calc(100% / 4);
        height: 260px;

        img {
          width: 100%;
          height: 60%;
          object-fit: cover;
          object-position: center;
        }

        a {
          color: var(--white);
        }
      }
    }
  }
}

.ad_content {
  position: relative;
  background: rgb(17, 158, 149, 0.4);

  .inner {
    padding: 50px;

    .sub_title {
      font: clamp(2rem, 1.5rem + 0.91vw, 3rem) / 1.8 "din-bold", sans-serif;
      font-weight: bold;
      color: var(--main-color);
    }

    .contact_catch {
      margin-bottom: 50px;
    }

    .ctn_btn {
      display: flex;

      .ctn_btn_item {
        margin-right: 15px;
        text-align: center;
        width: 200px;
        height: 40px;
        line-height: 40px;
        border-radius: 100px;
        background: var(--accent-color1);
        border: 1px solid var(--accent-color1);
        position: relative;

        &:hover {
          background: var(--white);
          transition: 0.3s;

          &::after {
            color: var(--accent-color1);
          }

          a {
            color: var(--accent-color1);
          }
        }

        &::after {
          content: "＞";
          color: var(--white);
          font-weight: bold;
          font-size: var(--fz_10);
          position: absolute;
          right: 25px;
        }

        &:last-child {
          width: 200px;
          height: 40px;
          line-height: 40px;
          border-radius: 100px;
          background: #06c755;
          border: 1px solid #06c755;
          margin-right: 0;
          position: relative;

          &:hover {
            background: var(--white);
            transition: 0.3s;

            &::after {
              color: #06c755;
            }

            a {
              color: #06c755;
            }
          }
        }

        a {
          color: var(--white);
          font-weight: bold;
          text-shadow: 1px 1px 2px #999;
          display: inline-block;
          width: 100%;
        }
      }
    }
  }
}

/* ｰｰ single ｰｰ */
.single_content {
  padding: 100px 0;

  .content_inner {
    width: 80%;
    margin-inline: auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .left_container {
    width: 40%;

    a {
      color: inherit;
    }
  }

  .right_container {
    width: 50%;

    img {
      width: 100%;
      box-shadow: 1px 1px 4px rgb(0 0 0 /0.3);
    }
  }

  .sub_title {
    font: var(--fz_20) / 1.3 "din-bold", sans-serif;
    font-weight: bold;
    color: var(--main-color);
  }

  .single_contents {
    margin-bottom: 30px;
  }
}

.thanks,
.not_found {
  padding: 100px;
}

@media (width <=1200px) {
  .header {
    padding: 10px;
  }

  .main {
    .about {
      &::after {
        right: 10%;
      }
    }

    .service {
      .sub_title {
        left: 70px;
      }
    }

    .works {
      .works_list {
        padding: 0 10px;
      }
    }
  }
}

@media (width <=1060px) {
  .main {
    & .service {
      .sub_title {
        left: 50px;
      }
    }
  }

  .works_content {
    & .content_inner {
      & .works_content_list {
        .works_list_item {
          width: calc((100% / 4) - 20px);
          height: 200px;
        }
      }
    }
  }

  .footer {
    nav {
      width: 100%;
      justify-items: center;
    }
  }
}

@media (width <=960px) {
  .header {
    align-items: center;

    .g_nav {
      display: none;
    }

    nav:has(.g_nav_sp) {
      position: fixed;
      top: 0;
      right: -100%;
      width: 90vw;
      height: 100vh;
      z-index: 10000;
      background: rgb(17 158 149 / 0.9);
      display: flex;
      flex-direction: column;
      transition: right 0.3s ease;

      .g_nav_sp {
        width: 100%;
        height: 100%;
        padding: 180px 30px 50px;

        .g_nav_item_sp {
          padding: 10px 0;
          text-align: center;
          line-height: 40px;
          width: 100%;
          border-bottom: 1px solid rgb(255 255 255 / 0.3);

          &:nth-child(4) {
            width: 80%;
            height: 40px;
            line-height: 40px;
            border-radius: 100px;
            background: var(--accent-color1);
            position: relative;
            padding: 0;
            margin: 30px auto;
            border-bottom: 0;

            &::after {
              content: "＞";
              color: var(--white);
              font-weight: bold;
              font-size: var(--fz_10);
              position: absolute;
              right: 25px;
            }
          }

          &:last-child {
            width: 80%;
            height: 40px;
            line-height: 40px;
            border-radius: 100px;
            background: #06c755;
            margin: 0 auto;
            position: relative;
            padding: 0;
            border-bottom: 0;

            &::after {
              content: "＞";
              color: var(--white);
              font-weight: bold;
              font-size: var(--fz_10);
              position: absolute;
              right: 25px;
            }
          }

          a {
            color: var(--white);
            font-weight: bold;
            text-shadow: 1px 1px 2px #999;
            display: inline-block;
            width: 100%;
          }
        }
      }

      &.open {
        right: 0;
      }
    }

    .h_btn {
      width: 40px;
      height: 30px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      cursor: pointer;
      position: fixed;
      z-index: 1000000;
      right: 20px;
      filter: drop-shadow(1px 1px 2px #999);

      span {
        width: 100%;
        height: 4px;
        background-color: var(--white);
        transition: 0.3s;
        border-radius: 2px;
      }

      &.active span:nth-child(1) {
        transform: translateY(13px) rotate(45deg);
      }

      &.active span:nth-child(2) {
        opacity: 0;
      }

      &.active span:nth-child(3) {
        transform: translateY(-13px) rotate(-45deg);
      }
    }
  }

  .main {
    & .main_visual {
      & .main_left_container {
        .site_title {
          width: 90%;
        }

        &::after {
          right: -20%;
        }
      }
    }

    & .service {
      .sub_title {
        left: 35px;
      }
    }

    & .about {
      padding: 50px 0;

      .sub_title {
        top: 40px;
        right: 10%;
        left: auto;
      }

      .container {
        flex-direction: column;
        padding: 100px 30px;

        .site_img_container {
          width: 100%;
          margin: 60px 0;
        }

        .site_catch_container {
          width: 80%;
          margin-inline: auto;
        }
      }
    }

    .works_content {
      & .content_inner {
        width: 90%;

        & .works_content_list {
          flex-wrap: wrap;
gap:10px;

          .works_list_item {
height:230px;
            width: calc((100% / 2) - 10px);
            margin-bottom: 50px;
          }

          &::after {
            top: 10%;
            height: 100%;
          }
        }

        &:nth-of-type(odd) {
          .works_content_list {
            &::after {
              left: -20%;
            }
          }
        }
      }
    }
  }
  .sub_visual {
    .sub_right_container {
      width: auto;
    }
  }
}

@media (width <=900px) {
  .main {
    & .service {
      .sub_title {
        left: 5px;
      }

      & .container {
        .service_catch {
          width: 70%;
        }
      }
    }
  }
}

@media (width <=767px) {
  .header {
    padding: 10px;

    .site_logo {
      margin-top: 10px;

      img {
        width: 60%;
      }
    }
  }

  .main {
    .main_visual {
      .main_left_container {
        width: auto;
        padding: 150px 0 20px;

        .site_title {
          width: 85%;
          font-size: var(--fz_14);
        }

        .main_slider {
          margin-right: auto;
          margin-left: auto;
          width: 80%;

          img {
            height: 270px;
          }
        }

        &::after {
          transform: rotate(0deg);
          font-size: 70px;
          right: 0;
          bottom: 0;
        }
      }

      .main_right_container {
        display: none;
      }
    }

    .sub_visual {
      .sub_left_container {
        width: 100%;
        padding: 150px 0 20px;

        .site_title {
          width: 85%;
        }
      }

      .sub_right_container {
        display: none;
      }
    }

    .about {
      padding: 50px 0;

      .sub_title {
        left: 10%;
        top: 40px;
        font-size: 50px;
      }

      .container {
        flex-direction: column;
        padding: 100px 10px;

        .site_img_container {
          width: 100%;
          margin: 60px 0;
        }

        .site_catch_container {
          width: 90%;
          margin-inline: auto;
        }
      }

      &::after {
        font-size: 70px;
        line-height: 1;
        bottom: 0;
        right: 0;
      }
    }

    .service {
      .sub_title {
        left: -90px;
      }

      .container {
        .service_list {
          width: 70%;
          flex-direction: column;
          margin: 0 auto 50px;
          padding: 20px 20px 0 20px;

          &::after {
            content: none;
          }

          .service_list_item {
            width: 100%;

            img {
              margin-bottom: 50px;
              height: 75%;
            }

            h3 {
              bottom: 12px;
            }
          }
        }

        .service_catch {
          width: 80%;
          margin: 0 auto 50px;
        }
      }
    }

    .works {
      padding: 100px 20px;

      &::after {
        font-size: 70px;
        line-height: 1;
        bottom: 0;
        right: 0;
      }

      .sub_title {
        top: 10px;
        left: auto;
        right: 10%;
      }

      .works_list {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 1fr);
        gap: 20px 20px;
        grid-template-areas:
          "main main"
          "main main"
          "sub1 sub2"
          "sub3 sub4";

        .works_list_item {
          img {
            width: 100%;
            height: 80%;
            object-fit: contain;
            object-position: center;
            box-shadow: none;
          }

          &:first-of-type {
            grid-area: main;
          }

          &:nth-of-type(2) {
            grid-area: sub1;
          }

          &:nth-of-type(3) {
            grid-area: sub2;
          }

          &:nth-of-type(4) {
            grid-area: sub3;
          }

          &:nth-of-type(5) {
            grid-area: sub4;
          }
        }
      }
    }

    .contact {
      .inner {
        flex-direction: column;
        padding: 50px;

        .sub_title {
          transform: none;
          order: 0;
        }

        .contact_catch {
          margin-bottom: 50px;
        }
      }
    }
  }
  .single_content {
    .content_inner {
      flex-direction: column;
    }
    .left_container {
      width: 100%;
    }
    .right_container {
      width: 100%;
    }
  }
  .footer {
    .inner {
      nav {
        width: 100%;
        margin-top: 10px;

        .f_nav {
          flex-wrap: wrap;

          .f_nav_item {
            &:nth-child(4) {
              display: none;
            }

            &:last-child {
              display: none;
            }
          }
        }
      }

      .copyright {
        margin-top: 10px;
      }
    }
  }
}
