body {
  background: #000;
  color: #fff;
  font-family: "Noto Sans JP", sans-serif;
  margin: 0;
  display: flex;
  justify-content: center;
}

/* スマホ画面のフレーム */
.phone-frame {
  max-width: 420px;
  width: 100%;
  min-height: 100vh;
  background: #000;
  position: relative;
}

/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #333;

  position: sticky;   /* ← 追加 */
  top: 0;             /* ← 追加 */
  z-index: 1000;      /* ← 追加 */
  background: #000;   /* ← 追加（透け防止） */
}

.logo {
  width: 40%;
  height: auto;
}

.icon-left {
  font-size: 20px;
}

/* アイコン画像の共通設定 */
.icon-img {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  filter: brightness(0) invert(1);
  white-space: nowrap;
  cursor: pointer;
}

.icon-img img {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}


/* Card */
.card {
  background: rgb(50, 50, 50);
  margin: 16px;
  padding: 16px;
  border-radius: 12px;
  overflow-wrap: break-word; /*自動改行*/
}

.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-ico {
  width: 40px;
  height: 40px;
  background: #444;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.username {
  font-size: 16px;
}

/* Image Box */
.image-box {
  width: 100%;
  height: auto;
  background: #2a6cff;
  border-radius: 10px;
  margin-top: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Text */
.text-area {
  margin-top: 16px;
}

.title {
  font-size: 23px;
  margin: 0;
}

.body-text {
  margin-top: 6px;
  color: #ccc;
}

/* Footer icons */
.card-footer {
  padding-left: 10px;
  display: flex;
  gap: 20px;
  margin-top: 16px;
}

/* Bottom Navigation */
.bottom-nav {
  position: fixed;
  bottom: 0;
  width: 100%;   /* ← これに変更 */
  max-width: 420px; /* phone-frameに合わせる */
  background: #111;
  padding: 12px 0;
  display: flex;
  justify-content: space-around;
  border-top: 1px solid #333;
}

.user-ico-small {
  width: 28px;
  height: 28px;
  background: #444;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.count {
  font-size: 15px;
  margin: 0;
  padding: 0;
}

/*アカウントページ用*/
.accnt-name {
  font-size: 20px;
}
.accnt-ico {
width: 60px;
height: 60px;
background: #444;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
}
.follow-btn {
  display: flex; /* 中の文字用（今のまま） */
  margin-left: auto;
  margin-right: auto;
  width: fit-content; /* 幅を中身に合わせる */
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 20px;
  border: 1px solid #ccc;
  background-color: #f5f5f5;
  color: #333;
}
.follow-btn:hover {
  background-color: #e0e0e0;
}

.center_el {
  display: flex;
  justify-content: center; /* 横中央 */
}

a {
  display: block;
  margin-top: 16px;
  color: #9bbcff;
}

/*削除ボタン*/
.delete-btn {
  margin-top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgb(255, 0 ,0);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.delete-btn:active {
  background: rgb(100, 0, 0);
}

/*編集ボタン*/
.edit-btn {
  margin-top: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgb(0, 0 ,255);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}

.edit-btn:active {
  background: rgb(0, 0, 100);
}

.next-btn {
    width: 100%;
    margin-top: 24px;
    padding: 14px;
    background: rgb(50, 50, 50);
    border: none;
    border-radius: 6px;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}

/* 以下全てはドロップダウン関係 */

.wrapper {
    position: relative;
    display: inline-block;
  }

  /* ▼ボタン */
  .trigger {
    cursor: pointer;
    padding: 10px;
    font-size: 20px;
  }

  /* ドロップダウン */
  .menu {
    position: absolute;
    top: 40px;
    left: 0;
    background: #fff;
    color: #000;
    border: 1px solid #ccc;
    width: 300px;
    display: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  }

  .menu-item {
    padding: 10px;
    cursor: pointer;
  }

  .menu-item:hover {
    background: rgb(170, 170, 170);;
  }

  .menu-item:hover {
    background-attachment: rgb(170, 170, 170);
  }

  /*コメント入力用*/
  .content-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background: rgba(0,0,0,0.5);

    justify-content: center;
    align-items: center;
}

.content-modal-main {
    width: 500px;
    max-width: 90%;
    background: white;
    color: black;
    border-radius: 16px;
    padding: 20px;
    box-sizing: border-box;
}

.content-close {
    float: right;
    cursor: pointer;
    font-size: 24px;
}

.content-textarea {
    width: 100%;
    height: 120px;
    resize: none;
    margin-top: 10px;
    padding: 10px;
    box-sizing: border-box;
}

.content-footer {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.search-form{
    margin-top: 40px;
}

.search-form label {
    display: block;
    margin-top: 16px;
    font-size: 15px;
}

.search-form input {
    width: 90%;
    padding: 5%;
    margin-top: 6px;
    border-radius: 6px;
    border: none;
    background: rgb(50, 50, 50);
    color: #fff;
    font-size: 16px;
}