:root {
  --color-bg: #F5F0E8;
  --color-paper: #FBF8F1;
  --color-text: #1A1A1A;
  --color-accent-red: #C53D43;
  --color-error: #D32F2F;
  --color-border: #D0C8B8;
  --color-focus-ring: rgba(197, 61, 67, 0.14);
  --font-serif: "Noto Serif JP", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --font-sans: "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --transition-speed: 220ms;
  --input-bg: #FFFDF8;
  --input-border-radius: 2px;
}

.np-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.np-contact-api-error {
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-error);
  background: rgba(211, 47, 47, 0.08);
  border: 1px solid rgba(211, 47, 47, 0.35);
  border-radius: var(--input-border-radius);
}

.np-contact {
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.85;
}

.np-contact .np-container {
  max-width: 800px;
  margin: 0 auto;
  padding-inline: 20px;
}

.np-contact .np-section {
  padding-block: 72px;
}

.np-contact .np-contact-shell {
  position: relative;
}

.np-contact .np-contact-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(208, 200, 184, 0.72);
  background:
    radial-gradient(760px 280px at 14% 10%, rgba(255, 255, 255, 0.44), transparent 62%),
    radial-gradient(640px 260px at 82% 18%, rgba(197, 61, 67, 0.07), transparent 60%),
    linear-gradient(180deg, rgba(26, 26, 26, 0.02), transparent 24%);
  pointer-events: none;
}

.np-contact .np-contact-shell > * {
  position: relative;
}

.np-contact .np-page-head {
  margin-bottom: 34px;
  padding-top: 34px;
}

.np-contact .np-page-title {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 38px);
  letter-spacing: 0.02em;
}

.np-contact .np-page-rule {
  margin-top: 14px;
  height: 1px;
  background: linear-gradient(90deg, rgba(208, 200, 184, 0.25), rgba(208, 200, 184, 0.95), rgba(208, 200, 184, 0.25));
}

.np-contact .np-page-lead {
  margin: 16px 0 0;
  color: rgba(26, 26, 26, 0.75);
}

.np-contact .np-contact-form-wrap {
  background: color-mix(in srgb, var(--color-paper) 90%, #FFF);
  border: 1px solid var(--color-border);
  padding: 28px;
}

.np-contact .np-fieldset {
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.np-contact .np-field-legend {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.np-contact .np-name-grid {
  display: flex;
  gap: 16px;
}

.np-contact .np-name-grid > .np-field-group {
  flex: 1;
}

.np-contact .np-field-group {
  margin-bottom: 4px;
}

.np-contact .np-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 17px;
}

.np-contact .np-required-badge {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--color-accent-red);
  color: #FFF;
  font-size: 12px;
  line-height: 1.3;
}

.np-contact input,
.np-contact textarea,
.np-contact .np-custom-select-trigger {
  inline-size: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--input-border-radius);
  background: var(--input-bg);
  padding: 12px 16px;
  font-size: 16px;
  font-family: var(--font-sans);
  color: var(--color-text);
  transition:
    border-color var(--transition-speed) ease,
    box-shadow var(--transition-speed) ease,
    opacity 300ms ease;
}

.np-contact textarea {
  resize: vertical;
  min-height: 150px;
}

.np-contact .np-native-select-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  clip: rect(0, 0, 0, 0);
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.np-contact .np-custom-select {
  position: relative;
}

.np-contact .np-custom-select-trigger {
  position: relative;
  text-align: left;
  cursor: pointer;
  padding-right: 44px;
}

.np-contact .np-custom-select-arrow {
  position: absolute;
  right: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(26, 26, 26, 0.72);
  border-bottom: 2px solid rgba(26, 26, 26, 0.72);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
  transition: transform var(--transition-speed) ease;
}

.np-contact .np-custom-select.is-open .np-custom-select-arrow {
  transform: translateY(-35%) rotate(-135deg);
}

.np-contact .np-custom-select-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 6px 0;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: #FFF;
  max-height: 240px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(197, 61, 67, 0.55) rgba(208, 200, 184, 0.25);
}

/* Custom scrollbar (Chrome / Edge / Safari) */
.np-contact .np-custom-select-list::-webkit-scrollbar {
  width: 10px;
}
.np-contact .np-custom-select-list::-webkit-scrollbar-track {
  background: rgba(208, 200, 184, 0.18);
  border-left: 1px solid rgba(208, 200, 184, 0.55);
}
.np-contact .np-custom-select-list::-webkit-scrollbar-thumb {
  background: linear-gradient(
    180deg,
    rgba(197, 61, 67, 0.35),
    rgba(197, 61, 67, 0.6)
  );
  border-radius: 999px;
  border: 2px solid rgba(208, 200, 184, 0.22);
}
.np-contact .np-custom-select-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(
    180deg,
    rgba(197, 61, 67, 0.5),
    rgba(197, 61, 67, 0.75)
  );
}
.np-contact .np-custom-select-list::-webkit-scrollbar-corner {
  background: transparent;
}

.np-contact .np-custom-select-option {
  padding: 10px 16px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
}

.np-contact .np-custom-select-option:hover,
.np-contact .np-custom-select-option[aria-selected="true"] {
  background: color-mix(in srgb, var(--color-accent-red) 8%, #FFF);
}

.np-contact .np-custom-select-option.is-placeholder {
  color: rgba(26, 26, 26, 0.55);
  cursor: default;
}

.np-contact input:focus,
.np-contact textarea:focus,
.np-contact .np-custom-select-trigger:focus,
.np-contact .np-custom-select-trigger[aria-expanded="true"] {
  outline: none;
  border-color: var(--color-accent-red);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
}

.np-contact .np-field-group.is-error input,
.np-contact .np-field-group.is-error textarea,
.np-contact .np-field-group.is-error .np-custom-select-trigger {
  border-color: var(--color-error);
}

.np-contact .np-error {
  min-height: 22px;
  margin: 6px 0 0;
  color: var(--color-error);
  font-size: 13px;
  line-height: 1.5;
}

.np-contact .np-counter-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
}

.np-contact .np-char-counter {
  font-size: 13px;
  color: rgba(26, 26, 26, 0.62);
}

.np-contact .np-detail-wrap {
  opacity: 1;
}

.np-contact .np-detail-wrap.is-hidden {
  display: none;
  opacity: 0;
}

.np-contact .np-submit-row {
  margin-top: 4px;
}

.np-contact .np-privacy-fieldset {
  margin-top: 2px;
}

.np-contact .np-privacy-consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.np-contact .np-privacy-consent input[type="checkbox"] {
  margin-top: 6px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-accent-red);
}

.np-contact .np-privacy-consent-label {
  font-size: 15px;
  line-height: 1.8;
  color: rgba(26, 26, 26, 0.88);
}

.np-contact .np-privacy-inline-link {
  color: var(--color-accent-red);
  text-underline-offset: 3px;
}

.np-contact .np-privacy-inline-link:hover {
  text-decoration: underline;
}

.np-contact .np-privacy-dialog-open {
  margin-top: 14px;
  padding: 10px 16px;
  font-family: var(--font-sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid var(--color-border);
  border-radius: 2px;
  background: var(--input-bg);
  color: rgba(26, 26, 26, 0.82);
  transition:
    border-color var(--transition-speed) ease,
    background var(--transition-speed) ease;
}

.np-contact .np-privacy-dialog-open:hover {
  border-color: rgba(197, 61, 67, 0.35);
  background: #fff;
}

.np-contact .np-privacy-dialog-open:focus-visible {
  outline: 2px solid rgba(197, 61, 67, 0.35);
  outline-offset: 2px;
}

.np-contact .np-submit-btn {
  inline-size: 100%;
  min-inline-size: 240px;
  border: 1px solid var(--color-accent-red);
  border-radius: 2px;
  padding: 14px 20px;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 18px;
  color: #FFF;
  background: var(--color-accent-red);
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition:
    filter var(--transition-speed) ease,
    transform var(--transition-speed) ease,
    opacity var(--transition-speed) ease;
}

.np-contact .np-submit-btn:hover {
  filter: brightness(1.1);
}

.np-contact .np-submit-btn:active {
  transform: translateY(1px);
}

.np-contact .np-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  filter: none;
}

.np-contact .np-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #FFF;
  border-radius: 50%;
  animation: np-spin 0.7s linear infinite;
  display: none;
}

.np-contact .np-submit-btn.is-loading .np-spinner {
  display: inline-block;
}

.np-contact .np-contact-form {
  opacity: 1;
  transition: opacity 300ms ease;
}

.np-contact .np-contact-form.is-fading {
  opacity: 0;
}

.np-contact .np-contact-complete {
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 320ms ease,
    transform 320ms ease;
  text-align: center;
  padding: 18px 10px 2px;
}

.np-contact .np-contact-complete.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.np-contact .np-complete-check {
  width: 66px;
  height: 66px;
  margin: 0 auto 16px;
  border: 1px solid var(--color-accent-red);
  border-radius: 50%;
  position: relative;
}

.np-contact .np-complete-check::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 32px;
  border-right: 3px solid var(--color-accent-red);
  border-bottom: 3px solid var(--color-accent-red);
  transform: rotate(40deg);
  left: 23px;
  top: 12px;
}

.np-contact .np-complete-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(23px, 3vw, 30px);
}

.np-contact .np-complete-text {
  margin: 10px 0 20px;
}

.np-contact .np-complete-link {
  display: inline-block;
  border: 1px solid var(--color-border);
  padding: 11px 16px;
  background: #FFF;
  text-decoration: none;
  font-family: var(--font-serif);
}

@keyframes np-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .np-contact .np-section {
    padding-block: 56px;
  }

  .np-contact .np-contact-form-wrap {
    padding: 20px;
  }

  .np-contact .np-name-grid {
    flex-direction: column;
    gap: 8px;
  }

  .np-contact input,
  .np-contact textarea,
  .np-contact .np-custom-select-trigger {
    padding: 11px 14px;
  }

  .np-contact .np-submit-btn {
    width: 100%;
  }
}
