:root {
  --navy: #102650;
  --navy-dark: #081b3d;
  --red: #d71920;
  --red-dark: #a91018;
  --green: #159447;
  --gold: #e9a520;
  --ink: #182848;
  --muted: #526078;
  --line: #d8e0eb;
  --soft: #f4f6f9;
  --white: #ffffff;
  --shadow: 0 10px 32px rgba(16, 38, 80, 0.1);
}

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

html {
  min-width: 320px;
  color: var(--ink);
  background: #edf1f5;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP",
    "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* 募集LP */
.lp-shell {
  width: min(865px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 18px 60px rgba(7, 28, 75, 0.14);
}

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

.line-cta {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--white);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.line-cta::before {
  position: absolute;
  z-index: 2;
  top: -35%;
  bottom: -35%;
  left: 0;
  width: 15%;
  content: "";
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 28%,
    rgba(255, 255, 255, 0.95) 50%,
    rgba(255, 255, 255, 0.25) 72%,
    rgba(255, 255, 255, 0) 100%
  );
  filter: blur(1px);
  transform: translateX(-220%) skewX(-18deg);
  animation: line-cta-shine 3.4s ease-in-out infinite;
}

@keyframes line-cta-shine {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-220%) skewX(-18deg);
  }

  64% {
    opacity: 1;
  }

  86%,
  100% {
    opacity: 0;
    transform: translateX(780%) skewX(-18deg);
  }
}

.line-cta::after {
  position: absolute;
  z-index: 3;
  inset: 7px;
  content: "";
  border: 4px solid transparent;
  border-radius: 18px;
  pointer-events: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.line-cta:hover::after {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.line-cta:focus-visible {
  outline: 0;
}

.line-cta:focus-visible::after {
  border-color: #ffdf00;
}

.config-warning {
  margin: 0;
  padding: 12px 18px;
  color: #842029;
  background: #f8d7da;
  border-top: 1px solid #f1aeb5;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

/* 共通ページ */
.page-shell {
  width: min(820px, calc(100% - 32px));
  margin: 30px auto;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 6px solid var(--red);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-header {
  padding: 25px 24px 20px;
  text-align: center;
}

.eyebrow {
  margin: 0 0 6px;
  color: #c91520;
  font-size: 14px;
  font-weight: 800;
}

.page-title {
  margin: 0;
  color: var(--navy);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.4;
}

.detail-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.detail-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
}

.detail-row:last-child {
  border-bottom: 0;
}

.detail-term,
.detail-value {
  display: flex;
  margin: 0;
  padding: 12px 15px;
}

.detail-term {
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: var(--navy);
  font-size: 13px;
  font-weight: 800;
}

.detail-value {
  flex-direction: column;
  justify-content: center;
  color: var(--navy);
  font-size: 15px;
  font-weight: 700;
}

.free-price {
  color: var(--red);
  font-weight: 900;
}

.regular-price {
  text-decoration-line: line-through;
  text-decoration-color: var(--red);
  text-decoration-thickness: 2px;
  text-decoration-skip-ink: none;
}

.notes {
  padding: 18px 22px;
  background: var(--soft);
}

.notes p {
  margin: 0;
}

.intro-message {
  color: #41506a;
  font-size: 14px;
  text-align: center;
}

.warning-message {
  margin-top: 11px !important;
  padding: 11px 13px;
  color: #8d1017;
  background: #fff3f3;
  border-left: 4px solid var(--red);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 800;
}

/* フォーム */
.form-card {
  margin-top: 20px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.form-field {
  margin-top: 18px;
}

.form-field:first-of-type {
  margin-top: 0;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: 15px;
  font-weight: 800;
}

.badge {
  display: inline-block;
  margin-left: 7px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--white);
  font-size: 11px;
  line-height: 1.35;
  vertical-align: 1px;
}

.badge-required {
  background: var(--red);
}

.badge-optional {
  background: #68758a;
}

.form-control {
  display: block;
  width: 100%;
  min-height: 48px;
  margin: 0;
  padding: 11px 13px;
  color: var(--ink);
  background: #fbfdff;
  border: 1px solid #c8d3e1;
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(16, 36, 77, 0.03);
  font: inherit;
  font-size: 16px;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

.form-control:focus {
  outline: 0;
  background: var(--white);
  border-color: #2859a5;
  box-shadow: 0 0 0 3px rgba(40, 89, 165, 0.13);
}

.form-control::placeholder {
  color: #8b98a9;
  opacity: 1;
}

.has-error .form-control {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(215, 25, 32, 0.1);
}

.field-error {
  min-height: 1.35em;
  margin: 5px 0 0;
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
}

.honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
}

.submit-button {
  display: block;
  width: 100%;
  min-height: 62px;
  margin-top: 20px;
  padding: 13px 18px 11px;
  color: var(--white);
  background: linear-gradient(180deg, #e7252f 0%, #c91520 100%);
  border: 0;
  border-bottom: 4px solid #9f1018;
  border-radius: 12px;
  box-shadow: 0 7px 16px rgba(201, 21, 32, 0.25);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 9px 20px rgba(201, 21, 32, 0.32);
}

.submit-button:focus-visible {
  outline: 3px solid rgba(229, 37, 47, 0.3);
  outline-offset: 3px;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.submit-main,
.submit-sub {
  display: block;
}

.submit-main {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.submit-sub {
  margin-top: 1px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.9;
}

.form-status {
  min-height: 1.5em;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.form-status.is-error {
  color: var(--red);
}

.form-status.is-success {
  color: #087735;
}

.privacy-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.privacy-note a {
  color: #1a4e9b;
}

/* 完了ページ */
.thanks-shell {
  width: min(680px, calc(100% - 32px));
  margin: 30px auto;
}

.thanks-card {
  padding: 28px 24px 24px;
  text-align: center;
}

.success-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  color: var(--white);
  background: var(--green);
  border-radius: 50%;
  font-size: 32px;
  font-weight: 900;
}

.thanks-message {
  margin: 10px 0 18px;
  color: #41506a;
  font-size: 15px;
}

.thanks-message strong {
  color: #087735;
}

.thanks-details {
  overflow: hidden;
  border: 1px solid #ccd7e6;
  border-radius: 11px;
  text-align: left;
}

.notice {
  margin-top: 17px;
  padding: 12px 14px;
  color: #43516a;
  background: var(--soft);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-size: 13px;
  text-align: left;
}

.action-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.action-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 11px 14px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.action-link-map {
  color: var(--white);
  background: var(--red);
  border-bottom: 4px solid var(--red-dark);
  box-shadow: 0 5px 12px rgba(215, 25, 32, 0.2);
}

.action-link-calendar {
  color: var(--navy);
  background: var(--white);
  border: 1px solid #bfcbdc;
}

.close-message {
  margin: 15px 0 0;
  color: #778195;
  font-size: 12px;
}

/* フッター */
.site-footer {
  padding: 22px 16px 26px;
  color: #667085;
  background: var(--white);
  border-top: 1px solid #e4e8ee;
  font-size: 12px;
  text-align: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: var(--navy);
}

.copyright {
  margin: 0;
}

@media (max-width: 600px) {
  html,
  body {
    background: var(--white);
  }

  .lp-shell {
    box-shadow: none;
  }

  .page-shell,
  .thanks-shell {
    width: min(100% - 20px, 820px);
    margin: 10px auto 20px;
  }

  .card-header {
    padding: 20px 14px 16px;
  }

  .detail-row {
    grid-template-columns: 72px 1fr;
  }

  .detail-term {
    padding: 10px 5px;
    font-size: 12px;
  }

  .detail-value {
    padding: 10px 11px;
    font-size: 13px;
  }

  .notes {
    padding: 14px 12px;
  }

  .form-card {
    margin-top: 12px;
    padding: 15px 12px 17px;
    border-radius: 10px;
  }

  .form-field {
    margin-top: 14px;
  }

  .form-label {
    font-size: 14px;
  }

  .submit-main {
    font-size: 17px;
  }

  .thanks-card {
    padding: 22px 14px 19px;
  }
}

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

  .line-cta::before {
    animation: none;
  }
}
