/* === プロフィールヘッダー === */
.profile-header {
  display: flex;
  height: 240px;
  align-items: center;
  gap: 25px;
  padding: 20px;
  background: #fff;
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  border-radius: 8px;
}


.user-icon-area .user_icon {
  font-size: 160px;
  margin-left: 60px;
  color: #687888;
  transition: transform 0.3s ease;
}
.user_icon:hover {
  transform: scale(1.05);
}

.user-info-area {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.username {
  font-size: 26px;
  margin: 0px 0px 20px 0px;
}

.user-stats {
  display: flex;
  gap: 40px;
  margin-top: 12px;
}

.user-stats-mobile{
  display: none;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin: 0;
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: #666;
  margin: 4px 0 0;
}

.filter-btn {
  background-color: #fff;
  border: 2px solid #8B4513;
  color: #8B4513;
  font-weight: bold;
  border-radius: 6px;
  padding: 6px 14px;
  transition: all 0.2s ease;
}
.filter-btn:hover {
  background-color: #fff5ec;
  transform: translateY(-2px);
}
.filter-btn.active {
  background-color: #8B4513;
  color: #fff;
}

.tabs-pc {
  display: flex;
  height: 100px;
  background-color: #fff;
  justify-content: center;
  align-items: center;
  border: 3px solid #555;
  border-radius: 6px;
  box-shadow: 2px 2px 0 #555;
  gap: 2rem;
  margin:20px 0px 0px 5px;
}

.tabs-mobile {
  display: none;
}

.tabs-pc i {
  font-size: 1.5rem;
  color: #888;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.tabs-pc i:hover {
  color: #687888;
  transform: translateY(-2px);
}
.tabs-pc i.active {
  color: #000;
}


.tab-container {
  position: relative;
  margin: 40px 0 0 0;
}

.tab-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
  z-index: 0;
  padding-top: 0px;
}

.tab-content.active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.book-list {
  list-style: none;
  padding: 0;
  margin:0px 20px 0px 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.book-list li {
  background-color: #fff;
  border: none;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cover {
  width: 120px;
  height: 180px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.meta, .info {
  margin-top: 10px;
  text-align: center;
}

.meta h3, .info h3 {
  font-size: 16px;
  margin-bottom: 4px;
  color: #333;
}

.meta p, .info p {
  font-size: 14px;
  color: #666;
}

/* フィルタバー全体 */
.read-filters {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* フィルタボタン */
.read-filters .filter-btn {
  background: none;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 14px;
  color: #555;
  transition: background 0.2s, color 0.2s;
}

.read-filters .filter-btn:hover {
  background: #f0f0f0;
}

.read-filters .filter-btn.active {
  background: #333;
  color: #fff;
  border-color: #333;
}

/* リストアイテムの表示／非表示 */
#read .book-list li {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

#read .book-list li.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.95);
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
}