@charset "utf-8";

/* メールフォームページ(rec/contact_index.html)。index_new_test.css の上に読み込む */

.contact-section {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(76px + clamp(48px, 7vw, 88px)) max(20px, calc((100vw - 1120px) / 2)) clamp(110px, 12vw, 150px);
  background:
    radial-gradient(circle at 12% 0%, rgba(240, 109, 87, 0.08), transparent 34vw),
    radial-gradient(circle at 88% 8%, rgba(199, 154, 74, 0.16), transparent 32vw),
    radial-gradient(ellipse 95% 55% at 50% 100%, rgba(199, 154, 74, 0.14), transparent 58%),
    linear-gradient(180deg, #120d0c 0%, #181210 28%, #1c1511 62%, #2a211b 100%);
  color: #fffaf3;
}

.contact-section__mark {
  position: absolute;
  top: calc(76px + 30px);
  right: max(20px, calc((100vw - 1120px) / 2));
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: linear-gradient(
    90deg,
    rgba(168, 128, 52, 0.18) 0%,
    rgba(244, 214, 155, 0.36) 52%,
    rgba(255, 232, 188, 0.26) 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  pointer-events: none;
}

.contact-section__mark::before {
  display: inline-block;
  width: clamp(72px, 18vw, 140px);
  height: 2px;
  flex-shrink: 0;
  content: "";
  background: linear-gradient(
    90deg,
    rgba(168, 128, 52, 0.16) 0%,
    rgba(244, 214, 155, 0.34) 55%,
    rgba(255, 232, 188, 0.22) 100%
  );
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
}

.contact-section__head {
  margin: 0 0 32px;
}

.contact-section__head h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-serif);
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0.1em;
}

.contact-card {
  padding: clamp(28px, 5vw, 52px) clamp(20px, 5vw, 52px);
  border: 1px solid rgba(199, 154, 74, 0.32);
  border-radius: clamp(10px, 1.5vw, 14px);
  background: linear-gradient(165deg, rgba(42, 36, 32, 0.94) 0%, rgba(22, 19, 17, 0.96) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 248, 235, 0.08);
}

.contact-fields {
  display: grid;
  gap: 24px;
}

.contact-field label,
.contact-confirm dt {
  display: block;
  margin: 0 0 8px;
  color: #e8c98a;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.contact-field input,
.contact-field textarea {
  display: block;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(199, 154, 74, 0.3);
  border-radius: var(--radius-md);
  background: rgba(255, 250, 243, 0.05);
  color: #fffaf3;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: 0.04em;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.contact-field textarea {
  min-height: 220px;
  resize: vertical;
}

.contact-field input:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--color-gold);
  background: rgba(255, 250, 243, 0.08);
  box-shadow: 0 0 0 3px rgba(199, 154, 74, 0.24);
}

.contact-turnstile {
  display: flex;
  justify-content: center;
  min-height: 65px;
  margin: 32px 0 0;
}

.contact-note {
  margin: 24px 0 0;
  color: rgba(255, 250, 243, 0.72);
  font-size: 0.92rem;
  line-height: 1.8;
  text-align: center;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin: 24px 0 0;
}

.contact-actions .btn {
  min-width: min(240px, 100%);
  font-size: 1rem;
  letter-spacing: 0.14em;
  cursor: pointer;
}

.contact-btn-secondary {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.06);
  color: #fffaf3;
}

.contact-actions .btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.86);
  outline-offset: 3px;
}

.contact-error {
  margin: 0 0 28px;
  padding: 14px 18px;
  border: 1px solid rgba(240, 109, 87, 0.5);
  border-radius: var(--radius-md);
  background: rgba(240, 109, 87, 0.12);
  color: #ffd2c8;
  line-height: 1.8;
}

.contact-done {
  margin: 0;
  color: #fffaf3;
  line-height: 2;
  text-align: center;
}

.contact-confirm {
  margin: 0;
}

.contact-confirm div {
  display: grid;
  grid-template-columns: 8em minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(199, 154, 74, 0.2);
}

.contact-confirm div:first-child {
  padding-top: 0;
}

.contact-confirm dt {
  margin: 0;
}

.contact-confirm dd {
  margin: 0;
  color: #fffaf3;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.contact-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 640px) {
  .contact-section__mark {
    top: calc(70px + 22px);
  }

  .contact-section__head {
    margin-top: 32px;
  }

  .contact-confirm div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
