/* Contact, Thanks and Privacy extend the label's existing typography and palette. */
.page-heading--utility { display: block; }
.page-heading--utility .section-title { height: auto; }
.page-heading--utility > p { margin-top: 8px; padding-bottom: 0; }
.contact-page .page-heading { padding-bottom: 0; border-bottom: 0; }
.page-heading--privacy .section-title { font-size: clamp(48px, 5.5vw, 80px); }
.contact-layout { display: grid; grid-template-columns: 335fr 985fr; align-items: start; margin-top: 64px; }
.contact-intro { position: sticky; top: 128px; padding-right: 56px; font-size: 13px; line-height: 2; }
.contact-intro h2 { margin: 0 0 24px; font: 400 20px/1.5 "termina", "Noto Sans JP", sans-serif; }
.contact-intro p + p { margin-top: 16px; }
.contact-notice { padding: 14px 16px; background: #d6d6d6; font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.contact-form-area { min-width: 0; scroll-margin-top: 112px; }
.contact-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.contact-steps li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding-bottom: 12px; border-bottom: 1px solid #8d8d8d; color: #595959; font-size: 13px; }
.contact-steps li[aria-current="step"] { border-color: var(--bg); color: var(--bg); box-shadow: 0 1px 0 var(--bg); }
.contact-steps span { font: 400 12px/1.5 "termina", "Noto Sans JP", sans-serif; }
.contact-required-note { margin-bottom: 28px; font-size: 12px; color: #595959; }
.contact-required-note > span { color: var(--bg); }
#contact-fields { display: grid; gap: 28px; min-width: 0; margin: 0; padding: 0; border: 0; }
.contact-field label { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; font-size: 14px; font-weight: 500; }
.contact-required, .contact-optional { font-size: 10px; font-weight: 400; }
.contact-optional { color: #595959; }
.contact-required::before { content: '*'; margin-right: 4px; }
.contact-field input, .contact-field select, .contact-field textarea { display: block; width: 100%; min-width: 0; min-height: 52px; padding: 12px 14px; border: 1px solid #8d8d8d; border-radius: 0; background: transparent; color: var(--bg); font: 400 16px/1.7 "Noto Sans JP", sans-serif; }
.contact-field select { -webkit-appearance: none; appearance: none; padding-right: 48px; background-image: url("assets/form-chevron.svg"); background-repeat: no-repeat; background-position: right 16px center; background-size: 16px 16px; }
.contact-field textarea { min-height: 190px; resize: vertical; }
.contact-field :is(input, select, textarea):focus-visible { outline: none; border-color: var(--bg); }
.contact-field [aria-invalid="true"] { border-color: var(--bg); box-shadow: inset 0 0 0 1px var(--bg); }
.contact-field-error { margin-top: 8px; font-size: 12px; line-height: 1.8; }
.contact-error-summary { margin-bottom: 28px; padding: 16px; border-left: 3px solid var(--bg); background: #d6d6d6; font-size: 13px; line-height: 1.8; }
.contact-consent { padding-block: 8px; font-size: 13px; line-height: 1.8; }
.contact-consent > label { display: flex; align-items: flex-start; gap: 12px; width: fit-content; cursor: pointer; }
.contact-consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--bg); }
.contact-consent > a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; margin-left: 32px; }
.policy-link { text-decoration: underline !important; text-underline-offset: 4px; }
.contact-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 24px; width: min(100%, 320px); min-height: 64px; padding: 0; border: 0; border-bottom: 1px solid var(--bg); border-radius: 0; background: transparent; color: var(--bg) !important; font: 400 16px/1.7 "Noto Sans JP", sans-serif; text-align: left; text-decoration: none; transition: color .3s cubic-bezier(.2,.7,.3,1), border-color .3s cubic-bezier(.2,.7,.3,1); }
.contact-button > span { flex: none; font-size: 20px; line-height: 1; transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.contact-button:disabled { border-color: #8d8d8d; color: #595959 !important; cursor: not-allowed; }
.contact-button:not(:disabled):focus-visible { outline: none; box-shadow: 0 1px 0 currentColor; }
.contact-button:not(:disabled):focus-visible > span { transform: translateX(4px); }
#confirmation-title { margin: 0 0 16px; font-size: 22px; line-height: 1.7; font-weight: 500; }
#confirmation-title:focus { outline: none; }
.contact-confirm-description { margin-bottom: 32px; font-size: 13px; line-height: 1.9; }
.contact-review { margin: 0; padding: 0; }
.contact-review > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; padding: 24px 0; border-bottom: 1px solid #8d8d8d; font-size: 14px; line-height: 2; }
.contact-review dt { font-weight: 500; }
.contact-review dd { min-width: 0; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.contact-confirm-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; margin-block: 40px 24px; }
.contact-back-button { min-height: 44px; padding: 0; border: 0; background: none; color: var(--bg); font: 400 13px/1.8 "Noto Sans JP", sans-serif; text-decoration: underline; text-underline-offset: 4px; }
.thanks-root, .thanks-view { background: var(--bg); color: var(--ink); }
.subpage-root.thanks-root { background: var(--bg); color-scheme: dark; scrollbar-color: #666 var(--bg); }
.thanks-root:has(.site-menu[open]) { color-scheme: light; scrollbar-color: #8d8d8d var(--paper); }
.thanks-view .skip-link { color: var(--bg); }
.thanks-view .header-logo-light { visibility: visible; }
.thanks-view .header-logo-dark { visibility: hidden; }
.thanks-page { display: flex; align-items: center; min-height: 100svh; padding-top: 176px; padding-bottom: 104px; overflow: clip; }
.thanks-content { position: relative; width: 100%; min-width: 0; container-type: inline-size; }
/* Cap-heightに行高を寄せ、切り取り段の間隔にフォント上部の空きが加算されるのを抑える。 */
.thanks-display { display: grid; font: 700 clamp(44px, 13.7cqw, 300px)/.78 "termina", "Noto Sans JP", sans-serif; letter-spacing: -.05em; }
.thanks-wordmark { display: block; margin: 0; font: inherit; letter-spacing: inherit; white-space: nowrap; }
.thanks-wordmark-echo { height: .32em; margin-bottom: .012em; overflow: hidden; pointer-events: none; }
.thanks-wordmark-echo-first { height: .14em; margin-bottom: .025em; }
.thanks-return { display: flex; justify-content: center; margin-top: 40px; }
.thanks-home { width: min(100%, 360px); border-color: var(--ink); color: var(--ink) !important; font: 500 16px/1.5 "termina", "Noto Sans JP", sans-serif; white-space: nowrap; }
.thanks-home:not(:disabled):focus-visible { border-color: var(--accent); color: var(--accent) !important; }
.policy-content { margin: 64px 0 0 calc(335 / 1320 * 100%); font-size: 15px; line-height: 2.2; overflow-wrap: anywhere; }
.policy-section { margin-top: 56px; scroll-margin-top: 128px; }
.policy-section h2 { margin: 0 0 20px; font-size: 20px; line-height: 1.8; font-weight: 500; }
.policy-section p + p { margin-top: 16px; }
.policy-section ul { margin: 16px 0; padding-left: 1.3em; }
.policy-business { margin: 24px 0 0; }
.policy-business > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; padding: 16px 0; border-bottom: 1px solid #8d8d8d; }
.policy-business dd { margin: 0; }
.policy-pending { font-size: 13px; color: #595959; }
.policy-date { margin-top: 48px; font-size: 12px; color: #595959; }
@media (hover: hover) and (pointer: fine) {
  .contact-button:not(:disabled):hover > span { transform: translateX(4px); }
  .thanks-home:not(:disabled):hover { border-color: var(--accent); color: var(--accent) !important; }
}
@media (max-width: 767px), (max-width: 1023px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .page-heading--privacy .section-title { font-size: clamp(27px, 8.2vw, 44px); }
  .page-heading--utility > p { margin-top: 4px; }
  .contact-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; margin-top: 32px; }
  .contact-intro { position: static; padding: 0; font-size: 14px; line-height: 1.95; }
  .contact-intro h2 { margin-bottom: 16px; font-size: 18px; }
  .contact-form-area { scroll-margin-top: 104px; }
  .contact-steps { gap: 12px; }
  .contact-steps li { position: relative; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px; min-height: 44px; padding: 0 0 10px; border: 0; font-size: 12px; line-height: 1.5; }
  .contact-steps li[aria-current="step"] { box-shadow: none; }
  .contact-steps li::after { content: ''; position: absolute; inset: auto 0 0; height: 1px; background: #8d8d8d; }
  .contact-steps li[aria-current="step"]::after { height: 2px; background: var(--bg); }
  #contact-fields { gap: 28px; }
  .contact-field textarea { height: 180px; min-height: 180px; }
  .contact-consent > label { min-height: 44px; align-items: center; }
  .contact-consent input { margin-block: 0; }
  .contact-button { width: 100%; min-height: 60px; font-size: 15px; }
  .contact-review > div { grid-template-columns: minmax(0, 1fr); gap: 8px; padding-block: 20px; }
  .contact-review dt { font-size: 12px; }
  .contact-confirm-actions { flex-direction: column-reverse; align-items: stretch; gap: 16px; margin-top: 32px; }
  .contact-back-button { align-self: flex-start; }
  .thanks-page { padding-top: 128px; padding-bottom: 64px; }
  .thanks-display { font-size: 13.7cqw; }
  .thanks-wordmark-echo-first { margin-bottom: .04em; }
  .thanks-wordmark > span { display: inline; margin-top: 0; }
  .thanks-return { margin-top: 40px; }
  .thanks-home { font-size: 14px; }
  .policy-content { margin: 28px 0 0; font-size: 13px; line-height: 1.9; }
  .policy-section { margin-top: 28px; scroll-margin-top: 96px; }
  .policy-section h2 { margin-bottom: 14px; font-size: 16px; line-height: 1.7; }
  .policy-business > div { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 767px) and (max-height: 500px), (max-width: 1023px) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .thanks-page { padding-top: 104px; padding-bottom: 32px; }
  .thanks-display { font-size: clamp(44px, 13.7cqw, 140px); }
  .thanks-wordmark > span { display: inline; margin-top: 0; }
  .thanks-return { margin-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-button { transition: none; }
}

#contact-challenge { margin-top:24px; min-width:0; }
#contact-send-error { margin-top:16px; line-height:1.8; }
.policy-section a { text-decoration:underline; text-underline-offset:3px; }
