/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: #f0f4f0;
  color: #333;
  min-height: 100vh;
  padding: 16px;
}

.container {
  max-width: 560px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.hidden { display: none !important; }

/* ===== Card ===== */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
  padding: 32px 24px;
  position: relative;
  overflow: hidden;
}

/* ===== Logo Area ===== */
.logo-area {
  text-align: center;
  margin-bottom: 28px;
}

.logo-icon {
  font-size: 48px;
  display: block;
  margin-bottom: 8px;
}

.complete-icon {
  font-size: 56px;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 4px;
}

.site-subtitle {
  font-size: 0.9rem;
  color: #666;
}

/* ===== Error Box ===== */
.error-box {
  background: #fff3f3;
  border: 1px solid #ffcdd2;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 20px;
  color: #c62828;
  font-size: 0.9rem;
}

/* ===== Loading ===== */
.loading-text {
  text-align: center;
  color: #999;
  padding: 20px 0;
}

/* ===== Welcome ===== */
.welcome-text {
  text-align: center;
  line-height: 1.7;
  margin-bottom: 24px;
  color: #444;
}

.welcome-text strong {
  color: #2d6a4f;
}

/* ===== Steps ===== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
  background: #f6fbf8;
  border-radius: 12px;
  padding: 16px;
}

.step {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num {
  background: #2d6a4f;
  color: #fff;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.step-text {
  font-size: 0.95rem;
  color: #444;
}

/* ===== Google Login Button ===== */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px;
  background: #fff;
  border: 2px solid #dadce0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #3c4043;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-google:hover {
  background: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.google-icon {
  width: 20px;
  height: 20px;
}

/* ===== Primary Button ===== */
.btn-primary {
  display: block;
  width: 100%;
  padding: 14px;
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, opacity 0.2s;
}

.btn-primary:hover:not(:disabled) { background: #1b4332; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }

/* ===== Note ===== */
.note {
  text-align: center;
  font-size: 0.78rem;
  color: #999;
  margin-top: 12px;
}

/* ===== Logged In ===== */
.logged-in-text {
  text-align: center;
  margin-bottom: 16px;
  color: #555;
}

/* ===== User Info ===== */
.user-info {
  text-align: right;
  font-size: 0.85rem;
  color: #2d6a4f;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8f5e9;
}

/* ===== Overlay ===== */
.overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  z-index: 10;
}

.overlay-content {
  text-align: center;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #e8f5e9;
  border-top-color: #2d6a4f;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

@keyframes spin { to { transform: rotate(360deg); } }

.overlay-content p {
  font-size: 1rem;
  color: #2d6a4f;
  font-weight: 600;
}

.overlay-sub {
  font-size: 0.85rem !important;
  color: #999 !important;
  font-weight: 400 !important;
  margin-top: 4px;
}

/* ===== Form ===== */
fieldset {
  border: none;
  margin-bottom: 24px;
}

legend {
  font-size: 0.95rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.q-num {
  background: #2d6a4f;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.optional {
  font-size: 0.78rem;
  color: #999;
  font-weight: 400;
}

/* ===== Options ===== */
.options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #f9fafb;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.92rem;
}

.option:hover { background: #f0f4f0; }

.option input[type="radio"],
.option input[type="checkbox"] {
  accent-color: #2d6a4f;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.option:has(input:checked) {
  background: #e8f5e9;
  border-color: #2d6a4f;
}

/* ===== Stars ===== */
.stars-container {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.stars {
  display: flex;
  gap: 4px;
}

.star {
  background: none;
  border: none;
  font-size: 2rem;
  color: #ddd;
  cursor: pointer;
  transition: color 0.15s, transform 0.1s;
  line-height: 1;
  padding: 0;
}

.star.active { color: #f59e0b; }
.star:hover { transform: scale(1.15); }

.star-label {
  font-size: 0.9rem;
  color: #666;
}

/* ===== Textarea ===== */
textarea {
  width: 100%;
  padding: 12px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  resize: vertical;
  transition: border-color 0.15s;
}

textarea:focus {
  outline: none;
  border-color: #2d6a4f;
}

/* ===== Submit Area ===== */
.submit-area {
  margin-top: 8px;
}

.submit-note {
  text-align: center;
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== Complete Page ===== */
.promo-box {
  background: #fff8e1;
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-bottom: 24px;
}

.promo-label {
  font-size: 0.85rem;
  color: #78350f;
  margin-bottom: 8px;
}

.promo-code {
  font-size: 1.5rem;
  font-weight: 700;
  color: #92400e;
  letter-spacing: 2px;
  font-family: monospace;
}

.promo-note {
  font-size: 0.78rem;
  color: #a16207;
  margin-top: 8px;
}

/* ===== Review Box ===== */
.review-box {
  background: #f6fbf8;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

.review-title {
  font-size: 1rem;
  font-weight: 700;
  color: #2d6a4f;
  margin-bottom: 8px;
}

.review-guide {
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.5;
}

.review-text-container {
  background: #fff;
  border: 1px solid #d1fae5;
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  position: relative;
}

.review-text {
  font-size: 0.92rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 10px;
}

.btn-copy {
  background: #2d6a4f;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy:hover { background: #1b4332; }
.btn-copy.copied { background: #059669; }

.btn-google-review {
  display: block;
  text-align: center;
  background: #4285F4;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s;
}

.btn-google-review:hover { background: #1a73e8; }

/* ===== Footer ===== */
.footer-message {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-top: 8px;
  line-height: 1.8;
}

.footer-sub {
  color: #2d6a4f;
  font-weight: 600;
}
