body {
  margin: 0;
  background: #05040A;
  color: white;
  font-family: sans-serif;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* サイドバー */
.sidebar {
  position: fixed;       /* 画面に固定 */
  top: 0;                /* 上端に固定 */
  left: 0;               /* 左端に固定 */
  width: 220px;
  height: 100vh;         /* 画面の高さいっぱい */
  background: #0D0A21;
  padding: 20px;
  box-sizing: border-box;

  display: flex;
  flex-direction: column;
  gap: 20px;

  overflow-y: auto;      /* サイドバー内が長くてもスクロール可能 */
}

/* メニュー全体 */
.menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
}

/* 各ボタン */
.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;

  padding: 10px 14px;
  border-radius: 12px;

  text-decoration: none;
  color: white;

  transition: 0.2s ease;
}

/* 画像サイズ */
.menu-item img {
  width: 28px;
  height: 28px;
  object-fit: cover;
  border-radius: 6px;
}

/* ホバー時 */
.menu-item:hover {
  background-color: #5752EC;
}

/* サイドバーロゴ全体 */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  /* 下線消す */
}

/* ロゴ画像サイズ */
.logo img {
  width: 45px;
  /* ←ここで大きさ調整 */
  height: 45px;
}

/* LUNABASE文字 */
.logo span {
  font-size: 20px;
  font-weight: bold;

  /* シルバーグラデーション */
  background: linear-gradient(135deg,
      #f5f5f5 0%,
      #d6d6d6 30%,
      #a8b0b8 50%,
      #eaeaea 70%,
      #c2c8cf 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  color: transparent;
}


/* LUNABASE文字 */
.logo span {
  font-size: 20px;
  font-weight: bold;

  /* シルバーグラデーション */
  background: linear-gradient(135deg,
      #f5f5f5 0%,
      #d6d6d6 30%,
      #a8b0b8 50%,
      #eaeaea 70%,
      #c2c8cf 100%);

  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;

  background-clip: text;
  color: transparent;
}

.menu-btn {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: #ccc;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.menu-btn.active {
  color: white;
  background: #222;
}

/* メインエリア */
.main {
  flex: 1;
  margin-left: 240px;
  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;
  }
}