﻿*{
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

body {
  background: #fff;
  color: #4a3a31;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}

.lp-wrap {
  width: 100%;
}

.lp-main {
  width: min(800px, 100%);
  margin: 0 auto;
  background: #fff;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-frame {
  position: relative;
  width: 100%;
}

.hero-img {
  width: 100%;
  height: auto;
}

.hero-cta {
  position: absolute;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 900px;
  text-align: center;
  display: block;
}

.hero-cta img {
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.content-image {
  width: 100%;
  height: auto;
}

.content-image#content03,
.content-image#content04,
.content-image#content05,
.content-image#content06 {
  margin-top: 10px;
}

.content-image#content02 {
  margin-top: 10px;
}

.application-section {
  width: 100%;
  padding: 22px 0 40px;
  background: linear-gradient(180deg, #fffdf6 0%, #fdf4df 100%);
}

.application-title {
  margin: 0 18px;
  color: #d14334;
  font-size: 2rem;
  text-align: center;
}

.application-subtitle {
  margin: 10px 18px 0;
  color: #b64b25;
  font-weight: 700;
}

.application-intro,
.application-notice p {
  margin: 10px 18px 0;
  line-height: 1.7;
  font-size: 1rem;
}

.application-form {
  margin-top: 16px;
}

.field {
  margin: 18px 18px 0;
  padding: 14px;
  background: #fffdf8;
  border: 1px solid #efddbc;
  border-radius: 12px;
}

.field-title,
.field > label {
  display: block;
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
}

.required-label {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #dc3545;
  color: #fff;
  font-size: 0.75rem;
  vertical-align: middle;
}

.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.radio-row label,
.radio-row input {
  cursor: pointer;
}

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"],
.field select {
  width: 100%;
  min-height: 50px;
  border: 1px solid #ddc7a0;
  background: #fff;
  border-radius: 10px;
  padding: 0 12px;
  font-size: 1rem;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #bf6a31 50%), linear-gradient(135deg, #bf6a31 50%, transparent 50%);
  background-position: calc(100% - 22px) calc(50% - 5px), calc(100% - 14px) calc(50% - 5px);
  background-size: 8px 8px, 8px 8px;
  background-repeat: no-repeat;
  padding-right: 32px;
}

.field input:focus,
.field select:focus {
  outline: 2px solid #ffcf82;
  outline-offset: 2px;
}

.field-note {
  margin: 10px 0 0;
  font-size: 0.9rem;
  color: #7a5a3b;
}

.field-error {
  margin: 8px 0 0;
  color: #d83a3a;
  font-size: 0.9rem;
  min-height: 1.2em;
}

.honeypot-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.honeypot-field input {
  width: 1px;
  height: 1px;
}

.application-notice {
  margin: 22px 18px 0;
  padding: 14px;
  background: #fff4dd;
  border: 1px solid #f1c27a;
  border-radius: 12px;
}

.application-notice h3 {
  margin: 0;
  color: #c54831;
  font-size: 1rem;
  padding: 0 0 8px;
}

.application-submit {
  width: min(100% - 36px, 360px);
  margin: 22px 18px 0;
  border: 0;
  border-radius: 999px;
  min-height: 58px;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  background: linear-gradient(180deg, #f57a20 0%, #ea3d3f 100%);
  cursor: pointer;
  transition: opacity 0.2s;
}

.application-footer {
  width: min(800px, 100%);
  margin: 0 auto;
}

.application-footer-image {
  display: block;
  width: 100%;
  height: auto;
}

.application-submit:disabled {
  background: #d0bca2;
  cursor: not-allowed;
  opacity: 0.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

#submit-hint {
  margin: 12px 18px 0;
}

#form-general-error {
  margin: 0 18px 0;
}

.thanks-wrap {
  width: min(800px, 100%);
  margin: 0 auto;
  padding: 36px 18px 56px;
  background: #fffdf6;
  min-height: 100vh;
  box-sizing: border-box;
}

.thanks-card {
  background: #fffdf8;
  border: 1px solid #f0d6a6;
  border-radius: 16px;
  padding: 24px;
}

.thanks-title {
  margin: 0;
  color: #d14334;
  font-size: 1.8rem;
}

.thanks-text {
  margin: 16px 0 0;
  line-height: 1.8;
}

.thanks-link {
  display: inline-block;
  margin-top: 24px;
  padding: 12px 22px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(180deg, #f57a20 0%, #ea3d3f 100%);
}

@media (max-width: 800px) {
  .lp-main {
    width: 100%;
  }

  .application-title {
    font-size: 1.6rem;
  }

  .field {
    margin-left: 14px;
    margin-right: 14px;
  }

  .application-intro,
  .application-notice,
  .application-subtitle {
    margin-left: 14px;
    margin-right: 14px;
  }

  .application-submit {
    width: calc(100% - 28px);
    margin-left: 14px;
    margin-right: 14px;
  }

  #submit-hint {
    margin-left: 14px;
    margin-right: 14px;
  }

  .thanks-wrap {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 500px) {
  .hero-cta {
    width: 94%;
    max-width: 94%;
    bottom: 5%;
  }

  .field-title,
  .field > label {
    font-size: 0.98rem;
  }

  .field input[type="text"],
  .field input[type="tel"],
  .field input[type="email"],
  .field select {
    min-height: 56px;
    font-size: 1rem;
  }

  .application-submit {
    width: calc(100% - 24px);
    min-height: 62px;
    font-size: 1.15rem;
    margin-left: 12px;
    margin-right: 12px;
  }

  .radio-row {
    gap: 10px;
  }
}
