*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Noto Serif JP", serif;
  color: #231815;
  background-color: #f4f2f1;
  line-height: 1.7;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  vertical-align: bottom;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
  padding: 0;
  font-weight: inherit;
}

ul,
ol {
  list-style: none;
}

button,
input,
textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.form-page {
  min-height: 100vh;
  /* padding: 0 0 40px; */
}

.form-wrap {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  background-color: #fff;
  container-type: inline-size;
  container-name: form;
}

.form-head h1 {
  font-size: 0;
  line-height: 0;
}

.form-head img {
  width: 100%;
}

.form-body {
  /* 作業指示: 指定のない文字サイズは 25px（600px 基準で割合化） */
  font-size: min(calc(25 / 600 * 100cqw), 25px);
  padding: calc(24 / 600 * 100cqw) calc(40 / 600 * 100cqw) calc(80 / 600 * 100cqw);
}

.form-body--thanks {
  padding-top: calc(48 / 600 * 100cqw);
}

.form-body--thanks p {
  font-size: 0.8em; /* 20px */
  line-height: 1.9;
  margin-bottom: 1.4em;
}

.form-section {
  margin-bottom: calc(48 / 600 * 100cqw);
}

.form-section-title {
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-size: 1.12em; /* 28px */
  font-weight: 700;
  margin-bottom: 1.1em;
}

.form-section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: #231815;
}

.form-item {
  margin-bottom: calc(28 / 600 * 100cqw);
}

.form-label {
  font-size: 0.8em; /* 20px */
  margin-bottom: 0.45em;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4em;
}

.badge-required {
  display: inline-block;
  font-family: "Noto Sans JP", sans-serif;
  font-size: calc(20 / 600 * 100cqw);
  font-weight: 500;
  color: #fff;
  background-color: #ffa4b4;
  border-radius: 4px;
  padding: 0.12em 0.45em;
  line-height: 1.4;
  letter-spacing: 0.04em;
}

.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"],
.form-item textarea {
  display: block;
  width: 100%;
  border: 1px solid #ffa4b4;
  border-radius: 2px;
  background: #fff;
  padding: 0.55em 0.7em;
  line-height: 1.5;
  font-size: 0.8em; /* 20px */
}

.form-item input[type="text"],
.form-item input[type="tel"],
.form-item input[type="email"] {
  min-height: calc(52 / 600 * 100cqw);
}

.form-item textarea {
  min-height: calc(96 / 600 * 100cqw);
  resize: vertical;
  margin-top: 0.6em;
}

.form-item input::placeholder,
.form-item textarea::placeholder {
  color: #bdbdbd;
}

.form-item input:focus,
.form-item textarea:focus {
  outline: 2px solid #ffa4b4;
  outline-offset: 1px;
}

.form-item.is-error input[type="text"],
.form-item.is-error input[type="tel"],
.form-item.is-error textarea {
  border-color: #d32f2f;
}

.form-item.is-error input:focus,
.form-item.is-error textarea:focus {
  outline-color: #d32f2f;
}

.check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55em 0.8em;
  font-size: 0.8em; /* 20px */
}

.check-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.check,
.radio {
  display: flex;
  align-items: flex-start;
  gap: 0.45em;
  cursor: pointer;
  line-height: 1.45;
}

.check input,
.radio input {
  appearance: none;
  -webkit-appearance: none;
  flex-shrink: 0;
  margin: 0.15em 0 0;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid #ffa4b4;
  background: #fff;
  display: grid;
  place-content: center;
}

.radio input {
  border-radius: 50%;
}

.check input:checked,
.radio input:checked {
  background-color: #ffa4b4;
  border-color: #ffa4b4;
}

.check input:checked::after {
  content: "";
  width: 0.28em;
  height: 0.5em;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}

.radio input:checked::after {
  content: "";
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: #fff;
}

.check--lg {
  font-size: 0.72em; /* 18px */
}

.check--lg input {
  width: 1.25em;
  height: 1.25em;
  border-color: #231815;
  margin-top: 0.05em;
}

.check--lg input:checked {
  background-color: #231815;
  border-color: #231815;
}

.radio-row {
  display: flex;
  gap: 1.6em;
  font-size: 0.8em;
  margin-bottom: 0.7em;
}

.parking-num {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.8em;
}

.parking-num input {
  width: calc(140 / 600 * 100cqw);
  max-width: 140px;
}

.form-note {
  font-size: 0.56em; /* 14px */
  line-height: 1.7;
  margin-top: 0.6em;
}


.notice-list {
  font-size: 0.72em; /* 18px */
  margin-bottom: 1em;
}

.notice-list li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.35em;
}

.notice-list li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.terms-box {
  position: relative;
  /* background-color: #f4f2f1; */
  /* padding: 1.1em 1em 1.2em; */
  padding: 1.1em 0 1.2em;
  font-size: 0.72em; /* 18px */
  line-height: 1.75;
  margin-bottom: 1.2em;
}
/* .terms-box::before, .terms-box::after {
  content: "";
  position: absolute;
  top: 0;
  left: 100%;
  width: calc(40 / 600 * 100cqw);
  height: 100%;
  background-color: #f4f2f1;
}
.terms-box::after {
  left: auto;
  right: 100%;
} */

.terms-box__title {
  font-size: 1em;
  font-weight: 700;
  margin: 0.6em 0 0.5em;
  /* text-align: center; */
  text-align: left;
}

.terms-box__title:first-child {
  margin-top: 0;
}

.terms-box__ol {
  list-style: decimal;
  padding-left: 1.6em;
  margin-bottom: 1em;
}

.terms-box__ol li {
  margin-bottom: 0.35em;
}

.consent-lead {
  font-size: 0.8em; /* 20px */
  margin-bottom: 0.8em;
  text-decoration: underline;
}

.check--consent {
  font-size: 0.8em; /* 20px */
  font-weight: 700;
  align-items: flex-start;
}

.check--consent input {
  width: 1.25em;
  height: 1.25em;
  border-color: #231815;
  margin-top: 0.1em;
}

.check--consent input:checked {
  background-color: #231815;
  border-color: #231815;
}

.form-actions {
  margin-top: calc(40 / 600 * 100cqw);
}

.form-actions--stack {
  display: flex;
  flex-direction: column;
  gap: 0.85em;
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(64 / 600 * 100cqw);
  background-color: #a09857;
  color: #fff;
  font-family: "Noto Serif JP", serif;
  font-size: 0.88em; /* 22px */
  letter-spacing: 0.08em;
  padding: 0.6em 0.8em;
  text-align: center;
  transition: opacity 0.3s;
}

.btn-primary:hover {
  opacity: 0.8;
}

.form-errors {
  color: #d32f2f;
  font-size: 0.72em;
  margin-bottom: 1.4em;
  line-height: 1.7;
}

.form-errors p {
  font-weight: 700;
  margin-bottom: 0.4em;
}

.form-errors li {
  margin-bottom: 0.2em;
}

.field-error {
  color: #d32f2f;
  font-size: 0.64em; /* 16px相当 */
  font-weight: 700;
  line-height: 1.5;
  margin-top: 0.4em;
}

.confirm-item {
  margin-bottom: calc(28 / 600 * 100cqw);
}

.confirm-item__label {
  font-size: 0.8em; /* 20px */
  border-bottom: 1px solid #ffa4b4;
  padding-bottom: 0.3em;
  margin-bottom: 0.45em;
}

.confirm-item__value {
  font-size: 0.8em;
  line-height: 1.7;
  word-break: break-all;
}

.confirm-item__value--sub {
  margin-top: 0.4em;
  white-space: pre-wrap;
}

.confirm-checks {
  font-size: 0.72em; /* 18px */
  margin-bottom: 0.6em;
}

.confirm-checks li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.55em;
  line-height: 1.6;
}

.confirm-checks li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.consent-confirm {
  font-size: 0.8em;
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin: calc(36 / 600 * 100cqw) 0 calc(28 / 600 * 100cqw);
}

.thanks-text {
  font-size: 0.8em;
  margin-bottom: 1.5em;
}



@media (max-width: 480px) {
  .check-grid {
    grid-template-columns: 1fr;
  }
}
/* 
@media (max-width: 768px) {
  .form-body {
    font-size: min(calc(25 / 375 * 100cqw), 25px);
  }
} */