@import url(common.css);
main h2 {
  font-size: 40px;
  background-image: url(../img/since1963.svg);
  background-repeat: no-repeat;
  background-position: bottom;
  padding-bottom: 57px;
  padding-top: 67px;
  margin-bottom: 67px;
}

main form {
    max-width: 1110px;
}

/* お問い合わせページのフレックス設定 */
.contactflex {
    border: 2px solid #4a4a4a;
  padding-top: 40px;
  padding-bottom: 10px;
  display: flex;
  padding-left: 95px;
  padding-right: 95px;
  gap: 30px;
}

.left {
  flex: 1;
  text-align: left;
}
.left legend {
  font-weight: bold;
  padding-bottom: 15px;
}

.right {
  flex: 1;
  text-align: left;
}
.right legend {
  font-weight: bold;
  padding-bottom: 15px;
}

main input[type="text"],
main input[type="email"],
main input[type="tel"],
main textarea {
  width: 100%;
  padding: 8px;
  outline: none;
  margin-bottom: 30px;
}

main textarea {
  height: 270px;
  line-height: 1.5;
  resize: vertical;
}

p.hissukoumoku {
  text-align: right;
  padding-top: 10px;
  padding-bottom: 20px;
}

p button {
  padding-bottom: 16.5px;
  padding-top: 16.5px;
  padding-left: 62px;
  padding-right: 62px;
  font-size: 18px;
  border: none;
  background-color: #6b5311;
  color: #fff;
  margin-bottom: 67px;
  cursor: pointer;
}

main section {
  background-color: #6b5311;
  color: #fff;
  max-width: 730px;
  margin-left: auto;
  margin-right: auto;
  padding: 13px 30px;
  margin-bottom: 67px;
}

main h3 {
  padding-bottom: 6px;
}

main section p {
    text-align: left;
}

/* タブレットレスポンシブ */
@media (max-width: 991px) {
.contactflex{
    padding-left: 75px;
    padding-right: 75px;
}
}
/* スマホ横レスポンシブ */
@media (max-width: 767px) {
main form {
    main form {
    width: unset;
}
}
@media (max-width: 767px){
    .contactflex{
        display: block;
        padding-left: 30px;
        padding-right: 30px;
    }
}