body {
  background-color: #121212;
  color: #fff;
  padding-top: 70px;
}


a {
  color: #f48fb1;
  text-decoration: underline;
}

a:hover {
  color: #ff80ab;
}


.navbar {
  font-family: 'ヒラギノ角ゴ Pro W3', 'Hiragino Kaku Gothic Pro', 'メイリオ', Meiryo, 'ＭＳ Ｐゴシック', "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 0.8rem;
}


.navbar {
  height: 50px !important;
  min-height: 50px !important;
  display: flex !important;
  align-items: center !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-color: #DF81A2 !important;
}

.container-fluid {
  height: 100% !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.navbar-brand {
  width: 80px !important;
  height: 50px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.navbar-brand img {
  height: 50px !important;
  width: auto !important;
  object-fit: contain;
}

.navbar-toggler {
  margin-right: 18px !important;
}

.navbar-collapse {
  background-color: #DF81A2 !important;
}

.navbar-nav .nav-link {
  color: #ffffff !important;
  text-decoration: none !important;
  padding-left: 15px !important;
  font-weight: bold !important;
  padding-right: 15px !important;
}

.navbar-nav .nav-link:hover {
  color: #f8f9fa !important;
}

.navbar-nav .nav-link:hover {
  color: #CA3C6E !important;
}

.dropdown-item {
  padding-left: 15px;
    font-size: 0.85em !important;
  padding-right: 15px;
}

.dropdown-item:hover {
  color: #DF81A2 !important;
  background-color: #ffffff !important;
}


@media (max-width: 991px) {
  .navbar-collapse.show .dropdown-menu {
    background-color: #DF81A2 !important;
  }


  .navbar-collapse.show .dropdown-menu .dropdown-item {
    color: #ffffff !important; 
    background-color: transparent !important; 
  }

  .navbar-collapse.show .dropdown-menu .dropdown-item:hover {
    color: #ffffff !important;
    background-color: transparent !important;
  }
  .navbar-collapse.show .dropdown-menu .dropdown-item {
    font-size: 0.8em !important;
  }
}




/*---------------------*/
/* 投稿表示モーダル周り */
/*---------------------*/
#viewModal {
  text-align: center;
}
#viewModal .modal-dialog {
  display: inline-block;
  margin: auto;
  max-width: 95vw;
  width: auto;
}
.modal-content {
  width: auto;
  max-width: none;
}

.modal-body {
  display: block;
  width: 100%;
  max-width: none !important;
  padding: 1rem; 
}

.modal-dialog {
  display: inline-block;
  margin: auto;
  max-width: 95vw;
  width: auto;
}

#modalImage {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  object-fit: contain;
  max-width: none;
}


#customModalDialog {
  margin: auto !important;
  width: auto !important;
  max-width: 100vw !important;
}


#modalImageWrapper {
  width: 100%;
  position: relative;
  min-height: 200px;
}
#modalMediaContainer{
  width: 100%;
}


.text-danger {
  color: #f48fb1 !important;
}



#overlayImage {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: all;
  object-fit: cover;
}



#modalMediaContainer img,
#modalMediaContainer video {
  display: block;
  margin: 0 auto;
  width: 100%; 
  height: auto;
  max-width: none;
  object-fit: contain;
}


.modal-meta p {
  margin-bottom: 4px;
  line-height: 1.3;
}


.audio-wave {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4px;
  height: 30px;
  margin-top: 10px;
}

.wave-bar {
  width: 4px;
  height: 20%;
  background-color: #ff6f61;
  transition: height 0.2s;
}

.wave-bar.animate {
  animation: wave 1s infinite ease-in-out;
}

.wave-bar.animate:nth-child(1) { animation-delay: 0s; }
.wave-bar.animate:nth-child(2) { animation-delay: 0.2s; }
.wave-bar.animate:nth-child(3) { animation-delay: 0.4s; }
.wave-bar.animate:nth-child(4) { animation-delay: 0.6s; }
.wave-bar.animate:nth-child(5) { animation-delay: 0.8s; }
.wave-bar.animate:nth-child(6) { animation-delay: 1.0s; }
.wave-bar.animate:nth-child(7) { animation-delay: 1.2s; }
.wave-bar.animate:nth-child(8) { animation-delay: 1.4s; }

@keyframes wave {
  0%, 100% { height: 20%; }
  50% { height: 100%; }
}



/*------投稿モーダル------*/
#postModal .modal-dialog {
  display: block;
  margin: auto;
  max-width: 600px;
  width: 100%;
}

/*---------------------*/


.gallery-container {
  padding: 20px;
}



.modal-content {
  background: linear-gradient(to bottom, #1c1c1c, #2c2c2c);
  color: #f5f5f5;
}


.modal-body p,
.modal-body div,
.modal-footer,
.modal-title {
  color: #e0e0e0 !important;
}


.post-modal-submit {
  background-color: #ec407a;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 1rem;
  transition: background-color 0.2s ease-in-out, box-shadow 0.2s;
}

.post-modal-submit:hover {
  background-color: #e91e63;
  box-shadow: 0 0 8px rgba(240, 98, 146, 0.5);
  cursor: pointer;
}



#reactionStats {
  font-weight: bold;
  color: #ff88cc;
}

#modalTags span {
  color: #000 !important;
}

.btn-close {
  filter: invert(1);
}

.reaction-btn {
  background-color: transparent;
  border: 1px solid #ff4da6;
  color: #ffb3d9;
  transition: all 0.2s ease-in-out;
  pointer-events: auto;
  z-index: 100;
}

/* hover時だけピンクにする */
.reaction-btn:hover {
  background-color: #ff4da6;
  color: #000;
  box-shadow: 0 0 8px #ff4da6;
  border: 1px solid #ff4da6;
}

/* disabled時 */
.reaction-btn:disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* disabled + hover無効化 */
.reaction-btn:disabled:hover {
  background-color: transparent;
  color: #ffb3d9;
  box-shadow: none;
}




.reaction-btn.reacted {
  background-color: #c2185b;
  color: white;
  border-color: #ff80bf;
}


.main-content {
  margin-top: 20px;
}

.main-image {
  width: 100%;
  max-width: 800px;
  margin-bottom: 20px;
}



.navbar {
  background-color: #DF81A2 !important;
}

.navbar .btn-outline-light:hover {
  background-color: #ffff22;
  color: #fff;
}

.gender-filter {
  min-width: 100px;
  font-size: 0.85rem;
}


/* 投稿カード */
.card {
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-card {
  background-color: #2a2a2a; 
  color: #f0f0f0;
  padding: 10px;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 8px rgba(236, 64, 122, 0.2); 
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 0 12px rgba(236, 64, 122, 0.4); 
  cursor: pointer;
}

.post-thumbnail {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}


.media-icon {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: rgba(0, 0, 0, 0.6);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 1rem;
}

.countdown-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ec407a;
  color: white;
  padding: 2px 8px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: bold;
  z-index: 10;
}

.post-meta {
  font-size: 0.9rem;
  line-height: 1.4;
}


.text-muted.small {
  color: #e0e0e0 !important;
  font-size: 14px;
  font-weight: 500;
}


.floating-post-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #ec407a;
  color: white;
  padding: 12px 20px;
  font-size: 1.1rem;
  border: none;
  border-radius: 50px;
  box-shadow: 0 0 10px rgba(236, 64, 122, 0.3);
  z-index: 1000;
  transition: all 0.2s ease-in-out;
  animation: pulse 3s infinite;
}

.floating-post-btn:hover {
  background-color: #e91e63; 
  transform: scale(1.05);
  box-shadow: 0 0 12px rgba(233, 30, 99, 0.6);
  cursor: pointer;
}

@keyframes pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(236, 64, 122, 0.4); }
  70%  { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(236, 64, 122, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(236, 64, 122, 0); }
}



.floating-post-btn {
  animation: pulse 3s infinite;
}

.post-thumbnail-wrapper {
  position: relative;
}

.video-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  width: 100%;
  height: 100%;
}


.play-button {
  width: 64px;
  height: 64px;
  background-color: rgba(0, 0, 0, 0.7); 
  border-radius: 50%;
  position: relative;
}

.play-button::before {
  content: '';
  position: absolute;
  left: 22px; 
  top: 18px;
  width: 0;
  height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 20px solid white;
}



/*-----------aboutまわり--------------------*/
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease forwards;
}

.fade-in.delay-1 {
  animation-delay: 0.5s;
}

.fade-in.delay-2 {
  animation-delay: 1.0s;
}

.fade-in.delay-3 {
  animation-delay: 1.5s;
}

.fade-in.delay-4 {
  animation-delay: 2.0s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.imamise-em {
  color: #f48fb1;
  font-weight: 600;
}

/*-----------------------------------*/


/*---削除モーダル--------------------------------*/
#deleteModal .modal-dialog {
  display: block !important;
  margin: 1.75rem auto;
  max-width: 500px;
}

/*---投稿カードの削除ボタン--------------------------------*/
/* スマホ以外では hover 表示 */
@media (hover: hover) {
  .post-card .dropdown {
    display: none;
    z-index: 10;
  }

  .post-card:hover .dropdown {
    display: block;
  }
}

@media (hover: none) {
  .post-card .dropdown {
    display: block;
    z-index: 10;
  }
}

.post-card .dropdown-toggle {
  opacity: 0.7;
  transition: opacity 0.2s;
}

.post-card:hover .dropdown-toggle {
  opacity: 1;
}

.post-card .dropdown-toggle {
  border-radius: 8px 0 0 0;
}
/*-----------------------------------*/


/*---ページネーション--------------------------------*/
.pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin: 30px 0;
  gap: 8px;
}

.pagination a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: #2a2a2a;
  color: #fff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background-color 0.3s, transform 0.2s;
  border: 1px solid #555;
}

.pagination a:hover {
  background-color: #f48fb1;
  transform: scale(1.1);
}

.pagination a.current {
  background-color: #f48fb1;
  color: #fff;
  font-weight: bold;
  border: 1px solid #f48fb1;
}

.pagination a.prev,
.pagination a.next {
  background-color: #444;
  font-size: 1.3rem;
  padding: 0;
}

.pagination a.prev:hover,
.pagination a.next:hover {
  background-color: #f48fb1;
}
/*-----------------------------------*/

/*---aboutボタン--------------------------------*/
.imamise-link-container {
  text-align: center;
  margin: 20px 0;
}

.empty-message {
  font-size: 1.4rem;
  line-height: 1.8;
  color: #ddd;
  margin-bottom: 20px;
  animation: fadeIn 1.5s ease;
  font-weight: 400;
}

.imamise-link-btn {
  display: inline-block;
  background-color: #111;
  color: #ffb3d9;
  border: 2px solid #ff4da6;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 77, 166, 0.3);
}

.imamise-link-btn:hover {
  background-color: #ff4da6;
  color: #000;
  box-shadow: 0 0 15px rgba(255, 77, 166, 0.7);
  transform: scale(1.08);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* チャットへの誘い表示 */
.invite-glow-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("img/invite.webp") center center no-repeat;
  background-size: cover;
  pointer-events: none; /* これでクリック無効化 */
  z-index: 2;
  opacity: 0.5; /* お好みで調整（0.5〜0.9） */
  border-radius: 0.5rem; /* 投稿カードに合わせるなら */
}

#inviteRoomModal .modal-dialog {
  display: flex;
  align-items: center;
  justify-content: center; /* これで左右中央揃え */
  min-height: 100vh;
  margin: auto;
}

/* ---- 部屋作成モーダル部分 ---- */
.btn-mirare {
  background-color: #D36B8B !important;
  color: #F0F0F0 !important;
  border: 2px solid #D36B8B !important;
  border-radius: 6px !important;
  font-size: 1rem !important;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease !important;
}

.btn-mirare:hover {
  background-color: #ec407a !important;
  border-color: #ec407a !important;
}

.btn-mirare:focus, .btn-mirare:active {
  outline: none !important;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3) !important;
}


/* ---- 招待バナー全体 ---- */
.invitation-banner {
  background: linear-gradient(135deg, #e91e63, #9c27b0);
  color: #fff;
  text-align: center;
  padding: 20px;
  margin: 20px auto;
  border-radius: 20px;
  max-width: 440px;
  box-shadow: 0 0 15px rgba(255, 64, 129, 0.5);
  animation: pulseGlow 2s ease-in-out infinite;
}

/* ---- メッセージ部分 ---- */
.invite-message {
  font-size: 1.2rem;
  font-weight: bold;
  margin-bottom: 12px;
}

/* ---- ボタン部分 ---- */
.invite-btn {
  display: inline-block;
  background: #fff;
  color: #e91e63;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
}
.invite-btn:hover {
  background: #f8bbd0;
  color: #880e4f;
}

/* ---- 背景光るアニメーション ---- */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 15px rgba(255, 64, 129, 0.4); }
  50% { box-shadow: 0 0 30px rgba(255, 64, 129, 0.9); }
  100% { box-shadow: 0 0 15px rgba(255, 64, 129, 0.4); }
}

.wild-banner {
  background-color: #2a0000;
  padding: 16px;
  border: 2px solid #e53935;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(229, 57, 53, 0.5);
  margin: 30px auto;
  max-width: 600px;
}

.wild-link {
  color: #ff4d4d;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

.wild-link:hover {
  color: #fff;
  transform: scale(1.05);
}
