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

:root {
  --bg:     #F5F2EE;
  --text:   #2C2A28;
  --accent: #C8B89A;
  --mid:    #E8E4DE;
  --light:  #FAF8F5;
  --dark:   #1E1C1A;
  --muted:  #6A6764;
  --danger: #A94442;
}

body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

/* ── HEADER ── */
.hdr {
  background: var(--dark);
  padding: 0 48px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 80;
}
.hdr-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.hdr-icon {
  height: 28px;
  width: 28px;
  object-fit: cover;
  border-radius: 50%;
  filter: invert(1) brightness(0.9);
  opacity: 0.85;
}
.hdr-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  letter-spacing: 0.3em;
  color: var(--bg);
  text-decoration: none;
}
.hdr-nav { display: flex; gap: 28px; }
.hdr-nav a {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,238,0.45);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}
.hdr-nav a:hover,
.hdr-nav a.active { color: var(--accent); }

/* ── MOBILE BOTTOM NAV ── */
.mob-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.07);
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom);
}
.mob-nav-inner {
  display: flex;
}
.mob-nav-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 4px;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245,242,238,0.35);
  text-decoration: none;
  transition: color 0.2s;
  min-height: 52px;
}
.mob-nav-tab.active { color: var(--accent); }
.mob-nav-tab:active { color: var(--accent); }

/* ── BACK NAV ── */
.back-nav {
  padding: 20px 48px 0;
  max-width: 964px;
  margin: 0 auto;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 0;
}
.back-link:hover { color: var(--text); }

/* ── MAIN ── */
.main { max-width: 900px; margin: 0 auto; padding: 48px 32px 100px; }

/* ── PAGE TITLE ── */
.page-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.page-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 36px;
  max-width: 560px;
}

/* ── NOTICE ── */
.notice {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 16px;
  background: var(--mid);
  margin-bottom: 24px;
  border-left: 3px solid var(--accent);
  line-height: 1.7;
}

/* ── STATE ── */
.state-msg {
  text-align: center;
  padding: 48px 0;
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* ── BUTTONS ── */
.btn-dark {
  display: inline-block;
  padding: 14px 28px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-dark:hover { opacity: 0.78; }
.btn-dark.full { display: block; text-align: center; width: 100%; }

.btn-outline {
  display: inline-block;
  padding: 13px 28px;
  border: 1px solid var(--mid);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-outline:hover { border-color: var(--text); color: var(--text); }
.btn-outline.full { display: block; text-align: center; }

.btn-accent {
  display: inline-block;
  padding: 13px 28px;
  background: var(--accent);
  color: var(--dark);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn-accent:hover { opacity: 0.8; }

/* ── FORM ── */
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }
.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px; /* 防止 iOS 自動縮放 */
  font-family: 'DM Sans', sans-serif;
  font-weight: 300;
  background: var(--mid);
  border: 1px solid transparent;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  border-radius: 0;
}
.form-input:focus { border-color: var(--accent); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 8px; line-height: 1.7; }
.form-hint a { color: var(--accent); text-decoration: none; }
.form-hint a:hover { text-decoration: underline; }
.form-warning { font-size: 12px; color: var(--danger); margin-top: 8px; line-height: 1.6; }
.form-error { margin-top: 14px; font-size: 13px; color: var(--danger); text-align: center; }

/* ── SUBMIT BTN ── */
.btn-submit {
  width: 100%;
  padding: 18px;
  background: var(--text);
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  position: relative;
  -webkit-tap-highlight-color: transparent;
}
.btn-submit:hover:not(:disabled) { opacity: 0.8; }
.btn-submit:disabled { opacity: 0.5; cursor: default; }
.btn-submit.loading { color: transparent; }
.btn-submit.loading::after {
  content: '';
  position: absolute;
  inset: 0; margin: auto;
  width: 16px; height: 16px;
  border: 2px solid rgba(245,242,238,0.3);
  border-top-color: var(--bg);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── FOOTER ── */
.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--mid);
  padding: 40px 32px 28px;
  text-align: center;
}
.footer-inner {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-divider {
  height: 60px;
  width: auto;
  opacity: 0.75;
  margin-bottom: 4px;
}
.footer-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--text);
}
.footer-desc {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mid);
  color: var(--muted);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.social-link:hover { border-color: var(--accent); color: var(--accent); }
.social-link svg { width: 16px; height: 16px; fill: currentColor; }
.footer-legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.06em;
  margin-top: 4px;
}
.footer-legal a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--accent); }
.footer-copy {
  font-size: 10px;
  color: rgba(44,42,40,0.3);
  letter-spacing: 0.1em;
  margin-top: 2px;
}

/* ── LINE FLOAT ── */
.line-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  width: 52px;
  height: 52px;
  background: #06C755;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(6,199,85,0.35);
  z-index: 90;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.line-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(6,199,85,0.42);
}
.line-float svg { width: 28px; height: 28px; fill: white; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .hdr { padding: 0 20px; height: 52px; }
  .hdr-nav { display: none; }
  .hdr-icon { height: 24px; width: 24px; }

  .mob-nav { display: block; }
  body { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }

  .back-nav { padding: 16px 16px 0; }
  .main { padding: 28px 16px 32px; }

  .page-title { font-size: 24px; }
  .page-desc { font-size: 13px; margin-bottom: 28px; }

  .line-float {
    bottom: calc(52px + env(safe-area-inset-bottom) + 14px);
    right: 16px;
    width: 48px;
    height: 48px;
  }
  .line-float svg { width: 26px; height: 26px; }

  .site-footer { padding: 32px 20px 24px; }
  .footer-divider { height: 44px; }
}
