@media screen and (max-width: 1400px) {
  .contact-header {

    .header-logo {
      width: 40vw;
    }
  }

  .form-container {
    & .form-header {
      P {
        font-size: 1.5vw !important;
      }
    }
  }

  .font-span {
    font-size: 2.25vw !important;
  }
  .font-small {
    font-size: 1.2vw;
  }

}

@media screen and (max-width: 1110px) {
  .investment-text-sub {
    font-size: 2.5vw;
  }

  .top-container {
    & .top-container-text-flex {
      & .top-container-text-flex-box {
        p:nth-child(1) {
          font-size: 3.5vw;
        }

        p:nth-child(2) {
          font-size: .9vw;
        }
      }
    }
  }
}

@media screen and (max-width: 1024px) {
  footer {
    max-height: 100px;
  }

  .Procedure-bg {
    .Procedure-container {
      .step {
        min-height: 200px;
      }
    }
  }

  .contact-fixed {
    .contact-fixed-box {
      width: 30%;
    }
  }

  .investment-text-sub {
    max-width: none;
    font-size: 5.5vw !important;
  }
}

@media screen and (max-width: 820px) {
  .investment-text-sub {
    font-size: 2.5vw;
  }

  .Procedure-bg {
    .Procedure-container {
      .step {
        min-height: 150px;
      }
    }
  }

  .contact-fixed {
    .contact-fixed-box {
      width: 40%;
    }
  }
}

/* 1024px以下に適用されるCSS（タブレット用） */
@media screen and (max-width: 768px) {

  .catch-section {
    margin-left: 0;
    padding-top: 30px;
    padding-bottom: 19px;
    display: flex;
    justify-content: center;
  }

  .form-container {
    & .form-header {
      P {
        font-size: 3vw !important;
      }
    }
  }

  .font-span {
    font-size: 4.5vw !important;
  }

  /* .vertical-text{
    font-size: 2vw;
  } */
  .heading-common {
    img {
      width: 100% !important;
    }
  }

  .arrow {
    font-size: 3vw !important;
  }

  .font-common-color {
    color: #132464;
  }

  .font-family-common {
    font-family: "Shippori Mincho B1", serif;
    font-weight: bold;
  }

  .font-small {
    /* 12pt */
    font-size: 2.2vw !important;
  }

  .font-common {
    /* 16pt */
    font-size: 2.5vw !important;
  }

  .font-sub-important {
    /* 20pt */
    font-size: 3vw;
  }

  .font-important {
    /* 24pt */
    font-size: 4.4vw;
  }

  .font-sub-heading {
    /* 29pt */
    font-size: 3.9vw;
  }

  .font-heading {
    /* 31pt */
    font-size: 4vw;
  }

  #page-top {
    background-color: #fff;
    border: #fff 1px solid;
    height: 50px;
    display: flex;
    align-items: center;

    img {
      width: 30vw;
    }
  }

  .page-top {
    bottom: 1vw;
  }

  .contact-fixed {
    .contact-fixed-box {
      width: 60%;
    }
  }

  /* top */
  .top-container {
    display: none;
  }

  .inner-circle {
    font-size: 3vw !important;
  }

  .top-font-text {
    font-size: 3.75vw;
  }

  .top-container-sp {
    display: block;
    width: 100%;
    margin: 0 auto;
    overflow: hidden;
    margin-top: 90px;

    .top-container-sp-img {
      width: 100%;
      height: 95vw;
      object-fit: cover;
    }

    .top-container-text-box {
      width: 95%;
      margin: 0 auto;

      .top-text-p:nth-child(2) {
        margin-bottom: 1vw;
      }

      p:last-child {
        margin-top: 10px;
      }


      .headline {
        p {
          font-size: 13vw;

          ruby {
            font-size: 80px;

            rt {
              font-size: 20px;
            }
          }


          span {
            font-size: 19vw;
          }
        }
      }
    }

    .top-container-text-box p:last-of-type {
      margin-top: 10px;
    }

    .top-container-text-flex {
      display: flex;
      justify-content: center;
      margin: 15px 0 25px 0;

      img {
        width: 15vw;
        align-items: center;
        margin-right: 1vw;
      }

      .top-container-text-flex-box {
        align-content: center;
        margin-left: 20px;

        p {
          margin: 0 !important;
        }

        p:nth-child(1) {
          font-size: 6vw;
          font-weight: 900;
        }

        p:nth-child(2) {
          font-size: 2vw;
          font-weight: 600;
        }
      }
    }

    /* top-border */
    .top-container-yellow-box {
      bottom: 0;
      width: 100vw;
      background: linear-gradient(to bottom, #d4af37, #caa536 84%, #a88332 89%, #caa536 84%, #caa536 85%, #a88332 95%, #caa536 95%);
      color: white;
      clip-path: polygon(50% 0, 55% 15%, 100% 15%, 100% 100%, 0 99%, 0% 60%, 0 0);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
      padding: 5vw 0;

      .caption {
        padding: 2vw 5vw;
        opacity: 0.9;
        display: flex;
        justify-content: center;
      }

      .yellow-yield {
        display: flex;
        /* padding-left: 5vw; */
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 1vw;
        justify-content: center;

        /* font-size: 1.6em; */
        .yellow-yield-left p,
        .yellow-yield-right p {
          margin: 0;
          /* font-size: 1.2em; */
        }

        .yellow-yield-center {
          display: flex;
          flex-direction: column;
          align-items: center;
        }

        .yellow-yield-center .top-formula {
          border-bottom: 2px solid white;
          padding-bottom: 4px;
          margin-bottom: 4px;
        }

        .yellow-yield-center .bottom-formula {
          /* 中央にくるように */
          text-align: center;
        }
      }
    }
  }

  .four-img-container {
    .four-img-box {
      flex-wrap: wrap;

      img {
        width: 50vw;
      }
    }
  }

  /* annex */
  .features-bg {
    .features-container {
      .annex-img {
        width: 76vw;
        padding-top: 91px;
        padding-bottom: 76px;
      }

      .font-sub-heading {
        flex-wrap: wrap;
      }

      .features-border {
        border-bottom: 1px solid #fff;
        margin: 50px 0;
      }

      .text-align {
        text-align: left;
      }

      .features-text {
        margin-top: 55px;
        margin-bottom: 5px;
      }

      .features-yellow-text {
        margin-bottom: 70px;
      }
    }



    /* card 建物先行型 */
    .features-card-container {
      width: 92vw;
      margin: 0 auto;
      margin-bottom: 50px;

      /* 本文セクション */
      .features-card {
        display: block;

        img {
          width: 100%;
          margin: 0;
        }

        .fixed-asset-tax {
          width: 100%;
        }

        .features-card-text {
          margin-top: 10px;
          width: 100%;

          h2 {
            margin-top: 45px;
            margin-bottom: 40px;
          }
        }
      }

      /* card2 */
      .features-card2 {
        display: block;
        padding: 25px;

        .features-card-text {
          width: 100%;
          display: flex;

          flex-direction: column-reverse;

          .features-card2-img-box {
            display: block;

            img {
              width: 100%;
              margin: 0;
            }

            img:nth-child(2) {
              margin: 19px 0;
            }
          }

          h3 {
            margin-top: 0;
            margin-bottom: 20px;
            font-size: 18px;
          }
        }
      }
    }
  }

  .features-bg {
    & .features-card-container {
      & .features-card {
        padding: 25px;

        & .features-card-text {

          h3 {
            font-weight: bold;
            font-size: 18px;
          }
        }
      }
    }
  }

  .investment-container {
    width: 90%;
    margin: 6.5vw auto;
    font-weight: 900;

    .investment-heading {
      font-size: 36px;
      font-weight: 900;
      font-family: "Shippori Mincho B1", serif;
      /* margin-top: 9.5vw; */

      img {
        width: 80%;
        margin: 0 auto;
      }
    }

    .investment-flex {
      display: block;

      .img-human {
        margin-top: 8.5vw;
        align-content: center;

        img {
          width: 100%;
          max-width: none;
        }
      }

      .investment-left {
        width: 100%;
        max-width: none;

        .font-common {
          font-size: 2.5vw;
          font-weight: 600;
        }

        .font-small {
          font-size: 4.2vw;
        }

        .font-sub-important {
          font-size: 26px;
          font-weight: 900;
        }

        table {
          tr {
            td {
              padding: 3px 5vw;
              font-size: 25px;
            }
          }
        }

        .img-arrow {
          img {
            width: 5vw;
          }
        }

        p {
          color: #9A8852;
        }
      }
    }
  }

  .tablefont {
    img {
      width: 100%;
      max-width: none;
    }
  }

  /* case */
  .case-study-container {
    width: 92vw;

    /* .case-study-h2 {
      margin-top: 77px;
      margin-bottom: 29px;
    } */

    .font-sub-heading {
      margin-bottom: 49px;
    }
  }

  /* 見出しのエリア */
  .case-study-container2 {
    width: 100%;

    .case-study-card-flexbox {
      padding: 1vw;
      display: block;

      .case-study-card-box {
        width: 95%;
        margin: 0 auto;
        padding-bottom: 15px;
        margin-bottom: 45px;
        max-width: none;

        .case-study-card-header {
          margin: 0;
        }

        .case-study-card-text-content {
          padding: 15px 0;

          .case-study-card-textflex {
            display: flex;
            padding: 0.5vw 5vw;

            p {
              margin: 0;
              /* font-size: 19px; */
            }

            p:nth-child(1) {
              width: 35%;
            }
          }
        }

        .case-study-yield {
          width: 85%;
          margin: 0 auto;
          text-align: left;

          p {
            font-size: 18px;
          }
        }
      }
    }
  }

  .top-container {
    height: 65vh;
  }

  /* library */
  .library-container {
    width: 80vw;
    margin: 0 auto;
    padding: 5vw 3vw;

    .library-linkflex {
      /* text-align: center; */
      flex-direction: column;
      align-items: stretch;
      gap: 20px;

      /* a:nth-child(1) {
        margin-top: 2vw;
      }

      a:nth-child(2) {
        margin: 2vw 0;
      } */
    }

    .company-text-flex {
      display: block;

      .company-text:nth-child(1) {
        margin-bottom: 2vw;
      }

      .company-center {
        display: flex;
        justify-content: center;
      }
    }

    .library-img,
    .logo {
      display: flex;
      margin-top: 30px;
    }
  }



  /* contact */
  .top-contact-container,
  .top-contact-container2 {

    .text,
    .text2 {
      display: block;
      text-align: center;

      .mail-text {
        display: inline-block;
        font-size: 20px;
        font-weight: 600;

        img {
          height: 15px;
        }
      }

      .blue-text {
        margin: 1vw 0;
        display: block;
        font-size: 40px;

        .none {
          display: none;
        }
      }
    }
  }

  .a,
  .contact-people-img {
    display: none;
  }

  .contact-sp-img-container {
    display: flex;
    gap: 5vw;

    padding-top: 3vw;

    .contact-sp-img {
      width: 30vw;
    }

    .contact-sp-img2 {
      place-self: center;
      width: 44vw;
    }

    .contact-sp-img,
    .contact-sp-img2 {
      display: block;
      margin-top: -45px;

    }
  }

  .top-contact-container2 {
    height: auto;

    .text2 {
      margin-top: -1vw;

      .contact-men-height {
        height: auto;
      }

      .contact-sp-img {
        height: 25vw;
        object-fit: contain;
      }
    }
  }

  .form-buttons {
    img {
      width: 4vw;
    }
  }

  .form-caveat {
    font-size: 2.5vw !important;
  }

  .form-container {

    .form {
      .sp-form-row {
        display: block;
        gap: 3vw;


        .break {
          flex-basis: 100%;
          /* ここで改行 */
          height: 0;
        }

        .font-small {
          margin-top: 1vw;
        }
      }

      .form-row {
        display: block;
        align-items: center;

        .form-row-box {
          display: flex;
          justify-content: center;
          margin-top: 2vw;
          font-size: 17px;

          input[type="text"] {
            height: 30px;
            /* width: 85%; */
            font-size: 16px;
          }
        }

        .form-detail {
          text-align: center;
          margin-top: 2vw;
        }
      }

      .sp-form-flex {
        display: flex;
        gap: 20vw;
        justify-content: center;
        /* margin-top: 2vw; */

        .repayment-period {
          margin-right: 7vw;
        }

        .form-row-box {
          width: 100%;
          display: flex;
          justify-content: center;
          align-items: center;
          font-size: 17px;

          input[type="text"] {
            height: 30px;
            width: 85%;
            font-size: 16px;
          }
        }
      }

      .form-buttons {
        padding: 0;
        gap: 0;

        button {
          padding: 10px 20px;
          display: flex;
          align-items: center;
          justify-content: center;
        }
      }
    }

    .result2 {
      .result-flex {
        width: 100%;

        p,
        a {
          font-size: 12px;
        }
      }
    }
  }

  .Procedure-bg {
    .Procedure-container {
      width: 90%;

      h1 {
        font-size: 3.5vw;
      }

      .step-group {
        width: auto;
      }
    }
  }

  .footer-heading {
    img {
      width: 100% !important;
      margin: 0 auto;
    }
  }
}

/* 480pxまでに適用されるCSS（スマホ用） */
@media screen and (max-width: 430px) {
  .br-sp {
    display: block;
  }

  #page-top {
    overflow-x: hidden;
    height: 70px;

    img {
      width: 70%;
    }
  }

  .top-container-sp {
    margin-top: 90px;
  }

  .font-small {
    /* 12pt */
    font-size: 16px !important;
  }

  .font-common {
    /* 16pt */
    font-size: 14px !important;
    /* font-weight: 900; */
    padding: 0;
  }

  .font-family-common {
    font-family: "Shippori Mincho B1", serif;
    font-weight: 900;
  }

  .font-sub-important {
    /* 20pt */
    font-size: 15px;
  }


  .font-sub-heading {
    /* 29pt */
    font-size: 23px !important;
  }

  .font-heading {
    /* 31pt */
    font-size: 25px;
  }

  .font-text {
    font-size: 14px;
  }

  .font-span {
    font-size: 25px;
  }

  .font-common-big {
    font-size: 17px;
    font-weight: 900;
  }

  .fs-25rem {
    font-size: 23px;
  }

  .page-top {
    position: fixed;
    bottom: 3vw;
    right: -3vw;
    z-index: 9999;

    img {
      width: 50%;
    }
  }

  .investment-table {
    width: 100%;

    img {
      width: 100%;
      margin: 0 auto;
    }
  }

  .contact-fixed .fixed {
    height: 80px;
    overflow-x: hidden;

    .contact-fixed-box {
      height: 50px;
    }

    .contact-fixed-flex {
      .outer-circle {
        width: 40px;
        height: 40px;
      }

      .inner-circle {
        width: 35px;
        height: 35px;
      }
    }
  }

  .top-container-sp {
    .top-container-text-box {
      .headline {
        margin-top: 15px;
        margin-bottom: 20px;

        h1 {
          font-size: 54px;
          font-weight: 900;
          text-decoration: underline;
          text-decoration-thickness: 2px;
          text-decoration-color: #002060;
          text-underline-offset: 5px;

          p {
            margin-top: 0;
          }



          span {
            font-size: 80px;
          }

          ruby {
            font-size: 40px;

            rt {
              font-size: 15px;
            }
          }

          span {
            font-size: 65px;
          }
        }
      }

      p:first-child {
        margin-top: 10px;
      }
    }
  }

  /* annex */
  .features-bg {
    .features-container {
      .annex-img {
        width: 76vw;
        padding-top: 50px;
        padding-bottom: 40px;
        margin: 0 auto;

        .font-sub-heading {
          font-size: 25px;
        }
      }

      .features-border {
        border-bottom: 1px solid #fff;
        margin: 25px 0;
      }

      .features-text {
        /* width: 35vw; */
        margin-top: 30px;
        margin-bottom: 15px;
      }

      .features-yellow-text {
        padding-top: 0;
        margin-bottom: 0;
        padding-bottom: 30px;
        font-size: 20px;
        font-weight: 700;
      }
    }

    .features-card-container {
      width: 92vw;
      margin: 0 auto;
      margin-bottom: 50px;

      h2 {
        font-size: 23.4px;
      }

      /* 本文セクション */
      .features-card {
        display: block;
        padding: 25px;

        img {
          width: 100%;
          margin: 0;
        }

        .fixed-asset-tax {
          width: 100%;
        }

        .features-card-text {
          width: 100%;

          p {
            line-height: 1.5
          }

          h3 {
            margin-bottom: 10px;
          }
        }
      }

      /* card2 */
      .features-card2 {
        display: block;
        padding: 25px 15px;

        .features-card-text {
          width: 100%;
          display: flex;
          flex-direction: column-reverse;

          .features-card2-img-box {
            width: 100%;
            display: block;

            img {
              width: 100%;
              margin: 0;
            }

            img:nth-child(2) {
              margin: 19px 0;
            }
          }

          h2 {
            margin-top: 25px;
            margin-bottom: 20px;
          }
        }
      }
    }
  }

  .top-contact-container {
    .text {
      .contact-sp-img-container {
        margin-top: 21px;
        justify-content: center;

        .contact-sp-img {
          width: 22vw
        }
      }
    }
  }

  .features-bg {
    .features-card-container {
      .br-sp {
        display: block;
      }

      .features-card-gradation {
        padding: 3vw;
        padding-bottom: 30px !important;
        /* height: 35px; */
        align-content: center;
        line-height: 1.25;
      }
    }
  }

  .investment-container {
    .investment-logo {
      width: 90%;
      text-align: unset;
      margin-top: -75px;
    }
  }

  /* case */
  .case-study-container {
    width: 100%;
    margin: 0 auto;
    border-top: 2px solid #002060;

    /* .case-study-h2 {
      margin-top: 30px;
      margin-bottom: 25px;
    } */

    .case-study-text {
      text-align: center;
      margin: 30px 0;

      h3 {
        font-size: 25px;
      }

      img {
        width: 40vw;
        margin-bottom: 1vw;
      }

      .case-study-flexbox {
        display: flex;
        justify-content: space-between;
      }

      h3 {
        margin-bottom: 30px;
      }
    }
  }

  .form-container {
    margin: 25px auto;
    width: 90%;
    box-shadow: none;

    .form {
      .form-row {
        padding: 3vw;
      }
    }

    /* border: none; */
    .form-header {
      p {
        font-size: 17px;
      }
    }

    .result2 {
      .result-flex {
        width: 240px;
        padding: 10px 0;
      }
    }

    .radio-border {
      label {
        border: none;
      }
    }

    .radio-group {
      .radio-common {
        flex-direction: column;
        gap: 10px;
      }
    }

    .form {
      .form-row {
        label {
          font-size: 15px;
        }
      }
    }

    .result2 {
      .result-flex {
        p {
          font-size: 10px;
        }
      }
    }
  }

  footer {
    .copy-right {
      font-size: 8px;
    }
  }

  .contact-sp-img-container {
    padding-top: 10vw;
  }


  input,
  textarea,
  select {
    font-size: 16px !important;
  }
}

@media screen and (max-width: 390px) {
  .top-container-sp {
    .top-container-text-box {
      .headline {
        p {
          font-size: 40px;

          ruby {
            font-size: 40px;

            rt {
              font-size: 12px;
            }
          }

          span {
            font-size: 55px;
          }
        }
      }
    }
  }
}