/*HEAD LOGO,LOGIN BUTTON*/
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 98%;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 10; 
}

.logo img {
  height: 100px;
  width: auto;
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
}

.login-btn{
	border: none;
	padding: 0 40px;
	height: 50px;
	line-height: 1;
	background: #8B4513;
	color: #fff;
	border-radius: 20px;
	font-size: 1em;
	cursor: pointer;
}
.login-btn:before{
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	-webkit-font-smoothing: antialiased;
	font-family: "Font Awesome 5 Free"; 
	font-weight: 400;
	content: '\f058';
	margin-right: 5px;
}

.auth-menu {
  display: flex;
  align-items: center;
}

.user-name {
  margin-right: 0.5rem;   /* アイコンとの間隔 */
  font-size: 1.5rem;        /* 適度な文字サイズ */
  color: #333;            /* アイコンと揃える */
}

.user-icon {
  font-size: 3.5rem;      /* さらに大きく */
  margin-right: 2rem;     /* 右側に余白を追加 */
  cursor: pointer;
  color: #8B4513;
}

.user-dropdown {
  display: none;
  position: absolute;
  top: 120%; /* アイコンの下に表示 */
  right: 0;
  margin-right: 2rem;
  background-color: #fff;
  border: 1px solid #ccc;
  min-width: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 10;
  padding: 10px;
}

.user-dropdown a {
  display: block;
  padding: 8px;
  text-decoration: none;
  color: #333;
}

.user-dropdown a:hover {
  background-color: #f0f0f0;
}

/*HEAD LOGO,LOGIN BUTTON*/

main {
  margin-top: 120px; /* ヘッダーの高さと同じにする */
  margin-left: 253px;
  box-sizing: border-box;
}

.layout-footer {
  background-color: #d3d3d3; /* 鼠色（ライトグレー系） */
  color: #000;  /* 黒文字 */
  text-align: center;
  padding: 80px;
  font-size: 18px;
  margin-top: 40px;
  border-top: 1px solid #aaa;
}

.layout-footer a {
  color: #000;
  text-decoration: none;
  margin: 0 8px;
}

/*SIDEBAR*/
.sidebar {
  position: fixed;
  top: 100px;
  left: 0;
  width: 220px;
  height: 100vh;
  background-color: #ffffff;
  color: #8B4513; /*サイドバー　メニューのこと*/
  padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
  z-index: 9;
}

.sidebar h2 {
  font-size: 30px;
  margin-bottom: 20px;
}

.sidebar ul {
  list-style: none;
  font-size: 20px;
  padding: 0;
}

.sidebar li {
  margin-bottom: 16px;
}

.sidebar a {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.sidebar a:hover{
  color: #00bcd4;
}

.menu-icon {
 font-size: 16px;
  color: #000000; 
}

/*SIDEBAR SNS.logout*/

.sns-links ul {
  display: flex;           /* 横並びにする */
  justify-content: center; /* 中央揃えにす*/
  gap: 32px;               /* アイコンの間隔を調整す*/
  list-style: none;        /* リストの「・」を消す */
  padding: 0;
}

.sns-links li {
  display: inline-block;
}

.instagram-icon {
  font-size: 32px;    /*通常は16pxや*/ 
  color: #000000; 
}

.threads-icon {
  font-size: 32px;
  color: #000000; 
}
 
/*MAIN*/

.profile-header {
  display: flex;
  height: 240px;
  align-items: center;
  gap: 25px;
}

.user-icon-area .user_icon {
  font-size: 160px; /* ふつうは16pxやのににｎ */
  margin-left: 60px;
  color: #333;
}

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

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

/* 追加でレスポンシブ対応 */
@media (max-width: 600px) {
  .user-stats {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

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

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

.tabs i.active {
  color: #333;
}

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

.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;
  border-radius: 6px;
  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;
}