:root {
  --space-deep: #050814;
  --neon-cyan: #4cd3ff;
  --text: #f0f5ff;
  --text-muted: rgba(240, 245, 255, 0.72);
  --max: 560px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  background: linear-gradient(180deg, #030610 0%, #0a1235 45%, #12082a 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { color: var(--neon-cyan); }

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: calc(16px + var(--safe-top)) 20px calc(48px + var(--safe-bottom));
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--text-muted);
  text-decoration: none;
}

.back:hover { color: var(--text); }

.contact-hero {
  margin-bottom: 28px;
}

.contact-hero__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 5.5vw, 28px);
  font-weight: 800;
  color: #fff8d0;
  line-height: 1.3;
}

.contact-hero__lead {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
}

.contact-hero__lead strong {
  color: rgba(240, 245, 255, 0.92);
  font-weight: 600;
}

.contact-hero__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(240, 245, 255, 0.5);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-field__label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(240, 245, 255, 0.9);
  letter-spacing: 0.02em;
}

.contact-field__req {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  color: #ffb878;
  background: rgba(255, 160, 80, 0.12);
  border: 1px solid rgba(255, 180, 120, 0.35);
  border-radius: 3px;
  vertical-align: middle;
}

.contact-field__input,
.contact-field__select,
.contact-field__textarea {
  width: 100%;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background: rgba(8, 12, 32, 0.85);
  border: 1px solid rgba(179, 136, 255, 0.28);
  border-radius: 6px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-field__input::placeholder,
.contact-field__textarea::placeholder {
  color: rgba(240, 245, 255, 0.35);
}

.contact-field__input:focus,
.contact-field__select:focus,
.contact-field__textarea:focus {
  border-color: rgba(76, 211, 255, 0.55);
  box-shadow: 0 0 0 3px rgba(76, 211, 255, 0.12);
}

.contact-field__select-wrap {
  position: relative;
}

.contact-field__select {
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
}

.contact-field__select-wrap::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid rgba(240, 245, 255, 0.55);
  border-bottom: 2px solid rgba(240, 245, 255, 0.55);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.contact-field__select:invalid {
  color: rgba(240, 245, 255, 0.45);
}

.contact-field__textarea {
  resize: vertical;
  min-height: 160px;
}

.contact-form__submit {
  margin-top: 8px;
  padding: 14px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: #1a1000;
  background: linear-gradient(180deg, #f0d070 0%, #d4a830 100%);
  border: 1px solid rgba(255, 220, 140, 0.5);
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(255, 200, 80, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.contact-form__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(255, 200, 80, 0.35);
}

.contact-form__submit:active {
  transform: translateY(0);
}

.contact-thanks {
  text-align: center;
  padding: 48px 12px 24px;
}

.contact-thanks__title {
  margin: 0 0 16px;
  font-size: clamp(22px, 5.5vw, 26px);
  font-weight: 800;
  color: #fff8d0;
}

.contact-thanks__lead {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--text-muted);
}

.contact-thanks__link {
  display: inline-block;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid rgba(179, 136, 255, 0.35);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.contact-thanks__link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.page--legal {
  max-width: 640px;
}

.legal-updated {
  margin: 0;
  font-size: 11px;
  line-height: 1.6;
  color: rgba(240, 245, 255, 0.45);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #fff8d0;
  line-height: 1.45;
}

.legal-section h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e8d090;
  line-height: 1.45;
}

.legal-section p {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 10px;
  padding-left: 1.25em;
  font-size: 13px;
  line-height: 1.85;
  color: var(--text-muted);
}

.legal-section li + li {
  margin-top: 4px;
}

.legal-section strong {
  color: rgba(240, 245, 255, 0.9);
  font-weight: 600;
}

.legal-section a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-meta {
  margin-top: 12px !important;
  padding-top: 12px;
  border-top: 1px solid rgba(179, 136, 255, 0.18);
  font-size: 12px !important;
  color: rgba(240, 245, 255, 0.5) !important;
}

.operator-list {
  margin: 0 0 24px;
  padding: 0;
  border: 1px solid rgba(179, 136, 255, 0.22);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(8, 12, 32, 0.6);
}

.operator-list__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(179, 136, 255, 0.12);
}

.operator-list__row:last-child {
  border-bottom: none;
}

@media (min-width: 520px) {
  .operator-list__row {
    grid-template-columns: 7.5em 1fr;
    gap: 16px;
    align-items: start;
  }
}

.operator-list dt {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #e8d090;
}

.operator-list dd {
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-muted);
}

.operator-list a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.operator-note {
  margin: 0;
  padding: 14px 16px;
  font-size: 12px;
  line-height: 1.75;
  text-align: center;
  color: rgba(240, 245, 255, 0.5);
  border: 1px dashed rgba(179, 136, 255, 0.2);
  border-radius: 6px;
}
