.page-apply main {
  padding-top: 60px;
  background: #fff;
}

.apply-inner {
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  box-sizing: border-box;
}

.apply-heading {
  text-align: center;
  margin-bottom: 36px;
}

.apply-heading h1 {
  margin: 0 0 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4;
  color: #111;
}

.apply-heading p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #333;
}

.apply-section {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 32px 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8a33a;
}

.apply-section h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #111;
}

.apply-section p {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
  color: #666;
}

.apply-row {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  column-gap: 20px;
  margin-bottom: 16px;
}

.apply-label {
  padding-top: 11px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: #222;
  white-space: nowrap;
}

.badge-req,
.badge-opt {
  margin-left: 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.badge-req {
  color: #e10600;
}

.badge-opt {
  color: #888;
  font-weight: 500;
}

.apply-form input[type="text"],
.apply-form input[type="email"],
.apply-form input[type="tel"] {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #e8a33a;
  border-radius: 2px;
  background: #fff;
  box-sizing: border-box;
  color: #222;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  outline: none;
  appearance: none;
}

.apply-form input::placeholder {
  color: #b5b5b5;
  opacity: 1;
}

.apply-form input[type="text"]:focus,
.apply-form input[type="email"]:focus,
.apply-form input[type="tel"]:focus {
  border-color: #e08900;
  box-shadow: 0 0 0 3px rgba(246, 161, 43, 0.18);
}

.apply-form input.is-locked,
.apply-form #corpNumber[readonly] {
  border-color: #e4e4e4;
  background: #f3f3f3;
  color: #222;
}

.apply-form input.is-invalid,
.apply-agree.is-invalid,
.apply-form #corpNumber.is-invalid {
  border-color: #e10600;
  background: #fff;
}

.apply-form #corpNumber[readonly]:focus {
  box-shadow: none;
}

.apply-form.is-manual .apply-search-btn {
  display: none;
}

.apply-form.is-manual .apply-suggest input {
  padding-right: 12px;
}

.apply-suggest {
  position: relative;
}

.apply-suggest input {
  padding-right: 42px;
}

.apply-search-btn {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #444;
  cursor: pointer;
}

.apply-search-btn:hover {
  color: #111;
}

.apply-suggest-list {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 320px;
  margin: 0;
  padding: 4px 0;
  overflow: auto;
  list-style: none;
  border: 1px solid #e8a33a;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.apply-suggest-list button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  color: #222;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.apply-suggest-list button:hover,
.apply-suggest-list button.is-active {
  background: #fff6e8;
}

.apply-suggest-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.apply-suggest-meta {
  display: block;
  margin-top: 2px;
  color: #666;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.apply-suggest-status {
  padding: 12px;
  color: #666;
  font-size: 13px;
  line-height: 1.6;
}

.apply-help,
.apply-source {
  margin: 6px 0 0;
  color: #666;
  font-size: 12px;
  line-height: 1.7;
}

.apply-source {
  margin-top: 18px;
  color: #888;
}

.apply-error {
  margin: 4px 0 0;
  color: #e10600;
  font-size: 12px;
  line-height: 1.6;
}

.apply-error:empty {
  display: none;
}

.apply-count,
.apply-postal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.apply-count input[type="text"] {
  width: 240px;
  max-width: 100%;
}

.apply-unit {
  flex-shrink: 0;
  font-size: 14px;
}

.apply-postal input[type="text"] {
  width: 220px;
  flex: 0 0 220px;
}

.apply-postal-btn,
.apply-back,
.apply-submit,
.apply-send {
  font-family: "Noto Sans JP", sans-serif;
  cursor: pointer;
}

.apply-postal-btn,
.apply-back {
  height: 42px;
  padding: 0 16px;
  border: 1px solid #e8a33a;
  border-radius: 2px;
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.apply-postal-btn:hover,
.apply-back:hover {
  background: #fff8ee;
}

.apply-postal-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.apply-same,
.apply-agree {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #222;
  font-size: 14px;
  line-height: 1.7;
  cursor: pointer;
}

.apply-same {
  align-items: center;
  width: fit-content;
  margin-bottom: 10px;
}

.apply-same input,
.apply-agree input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 18px;
  accent-color: #f6a12b;
}

.apply-agree {
  padding: 12px 14px;
  border: 1px solid #e8a33a;
}

.apply-agree input {
  margin-top: 3px;
}

.apply-agree-text {
  flex: 1;
}

.apply-terms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
  margin: 18px 0 12px;
}

.apply-terms a {
  color: #e3941a;
  font-size: 14px;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.apply-terms a:hover {
  color: #c47d10;
}

.apply-submit,
.apply-send {
  border: 0;
  background: #f6a12b;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.apply-submit {
  width: 100%;
  height: 56px;
  margin-top: 22px;
  font-size: 18px;
}

.apply-submit:hover,
.apply-send:hover {
  background: #e08900;
}

.apply-submit:disabled,
.apply-send:disabled {
  opacity: 0.65;
  cursor: wait;
}

.apply-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  color: #333;
  font-size: 12px;
  line-height: 1.6;
}

.apply-foot a {
  color: #1a73b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.apply-alert {
  margin: 0 0 20px;
  padding: 12px 14px;
  border: 1px solid #e10600;
  background: #fff5f5;
  color: #e10600;
  font-size: 13px;
  line-height: 1.7;
}

.apply-alert:empty {
  display: none;
}

.apply-actions {
  display: flex;
  gap: 16px;
  margin-top: 28px;
}

.apply-back,
.apply-send {
  height: 56px;
  font-size: 16px;
}

.apply-back {
  flex: 1;
}

.apply-send {
  flex: 2;
}

.confirm-block + .confirm-block {
  margin-top: 8px;
}

.confirm-row {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  column-gap: 20px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.7;
}

.confirm-label {
  color: #222;
  font-weight: 500;
}

.confirm-value {
  color: #222;
  white-space: pre-wrap;
  word-break: break-word;
}

.confirm-value.is-empty {
  color: #888;
}

.apply-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.apply-address {
  margin-top: 10px;
}

a.apply-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  text-decoration: none;
}

[hidden] {
  display: none !important;
}

/* Thanks page */
.page-thanks main.thanks-main {
  padding-top: 60px;
  min-height: calc(100vh - 60px);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(246, 161, 43, 0.18), transparent 55%),
    linear-gradient(180deg, #fff8ef 0%, #f7f2ec 42%, #ffffff 100%);
}

.thanks-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
  box-sizing: border-box;
}

.thanks-inner {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 40px 44px;
  border: 1px solid rgba(232, 163, 58, 0.35);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 40px rgba(246, 161, 43, 0.12);
  text-align: center;
  box-sizing: border-box;
}

.thanks-icon {
  display: block;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
}

.thanks-brand {
  margin: 0 0 18px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #f6a12b;
}

.thanks-title {
  margin: 0 0 16px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.45;
  color: #151615;
}

.thanks-lead {
  margin: 0 auto 24px;
  max-width: 32em;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.8;
  color: #333;
}

.thanks-note {
  margin: 0 auto 32px;
  max-width: 34em;
  padding: 18px 20px;
  border-top: 2px solid #e8a33a;
  border-bottom: 1px solid rgba(232, 163, 58, 0.35);
  text-align: left;
}

.thanks-note p {
  margin: 0;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 13px;
  line-height: 1.8;
  color: #555;
}

.thanks-note p + p {
  margin-top: 8px;
}

.thanks-note a {
  color: #e08900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thanks-note a:hover {
  color: #c47d10;
}

.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.thanks-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 240px;
  height: 56px;
  padding: 0 24px;
  border-radius: 999px;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  box-sizing: border-box;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.thanks-btn-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex-shrink: 0;
}

.thanks-btn-primary {
  background: #f6a12b;
  color: #fff;
  box-shadow: 0 4px 12px rgba(246, 161, 43, 0.35);
}

.thanks-btn-primary:hover {
  background: #e08900;
  transform: translateY(-1px);
}

.thanks-btn-secondary {
  background: #fff;
  color: #151615;
  border: 2px solid #f6a12b;
}

.thanks-btn-secondary:hover {
  background: #fff8ee;
  transform: translateY(-1px);
}

@media (max-width: 768px) {
  .page-apply main {
    padding-top: 50px;
  }

  .apply-inner {
    padding: 32px 16px 48px;
  }

  .apply-heading h1 {
    font-size: 22px;
  }

  .apply-row,
  .confirm-row {
    grid-template-columns: 1fr;
    row-gap: 6px;
  }

  .apply-label {
    padding-top: 0;
    white-space: normal;
  }

  .apply-form input[type="text"],
  .apply-form input[type="email"],
  .apply-form input[type="tel"] {
    font-size: 16px;
  }

  .apply-count input[type="text"],
  .apply-postal input[type="text"] {
    width: auto;
    flex: 1 1 auto;
  }

  .apply-terms {
    flex-direction: column;
    gap: 8px;
  }

  .apply-actions,
  .apply-foot {
    flex-direction: column;
  }

  .apply-agree {
    flex-wrap: wrap;
  }

  .page-thanks main.thanks-main {
    padding-top: 50px;
    min-height: calc(100vh - 50px);
  }

  .thanks-hero {
    padding: 40px 16px 64px;
  }

  .thanks-inner {
    padding: 36px 20px 32px;
    border-radius: 12px;
  }

  .thanks-icon {
    width: 48px;
    height: 48px;
  }

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

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

  .thanks-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .thanks-btn {
    width: 100%;
    min-width: 0;
  }
}
