/* ================= 基本 ================= */

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,
.menu-item.active {
  background-color: #5752EC;
}

/* ================= ロゴ ================= */

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img {
  width: 45px;
  height: 45px;
}

.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;
}

/* ================= メイン ================= */

.main {
  flex: 1;
  margin-left: 240px;
  padding: 20px;
  background-color: #070610;
}

/* ================= Artifactフィルター ================= */
#artifact-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-btn {
  display: flex;
  justify-content: center;
  align-items: center;

  width: 56px;
  height: 56px;

  background: #111;
  border: none;
  border-radius: 12px;

  cursor: pointer;
  transition: 0.15s ease-in-out;
}

.filter-btn img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: block;
}

.filter-btn.active {
  background: #333;
}

.filter-btn.active img {
  outline: 2px solid #ffffff;
  outline-offset: 5px;
  transform: scale(1.15);
}

/* ================= グリッド ================= */

#artifact-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* ================= カード ================= */

.artifact-card {
  display: flex;
  gap: 12px;

  background: #111;
  border-radius: 12px;
  padding: 14px;

  border: 1px solid rgba(255,255,255,0.2);

  transition: 0.2s;
}

.artifact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

.artifact-img-wrapper {
  width: 80px;
  height: 80px;
  background: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.artifact-info {
  display: flex;
  flex-direction: column;
}

.artifact-name {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}

.artifact-effect p {
  margin: 4px 0;
  font-size: 14px;
  color: #ccc;
}

/* ================= レスポンシブ ================= */

@media (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;
  }

  .sidebar {
    width: 60px;
    padding: 10px;
  }
}