/*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 {
  width: 820px;
  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.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; 
}
 

/*SIDEBAR SNS.logout*/

/*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: #642e07; /*ボタンにカーソル合わせたときにかｗあるいろ*/
  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);
}

.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: #642e07; /*ボタンにカーソル合わせたときにかｗあるいろ*/
}


/*RANKING PAGE*/