@import "variables.css";


/* ===== Base reset ===== */
* {
  box-sizing: border-box
}

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

html {
  scroll-behavior: smooth
}

body {
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", sans-serif;
  color: var(--ink-900);
  background: var(--green-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.7;
  font-size: 15px;
}

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

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none
}

/* ===== Page shell ===== */
.page {
  width: 100%;
  background: var(--green-bg);
  overflow: hidden;
  position: relative;
  min-height: 100vh;
}

/* ===== Topbar ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--hairline);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px max(24px, calc(50% - 600px));
  gap: 12px;
}

.brandlock {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--green-text);
  text-decoration: none;
}

.brandlock .x {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  flex: 0 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  color: var(--green-text);
  text-decoration: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--green-700);
  transition: background .15s ease;
}

.back-link:hover {
  background: var(--green-50)
}

.back-link svg {
  width: 16px;
  height: 16px
}

/* ===== Hero ===== */
.hero-contact {
  padding: 52px max(36px, calc(50% - 600px)) 40px;
  background: linear-gradient(180deg, #ffffff 0%, var(--green-bg) 100%);
  border-bottom: 1px solid var(--hairline);
  text-align: center;
}

.hero-contact .tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--green-text);
  background: #fff;
  border: 1px solid var(--hairline);
  padding: 6px 14px;
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  margin-bottom: 16px;
}

.hero-contact h1 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 38px;
  color: var(--ink-900);
  letter-spacing: .01em;
  line-height: 1.2;
  margin: 0 0 14px;
}

.hero-contact h1 em {
  font-style: normal;
  color: var(--green-700);
}

.hero-contact .sub {
  font-size: 16px;
  color: var(--ink-700);
  font-weight: 500;
  margin: 0;
}

/* ===== Form card ===== */
.form-wrap {
  padding: 32px max(24px, calc(50% - 360px)) 64px;
}

.form-card {
  background: #fff;
  border-radius: var(--r-xl);
  border: 1.5px solid var(--green-100);
  box-shadow: var(--shadow-lg);
  padding: 40px 40px;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== Form elements ===== */
.field {
  margin-bottom: 22px
}

.field-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  margin-bottom: 8px;
}

.field-label .req {
  color: var(--red);
  font-size: 12px;
  font-weight: 800;
}

.field-label .opt {
  color: var(--ink-300);
  font-size: 11px;
  font-weight: 600;
  background: var(--green-50);
  border-radius: 4px;
  padding: 1px 7px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #cdd8cf;
  border-radius: var(--r-sm);
  font-size: 16px;
  font-family: inherit;
  color: var(--ink-900);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
  outline: none;
  line-height: 1.6;
  -webkit-appearance: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus {
  border-color: var(--green-700);
  box-shadow: 0 0 0 3px rgba(22, 107, 63, .16);
}

input[type="text"].error,
input[type="email"].error,
input[type="tel"].error,
textarea.error {
  border-color: var(--red);
}

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

.field-error {
  display: none;
  color: var(--red);
  font-size: 12.5px;
  font-weight: 700;
  margin-top: 5px;
}

.field-error.show {
  display: block
}

/* ===== Radio card group ===== */
.radio-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.radio-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #cdd8cf;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
  user-select: none;
}

.radio-card:hover {
  border-color: var(--green-700);
  background: var(--green-50);
}

.radio-card input[type="radio"] {
  display: none
}

.radio-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #c0ccc0;
  background: #fff;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, background .15s ease;
}

.radio-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green-600);
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease;
}

.radio-card.selected {
  border-color: var(--green-600);
  background: var(--green-50);
}

.radio-card.selected .radio-dot {
  border-color: var(--green-600);
}

.radio-card.selected .radio-dot::after {
  opacity: 1;
  transform: scale(1);
}

.radio-label {
  font-weight: 700;
  font-size: 14px;
  color: var(--ink-900);
  line-height: 1.4;
}

.radio-label small {
  display: block;
  font-size: 12px;
  color: var(--ink-500);
  font-weight: 500;
  margin-top: 1px;
}

/* ===== Checkbox ===== */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  display: none
}

.custom-check {
  width: 22px;
  height: 22px;
  border: 2px solid #c0ccc0;
  border-radius: 5px;
  background: #fff;
  flex: 0 0 auto;
  margin-top: 1px;
  display: grid;
  place-items: center;
  transition: border-color .15s ease, background .15s ease;
}

.custom-check svg {
  width: 14px;
  height: 14px;
  color: #fff;
  opacity: 0;
  transform: scale(.5);
  transition: opacity .15s ease, transform .15s ease;
}

.checkbox-row.checked .custom-check {
  border-color: var(--green-600);
  background: var(--green-600);
}

.checkbox-row.checked .custom-check svg {
  opacity: 1;
  transform: scale(1)
}

.checkbox-text {
  font-size: 13.5px;
  color: var(--ink-700);
  line-height: 1.65;
}

.checkbox-text a {
  color: var(--green-text);
  text-decoration: underline
}

.checkbox-row.error-check .custom-check {
  border-color: var(--red)
}

/* ===== Submit button ===== */
.submit-btn {
  width: 100%;
  height: 52px;
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  border-radius: var(--r-sm);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s ease, background .15s ease;
  margin-top: 28px;
}

.submit-btn:hover:not(:disabled) {
  background: var(--green-800);
  box-shadow: var(--shadow-md);
}

.submit-btn:active:not(:disabled) {
  background: var(--green-900);
}

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

.submit-btn svg {
  width: 20px;
  height: 20px
}

/* ===== Error banner ===== */
.error-banner {
  display: none;
  background: #fef2f2;
  border: 1.5px solid #fca5a5;
  border-radius: var(--r-sm);
  padding: 14px 16px;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 16px;
  gap: 10px;
  align-items: flex-start;
}

.error-banner.show {
  display: flex
}

.error-banner svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin-top: 1px
}

/* ===== Thank you screen ===== */
.thankyou {
  display: none;
  text-align: center;
  padding: 20px 0 8px;
}

.thankyou.show {
  display: block
}

.thankyou .ty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-700);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(22, 107, 63, .25);
}

.thankyou .ty-icon svg {
  width: 36px;
  height: 36px
}

.thankyou h2 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 26px;
  color: var(--ink-900);
  margin: 0 0 12px;
}

.thankyou p {
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.8;
  margin: 0 0 24px;
}

.thankyou .back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--r-sm);
  background: var(--green-700);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background .15s ease, box-shadow .15s ease;
}

.thankyou .back-btn:hover {
  background: var(--green-800);
  box-shadow: var(--shadow-md);
}

/* ===== Divider ===== */
.form-divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 28px 0;
}

/* ===== Footer ===== */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--ink-500);
  padding: 18px;
  background: #fff;
  border-top: 1px solid rgba(0, 0, 0, .04);
}

.footer a {
  color: var(--ink-500);
  text-decoration: none;
}

.footer a:hover {
  color: var(--green-700);
}

/* ===== Reveal on scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s ease, transform .6s ease
}

.reveal.in {
  opacity: 1;
  transform: none
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero-contact {
    padding: 36px 20px 28px
  }

  .hero-contact h1 {
    font-size: 28px
  }

  .form-wrap {
    padding: 24px 16px 48px
  }

  .form-card {
    padding: 28px 20px
  }

  .radio-group {
    gap: 8px
  }
}