:root {
  color-scheme: dark;
  --black: #050403;
  --copper: #c87538;
  --copper-light: #e3a15f;
  --ivory: #ded7ce;
  --ash: #aaa49d;
  --line: rgba(255, 255, 255, 0.11);
  --shell: 920px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(200, 117, 56, 0.1), transparent 34rem),
    var(--black);
  color: var(--ivory);
  font-family: Inter, "Noto Sans JP", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

body::before {
  position: fixed;
  z-index: 30;
  inset: 0;
  border: 1px solid rgba(200, 117, 56, 0.08);
  pointer-events: none;
  content: "";
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.page-header {
  position: relative;
  min-height: 600px;
  border-bottom: 1px solid rgba(200, 117, 56, 0.16);
  background:
    linear-gradient(180deg, rgba(5, 4, 3, 0.28), var(--black)),
    url("/assets/rogolp.jpg") center / cover no-repeat;
}

.page-header::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 4, 3, 0.94), rgba(5, 4, 3, 0.62), rgba(5, 4, 3, 0.91));
  content: "";
}

.nav,
.header-copy {
  position: relative;
  z-index: 1;
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 100px;
}

.brand-mark {
  grid-column: 2;
  width: 112px;
  height: 72px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.92;
  filter:
    drop-shadow(0 0 2px rgba(200, 117, 56, 0.45))
    drop-shadow(0 0 8px rgba(200, 117, 56, 0.18));
}

.back-link {
  display: inline-flex;
  grid-column: 3;
  justify-self: end;
  align-items: center;
  gap: 9px;
  color: rgba(222, 215, 206, 0.62);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.header-copy {
  display: flex;
  min-height: 480px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 55px 0 110px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--copper-light);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.32em;
  line-height: 1.7;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  font-family: Georgia, "Yu Mincho", "Hiragino Mincho ProN", serif;
  font-weight: 400;
}

h1 {
  font-size: clamp(3rem, 7vw, 5.7rem);
  line-height: 1.1;
}

.header-copy > p:last-child {
  margin: 34px 0 0;
  color: var(--ash);
  font-size: 15px;
  line-height: 2;
}

.introduction {
  padding: 90px 0 50px;
  text-align: center;
}

.introduction p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ash);
  font-size: 16px;
  line-height: 2.1;
}

.contact-form {
  padding: 20px 0 120px;
}

.form-card {
  padding: 48px;
  border: 1px solid rgba(200, 117, 56, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012)),
    rgba(5, 4, 3, 0.68);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.05),
    0 45px 110px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(16px);
}

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

.field {
  display: block;
}

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

.field > span {
  display: block;
  margin-bottom: 12px;
  color: var(--ivory);
  font-size: 13px;
}

.field b {
  margin-left: 7px;
  color: var(--copper-light);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.12em;
}

input,
textarea,
select {
  width: 100%;
  min-height: 56px;
  padding: 16px 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0;
  outline: none;
  background: rgba(255, 255, 255, 0.025);
  color: var(--ivory);
  font: inherit;
  transition:
    border-color 220ms ease,
    background 220ms ease;
}

textarea {
  min-height: 180px;
  resize: vertical;
}

select {
  color-scheme: dark;
}

input::placeholder,
textarea::placeholder {
  color: rgba(222, 215, 206, 0.3);
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--copper);
  background: rgba(200, 117, 56, 0.035);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select,
.agreement.is-invalid {
  border-color: #b65a43;
}

.agreement {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  align-items: start;
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.015);
  cursor: pointer;
}

.agreement input {
  width: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--copper);
}

.agreement span {
  color: var(--ash);
  font-size: 13px;
  line-height: 1.8;
}

.agreement a {
  color: var(--copper-light);
}

.submit-area {
  margin-top: 35px;
  text-align: center;
}

.submit-area p {
  margin: 0 auto 22px;
  color: rgba(222, 215, 206, 0.38);
  font-size: 10px;
  line-height: 1.8;
}

.submit-area button {
  width: 100%;
  min-height: 62px;
  padding: 16px 25px;
  border: 1px solid var(--copper);
  border-radius: 999px;
  background: var(--copper);
  color: var(--black);
  cursor: pointer;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
  transition:
    background 220ms ease,
    opacity 220ms ease,
    transform 220ms ease;
}

.submit-area button:hover:not(:disabled) {
  background: var(--copper-light);
  transform: translateY(-2px);
}

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

.success {
  padding: 120px 0;
  text-align: center;
}

.success img {
  width: 100px;
  margin: 0 auto 30px;
  opacity: 0.76;
}

.success > p:not(.eyebrow) {
  margin: 28px 0 0;
  color: var(--ash);
  font-size: 15px;
  line-height: 2;
}

.success small {
  display: block;
  margin-top: 18px;
  color: rgba(222, 215, 206, 0.42);
  font-size: 11px;
  line-height: 1.8;
}

.success > a {
  display: inline-flex;
  margin-top: 30px;
  padding: 12px 0;
  color: var(--copper-light);
  text-decoration: none;
}

.support-info {
  padding: 105px 0;
  border-top: 1px solid rgba(200, 117, 56, 0.16);
  border-bottom: 1px solid rgba(200, 117, 56, 0.16);
  background:
    radial-gradient(circle at 50% 100%, rgba(200, 117, 56, 0.08), transparent 30rem),
    #080705;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid rgba(200, 117, 56, 0.24);
}

.support-grid article {
  display: flex;
  min-height: 270px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 35px;
  text-align: center;
}

.support-grid article + article {
  border-left: 1px solid var(--line);
}

.support-grid h2 {
  font-size: 29px;
}

.support-grid article > p:not(.eyebrow) {
  margin: 25px 0 0;
  color: var(--ash);
  line-height: 1.8;
}

.support-grid strong {
  color: var(--ivory);
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 400;
}

.support-grid article > a {
  margin-top: 28px;
  color: var(--copper-light);
  font-size: 16px;
  text-decoration: none;
}

.support-grid small {
  margin-top: 18px;
  color: rgba(222, 215, 206, 0.4);
  font-size: 11px;
  line-height: 1.8;
}

footer {
  display: grid;
  justify-items: center;
  padding: 85px 20px 35px;
  background: #030302;
}

footer img {
  width: 160px;
  opacity: 0.78;
}

footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 28px;
  margin-top: 38px;
}

footer nav a {
  padding: 9px 0;
  color: rgba(222, 215, 206, 0.48);
  font-size: 11px;
  text-decoration: none;
}

footer nav a:hover {
  color: var(--copper-light);
}

footer > p {
  margin: 46px 0 0;
  color: rgba(222, 215, 206, 0.26);
  font-size: 10px;
}

@media (max-width: 680px) {
  .page-header {
    min-height: 560px;
  }

  .nav {
    min-height: 88px;
  }

  .brand-mark {
    width: 92px;
    height: 62px;
  }

  .back-link {
    font-size: 9px;
  }

  .header-copy {
    min-height: 460px;
    padding-bottom: 90px;
  }

  .header-copy > p:last-child {
    font-size: 14px;
  }

  .introduction {
    padding: 75px 0 40px;
  }

  .introduction p {
    font-size: 14px;
  }

  .contact-form {
    padding-bottom: 95px;
  }

  .form-card {
    padding: 30px 22px;
  }

  .form-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

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

  .support-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}
