@charset "UTF-8";
/*
Theme Name: 空き家利活用ってええよね！コンテスト
*/

/* カスタムプロパティ定義 */
:root {
  /* フォントの太さ */
  --Light: 300;
  --Regular: 400;
  --Medium: 500;
  --SemiBold: 600;
  --Bold: 700;
  --ExtraBold: 800;
  --Black: 900;

  /* 画面サイズ関連 */
  --min-window: 1200px;
  /* ウィンドウサイズがこれより小さい場合は */
  --inner: 1000px;
  /* ニュース等の横幅 */

  --theme-color: #145da1;
}

/* html全体に関わるもの */
html,
body {
  margin: 0;
  /* font-family: "Noto Serif JP", serif; */
  font-family: "fot-tsukubrdgothic-std", sans-serif;
  background-color: #fff;
  scroll-behavior: smooth;
  min-width: var(--min-window);

  /* 横幅1920pxのときに10pxになる */
  font-size: calc(100vw / 192);
}

@media screen and (max-width: 768px) {

  html,
  body {
    width: auto;
    min-width: auto;
    /* 横幅768pxのときに10pxになる */
    font-size: calc(100vw / 76.8);
  }

  .pc {
    display: none;
  }
}

@media screen and (min-width: 769px) {
  .sp {
    display: none;
  }
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;

  &:hover {
    opacity: 0.6;
  }
}

img {
  vertical-align: top;
}

nav ul {
  list-style-type: none;
  margin: 0;
  padding-inline-start: 0;

  & li {
    cursor: pointer;
  }
}

section[id^="page"] {
  width: var(--inner);
  margin: 0 auto;
}

h2 {
  font-size: 32px;
  font-weight: var(--Bold);
  text-align: center;
  margin-bottom: 40px;
  color: var(--theme-color);
  letter-spacing: 3px;

  @media screen and (max-width: 768px) {
    font-size: 4.8rem;
    margin-bottom: 6rem;
  }
}

/* rechaptchaの非表示 */

.grecaptcha-badge {
  visibility: hidden;
}

footer {
  height: 40px;
  background-color: var(--theme-color);
  color: #fff;
  padding: 25px 0;
  text-align: center;
  font-size: 12px;

  @media screen and (max-width: 768px) {
    font-size: 2.4rem;
    padding: 5rem 0;
  }
}

.toggle {
  display: none;

  &:checked+.menu-btn {
    +.menu {
      max-height: 350px;
      padding-top: 60px;
    }

    & span {
      &:nth-child(1) {
        top: 20px;
        transform: rotate(45deg);
      }

      &:nth-child(2) {
        transform: rotate(45deg);
        height: 0;
      }

      &:nth-child(3) {
        top: 20px;
        transform: rotate(135deg);
      }
    }
  }
}

.menu-btn {
  position: absolute;
  width: 40px;
  height: 40px;
  right: 20px;
  top: 20px;
  font-size: 12px;
  text-align: center;
  cursor: pointer;
  z-index: 1000;

  & span {
    display: inline-block;
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    background-color: #fff;
    border-radius: 2px;
    transition: 0.3s;

    &:nth-child(1) {
      top: 8px;
    }

    &:nth-child(2) {
      top: 20px;
    }

    &:nth-child(3) {
      top: 32px;
    }
  }
}

.menu {
  max-height: 0;
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  color: #fff;
  background-color: var(--theme-color);
  transition: 0.3s;
  z-index: 100;

  .item-wrap {
    .item {
      display: block;
      font-size: 18px;
      font-weight: var(--SemiBold);
      padding: 15px 0;
      margin: 0 7%;
      border-bottom: 1px dotted #fff;

      &.last {
        border-bottom: none;
        padding-bottom: 20px;
      }
    }
  }
}

#front-page-header {
  display: flex;
  height: 40px;
  padding: 15px 10%;
  font-size: 16px;
  font-weight: var(--Bold);
  background-color: var(--theme-color);
  color: #fff;
  align-items: center;
  justify-content: end;

  @media screen and (max-width: 768px) {
    display: none;
  }

  .item {
    margin-left: 2.5em;

    @media screen and (max-width: 768px) {
      margin-left: 1em;
      font-size: 3.2rem;
    }
  }
}

#front-page-top {
  width: 100%;
  height: calc(100vh - 70px);
  position: relative;
  overflow: hidden;

  &::before {
    content: "";
    display: block;
    position: absolute;
    width: 100%;
    height: inherit;
    background-color: rgba(255, 255, 255, 0.3333333333);
  }

  .splide {
    & img {
      width: 100%;
      height: calc(100vh - 70px);
      object-fit: cover;
    }
  }

  .logo {
    & img {
      position: absolute;
      width: 70%;
      top: 50%;
      left: 50%;
      transform: translateX(-50%) translateY(-50%);

      @media screen and (max-width: 768px) {
        width: 90%;
      }
    }
  }

  & h1 {
    margin: 0;
  }
}

#front-page-overview {
  width: 100%;
  padding: 80px 0 20px;
  font-weight: var(--Bold);

  @media screen and (max-width: 768px) {
    padding: 8rem 0 5rem;
  }

  h2 {
    @media screen and (max-width: 768px) {
      font-size: 4rem;
      letter-spacing: 0;
      margin: 0 5% 30px;
    }
  }

  .overview-top {
    text-align: center;
    display: flex;
    color: var(--theme-color);
    justify-content: center;
    align-items: center;

    @media screen and (max-width: 768px) {
      flex-wrap: wrap;
    }

    .content1 {
      font-size: 30px;
      letter-spacing: 3px;
      margin-right: 10px;

      @media screen and (max-width: 768px) {
        width: 100%;
        font-size: 4.5rem;
      }
    }

    .content2 {
      font-size: 54px;

      @media screen and (max-width: 768px) {
        font-size: 6rem;
      }
    }

    .content3,
    .content5 {
      font-size: 32px;
      margin: 10px 0 0 -10px;

      @media screen and (max-width: 768px) {
        font-size: 3.6rem;
        margin: 1.5rem 0 0 -1.5rem;
      }
    }

    .content4 {
      font-size: 54px;
      margin-left: -10px;

      @media screen and (max-width: 768px) {
        font-size: 6rem;
        margin-left: -1.5rem;
      }
    }
  }

  .overview-bottom {
    display: flex;
    font-size: 26px;
    width: 80%;
    height: 240px;
    margin: 0 auto;

    @media screen and (max-width: 768px) {
      height: auto;
      font-size: 3.9rem;
      flex-wrap: wrap;
      margin: 0 auto 12rem;
    }

    .image {
      display: block;
      width: 15%;

      & img {
        width: fit-content;
        height: 100%;
      }

      &.right {
        & img {
          margin-left: auto;
        }
      }

      @media screen and (max-width: 768px) {
        display: none;
      }
    }

    .middle {
      width: 70%;
      height: fit-content;
      text-align: center;

      @media screen and (max-width: 768px) {
        width: 90%;
        margin: 0 auto;
      }
    }
  }
}

#front-page-contest {
  background-color: #f0f6fa;
  font-weight: var(--Bold);

  .wave {
    width: 100%;
    transform: translateY(-50%);
  }

  .inner {
    padding: 0 15% 80px;

    @media screen and (max-width: 768px) {
      padding: 0 5% 12rem;
    }

    & section {
      margin: 30px 0;
    }

    .head {
      display: flex;
      flex-direction: column;
      position: relative;
      width: 30%;
      margin: 0 auto;
      text-align: center;
      background-color: var(--theme-color);
      color: #fff;
      font-size: 28px;
      border-radius: 40px;
      z-index: 10;

      @media screen and (max-width: 768px) {
        width: 60%;
        height: 12rem;
        font-size: 4.4rem;
        border-radius: 120px;
      }

      .min {
        font-size: 16px;
        margin-top: -1em;
        margin-bottom: 4px;
        font-weight: var(--Regular);

        @media screen and (max-width: 768px) {
          font-size: 3rem;
        }
      }
    }

    .content {
      background-color: #cae4f0;
      font-size: 24px;
      border-radius: 15px;
      margin-top: -35px;
      padding-top: 70px;
      z-index: 1;
      text-align: center;

      @media screen and (max-width: 768px) {
        font-size: 3.6rem;
        padding: 10rem 10% 0;
        margin-top: -6rem;
      }

      &.region {
        line-height: 1.8;
        padding-bottom: 70px;

        @media screen and (max-width: 768px) {
          padding-bottom: 4rem;
        }
      }

      .items {
        width: 95%;
        display: flex;
        height: calc(1.8em * 3);
        flex-direction: row;
        justify-content: space-around;
        padding: 40px 0;
        margin: 0 2.5%;
        line-height: 1.8;

        @media screen and (max-width: 768px) {
          width: 100%;
          display: block;
          height: auto;
          margin: 0;
        }

        .item {
          border-left: 3px solid var(--theme-color);
          padding: 0 2em 0 1em;
          text-align: left;

          @media screen and (max-width: 768px) {
            border-left: none;
          }

          .wrap {
            line-height: 0.8;
          }

          &:last-child {
            padding-right: 0;
          }
        }
      }

      .etc {
        width: 95%;
        font-size: 20px;
        text-align: right;
        margin: 0 2.5%;
        padding-bottom: 50px;

        @media screen and (max-width: 768px) {
          width: 80%;
          margin: 0 10%;
          font-size: 3rem;
        }
      }
    }
  }
}

#front-page-schedule {
  margin: 0 15%;
  text-align: center;
  font-size: 20px;
  font-weight: var(--Bold);
  padding-top: 60px;

  @media screen and (max-width: 768px) {
    font-size: 2.8rem;
    padding-top: 2rem;
    margin: 0 5%;
  }

  & img {
    &.schedule {
      width: 100%;
      margin: 30px 0 100px;

      @media screen and (max-width: 768px) {
        width: 80%;
        margin: 3rem 0;
      }
    }

    &.prize {
      width: 75%;
      margin: 0 auto 30px;

      @media screen and (max-width: 768px) {
        width: 85%;
        margin: 0 auto 3rem;
      }
    }

    &.button {
      display: inline-block;
      width: 60%;
      margin: 0 auto;

      @media screen and (max-width: 768px) {
        width: 80%;
      }
    }

    &.button_ar {
      display: inline-block;
      width: 55%;
      margin: 50px auto 30px;

      @media screen and (max-width: 768px) {
        width: 75%;
      }
    }
  }

  .wrap {
    margin-bottom: 100px;

    @media screen and (max-width: 768px) {
      margin-bottom: 5rem;
    }
  }

  .link-wrap {
    text-align: center;
  }
}

#front-page-way {
  background-color: #cae4f0;
  padding: 60px 0 40px;
  font-weight: var(--Bold);

  .inner {
    padding: 0 15%;

    @media screen and (max-width: 768px) {
      padding: 0 5%;
    }

    & h3 {
      font-size: 28px;
      text-align: center;
      margin-bottom: 20px;
      color: var(--theme-color);
      letter-spacing: 3px;

      @media screen and (max-width: 768px) {
        font-size: 4.4rem;
      }
    }

    .top {
      font-size: 24px;
      text-align: center;
      margin-bottom: 40px;

      @media screen and (max-width: 768px) {
        font-size: 3.6rem;
      }
    }

    .white {
      background-color: #fff;
      border-radius: 15px 0 0 0;
      padding: 10px 5% 50px;
      margin-bottom: 40px;

      .web {
        font-size: 24px;
        font-weight: var(--Regular);
        margin: 20px 10% 40px;

        @media screen and (max-width: 768px) {
          font-size: 3.6rem;
        }

        & aside {
          font-size: 16px;

          @media screen and (max-width: 768px) {
            font-size: 2.8rem;
          }
        }
      }

      .buttons {
        display: flex;

        @media screen and (max-width: 768px) {
          display: block;
          text-align: center;
        }

        .button {
          display: inline-block;

          & img {
            width: 95%;

            @media screen and (max-width: 768px) {
              width: 80%;
              margin-bottom: 10px;
            }
          }
        }
      }

      .post {
        font-size: 24px;
        font-weight: var(--Regular);
        margin: 40px 5% 30px;
        line-height: 1.4;

        @media screen and (max-width: 768px) {
          font-size: 3.6rem;
        }

        & aside {
          font-size: 20px;

          @media screen and (max-width: 768px) {
            font-size: 3rem;
          }
        }
      }

      .categories {
        display: flex;
        justify-content: space-between;

        @media screen and (max-width: 768px) {
          display: block;
        }

        .category {
          width: 45%;
          height: 400px;
          padding: 0 2%;
          background-color: #f0f6fa;

          @media screen and (max-width: 768px) {
            width: 95%;
            height: auto;
            padding: 0 2.5% 3rem;
          }

          & h4 {
            font-size: 24px;
            text-align: center;
            margin: 20px 0;
            color: var(--theme-color);
            letter-spacing: 3px;
          }

          .style {
            display: flex;
            font-size: 18px;
            align-items: center;
            margin-bottom: 10px;

            @media screen and (max-width: 768px) {
              font-size: 3.6rem;
            }

            .icon {
              height: 20px;
              margin-right: 10px;

              & img {
                height: 100%;
              }
            }

            .number {
              min-width: 6em;
              color: #fff;
              background-color: #88aed0;
              margin-right: 10px;
              border-radius: 20px;
              font-size: 15px;
              text-align: center;
            }

            .title {
              position: relative;

              & span {
                display: inline-block;
              }

              &::after {
                content: "";
                position: absolute;
                width: 100%;
                height: 2px;
                left: 0;
                bottom: 5px;
                background-color: #88aed0;
                border-radius: 1px;
              }

              @media screen and (max-width: 768px) {
                line-height: 1.4;

                &::after {
                  bottom: 0;
                }
              }
            }
          }
        }
      }

      .bottom {
        margin: 0 5%;
        color: var(--theme-color);
        background-color: #f0f6fa;
        font-size: 20px;
        line-height: 1.3;
        padding: 20px 5%;

        @media screen and (max-width: 768px) {
          font-size: 3rem;
        }
      }
    }
  }
}

#front-page-contact {
  margin: 0 auto 60px;
  text-align: center;
  font-size: 22px;
  font-weight: var(--Bold);
  padding-top: 60px;

  @media screen and (max-width: 768px) {
    padding-top: 0;
    font-size: 3.2rem;
  }

  .logo {
    width: 60%;
    margin: 50px 0;

    @media screen and (max-width: 768px) {
      width: 80%;
      margin: 0 0 5rem 0;
    }
  }

  .contact-wrap {
    width: fit-content;
    margin: 0 auto;
    text-align: center;

    .contact {
      display: flex;
      align-items: center;

      .icon {
        height: 30px;
        margin-right: 10px;
      }

      .mail {
        text-decoration: underline;
        text-underline-offset: 8px;
      }
    }
  }
}

#front-page-result {
  margin: 0 10%;

  .result {
    display: block;
    width: 500px;
    margin: 0 auto;

    @media screen and (max-width: 768px) {
      width: 100%;
    }
  }

  h2 {
    margin-top: 0;
  }

  .videos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px 32px;
    margin-bottom: 128px;

    @media screen and (max-width: 768px) {
      grid-template-columns: 1fr;
      margin-bottom: 64px;
    }

    .video {
      box-shadow: 4px 4px 4px #ccc;
      border-radius: 0 0 24px 24px;
      background-color: #f1f6fa;

      & iframe {
        width: 100%;
        aspect-ratio: 16 / 9;
      }

      .bottom {
        padding: 24px 64px;
        font-size: 24px;
        font-weight: var(--Bold);
        line-height: 1.6;
        margin-top: -5px;
        border-radius: 0 0 24px 24px;

        @media screen and (max-width: 768px) {
          font-size: 3.6rem;
          padding: 16px 24px;
        }

        .title {
          height: 38.4px;
          color: var(--theme-color);

          @media screen and (max-width: 768px) {
            height: auto;
          }
        }

        & span {
          display: inline-block;
        }
      }
    }
  }
}

#front-page-link {
  margin: 0 15%;

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

    @media screen and (max-width: 768px) {
      flex-wrap: wrap;
    }

    a {
      width: 100%;

      & img {
        display: inline-block;
        width: 100%;
        margin: 0 auto 30px;

        @media screen and (max-width: 768px) {
          margin: 0 auto;
        }
      }
    }
  }
}


#page-contact {
  width: 100%;
  font-size: 16px;
  font-weight: var(--Bold);
  margin: 20px 0;

  @media screen and (max-width: 768px) {
    font-size: 3.2rem;
  }

  .inner {
    width: 600px;
    margin: 0 auto;

    @media screen and (max-width: 768px) {
      width: calc(100% - 8rem);
    }

    .contact-top {
      margin-bottom: 50px;

      & h2 {
        font-size: 30px;
        font-weight: var(--Bold);
        letter-spacing: 0;
        margin-block-start: 0;
        margin-block-end: 0;
        margin-bottom: 1.5rem;

        @media screen and (max-width: 768px) {
          font-size: 4.5rem;
        }
      }
    }
  }

  .wrap {
    margin-bottom: 60px;

    .item {
      display: block;
      align-items: center;
      margin-bottom: 10px;
      font-size: 16px;

      @media screen and (max-width: 768px) {
        font-size: 3.2rem;
      }

      &.required {
        &::after {
          display: inline-block;
          width: 1em;
          height: 1em;
          content: "*";
          color: #ee4444;
          margin-left: 0.2em;

          @media screen and (max-width: 768px) {
            font-size: 2.5rem;
          }
        }
      }
    }
  }

  .form-toggle {
    display: none;

    &:checked+.label {
      &::after {
        transform: rotate(135deg);
      }

      +.build-wrap {
        max-height: 5000px;
      }
    }
  }

  .border {
    border: 1px solid var(--theme-color);
  }

  .label {
    display: block;
    position: relative;
    padding: 30px 20px;
    cursor: pointer;

    &::after {
      position: absolute;
      width: 16px;
      height: 16px;
      content: "";
      top: 40%;
      right: 5%;
      border-top: 2px solid var(--theme-color);
      border-right: 2px solid var(--theme-color);
      transform: rotate(45deg);
      transition: 0.3s;
    }
  }

  .build-wrap {
    max-height: 0;
    padding: 0 20px;
    overflow: hidden;
    transition: 0.5s;
  }

  & input[type="text"],
  & input[type="email"],
  & input[type="tel"],
  & input[type="url"],
  & textarea {
    width: 100%;
    border: 1px solid var(--theme-color);
    border-radius: 5px;
    padding: 0.8em 0.5em;
    margin-bottom: 0.5em;
    box-sizing: border-box;
  }

  & input[type="date"] {
    width: 45%;
    border: 1px solid var(--theme-color);
    border-radius: 5px;
    padding: 0.8em 0.5em;
    box-sizing: border-box;
  }

  .margin {
    margin: 0 0.5em;
  }

  .wpcf7-list-item {
    display: block;
    margin-bottom: 5px;
    margin-left: 0;
    text-indent: calc(-1em - 10px);
    padding-left: calc(1em + 10px);

    &.has-free-text {
      display: flex;
      align-items: center;

      & label {
        white-space: nowrap;
        margin-right: 1em;
      }
    }
  }

  .wpcf7-form.invalid .wpcf7-response-output {
    border: none;
    color: #ee4444;
    padding-left: 0;
    padding-right: 0;
    margin-left: 0;
    margin-right: 0;
  }

  /* .wpcf7-spinner {
    display: none;
  } */
  .sent-now {
    pointer-events: none;
    opacity: 0.3;
    cursor: auto;
  }

  .recaptcha {
    margin: 2rem auto;
    font-size: 12px;

    @media screen and (max-width: 768px) {
      font-size: 2.4rem;
    }
  }

  & a {
    color: var(--theme-color);
  }
}
