:root {
  /* Colors — per style guide */
  --c-text: #1c1c1c;
  --c-text-2: #313131;
  --c-text-3: #363636;
  --c-gray-1: #e5e5e5;
  --c-gray-2: #a5a5a5;
  --c-gray-3: #c8c8c8;
  --c-peach: #e89961;
  --c-yellow: #f9e6a9;
  --c-green: #9dc49f;
  --c-blue: #2d66a5;
  --c-pink: #d0a6a5;
  --c-red: #8c2f33;
  --c-bg: #ffffff;
  --c-bg-dark: #2b2b2b;
  --c-border: #e2ded6;

  /* Fonts */
  --f-ja: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --f-en: "Aoboshi One", "Shippori Mincho B1", serif;

  /* Font Sizes */
  --fs-1: 18px;
  --fs-2: 16px;
  --fs-3: 14px;

  /* Letter spacing */
  --ls-ja: 0.05em;
  --ls-en: 0.15em;

  /* Transitions */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Layout padding — scales with screen */
  --pad-x: clamp(20px, 4vw, 120px);
  --pad-x-lg: clamp(40px, 6vw, 120px);

  /* Fluid px token: 1 design-unit ~= 1px at 1600px viewport, scaling linearly. */
  --px: min(0.0625vw, 1.3px);
}

/*larger checkbox*/
.wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wpcf7 input[type="checkbox"] {
  margin-top: 2px;
  width: 24px;
  height: 24px;
  border: 1px solid #bcbcbc;
  border-radius: 4px;
}

.form-title {
  font-size: clamp(28px, 3.5vw, 35px);
  font-weight: 700;
  color: #313131;
  text-align: center;
  margin-bottom: 40px;
}

.form-group {
  margin-bottom: 30px;
}

.form-group label {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #313131;
  margin-bottom: 8px;
}

.required {
  font-size: 14px;
  font-weight: 400;
  color: #6e6e6e;
  margin-left: 5px;
}

.wpcf7-form-control {
  width: 100%;
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 16px;
}

textarea.wpcf7-form-control {
  height: 180px;
  line-height: 1.8;
}

.helper-text {
  display: block;
  font-size: 14px;
  color: #6e6e6e;
  margin-top: 6px;
}

.error-text {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #bc2f32;
  margin-top: 6px;
}

.privacy {
  display: flex;
  align-items: center;
  gap: 10px;
}

.privacy a {
  font-size: 14px;
  color: #313131;
  text-decoration: underline;
}

.confirm-text {
  text-align: center;
  color: #6e6e6e;
  margin: 30px 0;
}

.form-submit-group {
  margin-top: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.submit-note {
  font-size: 18px;
  font-weight: 400;
  color: #313131;
  margin-bottom: 16px;
  text-align: center;
}

.wpcf7-submit {
  display: inline-block;
  width: auto;
  padding: 10px 46px;
  background: #333;
  color: #fff;
  border-radius: 30px;
  border: none;
  font-size: 16px;
  cursor: pointer;
}

/* Optional safeguard if theme forces full width */
.wpcf7 input.wpcf7-submit {
  width: auto;
}

.wpcf7-submit:hover {
  opacity: 0.9;
}

.contact-content__inner {
  margin: 30px auto;
  max-width: 1000px;
  padding: 0 var(--pad-x-lg);
}

.contact-text {
  margin-bottom: 35px;
}

.contact-links {
  margin-bottom: 50px;
}

.contact-phone-title {
  margin-bottom: 8px;
  font-weight: 600;
}

.contact-links__list {
  font-size: 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.contact-links__list li {
  margin-bottom: 6px;
}

.contact-links__list a {
  text-decoration: underline;
}

.contact-form-wrapper {
  background: #fff;
  padding: 48px 34px;

  margin: 60px auto 0;
}

.contact-phone-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.contact-phone-wrapper {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.contact-phone-title {
  font-size: 20px;
  font-weight: 400;
  color: #313131;
  margin: 0;
}

.contact-phone-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.contact-phone-icon {
  width: 24px;
  height: auto;
  flex-shrink: 0;
}

.required-label {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 400;
  color: #6e6e6e;
}

.contact-phone-number {
  font-size: clamp(25px, 3vw, 30px);
  font-weight: 700;
  color: #313131;
  text-decoration: none;
  margin-bottom: 4px;
}

.page-contact {
  padding-bottom: 50px;
  min-height: 90vh;
  position: relative;
  isolation: isolate;
}

.page-contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/common/background-pattern.jpg");
  background-repeat: repeat;
  background-size: 280px 280px;
  z-index: -1;
  pointer-events: none;
}

.privacy-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 25px;
}

.privacy-group .wpcf7-acceptance {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: none;
}

/* position acceptance error message positioning PC only*/
@media (min-width: 601px) {
  .policy-acceptance .wpcf7-form-control-wrap {
    position: relative;
  }

  .policy-acceptance .wpcf7-not-valid-tip {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 4px;
    width: max-content;
  }
}

.privacy-group .wpcf7-list-item {
  margin: 0;
}

.privacy-group input[type="checkbox"] {
  margin-right: 3px;
}

.wpcf7-list-item-label {
  font-size: 18px;
}

@media screen and (max-width: 600px) {
  .wpcf7-list-item-label {
    font-size: 16px;
  }
}

.privacy-title {
  font-size: 18px;
  font-weight: bold;
  color: #313131;
  line-height: 1.8;
  margin-bottom: 10px;
}

.wpcf7-acceptance {
  padding: 0;
}

.policy-acceptance {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* .privacy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
} */

.privacy-link {
  position: relative;
  display: inline-block;
  padding-left: 35px;
  font-size: 14px;
  color: var(--c-text-3);
  text-decoration: none;
}

.privacy-link__policy {
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media screen and (max-width: 600px) {
  .privacy-link {
    font-size: 13px;
    padding-left: 20px;
  }

  .privacy-link::before {
    left: 0 !important;
  }

  .policy-acceptance {
    flex-direction: column;
    align-items: start;
  }
}

.privacy-link::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background: url("../img/contact/link_icon.png") no-repeat center;
  background-size: contain;
}
/*Success Page after submit*/

.page-message-sent {
  min-height: 90vh;
  position: relative;
  isolation: isolate;
}

.page-message-sent::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../img/common/background-pattern.jpg");
  background-repeat: repeat;
  background-size: 280px 280px;
  z-index: -1;
  pointer-events: none;
}

.contact-success {
  padding: 0 var(--pad-x-lg) var(--pad-y-lg);
  margin: 15px auto;
  text-align: left;
}

/* Title */
.contact-success__title {
  font-size: clamp(35px, 5vw, 40px);
  font-weight: 700;
  color: #313131;
  margin-bottom: 32px;
}

/* Lead */
.contact-success__lead {
  font-size: 18px;
  font-weight: 400;
  color: #313131;
  line-height: 1.8;
  margin-bottom: 48px;
}

.contact-success__lead p {
  margin-bottom: 20px;
}

/* Box */
.contact-success__box {
  background: #fff;
  padding: 48px 40px;
  margin-bottom: 48px;
}

.contact-success__box-title {
  font-size: 40px;
  font-weight: 700;
  color: #313131;
  margin-bottom: 24px;
}

.contact-success__box-text {
  font-size: 18px;
  font-weight: 400;
  color: #313131;
  line-height: 1.8;
}

.contact-success__box-text p {
  margin-bottom: 20px;
}

/* CTA */
.contact-success__cta {
  margin-top: 24px;
}

.contact-success__button {
  display: inline-block;
  padding: 12px 32px;
  background: #333;
  color: #fff;
  border-radius: 30px;
  text-decoration: none;
  font-size: 16px;
}

.contact-success__button:hover {
  opacity: 0.85;
}

/* Responsive adjustments */
@media (max-width: 600px) {
  .contact-phone-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-success__box-title {
    font-size: 20px;
  }
}
