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

/*HEAD LOGO,LOGIN BUTTON*/

body {
  margin-top: 150px; /* ヘッダーの高さと同じにする */
  margin-left: 280px;
}

/*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*/

/*SIDEBAR*/

/*MAIN MENU*/

/*MAIN MENU SEARCH*/
.search-container {
  display: flex;
  justify-content: center;
  padding: 10px;
  background-color: #ffffff; /*検索バーのバックカラー*/
}

.search-container input[type="text"] {
  padding: 18px;
  width: 500px;
  border: 1px solid #8B4513; /* 周りの境界線を追加するやつ */
  border-radius: 5px 5px 5px 5px;  /*角の丸みを作る奴やんン 左上から時計回り*/
  outline: none;

}

.search-container button {
  padding: 18px 27px;
  border: none;
  background-color: #8B4513;
  color: white;
  border-radius: 5px 5px 5px 5px; /*しょうみ5pxだけでいい*/
  cursor: pointer;
}

.search-icon {
  font-size: 16px; /*そのまんまやんけ*/
}
/*MAIN MENU SEARCH*/

.main-page-column{
  background-color: #ffffff;
  color: #8B4513; /*サイドバー　メニューのこと*/
}

.main-page-column h3 {
  text-align: center;          /* 中央揃え */
  font-size: 30px;
  margin-bottom: 20px;
}

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

/*MAIN PAGE BOOK PAGE*/

.book-gallery {
  display: flex;
  justify-content: center;     /* 横中央に配置 */
  gap: 16px;                   /* 各画像の間隔 */
  flex-wrap: wrap;             /* 小さい画面では折り返し */
  margin: 20px 0;
}

.book-cover {
  width: 120px;                /* 必要に応じて調整 */
  height: auto;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.book-cover:hover {
  transform: scale(1.05);      /* ホバー時に拡大 */
}

/*MAIN PAGE BUTTON*/

.button-container {
  display: flex;
  justify-content: flex-end;
  margin: 20px 0;
}

.read-more {
  padding: 10px 20px;
  background-color: #8B4513;     /* ブルー系に変更可能 */
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;  /*色変わるまでの秒数*/
}

.read-more:hover {
  background-color: #000000; /*ボタンにカーソル合わせたときにかｗあるいろ*/
}

/*MAIN MENU*/




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

.gozyuon {
  text-align: left;          /* ひだり揃え */
  font-size: 30px;
  margin-bottom: 30px;
  color: #000000;
}

.card {
  width: 125px;
  border: 1px solid #ccc;
  border-radius: 8px;
  box-shadow: 2px 2px 8px rgba(0,0,0,0.1);
  padding: 15px;
  background-color: #fff;
  text-align: center;
  transition: transform 0.2s;
}

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

.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

/*MAIN MENU LIBRARY*/

/*RANKING PAGE*/
.ranking-category {
  border: 2px solid #000000;          /* 外枠 */
  border-radius: 80px;
  background-color: #ffffff;
  padding: 30px;
  max-width: max-content;
  margin: 40px auto;                  /* 中央寄せ */
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.ranking-category h1 {
  font-size: 28px;             /*めっちゃコピペ*/
  margin-bottom: 25px;
  color: #333;
}

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

.categories{
  padding: 10px 20px;
  margin: 8px;                        /* ボタンまわりの空間 */
  background-color: #8B4513;          /* 少し明るめの茶色に調整 */
  color: white;
  border: 1.5px solid #8B4513;        /* 意味ないやんけ */
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;                    /*カーソル合わせたときのやつ*/
  transition: background-color 0.3s ease;   /*色変わるまでの秒数*/
  transform: 0.2s ease;
}

.categories:hover {
  background-color: #222222; /*ボタンにカーソル合わせたときにかｗあるいろ*/
  transform: translateY(-2px);       /* ホバー時に少し浮かせる */
}

.ranking-block {
  margin: 50px auto;
  max-width: 800px;
  padding: 20px;
  background-color: #FFFFFF;
}

.category-title h5 {
  font-size: 24px;
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

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

.ranking-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.ranking-card {
  position: relative;
  width: 147px;              /* 横並びギリギリ */
  height: 200px;
  overflow: hidden;
}


.ranking-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.ranking-card img:hover {
  transform: scale(1.05);
}

.rank-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: #FFFFFF;
  color: C0C0C0;
  font-size: 14px;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}


/*RANKING PAGE*/