/* メインエリア */
.main {
  flex: 1;
  padding: 20px;
  background-color: #070610;
}

/* グリッド表示 */
#artifact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* カード */
.artifact-card {
  display: flex;
  flex-direction: row; /* 横に画像とテキスト */
  gap: 12px;
  background-color: #0D0D0D;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  padding: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: left;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.452);  /* 白線、太さ1px */
}

.artifact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* 画像 */
.artifact-img-wrapper {
  flex: 0 0 80px;
  height: 80px;
  border-radius: 8px;
  background: #181818;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.156);  /* 白線、太さ1px */
}

.artifact-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 名前と説明縦並び */
.artifact-info {
  display: flex;
  flex-direction: column; /* 縦並び */
  justify-content: flex-start;
  flex: 1;
}

.artifact-name {
  font-weight: bold;
  font-size: 16px;
  color: #ffffff;
  margin: 0 0 6px 0;
}

.artifact-rarity {
  color: #FFB400;
  margin: 0 0 6px 0;
}

.artifact-affixes {
  font-size: 14px;
  color: #ffffff;
  line-height: 1.5;
  margin: 0;
  padding-left: 12px;
}

.artifact-affixes li {
  margin-bottom: 4px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  #artifact-container {
    grid-template-columns: 1fr;
  }
  .artifact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .artifact-img-wrapper {
    width: 100px;
    height: 100px;
  }
  .artifact-info {
    width: 100%;
  }
  .sidebar {
    width: 60px;
    padding: 8px;
  }
}