/* =============================================
   JVLab Guest Form — リニューアルデザイン
   ============================================= */

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

:root {
  --gold:        #c9a227;
  --gold-light:  #f5e6a3;
  --gold-bg:     rgba(201,162,39,0.08);
  --gold-border: rgba(201,162,39,0.3);
  --dark:        #1a1a2e;
  --dark2:       #16213e;
  --accent:      #0f3460;
  --white:       #ffffff;
  --gray-50:     #f9fafb;
  --gray-100:    #f3f4f6;
  --gray-200:    #e5e7eb;
  --gray-400:    #9ca3af;
  --gray-600:    #4b5563;
  --gray-900:    #111827;
  --success:     #059669;
  --danger:      #dc2626;
  --radius-sm:   8px;
  --radius:      14px;
  --radius-lg:   20px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow:      0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg:   0 10px 40px rgba(0,0,0,0.14);
}

html { scroll-behavior: smooth; }

body {
  background: var(--gray-50);
  color: var(--gray-900);
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* =====================
   ヒーローヘッダー
   ===================== */
.guest-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark2) 50%, var(--accent) 100%);
  padding: 36px 24px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.guest-hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle at 70% 30%, rgba(201,162,39,0.15) 0%, transparent 60%);
  pointer-events: none;
}

.guest-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}

.guest-logo-icon {
  width: 48px; height: 48px;
  background: var(--gold);
  color: #000;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 18px;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(201,162,39,0.4);
}

.guest-logo-text {
  text-align: left;
}

.guest-logo-name {
  font-weight: 700; font-size: 18px;
  color: #fff;
}

.guest-logo-sub {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.guest-hero h1 {
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 900;
  color: #fff;
  margin-bottom: 14px;
  line-height: 1.3;
}

.guest-hero h1 span {
  color: var(--gold);
}

.guest-hero p {
  font-size: 14px;
  color: rgba(255,255,255,0.75);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.9;
}

/* =====================
   メインコンテンツ
   ===================== */
.guest-wrap {
  max-width: 700px;
  margin: -24px auto 0;
  padding: 0 16px 80px;
  position: relative;
  z-index: 1;
}

/* =====================
   セクション共通
   ===================== */
.form-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--gray-900);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--gray-100);
}

.section-title .title-icon {
  width: 32px; height: 32px;
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
}

.section-desc {
  font-size: 13px;
  color: var(--gray-400);
  margin: 10px 0 20px;
  line-height: 1.8;
}

/* =====================
   フォーム要素
   ===================== */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

@media (max-width: 580px) {
  .form-row { grid-template-columns: 1fr; }
  .form-section { padding: 20px 18px; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group:last-child { margin-bottom: 0; }

label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  display: flex;
  align-items: center;
  gap: 6px;
}

.required {
  background: var(--gold);
  color: #000;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
select,
textarea {
  background: var(--gray-50);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  color: var(--gray-900);
  font-family: inherit;
  font-size: 14px;
  padding: 11px 14px;
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  outline: none;
}

input::placeholder, textarea::placeholder { color: var(--gray-400); }

input:focus, select:focus, textarea:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,162,39,0.12);
}

select { cursor: pointer; }
textarea { resize: vertical; }

/* =====================
   質問カード
   ===================== */
.question-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: var(--white);
}

.question-card:last-child { margin-bottom: 0; }

.question-card:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.10);
}

.question-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.question-num {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--dark), var(--accent));
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

.question-theme {
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-bg);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: 0.03em;
}

.question-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
  line-height: 1.65;
}

.question-card textarea {
  background: var(--gray-50);
  font-size: 13px;
}

/* =====================
   相談セクション（別枠）
   ===================== */
.consultation-section {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-lg);
}

.consultation-section .section-title {
  color: #fff;
  border-bottom-color: rgba(255,255,255,0.12);
}

.consultation-section .section-desc {
  color: rgba(255,255,255,0.65);
}

.consultation-section textarea {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  color: #fff;
}

.consultation-section textarea::placeholder {
  color: rgba(255,255,255,0.4);
}

.consultation-section textarea:focus {
  background: rgba(255,255,255,0.12);
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,162,39,0.2);
}

/* =====================
   エラー・非表示
   ===================== */
.form-error {
  color: var(--danger);
  font-size: 13px;
  padding: 12px 16px;
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.hidden { display: none !important; }

/* =====================
   送信ボタン
   ===================== */
.submit-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, var(--gold) 0%, #e8b930 100%);
  color: #000;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 20px rgba(201,162,39,0.4);
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.2s;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(201,162,39,0.5);
}

.submit-btn:active { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* =====================
   完了画面
   ===================== */
.guest-success {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
  padding: 60px 32px;
  margin-top: 20px;
}

.success-icon {
  font-size: 72px;
  margin-bottom: 20px;
  display: block;
}

.guest-success h2 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--gray-900);
}

.guest-success p {
  color: var(--gray-400);
  font-size: 14px;
  line-height: 2;
}

/* =====================
   フッター
   ===================== */
.guest-footer {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-200);
  font-size: 12px;
  color: var(--gray-400);
}
