:root {
  --ace-red: #ae0414;
  --ace-red-dark: #7b040f;
  --ink: #080808;
  --muted: #4c4c4c;
  --page: #f2f2f2;
  --white: #fff;
  --line: #eeeeee;
  --input-bg: #f3f3f3;
  --soft-red: #fff4f6;
  --shadow-rest: 0 1px 0 rgba(0, 0, 0, 0.02);
  --shadow-hover: 0 14px 28px rgba(32, 32, 32, 0.08);
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo,
    sans-serif;
  color: var(--ink);
  background: var(--page);
  letter-spacing: 0;
}

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

button {
  font: inherit;
}

.site-header {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 30px;
  background: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ace-red);
  font-weight: 800;
}

.brand-name img {
  max-width: 225px;
  height: auto;
  display: block;
}
.site-header .outline-button:hover {
    background: #fff;
    color: var(--ace-red);
    box-shadow: none !important;
    transform: none !important;
}
.outline-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 22px;
  border: 1px solid var(--ace-red);
  border-radius: 999px;
  color: var(--ace-red);
  background: var(--white);
  font-size: 14px;
  font-weight: 700;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.outline-button:hover {
  color: var(--white);
  background: var(--ace-red);
  border-color: var(--ace-red);
  box-shadow: 0 8px 18px rgba(183, 15, 47, 0.18);
  transform: translateY(-1px);
}

.outline-button:focus-visible,
.contact-button:focus-visible,
.footer-link:focus-visible,
.btn:focus-visible,
.btn-back:focus-visible {
  outline: 3px solid rgba(183, 15, 47, 0.22);
  outline-offset: 4px;
}

main {
  min-height: calc(100vh - 100px);
  display: grid;
  grid-template-rows: 1fr auto;
}

.screen {
  display: none;
}

.screen.is-active {
  display: block;
}

.contact-section {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 102px 30px 72px;
  text-align: center;
}

h1 {
  margin: 0;
  font-size: clamp(30px, 4.2vw, 40px);
  line-height: 1.42;
  font-weight: 800;
}

.lead {
  margin: 24px 0 48px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.contact-list {
  display: grid;
  gap: 16px;
  text-align: left;
}

.contact-button {
  position: relative;
  display: grid;
  grid-template-columns: 70px 1fr 54px;
  align-items: center;
  width: 100%;
  min-height: 100px;
  padding: 18px 28px 18px 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  box-shadow: var(--shadow-rest);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition:
    border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease),
    transform 0.22s var(--ease),
    background-color 0.22s var(--ease);
}

.contact-button::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: var(--ace-red);
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease);
}

.contact-button:hover {
  border-color: rgba(183, 15, 47, 0.16);
  box-shadow: 0 8px 18px rgba(183, 15, 47, 0.08);
  transform: translateY(-1px);
  background: #fff8fa;
}

.contact-button:hover::before {
  transform: scaleY(1);
}

.icon-badge {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f6f6f6;
  transition:
    background-color 0.22s var(--ease),
    transform 0.22s var(--ease);
}

.icon-badge img {
  max-width: 30px;
  height: auto;
}

.contact-button:hover .icon-badge {
  background: var(--white);
  transform: scale(1.02);
}

.contact-title {
  display: block;
  margin: 0 0 8px;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 800;
}

.contact-copy {
  display: block;
  margin: 0;
  color: #141414;
  font-size: 14px;
  line-height: 1.45;
}

.arrow {
  position: relative;
  justify-self: end;
  width: 44px;
  height: 18px;
  color: var(--ace-red);
  transition:
    transform 0.22s var(--ease),
    color 0.22s var(--ease);
}

.arrow::before,
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  background: currentColor;
  transform-origin: right center;
}

.arrow::before {
  width: 42px;
  height: 1px;
  transform: translateY(-50%);
  transition: width 0.22s var(--ease);
}

.arrow::after {
  width: 15px;
  height: 1px;
  transform: translateY(-50%) rotate(45deg);
}

.contact-button:hover .arrow {
  color: var(--ace-red-dark);
  transform: translateX(5px);
}

.contact-button:hover .arrow::before {
  width: 50px;
}

/* ---------- form / confirm ---------- */
.form-section {
  width: min(100%, 800px);
  margin: 40px auto;
}

.btn-back {
  --btn-back-h: 40px;
  --btn-back-tip: 29px;
  position: relative;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--btn-back-h);
  margin: 0 0 28px 20px;
  padding: 0px 16px 0px 12px;
  border: 0;
  border-radius: 0 4px 4px 0;
  background: var(--ace-red);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease);
}

.btn-back::before {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--btn-back-tip) / -2);
  z-index: -1;
  width: var(--btn-back-tip);
  height: var(--btn-back-tip);
  background: inherit;
  border-radius: 3px 0 3px 3px;
  transform: translateY(-50%) rotate(45deg);
}

.btn-back:hover {
  background: var(--ace-red-dark);
}

.form-head {
  margin-bottom: 40px;
  text-align: left;
}

.form-head h1 {
  font-size: 40px;
}

.form-lead {
  font-size: 15px;
  line-height: 1;
}

.form-panel form #fieldsContainer,
.form-section.is-active .confirm-list {
  background: var(--white);
  padding: 30px;
  border-radius: 5px;
}

fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

/* Honeypot: hidden from humans, visible to bots that auto-fill */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.field {
  margin-bottom: 30px;
}

.field label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
}

.req-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 2px;
  background: var(--ace-red);
  color: var(--white);
  font-size: 15px;
  border-radius: 5px;
  font-weight: normal;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  border: 0;
  border-radius: 2px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  padding: 14px 16px;
}

.field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
}

.field.is-invalid input,
.field.is-invalid textarea {
  box-shadow: 0 0 0 2px rgba(183, 15, 47, 0.35);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 35px;
}

.note-email {
  margin: 8px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #555;
}

.field-recaptcha .g-recaptcha,
.field-recaptcha #recaptchaWidget {
  display: inline-block;
}

.field-recaptcha.is-invalid #recaptchaWidget {
  box-shadow: 0 0 0 2px rgba(183, 15, 47, 0.35);
  border-radius: 3px;
}

.form-actions-split {
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 290px;
  padding: 15px 35px;
  border: 0;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    background-color 0.2s var(--ease),
    transform 0.2s var(--ease),
    opacity 0.2s var(--ease);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--ace-red);
  color: var(--white);
}

.btn-primary:hover:not(:disabled) {
  background: var(--ace-red-dark);
}

.btn-secondary {
  background: #8d8d8d;
  color: var(--white);
}

.btn-secondary:hover {
  background: #6f6f6f;
}

.confirm-list {
  display: grid;
  gap: 0;
}

.confirm-item {
  padding: 20px 0;
  border-bottom: 1px solid #ececec;
}

.confirm-item:first-child {
  padding-top: 0;
}

.confirm-item:last-child {
  border-bottom: 0;
  padding-bottom: 8px;
}

.confirm-label {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: bold;
}

.confirm-value {
  display: block;
  font-size: 18px;
}

.form-error {
  margin: 16px 0 0;
  text-align: center;
  color: var(--ace-red);
  font-size: 13px;
  font-weight: 700;
}

/* ---------- thanks ---------- */
.thanks-section {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 80px 30px 100px;
  text-align: center;
}

.thanks-panel {
  padding: 20px 10px 0;
}

.thanks-en {
  margin: 0 0 18px;
  color: var(--ace-red);
  font-size: 76px;
  font-weight: 800;
}

.thanks-title {
  font-size: 40px;
}

.thanks-copy {
  margin: 40px 0 60px 0;
  color: #222;
  font-size: 18px;
}

.thanks-panel .btn {
  min-width: 280px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px;
  font-size: 12px;
  background: var(--page);
  color: #777;
}

.footer-nav {
  display: flex;
  gap: 34px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-link {
  position: relative;
  padding: 5px 0;
  color: #555;
  transition: color 0.18s var(--ease);
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--ace-red);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.2s var(--ease);
}

.footer-link:hover {
  color: var(--ace-red);
}

.footer-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

@media (max-width: 767px) {
  .site-header {
    min-height: 82px;
    padding: 18px;
  }

  .brand-name img {
    max-width: 150px;
  }

  .outline-button {
    min-height: 34px;
    padding: 0 15px;
    font-size: 12px;
  }

  .contact-section {
    padding: 64px 18px 52px;
  }

  .contact-button {
    grid-template-columns: 54px 1fr 36px;
    min-height: 92px;
    padding: 16px 14px;
  }

  .icon-badge {
    width: 46px;
    height: 46px;
  }

  .contact-title {
    font-size: 18px;
  }

  .contact-copy {
    font-size: 12px;
  }

  .arrow {
    width: 25px;
    height: 10px;
  }

  .arrow::before {
    width: 30px;
  }
  .form-section {
    padding: 0 15px;
  }

  .btn {
    min-width: 100%;
  }

  .form-actions-split {
    flex-direction: column-reverse;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column-reverse;
    padding: 24px 18px;
  }

  .footer-nav {
    justify-content: flex-start;
    gap: 18px 26px;
  }

  .form-panel form #fieldsContainer,
  .form-section.is-active .confirm-list {
    padding: 20px 15px;
  }
  .thanks-panel {
    padding: 0px;
  }

  .thanks-en {
    font-size: 50px;
  }

  .thanks-title {
    font-size: 28px;
  }

  .thanks-copy {
    font-size: 14px;
  }

  .thanks-section {
    padding: 60px 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
