@charset "UTF-8";

.jz-contact-page {
  overflow: hidden;
  background: #f3f4f5;
  color: var(--jz-ink);
}

.jz-contact-hero {
  position: relative;
  min-height: clamp(620px, calc(100svh - var(--jz-header-height)), 760px);
  overflow: hidden;
  border-bottom: 1px solid rgba(6, 54, 117, .08);
  background:
    radial-gradient(circle at 80% 18%, rgba(42, 132, 216, .2), transparent 28%),
    radial-gradient(circle at 91% 54%, rgba(93, 201, 184, .16), transparent 24%),
    #fafbfc;
}

.jz-contact-hero::before,
.jz-contact-hero::after {
  position: absolute;
  content: '';
  pointer-events: none;
}

.jz-contact-hero::before {
  top: -34%;
  right: -3%;
  width: min(42vw, 620px);
  aspect-ratio: 1;
  border: 1px solid rgba(8, 116, 201, .13);
  transform: rotate(32deg);
}

.jz-contact-hero::after {
  right: 6%;
  bottom: -22%;
  width: min(31vw, 440px);
  aspect-ratio: 1;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0), rgba(8, 116, 201, .055));
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.jz-contact-hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
}

.jz-contact-hero-copy {
  position: absolute;
  top: 44%;
  left: 0;
  width: min(76%, 920px);
  transform: translateY(-50%);
}

.jz-contact-hero h1,
.jz-contact-form-heading h2,
.jz-contact-consultation h2 {
  width: max-content;
  padding-block: .08em;
  color: #24272b;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-weight: 700;
  letter-spacing: -.055em;
}

.jz-contact-hero h1 {
  font-size: clamp(88px, 9.4vw, 160px);
  line-height: 1.12;
  white-space: nowrap;
}

.jz-contact-hero h1::after {
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 14px;
  background: #0b66b4;
  content: '';
}

.jz-contact-hero-title {
  margin-top: 20px !important;
  color: #25292e;
  font-size: clamp(20px, 1.5vw, 25px);
  font-weight: 700;
  letter-spacing: .03em;
}

.jz-contact-hero-lead {
  margin-top: 22px !important;
  color: #526777;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
}

.jz-contact-hero-index {
  position: absolute;
  top: 36%;
  right: 0;
  color: #0b66b4;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .18em;
  writing-mode: vertical-rl;
}

.jz-contact-breadcrumb {
  position: absolute;
  right: 0;
  bottom: 60px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #5b6670;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .05em;
}

.jz-contact-breadcrumb a {
  border-bottom: 1px solid currentColor;
}

.jz-contact-form-section {
  padding-block: clamp(112px, 9vw, 156px) clamp(128px, 10vw, 172px);
  background:
    radial-gradient(circle at 4% 24%, rgba(50, 132, 216, .08), transparent 17%),
    radial-gradient(circle at 97% 62%, rgba(95, 202, 183, .08), transparent 18%),
    #f2f3f4;
}

.jz-contact-form-heading {
  display: grid;
  grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: clamp(48px, 7vw, 112px);
  margin-bottom: clamp(72px, 7vw, 104px);
}

.jz-contact-section-label {
  color: #0b66b4;
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .14em;
}

.jz-contact-form-heading h2 {
  grid-column: 1;
  margin-top: 12px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(38px, 3.8vw, 58px);
  line-height: 1.35;
  letter-spacing: -.035em;
}

.jz-contact-form-heading h2::after,
.jz-contact-consultation h2::after {
  display: block;
  width: 46px;
  height: 3px;
  margin-top: 16px;
  background: #0b66b4;
  content: '';
}

.jz-contact-form-lead {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 660px;
  color: #536777;
  font-size: 16px;
  line-height: 1.95;
}

.jz-contact-consultation {
  margin-bottom: 80px;
  border-top: 1px solid #91a9bb;
}

.jz-contact-consultation > header,
.jz-contact-consultation dl > div {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
}

.jz-contact-consultation > header {
  align-items: end;
  padding-block: 34px 42px;
  border-bottom: 1px solid #b8c9d7;
}

.jz-contact-consultation h2 {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 30px;
  line-height: 1.45;
  letter-spacing: -.025em;
}

.jz-contact-consultation dl > div {
  padding-block: 26px;
  border-bottom: 1px solid #b8c9d7;
}

.jz-contact-consultation dt {
  color: #063675;
  font-size: 14px;
  font-weight: 700;
}

.jz-contact-consultation dd,
.jz-contact-consultation > p {
  color: #536777;
  font-size: 16px;
  line-height: 1.9;
}

.jz-contact-consultation > p {
  margin-top: 24px !important;
}

.jz-contact-form-shell {
  border-top: 1px solid #91a9bb;
}

.jz-contact-form-shell .wpcf7-form {
  margin: 0;
}

.jz-contact-form-shell .p-contact-row {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 48px;
  min-width: 0;
  margin: 0;
  padding-block: 30px;
  border: 0;
  border-bottom: 1px solid #b8c9d7;
}

.jz-contact-form-shell .p-contact-row > p {
  display: contents;
}

.jz-contact-form-shell .p-contact-row > p > br {
  display: none;
}

.jz-contact-form-shell .p-contact-label {
  align-self: start;
  padding-top: 15px;
  color: #173553;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.7;
}

.jz-contact-form-shell .p-contact-req {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  border: 1px solid #0b66b4;
  border-radius: 0;
  background: transparent;
  color: #0b66b4;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.jz-contact-form-shell .wpcf7-form-control-wrap {
  display: block;
  min-width: 0;
}

.jz-contact-form-shell .p-contact-input,
.jz-contact-form-shell .p-contact-textarea {
  width: 100%;
  min-width: 0;
  padding: 14px 16px;
  border: 1px solid #b5c6d4;
  border-radius: 0;
  background: rgba(255, 255, 255, .88);
  color: #173553;
  font: inherit;
  font-size: 16px;
  line-height: 1.7;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.jz-contact-form-shell .p-contact-input {
  min-height: 56px;
}

.jz-contact-form-shell .p-contact-textarea {
  min-height: 190px;
  resize: vertical;
}

.jz-contact-form-shell .p-contact-input:focus,
.jz-contact-form-shell .p-contact-textarea:focus {
  outline: none;
  border-color: #0b66b4;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(8, 116, 201, .12);
}

.jz-contact-form-shell .p-contact-input::placeholder,
.jz-contact-form-shell .p-contact-textarea::placeholder {
  color: #8795a1;
}

.jz-contact-form-shell .p-contact-checks,
.jz-contact-form-shell .p-contact-checks > p,
.jz-contact-form-shell .wpcf7-checkbox {
  min-width: 0;
  margin: 0;
}

.jz-contact-form-shell .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 30px;
}

.jz-contact-form-shell .wpcf7-list-item {
  margin: 0;
}

.jz-contact-form-shell .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: #334d63;
  font-size: 16px;
  line-height: 1.6;
  cursor: pointer;
}

.jz-contact-form-shell input[type='checkbox'] {
  /* 押しやすさのため24px（2026-09-20 デジタル庁デザインシステム：的は24px以上） */
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  accent-color: #063675;
}

.jz-contact-form-shell .p-contact-row--agree {
  display: block;
  padding-block: 30px;
}

.jz-contact-form-shell .p-contact-row--agree > p {
  display: block;
}

.jz-contact-form-shell .p-contact-row--agree .wpcf7-list-item-label {
  color: #334d63;
}

.jz-contact-form-shell .p-contact-row--agree a {
  padding-bottom: 2px;
  border-bottom: 2px solid #0b66b4;
  color: #173553;
}

.jz-contact-form-shell form > p:last-of-type {
  margin: 44px 0 0;
  text-align: right;
}

.jz-contact-form-shell .p-contact-submit {
  min-width: 240px;
  min-height: 58px;
  margin: 0;
  padding: 14px 32px;
  border: 1px solid #063675;
  border-radius: 0;
  background: #063675;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background-color .25s ease, color .25s ease;
}

.jz-contact-form-shell .p-contact-submit:hover {
  background: transparent;
  color: #063675;
  transform: none;
}

.jz-contact-form-shell .wpcf7-spinner {
  vertical-align: middle;
}

.jz-contact-form-shell .wpcf7-response-output {
  margin: 28px 0 0;
  padding: 14px 18px;
  border-radius: 0;
  color: #173553;
  font-size: 14px;
  line-height: 1.8;
}

.jz-contact-form-shell .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #a52222;
  font-size: 16px;
}

@media (max-width: 767px) {
  .jz-contact-hero {
    min-height: 520px;
  }

  .jz-contact-hero::before {
    top: -16%;
    right: -32%;
    width: 94vw;
  }

  .jz-contact-hero::after,
  .jz-contact-hero-index {
    display: none;
  }

  .jz-contact-hero-copy {
    top: 43%;
    width: 100%;
  }

  .jz-contact-hero h1 {
    font-size: clamp(56px, 20vw, 78px);
    line-height: 1.14;
  }

  .jz-contact-hero h1::after {
    width: 52px;
    height: 3px;
    margin-top: 9px;
  }

  .jz-contact-hero-title {
    margin-top: 16px !important;
    font-size: 19px;
  }

  .jz-contact-hero-lead {
    margin-top: 18px !important;
    font-size: 16px;
    line-height: 1.85;
  }

  .jz-contact-breadcrumb {
    right: auto;
    bottom: 28px;
    left: 0;
    max-width: 100%;
    font-size: 14px;
  }

  .jz-contact-form-section {
    padding-block: 84px 104px;
  }

  .jz-contact-form-heading {
    display: block;
    margin-bottom: 56px;
  }

  .jz-contact-form-heading h2 {
    font-size: clamp(32px, 9.5vw, 40px);
  }

  .jz-contact-form-lead {
    margin-top: 24px !important;
    font-size: 16px;
    line-height: 1.9;
  }

  .jz-contact-consultation {
    margin-bottom: 58px;
  }

  .jz-contact-consultation > header,
  .jz-contact-consultation dl > div {
    display: block;
  }

  .jz-contact-consultation h2 {
    margin-top: 10px;
    font-size: 26px;
  }

  .jz-contact-consultation dd {
    margin-top: 10px;
  }

  .jz-contact-form-shell .p-contact-row {
    display: block;
    padding-block: 24px;
  }

  .jz-contact-form-shell .p-contact-row > p {
    display: block;
    margin: 0;
  }

  .jz-contact-form-shell .p-contact-label {
    display: inline-block;
    padding-top: 0;
  }

  .jz-contact-form-shell .p-contact-row .wpcf7-form-control-wrap,
  .jz-contact-form-shell .p-contact-row .p-contact-checks {
    margin-top: 13px;
  }

  .jz-contact-form-shell .wpcf7-checkbox {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .jz-contact-form-shell .p-contact-row--agree .wpcf7-form-control-wrap {
    margin-top: 0;
  }

  .jz-contact-form-shell form > p:last-of-type {
    margin-top: 36px;
  }

  .jz-contact-form-shell .p-contact-submit {
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .jz-contact-form-shell :where(input, textarea, button) {
    transition: none !important;
  }
}

/* 入力の説明文（プレースホルダーの代わり。2026-09-20 デジタル庁デザインシステム：プレースホルダーは原則使わない） */
.jz-contact-form-shell .p-contact-help {
  display: block;
  margin-top: 6px;
  margin-bottom: 10px;
  color: #526d83;
  font-size: 14px;
  line-height: 1.8;
}

/* 説明文は入力欄と同じ列（右側）に置き、入力欄のすぐ上に出す */
@media (min-width: 768px) {
  .jz-contact-form-shell .p-contact-row {
    row-gap: 0;
  }

  .jz-contact-form-shell .p-contact-help,
  .jz-contact-form-shell .p-contact-row > .wpcf7-form-control-wrap,
  .jz-contact-form-shell .p-contact-row > p > .wpcf7-form-control-wrap,
  .jz-contact-form-shell .p-contact-row .p-contact-checks {
    grid-column: 2;
  }

  .jz-contact-form-shell .p-contact-row:has(.p-contact-help) .p-contact-label {
    padding-top: 0;
  }

  .jz-contact-form-shell .p-contact-row:has(.p-contact-help) .p-contact-help {
    margin-top: 0;
    margin-bottom: 10px;
  }
}

/* 必須・エラーの文字（※必須／＊エラー） */
.jz-contact-form-shell .p-contact-req {
  color: #a3243c;
}

.jz-contact-form-shell .wpcf7-not-valid-tip {
  margin-top: 8px;
  color: #a3243c;
  font-size: 14px;
  line-height: 1.8;
}

/* スマホでは1画面目を重ね置きにせず、上から順に並べる
   （文字を16pxにしたことで説明文が3行になり、パンくずと重なったため。2026-09-21） */
@media (max-width: 767px) {
  .jz-contact-hero {
    min-height: 0;
  }

  .jz-contact-hero-inner {
    padding-block: 84px 36px;
  }

  .jz-contact-hero-copy {
    position: static;
    top: auto;
    width: 100%;
    transform: none;
  }

  .jz-contact-breadcrumb {
    position: static;
    margin-top: 30px;
  }
}

/* 送信ボタンの位置。本番は迷惑送信よけの部品が後ろに入るため「最後の段落」では狙えない（2026-09-21） */
.jz-contact-form-shell form > p:has(.p-contact-submit) {
  margin: 44px 0 0;
  text-align: right;
}

@media (max-width: 767px) {
  .jz-contact-form-shell form > p:has(.p-contact-submit) {
    margin-top: 36px;
  }
}
