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

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

main {
  margin-top: 120px; 
  margin-left: 253px;
}

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

.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;
  color: #000000; 
}

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

/*PICKUP MAIN*/

.pickup-reasons {
  margin-top: 8px;
}

.pickup-tag {
  display: inline-block;
  padding: 4px 8px;
  margin: 4px 4px 0 0;
  border-radius: 12px;
  font-size: 0.8em;
  color: #fff;
}

.tag-movie       { background-color: #e53935; }
.tag-drama       { background-color: #8e24aa; }
.tag-anime       { background-color: #3949ab; }
.tag-liveaction  { background-color: #00897b; }
.tag-award       { background-color: #fbc02d; color: #000; }
.tag-favorite    { background-color: #fb8c00; }
.tag-rating      { background-color: #43a047; }
.tag-chat        { background-color: #1e88e5; }
.tag-trending    { background-color: #d81b60; }
.tag-default     { background-color: #9e9e9e; }

/*NEW-BOOKS.PHP*/

.main-title {
  text-align: center; 
  color: #8B4513;
  font-size: 40px;
  margin-bottom: 20px;
}

.main-title::after {        /*hタグにつくアンダーライン下にスッと*/
  content: '';
  display: block;
  margin: 0 auto;
  width: 400px;
  padding-top: 5px;
  border-bottom: 2px solid #000000;
}

.genre-tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 10px;
}

.genre-tabs a {
  padding: 8px 16px;
  border-radius: 20px;
  background-color: #eee;
  text-decoration: none;
  color: #333;
  transition: background-color 0.3s ease;
}

.genre-tabs a:hover {
  background-color: #ddd;
}

.genre-tabs a.active {
  background-color: #2196f3;
  color: #fff;
  font-weight: bold;
}

.book-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 20px;
}

.book-card {
  display: flex;
  flex-direction: row;
  width: 320px;
  background-color: #fff;
  border: none; 
  overflow: hidden;
  transition: transform 0.3s ease;
}

.book-card:hover {
  transform: scale(1.03);
}

.cover {
  width: 120px;
  height: auto;
  object-fit: cover;
  flex-shrink: 0;
}

.info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
}

.info h2 {
  font-size: 1.1em;
  margin: 0 0 6px;
  line-height: 1.4;
}

.info .author {
  font-size: 0.95em;
  color: #555;
  margin: 0;
}

@media (max-width: 768px) {
  .book-card {
    width: 100%;
    max-width: 90%;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .book-card {
    width: 45%;
  }
}

@media (min-width: 1025px) {
  .book-card {
    width: 30%;
  }
}