/* ========================================
   Contact Page Styles
   ======================================== */

/* Contact Form Section */
.contact-form {
  padding: 5rem 0 14rem;
  background: #FFF7EE;
}

.contact-form__inner {
  width: 100%;
  max-width: 65rem; /* 1040px */
  padding: 0 2.5rem; /* 40px */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem; /* 80px */
}

/* Section Title */
.contact-form__header {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-form__title {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
  align-items: center;
  text-align: center;
}

.contact-form__title-ja {
  font-family: 'Kiwi Maru', serif;
  font-weight: 500;
  font-size: 2rem; /* 32px */
  letter-spacing: 0.2rem; /* 3.2px */
  color: #53545D;
  line-height: 1.4;
  white-space: nowrap;
}

.contact-form__title-en {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 1rem; /* 16px */
  letter-spacing: 0.1rem; /* 1.6px */
  color: #14A0D2;
  line-height: 1.4;
  white-space: nowrap;
}

/* Description */
.contact-form__description {
  width: 100%;
  max-width: 50rem; /* 800px */
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
  text-align: center;
}

.contact-form__description-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  margin: 0;
}

.contact-form__description-text--small {
  font-size: 0.875rem; /* 14px */
}

/* Form Container */
.contact-form__form-container {
  width: 100%;
  background: #FFFFFF;
  border: 2px solid #F3E7D9;
  border-radius: 1.25rem; /* 20px */
  padding: 3rem; /* 48px */
  box-sizing: border-box;
}

/* Contact Form 7 Overrides */
.contact-form__form {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 40px */
}

/* Validation Error Box */
.contact-form__error {
  display: none; /* Hidden by default */
  background: #FF9797;
  border-radius: 0.625rem; /* 10px */
  padding: 1rem 3rem; /* 16px 48px */
  margin-bottom: 3rem; /* 48px */
  text-align: center;
}

.contact-form__error.is-visible {
  display: block;
}

.contact-form__error-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem; /* 16px */
  color: #FFFFFF;
  line-height: 1.6;
  margin: 0;
}

/* Form Row */
.contact-form__row {
  display: flex;
  gap: 1rem; /* 16px */
  align-items: flex-start;
}

.contact-form__row--center {
  align-items: center;
}

/* Form Label */
.contact-form__label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 16.625rem; /* 266px */
  flex-shrink: 0;
}

.contact-form__label-text-wrapper {
  display: flex;
  gap: 0.5rem; /* 8px */
  align-items: center;
}

.contact-form__label-dot {
  width: 0.5rem; /* 8px */
  height: 0.5rem; /* 8px */
  background: url('../images/contact/dot.svg') no-repeat center;
  background-size: contain;
  flex-shrink: 0;
}

.contact-form__label-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.4;
}

/* Required/Optional Badge */
.contact-form__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.125rem; /* 50px */
  height: 1.875rem; /* 30px */
  border-radius: 0.3125rem; /* 5px */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.875rem; /* 14px */
  color: #FFFFFF;
  line-height: 1.4;
}

.contact-form__badge--required {
  background: #EA6F6F;
}

.contact-form__badge--optional {
  background: #9A9BA5;
}

/* Form Field Container */
.contact-form__field {
  flex: 1;
  min-width: 0;
}

/* Radio Buttons */
.contact-form__radio-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
}

.contact-form__radio-item {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  cursor: pointer;
}

.contact-form__radio-item input[type="radio"] {
  appearance: none;
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border: 2px solid #9A9BA5;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.contact-form__radio-item input[type="radio"]:checked {
  border-color: #14A0D2;
}

.contact-form__radio-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.625rem; /* 10px */
  height: 0.625rem; /* 10px */
  background: #14A0D2;
  border-radius: 50%;
}

.contact-form__radio-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  cursor: pointer;
  flex: 1;
}

/* Text Input & Textarea */
.contact-form__input,
.contact-form__textarea {
  width: 100%;
  background: #FEF9F3;
  border: none;
  border-radius: 0.3125rem; /* 5px */
  padding: 1.0625rem 1rem; /* 17px 16px */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  box-sizing: border-box;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
  opacity: 0.5;
}

.contact-form__input:focus,
.contact-form__textarea:focus {
  outline: none;
  background: #FEF9F3;
}

.contact-form__textarea {
  min-height: 13.5rem; /* 216px */
  resize: vertical;
}

/* Privacy Policy Section */
.contact-form__privacy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
  flex: 1;
  width: 100%;
  min-width: 0;
}

.contact-form__privacy-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  margin: 0;
}

.contact-form__privacy-box {
  background: #FFFFFF;
  border: 2px solid #9A9BA5;
  border-radius: 0;
  padding: 2rem 1rem 2rem 2rem; /* 上 右 下 左: 32px 16px 32px 32px */
  height: 18.75rem; /* 300px */
  box-sizing: border-box;
  overflow: hidden;
}

.contact-form__privacy-scroll-wrapper {
  height: 100%;
  overflow-y: scroll;
  padding-right: 1rem; /* 16px - スクロールバーとコンテンツの間隔 */
}

.contact-form__privacy-content {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.875rem; /* 14px */
  color: #53545D;
  line-height: 1.6;
}

.contact-form__privacy-content h3 {
  font-weight: 700;
  font-size: 0.875rem;
  margin: 0 0 0.75rem 0;
}

.contact-form__privacy-content p {
  font-weight: 500;
  margin: 0 0 0.75rem 0;
}

.contact-form__privacy-content ul {
  margin: 0.75rem 0;
  padding-left: 1.3125rem; /* 21px */
}

.contact-form__privacy-content li {
  margin-bottom: 0;
}

.contact-form__privacy-content hr {
  border: none;
  border-top: 1px solid #CCCCCC;
  margin: 1rem 0;
}

/* Custom Scrollbar */
.contact-form__privacy-scroll-wrapper::-webkit-scrollbar {
  width: 0.375rem; /* 6px */
}

.contact-form__privacy-scroll-wrapper::-webkit-scrollbar-track {
  background: transparent;
}

.contact-form__privacy-scroll-wrapper::-webkit-scrollbar-thumb {
  background: #9A9BA5;
  border-radius: 0.3125rem; /* 5px */
  min-height: 9.6875rem; /* 155px - Figmaデザインの高さ */
}

/* Checkbox */
.contact-form__checkbox-item {
  display: flex;
  align-items: center;
  gap: 0.5rem; /* 8px */
  cursor: pointer;
  width: fit-content;
  margin: 0 auto;
}

.contact-form__checkbox-item input[type="checkbox"] {
  appearance: none;
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border: 1.5px solid #9A9BA5;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}

.contact-form__checkbox-item input[type="checkbox"]:checked {
  border-color: #14A0D2;
  background: #14A0D2;
}

.contact-form__checkbox-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 0.1875rem; /* 3px */
  left: 0.3125rem; /* 5px */
  width: 0.5rem; /* 8px */
  height: 0.375rem; /* 6px */
  border-left: 2px solid #FFFFFF;
  border-bottom: 2px solid #FFFFFF;
  transform: rotate(-45deg);
}

.contact-form__checkbox-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  cursor: pointer;
}

/* Form Buttons */
.contact-form__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* 24px */
}

.contact-form__submit {
  position: relative;
  width: 18.75rem; /* 300px */
  height: 5rem; /* 80px */
  background: #14A0D2;
  border: none;
  border-radius: 4.375rem; /* 70px */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  color: #FFFFFF;
  letter-spacing: 0.05625rem; /* 0.9px */
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.contact-form__submit:hover {
  background: #0F8AB8;
}

.contact-form__submit:disabled {
  background: #14A0D2;
  cursor: not-allowed;
  opacity: 1;
}

/* CF7 Submit Button Container */
.contact-form__buttons p {
  margin: 0 0 0 2.5rem !important; /* 40px */
  position: relative;
  display: inline-block;
}

/* 矢印アイコン（inputには::afterが使えないので親要素に追加） */
.contact-form__buttons p::after {
  content: '';
  position: absolute;
  right: 2rem; /* 32px */
  top: 32%;
  transform: translateY(-50%);
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  background: url('../images/contact/arw-cta1.svg') no-repeat center;
  background-size: contain;
  pointer-events: none;
  z-index: 1;
}

/* CF7 Submit Button Spinner */
.wpcf7-spinner {
  display: none !important;
}

.contact-form__reset {
  background: none;
  border: none;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  color: #53545D;
  letter-spacing: 0.09375rem; /* 1.5px */
  cursor: pointer;
  line-height: 1.2;
  padding: 0;
  transition: opacity 0.3s ease;
  width: 100%;
  margin-top: 1.5rem; /* 24px */
}

.contact-form__reset:hover {
  opacity: 0.7;
}

/* Contact Form 7 Specific Styles */
.wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* Contact Form 7 Auto-generated Paragraph Tags */
.contact-form__form p {
  margin: 0;
}

.contact-form__label-text-wrapper p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

/* Radio Button Styles for CF7 */
.wpcf7-form-control.wpcf7-radio {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
}

.contact-form__radio-group .wpcf7-list-item {
  display: block;
  margin: 0;
}

.contact-form__radio-group .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  width: 100%;
}

.contact-form__radio-group .wpcf7-list-item input[type="radio"] {
  appearance: none;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #9A9BA5;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

.contact-form__radio-group .wpcf7-list-item input[type="radio"]:checked {
  border-color: #14A0D2;
}

.contact-form__radio-group .wpcf7-list-item input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.625rem;
  height: 0.625rem;
  background: #14A0D2;
  border-radius: 50%;
}

.contact-form__radio-group .wpcf7-list-item-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #53545D;
  line-height: 1.6;
  cursor: pointer;
  flex: 1;
}

/* Checkbox Styles for CF7 */
.contact-form__checkbox-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
}

.contact-form__checkbox-wrapper .wpcf7-form-control-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-form__checkbox-wrapper .wpcf7-list-item {
  display: inline-flex;
  margin: 0;
}

.contact-form__checkbox-wrapper .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.contact-form__checkbox-wrapper input[type="checkbox"],
.contact-form__checkbox-wrapper .contact-form__checkbox-acceptance {
  appearance: none;
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  border: 2px solid #9A9BA5;
  background: #FFFFFF;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin: 0;
}

.contact-form__checkbox-wrapper input[type="checkbox"]:checked,
.contact-form__checkbox-wrapper .contact-form__checkbox-acceptance:checked {
  border-color: #9A9BA5;
  background: #FFFFFF;
}

.contact-form__checkbox-wrapper input[type="checkbox"]:checked::after,
.contact-form__checkbox-wrapper .contact-form__checkbox-acceptance:checked::after {
  content: '';
  position: absolute;
  top: 0.3125rem; /* 5px */
  left: 0.1875rem; /* 3px */
  width: 0.875rem; /* 14px */
  height: 0.625rem; /* 10px */
  background: url('../images/contact/form-icn-check.svg') no-repeat center;
  background-size: contain;
}

.contact-form__checkbox-label {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #53545D;
  line-height: 1.6;
  cursor: pointer;
}

.wpcf7-not-valid-tip {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 0.875rem;
  color: #EA6F6F;
  margin-top: 0.5rem;
}

.wpcf7-response-output {
  font-family: 'Zen Maru Gothic', sans-serif;
  text-align: center;
  margin: 1rem 0 0;
  padding: 1rem;
  border-radius: 0.3125rem;
}

.wpcf7-validation-errors {
  border-color: #EA6F6F;
  color: #EA6F6F;
}

.wpcf7-mail-sent-ok {
  border-color: #46BE8A;
  color: #46BE8A;
}

/* ========================================
   Confirmation Screen Styles
   ======================================== */

/* Confirmation Screen Container */
.contact-form__confirm {
  display: none; /* Hidden by default */
  width: 100%;
}

.contact-form__confirm.is-active {
  display: flex;
  flex-direction: column;
  gap: 5rem; /* 80px - same as contact-form__inner gap */
}

/* Confirmation Header */
.contact-form__confirm-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem; /* 8px */
  align-items: center;
  text-align: center;
}

.contact-form__confirm-title-ja {
  font-family: 'Kiwi Maru', serif;
  font-weight: 500;
  font-size: 2rem; /* 32px */
  letter-spacing: 0.2rem; /* 3.2px */
  color: #53545D;
  line-height: 1.4;
  white-space: nowrap;
}

.contact-form__confirm-title-en {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 900;
  font-size: 1rem; /* 16px */
  letter-spacing: 0.1rem; /* 1.6px */
  color: #14A0D2;
  line-height: 1.4;
  white-space: nowrap;
}

/* Confirmation Content Box */
.contact-form__confirm-box {
  background: #FFFFFF;
  border: 2px solid #F3E7D9;
  border-radius: 1.25rem; /* 20px */
  padding: 3rem; /* 48px */
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 3rem; /* 48px */
  align-items: center;
}

/* Confirmation Items Container */
.contact-form__confirm-items {
  display: flex;
  flex-direction: column;
  gap: 2.5rem; /* 40px */
  width: 59rem; /* 944px */
  max-width: 100%;
}

/* Confirmation Row */
.contact-form__confirm-row {
  display: flex;
  gap: 1rem; /* 16px */
  align-items: flex-start;
}

.contact-form__confirm-row--center {
  align-items: center;
}

/* Confirmation Label */
.contact-form__confirm-label {
  display: flex;
  gap: 0.5rem; /* 8px */
  align-items: center;
  flex-shrink: 0;
}

.contact-form__confirm-dot {
  width: 0.5rem; /* 8px */
  height: 0.5rem; /* 8px */
  background: #14A0D2;
  border-radius: 50%;
  flex-shrink: 0;
}

.contact-form__confirm-label-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.4;
  white-space: nowrap;
  width: 11.5rem; /* 184px */
}

/* Confirmation Value */
.contact-form__confirm-value {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
  word-wrap: break-word;
}

/* Confirmation Buttons */
.contact-form__confirm-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem; /* 24px */
}

/* Send Button - Background Image */
.contact-form__confirm-submit {
  position: relative;
  width: 18.75rem; /* 300px */
  height: 5rem; /* 80px */
  background: url('../images/contact/btn-send.webp') no-repeat center center;
  background-size: cover;
  border: none;
  border-radius: 5rem; /* 80px */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.125rem; /* 18px */
  color: #FFFFFF;
  letter-spacing: 0.05625rem; /* 0.9px */
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.contact-form__confirm-submit:hover {
  opacity: 0.85;
}

/* Arrow Icon for Send Button */
.contact-form__confirm-submit::after {
  content: '';
  position: absolute;
  right: 2rem; /* 32px */
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  background: url('../images/contact/arw-cta1.svg') no-repeat center;
  background-size: contain;
  pointer-events: none;
}

/* Back to Edit Link */
.contact-form__confirm-back {
  background: none;
  border: none;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem; /* 15px */
  color: #53545D;
  letter-spacing: 0.09375rem; /* 1.5px */
  cursor: pointer;
  line-height: 1.2;
  padding: 0;
  transition: opacity 0.3s ease;
  position: relative;
}

.contact-form__confirm-back:hover {
  opacity: 0.7;
}

/* Hide input form when confirmation is active */
.contact-form__form-container.is-hidden {
  display: none;
}

.contact-form__description.is-hidden {
  display: none;
}

.contact-form__header.is-hidden {
  display: none;
}

/* ========================================
   Thanks Page Styles
   ======================================== */

/* Thanks Section */
.contact-thanks {
  padding: 10rem 0 14rem;
  background: #FFF7EE;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.contact-thanks__inner {
  width: 100%;
  max-width: 50rem; /* 800px */
  padding: 0 2.5rem; /* 40px */
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5rem; /* 80px */
}

/* Thanks Content (Message Area) */
.contact-thanks__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem; /* 24px */
  width: 100%;
}

/* Thanks Title */
.contact-thanks__title {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-thanks__title-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1.25rem; /* 20px */
  color: #14A0D2;
  line-height: 1.6;
  text-align: center;
  margin: 0;
}

/* Thanks Message */
.contact-thanks__message {
  display: flex;
  flex-direction: column;
  gap: 0.75rem; /* 12px */
  text-align: center;
  width: 100%;
}

.contact-thanks__message-text {
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 500;
  font-size: 1rem; /* 16px */
  color: #53545D;
  line-height: 1.6;
  margin: 0;
}

.contact-thanks__message-text--note {
  font-size: 0.875rem; /* 14px */
  line-height: 1.6;
}

/* Thanks Illustration */
.contact-thanks__illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: 50rem; /* 800px */
}

.contact-thanks__illustration-image {
  width: 100%;
  max-width: 40.75rem; /* 652.999px - from Figma */
  height: auto;
  display: block;
}

/* Thanks Buttons */
.contact-thanks__buttons {
  display: flex;
  justify-content: center;
  width: 100%;
}

.contact-thanks__button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15.625rem; /* 250px */
  height: 3.125rem; /* 50px */
  background: transparent;
  border: 2px solid #53545D;
  border-radius: 2.1875rem; /* 35px */
  font-family: 'Zen Maru Gothic', sans-serif;
  font-weight: 700;
  font-size: 1rem; /* 16px */
  color: #53545D;
  letter-spacing: 0.05rem; /* 0.8px */
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.contact-thanks__button:hover {
  background: #53545D;
  color: #FFFFFF;
}

.contact-thanks__button:hover .contact-thanks__button-arrow::before {
  filter: brightness(0) invert(1);
}

/* Button Arrow (Left Arrow) - Absolute Position */
.contact-thanks__button-arrow {
  position: absolute;
  left: 1.5rem; /* 24px - 9.6% of 250px */
  top: 50%;
  transform: translateY(-50%);
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-thanks__button-arrow::before {
  content: '';
  position: absolute;
  width: 1.25rem; /* 20px */
  height: 1.25rem; /* 20px */
  background: url('../images/contact/arw-back.svg') no-repeat center;
  background-size: contain;
  transition: filter 0.3s ease;
}

/* Button Text - Center */
.contact-thanks__button-text {
  line-height: 1.4;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 48rem) { /* 768px */
  .contact-form {
    padding: 4rem 0 14rem;
  }

  .contact-form__inner {
    padding: 0 1.5rem;
    gap: 3rem;
  }

  .contact-form__title-ja {
    font-size: 1.5rem;
    letter-spacing: 0.15rem;
    white-space: normal;
  }

  .contact-form__title-en {
    font-size: 0.875rem;
    letter-spacing: 0.0875rem;
  }

  .contact-form__description {
    max-width: 100%;
    text-align: left;
  }

  .contact-form__description-text {
    font-size: 0.9375rem;
  }

  .contact-form__description-text--small {
    font-size: 0.8125rem;
  }

  .contact-form__form-container {
    padding: 1.5rem;
  }

  .contact-form__form {
    gap: 1.5rem;
  }

  .contact-form__row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-form__label {
    min-width: auto;
    width: 100%;
    padding: 0.5rem 0;
  }

  .contact-form__field {
    width: 100%;
  }

  .contact-form__privacy-box {
    height: 12.5rem;
    padding: 1rem;
  }

  .contact-form__privacy-content {
    font-size: 0.8125rem;
  }

  .contact-form__submit {
    width: 100%;
    max-width: 18.75rem;
    font-size: 1rem;
  }

  .contact-form__reset {
    font-size: 0.875rem;
  }

  /* Validation Error Box Responsive */
  .contact-form__error {
    padding: 1rem 1.5rem; /* 16px 24px */
  }

  .contact-form__error-text {
    font-size: 0.9375rem; /* 15px */
  }

  /* Confirmation Screen Responsive */
  .contact-form__confirm.is-active {
    gap: 3rem;
  }

  .contact-form__confirm-title-ja {
    font-size: 1.5rem;
    letter-spacing: 0.15rem;
    white-space: normal;
  }

  .contact-form__confirm-title-en {
    font-size: 0.875rem;
    letter-spacing: 0.0875rem;
  }

  .contact-form__confirm-box {
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .contact-form__confirm-items {
    width: 100%;
    gap: 1.5rem;
  }

  .contact-form__confirm-row {
    flex-direction: column;
    gap: 0.5rem;
  }

  .contact-form__confirm-label-text {
    width: auto;
  }

  .contact-form__confirm-submit {
    width: 100%;
    max-width: 18.75rem;
    font-size: 1rem;
  }

  .contact-form__confirm-back {
    font-size: 0.875rem;
  }

  /* Thanks Page Responsive */
  .contact-thanks {
    padding: 4rem 0 14rem;
    overflow-x: hidden;
  }

  .contact-thanks__inner {
    padding: 0 1.5rem;
    gap: 3rem; /* 48px */
    overflow-x: hidden;
  }

  .contact-thanks__content {
    gap: 1rem; /* 16px */
  }

  .contact-thanks__title-text {
    font-size: 1.125rem; /* 18px */
  }

  .contact-thanks__message {
    gap: 0.5rem; /* 8px */
  }

  .contact-thanks__message-text {
    font-size: 0.9375rem; /* 15px */
  }

  .contact-thanks__message-text--note {
    font-size: 0.8125rem; /* 13px */
  }

  .contact-thanks__illustration {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    position: relative;
  }

  .contact-thanks__illustration-image {
    width: calc(100% + 10rem);
    max-width: none;
    height: auto;
    display: block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }

  .contact-thanks__button {
    width: 100%;
    max-width: 15.625rem; /* 250px */
    font-size: 0.9375rem; /* 15px */
  }
}
