/* === CSS リセット & ベーススタイル === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f5576c 75%, #4facfe 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* アニメーション背景 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.3) 0%, transparent 50%);
  animation: backgroundShift 8s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%, 100% { 
    background-position: 0% 50%, 100% 50%, 50% 50%;
  }
  33% { 
    background-position: 100% 50%, 0% 50%, 50% 50%;
  }
  66% { 
    background-position: 50% 50%, 50% 50%, 0% 50%;
  }
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* === ヘッダー === */
.app-header {
  padding: 2rem 0 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.header-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.header-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 24px;
  z-index: -1;
}

.header-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 0.8rem;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  background: linear-gradient(45deg, #fff, #f0f8ff, #fff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.header-subtitle {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 400;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

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

/* === スタート画面 === */
.start-screen {
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-section {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 3.5rem 2.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 28px;
  z-index: -1;
}

.main-title {
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1.8rem;
  color: #1f2937;
  position: relative;
  z-index: 2;
}

.title-line {
  display: block;
}

.highlight {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
  0%, 100% { 
    background-position: 0% 50%;
  }
  50% { 
    background-position: 100% 50%;
  }
}

.hero-description {
  font-size: 1.1rem;
  color: #6b7280;
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.start-btn {
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  color: white;
  border: none;
  padding: 1.2rem 3.5rem;
  font-size: 1.3rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: inherit;
  position: relative;
  z-index: 10;
  animation: buttonPulse 3s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
  }
}

.start-btn * {
  pointer-events: none;
}

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

.start-btn:active {
  transform: translateY(0);
}

.btn-icon {
  font-size: 1.3rem;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* 全ボタン共通の改善 */
button, .retry-btn, .role-detail-btn, .main-detail-link, .sub-detail-link {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* === 特徴セクション === */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
  position: relative;
  z-index: 10;
}

.feature-item {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
}

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-item h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.feature-item p {
  color: #6b7280;
  font-size: 0.95rem;
}

/* === 質問画面 === */
.question-screen {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.question-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 28px;
  z-index: -1;
}

.progress-section {
  margin-bottom: 2.5rem;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-text {
  text-align: center;
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.question-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2rem;
  text-align: center;
  line-height: 1.4;
}

.answers-grid {
  display: grid;
  gap: 1rem;
}

.answer-btn {
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 10;
  backdrop-filter: blur(10px);
}

.answer-btn * {
  pointer-events: none;
}

.answer-btn:hover {
  border-color: #667eea;
  background: #f8fafc;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.answer-btn.selected {
  border-color: #667eea;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.answer-text {
  font-weight: 500;
}

.answer-icon {
  font-size: 1.2rem;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.answer-btn:hover .answer-icon,
.answer-btn.selected .answer-icon {
  opacity: 1;
}

/* === 結果画面 === */
.results-screen {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 28px;
  padding: 3rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.results-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 28px;
  z-index: -1;
}

.results-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.results-title {
  font-size: 2rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.results-subtitle {
  font-size: 1.1rem;
  color: #6b7280;
}

.diagnosis-image {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}

.tech-domain-result-image {
  width: 200px;
  height: 256px; /* 896:1152の比率を維持 */
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(102, 126, 234, 0.3);
  border: 4px solid #667eea;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tech-domain-result-image:hover {
  transform: scale(1.05);
  box-shadow: 0 16px 40px rgba(102, 126, 234, 0.4);
}

.result-badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.result-badge.main {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.result-badge.sub {
  background: #f3f4f6;
  color: #6b7280;
}

.main-result {
  margin-bottom: 2.5rem;
}

.role-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.role-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.main-role {
  border: 2px solid #667eea;
  box-shadow: 0 20px 50px rgba(102, 126, 234, 0.2);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 250, 252, 0.95) 100%);
}

.role-header {
  margin-bottom: 1rem;
}

.role-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.3rem;
}

.role-subtitle {
  font-size: 0.9rem;
  color: #667eea;
  font-weight: 500;
}

.role-description {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.role-character,
.role-workplace,
.role-job-category {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.role-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0;
}

.keyword-tag {
  background: #f3f4f6;
  color: #374151;
  padding: 0.3rem 0.8rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.keyword-tag.large {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.match-score {
  text-align: right;
  font-weight: 600;
  color: #667eea;
  font-size: 1.1rem;
}

.sub-results {
  margin-bottom: 2.5rem;
}

.sub-roles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sub-role {
  padding: 1.5rem;
}

.sub-role .role-name {
  font-size: 1.2rem;
}

.sub-role .match-score {
  font-size: 1rem;
}

.sub-role-actions {
  margin-top: 1rem;
  text-align: center;
}

.sub-detail-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-block;
  position: relative;
  z-index: 10;
}

.sub-detail-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}

.main-role-actions {
  margin-top: 1.5rem;
  text-align: center;
}

.main-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  text-decoration: none;
  padding: 0.8rem 1.5rem;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  position: relative;
  z-index: 10;
}

.main-detail-link * {
  pointer-events: none;
}

.main-detail-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.link-icon {
  font-size: 1rem;
  transition: transform 0.3s ease;
}

.main-detail-link:hover .link-icon {
  transform: translateX(2px);
}

/* === ロール詳細画面 === */
.role-detail-screen {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.detail-header {
  margin-bottom: 2rem;
  text-align: center;
}

.back-btn {
  background: #f3f4f6;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 1rem;
  transition: background 0.3s ease;
}

.back-btn:hover {
  background: #e5e7eb;
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.detail-subtitle {
  font-size: 1rem;
  color: #667eea;
  font-weight: 500;
}

.detail-content {
  display: grid;
  gap: 2rem;
}

.character-card {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
  border-left: 4px solid #667eea;
}

.character-name {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
}

.character-workplace,
.character-job,
.character-style {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.traits-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 1rem;
}

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

.trait-category h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 1rem;
}

.trait-bars {
  display: grid;
  gap: 0.8rem;
}

.trait-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.trait-label {
  font-size: 0.85rem;
  color: #6b7280;
  min-width: 100px;
  text-align: right;
}

.bar {
  flex: 1;
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* === アクションボタン === */
.action-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.retry-btn,
.role-detail-btn {
  background: white;
  color: #667eea;
  border: 2px solid #667eea;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: inherit;
  text-decoration: none;
  position: relative;
  z-index: 10;
}

.retry-btn *,
.role-detail-btn * {
  pointer-events: none;
}

.retry-btn:hover,
.role-detail-btn:hover {
  background: #667eea;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* === フッター === */
.app-footer {
  padding: 2rem 0 1rem;
  text-align: center;
  position: relative;
  z-index: 10;
}

.footer-content {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.9rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

.footer-content::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  z-index: -1;
}

.footer-links {
  margin-top: 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: white;
}

.separator {
  margin: 0 1rem;
  opacity: 0.5;
}

/* === ローディング画面 === */
.loading-screen {
  text-align: center;
  padding: 4rem 2rem;
  color: white;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* === レスポンシブデザイン === */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  .header-title {
    font-size: 1.8rem;
  }
  
  .main-title {
    font-size: 2.2rem;
  }
  
  .hero-section {
    padding: 2.5rem 2rem;
    border-radius: 24px;
  }
  
  .question-screen,
  .results-screen,
  .role-detail-screen {
    padding: 2rem;
    border-radius: 24px;
  }
  
  .features {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .tech-domain-result-image {
    width: 150px;
    height: 192px; /* 896:1152の比率を維持 */
  }
  
  .feature-item {
    padding: 2rem 1.5rem;
  }
  
  .sub-roles {
    grid-template-columns: 1fr;
  }
  
  .traits-grid {
    grid-template-columns: 1fr;
  }
  
  .action-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .retry-btn,
  .role-detail-btn {
    width: 100%;
    max-width: 280px;
    justify-content: center;
  }
  
  .trait-label {
    min-width: 80px;
    font-size: 0.8rem;
  }
  
  .start-btn {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 1.8rem;
  }
  
  .hero-description {
    font-size: 1rem;
  }
  
  .question-title {
    font-size: 1.3rem;
  }
  
  .role-card {
    padding: 1.5rem;
  }
  
  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .separator {
    display: none;
  }
}

/* === アニメーション === */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.start-screen,
.question-screen,
.results-screen,
.role-detail-screen {
  animation: fadeIn 0.5s ease-out;
}


/* 特性分析スタイル */
.axis-analysis {
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.analysis-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
  text-align: center;
}

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

.analysis-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.analysis-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.analysis-value {
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.analysis-desc {
  font-size: 0.75rem;
  color: #64748b;
  line-height: 1.3;
}

/* 新機能用レスポンシブ対応 */
@media (max-width: 768px) {
  .analysis-grid {
    grid-template-columns: 1fr;
  }
}

/* === 4象限グラフスタイル === */
.diagnosis-system {
  margin-top: 3rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.diagnosis-system h3 {
  text-align: center;
  color: #1f2937;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.diagnosis-system p {
  text-align: center;
  color: #6b7280;
  margin-bottom: 2rem;
}

.quadrant-graph {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.quadrant-svg {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.axis-label {
  font-size: 14px;
  font-weight: 600;
  fill: #374151;
}

.axis-label.vertical {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.quadrant-label {
  font-size: 16px;
  font-weight: 700;
  fill: #1f2937;
  pointer-events: none;
}

.quadrant-description {
  font-size: 12px;
  font-weight: 500;
  fill: #4b5563;
  line-height: 1.2;
  pointer-events: none;
}

.quadrant-area {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.quadrant-area:hover {
  opacity: 0.3;
}

.diagnosis-point {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0;
    r: 6;
  }
  50% {
    opacity: 1;
    r: 12;
  }
}

.quadrant-explanation {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.explanation-item {
  text-align: center;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.explanation-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.explanation-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.explanation-item h4 {
  color: #1f2937;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.explanation-item p {
  color: #6b7280;
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* 4象限グラフのレスポンシブ対応 */
@media (max-width: 768px) {
  .diagnosis-system {
    padding: 1.5rem;
    margin-top: 2rem;
  }
  
  .quadrant-explanation {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .explanation-item {
    padding: 1rem;
  }
}

/* === ダークモード対応（将来的な拡張用） === */
@media (prefers-color-scheme: dark) {
  /* ダークモードのスタイルをここに追加可能 */
}
