body {
  background-color: #f7f8f8;
}

.header {
  background-color: #f7f8f8;
  height: auto;
  min-height: 0px;
}

.footer {
  background-color: #f7f8f8;
}

#contact {
  background-color: #f7f8f8;
  padding-top: 200px;
  position: relative;
  min-height: 700px;
}

#contact .text {
  position: fixed;
  top: 284px;
  left: 160px;
}

#contact .text h2 {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-style: normal;
  font-size: 2.4rem;
  letter-spacing: 0.3rem;
  line-height: 3.5rem;
  color: #606f74;
}

#contact .text .message {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 1.8rem;
  letter-spacing: 0.3rem;
  line-height: 2.8rem;
  color: #000;
  width: 430px;
  margin-top: 80px;
}

#contact .text .message p {
  margin-top: 30px;
}

#contact .text .message .mark{
  color: red;
  margin-top: 9px;
  padding: 2px 1px 1px 2px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  line-height: 2rem;
  letter-spacing: 0.2rem;
}

/***************************************/
#contact .form {
  padding-top: 70px;
  padding-bottom: 230px;
  padding-right: 100px;
  position: relative;
}

#contact .table {
  position: relative;
  width: 640px;
  margin-left: auto;
}

#contact .table select {
  height: 30px;
  border: 1px solid #000;
  border-radius: 3px;
  padding-left: 15px;
  width: calc(300px * 1.0);
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 2.5rem;
}

#contact .table input[type="text"] {
  height: 30px;
  border: 1px solid #000;
  border-radius: 3px;
  padding-left: 15px;
  width: calc(640px - (640px * 0.32));
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
}

#contact .table input::placeholder, #contact .table textarea::placeholder {
  font-size: 1.8rem;
  letter-spacing: 0.1rem;
}

#contact .table textarea {
  border: 1px solid #000;
  border-radius: 3px;
  padding-left: 15px;
  padding-right: 15px;
  padding-top: 3px;
  width: calc(640px - (640px * 0.32));
  height: 200px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 2.5rem;
}

#contact .table select:focus,
#contact .table input:focus,
#contact .table textarea:focus {
  outline: none;
  border: 2px solid #8cafd0;
}

#contact .table .row.first {
  border-top: solid 1px #727171;
}

#contact .table .row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding-top: calc(23px - 8px);
  padding-bottom: 23px;
  border-bottom: solid 1px #727171;
}

#contact .table .row .cell.label {
  min-width: 27%;
  display: flex;
  gap: 4px 4px;
}

#contact .table .row .cell.ctl {
  margin-top: 8px;
}
#contact .table .row .cell.ctl .info {
  display: inline-block;
  color: #606f74;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  line-height: 2rem;
  letter-spacing: 0.2rem;
  margin-top: 5px;
  margin-bottom: 15px;
}

#contact .table .row .cell.label span.mark {
  color: red;
  margin-top: 10px;
  padding: 2px 1px 1px 2px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.7rem;
  line-height: 2rem;
  letter-spacing: 0.2rem;
}

#contact .table .row .cell p {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 2.5rem;
  margin-top: 8px;
  padding-top: 2px;
}

#contact .table .row .cell.label label {
  display: inline-block;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.3rem;
  color: #000;
  line-height: 2.5rem;
  margin-top: 8px;
  padding-top: 2px;
}

#contact .table .row .confirm-value {
  width: calc(640px - (640px * 0.38));
  display: inline-block;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 400;
  font-size: 1.8rem;
  letter-spacing: 0.3rem;
  color: #000;
  line-height: 2.5rem;
  margin-top: 8px;
  padding-top: 2px;
}

#contact .table .row .cell.ctl .zipcode {
  display: flex;
  align-items: center;
  gap: 8px 8px;
  margin-bottom: 16px;
}

#contact .table .row .cell.ctl .zipcode span {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.4rem;
  color: #000;
  line-height: 2.5rem;
}

#contact .table .row .cell.ctl .zipcode input {
  width: 55px;
  padding-left: 5px;
}

#contact .table .privacy-check {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px 8px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 2.0rem;
}

#contact .table .privacy-check a {
  color: #6a9dca;
  border-bottom: solid 1px #6a9dca;
}

#contact .button-wrap {
  width: 100%;
  height: 56px;
  position: relative;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

#contact .button-wrap:hover {
  opacity: 0.75;
}

#contact .button-wrap .text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

#contact .button-wrap .text p {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #fff;
  line-height: 2.0rem;
}

#contact .confirm-button-wrap {
  margin-top: 40px;
  background-color: #cacacb;
}

#contact .confirm-button-wrap.enable {
  background-color: #606f74;
}

#contact .send-button-wrap {
  margin-top: 40px;
  background-color: #606f74;
}

#contact .back-button-wrap {
  background-color: #cacacb;
  margin-top: 50px;
}

#contact .confirm-message {
  margin-top: 50px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 10px 10px;
}

#contact .confirm-message p {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 2.0rem;
}

#contact .complete-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 40px;
}

#contact .complete-message p {
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 4.0rem;
}

#contact .complete-message a {
  margin-top: 40px;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-size: 1.9rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 3.0rem;
  border-bottom: solid 2px #000;
}

#contact .privacy-text {
  margin-top: 30px;
  overflow-y: scroll;
  padding: 15px 15px 15px 15px;
  width: 640px;
  height: 180px;
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 3px;
}

#contact .privacy-text p {
  color: #000;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-style: normal;
  line-height: 2.8rem;
  font-size: 1.6rem;
  letter-spacing: 0.2rem;
}

#contact .confirm-title {
  display: none;
  margin-bottom: 50px;
}

#contact .confirm-title h3 {
  color: #000;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 3.2rem;
  font-size: 2.8rem;
  letter-spacing: 0.4rem;
  text-align: center;
}

.top-border {
  border-top: solid 1px #7f8082;
}

#contact .form .message {
  padding-top: 60px;
}

#contact .form .message p {
  text-align: center;
  color: #000;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 2.8rem;
  font-size: 1.9rem;
  letter-spacing: 0.2rem;
}

#contact .form .message2 {
  margin-top: 30px;
}

#contact .form .message2 p {
  text-align: center;
  color: #000;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 4.5rem;
  font-size: 1.9rem;
  letter-spacing: 0.2rem;
}

#contact .form .link {
  margin-top: 50px;
  display: flex;
  justify-content: center;
}

#contact .form .link a {
  text-align: center;
  color: #000;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 600;
  font-style: normal;
  line-height: 4.5rem;
  font-size: 2.0rem;
  letter-spacing: 0.2rem;
  padding-bottom: 0px;
  border-bottom: 1px solid #000;
}

.checkbox-group {
  width: calc(640px - (640px * 0.32));
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 12px 15px;
  font-size: 16px;
}

.checkbox-group .check-wrap {
  display: flex;
  align-items: center;
  gap: 5px 5px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "Zen Kaku Gothic Antique", sans-serif;
  font-weight: 500;
  font-size: 1.8rem;
  letter-spacing: 0.2rem;
  color: #000;
  line-height: 2.5rem;
}

.checkbox-group .tooltip {
  width: 16px;
}

.checkbox-group input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid #555;
  border-radius: 3px;
  margin-right: 8px;
  position: relative;
  background-color: #fff;
}

.checkbox-group input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4px;
  top: -1px;
  width: 5px;
  height: 9px;
  border: solid #333;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ツールチップ */
.tooltip {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  font-size: 12px;
  color: #fff;
  background: #999;
  border-radius: 50%;
  cursor: default;
}

.tooltip-text {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  padding: 8px 10px;
  font-size: 13px;
  color: #333;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 10;
}

/* 吹き出しの三角 */
.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: #fff transparent transparent transparent;
}

/* ホバー表示 */
.tooltip:hover .tooltip-text {
  opacity: 1;
}