:root {
  color-scheme: light;
  --brand: #123d63;
  --brand-dark: #0b2b48;
  --accent: #b9a37d;
  --text: #26323a;
  --muted: #75808a;
  --border: #e5e0d8;
  --bg: #f7f5f0;
  --card: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(185, 163, 125, 0.18), transparent 32rem),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 100%);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Yu Gothic", "YuGothic", Meiryo, sans-serif;
  line-height: 1.7;
}

body.modal-open {
  overflow: hidden;
}

.container {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  padding: 64px 0 44px;
  background: transparent;
  color: var(--text);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 14px;
  letter-spacing: 0.08em;
  font-weight: 500;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 12px;
  font-size: clamp(32px, 7vw, 48px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: clamp(16px, 3vw, 19px);
}

.form-card {
  margin: 0 0 48px;
  padding: clamp(24px, 5vw, 40px);
  background: var(--card);
  border: 1px solid rgba(229, 224, 216, 0.9);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(38, 50, 58, 0.08);
}

.form-card h2 {
  margin-bottom: 8px;
  font-size: 26px;
  font-weight: 500;
}

.note,
.form-help {
  color: var(--muted);
}

.contact-form {
  display: grid;
  gap: 20px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

label span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

strong {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(185, 163, 125, 0.18);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 13px 15px;
  color: var(--text);
  font: inherit;
  background: #fbfaf7;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(185, 163, 125, 0.22);
  border-color: var(--brand);
  background: #ffffff;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
}

.checkbox-label input {
  width: auto;
  margin-top: 6px;
}

button,
.back-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
.back-link:hover {
  filter: brightness(1.08);
}

.thanks-card {
  text-align: center;
}

.site-footer {
  padding: 28px 0;
  color: var(--muted);
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 32, 46, 0.56);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(960px, calc(100% - 24px));
  height: min(84vh, 920px);
  margin: min(6vh, 40px) auto;
  background: var(--card);
  border: 1px solid rgba(229, 224, 216, 0.9);
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(18, 28, 36, 0.24);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  background: #fbfaf7;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 500;
}

.modal-close {
  min-height: 44px;
  padding: 0 20px;
  background: rgba(18, 61, 99, 0.08);
  color: var(--brand-dark);
  border: 1px solid rgba(18, 61, 99, 0.16);
  font-weight: 500;
}

.modal-close:hover {
  background: rgba(18, 61, 99, 0.12);
  filter: none;
}

.modal-frame {
  display: block;
  width: 100%;
  height: calc(100% - 81px);
  border: 0;
  background: #ffffff;
}

.embedded-policy .site-header,
.embedded-policy .site-footer {
  display: none;
}

.embedded-policy .container {
  width: min(100%, calc(100% - 24px));
}

.embedded-policy .policy-card {
  margin: 12px 0;
  border-radius: 18px;
  box-shadow: none;
}

.embedded-policy .policy-actions .back-link {
  background: rgba(18, 61, 99, 0.08);
  color: var(--brand-dark);
  border: 1px solid rgba(18, 61, 99, 0.16);
}

.embedded-policy .policy-actions .back-link:hover {
  background: rgba(18, 61, 99, 0.12);
  filter: none;
}

@media (max-width: 640px) {
  .site-header {
    padding: 36px 0 32px;
  }

  .form-card {
    border-radius: 14px;
  }

  .modal-panel {
    width: calc(100% - 12px);
    height: 84vh;
    margin: 6px auto;
    border-radius: 18px;
  }

  .modal-header {
    padding: 14px 16px;
  }

  .modal-header h2 {
    font-size: 18px;
  }

  .modal-close {
    min-height: 40px;
    padding: 0 16px;
  }

  .modal-frame {
    height: calc(100% - 69px);
  }
}
