.page-template-template-contact .site,
.page-template-template-contact #page {
  background: #fff;
  max-width: none;
}

.page-template-template-contact .site-content,
.page-template-template-contact .inside-article,
.page-template-template-contact .content-area,
.page-template-template-contact .site-main {
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: 100%;
}

.page-template-template-contact .content-area {
  float: none;
}

.page-template-template-contact .grid-container,
.page-template-template-contact .container.grid-container {
  width: 100%;
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.page-template-template-contact.one-container .site-content,
.page-template-template-contact.separate-containers .inside-article,
.page-template-template-contact.separate-containers .site-main {
  margin: 0;
  padding: 0;
}

.ks-contact-page * {
  box-sizing: border-box;
}

.ks-contact-page {
  color: var(--ks-text, #000);
  line-height: 1.75;
  font-family: "Noto Sans JP", sans-serif;
}

.ks-contact-page .ks-inner {
  width: calc(100% - 48px);
  max-width: 965px;
  margin-inline: auto;
}

.ks-contact-page-hero {
  position: relative;
  height: auto;
  overflow: visible;
}

.ks-contact-page-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.ks-contact-page-intro {
  text-align: center;
  padding: 83px 0 92px;
}

.ks-contact-page-title {
  margin: 0;
  color: var(--ks-main, #78b4cd);
  font-size: 52px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1;
}

.ks-contact-page-title img {
  width: 302px;
  max-width: 100%;
  height: auto;
  display: inline-block;
}

.ks-contact-page-subtitle {
  margin: 13px 0 0;
  color: var(--ks-main, #78b4cd);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.ks-contact-page-lead {
  margin: 27px 0 0;
  font-size: 16px;
  color: #222;
  line-height: 2.1;
}

.ks-contact-page-guide-link {
  margin: 22px 0 0;
}

.ks-contact-page-guide-link a {
  display: inline-block;
  min-width: 210px;
  border: 1px solid #78b4cd;
  color: #000;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  padding: 14px 26px;
}

.ks-contact-page-guide-here {
  color: var(--ks-main, #78b4cd);
  text-decoration: underline;
}

.ks-contact-page-copy {
  margin: 26px 0 0;
  font-size: 15px;
  line-height: 2;
}

.ks-contact-page-copy span {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
}

.ks-contact-page-form-block {
  padding: 0 0 60px;
}

.ks-contact-page-form-head {
  border-top: 1px solid #78b4cd;
  padding-top: 42px;
}

.ks-contact-page-form-head h2 {
  margin: 0;
  color: var(--ks-main, #78b4cd);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
}

.ks-contact-page-form-head p {
  margin: 10px 0 0;
  font-size: 16px;
}

.ks-contact-page-cf7 {
  margin-top: 26px;
}

.ks-contact-page-cf7-note {
  margin: 0;
  border: 1px solid #ced7dc;
  background: #fff;
  padding: 16px;
  font-size: 14px;
  line-height: 1.8;
}

.ks-contact-page-cf7-note code {
  font-size: 12px;
}

.ks-contact-page .wpcf7 {
  margin: 0;
}

.ks-contact-page .wpcf7 form {
  margin: 0;
}

.ks-contact-page .wpcf7-response-output {
  margin: 14px 0 0;
  padding: 10px 12px;
  font-size: 13px;
}

.ks-contact-page .wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 6px;
}

.ks-contact-page .ks-cf7-grid {
  border: 1px solid #c4d0d0;
  border-bottom: 0;
}

.ks-contact-page .ks-cf7-row {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  min-height: 88px;
  border-bottom: 1px solid #c4d0d0;
}

.ks-contact-page .ks-cf7-label {
  margin: 0;
  background: #f4f6f6;
  border-right: 1px solid #d4dadd;
  padding: 30px 30px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  line-height: 1.7;
}

.ks-contact-page .ks-cf7-required {
  min-width: 52px;
  height: 30px;
  display: inline-flex;
  align-self: center;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  background: var(--ks-main, #78b4cd);
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.ks-contact-page .ks-cf7-row:last-child .ks-cf7-label {
  align-items: flex-start;
}

.ks-contact-page .ks-cf7-row:last-child .ks-cf7-required {
  align-self: flex-start;
}

.ks-contact-page .ks-cf7-input {
  padding: 12px;
  background: #fff;
}

.ks-contact-page .ks-cf7-input .wpcf7-form-control-wrap {
  display: block;
}

.ks-contact-page .ks-cf7-input p {
  margin: 0;
}

.ks-contact-page input[type="text"],
.ks-contact-page input[type="email"],
.ks-contact-page input[type="tel"],
.ks-contact-page textarea {
  width: 100%;
  border: 1px solid #c4d0d0;
  background: #fff;
  color: var(--ks-text, #000);
  border-radius: 0;
  box-shadow: none;
  font-size: 14px;
  line-height: 1.6;
  padding: 22px 16px;
}

.ks-contact-page textarea {
  min-height: 210px;
  resize: vertical;
}

.ks-contact-page .ks-cf7-privacy {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.8;
}

.ks-contact-page .ks-cf7-privacy a {
  color: var(--ks-main, #78b4cd);
  text-decoration: underline;
}

.ks-contact-page .ks-cf7-consent {
  margin: 50px 0 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.7;
}

.ks-contact-page .ks-cf7-consent .wpcf7-list-item {
  margin: 0;
}

.ks-contact-page .ks-cf7-consent .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ks-contact-page .ks-cf7-consent input[type="checkbox"] {
  width: 26px;
  height: 26px;
  margin-right: 0;
  flex: 0 0 auto;
}

.ks-contact-page .ks-cf7-submit {
  margin: 24px auto 0;
  width: 380px;
  max-width: 100%;
  text-align: left;
  position: relative;
}

.ks-contact-page .ks-cf7-submit .wpcf7-submit {
  display: block;
  width: 100%;
  min-width: 0;
  height: 88px;
  border: 0;
  border-radius: 0;
  background: var(--ks-main, #78b4cd);
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.25;
  text-align: left;
  padding: 0 29px;
}

.ks-contact-page .ks-cf7-submit::after {
  content: "";
  position: absolute;
  right: 35px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 1px solid #fff;
  border-right: 1px solid #fff;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
}

.ks-contact-page .ks-cf7-submit .wpcf7-spinner {
  position: absolute;
  left: calc(100% + 8px);
  top: 50%;
  margin: 0;
  transform: translateY(-50%);
}

.ks-contact-page-notes {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}

.ks-contact-page-notes li {
  position: relative;
  margin: 0 0 2px;
  padding-left: 16px;
  font-size: 14px;
  line-height: 1.7;
}

.ks-contact-page-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--ks-main, #78b4cd);
}

.ks-contact-page-phone-block {
  padding: 0 0 125px;
}

.ks-contact-page-phone-block .ks-inner {
  border-top: 1px solid #bcd2dd;
  border-bottom: 1px solid #bcd2dd;
  padding: 45px 0;
  display: flex;
  align-items: center;
  gap: 45px;
}

.ks-contact-page-phone-block h2 {
  margin: 0;
  color: var(--ks-main, #78b4cd);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.3;
  white-space: nowrap;
}

.ks-contact-page-phone-block p {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.ks-contact-page-phone-block p img {
  width: 20px;
  height: 20px;
}

.ks-contact-page-phone-number {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}

.ks-contact-page-phone-hours {
  font-size: 18px;
  line-height: 1.7;
  letter-spacing: 0.01em;
}

.ks-contact-page-phone-block a[href^="tel"],
.ks-contact-page-phone-block a[x-apple-data-detectors],
.ks-contact-page-phone-block a[x-apple-data-detectors-type="telephone"] {
  color: inherit !important;
  text-decoration: none !important;
  font: inherit;
}

@media (max-width: 1024px) {
  .ks-contact-page .ks-cf7-row {
    grid-template-columns: 230px minmax(0, 1fr);
  }

  .ks-contact-page-phone-block .ks-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
}

@media (max-width: 767px) {
  .ks-contact-page {
    padding-top: 53px;
  }

  .ks-contact-page .ks-inner {
    width: calc(100% - 40px);
  }

  .ks-contact-page-intro {
    padding: 45px 0 45px;
  }

  .ks-contact-page-title {
    font-size: 34px;
    letter-spacing: 0.12em;
  }

  .ks-contact-page-title img {
    width: 195px;
    max-width: 100%;
    height: auto;
    display: inline-block;
  }

  .ks-contact-page-subtitle {
    font-size: 14px;
  }

  .ks-contact-page-lead {
    margin-top: 30px;
    font-size: 13px;
    line-height: 1.9;
  }

  .ks-contact-page-guide-link {
    margin-top: 16px;
  }

  .ks-contact-page-guide-link a {
    min-width: 0;
    width: 100%;
    font-size: 15px;
  }

  .ks-contact-page-copy {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.9;
  }

  .ks-contact-page-copy span {
    font-size: 12px;
  }

  .ks-contact-page-form-block {
    padding-bottom: 42px;
  }

  .ks-contact-page-form-head {
    padding-top: 24px;
  }

  .ks-contact-page-form-head h2 {
    font-size: 20px;
  }

  .ks-contact-page-phone-block h2 {
    font-size: 20px;
  }

  .ks-contact-page-form-head p {
    font-size: 13px;
  }

  .ks-contact-page .ks-cf7-row {
    grid-template-columns: 1fr;
  }

  .ks-contact-page .ks-cf7-label {
    border-right: 0;
    border-bottom: 1px solid #d4dadd;
    padding: 14px 14px;
    font-size: 13px;
  }

  .ks-contact-page .ks-cf7-required {
    min-width: 52px;
    height: 30px;
    display: inline-flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--ks-main, #78b4cd);
    color: #fff;
    font-size: 12px;
    line-height: 1;
  }

  .ks-contact-page .ks-cf7-input {
    padding: 10px;
  }

  .ks-contact-page input[type="text"],
  .ks-contact-page input[type="email"],
  .ks-contact-page input[type="tel"],
  .ks-contact-page textarea {
    font-size: 16px;
    padding: 12px 12px;
  }

  .ks-contact-page textarea {
    min-height: 180px;
  }

  .ks-contact-page .ks-cf7-privacy {
    font-size: 11px;
  }

  .ks-contact-page .ks-cf7-consent {
    font-size: 14px;
  }

  .ks-contact-page .ks-cf7-consent input[type="checkbox"] {
    width: 22px;
    height: 22px;
  }

  .ks-contact-page .ks-cf7-submit .wpcf7-submit {
    height: 64px;
    font-size: 16px;
    padding: 0 18px;
  }

  .ks-contact-page .ks-cf7-submit {
    width: 100%;
  }

  .ks-contact-page .ks-cf7-submit .wpcf7-spinner {
    left: auto;
    right: 0;
    top: calc(100% + 8px);
    transform: none;
  }

  .ks-contact-page-notes li {
    font-size: 12px;
    line-height: 1.8;
  }

  .ks-contact-page-phone-block {
    padding-bottom: 64px;
  }

  .ks-contact-page-phone-block .ks-inner {
    padding: 20px 0;
  }

  .ks-contact-page-phone-number {
    font-size: 16px;
  }

  .ks-contact-page-phone-hours {
    font-size: 14px;
  }
}
