@charset "utf-8";

:root {
  /* 背景 */
  --bg-primary: #15202b;
  --bg-secondary: #1b2a38;
  --bg-tertiary: #223445;
  --bg-four: #283d53;

  --bg-header:rgba(21, 32, 43, .7);
  
  /* テキスト */
  --text-primary: #fff;
  --text-secondary: #e7e9ea;
  --text-muted: #71767b;
  --text-subtle: #8899a6;
  
  /* ボーダー */
  --theme-border: #38444d;
  --theme-border-light: #2f3336;
  
  /* アクセント（変更なし） */
  --accent-blue: #1d9bf0;
  --accent-pink: #ec4899;
}

/* ライトモード */
.light-mode {
  --bg-primary: #f5f8fa;
  --bg-secondary: #f7f9fa;
  --bg-tertiary: #eff3f4;
  --bg-four: #f5f8fa;

  --bg-header:rgba(255, 255, 255, .7);
  
  --text-primary: #333;
  --text-secondary: #536471;
  --text-muted: #71767b;
  --text-subtle: #607280;
  
  --theme-border: #ddd;
  --theme-border-light: #e7e9ea;
}


/* ============================================
   1. リセット・ベース
   ============================================ */

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}

audio, canvas, video {
  display: inline-block;
  max-width: 100%;
}

html {
  
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

ul, ol {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after, q:before, q:after {
  content: '';
  content: none;
}

a:focus {
  outline: none;
}

ins {
  text-decoration: none;
}

mark {
  font-style: italic;
  font-weight: bold;
}

del {
  text-decoration: line-through;
}

abbr[title], dfn[title] {
  border-bottom: 1px dotted;
  cursor: help;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #ccc;
  margin: 1em 0;
  padding: 0;
}

input, select, textarea {
  outline: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 100%;
  color: #666 !important;
}

button {
  outline: 0;
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  font-size: 100%;
}

input, textarea {
  background-image: -webkit-linear-gradient(hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0));
  -webkit-appearance: none;
  border-radius: 0;
  color: #666 !important;
}

input[type="checkbox"] {
  -webkit-appearance: checkbox;
}

input[type="radio"] {
  -webkit-appearance: radio;
  display: none;
}

input[type="radio"]:checked + .radio-label {
  background-image: linear-gradient(90deg, rgba(247, 93, 139, 1), rgba(254, 220, 64, 1));
  color: #fff;
  border-color: #fff;
}

button::-moz-focus-inner, input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

img {
  width: 100%;
  -ms-interpolation-mode: bicubic;
}

/* 1. 絵文字だけを担当する専用の設定を作る（これを追加） */
@font-face {
  font-family: 'EmojiFirst';
  src: local('Apple Color Emoji'), local('Segoe UI Emoji'), local('Noto Color Emoji');
  /* 絵文字の範囲だけに限定する魔法のコード */
  unicode-range: U+2000-2BFF, U+3200-32FF, U+1F000-1F9FF;
}

/* 2. bodyの中身をこれに書き換える */
body {
  padding: 0;
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  -webkit-text-size-adjust: 100%;
  
  /* 1. 文字をシュッと細く、綺麗に見せる魔法のコード（追加） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* 2. もしInterを使いたいなら、Notoの前にInterを戻す */
  font-family: 'EmojiFirst', 'Inter', 'Noto Sans JP', sans-serif !important;
  
  /* 3. 太さを指定してあげる（400が標準） */
  font-weight: 400;
}

a {
  color: var(--text-primary);
  text-decoration: none;
}

@media (hover: hover) {
  a:hover {
    color: #ff748b;
    transition: 0.5s;
  }
}

.clearfix:after {
  content: ".";
  display: block;
  clear: both;
  height: 0;
  font-size: 0.1em;
  line-height: 0;
  visibility: hidden;
  overflow: hidden;
}

.clearfix {
  display: block;
}

* html .clearfix {
  height: 1%
}

/* ============================================
   2. レイアウト・コンテナ
   ============================================ */

#app {
    min-height: 100vh;
}

.container {
  display: flex;
  justify-content: center;
  max-width: 1280px;
  margin: 0 auto;
}

.container p {
  font-size: 14px !important;
  line-height: 1.6;
}

.sidebar-left {
  flex-basis: 4%;
  padding: 0 15px 20px;
}

.sidebar-right {
  flex-basis: 30%;
  padding: 20px 30px 30px;
}

.content {
  flex: 1;
  max-width: 600px;
  min-width: 600px;
  padding: 0 0px 20px;
  border-left: solid 1px var(--theme-border);
  border-right: solid 1px var(--theme-border);
}

.sticky-cont {
  position: sticky;
  top: 20px;
  margin-bottom: 50px;
}

.page_cont {
  padding: 20px 20px 50px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   3. ヘッダー・ナビゲーション
   ============================================ */

   .header {
    position: sticky;
    top: 5px;
    width: calc(100% - 20px);
    margin: 0 auto;
    border-radius: 30px;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999;
    transition: transform 0.3s ease;
    border: solid 1px var(--accent)!important;
  }
  
  .header.header-hidden {
    transform: translateY(calc(-100% - 10px));
  }
/*
.header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}
*/

.header-flex-container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding:7px 14px;
  max-width: 600px;
  margin: 0 auto;
}

.header-title {
  flex: 1;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-icon {
  color: var(--text-primary);
  display: flex;
  align-items: center;
}

.header-cast-link {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
}

.header-cast-name {
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-cast-img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ============================================
   4. ハンバーガーメニュー
   ============================================ */

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

.hamburger-overlay.active {
  display: block;
}

.hamburger-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 250px;
  height: 100%;
  background: rgba(14, 14, 15, .9);
  backdrop-filter: blur(10px);
  z-index: 1000;
  overflow-y: auto;
  padding: 20px;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.hamburger-menu.active {
  transform: translateX(0);
}

.hamburger-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.hamburger-menu h2 {
  background: var(--primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 10px 5px;
  font-size: 16px;
}

.hamburger-menu-header h3 {
  color: #fff;
  margin: 0;
  font-size: 20px;
}

.hamburger-menu-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  padding: 5px;
}

.hamburger-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hamburger-menu li {
  margin-bottom: 10px;
}

.hamburger-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  display: flex;
  align-items: center;
  padding: 5px;
  border-radius: 8px;
  transition: background 0.2s;
}

.hamburger-menu a:hover {
  background: #1a1a1a;
}

.hamburger-menu a i {
  margin-right: 15px;
  width: 20px;
  text-align: center;
  color: var(--text-primary)!important;
}

.hamburger-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
  padding: 5px 10px;
  display: flex;
  align-items: center;
}

.hamburger-button a {
  color: var(--text-primary);
}

.hamburger-button i {
  width: 20px;
  text-align: center;
  color: var(--text-primary);
}

.hamburger-button:hover {
  opacity: 0.8;
}

.hamburger-profile {
  padding: 0 5px 20px 5px;
}

.hamburger-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #3d5466;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.hamburger-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hamburger-avatar i {
  font-size: 24px;
  color: #8899a6;
}

.hamburger-avatar-link {
  display: block;
}

.hamburger-name {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 2px 0;
}

.hamburger-username {
  color: #8899a6;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.hamburger-stats {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: #8899a6;
}

.hamburger-stats strong {
  color: #fff;
}

.menu-divider {
  border-top: 1px solid #3d5466;
  margin: 8px 0;
  padding: 0;
  list-style: none;
}

/* ============================================
   5. タイムライン・投稿
   ============================================ */

.timeline {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  margin-top: 0px;
}

.timeline_prof {
  display: flex;
  flex-direction: column;
  margin-bottom: 60px;
  margin-top: 0px;
  border-top: solid 1px #333;
}

.timeline_story {
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: rgba(41, 43, 46, .9);
  padding: 12px;
  border-bottom: solid 10px var(--bg-primary);
}

.timeline_story::-webkit-scrollbar {
  display: none;
}

.tweet {
  padding: 0px 40px 15px;
  border-bottom: 1px solid var(--theme-border);
}

.posts-wrap {
  margin-left:50px;
}

.tweet_sp {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 15px 12px 15px;
  border-bottom: 1px solid #32363f;
}

.tweet:last-child {
  border-bottom: none;
  margin-bottom: -1px;
}

.post-container {
  position: relative;
  padding: 0px 10px 15px;
  margin-bottom: 30px;
}

.post-text {
  flex: 1;
}

.input-row {
  position: relative;
}

#post-textarea {
  width: 100%;
  min-height: 100px;
  padding: 8px;
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: 1px solid #333;
  resize: none;
  font-size: 16px;
  color: #afafaf;
  overflow-y: hidden;
}

.icon-row {
  display: flex;
  align-items: center;
  margin-top: 10px;
  color: #afafaf;
}

.icon-column {
  display: flex;
  flex-direction: column;
}

.icon-placeholder {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.content_tweet {
  flex-grow: 1;
  cursor: pointer;
}

.content_tweet a:hover {
  color: #f1f1f1;
}

.header_tweet {
  display: flex;
  align-items: center;
  margin-bottom: 3px;
  margin-top: -4px;
}

.username {
  font-weight: bold;
  font-size: 15px;
  margin-right: 5px;
  margin-top: 10px;
  color: #f1f1f1;
}

.timestamp {
  color: #afafaf;
  font-size: 13px;
}

.tweet p {
  font-size: 0.92rem !important;
  line-height: 1.7 !important;
  margin-top: 0px;
  margin-bottom: 15px;
  word-break: break-all;
  overflow-wrap: break-word;
}

.post_content {
  padding: 0 30px 30px;
  margin-bottom: 0px;
}

.post_content p {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 25px;
}

.post_content img {
  border-radius: 20px;
  margin-bottom: 7px;
}

.post_content video {
  border-radius: 20px;
}

/* 画像横スクロール */
.post-images-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}

.post-images-scroll::-webkit-scrollbar {
  display: none;
}

.post-images-scroll img {
  flex-shrink: 0;
  width: auto;
  max-width: none;
  height: 300px;
  object-fit: cover;
  border-radius: 12px;
  scroll-snap-align: start;
  cursor: pointer;
}

.post-images-scroll.single-image img {
  max-width: 100%;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
}

/* 出勤タブ */
.schedule-date-header {
  padding: 0 16px 26px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #e7e9ea;
}

p.attend_span {
  font-size: 12px!important; 
  text-align: center;
  color: #cedae7; 
  margin-top: 2px;
}

/* 出勤一覧カード形式 */
.schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 16px 8px;
  margin-bottom: 35px;
}

.schedule-grid-area {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  padding: 16px 8px;
  margin-bottom: 35px;
}


.schedule-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 15px 12px;
  border-radius: 3px;
  background: #1b2a38;
  transition: background 0.2s, border-color 0.2s;
  overflow: hidden;
  min-width: 0;
}

.schedule-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.schedule-card .following-avatar,
.schedule-card .following-avatar_story,
.schedule-card .following-avatar_story_check {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
}

.schedule-card .following-avatar img,
.schedule-card .following-avatar_story img,
.schedule-card .following-avatar_story_check img {
  width: 70px;
  height: 70px;
}

.schedule-card-name {
  font-size: 13px!important;
  font-weight: bold;
  color: #eee;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 4px;
}

.schedule-card-info {
  font-size: 13px!important;
  color: #8899a6;
  text-align: center;
  line-height: 1.4;
}

.schedule-card-time {
  font-size: 13px!important;
  color: #1d9bf0;
  font-weight: 500;
  margin-top: 6px;
}

.schedule-card-memo {
  font-size: 12px!important;
  color: #fe818b;
  margin-top: 4px;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 出勤一覧 スマホ対応 */
@media (max-width: 480px) {
  .schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 12px 0px;
    margin:0 0px;
  }

  .schedule-grid-area {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    padding: 12px 0px;
    margin:0 -10px;
  }

  .schedule-card {
    padding: 12px 8px;
  }
  
  .schedule-card .following-avatar,
  .schedule-card .following-avatar_story,
  .schedule-card .following-avatar_story_check {
    width: 70px;
    height: 70px;
  }
  
  .schedule-card .following-avatar img,
  .schedule-card .following-avatar_story img,
  .schedule-card .following-avatar_story_check img {
    width: 70px;
    height: 70px;
  }
  
  .schedule-card-name {
    font-size: 13px!important;
  }
  
  .schedule-card-info {
    font-size: 12px!important;
  }
  
  .schedule-card-time {
    font-size: 13px!important;
  }
  
  .schedule-card-memo {
    font-size: 12px!important;
  }
}

/* 通報ダイアログ */
.report-dialog-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}

.report-dialog {
  background: #1a1a1a;
  border-radius: 16px;
  padding: 24px;
  width: 90%;
  max-width: 320px;
  text-align: center;
}

.report-dialog h3 {
  color: #fff;
  margin: 0 0 20px;
  font-size: 18px;
}

.report-dialog-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.report-dialog-btn {
  padding: 14px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}

.report-dialog-btn:hover {
  background: rgba(255,255,255,0.15);
}

.report-dialog-cancel {
  margin-top: 16px;
  padding: 14px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  color: #71767b;
  font-size: 15px;
  cursor: pointer;
  width: 100%;
}

.report-dialog-cancel:hover {
  background: rgba(255,255,255,0.05);
}

.post-link {
  color: #60a5fa;
  text-decoration: none;
}

/* 人気投稿ラベル */
.popular-label {
  background: linear-gradient(90deg, #ff6b6b, #ffa500);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  margin-right: 5px;
  display: inline-block;
}

/* 人気投稿セクション */
.popular-section {
  padding: 16px;
  border-bottom: 1px solid var(--theme-border);
  margin: 0px 0;
  background: var(--bg-secondary);
}

.popular-section-title {
  font-size: 16px;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0 16px 12px 0;
}

.popular-scroll-container {
  display: flex;
  overflow-x: auto;
  gap: 12px;
  padding: 0 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.popular-scroll-container::-webkit-scrollbar {
  display: none;
}

.popular-card {
  flex: 0 0 auto;
  width: 150px;
  scroll-snap-align: start;
  text-decoration: none;
}

.popular-card-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
}

.popular-card-info {
  margin-top: 8px;
  color: var(--text-primary);
}

.popular-card-name {
  font-size: 13px;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.popular-card-likes {
  font-size: 12px;
  color: var(--text-subtle);
}

/* 店舗一覧 - 在籍キャストグリッド */
.ranking-item:has(.shop-cast-grid) {
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: solid 1px #2f4760;
}
.shop-cast-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  margin-top: 10px;
  width: 100%;
  flex-basis: 100%;
  cursor: pointer;
}
.shop-cast-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
}
@media (min-width: 768px) {
  .shop-cast-grid {
    grid-template-columns: repeat(8, 1fr);
  }
}

/* ============================================
   6. アクション（いいね・リツイート等）
   ============================================ */

.actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

.like, .retweet, .comments, .share {
  flex: 1;
  background-color: transparent;
  border: none;
  color: #666;
  margin-right: 10px;
  text-align: center;
  font-size: 15px;
}

.like.clicked {
  color: #ff4793;
}

.retweet.clicked {
  color: #00e1bc;
}

.count {
  margin-left: 5px;
}

.actions_me {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  width: 100%;
}

.actions_user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  margin-bottom: 10px;
  width: 100%;
}

.like_me, .retweet_me, .comments_me, .share_me {
  flex: 1;
  background-color: transparent;
  border: none;
  color: #8a9095;
  margin-right: 10px;
  text-align: center;
  font-size: 18px;
}

.like_me a:hover, .like_me:hover, .retweet_me:hover, .comments_me:hover, .share_me:hover, .recommend_me:hover{
  cursor: pointer;
  text-decoration: none;
  background: none !important;
}

.like_me.liked,
.like_me.liked i {
  color: #f91880;
}

.edit_me,
.trash_me, 
.recommend_me {
  flex: 1;
  background-color: transparent;
  border: none;
  color: #8a9095;
  margin-right: 10px;
  text-align: center;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  transition: all 0.2s;
  cursor: pointer;
  text-decoration: none;
}

.edit_me:hover,
.trash_me:hover {
  cursor: pointer;
  text-decoration: underline;
  background: none !important;
}

.edit_me {
  color: #6b7280;
}

.trash_me {
  color: #ef4444;
}

.edit_me i,
.trash_me i {
  font-size: 16px;
}

.edit_me span,
.trash_me span {
  font-size: 14px;
  font-weight: 500;
}

.user-actions {
  display: flex;
  flex-direction: column;
  position: absolute;
  bottom: 20px;
  left: 20px;
}

.action-button {
  margin-top: 10px;
  padding: 5px 10px;
  color: #666;
  border: none;
  font-size: 18px;
}

.share-dropdown {
  position: relative;
  display: inline-block;
  flex: 1;
  text-align: center;
  margin-right: 10px;
}
.share-menu {
  position: absolute;
  bottom: 100%;
  right: 0;
  background: #1a1a2e;
  border: 1px solid var(--theme-border-light);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 160px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.share-menu button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #e7e9ea;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.share-menu button:hover {
  background: rgba(255,255,255,0.1);
}
.share-menu .fa-x-twitter { color: #fff; }
.share-menu .fa-line { color: #00b900; }
.share-menu .fa-link { color: #1d9bf0; }

.share-dropdown-profile {
  position: relative;
  display: inline-block;
}
.share-profile-button {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #e7e9ea;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.share-profile-button:hover {
  background: rgba(255,255,255,0.2);
}
.share-menu-profile {
  position: absolute;
  bottom: 100%;
  right: 0;
  margin-top: 8px;
  background: #1a1a2e;
  border: 1px solid var(--theme-border-light);
  border-radius: 12px;
  padding: 8px 0;
  min-width: 150px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.share-menu-profile button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: none;
  border: none;
  color: #e7e9ea;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}
.share-menu-profile button:hover {
  background: rgba(255,255,255,0.1);
}
.share-menu-profile .fa-x-twitter { color: #fff; }
.share-menu-profile .fa-line { color: #00b900; }
.share-menu-profile .fa-link { color: #1d9bf0; }

/* コメントセクション */
.comment-section {
  background: #1b2a38;
  border-radius: 12px;
  padding: 16px;
  margin: 16px 10px;
}
.comment-section-title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 16px;
}
.comment-section-title i {
  margin-right: 8px;
  color: #1d9bf0;
}
.comment-form {
  margin-bottom: 16px;
}
.comment-input {
  width: 100%;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 10px;
  color: #cedae7!important;
  font-size: 16px;
  resize: none;
  box-sizing: border-box;
}
.comment-input:focus {
  outline: none;
  border-color: #1d9bf0;
}
.comment-form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.comment-char-count {
  color: #71767b;
  font-size: 12px;
}
.comment-submit-btn {
  background: #1d9bf0;
  color: #fff;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
.comment-submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.comment-cancel-btn {
  background: transparent;
  color: #71767b;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  cursor: pointer;
}
.comment-login-prompt {
  text-align: center;
  padding: 20px;
  color: #71767b;
}
.comment-login-prompt a {
  color: #1d9bf0;
}
.comment-loading, .comment-empty {
  text-align: center;
  padding: 20px;
  color: #71767b;
}
.comment-list {
  margin-top: 16px;
}
.comment-item {
  padding: 12px 0;
  border-bottom: 1px solid #283d53;
}
.comment-item:last-child {
  border-bottom: none;
}
.comment-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-avatar img {
  border-radius: 50%;
  object-fit: cover;
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
}
.reply-item .comment-avatar img {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
}
.comment-meta {
  flex: 1;
}
.comment-author {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
}
.comment-author:hover {
  text-decoration: underline;
}
.comment-time {
  color: #a7abaf;
  font-size: 12px;
  margin-left: 8px;
}
.comment-delete-btn {
  background: transparent;
  border: none;
  color: #de4a54;
  cursor: pointer;
  padding: 4px 8px;
}
.comment-delete-btn:hover {
  color: #f4212e;
}
.comment-content {
  color: #e7e9ea;
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-reply-btn {
  background: transparent;
  border: none;
  color: #eee;
  font-size: 14px;
  cursor: pointer;
  margin-top: 8px;
  padding: 4px 0;
}
.comment-reply-btn:hover {
  color: #1d9bf0;
}
.reply-form {
  margin-top: 12px;
  padding-left: 50px;
}
.reply-list {
  margin-top: 12px;
  padding-left: 15px;
}
.reply-item {
  padding: 10px 0;
  border-left: 2px solid #283d53;
  padding-left: 12px;
  margin-bottom: 8px;
}
.reply-item:last-child {
  margin-bottom: 0;
}
/* コメントいいねボタン */
.comment-like-btn {
  background: none;
  border: none;
  color: #999da1;
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  margin-left: 8px;
  transition: color 0.2s;
}

.comment-like-btn:hover {
  color: #f91880;
}

.comment-like-btn.liked {
  color: #f91880;
}

.comment-like-btn i {
  margin-right: 4px;
}

/* ============================================
   7. アバター
   ============================================ */

.avatar {
  margin-right: 10px;
}

.avatar img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  background: var(--bg-primary);
  padding: 3px;
}

.avatar_story {
  margin-right: 10px;
}

.avatar_story img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  background-image: linear-gradient(90deg, rgba(16, 190, 252, 1) 4%, rgba(129, 188, 243, 1) 13%, rgba(230, 177, 225, 1) 28%, rgba(250, 127, 229, 1) 49%, rgba(255, 125, 125, 1) 67%, rgba(247, 152, 102, 1) 78%, rgba(255, 212, 189, 1) 95%);
  padding: 3px;
}

.user-info {
  display: flex;
  align-items: center;
  padding: 10px;
  color: #fff;
}

.user-avatar {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-radius: 50% !important;
  margin-right: 10px;
  background: linear-gradient(135deg, #1d9bf0, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  padding-right: 14px;
}

.user-name {
  font-size: 16px;
  font-weight: bold;
  text-align: right;
  vertical-align: middle;
}

.user-name img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  vertical-align: middle;
}

.user-name a {
  text-decoration: none;
}

.user-handle {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
}

.user-info_timeline {
  display: flex;
  align-items: flex-start;
}

.user-avatar_timeline {
  width: 50px;
  height: 50px;
  margin-right: 10px;
  overflow: hidden;
  flex-shrink: 0;
}

.user-info_timeline img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
  background: none;
  padding: 2px;
}

.user-name_timeline {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}

.user-avatar_com {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 5px;
}

.user-avatar_com img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 50%;
}

.username_com {
  font-weight: bold;
  font-size: 13px;
  margin-right: 6px;
}

/* ============================================
   8. プロフィール
   ============================================ */

.container_prof {
  max-width: 1200px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  position: relative;
}

.header_prof {
  flex-basis: 100%;
  position: relative;
  height: 180px;
  background: var(--bg-primary);
}

.header_prof img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bg-primary);
}

.profile-container {
  flex-basis: 100%;
  padding: 20px 15px 0px;
  margin-bottom: 0px;
  overflow-x: hidden;
}

.profile-header {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-header img {
  position: absolute;
  top: 130px;
  left: 15px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-right: 20px;
  padding: 4px;
  background: var(--bg-primary);
  object-fit: cover;
}

.profile-header h2 {
  margin: 40px 0 0;
  font-size: 20px;
}

.profile-header p {
  margin: 0;
  color: #afafaf;
  font-size: 14px;
}

.profile-header_story {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-header_story img {
  position: absolute;
  top: 130px;
  left: 15px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-right: 20px;
  padding: 4px;
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
  object-fit: cover;
}

.profile-header_story h2 {
  margin: 40px 0 0;
  font-size: 20px;
}

.profile-header_story p {
  margin: 0;
  color: #afafaf;
  font-size: 14px;
}

.profile-header_story_check {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-header_story_check img {
  position: absolute;
  top: 130px;
  left: 15px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin-right: 20px;
  padding: 4px;
  background: linear-gradient(135deg, #71767b 0%, #8b8b8b 100%);
  object-fit: cover;
}

.profile-header_story_check h2 {
  margin: 40px 0 0;
  font-size: 20px;
}

.profile-header_story_check p {
  margin: 0;
  color: #afafaf;
  font-size: 14px;
}

.profile-info {
  flex: 1;
}

.profile-description p {
  margin: 14px 0;
  font-size: 0.92rem;
}

p.prof_link {
  margin-top: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}

p.prof_link a {
  color: #00acee;
  text-decoration: none;
}

.profile-stats {
  list-style: none;
  padding: 0;
  margin: 25px 0;
  display: flex;
}

.profile-stats li {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-right: 20px;
}

.stat-count {
  font-size: 18px;
  font-weight: bold;
  color: #e7e9ea;
  margin-right: 3px;
}

.stat-label {
  font-size: 14px;
  font-weight: normal;
  color: #71767b;
}

.profile-actions {
  position: absolute;
  top: 190px;
  right: 12px;
}

.profile-side {
  flex-basis: 100%;
  padding: 20px 0px 0px;
  margin-bottom: 0px;
}

.profile-side img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-bottom: 15px;
  object-fit: cover;
}

.profile-header-side {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.profile-info-side {
  flex: 1;
}

.profile-header-side h2 {
  margin: 0px 0 0;
  font-size: 20px;
}

.profile-header-side p {
  margin: 0;
  color: #afafaf;
  font-size: 14px;
}

.profile-stats-side {
  list-style: none;
  padding: 0;
  margin-bottom: 20px;
  display: flex;
}

.profile-stats-side li {
  display: flex;
  align-items: center;
  font-size: 14px;
  margin-right: 20px;
}

.stat-count-side {
  font-weight: bold;
  margin-right: 3px;
}

.stat-label-side {
  font-weight: normal;
  color: #999;
}

.profile {
  margin-top: 20px;
  text-align: center;
  background: rgba(45, 55, 65, .3);
  padding: 25px 15px 15px;
  border-radius: 20px;
}

.profile img {
  width: 100px;
  border-radius: 50%;
}

.profile h3 {
  margin-top: 10px;
}

.edit-profile-btn-small {
  margin-left: auto;
  margin-top: 28px;
  margin-right: 20px;
  width: 36px;
  height: 36px;
  border: 1px solid #536471;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s;
  flex-shrink: 0;
}

.edit-profile-btn-small:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* プロフィールSNSリンク */
.profile-sns-links {
  margin-top: 16px;
  margin-bottom: 16px;
  padding-top: 16px;
  border-top: 1px solid #2a2a2a;
}

.profile-sns-icons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.profile-sns-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.profile-sns-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.profile-sns-icon i {
  font-size: 20px;
}

.profile-sns-icon.twitter {
  background: #000;
  color: #fff;
}

.profile-sns-icon.bluesky {
  background: #0085ff;
  color: #fff;
}

.profile-sns-icon.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
}

.profile-sns-icon.tiktok {
  background: #000;
  color: #fff;
}

.profile-sns-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  text-decoration: none;
  color: #afafaf;
  transition: background 0.2s;
}

.profile-sns-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

.profile-sns-link i {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

.profile-sns-link.line i {
  color: #06C755;
}

.profile-sns-link.other i {
  color: #667eea;
}

.profile-sns-link-text {
  flex: 1;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* プロフィールスケジュール */
.profile-schedule {
  margin-top: 20px;
  padding: 16px 0;
  border-top: 1px solid #3d5466;
  overflow: hidden;
  max-width: 100%;
}

.profile-schedule-title {
  font-size: 14px;
  font-weight: 600;
  color: #8899a6;
  margin-bottom: 18px;
}

.profile-schedule-title i {
  color: #1d9bf0;
  margin-right: 6px;
}

.schedule-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  max-width: 100%;
}

.schedule-scroll::-webkit-scrollbar {
  height: 4px;
}

.schedule-scroll::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: 2px;
}

.schedule-scroll::-webkit-scrollbar-thumb {
  background: #3d5466;
  border-radius: 2px;
}

.schedule-item {
  min-width: 100px;
  max-width: 100px;
  padding: 10px 8px;
  background: var(--bg-tertiary);
  border-radius: 10px;
  text-align: center;
  flex-shrink: 0;
  border: 2px solid transparent;
}

.schedule-item.has-schedule {
  background: linear-gradient(135deg, var(--bg-tertiary), var(--bg-tertiary));
  border-color: #60b2ea;
}

.schedule-item.weekend .schedule-date,
.schedule-item.weekend .schedule-day {
  color: #e40d71;
}

.schedule-date {
  font-size: 13px;
  color: #8899a6;
  margin-bottom: 2px;
}

.schedule-day {
  font-size: 13px;
  font-weight: bold;
  color: #fff;
  margin-bottom: 6px;
}

.schedule-time {
  font-size: 13px;
  color: #adadad;
  font-weight: 600;
  line-height: 1.4;
}

.schedule-separator {
  display: block;
  font-size: 13px;
  color: #8899a6;
}

.schedule-memo {
  font-size: 12px;
  color: #0ECFFF;
  margin-top: 4px;
  text-align: center !important;
  word-break: break-word;
}

.schedule-empty {
  font-size: 18px;
  color: #3d5466;
}

.schedule-next-day {
  font-size: 12px;
  color: #f91880;
  margin-right: 1px;
}

/* フォローボトムシート */
.follow-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.follow-sheet {
  background: var(--bg-secondary);
  width: 100%;
  max-width: 500px;
  height: 70vh;
  min-height: 500px;
  border-radius: 20px 20px 0 0;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.3s ease;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.follow-sheet.no-animation {
  animation: none;
}

.follow-sheet-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border);
  position: relative;
}

.sheet-handle {
  width: 40px;
  height: 4px;
  background: #657786;
  border-radius: 2px;
  margin: 0 auto 12px;
}

.sheet-tabs {
  display: flex;
  gap: 0;
}

.sheet-tabs button {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: #8899a6;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.sheet-tabs button.sheet-tab-active {
  color: #fff;
  border-bottom-color: #e91e63;
}

.sheet-close {
  position: absolute;
  top: -3px!important;
  right: 10px;
  background: none;
  border: none;
  color: #8899a6;
  font-size: 30px!important;
  cursor: pointer;
  padding: 4px 8px;
}

.sheet-close:hover {
  color: #fff;
}

.follow-sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
  min-height: 0;
}

.sheet-empty {
  text-align: center;
  padding: 40px;
  color: #8899a6;
}

.sheet-list {
  padding: 0 8px;
}

.sheet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s;
}

.sheet-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.sheet-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.sheet-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sheet-avatar.story-active {
  border: 2px solid #e91e63;
  padding: 2px;
}

.sheet-avatar.story-viewed {
  border: 2px solid #657786;
  padding: 2px;
}

.sheet-item-info {
  flex: 1;
  min-width: 0;
}

.sheet-item-name {
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet-item-username {
  color: #8899a6;
  font-size: 13px;
  margin: 2px 0 0;
}

.follower-type-tabs {
  display: flex;
  border-bottom: 1px solid var(--theme-border-light);
}

.follower-type-tab {
  flex: 1;
  padding: 12px;
  background: none;
  border: none;
  color: #71767b;
  font-size: 14px;
  cursor: pointer;
}

.follower-type-tab.active {
  color: #e7e9ea;
  border-bottom: 2px solid #FF3772;
}

.follower-type-count {
  font-size: 12px;
}

.follower-hint {
  padding: 10px 16px;
  background: rgba(29, 155, 240, 0.1);
  border-bottom: 1px solid var(--theme-border-light);
}

.follower-hint p {
  color: #71767b;
  font-size: 12px;
  text-align: center;
  margin: 0;
}

.follower-hint .star {
  color: #ffd700;
}

.user-x-button {
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  margin-top: 6px; 
  padding: 8px 16px; 
  background: #1DA1F2; 
  color: #fff; 
  border-radius: 3px; 
  font-size: 12px; 
  text-decoration: none;
}

.user-dm-button {
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  margin-top: 6px; 
  padding: 8px 16px; 
  background: #6c5ce7; 
  color: #fff; 
  border-radius: 3px; 
  font-size: 12px; 
  text-decoration: none;
}

.sort-text {
  display: flex; 
  justify-content: flex-end; 
  align-items: center; 
  padding: 20px 12px 20px; 
  border-bottom: 1px solid var(--theme-border-light);
}

.sort-change {
  color: #eee; 
  font-size: 12px; 
  margin-right: 8px;
}

.follower-sort {
  background: var(--theme-border-light); 
  color: #eee; 
  border: 1px solid #536471; 
  border-radius: 8px; 
  padding:10px; 
  font-size: 14px; 
  cursor: pointer;
}

.text-center {
  text-align: center;
}

.follower-user-info {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.follower-user-info > div {
  flex: 1;
}

.star-back {
  padding: 10px 16px; 
  background: rgba(29, 155, 240, 0.1); 
  border-bottom: 1px solid var(--theme-border-light);
}

.star-text {
  color: #c0c4c9; 
  font-size: 12px; 
  text-align: center; 
  margin: 0;
}

.profile-linked-shops {
  margin-top: 16px;
}

.linked-shops-label {
  color: #EC4999;
  font-size: 11px!important;
  width:60px;
  border-radius: 5px;
  margin: 0 0 5px;
  line-height: 1.2;
}

.linked-shop-card {
  display: flex;
  align-items: center;
  background: #0f161e;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #1b2a38;
  text-decoration: none;
  margin-bottom: 8px;
}

.linked-shop-card:hover {
  background: #1c1f23;
  border-color: #3f4448;
}

.linked-shop-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 10px;
  flex-shrink: 0;
}

.linked-shop-logo-placeholder {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--theme-border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  flex-shrink: 0;
}

.linked-shop-logo-placeholder i {
  color: #71767b;
  font-size: 16px;
}

.linked-shop-info {
  flex: 1;
  min-width: 0;
}

.linked-shop-name {
  color: #fff;
  font-weight: bold;
  font-size: 14px;
  margin: 0 0 5px 0;
  padding: 0;
  line-height: 1.3;
}

.linked-shop-area {
  color: #71767b;
  font-size: 12px;
  margin: 2px 0 0;
  padding: 0;
  line-height: 1.3;
}

.linked-shop-arrow {
  color: #71767b;
  flex-shrink: 0;
  margin-left: 8px;
}

.reaction-buttons {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
}
.reaction-btn {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  padding: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reaction-btn:hover {
  background: #3a3a3a;
  transform: scale(1.1);
}
.reaction-btn:active {
  transform: scale(0.95);
}
.reaction-buttons2 {
  display: flex;
  gap: 10px;
  margin: 5px auto 15px;
  justify-content: center;
}
.reaction-btn2 {
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 50%;
  padding: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.reaction-btn2:hover {
  background: #3a3a3a;
  transform: scale(1.1);
}
.reaction-btn2:active {
  transform: scale(0.95);
}

.comment_check {
  color: #b3c7da; 
  font-size: 13px; 
  overflow: hidden; 
  text-overflow: ellipsis; 
  white-space: nowrap; 
  margin-bottom: 8px;
}

.cpmment_check_wrap {
  margin-top: 12px; 
  padding: 12px 12px 5px; 
  background: #1b2a38; 
  border-radius: 3px; 
  border-left: 2px solid #ec4899;
}

p.comment_check_p {
  color: #e8eef4; 
  font-size: 13px!important;
  white-space: pre-wrap;
}

.comment_check_p2 {
  color: #71767b; 
  font-size: 12px; 
  margin-top: 8px;
}

/* 推しボタン */
.favorite-cast-button {
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: 2px solid #f59e0b;
  color: #f59e0b;
}

.favorite-cast-button:hover {
  background: rgba(245, 158, 11, 0.1);
}

.favorite-cast-button.active {
  background: #f59e0b;
  color: #fff;
}

/* ============================================
   9. 投稿詳細プロフィールカード
   ============================================ */

.post-detail-profile-card {
  background: #0f161e;
  border: 1px solid var(--theme-border-light);
  border-radius: 16px;
  padding: 20px;
  margin: 30px 10px;
}

.post-detail-profile-header {
  display: flex;
  gap: 20px;
  align-items: start;
  margin-bottom: 10px;
}

.post-detail-profile-avatar {
  position: relative;
}

.post-detail-profile-avatar img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 4px;
  object-fit: cover;
}

.post-detail-profile-avatar img.has-story {
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
}

.post-detail-profile-avatar img.has-story-viewed {
  background: linear-gradient(135deg, #71767b 0%, #8b8b8b 100%);
}

.post-detail-profile-info {
  flex: 1;
}

.post-detail-profile-name {
  color: #e7e9ea;
  font-size: 18px;
  margin-bottom: 0px;
}

.post-detail-profile-name a {
  color: #e7e9ea;
  text-decoration: none;
}

.post-detail-profile-username {
  color: #71767b;
  margin-bottom: 5px;
}

.post-detail-profile-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}

.post-detail-profile-meta span {
  color: #e7e9ea;
  font-size: 14px;
}

.post-detail-profile-meta i {
  margin-right: 5px;
}

.post-detail-profile-meta .icon-location {
  color: #1d9bf0;
}

.post-detail-profile-meta .icon-age {
  color: #f91880;
}

.post-detail-profile-meta .icon-job {
  color: #ffd700;
}

.post-detail-profile-size {
  color: #e7e9ea;
  font-size: 14px;
  margin-bottom: 10px;
}

.post-detail-profile-size i {
  color: #ff69b4;
  margin-right: 5px;
}

.post-detail-profile-button {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.post-detail-profile-button:hover {
  opacity: 0.9;
}

/* ============================================
   10. ユーザーページ
   ============================================ */

.user-header-user {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 16px;
  border-bottom: 1px solid var(--theme-border);
}

.user-info-user {
  flex: 1;
  flex-direction: column;
}

.user-name-user {
  font-size: 20px;
  font-weight: bold;
  color: #e7e9ea;
  margin: 0 0 4px 0;
}

.user-email {
  font-size: 14px;
  color: #71767b;
  margin: 0;
}

.user-stats {
  display: flex;
  gap: 24px;
  padding: 16px;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 20px;
}

.user-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
}

.following-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding: 16px 0px;
  margin-bottom: 35px;
}

.following-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 10px 8px 10px;
  border-radius: 12px;
  transition: background 0.2s;
  overflow: hidden;
  min-width: 0;
}

.following-item a {
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}

.following-name,
.following-username {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.following-avatar {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, var(--bg-primary) 0%, var(--bg-primary) 30%, var(--bg-primary) 70%, var(--bg-primary) 100%);
  padding: 3px;
}

.following-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  aspect-ratio: 1/1;
}

.following-avatar_story {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
  padding: 3px;
  object-fit: cover;
  object-position: 50% 50%;
}

.following-avatar_story img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.following-avatar_story_check {
  width: 75px;
  height: 75px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #71767b 0%, #8b8b8b 100%);
  padding: 3px;
  object-fit: cover;
  object-position: 50% 50%;
}

.following-avatar_story_check img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.following-name {
  font-size: 14px;
  font-weight: 600;
  color: #e7e9ea;
  margin: 3px 0 2px 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100px;
}

p.following-username {
  font-size: 12px!important;
  color: #abb0b6!important;
  margin: 0;
  text-align: center;
}

p.like-user {
  font-size:12px!important; 
  text-align: center;
  color: #abb0b6!important;
}

.user-profile-jobs {
  color: #ff306c;
  font-size: 14px;
  margin-top: 4px;
  margin-bottom: 10px;
}

/* ピン留めボタン */
.pin-button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #71767b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.pin-button:hover {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
}

.pin-button.is-pinned {
  background: #f59e0b;
  color: #fff;
}

.pin-button.is-pinned:hover {
  background: #d97706;
}

.following-item {
  position: relative;
}

/* ============================================
   11. ストーリー
   ============================================ */

.story-container {
  display: flex;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 10px;
  padding: 5px;
}

.story-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 50%;
  background-image: linear-gradient(90deg, rgba(16, 190, 252, 1) 4%, rgba(129, 188, 243, 1) 13%, rgba(230, 177, 225, 1) 28%, rgba(250, 127, 229, 1) 49%, rgba(255, 125, 125, 1) 67%, rgba(247, 152, 102, 1) 78%, rgba(255, 212, 189, 1) 95%);
  padding: 3px;
}

.story-name {
  margin-top: 5px;
  font-size: 11px;
  text-align: center;
}

p.story-name {
  font-size: 0.75rem !important;
  text-align: center;
  margin-top: 0.5rem;
  color: var(--text-primary);
  font-weight: 500;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-name a {
  font-size: 0.6rem !important;
}

.stories-container {
  padding: 2.5rem 0.5em 0.75rem;
  border-bottom: 1px solid var(--border-light);
  min-height: 200px;
}

.stories-container h2 {
  font-size: 15px;
  text-align: center;
  margin-bottom: 20px;
  color: #eee;
}

.stories-container > div {
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow-x: auto;
  padding: 0 0.5rem 0.5rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.stories-container > div::-webkit-scrollbar {
  display: none;
}

.story-ring-item {
  flex-shrink: 0;
  cursor: pointer;
  transition: transform 0.2s;
}

.story-ring-item:hover {
  transform: scale(1.05);
}

.story-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
}

.story-ring-inner {
  background: white;
  border-radius: 50%;
  width: 100%;
  height: 100%;
}

.story-ring-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.story-ring-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: linear-gradient(45deg, #FFC200, #DC02B2, #FF1459);
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-ring-viewed {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, #71767b 0%, #8b8b8b 100%);
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-count-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #ec4899;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

/* プロフィールストーリーリング */
.profile-stories-section {
  margin: 20px 0;
}

.profile-story-ring-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.profile-story-ring {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s;
  width: 90px;
  height: 90px;
}

.profile-story-ring:hover {
  transform: scale(1.05);
}

.profile-story-ring-gradient {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
  box-sizing: border-box;
}

.profile-story-ring-inner {
  background: white;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.profile-story-ring-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-story-ring-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #f0f0f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-story-ring-placeholder i {
  font-size: 40px;
  color: #ccc;
}

.profile-story-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background: #e1306c;
  color: white;
  font-size: 12px;
  font-weight: bold;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid white;
  box-sizing: border-box;
}

.profile-story-text {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin-top: 10px;
}

.profile-story-text i {
  margin-right: 5px;
}

.story-tabs {
  display: flex;
  gap: 10px!important;
  margin-bottom: 14px;
  padding: 0 4px;
}

.story-tab-btn {
  padding: 10px 14px;
  border-radius: 25px;
  min-width: 70px;
  border: 1px solid #9eacb7;
  background: transparent;
  color: #9eacb7;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.story-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.story-tab-active {
  background: #1d9bf0 !important;
  border-color: #1d9bf0;
  color: #fff;
}

.empty-story-message {
  color: #8899a6;
  font-size: 14px;
  padding: 20px;
  text-align: center;
}

.story-loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100px;
  color: #8899a6;
  font-size: 24px;
}

/* ============================================
   12. ストーリービューアー
   ============================================ */

.story-viewer-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 10001!important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-viewer-modal.hidden {
  display: none !important;
}

.story-viewer-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 50;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 0.5rem;
}

.story-viewer-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

.story-viewer-nav-btn.prev {
  left: 1rem;
}

.story-viewer-nav-btn.next {
  right: 1rem;
}

.story-viewer-container {
  position: relative;
  max-width: 500px;
  margin:0 auto;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.story-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  padding: 1rem;
}

.story-viewer-profile-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: white;
  cursor: pointer;
}

.story-viewer-profile-link:hover {
  opacity: 0.8;
}

.story-viewer-content {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.story-viewer-tap-area {
  position: absolute;
  top: 100px;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  z-index: 10;
}

.story-viewer-tap-area > div {
  width: 33.333%;
  height: 100%;
  cursor: pointer;
}

/* Vueコンポーネント版ストーリービューアー */
.story-viewer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 9999;
}

.story-close-btn {
  position: absolute;
  top: 35px;
  right: 20px;
  z-index: 9999;
  color: #fff;
  font-size: 28px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.story-close-btn:hover {
  color: #ccc;
  background: none;
}

.story-mute-btn {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  margin: 0 auto;
  z-index: 50;
  color: #fff;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: transform 0.2s;
}

.story-mute-btn:hover {
  background: none;
  transform: scale(1.1);
}

.story-nav-btn {
  position: absolute;
  z-index: 40;
  color: #fff;
  font-size: 32px;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.story-nav-btn:hover {
  color: #ccc;
  background: none;
}

.story-nav-prev {
  position: absolute;
  top:50%;
  left: 16px;
}

.story-nav-next {
  position: absolute;
  top:50%;
  right: 16px;
}

.story-content-wrapper {
  position: relative;
  max-width: 450px;
  width: 100%;
  height: 100%;
  max-height: 100vh;
  margin:0 auto;
  display: flex;
  flex-direction: column;
}

.story-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent);
  padding: 16px;
}

.story-progress-container {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}

.story-progress-bar {
  flex: 1;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  background: #fff;
}

.story-profile-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.story-profile-link {
  display: block;
  position: relative;
  z-index: 50;
}

.story-profile-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  transition: border-color 0.2s;
}

.story-profile-avatar:hover {
  border-color: #f472b6;
}

.story-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-profile-avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #d1d5db;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
}

.story-profile-name {
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  margin: 0;
}

.story-profile-time {
  color: rgba(255, 255, 255, 0.8);
  font-size: 12px;
  margin: 0;
}

.story-media-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-media {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.story-video-loading {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
  text-align: center;
  z-index: 25;
}

.story-video-loading i {
  font-size: 40px;
  margin-bottom: 12px;
  display: block;
}

.story-video-loading p {
  font-size: 14px;
  margin: 0;
  opacity: 0.8;
}

.story-caption {
  position: absolute;
  bottom: 45px;
  left: 16px;
  right: 16px;
  z-index: 30;
  background: rgba(20, 20, 30, 0.75);
  padding: 14px 18px;
  border-radius: 14px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.25), 0 0 40px rgba(139, 92, 246, 0.15);
}

.story-caption::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, #f472b6, #8b5cf6, #06b6d4);
  border-radius: 16px;
  z-index: -1;
  opacity: 0.7;
}

.story-caption-text {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
  margin: 0;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.story-view-count {
  position: absolute;
  top: 34px;
  right:0px;
  transform: translateX(-50%);
  z-index: 9999;
  background: rgba(65, 211, 146, 0.9);
  color: #fff;
  padding: 8px 16px;
  min-width:35px;
  border-radius: 20px;
  font-size: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.story-view-count i {
  font-size: 12px;
}

.story-tap-areas {
  position: absolute;
  top: 100px;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  z-index: 20;
}

.story-tap-area {
  flex: 1;
  cursor: pointer;
}

#mute-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.8);
  transform: scale(1.1);
}

#mute-toggle-btn:active {
  transform: scale(0.95);
}

#mute-toggle-btn i {
  font-size: 2rem;
}

/* ストーリーリアクションボタン */
.story-reaction-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  right: 10px;
  bottom: 20%;
  transform: translateY(-10%);
  z-index: 30;
}

.story-reaction-btn {
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.story-reaction-btn:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

.story-reaction-btn:active {
  transform: scale(0.95);
}

.reaction-sent-msg {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  white-space: nowrap;
}

/* ============================================
   13. ボタン
   ============================================ */

.post-button {
  padding: 8px 12px;
  min-width: 140px;
  border: none;
  border-radius: 30px;
  background-color: #08c655;
  color: white;
  font-size: 14px;
  margin-left: auto;
}

.post-button:hover {
  background-color: #0d8ecf;
}

.login-button {
  display: block;
  width: 80px;
  padding: 5px 0;
  background-color: #fff;
  color: #333;
  border: none;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  text-align: center;
  margin-right: 10px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.follow-button {
  display: block;
  width: 100%;
  padding: 8px 0;
  background-color: #08c655;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.follow-button.following {
  background-color: #575a62;
  color: #fff;
}

.follow-button.following:hover {
  background-color: #0aec65;
}

/* DMボタン */
.profile-action-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: stretch;
}
.profile-action-buttons .follow-button {
  flex: 1;
}
.dm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  background: #6c5ce7;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: background 0.2s;
  white-space: nowrap;
}
.dm-button:hover {
  background: #5b4cdb;
  color: #fff;
}

.visit-button {
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  background-color: #219BE4;
  border: none;
  border-radius: 10px;
  color: #e7e9ea;
  margin-top: 14px;
}

.visit-button:hover {
  background: rgba(83, 100, 113, 0.2);
}

.visit-button.visited {
  background: rgba(83, 100, 113, 0.3);
  cursor: default;
  opacity: 0.8;
}

.visit-button.status-visited {
  background: rgba(34, 197, 94, 0.2);
  border-color: #22c55e;
  color: #22c55e;
}

.visit-button.status-ng {
  background: rgba(244, 63, 94, 0.2);
  border-color: #f43f5e;
  color: #f43f5e;
}

/* 訪問リスト解除ボタン */
.visit-remove-btn {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  background: rgba(233, 30, 99, 0.4);
  color: #fff;
  border: 1px solid rgba(233, 30, 99, 0.7);
  cursor: pointer;
  margin-top: 10px;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.visit-remove-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}

.messa-button {
  display: block;
  width: 100%;
  padding: 8px 0;
  background-color: #292b2e;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.twitter-button {
  display: block;
  width: 100%;
  padding: 10px 0;
  background: #1da1f2;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 25px;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.fan-button {
  display: block;
  width: 100%;
  padding: 8px 0;
  margin: 0px 14px 20px;
  background-color: #ff4160;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.fan-button_fan {
  display: block;
  width: 100%;
  padding: 8px 0;
  margin: 0px 14px 20px;
  background-color: #f9f9f9;
  color: #333;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.fan-button_fan a {
  color: #333;
  display: block;
}

.fan-button_live {
  display: block;
  width: 100%;
  padding: 8px 0;
  margin: 0px 14px 20px;
  background-color: #08c655;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.fan-button_mp {
  display: block;
  width: 90%;
  padding: 8px 0;
  margin: 20px auto 25px;
  background-color: #323439;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.5s;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.material-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  background:linear-gradient(135deg, #ff2d6a 0%, #ff6b9d 50%, #ffb366 100%);
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  transition: 0.5s;
}

.material-button a {
  display: block;
}

.material-button a:hover {
  background:linear-gradient(135deg, #fd5081 0%, #fd87af 50%, #f3b87d 100%);
  color: #fff !important;
}

.material-button:hover {
  background:linear-gradient(135deg, #fd5081 0%, #fd87af 50%, #f3b87d 100%);
  color: #fff !important;
}

.button-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 60px 20px 30px;
}

.refresh-button-container {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999;
  cursor: pointer;
  transition: top 0.3s ease;
}

.refresh-button-container.header-hidden {
  top: 15px;
}

.refresh-button {
  background: linear-gradient(135deg, rgba(102, 126, 234,.7) 0%, rgba(118, 75, 162,.7) 100%);
  color: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 24px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.refresh-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.refresh-button:active {
  transform: translateY(0);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.refresh-button i {
  font-size: 14px;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  background: #1d9bf0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-submit:hover {
  background: #1a8cd8;
}

.empty-state-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #1d9bf0;
  color: white;
  border-radius: 9999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.empty-state-btn:hover {
  background: #1a8cd8;
}

/* ============================================
   14. タブ
   ============================================ */

/* 絞り込みフィルター 
.filter-container {
  display: flex;
  gap: 8px;
  padding: 20px 16px;
  background: #17171a;
  border-bottom: 1px solid var(--theme-border-light);
}

.filter-select {
  flex: 1;
  padding: 10px 12px;
  background: #202327;
  border: 1px solid var(--theme-border-light);
  border-radius: 8px;
  color: #ddd!important;
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371767b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}
*/

.filter-container {
  display: flex;
  gap: 8px;
  padding: 10px 16px 25px;
}

.filter-select {
  flex: 1 1 0;
  min-width: 0;
  padding: 14px 12px;
  background: #223445;
  border: none;
  border-radius: 8px;
  color: #ddd!important;
  font-size: 15px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2371767b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
}

.filter-select:focus {
  outline: none;
  border-color: #1d9bf0;
}

.filter-reset-btn {
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 5px;
  padding: 3px 10px!important;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.filter-reset-btn:hover {
  background: #dc2626;
}

.tabs-container {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--theme-border);
  min-height: 50px;
}

.tabs-flex {
  display: flex;
  gap: 0;
}

.tab-button {
  flex: 1;
  padding: 16px 0;
  background: none;
  border: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.75;
  cursor: pointer;
  position: relative;
  transition: background 0.2s, color 0.2s;
}

.tab-button:hover {
  background: rgba(255, 255, 255, 0.05);
}

.tab-active {
  background: none !important;
  color: #0ecfff !important;
}

.tab-inactive {
  color: var(--text-primary)!important;
}

.tab-inactive:hover {
  background: none !important;
  color: var(--text-primary)!important;
}

.tab-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: #1d9bf0;
  border-radius: 2px;
}

.tabs-container + .timeline_prof {
  border-top: none;
  margin-top: 10px;
}

.sub-tabs {
  display: flex;
  border-bottom: 1px solid var(--theme-border-light);
  margin-bottom: 16px;
}

.sub-tab-button {
  flex: 1;
  padding: 12px 16px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-tab-button:hover {
  background: none;
}

.sub-tab-active {
  color: var(--text-primary);
  border-bottom: 2px solid #1d9bf0;
  background: none;
}

/* 日付サブタブ（7日分横スクロール用） */
.sub-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.sub-tabs-scroll .sub-tab-button {
  flex: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.sub-tabs-scroll .sub-tab-active {
  color: var(--text-primary);
  border-bottom: 2px solid #1d9bf0;
  background: none;
}

/* ============================================
   15. ランキング
   ============================================ */

.ranking-container {
  max-width: 600px;
  margin: 15px 10px 30px;
}

.ranking-loading {
  text-align: center;
  padding: 40px;
  color: #71767b;
}

.ranking-item {
  padding: 16px 10px 12px 10px;
  border-bottom:solid 1px #223445;
  display: flex;
  align-items: center;
  transition: background 0.2s;
  cursor: pointer;
}

.ranking-rank {
  font-size: 15px;
  font-weight: bold;
  min-width: 25px;
  text-align: center;
}

.rank-gold {
  color: #FFD700;
}

.rank-silver {
  color: #C0C0C0;
}

.rank-bronze {
  color: #CD7F32;
}

.rank-default {
  color: #71767b;
}

.ranking-avatar {
  width: 65px !important;
  height: 65px !important;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--theme-border-light);
  margin-right: 10px;
  transition: transform 0.2s;
}

.ranking-info {
  flex: 1;
  overflow: hidden;
  min-width: 0;
}

.ranking-name {
  color: #e7e9ea;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 4px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.ranking-username {
  color: #71767b;
  font-size: 13px;
}

.ranking-profile {
  color: #a0a0a0;
  font-size: 12px;
}

.ranking-size {
  color: #a0a0a0;
  font-size: 11px!important;
}

.ranking-size-p {
  color: #a0a0a0;
  font-size: 11px!important;
  margin-bottom: 4px;
}

.ranking-size-shop {
  color: #05d1ff;
  font-size: 11px!important;
  margin-bottom: 4px;
}

.ranking-size-shop-p {
  color: #a0a0a0;
  font-size: 11px;
  margin-bottom: 4px;
}

.ranking-stats {
  display: flex;
  gap: 12px;
  font-size: 13px;
}

.ranking-stats-total {
  color: #e7e9ea;
}

.ranking-stats-detail {
  color: #71767b;
}

.ranking-profile-btn {
  padding: 8px 16px;
  background: #1d9bf0;
  color: white;
  border-radius: 20px;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  transition: background 0.2s;
}

.ranking-empty {
  text-align: center;
  padding: 40px;
  color: #71767b;
}

.story-ring-ranking {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  padding: 4px;
  margin-right: 10px;
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
}

.story-ring-viewed-ranking {
  width: 65px;
  height: 65px;
  border-radius: 50%;
  background: linear-gradient(135deg, #71767b 0%, #8b8b8b 100%);
  padding: 4px;
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================
   16. カード
   ============================================ */

.profile-card {
  width: 100%;
  max-width: 345px;
  margin: 20px auto 40px;
  background-color: #292b2e;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  border-radius: 12px;
  overflow: hidden;
}

.card_header-image {
  position: relative;
  overflow: hidden;
}

.card_header-image img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: 50% 50%;
}

.card_avatar-overlay {
  position: absolute;
  bottom: 12px;
  left: 10px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
}

.card_profile-info {
  display: flex;
  align-items: center;
  padding: 10px 10px 20px;
}

.card_avatar-icon {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card_user-info {
  flex: 1;
}

.card_user-name {
  font-size: 15px;
  font-weight: bold;
  margin-bottom: 5px;
}

.card_user-bio {
  font-size: 11px;
  color: #afafaf;
}

.profile-card_mp {
  display: flex;
  align-items: center;
  padding: 20px 0px 20px 0px;
}

.mp_cont {
  margin-top: 0px;
  border-bottom: solid 1px #333;
}

.mp_cont:first-child {
  margin-top: -20px;
  border-bottom: solid 1px #333;
}

.avatar-container_mp {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 7px;
  object-fit: cover;
  object-position: 50% 50%!important;
}

.avatar-container_mp_story {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 7px;
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
  padding: 3px;
  object-fit: cover;
  object-position: 50% 50%!important;
}

.avatar-container_mp_story img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-container_mp_story_check {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  margin-right: 7px;
  background: linear-gradient(135deg, #71767b 0%, #8b8b8b 100%);
  padding: 3px;
  object-fit: cover;
  object-position: 50% 50%!important;
}

.avatar-container_mp_story_check img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.avatar-icon_mp {
  width:  40px;
  height: 40px;
  object-fit: cover;
  object-position: 50% 50%!important;
}

.content_mp {
  flex: 1;
  min-width: 0;
}

.user-name_mp {
  font-size: 16px;
  font-weight: bold;
  margin-top: 5px;
  line-height: 1.1;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-bio_mp {
  font-size: 14px;
  color: #999;
}

/* ============================================
   17. 検索
   ============================================ */

.search-page {
  padding: 40px 20px;
  max-width: 600px;
  margin: 0 auto;
}

.search-form-container {
  margin-bottom: 24px;
}

.search-form {
  display: flex;
  gap: 10px;
}

.search-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 14px;
  color: #888;
  pointer-events: none;
}

.search-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px;
  border: 1px solid #333;
  border-radius: 25px;
  background: #1a1a1a;
  color: #fff!important;
  font-size: 16px;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: #667eea;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-clear {
  position: absolute;
  right: 14px;
  color: #888;
  padding: 5px;
}

.search-clear:hover {
  color: #fff;
}

.search-button {
  padding: 12px 24px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 25px;
  color: #fff;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  transition: opacity 0.2s;
}

.search-button:hover {
  opacity: 0.9;
}

/* 検索結果 */
.search-count {
  color: #888;
  font-size: 14px;
  margin-bottom: 16px;
}

.cast-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cast-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #1a1a1a;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.cast-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.cast-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cast-name {
  color: #fff;
  font-weight: bold;
  font-size: 15px;
}

.cast-details {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.cast-location {
  color: #888;
  font-size: 13px;
}

/* プレースホルダー・結果なし */
.search-placeholder,
.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #666;
}

.search-placeholder i,
.no-results i {
  font-size: 48px;
  margin-bottom: 16px;
}

.no-results p,
.search-placeholder p {
  font-size: 15px;
}

.search-link {
  color: #fff;
  padding: 8px;
  margin-top:3px;
  margin-left:5px;
}

/* 検索タブ */
.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--theme-border);
  margin: 0px -18px 16px;
}

.search-tab {
  flex: 1;
  text-align: center;
  padding: 12px 5px;
  color: #8899a6;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}

.search-tab:hover {
  color: #fff;
  background: rgba(255,255,255,0.03);
}

.search-tab.active {
  color: #0AD0FF;
  border-bottom-color: #0AD0FF;
}

.user-filter-container {
  padding: 12px 0px;
}

.user-filter-container .filter-select {
  width: 100%;
}

.search-user-grid {
  display: flex;
  flex-direction: column;
}

.search-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  text-decoration: none;
  border-bottom: 1px solid var(--theme-border);
  transition: background 0.2s;
}

.search-user-card:hover {
  background: rgba(255,255,255,0.03);
}

.search-user-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.search-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-user-info {
  gap: 2px;
  min-width: 0;
  overflow: hidden;
}

.search-user-name {
  color: #fff;
  font-size: 15px;
  line-height: 1;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: inline-block;
}

.search-user-area {
  color: #8899a6;
  font-size: 13px;
}

.search-user-jobs {
  color: #FF306C;
  font-size: 12px;
}

.search-user-sub {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

/* ============================================
   18. エリアドロップダウン
   ============================================ */

.area-dropdown-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}

.area-dropdown-wrapper:hover {
  opacity: 0.8;
}

.area-dropdown-icon {
  font-size: 12px;
  transition: transform 0.3s;
}

.area-dropdown-wrapper:active .area-dropdown-icon {
  transform: rotate(180deg);
}

.area-dropdown-menu {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30, 40, 55, 0.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1000;
  border-radius: 16px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-width: 330px;
  max-width: 600px;
  max-height: 500px;
  overflow-y: auto;
  animation: dropdown-slide 0.2s ease-out;
}

@keyframes dropdown-slide {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.area-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  cursor: pointer;
  transition: background 0.2s;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 15px;
  color: #e8eef4;
}

.area-dropdown-item:first-child {
  border-radius: 0;
}

.area-dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0;
}

.area-dropdown-item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.area-dropdown-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
}

.area-dropdown-item i.fa-map-marker-alt {
  color: #667eea;
  font-size: 14px;
}

/* エリアドロップダウン - アコーディオン形式 */
.area-section-title {
  grid-column: 1 / -1;
  padding: 10px 14px 6px;
  font-size: 12px;
  color: #8899a6;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 30, 45, 0.6);
}

.area-popular-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 14px;
  background: rgba(25, 35, 50, 0.5);
}

.area-popular-item {
  padding: 10px 8px;
  text-align: center;
  background: rgba(40, 55, 75, 0.6);
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  color: #e8eef4;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.area-popular-item:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.area-popular-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
}

.area-region {
  grid-column: 1 / -1;
}

.area-region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  background: rgba(20, 30, 45, 0.6);
  cursor: pointer;
  font-size: 14px;
  color: #e8eef4;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 0.2s;
}

.area-region-header:hover {
  background: rgba(40, 55, 75, 0.7);
}

.area-region-header i {
  font-size: 12px;
  color: #667eea;
}

.area-region-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.area-region-content .area-dropdown-item {
  font-size: 14px;
  padding: 12px 14px;
}

.area-dropdown-item.active i.fa-map-marker-alt {
  color: white;
}

.area-dropdown-item i.fa-check {
  margin-left: auto;
  color: white;
  font-size: 14px;
}

.dropdown-fade-enter-active,
.dropdown-fade-leave-active {
  transition: opacity 0.2s, transform 0.2s;
}

.dropdown-fade-enter-from {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

.dropdown-fade-leave-to {
  opacity: 0;
  transform: translateX(-50%) translateY(-10px);
}

/* ============================================
   19. 通知
   ============================================ */

.notification-bell {
  position: relative;
  cursor: pointer;
  color: var(--text-primary);
  margin-top: 7px;
  margin-right: 5px;
}

.notification-badge {
  position: absolute;
  top: 0px;
  left: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: bold;
  width:25px;
  height:25px;
  line-height: 25px;
  border-radius: 50%;
  text-align: center;
}

.notification-dropdown {
  display: none;
  position: absolute;
  top: 60px;
  right: 10px;
  width: 320px;
  max-height: 400px;
  background: var(--bg-secondary);
  border: 1px solid var(--theme-border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  overflow: hidden;
}

.notification-dropdown.show {
  display: block;
}

.notification-dropdown-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border);
  font-weight: bold;
  color: #fff;
}

.notification-mark-read {
  background: none;
  border: none;
  color: #ec4899;
  font-size: 15px;
  cursor: pointer;
}

.notification-list {
  max-height: 340px;
  overflow-y: auto;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--theme-border);
  cursor: pointer;
  transition: background 0.2s;
}

.notification-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.notification-item.unread {
  background: rgba(236, 72, 153, 0.1);
}

.notification-item-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.notification-item-content {
  flex: 1;
}

.notification-item-text {
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 4px 0;
}

.notification-item-text strong {
  color: #ec4899;
}

.notification-item-time {
  color: #71767b;
  font-size: 12px;
}

.notification-loading,
.notification-empty {
  padding: 30px;
  text-align: center;
  color: #71767b;
}

.notification-user-label {
  font-size: 11px;
  color: #71767b;
  margin-left: 4px;
}



/* ============================================
   20. モーダル
   ============================================ */

.remodal-overlay {
  background: rgba(255, 255, 255, .6) !important;
}

.login_content {
  position: relative;
  background: none !important;
  border-radius: 2em;
  padding: 0px;
  margin: 0;
}

.login_content.remodal-close {
  position: absolute;
  top: 30px;
  right: 0 !important;
  display: block;
  overflow: visible;
  width: 45px;
  height: 45px;
  margin: 0;
  padding: 0;
  cursor: pointer;
  -webkit-transition: color 0.2s;
  transition: color 0.2s;
  text-decoration: none;
  border: 0;
  outline: 0;
}

.login_content .remodal-close:before {
  font-size: 40px;
  line-height: 45px;
  position: absolute;
  top: 30px;
  right: 0 !important;
  bottom: 0;
  display: block;
  margin: auto;
  color: #333 !important;
  background: #fff !important;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  content: "\00d7";
  text-align: center;
}

/* ============================================
   21. ボトムシート
   ============================================ */

.bottom-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.bottom-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}

.bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 600px;
  max-height: 75vh;
  min-height: 65vh;
  background: var(--bg-secondary);
  border-radius: 20px 20px 0 0;
  z-index: 9999;
  transition: transform 0.3s ease-out;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bottom-sheet.active {
  transform: translateX(-50%) translateY(0);
}

.bottom-sheet-handle {
  width: 40px;
  height: 4px;
  background: #71767b;
  border-radius: 2px;
  margin: 12px auto;
  cursor: grab;
}

.bottom-sheet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px 12px;
  border-bottom: 1px solid var(--theme-border);
}

.bottom-sheet-title {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
}

.bottom-sheet-close {
  background: none;
  border: none;
  color: #71767b;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

.bottom-sheet-close:hover {
  color: #fff;
}

.bottom-sheet-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  padding-bottom: 130px;
}

.bottom-sheet-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.bottom-sheet-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
}

.bottom-sheet-info {
  flex: 1;
}

.bottom-sheet-name {
  font-size: 18px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 4px;
}

.bottom-sheet-username {
  font-size: 14px;
  color: #71767b;
  margin: 0;
}

.bottom-sheet-meta {
  font-size: 13px;
  color: #71767b;
  margin-top: 4px;
}

.bottom-sheet-meta span {
  margin-right: 12px;
}

.bottom-sheet-follow-btn {
  padding: 8px 20px;
  background: #1d9bf0;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: bold;
  cursor: pointer;
}

.bottom-sheet-follow-btn.following {
  background: transparent;
  border: 1px solid #71767b;
  color: #fff;
}

.bottom-sheet-posts-title {
  font-size: 16px;
  font-weight: bold;
  color: #fff;
  margin: 16px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--theme-border);
}

.bottom-sheet-loading {
  text-align: center;
  padding: 40px;
  color: #71767b;
}

.bottom-sheet-empty {
  text-align: center;
  padding: 40px;
  color: #71767b;
}

/* ============================================
   22. フォーム
   ============================================ */

.profile-edit-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 20px;
}

.profile-edit-form {
  background: var(--bg-secondary);
  padding: 24px;
  border-radius: 12px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #e7e9ea;
  font-weight: bold;
  margin-bottom: 8px;
}

.form-group input {
  color: #e7e9ea !important;
}

.form-group select {
  color: #e7e9ea !important;
}

.form-control {
  width: 100%;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: #1d9bf0;
}

.form-control:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-control-file {
  width: 100%;
  padding: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--theme-border);
  border-radius: 8px;
  color: #e7e9ea;
  font-size: 14px;
  box-sizing: border-box;
}

.form-text {
  display: block;
  color: #fff;
  font-size: 12px;
  margin-top: 4px;
}

.current-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.current-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  font-size: 40px;
  color: #71767b;
}

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

.back-link a {
  color: #1d9bf0;
  text-decoration: none;
}

.back-link a:hover {
  text-decoration: underline;
}

/* ============================================
   23. アラート
   ============================================ */

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid #22c55e;
}

.alert-error {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid #ef4444;
}

/* ============================================
   24. スケルトン・ローディング
   ============================================ */

.skeleton {
  background: linear-gradient(90deg, #1e2732 25%, #2d3741 50%, #1e2732 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 8px;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.skeleton-header {
  height: 200px;
  width: 100%;
  margin-bottom: 16px;
}

.skeleton-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: -40px auto 16px;
}

.skeleton-text {
  height: 16px;
  margin: 8px auto;
  width: 60%;
}

.skeleton-text-short {
  height: 14px;
  margin: 8px auto;
  width: 40%;
}

.skeleton-post {
  padding: 16px;
  border-bottom: 1px solid var(--theme-border);
}

.skeleton-post-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  float: left;
  margin-right: 12px;
}

.skeleton-post-content {
  margin-left: 60px;
}

.skeleton-post-name {
  height: 14px;
  width: 120px;
  margin-bottom: 8px;
}

.skeleton-post-text {
  height: 12px;
  width: 100%;
  margin-bottom: 6px;
}

.skeleton-post-text:last-child {
  width: 70%;
}

.loading-overlay-p {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loading-overlay-content-p {
  text-align: center;
}

.loading-overlay-spinner-p {
  font-size: 39px !important;
  color: #1d9bf0;
}

.loading-overlay-text-p {
  margin-top: 20px !important;
  color: #71767b;
}

.loading_b {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px 400px;
  color: #71767b;
}

.loading-indicator {
  text-align: center;
  padding: 20px;
  margin: 40px auto;
  color: #71767b;
}

/* ============================================
   25. 空状態・終了メッセージ
   ============================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
}

.empty-state p {
  color: #71767b;
  margin-bottom: 16px;
}

.end-message {
  text-align: center;
  padding: 20px;
  margin: 40px auto;
  color: #71767b;
  font-size: 14px;
}

/* ============================================
   26. フッター
   ============================================ */

.site-footer {
  background: #0f161e;
  border-top: 1px solid #0f161e;
  padding: 20px 0;
  margin-bottom: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-copyright {
  color: #eee;
  font-size: 12px;
  margin-top:20px;
  margin-bottom: 10px;
}

.footer-copyright a {
  color: #eee;
  font-size: 12px;
  margin-top:20px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  color: #1d9bf0;
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #1a8cd8;
  text-decoration: underline;
}

.footer-separator {
  color: #71767b;
  font-size: 13px;
}

/* ============================================
   27. 固定ボトムナビゲーション
   ============================================ */

.bottom-nav {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  max-width: 600px!important;
  margin: 0 auto;
  background: rgba(21, 32, 43, .9) !important;
  backdrop-filter: blur(10px) !important;
  z-index: 100 !important;
  display: flex !important;
  justify-content: space-around !important;
  align-items: center !important;
  padding: 8px 0 !important;
  height: 45px !important;
}

.bottom-nav-item {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  color: #f5f5f5 !important;
  transition: color 0.2s !important;
  padding: 5px 0!important;
}

.bottom-nav-item:hover {
  color: #1d9bf0;
}

.bottom-nav-item.active {
  color: #1d9bf0;
}

.bottom-nav-item i {
  font-size: 20px !important;
  margin-bottom: 2px !important;
}

.bottom-nav-item span {
  font-size: 10px !important;
  font-weight: 400 !important;
}

.bottom-nav-item svg {
  margin-bottom: 5px;
}

.site-toggle-wrapper {
  padding: 8px 2px;
}

.site-toggle {
  display: flex;
  background: var(--theme-border);
  border-radius: 20px;
  overflow: hidden;
  height: 32px;
}

.site-toggle-btn {
  min-width: 65px;
  padding: 6px 8px;
  font-size: 12px;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 20px;
  background: transparent;
  color: #8899a6;
}

.site-toggle-btn.active {
  background: var(--primary);
  color: white;
}

/* 全国エリアボタン（FAB） */
.global-fab {
  position: fixed;
  bottom: 80px;
  right: 10px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, rgba(24, 119, 242,.85) 0%, rgba(24, 119, 242,.85) 100%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 999;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.global-fab:active {
  transform: scale(0.95);
}

.fab-label {
  font-size: 10px;
  margin-top: 2px;
}

.fab-post {
  background: rgba(9, 101, 254,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}

/* 推しFABメニュー */
.fab-favorite {
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  cursor: pointer;
}

.fab-favorite-menu {
  position: fixed;
  bottom: 90px;
  right: 20px;
  background: #1e293b;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  width: 200px;
  max-height: 400px;
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
}

.fab-favorite-menu.active {
  display: flex;
}

.fab-favorite-header {
  padding: 12px 16px;
  font-weight: bold;
  color: #f59e0b;
  border-bottom: 1px solid #334155;
  font-size: 14px;
}

.fab-favorite-list {
  flex: 1;
  overflow-y: auto;
  max-height: 280px;
}

.fab-favorite-item {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s;
}

.fab-favorite-item:hover {
  background: #334155;
}

.fab-favorite-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 12px;
}

.fab-favorite-name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fab-favorite-loading,
.fab-favorite-empty {
  padding: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
}

.fab-favorite-footer {
  padding: 12px 16px;
  text-align: center;
  color: #f59e0b;
  text-decoration: none;
  border-top: 1px solid #334155;
  font-size: 13px;
}

.fab-favorite-footer:hover {
  background: #334155;
}

/* 投稿メニュー */
.fab-menu {
  display: none;
  position: fixed;
  bottom: 160px;
  right: 16px;
  background: #16181c;
  border: 1px solid var(--theme-border-light);
  border-radius: 12px;
  overflow: hidden;
  z-index: 1001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}
.fab-menu.active {
  display: block;
}

.fab-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: #e7e9ea;
  text-decoration: none;
  border-bottom: 1px solid var(--theme-border-light);
  transition: background 0.2s;
}
.fab-menu-item:hover {
  background: #22242a;
}
.fab-menu-item-last {
  border-bottom: none;
}

.fab-menu-icon {
  width: 20px;
  text-align: center;
}
.fab-menu-icon-post {
  color: #1d9bf0;
}
.fab-menu-icon-story {
  color: #f91880;
}

/* オーバーレイ */
.fab-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 998;
}
.fab-overlay.active {
  display: block;
}

/* PC時はコンテンツ幅内に配置 */
@media (min-width: 640px) {
  .global-fab {
    right: calc(50% - 300px + 16px);
  }
  .fab-menu {
    right: calc(50% - 300px + 16px);
  }
}

/* ============================================
   28. ユーティリティ
   ============================================ */

.area-separator {
  font-size: 12px;
}

.pink-text {
  font-size:13px;
  color: #ec4899;
}

.pink-text a {
  font-size:13px;
  color: #ec4899 !important;
}

.gray-text {
  font-size:13px;
  color: var(--text-subtle);
}

p.follow_attend {
  font-size: 12px !important;
  background: rgba(41, 43, 46, .9);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
  color: #f1f1f1;
  padding: 5px 12px;
  border-radius: 12px;
  margin: 15px 20px 20px;
}

h2.ac_pick {
  font-size: 24px;
  margin: 30px auto 30px;
  text-align: center;
}

h2.comment_h2 {
  font-size: 24px;
  margin: 10px auto 20px;
  text-align: left;
  padding: 5px 15px 10px;
  border-bottom: solid 1px #333;
}

.img_top {
  margin-top: 20px;
}

.img_bottom {
  margin-bottom: 20px;
}

.s_img_mag {
  margin: 10px 0 10px;
}

.height_box {
  margin-top: 15px;
  margin-left: 15px;
}

.grid-prof_b {
  margin-bottom: 0px;
}

.reply-link {
  line-height: 2.5;
  font-size: 13px;
  color: #eee;
}

.replies-list {
  margin-left: 20px;
  margin-right: -14px;
}

.video-stream {
  width: 100%;
  height: auto;
  background-color: var(--bg-primary);
  border-radius: 10px;
}

.video-stream video {
  border-radius: 10px;
}

/* Font Awesomeアイコン */
.fa-shield-heart {
  color: #ff4160;
  margin-right: 5px;
}

.fa-chalkboard-user {
  color: #00acee;
  margin-right: 5px;
}

.fa-arrow-left {
  margin-top: 5px;
  margin-left: 5px;
  font-size: 22px !important;
}

.fa-crown {
  color: #fbb004;
  margin-right: 5px;
}

.fa-tv-retro {
  color: #fbb004;
  margin-right: 5px;
}

/* アニメーション */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  50% {
    transform: scale(1.1);
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
  }
}

.pulse-animation {
  animation: pulse 1.5s ease-in-out infinite;
}

/* ============================================
   29. ユーザープロフ
   ============================================ */

.user-profile-page {
  padding: 20px 16px;
  max-width: 500px;
  margin: 0 auto;
}

.user-profile-card {
  background: rgba(255,255,255,0.05);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
}

.user-profile-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.user-profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #667eea;
}

.user-profile-name {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  margin: 0 0 8px;
}

.user-profile-label {
  display: inline-block;
  background: rgba(102, 126, 234, 0.2);
  color: #a5b4fc;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.user-profile-area {
  color: #f472b6;
  font-size: 14px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.user-profile-bio {
  color: rgba(255,255,255,0.8);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 24px;
  padding: 12px 16px 0px;
}

.user-profile-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-stat {
  text-align: center;
}

.user-stat-count {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #fff;
}

.user-stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
}

.user-profile-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.user-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 200px;
  height: 44px;
  border-radius: 22px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s;
  box-sizing: border-box;
  border: none;
}

.user-action-btn:hover {
  opacity: 0.8;
}

.user-action-btn.dm-btn {
  background: #6c5ce7;
  color: #fff;
}

.user-action-btn.tel-btn {
  background: #00B900;
  color: #fff;
}

.user-action-btn.user-x-btn {
  background: #000;
  color: #fff;
}

.user-action-btn.favorite-btn {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.3);
  cursor: pointer;
  outline: none;
  font-family: inherit;
}

.user-action-btn.favorite-btn.is-favorite {
  background: rgba(255, 193, 7, 0.2);
  border: 1px solid #ffc107;
  color: #ffc107;
}

.user-action-btn.favorite-btn:hover {
  opacity: 0.8;
}

.user-action-btn.follow-btn {
  background: #1DA1F2;
  color:#fff;
}

.user-action-btn.follow-btn.is-following {
  background: #F26939;
  color:#fff;
}

.user-action-btn.follow-btn:hover {
  background: #1a8cd8;
}

.user-action-btn.follow-btn.is-following:hover {
  background: #666;
}

.block-btn {
  background: #374151 !important;
  border: 1px solid #4b5563 !important;
}

.block-btn:hover {
  background: #4b5563 !important;
}

.block-btn.is-blocked {
  background: #dc2626 !important;
  border-color: #dc2626 !important;
}

.user-profile-tweet {
  position: relative;
  background: linear-gradient(135deg, #2d2a4a 0%, #3d3a5a 100%);
  border-radius: 16px;
  padding: 12px 16px;
  margin: 16px 0;
}
.user-profile-tweet::after {
  content: '';
  position: absolute;
  top: -10px;
  left: 24px;
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-bottom: 12px solid #2d2a4a;
}
.tubuyaki {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}
.tubuyaki-p {
  color: #fff;
  font-size: 15px;
  line-height: 1.6;
  margin: 6px 0 0;
}

/* SNSアイコン */
.user-sns-icons {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin: 16px 0;
}
.user-sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: opacity 0.2s;
}
.user-sns-icon:hover {
  opacity: 0.8;
}
.user-sns-icon-x {
  background: #000;
}
.user-sns-icon-bluesky {
  background: #0085ff;
}

/* ============================================
   30. レスポンシブ
   ============================================ */

@media (max-width: 1280px) {
  .sidebar-left {
    flex-basis: 3%;
  }
}

@media (max-width: 1000px) {
  .sidebar-right {
    display: none;
  }
  .sidebar-left {
    flex-basis: 1%;
  }
  .content {
    flex: 1;
    width: 100%;
    max-width: 600px;
    min-width: 300px;
    padding: 0px;
  }
}

@media (max-width: 768px) {
  .button-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-card_mp {
    flex-direction: row;
    align-items: flex-start;
  }
  .avatar-container_mp {
    margin-right: 7px;
  }
  .avatar-container_mp_story {
    margin-right: 7px;
  }
  .content_mp {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  }
  .user-name_mp {
    font-size: 15px;
    margin-bottom: 0;
  }
  .footer-nav {
    flex-direction: column;
    gap: 8px;
  }
  .footer-separator {
    display: none;
  }
  .bottom-nav {
    height: 50px !important;
  }
  .bottom-nav-item i {
    font-size: 20px !important;
  }
  .post-images-scroll img {
    height: 280px;
  }
  .story-viewer-nav-btn,
  .story-nav-btn {
    display: none;
  }
  .area-dropdown-menu {
    max-width: calc(100vw - 40px);
  }
  .profile-sns-icons {
    gap: 12px;
  }
  .profile-sns-icon {
    width: 36px;
    height: 36px;
  }
  .profile-sns-icon i {
    font-size: 18px;
  }
}

@media (max-width: 640px) {
  .edit_me i,
  .trash_me i {
    font-size: 18px;
  }
}

@media (max-width: 560px) {
  .tweet {
    padding: 0px 14px 15px 8px;
  }
  .post_content {
    padding: 0 15px 30px;
  }
  .profile-card {
    width: 100%;
    max-width: 245px;
  }
  .card_header-image {
    height: 150px;
  }
  .card_avatar-overlay {
    bottom: 8px;
    right: 10px;
    width: 50px;
    height: 50px;
  }
  .card_user-name {
    font-size: 15px;
  }
  .login_content .remodal-close:before {
    font-size: 35px;
    line-height: 42px;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 5% !important;
    bottom: 0;
    display: block;
    margin: auto;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    content: "\00d7";
    text-align: center;
  }
}

@media (max-width: 480px) {
  .sidebar-left {
    display: none;
  }
  .content {
    border-left: none;
    border-right: none;
  }
  .height_box {
    margin-top: 15px;
    margin-left: 5px;
  }
}
/* ========================================
   30. BANNER ADS
======================================== */
.banner-ads-container {
  margin: 15px 0 25px;
  padding: 0 15px;
}

.banner-ads-slider {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a2e;
}

.banner-ad-item {
  display: block;
  width: 100%;
}

.banner-ad-image {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  object-fit: cover;
  display: block;
}

.banner-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 15px;
}

.banner-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #444;
  cursor: pointer;
  transition: background 0.3s;
}

.banner-dot.active {
  background: #e91e63;
}

/* タイムライン内広告 */
.timeline-ad-card {
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid #32363f;
}

.timeline-ad-card::before {
  content: 'AD';
  position: absolute;
  top: 25px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #eee;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 1;
}

.timeline-ad-link {
  display: block;
  text-decoration: none;
  color: #fff;
}

.timeline-ad-image {
  width: 100%;
  margin:20px 0;
  border-radius: 0!important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.timeline-ad-info {
  padding: 12px;
}

.timeline-ad-shop {
  font-size: 14px;
  font-weight: bold;
}
/* ================================
   31. 店舗投稿・サブタブ
================================ */
.sub-tabs-container {
  display: flex;
  gap: 10px;
  padding: 10px 14px 30px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-tabs-container::-webkit-scrollbar {
  display: none;
}

.area-sub-tab-btn {
  padding: 10px 14px;
  border-radius: 25px;
  min-width: 70px;
  font-size: 14px;
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid #9eacb7;
  background: transparent;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s;
}

.area-sub-tab-btn:hover {
  border-color: #e91e63;
  color: var(--text-primary);
}

.area-sub-tab-active {
  background: #e91e63;
  border-color: #e91e63;
  color: #fff;
}

.shop-posts-list {
  padding: 16px;
}

.shop-post-card {
  background: #1e1e1e;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid #333;
}

.shop-post-header {
  display: flex;
  align-items: center;
  padding: 12px;
  gap: 12px;
  border-bottom: 1px solid #333;
}

.shop-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.shop-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-logo i {
  font-size: 20px;
  color: #666;
}

.shop-info {
  flex: 1;
  min-width: 0;
}

.shop-name {
  font-weight: bold;
  font-size: 14px;
  color: #fff;
  margin: 0;
}

.shop-area {
  font-size: 12px;
  color: #888;
  margin: 2px 0 0;
}

.shop-link-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #888;
  text-decoration: none;
  transition: all 0.2s;
}

.shop-link-btn:hover {
  background: #e91e63;
  color: #fff;
}

.shop-post-content {
  padding: 12px;
}

.shop-post-content p {
  margin: 0;
  white-space: pre-wrap;
  line-height: 1.6;
  color: #ddd;
}

.shop-post-images {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.shop-post-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
}

.shop-post-footer {
  padding: 8px 12px;
  border-top: 1px solid #333;
}

.shop-post-date {
  font-size: 12px;
  color: #666;
}

.load-more-container {
  text-align: center;
  padding: 16px;
}

.load-more-btn {
  padding: 12px 32px;
  background: #333;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
}

.load-more-btn:hover {
  background: #444;
}

.load-more-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.empty-message {
  text-align: center;
  padding: 48px 16px;
  color: #666;
}


/* ========================================
   32. LOADING
======================================== */

#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-restore-loading {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

#page-loader-user {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-restore-loading-user {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-secondary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.restore-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--bg-tertiary);
  border-top-color: #e91e63;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#app[v-cloak] {
  visibility: hidden;
}

#app[v-cloak] .page-restore-loading {
  visibility: visible;
}

/* ================================
   ひとことタブ
================================ */
.hitokoto-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  text-decoration: none;
  transition: background 0.2s;
}

.hitokoto-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.hitokoto-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hitokoto-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}
.hitokoto-content {
  flex: 1;
  min-width: 0;
}
.hitokoto-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 6px 0;
}
.hitokoto-bio {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  margin: 0;
  line-height: 1.5;
  word-break: break-word;
  white-space: pre-wrap;
}
.hitokoto-time {
  color: rgba(255,255,255,0.4);
  font-size: 11px;
  margin: 8px 0 0 0;
}
.hitokoto-empty {
  text-align: center;
  padding: 40px;
  color: #71767b;
}
.hitokoto-empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.hitokoto-spinner {
  font-size: 32px;
  margin-bottom: 16px;
}

/* ================================
   ストーリー閲覧者モーダル
================================ */
.story-view-count-clickable {
  position: relative;
  z-index: 100;
  cursor: pointer;
  transition: opacity 0.2s;
}
.story-view-count-clickable:hover {
  opacity: 0.8;
}
.story-viewers-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 10001;
}
.story-viewers-content {
  background: #1a1a1a;
  border-radius: 16px 16px 0 0;
  width: 100%;
  max-width: 500px;
  max-height: 60vh;
  display: flex;
  flex-direction: column;
}
.story-viewers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.story-viewers-header h3 {
  color: #fff;
  font-size: 16px;
  margin: 0;
}
.story-viewers-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}
.story-viewers-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}
.story-viewers-loading,
.story-viewers-empty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255,255,255,0.5);
}
.story-viewer-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  cursor: pointer;
  transition: background 0.2s;
}
.story-viewer-item:hover {
  background: rgba(255,255,255,0.05);
}
.story-viewer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(255,255,255,0.1);
}
.story-viewer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-viewer-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
}
.story-viewer-info {
  flex: 1;
  min-width: 0;
}
.story-viewer-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 2px 0;
}
.story-viewer-cast-label {
  background: #ec4899;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}
.story-viewer-time {
  color: rgba(255,255,255,0.4);
  font-size: 12px;
  margin: 0;
}

/* 閲覧者を見るボタン */
.story-viewers-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 12px;
  margin-left: 8px;
  cursor: pointer;
  position: relative;
  z-index: 1000;
}
.story-viewers-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* ボトムシートアニメーション */
.story-viewers-content {
  animation: slideUp 0.3s ease-out;
}
@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 画像拡大モーダル */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:0 auto;
}

.image-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
}

.image-modal-content {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin:0 auto;
}

.image-modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0px;
  transition: opacity 0.15s ease;
}

.image-modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-prev,
.image-modal-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-prev { left: 16px; }
.image-modal-next { right: 16px; }

.image-modal-counter {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  background: rgba(0, 0, 0, 0.5);
  padding: 8px 16px;
  border-radius: 20px;
  z-index: 10001;
}

/* ============================================
   PWAモード専用（ホームバー対応）
   ============================================ */

   @media (display-mode: standalone) {
    .bottom-nav {
      padding-bottom: calc(8px + env(safe-area-inset-bottom)) !important;
      height: auto !important;
      min-height: 45px !important;
    }
  
    .global-fab {
      bottom: calc(80px + env(safe-area-inset-bottom));
    }

    .fab-menu {
      bottom: calc(160px + env(safe-area-inset-bottom));
    }
  }
  
/* PWA戻るボタン */
.pwa-back-btn {
  display: none;
}

@media (display-mode: standalone) {
  .pwa-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: #fff;
    text-decoration: none;
    margin-right: 4px;
  }
}


.notifications-page { padding: 16px 0; max-width: 600px; margin: 0 auto; }
.notifications-page-title { font-size: 20px; margin-left :10px; margin-bottom: 20px; font-weight: bold; }
.notification-page-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px 10px 11px; background: var(--bg-primary); border-bottom: solid 1px var(--theme-border-light); box-shadow: 0 1px 3px rgba(0,0,0,0.1); cursor: pointer; transition: background 0.2s; }
.notification-page-item:hover { background: var(--bg-tertiary); }
.notification-page-item.unread { background: var(--bg-four); }
.notification-page-item.unread:hover { background: var(--bg-tertiary); }
.notification-page-avatar { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.notification-page-content { flex: 1; min-width: 0; }
.notification-page-text { margin: 0 0 4px 0; font-size: 14px; line-height: 1.5; color: var(--text-primary); }
.notification-page-text strong { color: var(--text-primary); }
.notification-page-time { font-size: 12px; color: var(--text-primary); }
.notifications-empty { text-align: center; padding: 60px 20px; color: var(--text-primary); }
.notifications-empty svg { margin-bottom: 16px; opacity: 0.5; }
.notification-user-label { font-size: 11px; background: #35516d; color:var(--text-primary); padding: 2px 6px; border-radius: 4px; margin-left: 6px; margin-right: 6px; }
.notification-user-label2 { font-size: 12px; background: none; color: var(--text-primary); padding: 2px 6px 2px!important; min-height: 10px; border-radius: 2px; margin-left: 6px; margin-right: 6px; }

/* ハッシュタグ */
.hashtag {
  color: #1d9bf0;
  text-decoration: none;
}

.hashtag:hover {
  text-decoration: underline;
}

/* タグ検索ページ */
.tag-header {
  padding: 20px 16px;
  text-align: center;
  border-bottom: 1px solid var(--theme-border);
}

.tag-title {
  font-size: 24px;
  color: #1d9bf0;
  margin: 0 0 8px;
}

.tag-count {
  color: #8899a6;
  font-size: 14px;
  margin: 0;
}

.tag-posts {
  padding: 0;
}

/* 人気タグ一覧 */
.popular-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 0;
}

.popular-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #223445;
  border-radius: 20px;
  text-decoration: none;
  transition: background 0.2s;
}

.popular-tag:hover {
  background: #2d4a5e;
}

.popular-tag-name {
  color: #1d9bf0;
  font-size: 15px;
  font-weight: 500;
}

.popular-tag-count {
  color: #8899a6;
  font-size: 12px;
}

.back-to-tags {
  padding: 20px 16px;
  text-align: center;
  border-top: 1px solid var(--theme-border);
}

.back-to-tags a {
  color: #8899a6;
  text-decoration: none;
  font-size: 14px;
}

.back-to-tags a:hover {
  color: #1d9bf0;
}

.popular-tags-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: #223445;
  border-radius: 20px;
  color: #1d9bf0;
  text-decoration: none;
  font-size: 14px;
}

.popular-tags-link:hover {
  background: #2d4a5e;
}

/* おすすめモーダル */
.recommend-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.8);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* リアクション展開メニュー */
.reaction-dropdown {
  position: relative;
  display: inline-block;
}

.reaction-toggle-btn {
  background: none;
  border: 1px solid #536471;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.2s;
}

.reaction-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #1d9bf0;
}

.reaction-menu {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #16181c;
  border: 1px solid #536471;
  border-radius: 20px;
  padding: 6px 4px;
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.reaction-menu button {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s;
}

.reaction-menu button:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.2);
}

/* 一覧用フォローボタン */
.follow-btn {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  background: #1d9bf0;
  border: none;
  color: #eee;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.follow-btn:hover {
  background: rgba(29, 155, 240, 0.1);
}
.follow-btn.following {
  background: transparent;
  border: solid 1px #536471;; 
  border-color: #536471;
  color: #e7e9ea;
}
.follow-btn.following:hover {
  border-color: #536471;
  color: #e7e9ea;
  background: transparent;
}

/* フォローされていますラベル */
.followed-by-label {
  font-size: 10px;
  color: #71767b;
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 8px;
  border-radius: 4px;
}

/* キャスト間ブロックボタン */
.block-button {
  width: 100%;
  padding: 10px 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
  border: 1px solid #71767b;
  color: #71767b;
  margin-top: 5px;
}
.block-button:hover {
  background: rgba(244, 33, 46, 0.1);
  border-color: #f4212e;
  color: #f4212e;
}
.block-button.is-blocked {
  background: rgba(244, 33, 46, 0.15);
  border-color: #f4212e;
  color: #f4212e;
}
.block-button.is-blocked:hover {
  background: transparent;
  border-color: #71767b;
  color: #71767b;
}

.profile-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: none;
  justify-content: flex-end;
  touch-action: none;
}

.profile-modal.is-open {
  display: flex;
}

.profile-modal.is-open {
  visibility: visible;
  pointer-events: auto;
}

html.modal-open,
body.modal-open {
  overflow: hidden !important;
}

.profile-modal-content {
  width: 100%;
  max-width: 600px;
  height: 100%;
  margin: 0 auto;
  background: var(--bg-primary);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.25s ease-out;
}

.profile-modal-content.slide-in {
  transform: translateX(0);
}

.profile-modal-header {
  position: sticky;
  top: 0;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-bottom: 1px solid var(--theme-border);
  z-index: 10;
}

.profile-modal-back {
  background: none;
  border: none;
  color: #fff;
  font-size: 20px;
  padding: 8px;
  cursor: pointer;
  margin-right: 16px;
}

.profile-modal-title {
  color: #eee;
  font-size: 18px;
  font-weight: bold;
}

.profile-modal-body {
  padding: 0;
}

.profile-modal-loading {
  text-align: center;
  padding: 60px 20px;
  color: #8899a6;
}

.profile-modal-loading i {
  font-size: 32px;
  margin-bottom: 12px;
  display: block;
}

.profile-modal-card {
  text-align: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--theme-border);
  margin-bottom: 20px;
}

.profile-modal-avatar {
  width: 100px;
  height: 100px;
  margin: 0 auto 16px;
}

.profile-modal-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.profile-modal-name {
  color: #fff;
  font-size: 22px;
  font-weight: bold;
  margin: 0 0 8px;
}

.profile-modal-job {
  color: #f472b6;
  font-size: 14px;
  margin: 0 0 8px;
}

.profile-modal-area {
  color: #8899a6;
  font-size: 14px;
  margin: 0 0 12px;
}

.profile-modal-area i {
  margin-right: 4px;
}

.profile-modal-bio {
  color: #e7e9ea;
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
  white-space: pre-wrap;
}

.profile-modal-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 20px;
}

.profile-modal-stat {
  text-align: center;
}

.profile-modal-stat .stat-count {
  display: block;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
}

.profile-modal-stat .stat-label {
  color: #8899a6;
  font-size: 12px;
}

.profile-modal-follow-btn {
  background: #f472b6;
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-modal-follow-btn:hover {
  background: #ec4899;
}

.profile-modal-follow-btn.is-following {
  background: transparent;
  border: 1px solid #8899a6;
  color: #fff;
}

.profile-modal-posts-title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0 0 16px;
}

.profile-modal-post {
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-modal-post:hover {
  background: #22303c;
}

.profile-modal-post-content {
  color: #e7e9ea;
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 8px;
}

.profile-modal-post-images img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.profile-modal-post-time {
  color: #8899a6;
  font-size: 12px;
}

.profile-modal-no-posts {
  text-align: center;
  color: #8899a6;
  padding: 20px;
}

.profile-modal-more {
  display: block;
  text-align: center;
  color: #1d9bf0;
  text-decoration: none;
  padding: 16px;
  font-size: 15px;
  border-top: 1px solid var(--theme-border);
  margin-top: 20px;
}

.profile-modal-more:hover {
  background: rgba(29, 155, 240, 0.1);
}

.profile-modal-more i {
  margin-left: 4px;
}

/* プロフィールモーダル - 本番デザイン */
.pm-container {
  position: relative;
}

.pm-header-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--bg-primary);
}

.pm-header-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-profile-section {
  display: flex;
  align-items: center;
  padding: 20px 15px 0;
  margin-bottom: 20px;
  position: relative;
}

.pm-profile-section .profile-header,
.pm-profile-section .profile-header_story,
.pm-profile-section .profile-header_story_check {
  display: flex;
  align-items: center;
}

.pm-profile-section .profile-header img,
.pm-profile-section .profile-header_story img,
.pm-profile-section .profile-header_story_check img {
  position: absolute;
  top: -45px;
  left: 15px;
  width: 90px !important;
  height: 90px !important;
  border-radius: 50%;
  padding: 4px;
  background: var(--bg-primary);
  object-fit: cover;
}

.pm-profile-section .profile-header_story img {
  background: linear-gradient(45deg, #FFC200 0%, #FFC200 30%, #FF1459 70%, #D300C5 100%);
}

.pm-profile-section .profile-header_story_check img {
  background: #71767b;
}

.pm-profile-info {
  margin-left: 100px;
}

.pm-name {
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 4px;
}

.pm-username {
  color: #71767b;
  font-size: 14px;
  margin: 0;
}

.pm-followed-badge {
  margin-left: 8px;
  font-size: 11px;
  color: #fff;
  background: #3b82f6;
  padding: 2px 8px;
  border-radius: 4px;
}

.pm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
}

.pm-meta-item {
  color: #e7e9ea;
  font-size: 13px;
}

.pm-meta-item svg {
  vertical-align: middle;
  margin-right: 4px;
}

.pm-size {
  padding: 0 16px 8px;
  color: #71767b;
  font-size: 13px;
}

.pm-bio {
  padding: 8px 16px 16px;
  color: #e7e9ea;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.pm-shops {
  padding: 0 16px 16px;
}

.pm-shops-label {
  color: #71767b;
  font-size: 13px;
  margin: 0 0 8px;
}

.pm-shop-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 12px;
  margin-bottom: 8px;
  text-decoration: none;
}

.pm-shop-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.pm-shop-logo-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--theme-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #71767b;
}

.pm-shop-info {
  flex: 1;
}

.pm-shop-name {
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.pm-shop-area {
  color: #71767b;
  font-size: 12px;
}

.pm-sns-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 0 16px 16px;
}

.pm-sns-icons {
  display: flex;
  gap: 8px;
}

.pm-sns-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  text-decoration: none;
}

.pm-sns-link-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
}

.pm-stats {
  display: flex;
  gap: 24px;
  padding: 0 16px 16px;
}

.pm-stat {
  display: flex;
  gap: 4px;
}

.pm-stat-count {
  color: #fff;
  font-weight: bold;
}

.pm-stat-label {
  color: #71767b;
}

.pm-actions {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.pm-follow-btn {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 50px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  background: #f472b6;
  color: #fff;
}

.pm-follow-btn.following {
  background: transparent;
  border: 1px solid #536471;
  color: #fff;
}

.pm-share-btn {
  padding: 10px 20px;
  border: 1px solid #536471;
  border-radius: 50px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.pm-visit-btn {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
  background: #1d9bf0;
  color: #fff;
  margin: 0 16px 16px;
  width: calc(100% - 32px);
}

.pm-visit-btn.visited {
  background: #22c55e;
}

.pm-visit-btn.ng {
  background: #6b7280;
}

.pm-visit-btn.pending {
  background: #3b82f6;
}

.pm-visit-btn:disabled {
  cursor: default;
}

.pm-visit-status {
  display: flex;
  gap: 8px;
  padding: 0 16px 16px;
}

.pm-visit-status .pm-visit-btn {
  flex: 1;
  margin: 0;
  width: auto;
}

.pm-visit-remove {
  padding: 12px 16px;
  border: 1px solid #536471;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.pm-schedule {
  padding: 0 16px 16px;
}

.pm-schedule-title {
  color: #fff;
  font-size: 15px;
  font-weight: bold;
  margin: 0 0 12px;
}

.pm-schedule-title i {
  margin-right: 8px;
  color: #f472b6;
}

.pm-schedule-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}

.pm-schedule-item {
  flex-shrink: 0;
  width: 60px;
  padding: 8px 4px;
  text-align: center;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.pm-schedule-item.has-schedule {
  background: #1e3a5f;
  border: 1px solid #3b82f6;
}

.pm-schedule-item.weekend .pm-schedule-day {
  color: #f472b6;
}

.pm-schedule-date {
  color: #fff;
  font-size: 13px;
  font-weight: bold;
}

.pm-schedule-day {
  color: #71767b;
  font-size: 11px;
  margin-bottom: 4px;
}

.pm-schedule-time {
  color: #3b82f6;
  font-size: 10px;
  line-height: 1.3;
}

.pm-schedule-sep {
  display: block;
}

.pm-next-day {
  color: #f472b6;
  font-size: 9px;
}

.pm-schedule-memo {
  color: #22c55e;
  font-size: 10px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pm-schedule-empty {
  color: #536471;
  font-size: 12px;
}

.pm-posts-section {
  border-top: 1px solid var(--theme-border);
  padding-top: 16px;
}

.pm-posts-title {
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  margin: 0 16px 16px;
}

.pm-post {
  border-bottom: 1px solid var(--theme-border);
  padding: 16px;
}

.pm-post-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.pm-post-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.pm-post-name {
  color: #fff;
  font-size: 14px;
  font-weight: bold;
}

.pm-post-time {
  color: #71767b;
  font-size: 13px;
  margin-left: 8px;
}

.pm-post-content {
  color: #e7e9ea;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
  word-break: break-word;
}

.pm-post-images {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
  border-radius: 12px;
}

.pm-post-images.single img {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 12px;
}

.pm-post-images img {
  height: 200px;
  border-radius: 12px;
  object-fit: cover;
  cursor: pointer;
}

.pm-post-video video {
  width: 100%;
  border-radius: 12px;
  margin-bottom: 12px;
}

.pm-post-actions {
  display: flex;
  gap: 24px;
}

.pm-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: #71767b;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.pm-action-btn.liked {
  color: #f91880;
}

.pm-action-btn i {
  font-size: 16px;
}

.pm-no-posts {
  text-align: center;
  padding: 40px 16px;
  color: #71767b;
}

.pm-more-link {
  display: block;
  text-align: center;
  padding: 16px;
  color: #1d9bf0;
  text-decoration: none;
  border-top: 1px solid var(--theme-border);
}

.pm-more-link:hover {
  background: rgba(29, 155, 240, 0.1);
}

.profile-modal-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 280px!important;
}

/* スワイプヒントアニメーション */
@keyframes swipeHintAnim {
  0%, 100% {
    transform: translateX(-50%);
  }
  50% {
    transform: translateX(-40%);
  }
}


.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.pagination-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid #38444d;
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
  background: rgba(29, 155, 240, 0.2);
  border-color: #1d9bf0;
}

.pagination-btn.active {
  background: #1d9bf0;
  border-color: #1d9bf0;
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pagination-dots {
  color: #71767b;
  padding: 0 4px;
}

.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px;
  margin-top: 16px;
}
.pagination-info {
  color: #8899a6;
  font-size: 14px;
}
.pagination-total {
  text-align: center;
  color: #71767b;
  font-size: 13px;
  padding: 8px 0 16px;
}

/* いいねパーティクルエフェクト */
.like-particle {
  position: fixed;
  pointer-events: none;
  font-size: 16px;
  z-index: 9999;
  animation: likeParticle 0.8s ease-out forwards;
}

@keyframes likeParticle {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.5);
  }
  50% {
    opacity: 1;
    transform: translate(calc(-50% + var(--tx) * 0.7), calc(-50% + var(--ty) * 0.7)) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.8);
  }
}