/* 共通定義 */
.contact_ul {
  margin: 0;
  list-style: none;
  padding-left: 0;
  pointer-events: none;

  li {
    position: relative;
    padding-left: 20px;
    color: #000;
    font-family: "Sawarabi Gothic";
    font-size: 30px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
  }

  li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background-color: #1860cc;
  }
}

main {
  .contact_direct {
    margin: 100px auto 0;
    width: 1000px;
    display: flex;
    align-items: center;
    gap: 150px;

    .radio {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 75px;

      input {
        margin: 5px;
        width: 20px;
        height: 20px;
      }

      label {
        color: #000;
        font-family: "Sawarabi Gothic";
        font-size: 30px;
        font-style: normal;
        font-weight: 400;
        line-height: 100%;
        cursor: pointer;
      }
    }
  }

  .contact_contents {
    margin: 75px auto 0;
    width: 1000px;

    form {
      margin-top: 50px;
      display: flex;
      flex-direction: column;
      gap: 40px;

      .set {
        display: flex;
        gap: 30px;

        .content {
          width: 100%;
          position: relative;

          input {
            width: calc(100% - 44px);
            font-size: 16px;
            letter-spacing: 0.1em;
            padding: 25px 20px;
            border-radius: 5px;
            border: 2px solid #999;
            outline: none;
            transition: 0.5s;
            font-family: "Sawarabi Gothic";
          }

          select {
            width: 100%;
            font-size: 16px;
            letter-spacing: 0.1em;
            padding: 25px 20px;
            border-radius: 5px;
            border: 2px solid #999;
            outline: none;
            transition: 0.5s;
            font-family: "Sawarabi Gothic";
            appearance: none;
          }

          textarea {
            width: calc(100% - 44px);
            height: 150px;
            font-size: 16px;
            letter-spacing: 0.1em;
            padding: 25px 20px;
            border: 2px solid #999;
            border-radius: 5px;
            outline: none;
            font-family: "Sawarabi Gothic";
            resize: none;
          }

          .placeholder {
            position: absolute;
            left: 0;
            padding: 25px 20px;
            color: #999;
            pointer-events: none;
            transition: 0.5s;
          }

          input:valid ~ .placeholder,
          input:focus ~ .placeholder,
          select:valid ~ .placeholder,
          select:focus ~ .placeholder,
          textarea:valid ~ .placeholder,
          textarea:focus ~ .placeholder {
            font-weight: bold;
            color: #1860cc;
            transform: translateX(10px) translateY(-7px);
            font-size: 0.875em;
            padding: 0 10px;
            background: #fff;
            letter-spacing: 0.1em;
          }

          input:valid,
          input:focus,
          textarea:valid,
          textarea:focus {
            border: 2px solid #1860cc;
          }
        }
      }

      input[type="submit"] {
        margin: auto;
        width: 200px;
        padding: 10px 0;
        border-radius: 30px;
        border: none;
        outline: none;
        background-color: #1860cc;
        cursor: pointer;
        color: #fff;
        font-family: "Sawarabi Gothic";
        font-size: 20px;
        font-style: normal;
        font-weight: 400;
        line-height: 120%;
        letter-spacing: 0.03em;
      }
    }
  }
}

@media (width <= 1300px) {
  main {
    .contact_direct {
      width: 700px;
      gap: 50px;

      .radio {
        gap: 30px;
      }
    }

    .contact_contents {
      width: 700px;
    }
  }
}

@media (width <= 768px) {
  /* 共通定義 */
  .contact_ul {
    li {
      font-size: 18px;
    }
  }

  main {
    .contact_direct {
      width: auto;
      padding: 0 30px;
      flex-direction: column;

      .radio {
        gap: 30px;

        input {
          margin: 5px;
          width: 10px;
          height: 10px;
        }

        label {
          font-size: 16px;
        }
      }
    }

    .contact_contents {
      width: auto;
      max-width: 500px;
      padding: 0 30px;
      display: flex;
      flex-direction: column;
      align-items: center;

      form {
        width: 100%;
        margin-top: 50px;
        gap: 30px;

        .set {
          display: flex;
          flex-direction: column;
          gap: 30px;

          .content {
            width: 100%;
            position: relative;

            input {
              width: calc(100% - 34px);
              padding: 20px 15px;
            }

            select {
              padding: 20px 15px;
            }

            textarea {
              width: calc(100% - 34px);
              padding: 20px 15px;
            }

            .placeholder {
              padding: 20px 15px;
            }

            input:valid ~ .placeholder,
            input:focus ~ .placeholder,
            select:valid ~ .placeholder,
            select:focus ~ .placeholder,
            textarea:valid ~ .placeholder,
            textarea:focus ~ .placeholder {
              font-weight: bold;
              color: #1860cc;
              transform: translateX(10px) translateY(-7px);
              font-size: 0.875em;
              padding: 0 10px;
              background: #fff;
              letter-spacing: 0.1em;
            }

            input:valid,
            input:focus,
            textarea:valid,
            textarea:focus {
              border: 2px solid #1860cc;
            }
          }
        }

        input[type="submit"] {
          margin: auto;
          width: 200px;
          padding: 10px 0;
          border-radius: 30px;
          border: none;
          outline: none;
          background-color: #1860cc;
          cursor: pointer;
          color: #fff;
          font-family: "Sawarabi Gothic";
          font-size: 20px;
          font-style: normal;
          font-weight: 400;
          line-height: 120%;
          letter-spacing: 0.03em;
        }
      }
    }
  }
}
