@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&family=Noto+Serif+JP:wght@600&display=swap');

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #ffffff;
  color: #111827;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
  line-height: 1.8;
}

#wrapper {
  max-width: 920px;
  margin: 72px auto;
  padding: 0;
  background: #ffffff;
  border: 1px solid #f1f2f4;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.07);
}

#main {
  padding: 44px 48px 48px;
}

h1,
h2,
.basic_formname {
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-family: "Noto Serif JP", serif;
  font-size: 30px;
  font-weight: 600;
}

h1::before,
h2::before,
.basic_formname::before {
  content: "contact";
  display: block;
  margin-bottom: 6px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #E60012;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#txt_explain {
  margin: 0 0 28px;
  color: #4b5563;
}

table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid #e5e7eb;
}

th,
td {
  border-bottom: 1px solid #e5e7eb;
  padding: 18px 16px;
  vertical-align: top;
}

th {
  width: 210px;
  background: #ffffff;
  border-left: 3px solid #F39800;
  color: #111827;
  font-weight: 700;
  text-align: left;
}

td {
  background: #ffffff;
}

input[type="text"],
input[type="email"],
textarea,
select {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d1d5db;
  background: #ffffff;
  padding: 11px 13px;
  color: #111827;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 17px;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #F39800;
  box-shadow: 0 0 0 3px rgba(243, 152, 0, 0.14);
}

textarea {
  min-height: 180px;
  resize: vertical;
}

input[type="submit"],
input[type="button"],
button {
  min-width: 160px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #F39800, #E60012);
  padding: 12px 30px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
  filter: brightness(1.04);
}

.red_txt,
.error {
  margin: 0 0 18px;
  color: #E60012;
  font-weight: 700;
}

a {
  color: #111827;
  border-bottom: 1px solid #F39800;
  text-decoration: none;
}

a:hover {
  color: #E60012;
}

.button_box {
  margin-top: 28px;
  text-align: center;
}

.back-button {
  display: inline-flex;
  min-height: 50px;
  min-width: 190px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #F39800, #E60012);
  padding: 13px 32px;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(230, 0, 18, 0.16);
}

.back-button:hover {
  color: #ffffff !important;
  filter: brightness(1.04);
}

.notice_txt {
  margin-top: 24px;
  border-left: 3px solid #F39800;
  background: #fffaf2;
  padding: 14px 16px;
  color: #4b5563;
  font-size: 16px;
  line-height: 1.9;
}

@media (max-width: 720px) {
  body {
    font-size: 17px;
  }

  #wrapper {
    margin: 24px 16px;
  }

  #main {
    padding: 28px 20px 32px;
  }

  h1,
  h2,
  .basic_formname {
    font-size: 26px;
  }

  table,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  th {
    border-left: 0;
    border-top: 3px solid #F39800;
    padding-bottom: 8px;
  }

  td {
    padding-top: 10px;
  }

  .back-button {
    width: 100%;
    min-height: 56px;
    font-size: 18px;
  }
}