@charset "UTF-8";

/* ==========================================================================
   0. RESET & BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  /* REMEDORA Design Tokens */
  --bg-body: #020202;
  --bg-panel: #0a0a0a;

  --text-main: #FFFFFF;
  --text-body: #CCCCCC;
  --text-muted: #888888;
  --text-inverse: #000000;
  --text-danger: #FF5555;

  --accent-white: #FFFFFF;
  --border-glass: 1px solid rgba(255, 255, 255, 0.12);
  --border-danger: 1px solid rgba(255, 85, 85, 0.5);
  
  --primary-color: #0056b3; /* Brand Blue */
  --selected-bg: rgba(0, 86, 179, 0.3); /* Selection Highlight */
  --selected-border: #4fc3f7; /* Selection Border (Bright) */

  --glass-bg: rgba(18, 18, 20, 0.60);
  --glass-blur: 24px;
  --glass-highlight: inset 0 1px 0 0 rgba(255, 255, 255, 0.15);
  
  --radius: 12px;
  --font-base: system-ui, -apple-system, sans-serif;
  
  --input-bg: rgba(0,0,0,0.3);
  --input-border: 1px solid #333;
  --input-focus: 1px solid #fff;
  
  --progress-color: #3b82f6; 
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-body);
  color: var(--text-body);
  font-family: 'Noto Sans JP', var(--font-base);
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

body::before {
  content: "";
  position: fixed;
  top: -10vh; left: -10vw;
  width: 80vw; height: 80vw;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 60%);
  filter: blur(60px);
  z-index: -1;
  pointer-events: none;
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 20px 40px 20px;
}

/* ==========================================================================
   COMPONENTS
   ========================================================================== */

.glass-panel {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: var(--border-glass);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 24px;
}

.header {
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(20px);
  border-bottom: var(--border-glass);
  color: var(--text-main);
  padding: 15px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}
.header h1 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.sticky-progress {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-body);
  border-bottom: var(--border-glass);
  padding: 10px 20px;
}
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
  color: var(--text-muted);
}
.progress-track {
  background-color: rgba(255,255,255,0.1);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  background-color: var(--progress-color);
  height: 100%;
  width: 0%;
  transition: width 0.4s ease;
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.step-indicator-bar {
  display: flex;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 4px;
}
.step {
  flex: 1;
  text-align: center;
  padding: 8px 2px;
  background: rgba(255,255,255,0.05);
  font-size: 0.7rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-radius: 4px;
  border: 1px solid transparent;
}
.step.active {
  background: rgba(255,255,255,0.15);
  color: var(--text-main);
  font-weight: bold;
  border-color: rgba(255,255,255,0.2);
}

h2 {
  font-size: 1.2rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 12px;
  margin-top: 0;
  margin-bottom: 24px;
  color: var(--text-main);
}

.form-group { margin-bottom: 32px; }

label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.sub-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  font-weight: bold;
  margin-top: 16px;
}

.badge-imp {
  background: rgba(255,255,255,0.9);
  color: #000;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 8px;
  vertical-align: middle;
  font-weight: 700;
}

input[type="text"], input[type="tel"], input[type="email"], input[type="number"], 
input[type="date"], input[type="time"], input[type="url"], select, textarea {
  width: 100%;
  padding: 14px;
  border: var(--input-border);
  border-radius: 8px;
  font-size: 16px; 
  box-sizing: border-box;
  background-color: var(--input-bg);
  color: var(--text-main);
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input:focus, select:focus, textarea:focus {
  border: var(--input-focus);
  outline: none;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.1);
  background-color: rgba(0,0,0,0.6);
}

textarea { resize: vertical; min-height: 100px; }

.radio-group, .checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.radio-group label, .checkbox-group label {
  font-weight: normal;
  background: rgba(255,255,255,0.03);
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-bottom: 0;
  color: var(--text-body);
  transition: all 0.2s ease;
}

/* 【追加】選択時のスタイル強調 */
.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  color: #fff;
  font-weight: bold;
  box-shadow: 0 0 10px rgba(79, 195, 247, 0.2);
}

/* Fallback for older browsers (active state) */
.radio-group label:active, .checkbox-group label:active {
  background: rgba(255,255,255,0.08);
}

input[type="radio"], input[type="checkbox"] {
  margin-right: 14px;
  transform: scale(1.3);
  accent-color: var(--text-main); 
  width: auto; 
  background: transparent;
  border: none;
  cursor: pointer;
}

.industry-selector-box {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 20px;
  border-radius: var(--radius);
}
.industry-selector-box label { color: #93c5fd; }

.note { font-size: 0.8rem; color: var(--text-muted); margin-top: 8px; line-height: 1.5; }
.note-alert {
  font-size: 0.85rem;
  color: var(--text-danger);
  font-weight: bold;
  margin-top: 10px;
  background: rgba(255, 85, 85, 0.1);
  padding: 10px;
  border-radius: 6px;
  border: var(--border-danger);
}

.btn-group {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  padding-bottom: 10px;
}

.btn {
  display: inline-flex; justify-content: center; align-items: center;
  min-height: 50px; padding: 0 24px;
  font-size: 1rem; font-weight: 700; border-radius: 100px;
  transition: all 0.3s; cursor: pointer;
  border: none;
  width: 100%;
}

.btn-primary {
  background: var(--accent-white);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(255,255,255,0.15);
}
.btn-primary:disabled {
  background: #555; color: #888; box-shadow: none; cursor: not-allowed;
}

.btn-outline, .btn-prev {
  background: rgba(255,255,255,0.03);
  color: var(--text-main);
  border: var(--border-glass);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.1);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(8px);
}
.modal-content {
  background: #111;
  border: var(--border-glass);
  width: 90%;
  max-width: 400px;
  text-align: center;
}
.modal-title { margin-top: 0; color: var(--text-danger); font-size: 1.1rem; margin-bottom: 16px; }
.modal-text { font-size: 0.95rem; color: var(--text-main); margin-bottom: 20px; }
.modal-list {
  text-align: left;
  background: #000;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 24px;
  max-height: 150px;
  overflow-y: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
  border: 1px solid #333;
}
.modal-buttons { display: flex; gap: 12px; }
.btn-modal { flex: 1; border-radius: 8px; min-height: 44px; font-size: 0.9rem; }
.btn-cancel { background: transparent; border: 1px solid #444; color: #fff; }
.btn-ok { background: var(--text-main); color: #000; border: none; }

.details-box {
  margin-top: 20px;
  padding: 20px;
  background: rgba(0,0,0,0.4);
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.2);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.input-row span { font-size: 0.9rem; color: var(--text-muted); white-space: nowrap; }

.footer {
  text-align: center;
  padding: 10px 20px 30px 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: var(--border-glass);
  background: #000;
  margin-top: 30px;
}
.tel-link {
  display: inline-block;
  color: #fff;
  background-color: #333;
  font-weight: bold;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 100px;
  margin-top: 12px;
  border: 1px solid #555;
}

.success-icon { font-size: 4rem; margin-bottom: 20px; }

.form-section { display: none; margin-bottom: 40px; }
.form-section.active { display: block; animation: fadeIn 0.5s ease-out; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}