/* ──────────────────────────────────────────────────────────────────────────────
   FaceStamp デモ環境セットアップ — スタイルシート
   世界観: facestamp.jp (イエロー #FCB900 + ダークブラウン #32373c)
   ────────────────────────────────────────────────────────────────────────────── */

/* リセット & ベース */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: #32373c;
  background-color: #fffcf0;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ──────────────────────────────────────────────────────────────────────────────
   ヘッダー
   ────────────────────────────────────────────────────────────────────────────── */
.header {
  background-color: #ffffff;
  border-bottom: 3px solid #FCB900;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-logo {
  height: 32px;
}

.header-divider {
  width: 1px;
  height: 24px;
  background-color: #ddd;
}

.header-title {
  color: #32373c;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

/* ──────────────────────────────────────────────────────────────────────────────
   メインコンテンツ
   ────────────────────────────────────────────────────────────────────────────── */
.main {
  flex: 1;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  width: 100%;
}

.intro {
  text-align: center;
  margin-bottom: 40px;
}

.intro-text {
  font-size: 0.95rem;
  color: #666;
}

/* ──────────────────────────────────────────────────────────────────────────────
   ステップカード
   ────────────────────────────────────────────────────────────────────────────── */
.step-card {
  background-color: #ffffff;
  border-radius: 12px;
  border-left: 4px solid #FCB900;
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.step-number {
  background-color: #FCB900;
  color: #32373c;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 9999px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.step-number.completed {
  background-color: #4caf50;
  color: #ffffff;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #32373c;
}

.step-description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

/* ──────────────────────────────────────────────────────────────────────────────
   フォーム要素
   ────────────────────────────────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #32373c;
  margin-bottom: 6px;
}

.form-input-wrapper {
  display: flex;
  align-items: center;
  gap: 0;
}

.form-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 1rem;
  border: 2px solid #e0d8c0;
  border-radius: 8px 0 0 8px;
  outline: none;
  transition: border-color 0.2s;
  background-color: #ffffff;
}

.form-input:focus {
  border-color: #FCB900;
}

.form-input-suffix {
  padding: 10px 14px;
  font-size: 0.9rem;
  color: #666;
  background-color: #f5f0e0;
  border: 2px solid #e0d8c0;
  border-left: none;
  border-radius: 0 8px 8px 0;
  white-space: nowrap;
}

/* ──────────────────────────────────────────────────────────────────────────────
   ボタン
   ────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 9999px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
  text-decoration: none;
}

.btn:hover {
  opacity: 0.85;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #32373c;
  color: #ffffff;
}

.btn-accent {
  background-color: #FCB900;
  color: #32373c;
  font-weight: 700;
}

.btn-outline {
  background-color: transparent;
  color: #32373c;
  border: 2px solid #32373c;
}

/* ──────────────────────────────────────────────────────────────────────────────
   ステータス表示
   ────────────────────────────────────────────────────────────────────────────── */
.status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: none;
}

.status.show {
  display: block;
}

.status-info {
  background-color: #e8f4fd;
  color: #1a73e8;
  border: 1px solid #b8daff;
}

.status-success {
  background-color: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}

.status-error {
  background-color: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

.status-loading {
  background-color: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}

/* ──────────────────────────────────────────────────────────────────────────────
   STEP 2: 案内リスト
   ────────────────────────────────────────────────────────────────────────────── */
.guide-list {
  list-style: none;
  counter-reset: guide;
}

.guide-list li {
  counter-increment: guide;
  padding: 12px 0;
  border-bottom: 1px solid #f0ead8;
  font-size: 0.9rem;
  line-height: 1.8;
}

.guide-list li:last-child {
  border-bottom: none;
}

.guide-list li::before {
  content: counter(guide) ".";
  font-weight: 700;
  color: #FCB900;
  margin-right: 8px;
}

.guide-list a {
  color: #1a73e8;
  text-decoration: none;
}

.guide-list a:hover {
  text-decoration: underline;
}

/* ──────────────────────────────────────────────────────────────────────────────
   STEP 3: 打刻体験
   ────────────────────────────────────────────────────────────────────────────── */
.demo-url-box {
  background-color: #fdf8e8;
  border: 1px solid #e0d8c0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.demo-url {
  flex: 1;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  color: #32373c;
  word-break: break-all;
}

/* ──────────────────────────────────────────────────────────────────────────────
   フッター
   ────────────────────────────────────────────────────────────────────────────── */
.footer {
  background-color: #32373c;
  padding: 40px 20px 32px;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  height: 40px;
  margin-bottom: 12px;
}

.footer-company {
  color: #ccc;
  font-size: 0.8rem;
  margin-bottom: 20px;
}

.footer-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 24px;
}

.footer-links a {
  color: #aaa;
  font-size: 0.8rem;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-copy-img {
  height: 16px;
  opacity: 0.5;
}

/* ──────────────────────────────────────────────────────────────────────────────
   スピナー
   ────────────────────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

/* ──────────────────────────────────────────────────────────────────────────────
   レスポンシブ
   ────────────────────────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .header {
    padding: 12px 16px;
  }

  .header-logo {
    height: 26px;
  }

  .main {
    padding: 24px 16px 60px;
  }

  .step-card {
    padding: 24px 20px;
  }
}
