/* DID/VC Demo Landing Page - Styles */

/* カラー変数 */
:root {
  --color-primary: #667eea;
  --color-secondary: #764ba2;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-bg: #f5f5f5;
  --color-card-bg: #ffffff;
  --color-text: #1f2937;
  --color-text-sub: #6b7280;
  --color-border: #e5e7eb;
  --color-demo-badge: #f59e0b;
}

/* リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 免責事項バナー */
.disclaimer-banner {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-bottom: 2px solid #dc2626;
  padding: 0.75rem 1rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.disclaimer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.disclaimer-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.disclaimer-text {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: #991b1b;
}

.disclaimer-text strong {
  font-weight: 700;
}

.disclaimer-separator {
  color: #dc2626;
  font-weight: 300;
}

@media (max-width: 768px) {
  .disclaimer-text {
    font-size: 0.8rem;
  }

  .disclaimer-separator {
    display: none;
  }

  .disclaimer-text {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ヘッダー */
.demo-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
  padding: 2rem 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* ウォレット削除警告バナー */
.wallet-missing-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-bottom: 3px solid var(--color-warning);
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.banner-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.banner-text {
  flex: 1;
}

.banner-text strong {
  display: block;
  font-size: 1.0625rem;
  color: #92400e;
  margin-bottom: 0.25rem;
}

.banner-text p {
  margin: 0;
  font-size: 0.9375rem;
  color: #78350f;
}

.banner-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.banner-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.banner-btn-primary {
  background: #92400e;
  color: white;
}

.banner-btn-primary:hover {
  background: #78350f;
}

.banner-btn-close {
  background: rgba(255, 255, 255, 0.5);
  color: #92400e;
  font-size: 1.25rem;
  padding: 0.25rem 0.75rem;
}

.banner-btn-close:hover {
  background: rgba(255, 255, 255, 0.8);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.demo-header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header-subtitle {
  font-size: 1.125rem;
  opacity: 0.95;
}

/* メインコンテンツ */
.demo-main {
  flex: 1;
  padding: 2rem 1rem;
}

.container {
  max-width: 900px;
  margin: 0 auto;
}

/* 説明セクション */
.intro-section {
  margin-bottom: 2rem;
}

.intro-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.intro-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 1rem;
}

.intro-card h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-text);
}

.reset-btn-small {
  padding: 0.5rem 1rem;
  background: white;
  color: var(--color-text-sub);
  border: 2px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.reset-btn-small:hover {
  background: var(--color-bg);
  border-color: var(--color-text-sub);
  color: var(--color-text);
}

.intro-list {
  list-style: none;
  padding-left: 0;
}

.intro-list li {
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  font-size: 1.0625rem;
}

.intro-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: bold;
}

/* ステップセクション */
.step-section {
  margin-bottom: 2rem;
}

.step-card {
  background: var(--color-card-bg);
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.step-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.step-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
  border-bottom: 2px solid var(--color-border);
}

.step-number {
  background: var(--color-primary);
  color: white;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.step-title {
  flex: 1;
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--color-text);
}

.step-status {
  flex-shrink: 0;
}

.status-pending {
  background: var(--color-border);
  color: var(--color-text-sub);
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-completed {
  background: var(--color-success);
  color: white;
  padding: 0.375rem 0.875rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.step-body {
  padding: 2rem;
}

.step-icon {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
}

.step-description {
  font-size: 1.0625rem;
  color: var(--color-text-sub);
  margin-bottom: 1.5rem;
  text-align: center;
}

.step-content {
  margin-top: 1.5rem;
}

/* ウォレットインストールガイド */
.wallet-install-guide h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.install-steps {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.install-steps li {
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.install-steps code {
  background: var(--color-card-bg);
  padding: 0.125rem 0.5rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9375rem;
  border: 1px solid var(--color-border);
}

/* ウォレット インストール済み */
.wallet-installed {
  text-align: center;
}

.success-message {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f0fdf4;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.success-icon {
  font-size: 1.5rem;
}

.success-text {
  font-weight: 600;
  color: var(--color-success);
  font-size: 1.0625rem;
}

.info-text {
  color: var(--color-text-sub);
  margin-bottom: 1rem;
}

.preset-list {
  list-style: none;
  margin-bottom: 1.5rem;
  display: inline-block;
  text-align: left;
}

.preset-list li {
  padding: 0.5rem 0;
  font-size: 1.0625rem;
}

/* ショップ情報 */
.shop-info {
  background: #f9fafb;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.shop-info h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.shop-info p {
  color: var(--color-text-sub);
  margin-bottom: 1rem;
}

.benefit-list {
  list-style: none;
  padding-left: 0;
}

.benefit-list li {
  padding: 0.375rem 0;
  color: var(--color-text);
}

/* ステップ完了 */
.step-completed {
  text-align: center;
}

.completion-info {
  margin-top: 1rem;
}

.completion-info p {
  margin-bottom: 0.75rem;
  color: var(--color-text-sub);
}

.highlight {
  color: var(--color-primary);
  font-weight: 600;
  font-size: 1.0625rem;
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  background: #d1d5db;
  cursor: not-allowed;
}

.btn-secondary {
  background: white;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: white;
}

.requirement-note {
  margin-top: 1rem;
  text-align: center;
  color: var(--color-text-sub);
  font-size: 0.9375rem;
}

/* まとめセクション */
.summary-section {
  margin-top: 3rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-card h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 1rem;
}

.summary-intro {
  text-align: center;
  font-size: 1.125rem;
  margin-bottom: 2rem;
  color: var(--color-text-sub);
}

.summary-content h3 {
  font-size: 1.375rem;
  margin-bottom: 1.5rem;
  margin-top: 2rem;
}

.summary-content h3:first-child {
  margin-top: 0;
}

/* アチーブメントグリッド */
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.achievement-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.achievement-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.achievement-item h4 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.achievement-item p {
  font-size: 0.9375rem;
  color: var(--color-text-sub);
}

/* 技術説明 */
.technology-explanation {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.tech-list {
  list-style: none;
  padding-left: 0;
}

.tech-list li {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.tech-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.tech-list strong {
  display: block;
  font-size: 1.0625rem;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.tech-list p {
  color: var(--color-text-sub);
  margin: 0;
}

/* Next Steps */
.next-steps {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f9fafb;
  border: 2px solid var(--color-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--color-text);
  transition: all 0.3s ease;
}

.link-card:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.link-icon {
  font-size: 1.5rem;
}

.link-text {
  font-weight: 600;
}

/* リセットセクション */
.reset-section {
  text-align: center;
  margin-top: 2rem;
}

/* フッター */
.demo-footer {
  background: var(--color-text);
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
  margin-top: auto;
}

.demo-footer p {
  margin: 0;
  opacity: 0.8;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .demo-header h1 {
    font-size: 1.5rem;
  }

  .header-subtitle {
    font-size: 1rem;
  }

  .step-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .step-title {
    font-size: 1.125rem;
  }

  .step-body {
    padding: 1.5rem;
  }

  .achievement-grid {
    grid-template-columns: 1fr;
  }

  .link-grid {
    grid-template-columns: 1fr;
  }
}
