:root {
  --vk-color-border-hr: rgba(0, 0, 0, 0.4);
  --form-max: 1080px;
  --brand: #b84a4a;
  --ink: #231815;
  --muted: #7a7a7a;
  --line: #e7e3de;
  --bg: #fff;
  --ttl-size: clamp(20px, 2.2vw, 28px);
  --radius: 6px;
  --gap: 22px;
}

.entry-table tbody tr {
  border-bottom: 1px solid var(--line);
}
.entry-table tbody tr:last-child {
  border-bottom: none;
}
.entry-table th,
.entry-table td {
  vertical-align: top;
  padding: 20px 16px;
}
.entry-table th {
  width: 280px;
  font-weight: 700;
  text-align: left;
  line-height: 1.6;
}
.entry-table th label {
  display: inline-block;
}
.required {
  color: var(--brand);
  margin-left: 0.25em;
}
.normal {
  color: var(--muted);
  font-weight: 400;
  font-size: 0.92em;
  margin-left: 0.4em;
}

.wpcf7-text,
.wpcf7-email,
.wpcf7-tel,
.wpcf7-select,
.wpcf7-textarea {
  width: 100%;
  max-width: 640px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  outline: none;
  transition: box-shadow 0.2s, border-color 0.2s;
  background: #fff;
}
.wpcf7-textarea {
  min-height: 180px;
  resize: vertical;
}
.wpcf7-select {
  padding: 10px 40px 10px 12px;
}
.wpcf7-text::placeholder,
.wpcf7-textarea::placeholder {
  color: #b1aca5;
}

.wpcf7-text:focus,
.wpcf7-email:focus,
.wpcf7-tel:focus,
.wpcf7-select:focus,
.wpcf7-textarea:focus {
  border-color: #d4cfc7;
  box-shadow: 0 0 0 3px rgba(212, 207, 199, 0.25);
}

.td-flex {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 24px;
  align-items: start;
}
.td-flex .confirm-child {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.w100 {
  max-width: 760px;
}
.wpcf7-list-item label {
  display: flex;
}
.InputRadio .wpcf7-list-item,
.InputCheckbox .wpcf7-list-item {
  display: inline-flex;
  align-items: center;
  margin: 8px 18px 8px 0;
}
.InputRadio input[type="radio"],
.InputCheckbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-right: 8px;
  accent-color: var(--brand);
  @media (max-width: 767.98px) {
    width: 16px;
    height: 16px;
    margin: 4px 5px 0px 4px;
  }
}
.wpcf7-list-item-label {
  line-height: 1.6;
}
.entry-table td .InputCheckbox,
.entry-table td .InputRadio {
  display: flex;
  flex-wrap: wrap;
  max-width: 840px;
}

.mt10 {
  margin-top: 10px;
}

.input_area {
  padding: 0;

  .ttl {
    font-size: 1.6rem;
    font-weight: bold;
    margin: 6rem 0 1rem;
    text-align: center;
  }

  .r-entry {
    width: 100%;

    .entry-table {
      width: 100%;
      border-collapse: collapse;
      th {
        width: 25%;
        text-align: left;
        vertical-align: middle;
        font-weight: normal;
        color: #555;

        .required {
          color: red;
          font-weight: bold;
          margin-left: 5px;
        }
      }

      td {
        span {
          display: contents;
          &.wpcf7-list-item {
            display: inline-block;
          }
        }

        .w100 {
          width: 100%;

          span {
            width: 100%;
          }
        }

        input[type="text"],
        input[type="tel"],
        input[type="email"],
        select,
        textarea {
          width: 100%;
          padding: 8px 10px;
          border: 1px solid #ccc;
          font-size: 1rem;
          box-sizing: border-box;
          transition: border-color 0.3s;
          margin-bottom: 0;
          border-radius: 0;
        }

        .InputRadio {
          label {
            margin-right: 20px;
            font-weight: normal;
            cursor: pointer;
          }

          input[type="radio"] {
            margin-right: 5px;
          }
        }

        input[id="zip"] {
          width: 120px;
          display: inline-block;
          margin-right: 5px;
        }

        select#ProfileBirthdayYear,
        select#ProfileBirthdayMonth,
        select#ProfileBirthdayDay {
          width: 150px;
          margin-right: 5px;
          display: inline-block;
        }

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

  @media (max-width: 767.98px) {
    .r-entry {
      .entry-table {
        tr {
          display: block;
        }

        th,
        td {
          display: block;
          width: 100%;
          padding: 1rem;
        }

        td {
          span {
            margin-bottom: 10px;
          }

          select#ProfileBirthdayYear,
          select#ProfileBirthdayMonth,
          select#ProfileBirthdayDay {
            width: 100%;
            margin-bottom: 10px;
          }
        }
      }
    }
  }

  .confirm-group .normal {
    display: block;
  }
  .PanelFade.PanelFadeIn {
    text-align: center;
  }

  .LabelExtraLarge {
    font-size: 24px;
    line-height: 2em;
  }

  a.LabelAnchor {
    color: inherit;
    border: solid 1px rgb(0, 0, 0);
    background-color: rgba(255, 255, 255, 1);
    padding: 5px;
    text-decoration: none;
  }
}

.input_area table {
  border: none;
  margin-bottom: 3rem;

  th,
  td {
    border: 0.5px solid #bcbcbc;
    border-left: none;
    border-right: none;
    padding: 1.5rem 1rem;
  }

  th {
    width: 25%;
    text-align: left;
  }

  @media screen and (max-width: 767.98px) {
    margin-bottom: 4rem;

    th,
    td {
      display: block;
      border-bottom: none;
      width: 100%;
    }
  }
}

.post-name-entry {
  .submitBtn .wpcf7-form-control.wpcf7-submit,
  .confirm_button {
    color: #fff;
  }
}
.PanelFade {
  text-align: center;
}

.LabelExtraLarge {
  font-size: 36px;
  line-height: 2em;
  font-weight: bold;
  display: flex;
  justify-content: center;
  align-items: center;

  small {
    font-weight: normal;
    font-size: 18px;
    display: inline-block;
    margin-right: 8px;
  }
}

a.LabelAnchor {
  color: inherit;
  border: solid 1px rgb(0, 0, 0);
  background-color: rgba(255, 255, 255, 1);
  padding: 10px 40px;
  text-decoration: none;
}

.input_area {
  & .r-entry {
    & .entry-table {
      td {
        .td-flex {
          display: flex;
          align-items: center;
          .wpcf7-form-control-wrap {
            display: block;
            margin: 0 15px 0 5px;
            input[type="text"] {
              margin-bottom: 0;
            }
          }
        }
      }
    }
  }
}
input::placeholder,
textarea::placeholder {
  font-weight: normal;
  opacity: 0.8;
  font-family: "ヒラギノ角ゴ ProN W3", "游ゴシック", YuGothic, "メイリオ",
    Meiryo, sans-serif;
}
#addr {
  margin-top: 8px;
}
.input_area .confirm_button{
  display: block;
  overflow: hidden;
  position: relative;
  z-index: 1;
  padding: 13px 20px;
  border-radius: 50vh;
  border: 0.5px solid #231815;
  text-align: center;
  position: relative;
  transition: all 0.3s;
  margin: 0 auto;
  color: #231815;
  background: #fff;
  width: 100%;
}
.input_area .confirm_button_wrap {
  text-align: center;
}
.input_area .confirm_button_wrap span {
  display: inline-block;
  position: relative;
  max-width: 370px;
  width: 80%;
  min-width: 230px;
}
.input_area .confirm_button_wrap span::before {
  background: url(../../img/top/arrow_b.svg) center center / contain no-repeat;
  position: absolute;
  content: "";
  width: 20px;
  height: 20px;
  background-size: contain;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
}
.confirm_area .back_button {
  padding: 1rem;
}
@media (max-width: 767.98px) {
  .input_area .confirm_button,
  .submitBtn .wpcf7-form-control.wpcf7-submit,
  .confirm_area .back_button {
    width: 85%;
  }
  .input_area .confirm_button_wrap span::before{
    right: 35px;
  }
}
:where(:not(.wp-block-table)) > table :is(th, td) {
  font-size: 16px;
}

@media screen and (max-width: 767px) {
  .td-flex {
    gap: 5px;
  }
  .td-flex .wpcf7-form-control-wrap {
    margin: 0 5px 0 2px;
  }
  .td-flex .confirm-child {
    display: flex;
    align-items: center;
  }
  .td-flex .confirm-child label,
  .td-flex .confirm-child span {
    margin-right: 3px;
  }
}
.submitBtn .wpcf7-form-control.wpcf7-submit{
  color: #fff;
}
.LabelAlert{
  color: red;
}

#VisitPlace .wpcf7-list-item{
  display: block;
}