@charset "UTF-8";

/*--------------------------------------------
  intro
---------------------------------------------*/
.intro {
  padding: 0 0 5% 0;
  @media (width <= 767px) {
    padding: 0;
  }
}

/*--------------------------------------------
  フォーム
---------------------------------------------*/
.form_area {
  padding: 8% 0 15%;
  background: #F2F2F2;

  @media (width <= 767px) {
    padding: 15% 0 30%;
    margin-top: 12%;
  }

  .form_ttl {
    font-size: 3.4rem;
    font-weight: bold;
    margin-bottom: 5%;

    @media (width <= 767px) {
      font-size: 2.8rem;
      margin-bottom: 10%;
    }
  }

  form {
    font-weight: bold;

    .bg_white {
      background-color: #FFF;
      padding: 3% 7% 6.5%;

      @media (width <= 767px) {
        padding: 0 5% 10%;
      }
    }

    table.form_item {
      width: 100% !important;
      border-collapse: collapse;

      th ,td {
        white-space: normal;
        word-break: break-word;
        vertical-align: middle;
        padding: 32px 0 40px;

        @media (width <= 1023px) {
          padding: 0 0 5% 0;
        }
      }

      th {
        text-align: left;
        vertical-align: top;
        min-width: 310px;
        padding-right: 30px;
        font-size: 2rem;
        color: #0F5CA8;
        font-weight: bold;
        line-height: 2;
        white-space: nowrap;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;

        @media (1024px <= width <= 1070px) {
          width: 85%;
          min-width: 255px;
        }
        @media (width <= 1023px) {
          padding: 5% 0 3%;
          display: block;
          width: 100%;
          min-width: auto;
        }

        .red {
          font-size: 0;
        }
        .red::after {
          content: " 必須";
          padding: 6px 0 7px;
          color: #FFF;
          font-size: 1.6rem;
          background-color: #0F5CA8;
          width: 80px;
          line-height: 1;
          display: block;
          text-align: center;

          @media (width <= 1023px) {
            display: inline-block;
            margin-left: 1rem;
          }
        }
      }

      td {
        font-weight: bold;
        font-size: 0;
        width: 100%;

        @media (width <= 1023px) {
          display: block;
        }

        input,
        select,
        textarea {
          width: 100%;
          max-width: 735px;
          font-size: 1.6rem;
          font-weight: bold;
          font-family: "Noto Sans JP", "Roboto", Arial, "Yu Gothic", YuGothic, Verdana, Meiryo, sans-serif;
          border: 2px solid #0F5CA8;
          border-radius: 0;
          padding: 25px 28px;
          box-sizing: border-box;

          @media (width <= 767px) {
            padding: 12px;
          }
        }

        input {
          font-size: 1.6rem;
        }
        select {
          padding: 29px 28px;
          width: 345px !important;
          -webkit-appearance: none;
          appearance: none;
          cursor: pointer;
          background-color: #F2F2F2;

          @media (width <= 767px) {
            padding: 18px 12px; 
            width: 100% !important;
          }
        }

        textarea {
          height: 260px;
          resize: vertical;
          line-height: 2;
          padding: 29px 28px;

          @media (width <= 767px) {
            padding: 10px 15px;
          }
        }

        ::placeholder {
          color: #989898;
        }

        /* サイズ調整 */
        input[style*="width:80px"],
        input[style*="width:48px"] {
          width: 50% !important;
          max-width: 230px !important;
          display: inline-block;

          @media (width <= 1024px) {
            width: 47.5% !important;
          }
        }
        input[name="item_name_1"],
        input[name="item_kana_1"],
        input[name="item_poscode_1"] {
            &:first-of-type {
              margin-right: 2rem;

            @media (width <= 767px) {
              margin-right: 1rem;
            }
          }
        }
      }

      tr + tr {
        border-top: 3px solid #0F5CA8;
      }

      td:has(> select) {
        position: relative;
        width: 50%;

        @media (width <= 767px) { 
          width: 100%;
        }
      }

      td:has(> select)::after {
        content: "";
        position: absolute;
        top: 47%;
        bottom: 0;
        left: 308px;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: right 0.3s;
        width: 10px;
        height: 10px;
        border-right: solid 2px #0F5CA8;
        border-bottom: solid 2px #0F5CA8;
        transform: translateY(-50%) rotate(45deg); 
        cursor: pointer;

        @media (768px <= width <= 1023px) {
          top: 35%;
        }
        @media (width <= 767px) {
          top: 2.5rem;
          left: auto;
          right: 8%;
        }
      }
    }

    .address_text,
    .email_text {
      display: block;
      line-height: 1.75;
      font-size: 1.6rem;
    }

    .address_text {
      margin-top: 12px;
    }
    .email_text {
      margin-bottom: 12px;
    }
  }

  .red_txt li {
    color: #FF0000;
    line-height: 1.75;

    @media (width <= 767px) {
      font-size: 1.4rem;
    }
  }
}

/* ボタン */
.btn_area {
  margin-top: 60px;
  display: flex;
  justify-content: space-around;
  align-items: center;

  @media (width <= 767px) {
    margin-top: 16%;
    display: block;
  }
}

.form_btn {
  position: relative;
  width: 100%;
  max-width: 500px;

  @media (width <= 1024px) {
    margin: 0 auto;
  }

  &::after {
    content: "";
    position: absolute;
    top: 50%;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: right 0.3s;
    width: 10px;
    height: 10px;

    @media (width <= 767px) {
      width: 13px;
      height: 13px;
    }
  }
  
  .submit {
    padding: 23px 0 26px;
    text-decoration: none;
    line-height: 1.8;
    font-weight: bold;
    font-size: 1.8rem;
    width: 100%;
    cursor: pointer;
    border: none;

    @media (width <= 767px) {
      padding: 17px 0 20px;
    }

    &:hover {
      opacity: 0.8;
    }
  }

  /* 青色ボタン */
  &.confirm_btn {
    .submit {
      background-color: #0F5CA8;
      color: #FFF;
    }
    &::after {
      right: 2rem;
      transform: translateY(-50%) rotate(45deg);
      border-top: solid 2px #FFF;
      border-right: solid 2px #FFF;
    }
  }
  /* 白色ボタン */
  &.back_btn {
    .submit {
      background-color: #FFF;
      color: #222222;
    }
    &::after {
      left: 2rem;
      transform: translateY(-50%) rotate(-135deg);
      border-top: solid 2px #0F5CA8;
      border-right: solid 2px #0F5CA8;
    }
  }
}

/*--------------------------------------------
  確認画面
---------------------------------------------*/
.confirm {
  form {
    table.form_item {
      width: 100%;
      border-collapse: collapse;

      tr {
        border-bottom: 3px solid #0F5CA8;
      }

      th,
      td {
        vertical-align: middle;
        padding: 32px 0;
        word-break: break-word;

        @media (width <= 1023px) {
          padding: 5% 0;
        }
      }

      th {
        text-align: left;
        color: #0F5CA8;
        font-weight: bold;
        min-width: 240px;
        font-size: 1.8rem;

        @media (width <= 1023px) {
          display: block;
          width: 100%;
          min-width: auto;
          padding-bottom: 0.5rem;
        }
      }

      td {
        font-size: 1.6rem;
        line-height: 1.75;

        @media (width <= 1023px) {
          display: block;
          width: 100%;
          padding-top: 0;
        }

        p {
          font-size: 1.8rem;
          line-height: 1.75;

          &:not(:first-of-type) {
            margin-left: 1rem;
          }
        }

        .confirm_address {
          display: block;
          width: 100%;
          margin-left: 0;

          &:nth-of-type(2) {
            font-size: 1.6rem;
          }
        }
      }
    }

    .btn_area {
      margin-top: 60px;
      display: flex;
      justify-content: center;
      column-gap: 5%;

      @media (width <= 767px) {
        margin-top: 16%;
        display: block;
      }

      .confirm_btn {
        @media (width <= 767px) {
          margin-top: 5%;
        }
      }
    }
  }
}


/*--------------------------------------------
  完了画面
---------------------------------------------*/
.complete {
  padding-bottom: 16%;

  @media (width <= 767px) {
    padding-bottom: 30%;
  }

  .intro {
    padding: 0;

    h2 {
      margin: 0 0 2%;
      @media (width <= 767px) {
        margin: 0 0 5%;
      }
    }
  }

  .btn.type_01 {
    width: 100%;
    max-width: 500px;
    margin: 69px  auto 0;

    @media (width <= 767px) {
      margin: 12% auto 0;
    }

    &:hover {
      opacity: 0.8;
      color: #FFF;
    }

    &::after {
      border-top: solid 2px #FFF;
      border-right: solid 2px #FFF;
    }
    &::before {
      display: none;
    }
    
  }
}