@charset "utf-8";

/* ==========================================================
 * ルーム詳細ページ「投稿する」追従ボタン（2026.10）
 * 右下のページトップボタンと左右対称の位置に配置
 * ========================================================== */
.community-post-btn{
  position: fixed;
  left: 40px;
  bottom: 40px;
  z-index: 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  box-sizing: border-box;
  width: 100px;
  height: 100px;
  margin: 0;
  padding: 0;
  border: 2px solid #634F32;
  border-radius: 50%;
  background: #FF0;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
  color: #634F32;
  font-family: inherit;
  font-size: 15px;
  font-weight: bold;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  -webkit-appearance: none;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}
.community-post-btn.is-show{
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.community-post-btn:hover{
  opacity: 0.8;
}
.community-post-btn:focus-visible{
  outline: 3px solid #005BAC;
  outline-offset: 3px;
}
.community-post-btn__icon{
  display: block;
  width: 30px;
  height: 30px;
}
.community-post-btn__icon svg{
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}
.community-post-btn__text{
  display: block;
  letter-spacing: 0.05em;
}

@media screen and (max-width: 740px){
  .community-post-btn{
    left: 20px;
    bottom: 40px;
    gap: 3px;
    width: 76px;
    height: 76px;
    font-size: 12px;
  }
  .community-post-btn__icon{
    width: 22px;
    height: 22px;
  }
  /* タッチ端末では hover の半透明を残さない */
  .community-post-btn:hover{
    opacity: 1;
  }
}
