@charset "utf-8";

/* ========== Character Page ========== */
.chara-lead {
  margin: 0 0 20px;
  color: #555;
  font-size: 0.95rem;
}

.chara-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: left;
}

.chara-card {
  display: flex;
  gap: 16px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 2px solid #e8f8e8;
  transition: box-shadow 0.2s, transform 0.2s;
}

.chara-card:hover {
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.chara-img-wrap {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #f0f0f0;
  position: relative;
}

.chara-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.chara-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.chara-info {
  flex: 1;
  min-width: 0;
}

.chara-name {
  margin: 0 0 2px;
  font-size: 1.3rem;
  color: #222;
  font-weight: bold;
}

.chara-type {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #00a050;
  font-weight: bold;
}

.chara-detail {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #444;
}

.chara-detail dt {
  display: inline;
  font-weight: bold;
  color: #00b050;
  margin-right: 4px;
}

.chara-detail dt::after {
  content: "：";
}

.chara-detail dd {
  display: inline;
  margin: 0;
}

.chara-detail dd::after {
  content: "";
  display: block;
  margin-bottom: 6px;
}

.chara-detail dd:last-of-type::after {
  margin-bottom: 0;
}

@media screen and (max-width: 768px) {
  .chara-img-wrap {
    width: 100px;
    height: 100px;
  }

  .chara-name {
    font-size: 1.15rem;
  }

  .chara-detail {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 600px) {
  .chara-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 12px 12px 10px;
  }

  .chara-img-wrap {
    /* 現在より小さく（約70〜80%）。幅の目安50〜55%、最大180px */
    width: min(55vw, 110px);
    height: min(55vw, 110px);
    max-width: 180px;
    max-height: 180px;
  }

  .chara-info {
    width: 100%;
  }

  .chara-name {
    font-size: 1.1rem;
  }

  .chara-type {
    margin-bottom: 8px;
  }

  .chara-detail {
    text-align: left;
    font-size: 0.88rem;
  }

  .chara-detail dt {
    display: block;
    margin-bottom: 2px;
  }

  .chara-detail dt::after {
    content: "";
  }

  .chara-detail dd {
    display: block;
    margin-bottom: 6px;
  }

  .chara-detail dd::after {
    display: none;
  }
}
