:root {
  --green: #90cd41;
  --green-dark: #7fb53a;
  --text: #111111;
  --muted: #333333;
  --subtle: #777777;
  --line: #dddddd;
  --field-line: #bdbdbd;
  --bg: #ffffff;
  --panel: #ffffff;
  --hint-bg: #f8f8f8;
  --error: #b00020;
  --success-bg: #eef9e7;
  --error-bg: #fff0f0;
  --radius: 14px;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  font-size: 16px;
  background: var(--bg);
  background-color: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  background-color: var(--bg);
  font: 400 1rem/1.5 var(--font-mono);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

a {
  color: #1d5f8a;
}

a:hover,
a:active {
  text-decoration: none;
}

.page-wrap {
  width: min(100% - 2rem, 52rem);
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.site-header {
  text-align: center;
  padding: 1.65rem 0 1.45rem;
  background: var(--bg);
}

.logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: block;
  width: min(260px, 80vw);
}

.test-center-link {
  display: inline-block;
  margin-top: .75rem;
  color: #00843d;
  font-weight: 700;
  text-decoration: none;
}

.test-center-link:hover,
.test-center-link:active {
  text-decoration: underline;
}

.main {
  flex: 1;
  background: var(--bg);
}

.hero,
.form-head {
  max-width: 52rem;
  margin: 0 auto 1.1rem;
  text-align: center;
  background: var(--bg);
}

h1 {
  margin: 0 0 .9rem;
  font-size: clamp(1.4rem, 3.2vw, 1.95rem);
  line-height: 1.18;
}

.form-head h1 {
  margin-bottom: 1.1rem;
}

h2 {
  margin: 1.25rem 0 .65rem;
  font-size: 1.05rem;
  line-height: 1.25;
  text-align: center;
}

.hero p,
.form-head p {
  max-width: 46rem;
  margin: 0 auto .35rem;
  color: var(--muted);
}

.form-head p:last-child {
  margin-bottom: 0;
}

.form-head .intro-heading {
  margin-top: .35rem;
  margin-bottom: .45rem;
  color: var(--muted);
}

.card-section {
  margin: 1.25rem auto;
  background: var(--bg);
}

.action-list {
  list-style: none;
  max-width: 34rem;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: .85rem;
}

.action-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 4.1rem;
  padding: 1rem 1.15rem;
  color: #000000;
  background: var(--green);
  border-radius: var(--radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .10);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}

.action-card:hover,
.action-card:active {
  background: var(--green-dark);
  box-shadow: 0 5px 12px rgba(0, 0, 0, .14);
  transform: translateY(-2px);
}

.card-icon {
  font-size: 1.35rem;
}

.contact-form {
  margin: 1.1rem auto 1.25rem;
  padding: clamp(1rem, 4vw, 1.75rem);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}

.form-title {
  margin: 0 0 1.1rem;
  font-size: 1.1rem;
  line-height: 1.3;
  text-align: left;
}

.form-row {
  margin-bottom: 1.35rem;
}

.form-row label,
.form-row legend {
  display: block;
  margin-bottom: .48rem;
  color: var(--text);
  font-weight: 700;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="file"],
textarea,
select {
  width: 100%;
  min-width: 0;
  padding: .75rem .85rem;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--field-line);
  border-radius: 2px;
  font: inherit;
}

select {
  padding-right: 4.2rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%232b2f33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 7l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1.5rem center;
  background-size: 14px 14px;
}

select::-ms-expand {
  display: none;
}

input[type="file"] {
  padding: .65rem;
}

textarea {
  min-height: 7rem;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--green-dark);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(144, 205, 65, .28);
}

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

.radio-label,
.checkbox-label {
  display: flex !important;
  align-items: flex-start;
  gap: .55rem;
  margin: .45rem 0;
  font-weight: 400 !important;
}

.radio-label input,
.checkbox-label input {
  flex: 0 0 auto;
  margin-top: .2rem;
}

.checkbox-label input[type="checkbox"] {
  width: 1.35rem;
  height: 1.35rem;
  margin-top: .02rem;
  accent-color: var(--green-dark);
}

.checkbox-label span,
.radio-label span {
  min-width: 0;
}

.help-text,
.help-text-bold {
  display: block;
  margin: .65rem 0 1.25rem;
  padding: .78rem .9rem;
  color: #222222;
  background: var(--hint-bg);
  border-left: 4px solid var(--green);
  border-radius: 0 2px 2px 0;
  font-size: .98rem;
  line-height: 1.48;
}

.help-text-bold {
  font-size: 1rem;
  font-weight: 700;
}

.file-status {
  min-height: 1.2rem;
  margin-top: .45rem;
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.4;
}

.file-status[hidden],
.file-status:empty,
.js-form-notice[hidden],
.field-error[hidden] {
  display: none !important;
}

.file-status.is-working {
  color: #7b5e00;
  font-weight: 700;
}

.file-status.is-ok {
  color: #256500;
  font-weight: 700;
}

.file-status.is-info {
  color: var(--muted);
}

.file-status.is-error,
.field-error {
  color: var(--error);
  font-weight: 700;
}

.field-error {
  margin-top: .35rem;
  font-size: .925rem;
}

.has-error input,
.has-error textarea,
.has-error select {
  border-color: var(--error);
}

.has-error input[type="checkbox"],
.has-error input[type="radio"] {
  outline: 2px solid var(--error);
  outline-offset: 2px;
}

.notice {
  margin: 1rem auto;
  padding: 1rem 1.15rem;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.notice.success {
  background: var(--success-bg);
  border-color: #a3d881;
}

.notice.error {
  color: #520000;
  background: var(--error-bg);
  border-color: #e6a0a0;
}

.submit-button,
.shop-button,
.phone-card {
  border: 0;
  border-radius: var(--radius);
  color: #000000;
  background: var(--green);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .10);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}

.submit-button {
  width: 100%;
  padding: 1rem 1.25rem;
  cursor: pointer;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.shop-button,
.phone-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .95rem 1.5rem;
}

.shop-button {
  min-width: min(100%, 320px);
  min-height: 3.25rem;
  margin-top: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.submit-button:hover,
.submit-button:active,
.shop-button:hover,
.shop-button:active,
.phone-card:hover,
.phone-card:active {
  background: var(--green-dark);
  transform: translateY(-1px);
}

.submit-button:disabled,
.submit-button.is-disabled {
  cursor: wait;
  opacity: .72;
  transform: none !important;
}

.action-card:focus-visible,
.submit-button:focus-visible,
.shop-button:focus-visible,
.phone-card:focus-visible,
.test-center-link:focus-visible,
a:focus-visible {
  outline: 3px solid #000000;
  outline-offset: 3px;
}

.required-note {
  margin: .1rem 0 .85rem;
  color: #777777;
  font-size: .8rem;
  font-weight: 400;
  line-height: 1.35;
}

.privacy-note {
  margin: .5rem 0 1.25rem;
  color: var(--subtle);
  font-size: .9rem;
}

.center {
  text-align: center;
}

.back-link {
  font-weight: 700;
}

.phone-box {
  margin: 1rem auto 1.25rem;
  padding: 1rem;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}

.phone-status {
  margin: .75rem 0 1rem;
  font-weight: 700;
}

.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .45rem .7rem;
  padding: 2rem 0;
  color: var(--subtle);
  text-align: center;
  font-size: .925rem;
  background: var(--bg);
}

.test-badge {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: .5rem 1rem;
  color: #2d2400;
  background: #ffeb99;
  border-bottom: 1px solid #d3b94d;
  text-align: center;
  font-weight: 700;
}

.success-page {
  max-width: 46rem;
  margin: 2rem auto;
  text-align: center;
}

.success-centered,
.success-message {
  display: inline-block;
  padding: 1.35rem 1.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.success-lines {
  display: block;
  text-align: center;
  line-height: 1.65;
}

.success-lines span {
  display: block;
}

.success-lines span:first-child {
  margin-bottom: .2rem;
  font-size: 1.28rem;
}

@media (min-width: 720px) {
  .action-list {
    max-width: 46rem;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 16px;
  }

  .page-wrap {
    width: 100%;
    padding: 0 .75rem;
  }

  .site-header {
    padding: 1.25rem 0 1.15rem;
  }

  .logo {
    width: min(230px, 82vw);
  }

  h1 {
    font-size: clamp(1.3rem, 7vw, 1.65rem);
  }

  h2,
  .form-title {
    font-size: 1rem;
  }

  .contact-form,
  .phone-box,
  .notice {
    margin-left: 0;
    margin-right: 0;
    padding: 1rem .9rem;
    border-radius: 12px;
  }

  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="file"],
  textarea,
  select,
  .submit-button,
  .shop-button {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  select {
    padding-right: 4rem;
    background-position: right 1.25rem center;
  }

  .checkbox-label,
  .radio-label {
    gap: .5rem;
  }

  .help-text,
  .help-text-bold {
    margin-bottom: 1.15rem;
    padding: .72rem .78rem;
    font-size: .95rem;
  }

  .success-centered,
  .success-message {
    padding: 1rem .8rem;
    font-size: 1.05rem;
  }

  .success-lines span:first-child {
    font-size: 1.18rem;
  }

  .test-badge {
    padding: .45rem .7rem;
    font-size: .9rem;
  }
}

@media (max-width: 360px) {
  .page-wrap {
    padding: 0 .55rem;
  }

  .contact-form,
  .phone-box,
  .notice {
    padding: .9rem .75rem;
  }

  .action-card {
    min-height: 3.7rem;
    padding: .9rem .75rem;
  }
}

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