/* ZeroCode.js - index.html 専用CSS */

/* ヒーローセクション */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 16px;
  color: #2c3e50;
  line-height: 1.3;
}

.hero-subtitle {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #2c3e50;
  color: white;
}

.btn-primary:hover {
  background: #34495e;
}

.btn-secondary {
  background: #ffffff;
  color: #2c3e50;
  border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
  background: #f8f9fa;
  border-color: #95a5a6;
}

.hero-image {
  max-width: 800px;
  margin: 0 auto;
  background: #f8f9fa;
  border-radius: 8px;
  padding: 0;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.1),
    0 0 0 1px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 32px;
  background: #e8e8e8;
  border-bottom: 1px solid #d0d0d0;
  z-index: 2;
  pointer-events: none;
}

.hero-image::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow:
    20px 0 0 #ffbd2e,
    40px 0 0 #28ca42;
  z-index: 3;
  pointer-events: none;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
  margin-top: 32px;
}

/* セクション共通 */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

.section-title {
  font-size: 32px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  color: #2c3e50;
}

.section-subtitle {
  font-size: 18px;
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 特徴セクション */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px;
  text-align: left;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.feature-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

.feature-description {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
}

/* アーキテクチャセクション */
.architecture-diagram {
  max-width: 800px;
  margin: 40px auto;
  padding: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.architecture-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
}

.arch-box {
  background: #ffffff;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  padding: 20px 16px;
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

.arch-box.backend {
  border-color: #95a5a6;
}

.arch-box.frontend {
  border-color: #3498db;
  border-width: 3px;
}

.arch-frontend-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 0;
  min-width: 0;
}

.arch-box.frontend-cms {
  border-color: #3498db;
  border-width: 2px;
}

.arch-box.frontend-editor {
  border-color: #e67e22;
  border-width: 2px;
}

.arch-features {
  font-size: 11px;
  color: #7f8c8d;
  margin-top: 6px;
  line-height: 1.4;
}

.arch-label {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 8px;
}

.arch-name {
  font-size: 18px;
  font-weight: 700;
  color: #3498db;
  margin: 8px 0;
}

.arch-desc {
  font-size: 13px;
  color: #7f8c8d;
  margin-top: 8px;
}

.arch-arrow {
  font-size: 24px;
  color: #7f8c8d;
  font-weight: 300;
}

.arch-note {
  text-align: center;
  font-size: 14px;
  color: #7f8c8d;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e0e0e0;
}

/* デモセクション */
.demo-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.demo-arrow {
  font-size: 24px;
  color: #95a5a6;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin: 0 6px;
}

@media (max-width: 768px) {
  .demo-grid {
    flex-direction: column;
    gap: 8px;
  }

  .demo-arrow {
    transform: rotate(90deg);
    margin: 6px 0;
  }
}

.demo-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  flex: 1;
  min-width: 280px;
  max-width: 100%;
  min-height: 100%;
}

.demo-card.pub {
  border-top: 3px solid #27ae60;
}

.demo-card.cms {
  border-top: 3px solid #3498db;
}

.demo-card.dev {
  border-top: 3px solid #e67e22;
}

.demo-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.demo-card.pub .demo-badge {
  background: #d5f4e6;
  color: #27ae60;
}

.demo-card.cms .demo-badge {
  background: #d6eaf8;
  color: #3498db;
}

.demo-card.dev .demo-badge {
  background: #fadbd8;
  color: #e67e22;
}

.demo-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.demo-description {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 16px;
  line-height: 1.6;
}

.demo-features {
  list-style: none;
  margin-bottom: 18px;
}

.demo-features li {
  font-size: 14px;
  color: #7f8c8d;
  margin: 8px 0;
  padding-left: 24px;
  position: relative;
}

.demo-features li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: #7f8c8d;
  font-weight: normal;
}

.demo-code {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.demo-code code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  color: #d4d4d4;
}

.demo-button {
  display: block;
  width: 100%;
  padding: 10px;
  background: #2c3e50;
  color: white;
  text-align: center;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.demo-button:hover {
  background: #34495e;
}

/* クイックスタートセクション */
.quickstart {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 32px;
  margin-top: 40px;
  border: 1px solid #e0e0e0;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.quickstart h3 {
  color: #2c3e50 !important;
}

.quickstart-code {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 20px;
  margin: 20px 0;
  overflow-x: auto;
}

.quickstart-code code {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  color: #d4d4d4;
  line-height: 1.6;
}

.quickstart-install {
  background: #1e1e1e;
  border-radius: 6px;
  padding: 16px 20px;
  margin-top: 20px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  color: #d4d4d4;
}

.quickstart-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.quickstart-tab {
  padding: 10px 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #7f8c8d;
  transition: all 0.2s;
}

.quickstart-tab:hover {
  color: #2c3e50;
}

.quickstart-tab.active {
  color: #2c3e50;
  border-bottom-color: #2c3e50;
}

.quickstart-tab-content {
  position: relative;
}

.tab-pane {
  display: none;
}

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

/* なぜ選ぶべきかセクション */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.why-choose-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.why-choose-card:hover {
  transform: translateY(-4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.why-choose-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
}

.why-choose-icon-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.why-choose-icon-link::before {
  content: '';
  width: 24px;
  height: 24px;
  border: 3px solid white;
  border-radius: 4px;
  position: relative;
}

.why-choose-icon-link::after {
  content: '';
  width: 12px;
  height: 12px;
  border-top: 3px solid white;
  border-right: 3px solid white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(8px, -12px) rotate(45deg);
}

.why-choose-icon-swap {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.why-choose-icon-swap::before,
.why-choose-icon-swap::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid white;
  border-radius: 4px;
}

.why-choose-icon-swap::before {
  top: 12px;
  left: 12px;
  transform: rotate(-15deg);
}

.why-choose-icon-swap::after {
  bottom: 12px;
  right: 12px;
  transform: rotate(15deg);
}

.why-choose-icon-lightning {
  background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.why-choose-icon-lightning::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 16px solid white;
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) rotate(-20deg);
}

.why-choose-icon-lightning::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 16px solid white;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%) rotate(20deg);
}

.why-choose-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
}

.why-choose-description {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
  text-align: left;
}

/* 比較セクション */
.comparison-container {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 32px;
  margin-top: 40px;
  border: 1px solid #e0e0e0;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  font-size: 14px;
}

.comparison-table thead {
  background: #f8f9fa;
}

.comparison-table th {
  padding: 16px;
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
  border-bottom: 2px solid #e0e0e0;
}

.comparison-table th:first-child {
  min-width: 180px;
}

.comparison-table td {
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  color: #7f8c8d;
}

.comparison-table tbody tr:hover {
  background: #f8f9fa;
}

.comparison-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  vertical-align: middle;
}

.comparison-icon-check {
  position: relative;
}

.comparison-icon-check::before {
  content: '';
  width: 18px;
  height: 18px;
  border: 2px solid #27ae60;
  border-radius: 3px;
  background: #27ae60;
  display: block;
  position: relative;
}

.comparison-icon-check::after {
  content: '';
  width: 5px;
  height: 10px;
  border: 2px solid white;
  border-top: 0;
  border-left: 0;
  position: absolute;
  top: 3px;
  left: 6px;
  transform: rotate(45deg);
}

.comparison-icon-cross {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #e74c3c;
  border-radius: 3px;
  background: #e74c3c;
}

.comparison-icon-cross::before {
  content: '';
  width: 10px;
  height: 2px;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}

.comparison-icon-cross::after {
  content: '';
  width: 10px;
  height: 2px;
  background: white;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}

.comparison-icon-warning {
  position: relative;
}

.comparison-icon-warning::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid #f39c12;
  display: block;
  position: relative;
}

.comparison-icon-warning::after {
  content: '';
  width: 2px;
  height: 6px;
  background: white;
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 1px;
  box-shadow: 0 4px 0 white;
}

.comparison-yes {
  color: #27ae60;
  font-weight: 500;
}

.comparison-partial {
  color: #f39c12;
  font-weight: 500;
}

.comparison-no {
  color: #e74c3c;
  font-weight: 500;
}

.comparison-note {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
  color: #7f8c8d;
  line-height: 1.7;
  text-align: center;
}

/* ユースケースセクション */
.usecase-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 40px;
}

.usecase-item {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s, box-shadow 0.2s;
}

.usecase-item:hover {
  transform: translateX(4px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.12),
    0 4px 12px rgba(0, 0, 0, 0.06);
}

.usecase-content {
  width: 100%;
}

.usecase-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
}

.usecase-content p {
  font-size: 15px;
  color: #7f8c8d;
  line-height: 1.7;
  margin: 0;
}

/* デモヒント */
.demo-hint {
  margin-top: 12px;
  font-size: 13px;
  color: #7f8c8d;
  text-align: center;
  font-style: italic;
}

/* ドキュメントセクション */
.docs-section {
  text-align: center;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 8px;
  padding: 48px 32px;
  border: 1px solid #e0e0e0;
  backdrop-filter: blur(10px);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 2px 8px rgba(0, 0, 0, 0.04);
}

.docs-text {
  font-size: 18px;
  color: #7f8c8d;
  margin-bottom: 30px;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero {
    padding: 40px 20px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 24px;
  }

  .hero-image {
    max-width: 100%;
    padding: 8px;
  }

  .section {
    padding: 40px 20px;
  }

  .section-title {
    font-size: 24px;
    margin-bottom: 30px;
  }

  .section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .demo-grid {
    flex-direction: column;
    gap: 8px;
  }

  .demo-arrow {
    transform: rotate(90deg);
    margin: 6px 0;
  }

  .feature-card {
    padding: 24px;
  }

  .demo-card {
    padding: 20px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
  }

  .btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
  }

  .quickstart {
    padding: 24px;
  }

  .quickstart-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .quickstart-tabs::-webkit-scrollbar {
    display: none;
  }

  .quickstart-tab {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
  }

  .quickstart-code {
    padding: 16px;
    font-size: 12px;
  }

  .quickstart-code code {
    font-size: 12px;
  }

  .docs-section {
    padding: 32px 20px;
  }

  .architecture-diagram {
    padding: 24px;
  }

  .architecture-flow {
    flex-direction: column;
    gap: 16px;
  }

  .arch-box {
    min-width: 100%;
  }

  .arch-frontend-group {
    width: 100%;
  }

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

  .comparison-container {
    padding: 20px;
  }

  .comparison-table {
    font-size: 12px;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 12px 8px;
  }

  .comparison-table th:first-child {
    min-width: 140px;
  }

  .why-choose-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .why-choose-card {
    padding: 24px;
  }

  .usecase-list {
    gap: 20px;
  }

  .usecase-item {
    padding: 20px;
  }
}
