:root {
  --bg: #ffffff;
  --bg-soft: #f8f7fb;
  --ink: #191a2d;
  --ink-2: #505166;
  --ink-3: #85869a;
  --line: #e6e5ee;
  --line-strong: #cfcedc;
  --brand: #8062ba;
  --brand-deep: #684a9f;
  --brand-soft: #f2eef9;
  --error: #a13e52;
  --success: #456d5c;
  --serif: "Noto Serif JP", serif;
  --sans: "Inter", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 1080px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--ink-2);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: 28px;
}

.skip-link {
  position: absolute;
  z-index: 300;
  top: -56px;
  left: 10px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
}

.skip-link:focus {
  top: 10px;
}

.topbar {
  height: 3px;
  background: linear-gradient(90deg, #9b86ee, #c58ae9 56%, #e58ab9);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(230, 229, 238, 0.92);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 30px;
  height: 30px;
}

.brand-name {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.brand-en {
  display: block;
  margin-top: 1px;
  color: var(--ink-3);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.31em;
  text-transform: uppercase;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
  margin-right: 28px;
}

.header-nav a {
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 180ms ease;
}

.header-nav a:hover,
.header-nav a[aria-current="page"] {
  color: var(--brand-deep);
}

.header-contact {
  display: none;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.contact-hero {
  padding: 78px 0 62px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 82% 20%, rgba(197, 138, 233, 0.11), transparent 34%),
    linear-gradient(180deg, #fff, #fcfbfe);
}

.contact-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  align-items: end;
  gap: 64px;
}

.eyebrow {
  margin-bottom: 13px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.contact-hero h1 {
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.hero-copy {
  max-width: 560px;
  padding-bottom: 3px;
  color: var(--ink-2);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 2;
}

.contact-section {
  padding: 78px 0 100px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(210px, 0.36fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 100px);
  align-items: start;
}

.contact-guide {
  position: sticky;
  top: 110px;
}

.contact-guide h2 {
  margin-bottom: 14px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
}

.contact-guide > p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.9;
}

.contact-guide dl {
  margin-top: 32px;
  border-top: 1px solid var(--line);
}

.contact-guide dl div {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.contact-guide dt {
  color: var(--ink-3);
}

.contact-guide dd {
  color: var(--ink);
  font-weight: 500;
}

.contact-guide .direct-mail {
  margin-top: 28px;
  color: var(--ink-3);
  font-size: 12.5px;
}

.direct-mail a {
  display: inline-block;
  margin-top: 5px;
  color: var(--brand-deep);
  font-size: 14px;
  font-weight: 600;
}

.contact-form {
  border-top: 1px solid var(--ink);
}

.form-section {
  position: relative;
  padding: 38px 0 46px;
  border-bottom: 1px solid var(--line);
}

.form-section-label {
  position: absolute;
  top: 42px;
  left: 0;
  color: var(--brand);
  font-family: var(--serif);
  font-size: 13px;
}

.form-section > h2 {
  margin: 0 0 30px 44px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 22px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.label-row label {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.required,
.optional {
  display: inline-block;
  margin-left: 7px;
  vertical-align: 1px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.required {
  color: var(--brand-deep);
}

.optional {
  color: var(--ink-3);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 16px;
  line-height: 1.6;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.field input,
.field select {
  min-height: 52px;
  padding: 12px 14px;
}

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

.field input::placeholder,
.field textarea::placeholder {
  color: #aaaaba;
}

.field input:hover,
.field select:hover,
.field textarea:hover {
  border-color: #b9b7c8;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(128, 98, 186, 0.12);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
  background: #fffafb;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 17px;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--ink-3);
  border-bottom: 1.5px solid var(--ink-3);
  pointer-events: none;
  transform: translateY(-68%) rotate(45deg);
}

.field select {
  padding-right: 42px;
  appearance: none;
  -webkit-appearance: none;
}

.field-help {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 12px;
}

.field-error {
  min-height: 0;
  margin-top: 6px;
  color: var(--error);
  font-size: 12.5px;
  line-height: 1.55;
}

.field-error:empty {
  display: none;
}

.label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.character-count {
  color: var(--ink-3);
  font-size: 12px;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.form-confirmation {
  padding-top: 36px;
}

.consent {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: var(--brand);
}

.consent a {
  color: var(--brand-deep);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.form-confirmation > .field-error {
  text-align: center;
}

.submit-button {
  display: flex;
  width: min(100%, 360px);
  min-height: 58px;
  margin: 28px auto 0;
  padding: 14px 20px 14px 24px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(115deg, #9a86f5, #c489ef 55%, #ec85bd);
  box-shadow: 0 14px 30px -15px rgba(138, 99, 207, 0.58);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.submit-button svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
}

.submit-button:hover:not(:disabled) {
  background: linear-gradient(115deg, #9a86f5, #c489ef 55%, #ec85bd);
  box-shadow: 0 18px 34px -15px rgba(138, 99, 207, 0.72);
  filter: saturate(1.06) brightness(1.02);
  transform: translateY(-1px);
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.submit-note {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12px;
  text-align: center;
}

.form-status {
  margin-top: 18px;
  color: var(--error);
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
}

.form-status:empty {
  display: none;
}

.form-status a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.success-panel {
  padding: 68px 40px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.success-panel[hidden] {
  display: none;
}

.success-mark {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 0 auto 24px;
  place-items: center;
  border: 1px solid #aebcaf;
  border-radius: 50%;
  color: var(--success);
  font-size: 18px;
}

.success-panel h2 {
  margin-bottom: 16px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.success-panel p {
  font-size: 15px;
}

.success-panel a {
  display: inline-block;
  margin-top: 28px;
  padding-bottom: 2px;
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}

.site-footer {
  padding: 54px 0 28px;
  border-top: 1px solid var(--line);
  background: #fafafd;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.footer-copy {
  max-width: 310px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 26px;
}

.footer-links a {
  color: var(--ink-2);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--brand-deep);
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 12px;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .header-nav {
    display: none;
  }

  .header-contact {
    display: inline-flex;
  }

  .contact-hero {
    padding: 58px 0 48px;
  }

  .contact-hero-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .contact-section {
    padding: 54px 0 76px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-guide {
    position: static;
  }

  .contact-guide dl {
    max-width: 420px;
  }
}

@media (max-width: 620px) {
  .shell {
    padding-inline: 20px;
  }

  .header-inner {
    height: 62px;
  }

  .brand-mark {
    width: 28px;
    height: 28px;
  }

  .brand-name {
    font-size: 15px;
  }

  .brand-en {
    font-size: 8px;
  }

  .contact-hero {
    padding: 48px 0 42px;
  }

  .contact-hero h1 {
    font-size: 34px;
  }

  .hero-copy br {
    display: none;
  }

  .contact-section {
    padding-top: 46px;
  }

  .contact-layout {
    gap: 38px;
  }

  .contact-guide h2 {
    font-size: 20px;
  }

  .contact-guide > p,
  .contact-guide dl div,
  .contact-guide .direct-mail {
    font-size: 14px;
  }

  .form-section {
    padding: 32px 0 38px;
  }

  .form-section-label {
    top: 35px;
    font-size: 12px;
  }

  .form-section > h2 {
    margin: 0 0 26px 38px;
    font-size: 19px;
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .field-full {
    grid-column: auto;
  }

  .field label,
  .label-row label {
    font-size: 15px;
  }

  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }

  .field-help,
  .field-error,
  .character-count {
    font-size: 13px;
  }

  .consent {
    justify-content: flex-start;
    font-size: 14px;
  }

  .submit-button {
    width: 100%;
    min-height: 56px;
    font-size: 15px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
