body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
  min-height: 100vh;
  line-height: 1.6;
}

/* メインコンテンツラッパー */
.wrapper {
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding-left: 20px;
}

.konntent {
  flex: 7; /* メインコンテンツは画面の7割 */
}

h1 {
  font-size: 1.5em;
}

h2 {
  color: #000;
}

a {
  font-weight: bold;
  color: #000;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.header {
  text-align: center;
  margin-bottom: 40px;
  padding: 30px 0;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 20px;
  color: white;
  box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.header h1 {
  font-size: 2em;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  margin-bottom: 30px;
  background: #f8f9fa;
  border-radius: 15px;
  padding: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-button {
  flex: 1;
  padding: 15px 20px;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: linear-gradient(45deg, #667eea, #764ba2);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  transform: translateY(-1px);
}

.tab-button:hover:not(.active) {
  background: #e9ecef;
  color: #333;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* アップデートセクション */
.update-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

.update-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 15px;
}

/* キャラクターリスト */
.character-list {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 10px;
  border: 1px solid #e9ecef;
}

.character-link {
  background: white;
  color: #667eea;
  padding: 8px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
  border: 2px solid #667eea;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.character-link:hover {
  background: #667eea;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

/* キャラクター調整用スタイル */
.character-update {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border-left: 5px solid #667eea;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.character-update:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.character-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.character-image {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 3px solid #667eea;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.character-details {
  flex: 1;
}

.character-name {
  font-size: 1.4em;
  font-weight: bold;
  color: #667eea;
  margin-bottom: 15px;
}

.character-content {
  background: #f8f9fa;
  padding: 0;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

/* バフ・デバフのスタイル */
.update-item {
  padding: 12px 15px;
  margin: 0;
  border-left: 4px solid transparent;
  position: relative;
}

.update-item:not(:last-child) {
  border-bottom: 1px solid #e9ecef;
}

.update-item.buff {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-left-color: #28a745;
  color: #155724;
}

.update-item.nerf {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  border-left-color: #dc3545;
  color: #721c24;
}

.update-item.neutral {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
  border-left-color: #ffc107;
  color: #856404;
}

.update-item.adjustment {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border-left-color: #17a2b8;
  color: #0c5460;
}

/* 内在人格（天賦）調整用スタイル */
.talent-update {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 25px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.talent-update:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.talent-date {
  font-size: 1.2em;
  font-weight: bold;
  color: #dc3545;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.talent-info {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.talent-image {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  border: 2px solid #dc3545;
}

.talent-name {
  font-size: 1.3em;
  font-weight: bold;
  color: #dc3545;
  margin-bottom: 10px;
}

.talent-comparison {
  background: #f8f9fa;
  border-left: 4px solid #dc3545;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 30px;
}

.comparison-container {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 15px;
}

.before-change,
.after-change {
  flex: 1;
  padding: 15px;
  border-radius: 8px;
  line-height: 1.5;
  color: #333;
}

.before-change {
  background: #f8d7da;
  border: 1px solid #dc3545;
}

.after-change {
  background: #d4edda;
  border: 1px solid #28a745;
}

.change-arrow {
  font-size: 2em;
  color: #667eea;
  text-align: center;
  min-width: 40px;
}

.change-label {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
}

@media (max-width: 1210px) {
  body {
    line-height: 1.4;
  }

  .wrapper {
    flex-direction: column; /* レイアウトを縦方向に */
    padding-left: 0cm;
  }

  .header h1 {
    font-size: 1.5em;
  }

  .update-section {
    padding: 15px;
  }

  .update-title {
    font-size: 1em;
  }

  /* キャラクター調整用スタイル */
  .character-update {
    padding: 15px;
  }

  .talent-update {
    padding: 15px;
  }
}

@media (max-width: 768px) {
  .character-info,
  .talent-info {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .comparison-container {
    flex-direction: column;
    gap: 15px;
  }

  .change-arrow {
    transform: rotate(90deg);
    font-size: 1.5em;
  }

  .character-list {
    justify-content: center;
  }
}
