/* =============================================
   ラジオ プレゼント応募フォーム — スタイルシート
   ============================================= */

:root {
  --color-primary: #c0392b;
  --color-primary-dark: #962d22;
  --color-accent: #f39c12;
  --color-bg: #fdf6f0;
  --color-surface: #ffffff;
  --color-border: #e0d5cc;
  --color-text: #2c2c2c;
  --color-text-muted: #7a7a7a;
  --color-success: #27ae60;
  --color-error: #e74c3c;
  --color-highlight-bg: #fff8e1;
  --color-highlight-border: #f39c12;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(0,0,0,0.10);
  --transition: 0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Sans JP', sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER ===== */
.site-header {
  background: linear-gradient(160deg, #1a0a2e 0%, #2d0a0a 50%, #8e1c11 100%);
  color: #fff;
  text-align: center;
  padding: 24px 20px 28px;
  position: relative;
  overflow: hidden;
}

.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    rgba(255,255,255,0.03) 0px,
    rgba(255,255,255,0.03) 2px,
    transparent 2px,
    transparent 12px
  );
  pointer-events: none;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  border: 1.5px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #fff;
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  background: #ff4d4d;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.1s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

/* ステーション表示 */
.header-station {
  margin-bottom: 10px;
}

.station-freq {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 6px;
  padding: 3px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.9);
}

.station-freq i { color: #7ecfff; }

/* 番組タイトル */
.site-title {
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 30px rgba(255,180,100,0.3);
}

.title-glow {
  color: #ffcf6b;
  text-shadow:
    0 0 10px rgba(255,207,107,0.8),
    0 0 30px rgba(255,207,107,0.4);
}

/* タグライン */
.site-tagline {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.1em;
  margin-top: 4px;
  margin-bottom: 14px;
}

/* メタ情報（パーソナリティ・時間・場所） */
.header-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  margin-bottom: 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.85);
}

.header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.header-meta i {
  color: #ffcf6b;
  font-size: 0.75rem;
}

.header-meta strong {
  color: #ffcf6b;
  font-weight: 700;
}

.site-subtitle {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.95;
  margin-top: 0;
  letter-spacing: 0.08em;
  color: #fff;
}

/* ===== MAIN ===== */
.main-content {
  flex: 1;
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

/* ===== CAMPAIGN CARD ===== */
.campaign-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  padding: 28px 20px 24px;
  margin-bottom: 24px;
  border-top: 5px solid var(--color-accent);
}

.gift-icon {
  font-size: 2.8rem;
  color: var(--color-accent);
  margin-bottom: 10px;
  animation: bounce 1.8s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.campaign-catch {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--color-accent);
  letter-spacing: 0.06em;
  margin-bottom: 4px;
  text-shadow: 0 2px 8px rgba(243,156,18,0.25);
}

.campaign-name {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.campaign-desc {
  font-size: 0.93rem;
  color: var(--color-text-muted);
  line-height: 1.7;
}

.campaign-desc strong {
  color: var(--color-primary);
  font-weight: 700;
}

/* ===== FORM SECTION ===== */
.form-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 20px 32px;
  margin-bottom: 24px;
}

/* ===== FORM GROUP ===== */
.form-group {
  margin-bottom: 22px;
}

.form-group fieldset {
  border: none;
  padding: 0;
}

/* 合言葉ハイライト */
.highlight-group {
  background: var(--color-highlight-bg);
  border: 2px solid var(--color-highlight-border);
  border-radius: var(--radius);
  padding: 18px 16px 14px;
  margin-bottom: 28px;
}

.group-legend {
  font-size: 1rem;
  font-weight: 700;
  color: #7a5a00;
  padding: 0 6px;
  margin-bottom: 10px;
}

.group-legend i {
  margin-right: 6px;
  color: var(--color-accent);
}

.field-wrap { display: flex; flex-direction: column; gap: 6px; }

.field-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.required-badge {
  background: var(--color-error);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.optional-badge {
  background: #bdc3c7;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

/* Inputs */
.field-input,
.field-select,
.field-textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
  -webkit-appearance: none;
}

.field-input::placeholder,
.field-textarea::placeholder { color: #bbb; }

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

/* 合言葉フィールド強調 */
.highlight-group .field-input {
  border-color: var(--color-accent);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.highlight-group .field-input:focus {
  border-color: #d4890f;
  box-shadow: 0 0 0 3px rgba(243,156,18,0.2);
}

.field-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%237a7a7a'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 40px;
  cursor: pointer;
}

.field-textarea { resize: vertical; min-height: 100px; }

/* Radio group */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f7f2ee;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 0.93rem;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  user-select: none;
}

.radio-label input[type="radio"] { accent-color: var(--color-primary); }

.radio-label:has(input:checked) {
  background: #fdecea;
  border-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

/* Field hint / error */
.field-hint {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.field-error {
  font-size: 0.8rem;
  color: var(--color-error);
  font-weight: 500;
  min-height: 1em;
}

/* Char counter */
.char-counter {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  text-align: right;
}

/* Consent */
.consent-group {
  background: #f7f9fc;
  border: 1.5px solid #d0e0f0;
  border-radius: 10px;
  padding: 16px;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  line-height: 1.6;
}

.consent-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  accent-color: var(--color-primary);
  cursor: pointer;
}

.link { color: var(--color-primary); text-decoration: underline; }

/* Submit button */
.submit-wrap { margin-top: 28px; text-align: center; }

.submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 340px;
  padding: 16px 24px;
  background: linear-gradient(135deg, var(--color-primary) 0%, #e74c3c 100%);
  color: #fff;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(192,57,43,0.35);
  transition: transform var(--transition), box-shadow var(--transition), opacity var(--transition);
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(192,57,43,0.45);
}

.submit-btn:active { transform: translateY(0); }

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* ===== SUCCESS MESSAGE ===== */
.success-message {
  text-align: center;
  padding: 40px 20px;
}

.success-message[hidden] { display: none; }

.success-icon {
  font-size: 4rem;
  color: var(--color-success);
  margin-bottom: 16px;
  animation: pop 0.5s cubic-bezier(0.22,1,0.36,1);
}

@keyframes pop {
  0% { transform: scale(0); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.success-message h2 {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--color-success);
  margin-bottom: 12px;
}

.success-message p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== PRIVACY SECTION ===== */
.privacy-section {
  background: var(--color-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  margin-bottom: 24px;
}

.privacy-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.privacy-section h3 i { color: var(--color-primary); }

.privacy-section ul {
  list-style: disc;
  padding-left: 20px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* ===== FOOTER ===== */
.site-footer {
  background: #1a0a2e;
  color: #aaa;
  text-align: center;
  padding: 20px 20px;
  font-size: 0.8rem;
  line-height: 2;
}

.footer-station {
  color: #7ecfff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

.footer-station i { margin-right: 4px; color: #7ecfff; }

.footer-program {
  color: #ffcf6b;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
}

.footer-time {
  color: #ccc;
  font-size: 0.78rem;
}

.footer-secure {
  color: #aaa;
  font-size: 0.75rem;
  margin-top: 4px;
}

.footer-secure i { margin-right: 4px; color: #6dcf8f; }

.footer-copy {
  margin-top: 4px;
  font-size: 0.73rem;
  color: #666;
}

/* ===== INVALID STATE ===== */
.field-input.invalid,
.field-select.invalid {
  border-color: var(--color-error);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
  .form-section { padding: 20px 14px 24px; }
  .radio-group { gap: 8px; }
  .radio-label { padding: 7px 11px; font-size: 0.88rem; }
}
