@charset "UTF-8";

:root {
  --font_family1: Arial, "ヒラギノ角ゴ ProN W3", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
  --font_family2: Arial, "Hiragino Sans", "ヒラギノ角ゴ ProN", "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, "メイリオ", Meiryo, sans-serif;
  --font_family3: "Times New Roman", "游明朝", "Yu Mincho", "游明朝体", "YuMincho", "ヒラギノ明朝 Pro W3", "Hiragino Mincho Pro", "HiraMinProN-W3", "HGS明朝E", "ＭＳ Ｐ明朝", "MS PMincho", serif;
  --font_family4: Arial, "Patrick Hand", "Hiragino Kaku Gothic ProN", "メイリオ", Meiryo, sans-serif;
}

/* 管理画面用 */
/*--------------------------------------------------------------
chat box profile frame
--------------------------------------------------------------*/
#chat-box-profile-frame {
  display: block;
  position: fixed;
  top: 0px;
  padding: 0;
  margin: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  background-color: #252222;
  z-index: 3007;
  transition: left 0.6s ease-in-out;
  overflow-y: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

#chat-box-profile-frame .profile-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#chat-box-profile-frame .profile-area .account-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0;
  cursor: pointer;
  border: 2px solid #ccc;
  transition: border-color 0.3s;
}

#chat-box-profile-frame .profile-area .account-icon:hover {
  border-color: #0073aa;
}

#chat-box-profile-frame .profile-area .account-icon img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
}

#chat-box-profile-frame .profile-area #profile-account {
  margin-top: 0.75rem;
  font-weight: bold;
  font-size: 14px;
}

#chat-box-profile-frame .profile-area #profile-text {
  margin-top: 0.25rem;
  font-size: 14px;
  color: #555;
}

#chat-box-profile-frame #profile-frame-close {
  background-color: #0073aa;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.5rem 1.2rem;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

#chat-box-profile-frame #profile-frame-close:hover {
  background-color: #005d8f;
}

/*--------------------------------------------------------------
chat box post frame
--------------------------------------------------------------*/
#chat-box-post-frame {
  position: absolute;
  top: 70px;
  width: 100%;
  background: none;
  padding: 8px;
  z-index: 0;
  display: flex;
  flex-direction: column;
  z-index: 3004;
}

#chat-box-post-frame #chat-box-message-input-frame {
  display: flex;
}

#chat-box-post-frame #chat-box-message-input-frame #chat-box-user-frame {
  display: block;
}

#chat-box-post-frame #chat-box-message-input-frame #chat-box-user-frame #btn-chat-box-image-select {
  margin: 0;
  padding: 0;
  width: 68px;
  height: 38px;
}

#chat-box-post-frame #chat-box-message-input-frame #chat-box-user-frame #btn-chat-box-image-select img {
  margin: 8px;
  padding: 0;
  width: 50px;
  max-width: none;
  /* 円形にするために高さも指定 */
  border-radius: 50%;
  /* 丸にする */
  border: 2px solid #ccc;
  /* 好みの枠線色と太さ */
  -o-object-fit: cover;
  object-fit: cover;
  /* 画像が枠内に収まるように調整 */
}

#chat-box-post-frame #chat-box-message-input-frame #chat-box-user-frame #chat-box-user-name {
  margin: 0;
  margin-top: 20px;
  padding: 0;
  height: 20px;
  font-size: 14px;
  text-align: center;
}

#chat-box-post-frame #chat-box-message-input-frame #chat-box-message-input {
  flex: 1;
  resize: none;
  min-height: 80px;
  padding: 0.75rem;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  line-height: 1.4;
  background-color: #f9f9f9;
}

#chat-box-post-frame #chat-box-message-input-frame #chat-box-message-input:focus {
  outline: none;
  border-color: #0073aa;
  background-color: #fff;
}

#chat-box-post-frame #chat-box-post-input-frame {
  text-align: center;
  margin: 8px;
}

#chat-box-post-frame #chat-box-post-input-frame #btn-chat-box-send-message {
  border-radius: 50vh;
  color: #faf8f8;
  background: rgb(15, 15, 15);
  padding: 4px;
  width: 200px;
  cursor: pointer;
  color: #ccc;
}

#chat-box-post-frame #chat-box-post-input-frame #btn-chat-box-send-message:hover {
  background: rgb(31, 30, 31);
}

#chat-box-post-frame #chat-box-image-upload-frame {
  text-align: center;
}

#chat-box-post-frame #chat-box-image-upload-frame label {
  display: inline-block;
  width: 48px;
  height: 48px;
  cursor: pointer;
}

#chat-box-post-frame #chat-box-image-upload-frame label svg {
  width: 100%;
  height: 100%;
  fill: #666;
  transition: fill 0.3s;
}

#chat-box-post-frame #chat-box-image-upload-frame label svg:hover {
  fill: #0073aa;
}

#chat-box-post-frame #chat-box-image-upload-frame #chat-box-file-name {
  margin-top: 0.5rem;
  font-size: 14px;
  color: #555;
}

/*--------------------------------------------------------------
chat box main frame
--------------------------------------------------------------*/
#chat-box-main-frame {
  display: block;
  position: relative;
  top: 0px;
  width: 100vw;
  height: 100vh;
  background-color: #3e4141;
  display: block;
  position: fixed;
  left: -100vw;
  width: 100vw;
  height: calc(100vh - env(safe-area-inset-bottom) + env(safe-area-inset-top));
  height: -webkit-fill-available;
  margin: 0px;
  touch-action: manipulation;
  z-index: 3003;
  background-color: rgba(13, 13, 14, 0);
}

#chat-box-main-frame .chat-box-container {
  display: block;
  position: absolute;
  width: 100vw;
  height: 100vh;
  height: calc(100vh - env(safe-area-inset-bottom) + env(safe-area-inset-top));
  background: url(./assets/images/box_bg.jpg) repeat;
}

#chat-box-main-frame .chat-box-container #chat-box-window {
  overflow-y: scroll;
  -ms-overflow-style: none;
  scrollbar-width: none;
  padding-top: 160px;
  padding-bottom: 300px;
  background: linear-gradient(-50deg, rgba(80, 80, 80, 0.8), rgba(201, 198, 198, 0.8), rgba(49, 49, 49, 0.8), rgba(153, 153, 153, 0.8));
  background-size: 400% 400%;
  animation: gradient 9.5s ease infinite;
}

#chat-box-main-frame .chat-box-container #chat-box-window::-webkit-scrollbar {
  display: none;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame {
  display: block;
  position: relative;
  overflow-y: auto;
  height: 100vh;
  height: calc(100vh - env(safe-area-inset-bottom) + env(safe-area-inset-top));
  padding-top: 8px;
  padding-bottom: 160px;
  padding-top: 30px;
  padding-bottom: 300px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table {
  display: block;
  margin-left: 8px;
  margin-right: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 0.5rem;
  /* 親要素の幅に合わせる */
  table-layout: auto;
  /* デフォルトの列幅調整を適用 */
  border-collapse: collapse;
  /* 境界線を重ねる */
  border-bottom: 1px solid #fcfdfd;
  margin-bottom: 16px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr td {
  color: black;
  vertical-align: top;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr td .like-button {
  border: none;
  color: #555;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr td .media-image {
  width: 80%;
  border-radius: 0%;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:first-child {
  /* 色や太さは好みで調整 */
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:first-child td:nth-child(1) .user-icon {
  margin: 8px;
  width: 60px;
  max-width: none;
  /* 円形にするために高さも指定 */
  border-radius: 50%;
  /* 丸にする */
  border: 2px solid #ccc;
  /* 好みの枠線色と太さ */
  -o-object-fit: cover;
  object-fit: cover;
  /* 画像が枠内に収まるように調整 */
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:first-child td:nth-child(2) {
  padding-left: 8px;
  width: 140px;
  font-size: 14px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:first-child td:nth-child(3) {
  width: 110px;
  font-size: 8px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:first-child td:nth-child(4) {
  width: auto;
  text-align: right;
  font-size: 14px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:first-child td:nth-child(4) svg {
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  fill: rgb(77, 75, 75);
  cursor: pointer;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:nth-child(2) td {
  padding-left: 26px;
  word-wrap: break-word;
  /* はみ出す単語を改行 */
  word-break: break-word;
  /* 長い単語を改行 */
  white-space: normal;
  /* テキストの改行を許可 */
  width: 100%;
  font-size: 14px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:nth-child(3) td {
  font-size: 14px;
  padding-top: 30px;
}

#chat-box-main-frame .chat-box-container #chat-box-window #chat-box-post-list-frame table tr:nth-child(3) td svg {
  width: 12px;
  height: 12px;
  margin: 0;
  padding: 0;
  fill: rgb(145, 141, 141);
  cursor: pointer;
}

@media screen and (min-width: 768px) {
  #chat-box-main-frame .chat-box-container {
    min-width: 800px;
    max-width: 800px;
  }
}

.heart-wrapper {
  display: inline-block;
  margin-left: 5px;
  position: relative;
}

.heart-pop {
  animation: pop 0.5s ease-out forwards;
}

@keyframes pop {
  0% {
    transform: scale(3) translateY(0);
  }

  50% {
    transform: scale(0.5) translateY(0);
  }

  100% {
    transform: scale(1) translateY(0);
  }
}

/*--------------------------------------------------------------
  v2 修正: 旧 flipbook 用の !important 上書きをすべて削除し、
           g-page-v2 同形の左スライド挙動に統一
  （元々は #chat-box-profile-frame, .navbar-head を display:none、
    #chat-box-post-frame と #chat-box-main-frame を position:relative
    に強制していたが、v2 では本来の挙動を使う）
----------------------------------------------------------------*/
#chat-box-main-frame {
  transition: left 0.6s ease-in-out;
}

#chat-box-main-frame.active {
  left: 0 !important;
}

/*--------------------------------------------------------------
  image-select frame（g-page-v2 同形のスライドモーダル）
  オーバーレイ + 中央の白パネル 兼用セレクタ
----------------------------------------------------------------*/
.image-select-frame {
  display: block;
  position: fixed;
  top: 0;
  left: -100vw;
  width: 100vw;
  height: 100vh;
  z-index: 3008;
  background-color: rgba(13, 13, 14, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: left 0.3s ease-out;
}
.image-select-frame.active {
  left: 0;
}

/* 二段目宣言: 内側パネル（g-page-v2 と同じく単一要素を兼用） */
.image-select-frame {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  background-color: #ffffff;
  color: #0f1419;
  width: 100%;
  max-width: 400px;
  margin: 40px auto;
  border-radius: 16px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid #eff3f4;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 80vh;
  box-sizing: border-box;
}
.image-select-frame *,
.image-select-frame *::before,
.image-select-frame *::after {
  box-sizing: border-box;
}

.image-select-frame .navbar-head {
  background-color: #ffffff;
  border-bottom: 1px solid #eff3f4;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}
.image-select-frame .navbar-head svg:first-child {
  width: 32px;
  height: 32px;
  fill: #e63946;
  margin-right: 12px;
}
.image-select-frame .navbar-head #btn-image-select-close {
  width: 24px;
  height: 24px;
  fill: #536471;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: background 0.2s, fill 0.2s;
  margin-left: auto;
}
.image-select-frame .navbar-head #btn-image-select-close:hover {
  background-color: rgba(15, 20, 25, 0.1);
  fill: #0f1419;
}

.image-select-frame .name-input-container {
  padding: 20px 20px 10px;
  background-color: #ffffff;
  flex-shrink: 0;
}
.image-select-frame .name-input-container label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #0f1419;
  margin-bottom: 8px;
}
.image-select-frame .name-input-container input[type=text] {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #eff3f4;
  border-radius: 8px;
  font-size: 15px;
  color: #0f1419;
  outline: none;
  transition: border-color 0.2s, background-color 0.2s;
  background-color: #f7f9fa;
  font-family: inherit;
}
.image-select-frame .name-input-container input[type=text]::placeholder {
  color: #8a99a8;
}
.image-select-frame .name-input-container input[type=text]:focus {
  border-color: #e63946;
  background-color: #ffffff;
}

.image-select-frame #image-select-gallery {
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 16px;
  overflow-y: auto;
  flex-grow: 1;
}
.image-select-frame #image-select-gallery::-webkit-scrollbar {
  width: 6px;
}
.image-select-frame #image-select-gallery::-webkit-scrollbar-track {
  background: transparent;
}
.image-select-frame #image-select-gallery::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: content-box;
}
.image-select-frame #image-select-gallery img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s;
  background-color: #f7f9fa;
}
.image-select-frame #image-select-gallery img:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1;
}
.image-select-frame #image-select-gallery img:active {
  transform: scale(0.95);
  border-color: #e63946;
}

@media (max-width: 480px) {
  .image-select-frame {
    width: 100%;
    height: 100vh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .image-select-frame #image-select-gallery {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 40px;
  }
}

/*# sourceMappingURL=style.css.map */