:root {
  --bg-page: #f4f4f4;
  --bg-header: #ffffff;
  --bg-input: #f7f7f8;
  --bg-note: #f3f3f4;
  --line: #d4d4d6;
  --text-main: #2f3339;
  --text-muted: #6a7078;
  --brand: #8d2a2d;
  --accent: #ff432f;
  --footer-bg: #ffffff;
  --top-btn: #8a8a8d;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg-page);
  color: var(--text-main);
  font-family: "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.8;
}

a {
  color: #1f2c43;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  z-index: 20;
  background: var(--bg-header);
  border-top: 1px solid #ececee;
  border-bottom: 1px solid #ececee;
}

.header-inner {
  width: 100% !important;
  max-width: none !important;
  height: 70px;
  margin: 0 !important;
  padding: 0 clamp(20px, 3vw, 44px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

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

.brand-logo {
  display: block;
  width: 290px;
  height: auto;
}

.global-nav {
  display: flex;
  margin-left: auto;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.global-nav a {
  color: #262b33;
}

.global-nav a:hover {
  color: #5c5c5c;
  text-decoration: none;
}

.main-area {
  padding: 20px 16px 56px;
}

.contact-wrap {
  max-width: 760px;
  margin: 0 auto;
}

h1 {
  margin: 0;
  padding-top: 1rem;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  position: relative;
}

.lead {
  margin: 34px 0 26px;
  font-size: 18px;
  line-height: 1.85;
  text-align: center;
}

.contact-form {
  display: grid;
  row-gap: 12px;
}

.contact-form label,
.field-label {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.25;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg-input);
  padding: 9px 12px;
  border-radius: 0;
  color: #20242b;
  font-size: 14px;
  font-family: inherit;
  line-height: 1.4;
}

.contact-form input[type="text"],
.contact-form input[type="email"] {
  height: 40px;
}

.contact-form textarea {
  min-height: 260px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #9da6b1;
}

.checks {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px 12px;
  margin-bottom: 2px;
}

.checks label {
  margin: 0;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.checks input,
.contact-form .consent input {
  accent-color: #2682d7;
}

.checks input[type="radio"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.contact-form .consent {
  display: block;
  width: fit-content;
  justify-self: center;
  margin: 28px auto 0;
  font-size: 15px;
  text-align: center;
}

.privacy {
  margin-top: 20px;
}

.privacy h2 {
  margin: 0 0 12px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.privacy p {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.82;
}

.policy-note-text {
  margin: 44px 0 14px;
  text-align: center;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
}

.policy-note-text a {
  text-decoration: underline;
}

.policy-note-text a:hover {
  color: #5c5c5c;
  text-decoration: underline;
}

.submit-row {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

.submit-row button {
  width: clamp(220px, 70vw, 360px);
  max-width: 100%;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

.submit-row button:hover {
  filter: brightness(0.97);
}

.submit-row button:disabled,
.submit-row button.is-busy {
  cursor: not-allowed;
  opacity: 0.7;
  filter: grayscale(20%);
}

.contact-form.is-submitting .submit-row button {
  cursor: not-allowed !important;
  pointer-events: none;
}

.contact-thanks {
  margin: 38px auto 30px;
  padding: 9px 14px;
  width: 100%;
  max-width: calc(38em + 64px);
  background: transparent;
  border: 2px solid #4ab56d;
  border-radius: 0;
  font-size: 14px;
  font-weight: 400;
  color: #2d3137;
  line-height: 1.35;
}

@media (max-width: 1600px) {
  .contact-thanks {
    padding: 6px 12px;
    margin: 30px auto 24px;
  }
}

.note-box {
  margin: 94px auto 0;
  padding: 34px 32px;
  max-width: calc(38em + 64px);
  background: #ffffff;
  border: 1px solid #ececee;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.85;
}

.site-footer {
  margin-top: 52px;
  padding: 24px 16px 18px;
  text-align: center;
  background: var(--footer-bg);
  border-top: 1px solid #e1e1e2;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  font-size: 14px;
}

.footer-links a:hover {
  color: #5c5c5c;
  text-decoration: none;
}

.site-footer p {
  margin: 10px 0 0;
  font-size: 14px;
  color: #2e3340;
}

.to-top {
  position: fixed;
  right: 38px;
  bottom: 20px;
  width: 42px;
  height: 42px;
  border: 0;
  background: var(--top-btn);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

/* Source screenshots are effectively shown at a zoomed desktop scale. */
@media (max-width: 1600px) {
  .contact-form label,
  .field-label,
  .checks label {
    font-size: 15px;
    transform: none;
    margin: 0;
    line-height: 1.2;
  }

  .contact-form .consent {
    transform: none;
    margin: 18px auto 0;
  }

  .privacy {
    margin-top: 14px;
  }

  .privacy h2 {
    transform: none;
    margin-top: 0;
    margin-bottom: 10px;
  }

  .privacy p {
    transform: none;
    margin-top: 0;
  }

  .policy-note-text {
    transform: none;
    margin-top: 30px;
    margin-bottom: 12px;
  }

  .submit-row {
    margin-top: 22px;
  }

  .submit-row button {
    width: clamp(200px, 68vw, 320px);
    max-width: 100%;
    height: 48px;
    font-size: 17px;
    transform: none;
    margin-top: 0;
  }

  .note-box {
    transform: none;
    margin-top: 70px;
    margin-bottom: 0;
  }

  .footer-links {
    transform: none;
  }

  .site-footer p {
    transform: none;
    margin-top: 6px;
  }
}

@media (max-width: 1024px) {
  .brand-logo {
    width: 240px;
  }

  .global-nav {
    gap: 16px;
    font-size: 14px;
  }

  .main-area {
    padding: 36px 16px 56px;
  }

  h1 {
    font-size: 38px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: auto;
    padding: 12px 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .brand-logo {
    width: 220px;
  }

  .global-nav {
    gap: 12px;
    flex-wrap: wrap;
    white-space: normal;
  }

  h1 {
    font-size: 34px;
  }

  .lead {
    margin: 22px 0 20px;
    font-size: 15px;
  }

  .contact-form label,
  .field-label,
  .checks label,
  .consent,
  .privacy h2,
  .privacy p,
  .policy-note-text,
  .submit-row button,
  .note-box,
  .footer-links,
  .site-footer p {
    transform: none;
    margin: 0;
    font-size: inherit;
  }

  .contact-form label,
  .field-label,
  .checks label {
    font-size: 14px;
  }

  .checks {
    gap: 8px 12px;
  }

  .contact-form textarea {
    min-height: 240px;
  }

  .contact-form .consent {
    margin: 10px auto 0;
    font-size: 14px;
  }

  .privacy h2 {
    margin-top: 14px;
    font-size: 15px;
    font-weight: 400;
  }

  .privacy p {
    font-size: 15px;
    font-weight: 400;
  }

  .policy-note-text {
    margin-top: 16px;
    font-size: 11px;
    font-weight: 400;
  }

  .submit-row button {
    width: min(100%, 320px);
    font-size: 17px;
  }

  .note-box {
    margin: 32px auto 0;
    padding: 20px;
    font-size: 15px;
    font-weight: 400;
  }

  .site-footer {
    margin-top: 32px;
  }

  .footer-links,
  .site-footer p {
    font-size: 12px;
  }

  .to-top {
    right: 12px;
    bottom: 12px;
  }
}