body {
  background-color: white; /* 全体を白くする */
  color: black; /* テキストを黒くする */
}

form {
  width: 90%;
  max-width: 400px;
  min-width: 220px;
  padding: 40px 10px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background-color: #ffffff;
  text-align: center;
  box-sizing: border-box;
}

form h1,form p {
  color: rgb(0, 0, 0);
  font-weight: 500;
}

form p {
  font-size: 15px;
}

form h1{
  font-size: 25px;
}


form input[type = "email"],form input[type = "password"] {
  border: 0;
  background: none;
  display: block;
  margin: 20px auto;
  border: 2px solid rgb(0, 0, 0);
  padding: 13px 10px;
  width: 240px;
  box-sizing: border-box;
  outline: none;
  border-radius: 24px;
  transition: 0.25s;
  text-align: center;
  color: black;
  font-size: 15px;
}

form input[type = "email"]:focus,form input[type = "password"]:focus {
  width: 240px;
  box-sizing: border-box;
  background-color: rgb(0, 0, 0);
  color: white;
}

input[type="email"],
input[type="password"] {
  color: white; /* 入力文字を白くする */
  background-color: black; /* 背景色を黒にする（必要に応じて変更） */
  border: 1px solid #ccc;
  padding: 10px;
  border-radius: 5px;
  outline: none;
}

form input[type="text"] {
  border: 0;
  background: none;
  display: block;
  margin: 20px auto;
  border: 2px solid rgb(0, 0, 0);
  padding: 13px 10px;
  width: 240px;
  box-sizing: border-box;
  outline: none;
  border-radius: 24px;
  transition: 0.25s;
  text-align: center;
  font-size: 15px;
}

form input[type="text"]:focus {
  width: 240px;
  box-sizing: border-box;
  background-color: rgb(0, 0, 0);
  color: white;
}

form input[type="password"] {
  border: 0;
  background: none;
  display: block;
  margin: 20px auto;
  border: 2px solid rgb(0, 0, 0);
  padding: 13px 10px;
  width: 240px;
  box-sizing: border-box;
  outline: none;
  border-radius: 24px;
  transition: 0.25s;
  text-align: center;
  font-size: 15px;
}

form input[type="password"]:focus {
  width: 240px;
  box-sizing: border-box;
  background-color: rgb(0, 0, 0);
}

.birthday_form_btm {
  display: flex;
  justify-content: center;
  gap: 10px;
}

form input[type="number"] {
  border: 0;
  background: none;
  display: inline-block;
  margin: 10px 0.5px;
  border: 2px solid rgb(0, 0, 0);
  padding: 13px 10px;
  width: 240px;
  box-sizing: border-box;
  outline: none;
  border-radius: 10px;
  transition: 0.25s;
  text-align: center;
  font-size: 15px;
}

form input[type="number"]:focus {
  width: 240px;
  box-sizing: border-box;
  background-color: rgb(0, 0, 0);
  color: white;
}

form button {
  margin-left: 100px;
  width: 150px;
}

.match-form button{
  margin-left: 0px;
}

.submit_button {
  text-align: center;
  margin-top: 20px;
}

form input[type = "submit"]{
  border: 0;
  background: none;
  display: block;
  margin: 30px auto;
  align-items: center;
  border: 2px solid rgb(0, 0, 0);
  width: 150px;
  box-sizing: border-box;
  outline: none;
  color: rgb(100, 100, 100);
  border-radius: 25px;
  transition: 0.25s;
  text-align: center;
  cursor: pointer;
  font-size: 15px; /* ← 追加: ボタンの文字サイズを統一 */
  height: 45px;
}

form input[type = "submit"]:hover {
  background-color: #000000;
  border: 2px solid #000000;
  color: rgb(255, 255, 255);
  border-radius: 25px;
  border: 2px solid rgb(0, 0, 0);
  transition: 0.25s;
  border: 0;
}

.register-link {
  color: blue;
  font-size: 13px;
  text-decoration: none;
}

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

.welcome_container {
  text-align: center;
  margin-top: 200px;
  color: rgb(0, 0, 0);
}

.welcome_container button {
  border: 0;
  background: none;
  display: inline-block;
  margin: 20px auto;
  border: 2px solid rgb(0, 0, 0);
  padding: 15px 10px;
  width: 200px;
  outline: none;
  color: rgb(0, 0, 0);
  border-radius: 25px;
  transition: 0.25s;
  text-align: center;
  cursor: pointer;
}

.welcome_container button:hover {
  background-color: #000000;
  border: 2px solid #000000;
  color: white;
}

.prompt_container {
  text-align: center;
  margin-top: 80px; /* 少し余白にして見出しが見えるように */
  margin-right: 20px;
}

.prompt_container h1 {
  font-size: 28px;
  margin-bottom: 40px;
}

.prompt_box {
  font-family: 'Arial', sans-serif;
  font-size: 20px;
  border: 2px solid rgb(0, 0, 0);
  background-color: rgb(255, 255, 255);
  color: black;
  padding: 40px 30px;
  margin: 0;
  margin-bottom: 40px;
  border-radius: 15px;
  width: 80vw;
  max-width: 400px;
  height: 250px;
  text-align: center;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre-wrap;
  margin-left: auto;
  margin-right: auto;
}

.prompt_container input[type="submit"] {
  border: 0;
  background: none;
  display: block;
  margin: 20px auto;
  border: 2px solid rgb(0, 0, 0);
  width: 200px;
  outline: none;
  color: rgb(0, 0, 0);
  border-radius: 25px;
  transition: 0.25s;
  text-align: center;
  cursor: pointer;
}

.prompt_container input[type="submit"]:hover {
  background-color: #000000;
  border: 2px solid #000000;
  color: white;
}

.prompt_text {
  font-size: 20px;
  font-weight: bold;
  margin-top: 100px;
}

textarea {
  width: 100%;
  height: 250px; /* ← 縦長に */
  padding: 12px;
  font-size: 30px;
  border-radius: 6px;
  border: 1px solid #ccc;
  resize: vertical;
  box-sizing: border-box;
  margin-bottom: 20px;
}

.chat_header {
  display: flex;
  align-items: center;
  padding: 10px 0px;
  background-color: white;
  border-bottom: 2px solid #ffffff;
}

.chat_header .header_left {
  display: flex;
  align-items: center;
  padding-left: 0px; 
  gap: 0px;
}

.text_post {
  font-size: 1.5em; /* 文字を大きく */
  text-align: center; /* 中央揃え */
  font-weight: bold; /* 太字 */
  color: #333; /* 文字色を濃いめに */
}

.back-button:hover {
  color: #777777;
  border: none;
  background: none;
}


.friend_profile_img {
  width: 40px;         /* 画像の幅 */
  height: 40px;        /* 画像の高さ */
  border-radius: 50%;  /* 丸くする */
  object-fit: cover;   /* 画像を切り抜いて綺麗に表示 */
  border: none;
  margin-left: 10px;
}

.friend_name {
  font-size: 15px;
  color: black;
  margin: 0px;
  margin-top: 0px;
  margin-left: 20px;
}

.chat_container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: calc(100vh - 60px); /* ヘッダーの高さを引いた分の高さ */
  background-color: white; /* 全体を白くする */
}

.chat_box {
  flex-grow: 1;
  padding: 8px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.message_wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  margin-bottom: 6px;
}

.message_wrapper.my {
  align-items: flex-end;
}

.message_wrapper.friend {
  align-items: flex-start;
}

.message {
  text-align: left;
  max-width: 60%;
  font-size: 10px;
  line-height: 1.5;
  padding: 6px 8px;
  border-radius: 15px;
  word-break: break-word;
  background-color: #dbdbdb;
  color: black;
  box-sizing: border-box;
}

.timestamp {
  font-size: 10px;
  color: #555;
  margin-top: 2px;
  width: auto;
  padding: 0 8px;
}

.my_timestamp {
  text-align: right;
  align-self: flex-end;
}

.friend_timestamp {
  text-align: left;
  align-self: flex-start;
}

.message p {
  margin: 0;
  font-size: 15px;
  text-align: left;
}

.message_input {
  display: flex;
  align-items: center;
  padding: 10px ;
  background-color: white;
  border-top: 2px solid #ffffff;
}

.message_input input {
  flex-grow: 1;
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

.message_input input[type="text"] {
  flex-grow: 1;
  padding: 6px 10px;
  border-radius: 25px;
  border: 2px solid #ccc;
  outline: none;
  font-size: 14px;
}

.message_input button {
  background-color: rgb(100, 100, 100);
  padding: 6px 12px;
  border: none;
  color: white;
  border-radius: 25px;
  transition: 0.25s;
  cursor: pointer;
  max-width: 80px;
  margin-left: 10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.message_input button:hover {
  background-color: #000000;
  border: none;
  color: rgb(255, 255, 255);
}

.friend_container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh; /* 画面全体の高さで中央配置 */
}

.friend_profile_box {
  display: flex;
  align-items: center;  /* 縦方向の中央揃え */
  padding: 8px 10px; /* 余白を調整 */
  gap: 30px;
  text-align: center;
  margin-bottom: 80px;
}

.recent_friends_container{
  margin-left: 10px;
  margin-top: 20px;
}

.recent_friends_container :hover{
  background-color: rgb(255, 255, 255);
}

.follow_item p,
#followingCount,
#followerCount {
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 2px;
}

.follow_button {
  padding: 10px 20px;
  font-size: 15px;
  background-color: #ffffff;
  color: rgb(0, 0, 0);
  cursor: pointer;
  margin-top: 50px;
  margin-left: 60px;
}

.follow_button:hover {
  background-color: #000000;
  color: white;
}

.friend_icon_large {
  width: 50px;  /* 少し小さくして調整 */
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 30px; /* ← 余白を減らす */
  margin-bottom: -50px;
}

.friend_info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  flex-grow: 1;
  margin-left: 0px; /* ← 不要なマージンを削除 */
  margin-top: 5px;
}

.friend_name_large {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: -5px;
  margin-top: -15px;
  margin-left: -40px;
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
}

.latest_message {
  font-size: 12px;
  color: #555;
  margin-left: -40px;
  margin-top: 10px;
  margin-bottom: -60px;
  font-family: 'Arial', sans-serif;
  font-weight: normal;
  letter-spacing: 2px;
}

.unread_count {
  font-family: 'Arial', sans-serif;
  background-color: rgb(0, 0, 0);
  color: white;
  font-size: 10px;
  font-weight: bold;
  padding: 5px 8px;
  border-radius: 50%;
  margin-bottom: -55px;
  right: 20px;
  position: absolute;
}

.bottom_nav {
  position: fixed;
  bottom: 0px;
  width: 100%;
  height: 50px;
  display: flex;
  justify-content: center; 
  background-color: white;
  border-top: none;
  align-items: center;
  padding: 0;
  z-index: 100;
}

.nav_button{
  border: none;
  background: none; /* 不要な背景を削除 */
  flex: 1; /* 均等幅で配置 */
  height: 100%;
  margin-botton: 10px;
}

.nav_button:hover{
  border: none;
  background: none;
}

/* ナビ画像サイズ */
.nav_button img {
  width: 25px;
  height: 25px;
  display: block;
  border: none;
  margin: auto;
  margin-botton: 10px;
  margin-top: -10px;
}

#notificationList {
  max-width: 700px;
  margin: 10px auto;
  padding: 20px;
}

.notification_item {
  font-size: 15px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  margin-top: 0px;
  margin-bottom: 30px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  line-height: 2;
  gap: 13px;
}

.notification_item button {
  font-size: 10px;
  margin-left: 0px;
  margin-top: 0px;
  padding: 5px 8px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: #000000;
  min-width:40px; 
  width: 10%;
  color: #fff;
}

.notification_item button:hover {
  background-color: #555;
  border: none;
}

.notification_text {
  display: flex;
  align-items: center;
  flex-grow: 1;
  gap: 5px;
  font-size: 13px;
}

.notification_username {
  margin-right: 4px;
  font-size: 13px;
  font-weight: bold;
}

.notification_message {
  font-size: 13px;
  color: #333;
}

p {
  text-align: center;
  font-size: 22px;
  color: #000000;
}

.post {
  margin-bottom: 30px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 10px;
  background-color: white;
  position: relative;
}

.post_header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -40px;
}

.posts_grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 10px;
  padding-bottom: 50px;
  box-sizing: border-box;
  max-width: 100%;
  overflow-x: hidden;
}

.post_item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 0px;
  border-radius: 1px;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
  text-align: center;
  height: 150px; /* 👈← 縦幅を明示的に確保 */
  overflow: hidden;
}

.post_contents {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.post_contents img,
.post_contents video,
.post_contents audio {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* ⬅️ 中央切り抜き */
  border-radius: 6px;
  z-index: 1;
}

.prompt_text {
  position: absolute;
  top: -95px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 7px;
  color: #000000;
  background-color: rgb(255, 255, 255);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 5px 12px;
  border-radius: 4px;
  width: 60%;              /* ✅ 横幅 “一歩手前” に */
  max-width: 80%;          /* ✅ 念のため上限も指定 */
  text-align: center;
  z-index: 2;
  white-space: pre-wrap; /* ✅ 複数行改行を許可 */
  overflow: visible;     /* ✅ 隠さない */
  display: block;        /* ✅ 通常ブロック要素として表示 */
  line-height: 1.4;
  font-family: 'Arial', sans-serif;
  font-weight: bold;
  letter-spacing: 2px;
}

.center_text {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 10px;
  text-align: center;
}

.text_post {
  margin-top: 30px;
  margin-left: 5px;
  margin-right: 5px;
  font-size: 14px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
  color: #000;
  white-space: pre-wrap;
}

.posts_container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 20px;
  margin-top: 60px;
}

/* 左上のユーザー情報 */
.user_info {
  display: flex;
  align-items: center;
  gap: 50px;
  margin-left: 25px;
  margin-top: 15px;
}

.user_result {
  display: flex;
  align-items: center;
  padding: 15px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  border: none;
  margin-left: -50px;
  margin-top: 0px;
}

.user_result:hover {
  background-color: #e0e0e0;
  width: 98%;
  margin-left: -50px;
  margin-top: 0px;
}

.profile_pic {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 40px;
  margin-left: 30px;
  margin-top: 10px;
}

#profileName {
  margin-left: 30px;
  margin-top: 20px;
  font-size: 25px;
  font-weight: bold;
  font-family: 'Arial', sans-serif;
  letter-spacing: 2px;
}

.profilename:hover {
  color: #777777;
}

.profile_img {
  margin-left: 0px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  vertical-align: middle;
  margin-top: 15px;
}

.user_name {
  margin-top: 15px;
  font-weight: bold;
  font-size: 15px;
  margin-left: 8px; /* ← 間隔 */
  line-height: 30px; /* ← 同じ高さに */
  display: inline-block;
  vertical-align: middle;
}

.post_prompt {
  font-size: 15px;
  background-color: #ffffff;
  color: #000;
  padding: 5px 5px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-left: auto;
  align-self: center;
  display: inline-block;
  text-align: start;
  width: auto;
  max-width: 50%;
  margin-top: 20px;
  margin-right: 15px;
}

.post_content {
  display: flex;
  flex-grow: 1;
  align-items: center;
  justify-content: center;
  padding: 0 0px;
  text-align: center;
}

.post_image,
video {
  max-height: calc(100vh - 250px);
  max-width: 100vw;
  object-fit: contain;
  margin-top: 0px;
  margin-bottom: 0px;
}

.posts_wrapper {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.post_fullscreen {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* ← 上・中央・下を分ける */
  position: absolute;
  width: 100%;
  top: 0;
  left: 0;
  background: white;
  overflow: hidden;
}

.post_header {
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post_content p {
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  margin: 0 auto;
  padding: 40px 10px;
  word-break: break-word;
  max-width: 80vw;
}

.comment_icon_img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.post_buttons {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: env(safe-area-inset-bottom, 60px); /* ← ⬅︎← ここで押し上げ */
  height: 50px;
  margin-bottom: 30px;
  margin-top: -20px;
  margin-left: 5px;
}

.button_wrapper {
  display: flex;
  align-items: center;
  gap: 5px; /* ← いいねボタンと数の間をできるだけ縮める */
}

.like_button,
.comment_button {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  padding: 4px; /* ← 不要なクリック領域拡大を防ぐ */
  margin: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.like_icon{
  width: 25px;
  height: 25px;
  margin-botton: 3px;
  margin-top: -2px;
}

.comment_button{
  margin-bottom: 3px;
  margin-left: 5px;
}

.like_avatars {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 5px;
  margin-top: 5px;
}

.like_avatar {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.like_plus_button {
  border: none;
  background: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 15px;
  cursor: pointer;
  margin-left: -10px;
  margin-top: -10px;
}

.like_plus_button:hover {
  border: none;
  background: none;
  border-radius: 50%;
  width: 25px;
  height: 25px;
  font-size: 15px;
  cursor: pointer;
  margin-left: -10px;
  margin-top: -10px;
}

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

.modal_content {
  background-color: white;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  height: 100%;
  position: relative;
}

.close_button {
  position: absolute;
  right: 10px;
  top: 5px;
  cursor: pointer;
}

.comment_list {
  margin-bottom: 10px;
  max-height: 60px;
  overflow-y: auto;
}

#commentInput {
  width: 98%;
  margin-bottom: 10px;
}

#submitComment {
  width: 50%;
}

.profile_header {
  text-align: center;
  background-color: white;
  display: flex;
  justify-content: space-between; /* 左右に配置 */
  align-items: center;
  margin-left: 0px;
  margin-top: 20px;
}

.profile_header h1{
  font-size: 35px;
}

.username {
  flex: 1;
  font-size: 18px;
  color: black;
  margin-left: 5px;
  margin-top: 10px;
  font-weight: bold;
}

.usernames {
  font-size: 15px;
  flex: 1;
  text-align: left;  /* ← 左寄せ */
  margin-left: 10px;
  margin-right: 50px;
  cursor: pointer;
  font-weight: bold;
}

.profile_icon_container {
  text-align: center;
  margin-top: 20px;
}

.profile_icon_container .profile_icon_large {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  margin-top: -30px;
}

.profile_icon_small {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 0px;
  margin-left: 20px;
}

.follow_info {
  display: flex;
  justify-content: center;
  gap: 20px; /* フォローとフォロワーの間隔 */
  margin-top: 20px;
}

.follow_item {
  display: flex;
  flex-direction: row; /* ← 横並びに変更 */
  align-items: center;
  gap: 6px; /* 数字と文字の間隔 */
  font-size: 10px;
  cursor: pointer;
}

.unfollow_btn,
.remove_btn {
  width: 40%;
  margin-left: auto; /* 🔥 これで右端に寄せる */
  padding: 5px 10px;
  background-color: #000000;
  color: white;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
}

.remove_btn {
  background: none;
  color: #000000;
  font-size: 30px;
  margin-bottom: 20px;
}

.remove_btn:hover{
  background: none;
  color: #777777;
  border: none;
}

.unfollow_btn:hover {
  width: 40%;
  margin-left: auto; /* 🔥 これで右端に寄せる */
  padding: 5px 10px;
  background-color: #000000;
  color: white;
  border: none;
  cursor: pointer;
  margin-bottom: 20px;
}

.header_bar {
  width: 100%;
  background-color: #fff;
  padding: 10px 12px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start; /* ← 左寄せに変更 */
  gap: 60px; /* ← 戻るボタンとタブの間だけ少し空ける */
}

.header_contents {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 60px;
  margin-top: 10px;
}

.tab_btn {
  max-width: 40px; 
  display: inline-block;
  padding: 6px 8px;
  margin: 0;
  border: none;
  background: none;
  border-radius: 20px;
  font-weight: normal;
  cursor: pointer;
  font-size: 14px;
  flex: none;  
  flex-shrink: 1;
  white-space: nowrap;
}

.tab_btn:hover {
  font-weight: bold;
  color: #000;
  background: none;
  border: none;
}

.tab_btn.active {
  color: #000000;
  font-weight: bold;
  background: none;
  border: none;
}

.back-button {
  font-size: 22px;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
  padding: 0 4px;
  margin-right: 12px;
}

.settings_button {
  background: none;
  border: none;
  font-size: 40px;
  cursor: pointer;
  margin-right: -50px;
  margin-top: 15px;
  color: #000000;
}

.settings_button:hover{
  background-color: white;
  color: #777777;
  border: white;
}

.settings_containerss{
  align-items: flex-start;
  font-size: 6px;
  line-height: 2.2;
  display: flex;
  flex-direction: column;
  margin-left: 30px;
}

.settings_containerss p,
.settings_containerss span {
  font-size: 15px !important;
}

.action_buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.action_button {
  background-color: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  border-color: #000;
  border-radius: 5px;
  padding: 10px 20px;
  cursor: pointer;
  transition: background-color 0.3s;
  width: 40%;
}

.action_button:hover {
  background-color: #000000;
  color: white;
  border-radius: 5px;
  padding: 10px 20px;
  border: #000000;
  width: 40%;
}

.search_header {
  position: fixed;
  top: 0;
  width: 95%;
  height: 30px;
  background-color: white;
  padding: 15px 10px;
  align-items: center;
  display: flex;
  justify-content: center;
  position: sticky;
  z-index: 1000;
  margin-top: 30px;
}

.search_header input[type="text"] {
  flex-grow: 1;
  padding: 10px;
  border-radius: 25px;
  border: 2px solid #ccc;
  outline: none;
  margin-right: 10px;
}

.search_button {
  border: 0;
  background-color: black;
  padding: 10px 5px;
  border: 2px solid #000000;
  outline: none;
  color: white;
  border-radius: 25px;
  transition: 0.25s;
  cursor: pointer;
  width: 90px;
  margin-top: 0px;
}

.search_button:hover {
  background-color: #777777;
  border: 2px solid #777777;
  width: 90px;
}

.overlay {
  position: fixed;
  top: 60px; /* 検索バーの高さを考慮 */
  left: 0;
  width: 100%;
  height: calc(100% - 60px); /* 検索バー分を引いた高さ */
  background-color: white;
  display: none;
  z-index: 999;
  padding: 20px;
  overflow-y: auto;
}

#searchResults {
  margin-top: 20px;
  max-height: calc(100% - 60px); /* 上部の余白を考慮 */
  overflow-y: auto;
  padding: 10px;
}

/* 閉じるボタン */
.close_button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  cursor: pointer;
  border: none;
  background: none;
}

.options {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.setting_button {
  display: block;
  margin-bottom: 50px;
  width: 100%;
  margin: 0px auto;
  padding: 20px 20px;
  font-size: 20px;        /* ✅ 文字を大きく */
  text-align: start;     /* ✅ 中央揃え */
  background-color: #ffffff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: black;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.setting_button:hover {
  background-color: #e0e0e0;
  color: black;
  border: none;
}

#newUsername {
  width: 90%;
  height: 50px;
  font-size: 18px;
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
  margin: 0 auto;
  display: block;
}

.settings_buttons {
  width: 70%;               /* 👈 横幅を広げる */
  padding: 14px;
  font-size: 15px;          /* 👈 横文字に合わせたサイズ */
  margin: 0 auto;           /* 👈 中央揃え */
  display: block;
  background-color: #f7f7f7;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  color: black;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.settings_buttons:hover {
  background-color: #e0e0e0;
}

.settings_container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 40px 20px;
  max-width: 500px;
  margin: 0 auto;
}

.setting_item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  max-width: 600px;
  width: 100%;
  padding: 20px;
  font-size: 18px;
  box-sizing: border-box;
  gap: 20px; /* ← トグルとテキストの間隔調整 */
}

.setting_item span {
  white-space: nowrap;       /* ← 改行を防止する */
  overflow: hidden;          /* ← 必要に応じて */
  text-overflow: ellipsis;   /* ← テキストが長すぎる場合に省略記号を表示 */
}

.toggle-switch {
  position: relative;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  top: 4px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: #000;
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
}


#languageSelect {
  font-size: 18px;
  padding: 10px;
  margin: 0px 0;
  width: 50%;
}

button {
  margin-top: 20px;
  border: 0;
  background: none;
  display: block;
  border: 2px solid rgb(0, 0, 0);
  padding: 15px 10px;
  width: 200px;
  outline: none;
  color: rgb(100, 100, 100);
  border-radius: 25px;
  transition: 0.25s;
  text-align: center;
  cursor: pointer;
}

button:hover {
  background-color: #000000;
  border: 2px solid #000000;
  color: white;
}

.country_form_btm {
  margin: 30px 0;
}

select[name="country"] {
  width: 60%;
  max-width: 400px;
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  appearance: none;
}

select[name="gender"] {
  width: 60%;
  max-width: 400px;
  padding: 12px;
  font-size: 18px;
  border-radius: 8px;
  border: 1px solid #ccc;
  appearance: none;
}

#camera {
  width: 50%;
  height: 5%;
  object-fit: cover;
  margin: 0 auto;
  display: block;
}

#status {
  position: absolute;
  bottom: 120px;
  left: 50%;
  transform: translateX(-50%);
  color: rgb(0, 0, 0);
  font-size: 20px;
}

#submitButton {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
}

.switch_button:hover{
  background: none;
  border: none;
  color: black;
}

.video_wrapper {
  position: relative;
  width: 100%;
  max-width: 1110px;
  margin: 0 auto;
  overflow: hidden;
}

.video_wrapper video {
  width: 100%;
  height: auto;
}

.user_list {
  max-height: 300px;
  overflow-y: auto;
}

.liked_user {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.liked_users_list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 10px;
}

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

.liked_user_img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.liked_user_name {
  font-weight: bold;
  font-size: 15px;
}

.view_button {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 200px;
  margin-right: -100px;
  margin-top: 0px;
}

.view_button:hover {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 200px;
  margin-right: -100px;
  margin-top: 0px;
}

.viewer_item {
  display: flex;
  align-items: center;
  padding: 8px;
}

.viewer_img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 10px;
}

.eye_icon_img {
  width: 25px;
  height: 25px;
  vertical-align: middle;
}

.viewer_name {
  font-size: 15px;
  font-weight: bold;
}

button, .back_button, .options button {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

button,
button:focus,
button:active {
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent; /* ✅ モバイルSafari/Chrome用 */
  -webkit-focus-ring-color: transparent;
}

*, *:focus, *:active {
  -webkit-tap-highlight-color: transparent;
  outline: none;
}

/* 特にクリック要素に適用（ユーザー画像・名前・フォロー欄） */
.profile_icon_container img,
#profileName,
.follow_item {
  -webkit-tap-highlight-color: transparent;
  outline: none;
  user-select: none;
}

* {
  -webkit-tap-highlight-color: transparent;
}

.fullscreen_post .post_content {
  height: calc(100vh - 200px); /* 下のナビゲーションを除いた高さ */
  display: flex;
  align-items: center;
  justify-content: center;
}

.fullscreen_post .post_image,
.fullscreen_post video {
  aspect-ratio: 4 / 5.7;  
  max-width: 100vw;
  object-fit: cover;
}

.fullscreen_post .post_header {
  position: absolute;
  top: 10px;
  left: 0;
  width: 100%;
  z-index: 10;
  background: none; /* 背景半透明で視認性向上 */
  padding: 8px 16px;
  box-sizing: border-box;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ︙ボタン（右上に配置） */
.post_menu_button {
  background: none;
  border: none;
  font-size: 20px;
  color: #000000;
  position: absolute;
  top: 18px;
  right: -85px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

.post_menu_button:hover{
  background: none;
  border: none;
  font-size: 20px;
  position: absolute;
  color: #000000;
  top: 18px;
  right: -85px;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  z-index: 10;
}

/* 報告モーダル全体 */
#reportModal .modal_content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 20px;
  text-align: center;
}

/* モーダルのタイトル中央寄せ */
#reportModal h3 {
  text-align: center;
  margin-top: 0;
}

/* 選択肢ボタン中央揃え */
#reportOptions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 15px;
}

/* 選択肢ボタン */
#reportOptions button {
  width: 80%;
  padding: 10px;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  border: 1px solid #ffffff;
  background-color: #ffffff;
  color: #000000;
  cursor: pointer;
  text-align: start;
  transition: background-color 0.2s;
}
#reportOptions button:hover {
  background-color: #e0e0e0;
}

/* モーダル内注意文 */
#reportModal p {
  margin: 10px auto;
  font-size: 15px;
  color: #555;
  line-height: 1.5;
  max-width: 90%;
}

#submitComment{
  margin: 20px auto;
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
}

#submitComment:hover{
  background-color: #000000;
  color: #ffffff;
  border: none;
}

/* 送信ボタン中央 */
#submitReportButton {
  margin: 20px auto;
  display: block;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  background-color: #ffffff;
  color: #000000;
  border: none;
  cursor: pointer;
}
#submitReportButton:hover {
  background-color: #000000;
  color: #ffffff;
  border: none;
}

h3 {
  text-align: center;
  margin-top: 0;
}

/* モーダル中に背景をスクロールさせない */
body.modal-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}