body {
    margin: 0;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    /* ← これで縦並びになる */
    height: 100vh;
    overflow-x: hidden;
}

header {
    background-color: #333;
    color: white;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
    height: 35px;
    /* ヘッダーの高さを指定 */
}

.login-button {
    margin: 0 35px 0 auto;
}

.login-button button {
    background-color: #333;
    color: #fff;
    box-shadow: none;
    border: none;
    padding: 10px 15px;
    border-radius: 30px;
    cursor: pointer;
}

.login-button button:hover {
    background-color: #555;
}

.menu-toggle {
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    user-select: none;
    z-index: 1002;
}

.logo img {
    width: 150px;
    margin-top: 6px;
    margin-left: -20px;
}

.sidebar {
    width: 250px;
    background-color: #333;
    color: white;
    padding: 20px;
    position: fixed;
    top: 35px;
    /* ヘッダーの高さ分だけ下に配置 */
    left: -300px;
    /* 初期状態では画面外に配置 */
    height: calc(100% - 35px);
    /* ヘッダーの高さを除いた高さを指定 */
    transition: left 0.3s ease;
    z-index: 999;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.sidebar.active {
    left: 0;
    /* アクティブな時に画面内に表示 */
}

.sidebar nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.sidebar nav ul li {
    margin: 5px 0;
}

.sidebar nav ul li a {
    color: white;
    text-decoration: none;
    font-size: 17px;
    display: block;
    padding: 10px 15px;
    border-radius: 4px;
}

.sidebar nav ul li a:hover {
    background-color: #555;
    text-decoration: none;
}

.sidebar i {
    padding: 10px;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

#dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 10px;
    display: none;
    z-index: 1002;
    border-radius: 5px;
}

#dropdown a {
    display: block;
    padding: 10px 15px;
    width: 100px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

#dropdown a:hover {
    background-color: #f0f0f0;
}

#logoutLink:hover {
    color: red;
}

#logoutModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* モーダル本体 */
.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    margin: 10% auto;
    /* 上下の位置調整 */
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    height: 300px;
    /* モーダルの高さを指定 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* 内容を垂直方向に中央揃え */
}

/* ボタンのスタイル */
.modal-button {
    display: inline-block;
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
}

.confirm-button {
    background-color: #ff5757;
    color: white;
}

.cancel-button {
    background-color: #ccc;
    color: black;
}

.confirm-button:hover {
    background-color: #d94646;
}

.cancel-button:hover {
    background-color: #aaa;
}

.page-title {
    margin-top: 4rem;
    text-align: center;
}

.pgtitle {
    font-size: 30px;
    font-weight: bold;
}

.search-window {
    margin: 1.2rem auto 20px auto;
    width: 70%;
    position: relative;
}

input[type="text"] {
    width: 100%;
    max-width: 100%;
    padding: 8px 16px;
    border: solid 1px #dcdcdc;
    border-radius: 30px;
    box-sizing: border-box;
}

input[type="text"]:focus {
    border: solid 1px #a8d5e2;
    outline: none;
}

/* サジェスト全体 */
.suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;

    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    margin-top: 6px;
    padding: 10px;

    z-index: 100;
}

/* タイトル */
.suggest-title {
    margin: 0 0 8px 0;
    font-size: 12px;
    font-weight: bold;
    color: #666;
}

/* リスト */
.suggest-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.suggest-item {
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
}

.suggest-item:hover {
    background: #f5f5f5;
}

.search-rapidrise,
.search-recom,
.search-recom-accounts,
.stamp-recom,
.stamp-new {
    text-align: center;
    margin-top: 16px;
}

.title {
    font-weight: bold;
    margin-bottom: 8px;
}

.rapidrise-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.rapidrise-list li {
    margin-bottom: 6px;
}

.rapidrise-list a {
    text-decoration: none;
    color: #333;
}

.rapidrise-list a:hover {
    text-decoration: underline;
}

/* 横スクロールのレーン */
.recom-post-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0;
  margin: 0;
  list-style: none;

  /* 横だけスクロールさせる */
  overflow-y: hidden;

  /* スマホの横スワイプを気持ちよく */
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;

  /* スクロールバーが邪魔なら後で調整 */
}

.recom-post-item {
  flex: 0 0 280px;     /* 1枚の横幅：ここを好みで調整 */
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  scroll-snap-align: start;
}

/* 既存の上の線（border-top）が残ってたら消す */
.recom-post-item {
  border-top: none;
}

.recom-user {
    display: flex;
    gap: 10px;
    align-items: center;
}

.recom-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.recom-name {
    font-weight: bold;
}

.recom-username {
    font-size: 12px;
    color: #666;
}

.recom-content {
    margin-top: 8px;
}

.recom-footer {
    margin-top: 8px;
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #666;
}

.recom-link {
    text-decoration: none;
}

.recom-link:hover {
    text-decoration: underline;
}

.recom-account-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recom-account-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}

.recom-account-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.recom-account-meta {
  flex: 1;
}

.recom-account-name {
  font-weight: bold;
}

.recom-account-username {
  font-size: 12px;
  color: #666;
}

.recom-account-btn {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eee;
  text-decoration: none;
  color: #333;
}

i {
    padding: 8px;
}
@media (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        width: 80%;
    }
}