.contact-page {
  background: #fff;
  color: var(--ink, #292929);
  color-scheme: light;
}

.contact-skip {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  background: #fff;
  color: var(--ink, #292929);
}

.contact-skip:focus {
  width: auto;
  height: auto;
  padding: 10px 16px;
  clip-path: none;
}

.contact-hero {
  padding: clamp(58px, 8vw, 116px) 0 clamp(52px, 7vw, 100px);
  text-align: center;
}

.contact-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
  margin: 0 0 clamp(20px, 3vw, 32px);
  color: #696969;
  font-size: 0.83rem;
}

.contact-breadcrumb [aria-current] {
  color: var(--ink, #292929);
}

.contact-breadcrumb a:hover,
.contact-breadcrumb a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-hero h1,
.contact-card h2,
.contact-guide h2,
.inquiry-result h3 {
  margin: 0;
  font-family: var(--serif, "Noto Serif SC", SimSun, serif);
  font-weight: 500;
}

.contact-hero h1 {
  font-size: clamp(2.7rem, 6vw, 5rem);
  line-height: 1.15;
  letter-spacing: 0.06em;
}

.contact-hero p {
  max-width: 38ch;
  margin: 20px auto 0;
  color: #696969;
  font-size: clamp(0.96rem, 1.4vw, 1.08rem);
  line-height: 1.85;
}

.contact-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(225px, 0.42fr);
  gap: clamp(30px, 7vw, 96px);
  align-items: start;
  padding-bottom: clamp(80px, 11vw, 154px);
  scroll-margin-top: 24px;
}

.contact-card {
  min-width: 0;
  padding: clamp(23px, 5vw, 64px);
  border: 1px solid var(--line, #e9e9e9);
  background: #fff;
  box-shadow: 0 16px 48px #2b20200c;
}

.contact-card h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  line-height: 1.35;
}

.contact-intro {
  max-width: 49ch;
  margin: 12px 0 clamp(30px, 4vw, 48px);
  color: #696969;
  line-height: 1.8;
}

.inquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 29px 24px;
}

.form-field--wide {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.93rem;
  font-weight: 600;
}

.field-optional,
.field-hint {
  color: #696969;
  font-size: 0.82rem;
  font-weight: 400;
}

.form-field :is(input, select, textarea),
.inquiry-result textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #949494;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
  line-height: 1.5;
}

.form-field select {
  padding-inline-end: 9px;
}

.form-field textarea,
.inquiry-result textarea {
  resize: vertical;
}

.form-field :is(input, textarea)::placeholder {
  color: #696969;
  opacity: 1;
}

.form-field :is(input, select, textarea):focus-visible,
.inquiry-result textarea:focus-visible {
  outline: 2px solid #9b5861;
  outline-offset: 3px;
}

.field-hint {
  margin: 8px 0 0;
  line-height: 1.65;
}

.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.form-actions :disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.contact-aside {
  display: grid;
  gap: clamp(26px, 4vw, 47px);
}

.contact-guide {
  padding-top: 24px;
  border-top: 1px solid var(--line, #e9e9e9);
}

.contact-guide h2 {
  font-size: 1.28rem;
  line-height: 1.5;
}

.contact-guide ul {
  margin: 14px 0 0;
  padding-inline-start: 1.15rem;
  color: #565656;
  font-size: 0.94rem;
  line-height: 1.75;
}

.contact-guide ul li + li {
  margin-top: 8px;
}

.contact-guide ul li::marker {
  color: #9b5861;
}

.contact-guide ol {
  margin: 15px 0 20px;
  padding: 0;
  list-style: none;
  counter-reset: contact-step;
}

.contact-guide ol li {
  display: flex;
  gap: 12px;
  align-items: baseline;
  color: #565656;
  font-size: 0.94rem;
  counter-increment: contact-step;
}

.contact-guide ol li + li {
  margin-top: 10px;
}

.contact-guide ol li::before {
  min-width: 1.55rem;
  color: #9b5861;
  font-size: 0.81rem;
  font-variant-numeric: tabular-nums;
  content: counter(contact-step, decimal-leading-zero);
}

.contact-guide a {
  display: inline-block;
  padding-block: 4px;
  border-bottom: 1px solid var(--accent, #d18f96);
  color: var(--ink, #292929);
  font-size: 0.91rem;
  font-weight: 600;
}

.contact-guide a:hover,
.contact-guide a:focus-visible,
.contact-footer-inner a:hover,
.contact-footer-inner a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.inquiry-result {
  margin-top: 35px;
  padding: clamp(16px, 2vw, 26px);
  border-top: 1px solid var(--accent, #d18f96);
  background: #fcf6f6;
}

.inquiry-result h3 {
  font-size: 1.25rem;
}

.inquiry-result p {
  margin: 9px 0 15px;
  color: #565656;
  font-size: 0.9rem;
  line-height: 1.65;
}

.inquiry-result textarea {
  padding-inline: 12px;
}

.result-actions {
  margin-top: 14px;
}

.result-actions .button--outline {
  border: 1px solid #a98789;
  background: transparent;
  color: var(--ink, #292929);
}

.result-actions .button--outline:hover {
  background: #f7e4e6;
}

.inquiry-result .result-message {
  margin: 8px 0 0;
  color: #75444a;
}

.inquiry-result .result-message:empty {
  margin: 0;
}

.form-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.contact-footer {
  padding-block: 0;
  border-top: 1px solid var(--line, #e9e9e9);
  background: #fff;
  color: #696969;
}

.contact-footer-inner {
  padding-block: 32px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .contact-content {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-top: 12px;
  }
}

@media (max-width: 540px) {
  .contact-hero {
    padding: 46px 0 48px;
  }

  .contact-hero h1 {
    font-size: clamp(2.4rem, 10.5vw, 3.4rem);
  }

  .inquiry-form,
  .contact-aside {
    grid-template-columns: minmax(0, 1fr);
  }
}
