@charset "utf-8";
@import url(common.css);

body {
  font-family: "Zen Maru Gothic", sans-serif;
  background-color: #f9f9f9;
}

.page-title h1 {
  line-height: 125px;
}

.page-title p {
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

@media screen and (max-width: 850px) {
    .page-title {
      height: 280px;
    }
}

@media screen and (max-width: 768px) {
  .page-title h1 {
    line-height: 100px;
  }
}

h1 {
  text-align: center;
  margin-bottom: 2rem;
}

#urgent {
  margin: 1.5rem;
}

#urgent p {
  text-align: center;
}

#urgent p:nth-child(1) {
  display: none;
  font-size: 1rem;
  font-weight: bold;
}

#urgent p:nth-child(2) {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  font-weight: bold;
}

#urgent p:nth-child(3) {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

#urgent p:nth-child(4) {
  font-size: 1rem;
  font-weight: bold;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border: 1px solid #ccc;
  table-layout: fixed;
}

.contact-table th,
.contact-table td {
  border-bottom: 2px dotted #ccc;
  padding: 0.8rem;
  vertical-align: top;
}

.contact-table th {
  width: 22%;
  background-color: #e0f0e0;
  text-align: left;
  padding: 1rem;
  vertical-align: middle;
}

.contact-table .required {
  width: 3rem;
}

.contact-table td label {
  display: inline-block;
  margin-right: 1rem;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  padding: 0.5rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  width: 100%;
  box-sizing: border-box;
}

.fullwidth {
  width: 100%;
}

.required {
  color: red;
  font-size: 0.8rem;
}

.form-button {
  text-align: center;
  margin-top: 2rem;
}

.form-button span {
  color: #333;
}

button {
  padding: 0.7rem 1rem;
  font-size: 1.1rem;
  background-color: #fff;
  color: #000;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  border: 10px solid #edcaa6;
}

button:hover {
  background-color: #007a55;
}

@media screen and (max-width: 768px) {
  body {
    padding: 0.5rem;
  }

  .page-title {
    height: 100px;
  }

  .page-title p {
    display: none;
  }

  #urgent p {
    line-height: 1rem;
  }

  #urgent p:nth-child(1) {
    display: block;
    margin: 2.5rem 1.5rem;
    text-align: left;
    font-size: 0.7rem;
  }

  #urgent p:nth-child(2) {
    font-size: 0.9rem;
  }

#urgent p:nth-child(3) {
    font-size: 1.2rem;
    font-weight: bold;
  }

#urgent p:nth-child(4) {
    font-size: 0.8rem;
    font-weight: bold;
  }

  .contact-table {
    display: block;
    width: 100%;
    border: none;
    font-size: 0;
  }

  .contact-table tr {
    display: block;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
  }

  .contact-table td {
    display: block;
    width: 100%;
    padding-top: 0.5rem;
    font-size: 1rem;
  }

  .contact-table th {
  display: inline-block;
  width: calc(80% - 0.5rem);
  height: 2.5rem;
  padding-right: 0.5rem;
  background-color: #e0f0e0;
  font-weight: bold;
  vertical-align: middle;
  border: none;
  box-sizing: border-box;
  border-spacing: 0;
}

.contact-table th.td-2rows {
  height: 4rem;
}

.contact-table th,
.contact-table th.required {
  white-space: nowrap;
  font-size: 1rem;
  padding: 0.5rem;
  vertical-align: middle;
  box-sizing: border-box;
}

.contact-table th[colspan="2"] {
  width: calc(100% - 0.5rem);
}

.contact-table th.required {
  display: inline-block;
  width: 20%;
  color: red;
  font-weight: normal;
  font-size: 0.85rem;
  text-align: right;
  box-sizing: border-box;
}

.contact-table td.label-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

.contact-table td.label-group label {
  width: auto;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}


  .contact-table td label {
    display: inline-block;
    width: 48%;
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
  }

  .td-2rows {
    height: 4rem;
  }

  .contact-table input[type="text"],
  .contact-table input[type="email"],
  .contact-table input[type="tel"],
  .contact-table textarea {
    width: calc(100% - 1rem);
    font-size: 1rem;
    margin-top: 0.3rem;
  }

  .fullwidth {
    width: 100%;
  }

  .form-button {
    margin-top: 1.5rem;
  }

  .form-button button {
    width: 80%;
    font-size: 1.1rem;
    padding: 1rem;
  }

  th .br-nores {
    display: none;
  }

  .br_sp {
    display: none;
  }
}