:root {
  --bg-0: #0a0a0a;
  --bg-1: #1a1a1a;
  --card-bg: rgba(20, 20, 20, 0.8);
  --text-main: #ffffff;
  --text-body: #cccccc;
  --text-sub: #888888;
  --gold: #cda349;
  --cyan: #00d4aa;
  --orange: #d45500;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: radial-gradient(circle at 50% 0%, #1f1f1f 0%, var(--bg-0) 52%) fixed;
  color: var(--text-body);
}

body {
  font-family: "Noto Sans JP", sans-serif;
}

.loom-page {
  position: relative;
  overflow: hidden;
  padding: 40px 20px 20px;
  isolation: isolate;
}

.loom-page::before,
.loom-page::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.loom-page::before {
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black 25%, transparent 82%);
}

.loom-page::after {
  background: radial-gradient(circle at 20% 30%, rgba(0, 212, 170, 0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(212, 85, 0, 0.14), transparent 35%);
}

.hero,
.cards-section,
.comparison-section,
.footer {
  max-width: 1200px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  padding: 30px 0 60px;
}

.hero-title {
  margin: 0 0 20px;
  font-family: "Orbitron", sans-serif;
  font-weight: 700;
  color: var(--text-main);
  font-size: clamp(36px, 8vw, 64px);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  text-indent: 0.5em;
}

.hero-subtitle {
  margin: 0 0 30px;
  font-size: clamp(18px, 3vw, 24px);
  color: var(--gold);
}

.hero-description {
  margin: 0 auto 20px;
  max-width: 800px;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-body);
}

.deco-line {
  width: 200px;
  height: 1px;
  margin: 40px auto;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

.section-title {
  margin: 0 0 30px;
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text-main);
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.06em;
}

.cards-section {
  margin-top: 20px;
}

.cards-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}

.loom-card {
  background: var(--card-bg);
  border: 1px solid rgba(205, 163, 73, 0.3);
  border-radius: 8px;
  padding: 28px 20px;
  backdrop-filter: blur(4px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.loom-card:hover {
  transform: translateY(-10px);
  border-color: var(--gold);
  box-shadow: 0 20px 40px rgba(205, 163, 73, 0.2);
}

.image-shell {
  width: 100%;
  aspect-ratio: 375 / 812;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0;
  margin: 0 0 28px;
  background: #0f0f0f;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.image-shell:hover {
  transform: scale(1.03);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-title {
  margin: 0 0 10px;
  color: var(--text-main);
  font-family: "Orbitron", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
}

.card-subtitle {
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 20px;
}

.card-tag {
  display: inline-block;
  margin: 0 0 20px;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(205, 163, 73, 0.2);
  font-family: "Roboto Mono", monospace;
}

.card-concept {
  margin: 0 0 25px;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.8;
  font-style: italic;
}

.feature-list {
  list-style: none;
  margin: 0 0 25px;
  padding: 0;
}

.feature-list li {
  position: relative;
  margin-bottom: 12px;
  padding-left: 22px;
  color: var(--text-body);
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.target-users {
  margin: 0 0 15px;
  font-size: 14px;
  color: var(--text-sub);
}

.card-message {
  margin: 0;
  padding-left: 15px;
  border-left: 3px solid var(--gold);
  color: var(--gold);
  font-size: 16px;
  font-weight: 600;
  font-style: italic;
}

.comparison-section {
  margin-top: 80px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid rgba(205, 163, 73, 0.3);
  background: rgba(20, 20, 20, 0.6);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th {
  background: rgba(205, 163, 73, 0.2);
  color: var(--gold);
  font-family: "Orbitron", sans-serif;
  font-size: 16px;
  font-weight: 700;
  padding: 20px 15px;
  text-align: left;
  border-bottom: 2px solid var(--gold);
}

td {
  padding: 20px 15px;
  color: var(--text-body);
  font-size: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

td:first-child {
  color: var(--text-main);
  font-weight: 600;
}

tbody tr:hover {
  background: rgba(205, 163, 73, 0.1);
}

.footer {
  margin-top: 120px;
  padding: 60px 20px 40px;
  border-top: 1px solid rgba(205, 163, 73, 0.3);
  text-align: center;
}

.footer-line {
  width: 100px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 30px;
}

.footer-text {
  margin: 0 0 10px;
  color: var(--text-sub);
  font-size: 14px;
}

.footer-copyright {
  margin: 4px 0 0;
  color: #666;
  font-size: 12px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.95);
  animation: fadeIn 0.3s ease;
}

.modal-image {
  max-width: min(92vw, 480px);
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(205, 163, 73, 0.5);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.85);
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  will-change: transform, opacity;
}

.fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (min-width: 768px) {
  .loom-page {
    padding: 56px 28px 28px;
  }

  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .loom-card {
    padding: 34px 24px;
  }
}

@media (min-width: 1024px) {
  .cards-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    padding-top: 10px;
  }
}
