* {
  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: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  padding: 20px;
  color: #333;
}

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

header {
  text-align: center;
  color: white;
  margin-bottom: 40px;
}

header h1 {
  font-size: 48px;
  margin-bottom: 8px;
}

.subtitle {
  font-size: 18px;
  opacity: 0.9;
}

main {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* イントロダクション */
.intro-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 2px solid #f0f0f0;
}

.intro-section h2 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

.intro-content p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  text-align: center;
}

.flow-diagram {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.flow-step {
  background: #f5f7ff;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  flex: 1;
  min-width: 180px;
  max-width: 250px;
}

.flow-number {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  margin: 0 auto 12px;
}

.flow-step p {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}

.flow-arrow {
  font-size: 24px;
  color: #667eea;
  font-weight: bold;
}

.note-box {
  background: #fff8e1;
  border-left: 4px solid #ffc107;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
  margin-top: 24px;
}

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

.step-section.hidden {
  display: none;
}

.step-header {
  margin-bottom: 24px;
}

.step-number {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 12px;
}

.step-header h2 {
  font-size: 26px;
  color: #333;
  margin-top: 8px;
}

/* ガイドコンテンツ */
.guide-content h3 {
  font-size: 22px;
  color: #333;
  margin-bottom: 16px;
  margin-top: 32px;
}

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

.guide-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #555;
}

.photo-tips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.tip-card {
  background: #f5f7ff;
  border: 2px solid #e0e7ff;
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
  border-color: #667eea;
}

.tip-icon {
  font-size: 36px;
  margin-bottom: 12px;
  text-align: center;
}

.tip-card h4 {
  font-size: 18px;
  color: #333;
  margin-bottom: 12px;
  text-align: center;
}

.tip-card ul {
  list-style: none;
  padding: 0;
}

.tip-card li {
  padding: 8px 0 8px 24px;
  position: relative;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.tip-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #667eea;
  font-weight: bold;
}

.upload-guide {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}

.upload-steps {
  margin-left: 20px;
  line-height: 2;
}

.upload-steps li {
  font-size: 15px;
  color: #555;
  margin-bottom: 8px;
}

.warning-box {
  background: #fff3e0;
  border-left: 4px solid #ff9800;
  padding: 20px;
  border-radius: 8px;
  line-height: 1.8;
  margin-top: 24px;
}

/* チェックリスト */
.checklist-content {
  margin-bottom: 32px;
}

.instruction-text {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: #555;
  text-align: center;
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  border-bottom: 2px solid #e0e0e0;
  overflow-x: auto;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn:hover {
  color: #667eea;
  background: #f5f7ff;
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-content {
  display: none;
  padding: 24px 0;
}

.tab-content.active {
  display: block;
}

.tab-content h3 {
  font-size: 20px;
  color: #333;
  margin-bottom: 20px;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f9f9f9;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.checkbox-item:hover {
  background: #f5f7ff;
  border-color: #667eea;
}

.checkbox-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-item input[type="checkbox"]:checked {
  accent-color: #667eea;
}

.checkbox-label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.checkbox-label strong {
  color: #333;
  font-size: 15px;
}

.field-hint {
  font-size: 13px;
  color: #888;
  font-weight: normal;
}

/* アドバイスコンテナ */
#advice-container {
  margin-bottom: 32px;
}

.advice-card {
  background: #f5f7ff;
  border: 2px solid #667eea;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}

.advice-card h3 {
  font-size: 20px;
  color: #667eea;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.advice-card .advice-content {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
}

.advice-card .advice-example {
  background: white;
  border-left: 3px solid #667eea;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 4px;
  font-size: 14px;
}

.advice-card .advice-tip {
  background: #fff8e1;
  border-left: 3px solid #ffc107;
  padding: 12px 16px;
  margin-top: 12px;
  border-radius: 4px;
  font-size: 14px;
}

/* スクリーンショットヘルパー */
.screenshot-helper {
  background: #f0f9ff;
  border: 2px solid #0ea5e9;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
}

.screenshot-helper h3 {
  font-size: 20px;
  color: #0284c7;
  margin-bottom: 12px;
}

.screenshot-helper p {
  font-size: 15px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 20px;
}

.upload-area {
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.upload-area:hover {
  border-color: #667eea;
  background: #f5f7ff;
}

.upload-content svg {
  color: #667eea;
  margin-bottom: 16px;
}

.upload-content p {
  color: #555;
  margin-bottom: 4px;
}

.upload-content .small {
  font-size: 13px;
  color: #888;
}

.screenshot-advice {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 2px solid #667eea;
}

.screenshot-advice.hidden {
  display: none;
}

/* STEP 0: 商品写真アップロード */
.upload-area-product {
  border: 2px dashed #d0d0d0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: white;
}

.upload-area-product:hover {
  border-color: #667eea;
  background: #f5f7ff;
}

.product-preview {
  margin-top: 24px;
  padding: 20px;
  background: #f5f7ff;
  border-radius: 8px;
  border: 2px solid #e0e7ff;
}

.product-preview.hidden {
  display: none;
}

.product-preview h4 {
  color: #667eea;
  margin-bottom: 16px;
  font-size: 16px;
}

.preview-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.product-info {
  margin-top: 24px;
  padding: 20px;
  background: white;
  border-radius: 8px;
  border: 2px solid #667eea;
}

.product-info.hidden {
  display: none;
}

.product-details {
  font-size: 15px;
  line-height: 1.8;
}

/* ボタン */
.next-btn {
  width: 100%;
  padding: 16px 32px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 24px;
}

.next-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.back-btn {
  margin-top: 16px;
  padding: 12px 24px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  color: #666;
  font-size: 14px;
  transition: all 0.3s;
  display: inline-block;
}

.back-btn:hover {
  background: #e0e0e0;
  color: #333;
}

/* Google検索リンク（コンパクト版） */
a[href*="google.com/search"] {
  color: #1a73e8;
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s;
}

a[href*="google.com/search"]:hover {
  text-decoration: underline;
  color: #0c5ba0;
}

/* フッター */
footer {
  text-align: center;
  color: white;
  margin-top: 40px;
  opacity: 0.8;
  font-size: 14px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  main {
    padding: 24px;
  }

  header h1 {
    font-size: 36px;
  }

  .flow-diagram {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .photo-tips {
    grid-template-columns: 1fr;
  }

  .tabs {
    flex-direction: column;
    border-bottom: none;
  }

  .tab-btn {
    border-bottom: none;
    border-left: 3px solid transparent;
    text-align: left;
  }

  .tab-btn.active {
    border-bottom: none;
    border-left-color: #667eea;
  }
}

/* 購入モーダル */
#purchase-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

.purchase-card {
  background: white;
  border-radius: 24px;
  padding: 48px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
  text-align: center;
}

.purchase-card h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 12px;
}

.purchase-card .product-name {
  font-size: 20px;
  color: #667eea;
  font-weight: 600;
  margin-bottom: 24px;
}

.purchase-card .price {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin: 24px 0;
}

.purchase-card .price span {
  font-size: 24px;
  color: #888;
}

.purchase-card .features {
  text-align: left;
  margin: 32px 0;
  padding: 24px;
  background: #f5f7ff;
  border-radius: 12px;
}

.purchase-card .features li {
  margin: 12px 0;
  color: #555;
  line-height: 1.6;
}

.purchase-card .features li::before {
  content: '✓';
  color: #667eea;
  font-weight: bold;
  margin-right: 12px;
}

.purchase-card input[type="email"] {
  width: 100%;
  padding: 16px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  margin: 24px 0;
  box-sizing: border-box;
}

.purchase-card input[type="email"]:focus {
  outline: none;
  border-color: #667eea;
}

.purchase-card .checkout-btn {
  width: 100%;
  padding: 18px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.purchase-card .checkout-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(102, 126, 234, 0.4);
}

.purchase-card .checkout-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.purchase-card .guarantee {
  margin-top: 24px;
  padding: 16px;
  background: #fff8e1;
  border-radius: 8px;
  font-size: 14px;
  color: #856404;
}

@media (max-width: 768px) {
  .purchase-card {
    padding: 32px 24px;
  }

  .purchase-card h2 {
    font-size: 24px;
  }

  .purchase-card .price {
    font-size: 36px;
  }
}
