* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #000;
  overflow: hidden;
  width: 100vw;
  height: 100vh;
}

#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.case-selector {
  background: #f5f5f5;
  padding: 15px 20px;
  border-bottom: 1px solid #ddd;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  flex-wrap: wrap;
}

.case-button {
  background: #fff;
  border: 1px solid #ccc;
  color: #000;
  padding: 8px 16px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.case-button:hover {
  background: #f0f0f0;
}

.case-button.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

.perspective-container {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: #ddd;
}

.perspective-panel {
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  transition: background 0.3s ease;
  position: relative;
  overflow: hidden;
}

.perspective-panel:hover {
  background: #fafafa;
}

.perspective-panel.active {
  background: #f0f0f0;
}

.perspective-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.perspective-panel.active .perspective-title {
  opacity: 1;
}

.perspective-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.perspective-panel.active .perspective-icon {
  opacity: 1;
  transform: scale(1.1);
}

.perspective-description {
  font-size: 0.85rem;
  text-align: center;
  line-height: 1.6;
  opacity: 0;
  max-width: 200px;
  transition: opacity 0.3s ease;
}

.perspective-panel.active .perspective-description {
  opacity: 0.7;
}

.example-area {
  background: #f5f5f5;
  padding: 30px;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top: 1px solid #ddd;
}

.example-content {
  max-width: 600px;
  text-align: center;
}

.example-title {
  font-size: 0.9rem;
  opacity: 0.5;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.example-text {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.9;
}

.visual-element {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.perspective-panel.active .visual-element {
  opacity: 0.15;
}

.subjective-visual {
  background: radial-gradient(circle at center, rgba(255,100,100,0.3) 0%, transparent 70%);
}

.objective-visual {
  background: radial-gradient(circle at center, rgba(100,100,255,0.3) 0%, transparent 70%);
}

.between-visual {
  background: linear-gradient(45deg, rgba(255,100,100,0.2) 0%, rgba(100,100,255,0.2) 100%);
}

@media (max-width: 768px) {
  .case-selector {
    padding: 10px 15px;
    gap: 8px;
  }
  
  .case-button {
    font-size: 0.85rem;
    padding: 6px 12px;
  }
  
  .perspective-container {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr 1fr;
  }
  
  .perspective-title {
    font-size: 1rem;
  }
  
  .perspective-icon {
    font-size: 2rem;
  }
  
  .example-area {
    padding: 20px;
    min-height: 150px;
  }
  
  .example-text {
    font-size: 0.95rem;
  }
}

