/*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); 
}

.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: 150px; /* ヘッダーの高さと同じにする */
  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*/
.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; 
}

/*SIDEBAR SNS*/

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

/*SIDEBAR SNS*/

/*MAIN MENU LIBRARY*/
.book-library-title{
  background-color: #ffffff;
  color: #8B4513; /*サイドバー　メニューのこと*/
}

.book-library-title h2{
  text-align: center;          /* 中央揃えええ*/
  font-size: 30px;
  margin-bottom: 20px;
}

.card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
}

.card-link {
  display: block;
  text-decoration: none;
  color: #000;
}

.card-link:visited,
.card-link:hover,
.card-link:active {
  color: #000;
}

.card-link:hover .card {
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transform: scale(1.02);
  transition: 0.3s ease;
}

.card {
  width: 160px;
  height: 330px; 
  overflow: hidden;      
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 15px;
  background-color: #fff;
  text-align: center;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s;
}

.card:hover {
  transform: scale(1.03);
  z-index: 1;
}

.card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.card h3,
.card p {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 4px 0;
}

/*MAIN MENU LIBRARY*/

