.form_layout {
  display: grid;
  grid-template-columns: minmax(0, 290px) minmax(0, 1fr);
  gap: clamp(22px, 5vw, 70px);
}
.form_layout > div > p {
  line-height: 1.9;
}
.form_layout form {
  max-width: 900px;
}
.form_row {
  display: grid;
  grid-template-columns: minmax(116px, .7fr) auto minmax(0, 2fr);
  align-items: start;
  gap: 12px 15px;
  margin-bottom: 17px;
}
.form_row label, .form_row > p:first-child {
  font-size: 15px;
}
.form_row .required_badge {
  font-size: 11px;
  background: #cf0b0b;
  color: white;
  padding: 3px 8px;
  white-space: nowrap;
  line-height: 1.25;
}
.form_row input:not([type="radio"]), .form_row textarea {
  width: 100%;
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid #e4e1de;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
}
.form_row textarea {
  resize: vertical;
}
.form_choices {
  display: grid;
  gap: 7px;
}
.form_choices input, .policy input {
  margin-right: 5px;
}
.form_actions {
  margin-left: auto;
  width: min(100%, 520px);
}
.policy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}
.policy p, .policy label, .form_status {
  font-size: 13px;
}
.policy a {
  text-decoration: underline;
}
.form_status {
  margin-top: 12px;
}
@media (max-width: 1080px) {
  .form_layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 576px) {
  .form_row {
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .form_row > :nth-child(3) {
    grid-column: 1 / -1;
  }
  .form_row .required_badge {
    justify-self: start;
  }
  .policy {
    justify-content: center;
  }
}
/* プライバシーポリシー */
body.privacy-open {
  overflow: hidden;
}
.privacypolicy:not(.is-open) {
  display: none;
}
.privacypolicy {
  position: fixed;
  inset: 0;
  z-index: 30;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: clamp(62px, 7vw, 100px) clamp(20px, 5vw, 72px);
  background: var(--paper);
}
.privacypolicy > .contents {
  max-width: 960px;
  margin-inline: auto;
}
.privacypolicy .title {
  font: 600 clamp(24px, 4vw, 40px)/1.4 var(--mincho);
  margin-bottom: 24px;
}
.privacypolicy .box {
  margin-top: 26px;
}
.privacypolicy .box h3 {
  font-weight: 700;
  margin-bottom: 10px;
}
.privacypolicy .box p, .privacypolicy .top-txt {
  line-height: 1.9;
}
.privacypolicy .box a {
  text-decoration: underline;
  overflow-wrap: anywhere;
}
.privacypolicy .close-bt {
  position: fixed;
  z-index: 1;
  top: 12px;
  right: max(18px, env(safe-area-inset-right));
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--paper);
}
@media (max-width: 576px) {
  .form_status {
    font-size: 14px;
  }
}
:is(.privacy-bt, .close-bt):is(:hover, :focus-visible) {
  color: #79601e;
}
/* パスメル template.css の contact-form_a をベースに調整 */
.contact-form_a .check-box p {
  cursor: pointer;
}
.contact-form_a .form-box .box-wrap {
  max-width: 1000px;
}
.contact-form_a .form-box .box-wrap .box {
  margin-bottom: 40px;
}
.contact-form_a .form-box .box-wrap .box h3 {
  width: 300px;
  position: relative;
  padding-right: 80px;
}
body.on .contact-form_a .form-box .box-wrap .box.required-box h3::after {
  content: "必須";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background-color: #BF272D;
  border-radius: 3px;
  padding: 2px 20px 3px;
  color: #fff;
  font-size: 14px;
  font-family: "Funnel Sans", "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.contact-form_a .form-box .box-wrap .box .inputbox {
  width: calc(100% - 300px);
  padding-left: 30px;
}
.contact-form_a .form-box .box-wrap .box:not(.filebox) .inputbox > input, .contact-form_a .form-box .box-wrap .box .inputbox textarea {
  background-color: #fff;
  border: 1px solid rgba(112, 112, 112, 0.5);
  border-radius: 5px;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 20px;
  font-family: "Funnel Sans", "Noto Sans JP", "游ゴシック Medium", "游ゴシック体", "Yu Gothic Medium", YuGothic, "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, "ＭＳ Ｐゴシック", "MS PGothic", sans-serif;
}
.contact-form_a .form-box .box-wrap .box .inputbox input::placeholder, .contact-form_a .form-box .box-wrap .box .inputbox textarea::placeholder {
  color: rgba(112, 112, 112, 0.5);
  font-size: 14px;
}
.contact-form_a .form-box .box-wrap .box .inputbox textarea {
  height: 300px;
}
.contact-form_a .form-box .box-wrap .box .inputbox .check-wrap {
  justify-content: flex-start;
  gap: 30px;
}
.contact-form_a .form-box .box-wrap .box .inputbox .check-wrap .check-box {
  gap: 10px;
}
.contact-form_a .form-box .box-wrap .box .inputbox .check-wrap .check-box:not(:last-of-type) {
  margin-bottom: 16px;
}
.contact-form_a .form-box .check-wrap .check-box input[type="radio"] {
  appearance: none;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(112, 112, 112, 0.5);
  border-radius: 50%;
  background-color: #fff;
  position: relative;
}
body.on .contact-form_a .form-box .check-wrap .check-box input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  background-color: #64D6D1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.contact-form_a .send, .contact-form_a .check-area {
  text-align: center;
}
.contact-form_a .check-area {
  margin-bottom: clamp(40px, 5vw, 50px);
  padding-top: clamp(10px, 3vw, 40px);
}
.contact-form_a .privacy-bt {
  cursor: pointer;
  margin-left: 10px;
}
:is(.contact_section, .entry_section) .form_layout {
  grid-template-columns: minmax(0, 277px) minmax(0, 760px);
  justify-content: space-between;
}
.contact-form_a .form-box {
  max-width: 760px;
}
.contact-form_a .form-box .box-wrap .box {
  display: flex;
  align-items: flex-start;
  margin-bottom: clamp(18px, 2.7vw, 39px);
}
.contact-form_a .form-box .box-wrap .box h3 {
  width: min(38%, 260px);
  padding: 2px 74px 0 0;
  flex: none;
  font-weight: 400;
}
.contact-form_a .form-box .box-wrap .box .inputbox {
  width: auto;
  min-width: 0;
  flex: 1;
  padding-left: clamp(14px, 2vw, 30px);
}
.contact-form_a .form-box .box-wrap .box:not(.filebox) .inputbox > input, .contact-form_a .form-box .box-wrap .box .inputbox textarea {
  display: block;
  padding: 10px 14px;
  border-color: #e4e1de;
  border-radius: 2px;
  font: 400 15px/1.5 "Noto Sans JP", sans-serif;
}
.contact-form_a .form-box .box-wrap .box .inputbox textarea {
  height: clamp(170px, 20vw, 251px);
  resize: vertical;
}
.contact-form_a .form-box .box-wrap .box .inputbox .check-wrap .check-box {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  cursor: pointer;
}
.contact-form_a .form-box .box-wrap .box .inputbox .check-wrap .check-box:not(:last-of-type) {
  margin-bottom: 8px;
}
.contact-form_a .form-box .check-wrap .check-box input[type="radio"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
}
body.on .contact-form_a .form-box .check-wrap .check-box input[type="radio"]:checked::after {
  background: var(--ink);
}
.contact-form_a .check-area {
  padding: 0;
  margin: 0 0 18px;
}
.contact-form_a .check-area > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  font-size: 14px;
}
.contact-form_a .privacy-bt {
  margin: 0;
  text-decoration: underline;
}
.contact-form_a .privacy-bt p {
  font-size: inherit;
}
.contact-form_a .check-area, .contact-form_a .send, .contact-form_a .form_status {
  margin-inline-start: min(40%, 290px);
  text-align: left;
}
.contact-form_a .send-bt {
  position: relative;
  max-width: 100%;
  min-width: min(100%, 263px);
}
.contact-form_a .send-bt > button {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  cursor: pointer;
}
.contact-form_a .send-bt:focus-within {
  background-color: #393c4d;
}
@media (max-width: 1080px) {
  :is(.contact_section, .entry_section) .form_layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 768px) {
  .contact-form_a .form-box .box-wrap .box {
    display: block;
    margin-bottom: 24px;
  }
  .contact-form_a .form-box .box-wrap .box h3 {
    width: 100%;
    max-width: 100%;
    min-height: 28px;
    margin-bottom: 10px;
  }
  body.on .contact-form_a .form-box .box-wrap .box.required-box h3::after {
    right: 0;
  }
  .contact-form_a .form-box .box-wrap .box .inputbox {
    width: 100%;
    padding-left: 0;
  }
}
@media (max-width: 576px) {
  .contact-form_a .check-area, .contact-form_a .send, .contact-form_a .form_status {
    margin-inline-start: 0;
  }
  .contact-form_a .check-area > div {
    justify-content: center;
  }
}
.contact-form_a input[type="file"]::file-selector-button {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 4px 8px;
  border-radius: 2px;
  margin-right: 8px;
  cursor: pointer;
}
@media (max-width: 576px) {
  .contact-form_a input[type="file"]::file-selector-button {
    font-size: 14px;
  }
}
.contact-form_a .form_status:not(.is-visible) {
  display: none;
}