@charset "utf-8";

/* hero */
.bp-hero {
  position: relative;
  overflow: hidden;
  margin-top: -32px;
}

/* 背景画像（全体に敷く） */
.bp-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/common/page-mv-bg.webp") no-repeat;
  background-position: left bottom;
  background-size: cover;
  pointer-events: none;
}

/* 上部：タイトルエリア */
.bp-hero-top {
  position: relative;
  z-index: 1;
  padding: calc(var(--header-h) + 40px) 0 0;
}

.bp-hero-title {
  font-family: "Ubuntu", system-ui, sans-serif;
  font-size: clamp(40px, calc(40px + (100vw - 540px) * 40 / 1380), 80px);
  /* 80px at max */
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.2em;
  line-height: 1;
  text-shadow: 0 0 15px #007DCC;
  margin: 0;
}

/* 下部：キャッチコピーエリア */
.bp-hero-bottom {
  position: relative;
  z-index: 1;
  padding: clamp(100px, calc(100px + (100vw - 768px) * 200 / 832), 300px) 0 0;
  text-align: center;
}

.bp-hero-catch {
  position: relative;
  font-family: "Shippori Antique", serif;
  font-size: clamp(32px, calc(32px + (100vw - 540px) * 63 / 1380), 95px);
  font-weight: 400;
  color: #007DCC;
  letter-spacing: 0.5em;
  margin: 0 0 20px;
  line-height: 1;
  z-index: 1;
}

.bp-hero-catch::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 66%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 30px;
  background: url("../img/common/line-1.png") no-repeat center / 100% auto;
  pointer-events: none;
  z-index: -1;
}

.bp-hero-lead {
  font-family: "Shippori Antique", serif;
  font-size: clamp(16px, calc(16px + (100vw - 540px) * 24 / 1380), 40px);
  /* 40px at max */
  font-weight: 400;
  color: #007DCC;
  letter-spacing: 0.2em;
  margin: 0;
  line-height: 2;
}

/* Contact Form base */
.wpcf7 {
  margin-bottom: 140px;
}

.wpcf7-response-output {
  display: block;
  width: 100%;
  max-width: 960px;
  margin: 0 auto 150px !important;
  border-radius: 4px;
}

.c-contactForm,
.c-contactConfirm {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  padding-top: 80px;
}

.c-contactForm p {
  margin: 0;
}

.c-formRow {
  display: grid;
  grid-template-columns: 180px 70px 1fr;
  column-gap: 18px;
  align-items: start;
  padding: 16px;
  border-bottom: 1px solid #eef0f2;
}

.c-formLabel {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.6;
}

.contact-h2-container {
  margin: 0 auto;
  width: 100%;
  display: block;
}

.contact-h2 {
  text-align: center;
  color: var(--text);
  font-size: 2.5rem;
  letter-spacing: .2em;
  font-weight: 400;
  line-height: 1;
}

.contact_text {
  text-align: center;
  margin: 0;
}

.c-formReq {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.c-required {
  display: inline-block;
  border: 1px solid #BE1E41;
  color: #BE1E41;
  font-size: 12px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 2px;
  white-space: nowrap;
}

.cf-input,
.cf-textarea {
  width: 100%;
  border: 1px solid #dcdcdc;
  border-radius: 3px;
  padding: 12px 14px;
  background: #fff;
  font-size: 14px;
  box-sizing: border-box;
}

.cf-input {
  height: 46px;
}

.cf-textarea {
  min-height: 160px;
  resize: vertical;
}

.cf-input:focus,
.cf-textarea:focus {
  outline: none;
  border-color: #007DCC;
  box-shadow: 0 0 0 3px rgba(0, 125, 204, .15);
}

.c-formHelp {
  grid-column: 3 / 4;
  margin-top: 8px;
  font-size: 12px;
  color: #777;
  line-height: 1.6;
}

.c-address {
  display: grid;
  gap: 12px;
}

.cf-input--zip {
  max-width: 240px;
}

.c-contactForm .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

@media(max-width:1080px) {

  .c-contactForm,
  .c-contactConfirm {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
  }
}

@media(max-width:768px) {
  .contact-h2 {
    font-size: 1.8rem;
  }

  .bp-hero-top {
    padding: calc(var(--header-h) + 40px) 0 100px;
  }
}

@media(max-width:540px) {

  .contact-h2 {
    font-size: 1.5rem;
  }
}

/*  Confirm CTA (戻る/送信 共通)  */
.wpcf7 .cf-submit,
.wpcf7 .cf-prevBtn {
  padding: 0;
  cursor: pointer;
}

.wpcf7 .cf-submit .c-ctaBtn-icon,
.wpcf7 .cf-prevBtn .c-ctaBtn-icon {
  background: #3999FF;
}

.wpcf7 .cf-submit .c-ctaBtn-arrow,
.wpcf7 .cf-prevBtn .c-ctaBtn-arrow {
  width: 13px;
  height: 11px;
  -webkit-mask: url("../img/common/cta-arrow.svg") no-repeat center / contain;
  mask: url("../img/common/cta-arrow.svg") no-repeat center / contain;
  transition: background-color .25s ease;
  background: #fff;
}

/* hover（共通）*/
.wpcf7 .cf-submit:hover,
.wpcf7 .cf-prevBtn:hover {
  background: #3999FF;
  color: #fff;
  border-color: #3999FF;
}

.wpcf7 .cf-submit:hover .c-ctaBtn-icon,
.wpcf7 .cf-prevBtn:hover .c-ctaBtn-icon {
  background: #fff;
}

.wpcf7 .cf-submit:hover .c-ctaBtn-arrow,
.wpcf7 .cf-prevBtn:hover .c-ctaBtn-arrow {
  background: #3999FF;
}

/* disabled（送信だけ想定） */
.wpcf7 .cf-submit:disabled,
.wpcf7 .cf-submit.is-disabled {
  opacity: .45;
  cursor: not-allowed;
}

/*  戻る：左にアイコン＋左向き矢印  */
.wpcf7 .cf-prevBtn .c-ctaBtn-arrow {
  transform: scaleX(-1);
}

/* CF7 error */
.wpcf7-not-valid-tip {
  font-size: 12px;
  margin-top: 8px;
}

/* Confirm (optional) */
.c-confirmRow {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  padding: 24px 12px;
  border-bottom: 1px solid #eee;
}

.c-confirmPrev {
  position: relative;
  display: inline-block;
}

.c-confirmPrev .wpcf7-previous {
  width: 235px;
  height: 64px;
  border-radius: 999px;
  border: 1px solid #3999FF;
  background: #fff;
  color: #3999FF;
  padding: 0 22px 0 30px;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;

  transition: background-color .25s ease, color .25s ease, border-color .25s ease;
}

.c-confirmPrev::before {
  content: "";
  position: absolute;
  left: 29%;
  top: 50%;
  width: 21px;
  height: 21px;
  border-radius: 70px;
  transform: translateY(-50%);
  background: #3999FF;
  pointer-events: none;
}

.c-confirmPrev::after {
  content: "";
  position: absolute;
  left: 29%;
  top: 50%;
  width: 13px;
  height: 11px;
  transform: translate(4px, -50%) scaleX(-1);
  /* 少し中央寄せ + 左向き */
  -webkit-mask: url("../img/common/cta-arrow.svg") no-repeat center / contain;
  mask: url("../img/common/cta-arrow.svg") no-repeat center / contain;
  background: #fff;
  pointer-events: none;
}

@media(max-width:540px) {
  .c-confirmRow {
    grid-template-columns: 70px 1fr;
  }
}

/* hover：送信ボタンと同じ反転 */
.c-confirmPrev:hover .wpcf7-previous {
  background: #3999FF;
  color: #fff;
  border-color: #3999FF;
}

.c-confirmPrev:hover::before {
  background: #fff;
}

.c-confirmPrev:hover::after {
  background: #3999FF;
}

.c-confirmLabel {
  font-weight: 600;
}

.c-confirmVal {
  color: #333;
}

.c-confirmBtns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 50px auto;
}

.c-thanks-box {
  display: block;
  margin: 0 auto 140px;
  text-align: center;
}

@media (max-width: 768px) {
  .c-formRow {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 16px 8px;
    margin: auto 8px;
  }

  .c-privacyBody {
    grid-template-columns: 1fr;
  }

  .c-privacyText {
    border-right: 0;
    border-bottom: 1px solid #e6e6e6;
  }

  .c-formHelp {
    grid-column: 1 / -1;
    margin-top: 6px;
  }

  .c-confirmBtns {
    flex-direction: column;
  }

  .c-thanks-box {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
  }
}

.c-privacyBox--v2 {
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .04);
  margin: 30px 16px;
}

.c-privacyBox--v2 .c-privacyHead {
  display: flex;
  justify-content: flex-start;
  gap: 20px;
  align-items: center;
  padding: 16px 18px;
  background: linear-gradient(90deg, rgba(0, 125, 204, .10), rgba(0, 125, 204, 0));
  border-bottom: 1px solid #eef0f2;
}

.c-privacyBox--v2 .c-privacyTitle {
  margin: 0;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-privacyBox--v2 .c-privacyTitle::before {
  content: "";
  width: 4px;
  height: 18px;
  background: #007DCC;
  border-radius: 999px;
}

.c-privacyBox--v2 .c-privacyBody {
  display: grid;
  grid-template-columns: 1fr;
  background: #fff;
}

.c-privacyBox--v2 .c-privacyText {
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.9;
  color: #333;
}

.c-privacyBox--v2 .c-privacyLink {
  color: #007DCC;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.c-privacyBox--v2 .c-privacyAgree {
  padding: 14px 18px 18px;
  border-top: 1px dashed #e6e6e6;
}

.c-privacyBox--v2 .c-privacyAgree .wpcf7-list-item {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: #f7fafc;
}

.c-privacyBox--v2 .c-privacyAgree input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.c-privacyBox--v2 .c-privacyAgree .wpcf7-list-item-label {
  margin: 0;
  font-weight: 600;
  color: #222;
}

.c-contactCta {
  margin: 50px auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.c-formError {
  margin-top: 8px;
  font-size: 12px;
  color: #d60000;
  line-height: 1.5;
}

.cf-input.is-error {
  border-color: #d60000;
  box-shadow: 0 0 0 3px rgba(214, 0, 0, .12);
}

@media(max-width:1080px) {
  .c-contact-hero {
    width: min(var(--container), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
  }
}

@media(max-width:768px) {
  .c-privacyBox--v2 {
    margin: 16px 16px;
  }
}

/* 下層heroレスポンシブ */
@media(max-width:1600px) {
  .bp-hero::before {
    background-size: cover;
    background-position: center top;
  }
}

@media(max-width: 768px) {
  .bp-hero {
    margin-top: -46px;
  }

  .bp-hero-title {
    display: block;
    text-align: center;
    line-height: 1.1;
  }

  .bp-hero::after {
    height: 200px;
  }

  .bp-hero-catch {
    letter-spacing: 0.1em;
  }

  .bp-hero-catch::after {
    height: 20px;
  }

  .bp-hero-lead {
    letter-spacing: 0.1em;
  }

  .bp-hero-bottom {
    padding: clamp(100px, calc(100px + (100vw - 768px) * 200 / 832), 300px) 0 50px;
  }
}

@media(max-width: 540px) {
  .bp-hero-bottom {
    padding: 40px 0 30px;
  }

  .bp-hero-catch {
    letter-spacing: 0.08em;
    margin-bottom: 16px;
  }

  .bp-hero-catch::after {
    height: 15px;
  }

  .bp-hero-lead {
    letter-spacing: 0.08em;
  }

}

@media(max-width: 375px) {
  .bp-hero-catch {
    letter-spacing: 0.05em;
    margin-bottom: 12px;
  }

  .bp-hero-catch::after {
    height: 12px;
  }

  .bp-hero-lead {
    letter-spacing: 0.05em;
  }
}