@charset "utf-8";

/* 背景の色 */

body{
    background-color: #f4f4f4;
}

.contact_area{
    background-color: #f4f4f4;
    padding-top: 10px;
    padding-bottom: 10px;
}

  /* ノイズ */
  .noise {
    width: 100%;
    height: 100%;
    background-image: url('../img/noise.jpg'); 
    background-repeat: no-repeat;
    background-size: cover;
    animation: noiseFlicker 0.08s steps(1, end) infinite;
  }
  
  @keyframes noiseFlicker {
    0%   { background-position: 0 0; }
    25%  { background-position: 1px 1px; }
    50%  { background-position: -1px -1px; }
    75%  { background-position: 1px -1px; }
    100% { background-position: 0 0; }
  } 
    



/* 線 */
hr {
    border-top: 5px solid black;
}

.contact_page{
    width: 700px;
    margin: 50px auto;
    border: black solid 2px;
    background-color: #f4f4f4;
}

.contact{
    display: grid;
    place-items: center;
    width: 600px;
    height: 150px;
    background-image: url(../img/contact.jpg);
    background-repeat: no-repeat;
    background-size: cover;
    margin:  50px auto 10px;
}

h1{
    font-size: 40px;
    font-weight: bolder;
}

h3{
    font-size: 22px;
}

.contact_text{
    margin: 0 auto; 
    text-align: left;
    max-width: 600px;
}

.contact_text p{
    font-size: 14px;
    line-height: 2.0;
}

.contact_text p a{
    color: red;
    font-weight: bolder;
}

.contact_text p a:hover {
    color: gray;
}


/* お問い合わせフォーム */
form {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
}

label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

.required::after {
    content: "（必須）";
    color: red;
    font-weight: normal;
    margin-left: 5px;
}

.radio-group {
    margin-top: 8px;
}

.radio-option {
    margin-right: 15px;
    display: inline-block;
}

input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    height: 120px;
}

input[type="submit"] {
    display: block;
    margin: 20px auto;
    background-color: black;
    color: #fff;
    border: none;
    padding: 12px;
    width: 100px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: red;
}


@media screen and (max-width: 768px) {
    .contact_page{
        width: 80%;
        margin: 50px auto;
    }


    .contact{
        width: 80%;
        height: 100px;
    }

    h1{
        font-size: 30px;
    }

    h3{
        font-size: 18px;
    }

    .contact_text{
        width: 80%;
    }
  
  }
  
