/* 3カラムレイアウトのラッパー */
.profile-wrapper {
  display: flex;
  justify-content: space-between;
  width: 90%; /* 画面幅の90%を使用 */
  gap: 2%;    /* カラム間の隙間 */
  align-items: flex-start; /* 上揃え */
}

/* 左カラム（ゲームモード） */
.side-nav {
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.side-nav .section-title {
  font-size: 1.5rem;
  color: white;
  margin: 1rem 0 0.5rem 0; /* 上下の余白を調整 */
  padding-left: 0.5rem; /* 少し左に余白 */
  border-bottom: 2px solid #28a745; /* 緑色の下線 */
  text-align: left; /* 左揃えにする */
}
.side-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.game-mode-btn {
  display: block;
  width: 100%;
  padding: 0.7rem 0;
  font-size: 1rem;   
  font-weight: bold;
  color: #333;
  background-color: #f0f0f0;
  border: 2px solid #333;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.game-mode-btn:hover {
  background-color: #ddd;
  transform: translateY(-2px);
}

/* 中央カラム */
.main-profile {
  width: 54%;
  background-color: rgba(19, 41, 61, 0.9);
  border: 2px solid #6dd5ed;
  border-radius: 10px;
  padding: 2rem;
  color: #f0f0f0;
}
.nickname-box h2 {
  font-size: 2rem;
  text-align: center;
  margin-top: 0;
  margin-bottom: 2rem;
}
.score-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}
.score-table th, .score-table td {
  border: 1px solid #6dd5ed;
  padding: 0.8rem;
  text-align: center;
}
.score-table thead {
  background-color: rgba(109, 213, 237, 0.3);
}
.score-table tbody tr:nth-child(even) {
  background-color: rgba(255, 255, 255, 0.05);
}

/* 右カラム */
.right-sidebar {
  width: 20%;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.user-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.action-btn {
  display: block; /* aタグをブロック要素に */
  width: 100%;
  padding: 1rem 0;
  font-size: 1.1rem;
  font-weight: bold;
  border-radius: 8px;
  border: 2px solid #333;
  box-sizing: border-box;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}
.action-btn:hover {
  transform: translateY(-2px);
}
.settings-btn {
  background-color: #f0f0f0;
  color: #333;
}
.logout-btn {
  background-color: #dc3545;
  color: white;
}

/* 広告ボックス（ad_partial.html）のスタイル */
.ad-box {
  background-color: white;
  width: 100%;
  min-height: 20rem; /* 最小の高さを設定 */
  border-radius: 10px;
  color: black;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ゲスト用表示 */
.guest-view {
  text-align: center;
  padding: 3rem 1rem;
}
.guest-view h2 {
  font-size: 2rem;
}
.guest-view p {
  font-size: 1.2rem;
}
.register-btn-guest {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: white;
  background-color: #28a745;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.register-btn-guest:hover {
  transform: translateY(-2px);
}
.score-table-title {
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-size: 1.2rem;
  color: #6dd5ed;
}
.my-list-btn {
  background-color: #ffc107; /* 黄色 */
  border-color: #333;
  color: #333;
}
.my-list-btn:hover {
  background-color: #e0a800;
}