@charset "utf-8";

/* =========================================================
= 基本（HTML / Body / 汎用）
========================================================= */
html {
  touch-action: pan-x pan-y; /* ピンチズームを無効化、スクロールは許可 */
  scroll-padding-top: 100px;
}
body {
  position: relative;
  width: 100%;
  max-width: 100%;
  font: 14px/2 "Open sans", sans-serif;
  letter-spacing: 0.05em;
  background: #ff6388;
  touch-action: pan-x pan-y; /* ピンチズームを無効化、スクロールは許可 */
}
a {
  text-decoration: none;
  color: inherit;
}
a img {
  border-style: none;
}
img {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  /* その他（プレフィックス付きのコールアウト無効） */
  -webkit-touch-callout: none;
  -moz-touch-callout: none;
}


/* =========================================================
= ローディング
========================================================= */
#loading {
  display: flex;
  position: fixed;
  inset: 0 0 0 0;
  z-index: 9999;
  width: 100vw;
  height: 100lvh;
  align-items: center;
  justify-content: center;
  font: 14px/2 "Open sans", sans-serif;
  background: center url("../img/bg_player.png");
  background-size: cover;
  transition: all 1s;
}
.loader {
  position: absolute;
  inset: 0;
  width: 75vw;
  height: 64vw;
  margin: auto;
}
.loader-boy {
  display: block;
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
}
.loader-fairy {
  position: absolute;
  top: -8%;
  left: 20%;
  z-index: 0;
  width: 80%;
  height: 100%;
  box-sizing: border-box;
  border-bottom: 3px solid #fff0dd;
  border-radius: 50%;
  transform: rotateX(80deg) rotateY(15deg) rotateZ(200deg);
  animation: loader-fairy 1s linear infinite;
}
.loader-text {
  display: flex;
  position: relative;
  bottom: 6vw;
  justify-content: center;
  font-size: 26px;
  letter-spacing: 0.1em;
  color: #fff0dd;
}
.loader-text span {
  opacity: 1;
  animation: loader-text 1.5s infinite;
}
.loader-text span:nth-child(1) { animation-delay: 0.1s; }
.loader-text span:nth-child(2) { animation-delay: 0.2s; }
.loader-text span:nth-child(3) { animation-delay: 0.3s; }
.loader-text span:nth-child(4) { animation-delay: 0.4s; }
.loader-text span:nth-child(5) { animation-delay: 0.5s; }
.loader-text span:nth-child(6) { animation-delay: 0.6s; }
.loader-text span:nth-child(7) { animation-delay: 0.7s; }
.loader-text span:nth-child(8) { animation-delay: 0.8s; }
.loader-text span:nth-child(9) { animation-delay: 0.9s; }
.loader-text span:nth-child(10) { animation-delay: 1.0s; }
.loader-text span:nth-child(11) { animation-delay: 1.1s; }
.loaded {
  visibility: hidden;
  opacity: 0;
}


/* =========================================================
= プレイリスト（全体・リスト・情報バー・ナビ）
========================================================= */
/* プレイリスト：全体 */
#playlist {
  display: flex;
  position: fixed;
  top: 100%;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: no-repeat center center url("../img/bg_playlist.png");
  background-size: cover;
  transition: top 0.5s ease;
  flex-direction: column;
  justify-content: flex-start;
}
#playlist.is-open {
  top: 0;
}

/* プレイリスト：リスト */
.playlist-list {
  display: block;
  box-sizing: border-box;
  width: 100%;
  margin: 24.4vw 0 31vw;
  padding: 6vw 10vw 18vw;
  overflow-y: auto;
  flex: 1 1 auto;
}
.playlist-item {
  display: flex;
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 3vw;
  background: none;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
  align-items: center;
}
.playlist-item.is-active {
  background: rgba(255, 240, 221, 0.08);
  box-shadow: 0 0 0 1px #e6cba8;
}
.playlist-thumb {
  display: block;
  width: 40px;
  height: 40px;
  margin-right: 3vw;
  border-radius: 5px;
  object-fit: cover;
}
.playlist-info-text {
  display: flex;
  width: 50%;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
}
.playlist-title {
  display: block;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff0dd;
}
.playlist-desc {
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff0ddb4;
}
.playlist-number {
  margin-left: 3vw;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: #fff0dd;
}

/* プレイリスト：下部情報バー */
.playlist-info-bar {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 25vw;
  left: 0;
  z-index: 10;
  box-sizing: border-box;
  width: 77vw;
  height: 18vw;
  margin: 0 auto;
  padding: 3vw;
  background: no-repeat center center url("../img/playlist_info.png");
  background-size: contain;
  align-items: center;
  pointer-events: none;
}
.playlist-info-thumb {
  display: block;
  width: 40px;
  height: 40px;
  margin-right: 3vw;
  border-radius: 5px;
  object-fit: cover;
}
.playlist-info-bar-text {
  display: flex;
  width: 50%;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: center;
}
.playlist-info-bar-title {
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.03em;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff0dd;
}
.playlist-info-bar-desc {
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #fff0ddb4;
}
.playlist-info-play {
  display: block;
  width: 3.6vw;
  height: auto;
  margin-left: 3vw;
}

/* プレイリスト：ナビ */
.playlist-nav {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.playlist-nav-bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.playlist-nav-buttons {
  display: flex;
  position: absolute;
  left: 0;
  bottom: 11vw;
  z-index: 20;
  width: 100vw;
  align-items: center;
  justify-content: center;
}
.playlist-nav-home,
.playlist-nav-prev,
.playlist-nav-play,
.playlist-nav-next,
.playlist-nav-close {
  position: relative;
  margin: 0 5.2vw;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.2s;
}
.playlist-nav-home,
.playlist-nav-prev,
.playlist-nav-play,
.playlist-nav-next {
  filter: brightness(0.55);
}
.playlist-nav-close {
  pointer-events: all;
}
.playlist-nav-close::before {
  position: absolute;
  right: 0;
  bottom: -3.8vw;
  left: 0;
  display: block;
  width: 1vw;
  height: 1vw;
  margin: auto;
  background: #fff0dd;
  border-radius: 50%;
  content: "";
}
.playlist-nav-prev {
  transform: rotate(180deg);
}
.playlist-nav-buttons img {
  display: block;
  width: 5vw;
  height: auto;
  filter: drop-shadow(0 2px 8px #e94e7a44);
}


/* =========================================================
= ヘッダー（プレイリスト上部画像）
========================================================= */
.playlist-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  pointer-events: none;
}
.playlist-header-bg {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.playlist-header-close {
  position: absolute;
  top: 14.2vw;
  left: 14.2vw;
  display: block;
  width: 4vw;
  height: auto;
  pointer-events: all;
}
.playlist-header-title {
  position: absolute;
  top: 11.5vw;
  right: 0;
  left: 0;
  display: block;
  width: 40vw;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}


/* =========================================================
= メインプレイヤー（背景・スライダー・スクロールボックス・進捗・ナビ）
========================================================= */
.main-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  overflow: hidden;
}
.player {
  position: relative;
}

/* 背景画像 */
.bg-player,
.bg-detail {
  z-index: 1;
}
.bg-player img,
.bg-detail img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}

/* ハート演出 */
.bg-heart {
  position: absolute;
  top: 0;
  z-index: 2;
  width: 100%;
  height: 100lvh;
}
.heart {
  position: fixed;
  bottom: -120px;
  opacity: 1;
  filter: drop-shadow(0 0 0 #fff0dd);
  pointer-events: none;
  user-select: none;
  animation-name: floatUp, fadeOut;
  animation-duration: 0s, 0s; /* 値は元のまま（未指定はCSSの初期値扱い） */
  animation-timing-function: linear, linear;
  animation-delay: 0s, 0s;
  animation-iteration-count: 1, 1;
  animation-direction: normal, normal;
  animation-fill-mode: forwards, none;
  animation-play-state: running, running;
  will-change: transform, opacity;
}

/* ディスク背景 */
.bg-disc {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: 100%;
}
.disc {
  position: absolute;
  height: auto;
}
.disc1 img {
  position: absolute;
  top: -48vw;
  left: -48vw;
  width: 96.5%;
}
.disc1::before {
  position: absolute;
  top: -46.5vw;
  left: -45.5vw;
  width: 96.5%;
}
.disc2 img {
  position: absolute;
  top: -49vw;
  right: -48.5vw;
  width: 97%;
}
.disc2::before {
  position: absolute;
  top: -46.5vw;
  right: -50vw;
  width: 97%;
}
.bg-disc::before {
  position: absolute;
  z-index: 0;
  background-image: url('../img/bg_disc_shadow.png');
  background-position: center;
  background-size: contain;
  border-radius: 50%;
  content: "";
  aspect-ratio: 1 / 1;
}

/* スライダー領域 */
.player-splide {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
}
.jacket-bg img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.splide__track {
  width: 100%;
  height: 100%;
}
.slide-title,
.slide-jacket,
.slide-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* スクロールボックス */
.player-scroll {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.scroll-box {
  position: absolute;
  pointer-events: all;
  cursor: pointer;
}
.scroll-title {
  top: 17vw;
  left: 13vw;
  width: 74vw;
  height: 17vw;
}
.scroll-jacket {
  top: 40vw;
  left: 20vw;
  width: 62vw;
  height: 62vw;
}
.scroll-info {
  top: 119vw;
  left: 12vw;
  width: 67vw;
  height: 11vw;
}

/* ドットナビ */
.player-dots {
  position: absolute;
  right: 0;
  bottom: 70.1vw;
  left: 0;
}
.player-dots li {
  display: inline-block;
  margin: 0;
  line-height: 1;
  list-style-type: none;
  pointer-events: auto;
}
.player-dots .splide__pagination__page {
  display: inline-block;
  position: relative;
  width: 2vw;
  height: 2vw;
  margin: 3px;
  padding: 0;
  opacity: 0.7;
  background: #fff0dd;
  border: 0;
  border-radius: 50%;
  transition: transform 0.2s linear;
}
.player-dots .splide__pagination__page:hover {
  cursor: pointer;
  opacity: 1;
}
.player-dots .splide__pagination__page.is-active {
  opacity: 1;
  transform: scale(1.4);
}

/* 進捗バー */
.player-progress-bar {
  position: absolute;
  right: 0;
  bottom: 15.8%;
  left: 0;
  height: 1.5vw;
  padding: 0 12vw;
  box-sizing: border-box;
  pointer-events: none;
}
.progress-bar-track {
  position: relative;
  width: 100%;
  height: 100%;
  vertical-align: middle;
}
.progress-bar-track::before {
  position: absolute;
  top: 0;
  bottom: 0;
  display: block;
  width: 100%;
  height: 0.6vw;
  margin: auto;
  background: #fff0dd;
  content: "";
}
.progress-bar-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #fff0dd);
  transform-origin: left center;
  transform: scaleX(0);
  transition: transform 0.1s linear;
}
.progress-bar-circle {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 2.6vw;
  height: 2.6vw;
  background: #fff0dd;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.1s linear;
}

/* プレイヤーナビ */
.player-nav {
  display: flex;
  position: absolute;
  right: 0;
  bottom: 11vw;
  left: 0;
  margin: auto;
  align-items: center;
  justify-content: center;
}
.player-nav .nav {
  display: flex;
  position: relative;
  width: 11.7vw;
  height: 5vw;
  margin: 0 3vw;
  padding: 4vw 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  /* その他（カスタムプロパティ） */
  --ripple-opacity: 1;
  /* ベンダープレフィックス */
  -webkit-tap-highlight-color: transparent;
}
.player-nav .nav img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transform-origin: center center;
  transition: opacity 0.18s linear, transform 0.18s linear;
}
.player-nav .nav.animate img {
  animation: navClick 300ms cubic-bezier(.22, .9, .31, 1);
}
.player-nav .nav-prev {
  transform: rotate(180deg);
}
.player-nav .nav-prev::before,
.player-nav .nav-playpause::before,
.player-nav .nav-next::before,
.player-nav .nav-playlist::before,
.player-nav .nav-prev::after,
.player-nav .nav-playpause::after,
.player-nav .nav-next::after,
.player-nav .nav-playlist::after {
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  box-sizing: border-box;
  width: 3vw;
  height: 3vw;
  margin: auto;
  border: 1px solid #fff0dd;
  border-radius: 50%;
  pointer-events: none;
  content: "";
  opacity: 1;
  transform: scale(1);
  animation: pulsate 1.5s linear infinite;
}
.player-nav .nav-prev::after,
.player-nav .nav-playpause::after,
.player-nav .nav-next::after,
.player-nav .nav-playlist::after {
  animation-delay: 0.3s;
}

/* アニメーション停止用のクラス */
.player-nav .nav.animation-stopped::before,
.player-nav .nav.animation-stopped::after {
  animation: none;
  opacity: 0;
}


/* =========================================================
= 詳細セクション（テキスト・スタッフ）
========================================================= */
.detail {
  position: relative;
  top: -1px;
}
.detail-textbox {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}
.detail-textbox img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.detail-splide {
  position: absolute;
  top: 5.4vw;
  left: 5.7vw;
  z-index: 5;
  width: 88.6vw;
  height: 141.4vw;
}
.detail-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  overflow: hidden;
  mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 7.6vw,
      rgba(0, 0, 0, 1) 18%,
      rgba(0, 0, 0, 1) 82%,
      rgba(0, 0, 0, 0) calc(100% - 7.6vw));
  mask-repeat: no-repeat;
  mask-size: 100% 100%;
  /* ベンダープレフィックス（mask 系）: 相対順維持 */
  -webkit-mask-image: linear-gradient(to bottom,
      rgba(0, 0, 0, 0) 7.6vw,
      rgba(0, 0, 0, 1) 18%,
      rgba(0, 0, 0, 1) 82%,
      rgba(0, 0, 0, 0) calc(100% - 7.6vw));
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  overflow: hidden;
}
.detail-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: calc(7.6vw + 20%) 7.9vw;
  overflow: scroll;
}
.detail-text {
  margin: 12px 0;
  font-size: 3.45vw;
  font-weight: bold;
  line-height: 1.88;
  color: #fff0dd;
  list-style: disc;
}
ul.detail-text {
  padding-left: 1.2rem;
}
ul.detail-text li {
  margin: 1vw 0;
}
.detail-img {
  display: block;
  width: 100%;
  height: auto;
  margin: 12px 0;
  object-fit: cover;
}
.detail-content h4 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #fff0dd46;
  font-size: 17px;
  font-weight: bold;
  color: #fff0ddb4;
}
.timetable + h4,
.detail-text + h4,
.detail-img-link + h4,
.staff-box + h4,
.twitter-tweet + h4 {
  margin-top: 45px;
}
.detail-content h5 {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: bold;
  color: #fff0dd;
}
.detail-content h5 + .detail-text {
  margin-top: 0;
}
.chat-link {
  display: inline-block;
  margin-top: 8px;
  padding: 8px 18px;
  background: #ff6388;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #fff0dd;
  box-shadow: 0 4px 8px #ff638866;
}

/* スタッフ */
.detail-img-link + .staff-box {
  margin: 12px 0;
}
.staff {
  display: flex;
  line-height: 1.5;
  text-decoration: none;
}
.staff-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-img img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}
.staff-bio {
  position: relative;
  width: 100%;
  margin-left: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #fff0dd46;
}
.staff:last-child .staff-bio {
  border-bottom: 0;
}
a.staff .staff-bio {
  padding-right: 12px;
}
a.staff .staff-bio::after {
  position: absolute;
  top: 50%;
  right: 7px;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-top: 2px solid #fff0dd7d;
  border-right: 2px solid #fff0dd7d;
  transform: rotate(45deg) translateY(-50%);
  content: "";
}
.staff-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #fff0dd;
}
.staff-role {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #fff0ddb4;
}

/* タイムテーブル表示 */
.timetable {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: max(14px, 3.45vw);
  font-weight: bolder;
  color: #fff0dd;
}
.timetable tr {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.timetable .timetable-dancer {
  padding-top: 0;
}
.timetable .timetable-border {
  border-bottom: 1px solid #fff0dd46;
}
.timetable td {
  padding: 0;
}
.dj-time {
  width: 45%;
}
.dj-icon {
  display: flex;
  width: 36px;
  height: 36px;
  margin-right: 8px;
  align-items: center;
  justify-content: center;
}
.dj-icon img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.dj-name {
  width: calc(55% - 44px);
}
.dancer-time {
  width: calc(55% - 88px);
  height: 36px;
  line-height: 18px;
}

/* ロゴ */
.detail-logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 6;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.detail-logo img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}


/* =========================================================
= ギャラリー表示
========================================================= */
/* PhotoSwipe: 背景タップを確実に機能させる */
.pswp {
  /* ベンダープレフィックス */
  -webkit-tap-highlight-color: transparent;
}

.pswp__bg {
  pointer-events: auto !important;
  cursor: pointer;
}

.pswp__scroll-wrap {
  pointer-events: none !important;
}

.pswp__zoom-wrap,
.pswp__img {
  pointer-events: auto !important;
}

.pswp__button {
  pointer-events: auto !important;
}

/* PhotoSwipe: タッチデバイスでも矢印ボタンを表示 */
.pswp--touch .pswp__button--arrow {
  visibility: visible !important;
  opacity: 0.75;
}

/* =========================================================
= チャットページ専用スタイル
========================================================= */
/* 背景（固定） */
body.chat-page {
  min-height: 100vh;
  /* 視覚効果（アンチエイリアス系は他カテゴリ外扱い） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body.chat-page::before {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -1;
  width: 100%;
  height: 100vh;
  background-image: url("../img/bg_chat.png");
  background-repeat: no-repeat;
  background-position: 50% 100%;
  background-size: cover;
  content: "";
}

/* チャット：ヘッダー */
.header-content {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 66px;
  align-items: center;
  justify-content: center;
  background: #fff0dd;
  border-bottom: 1px solid #ff638859;
  opacity: 0.9;
}
.header-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 11px;
}
.header-back img {
  display: block;
  width: 28px;
  height: 28px;
}
.header-title {
  display: flex;
  margin: auto;
  align-items: center;
  justify-content: center;
}
.header-title img {
  display: block;
  width: auto;
  height: 27px;
}
.header-menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 11px;
  cursor: pointer;
}
.header-menu img {
  display: block;
  width: 28px;
  height: 28px;
}

/* チャット：メイン余白 */
.chat-content {
  box-sizing: border-box;
  padding: 84px 5.7vw 220px;
}

/* チャット：ページネーション */
.pagination {
  display: flex;
  gap: 12px;
  margin: 14px 0;
  font-weight: 600;
  color: #fff0dd;
  align-items: center;
  justify-content: center;
}
.pagination .prev-page {
  display: block;
  padding: 0 8px;
  color: #ff6388;
  background: #fff0dde6;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.pagination .prev-disabled {
  opacity: 0.55;
}
.pagination .current-page {
  background: transparent;
  color: #fff0dd;
}

/* ナビゲーションメニュー */
.nav-menu {
  position: fixed;
  top: 66px;
  right: 0;
  z-index: 99;
  width: auto;
  max-height: 0;
  overflow: hidden;
  background: #fff0dd;
  border: 1px solid #ff638859;
  border-top: none;
  border-right: none;
  opacity: 0.9;
  transition: max-height 0.3s ease;
}
.nav-menu.is-open {
  max-height: 217px;
}
.nav-menu ul {
  display: flex;
  margin: 0;
  padding: 12px;
  list-style: none;
  flex-direction: column;
  align-items: flex-start;
}
.nav-menu ul li a {
  display: block;
  position: relative;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  color: #666;
  text-decoration: none;
  transition: color 0.2s;
}
.nav-menu ul li a img {
  display: inline-block;
  width: 19px;
  height: 19px;
  margin-right: 4px;
  vertical-align: middle;
}
.nav-menu ul li a::before {
  display: block;
  position: absolute;
  bottom: 14px;
  left: 23px;
  width: calc(100% - 35px);
  height: 2px;
  background: #ff6388;
  border-radius: 2px;
  content: "";
}
.nav-menu ul li a:hover {
  color: #ff6388;
}

/* スクロールボタン */
.scroll-to-bottom {
  display: flex;
  position: fixed;
  right: 4.5vw;
  bottom: 45vw;
  z-index: 98;
  width: 50px;
  height: 50px;
  padding: 0;
  align-items: center;
  justify-content: center;
  background: #fff0dd;
  border: none;
  border-radius: 50%;
  opacity: 0.9;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.3));
  cursor: pointer;
}
.scroll-to-bottom img {
  display: block;
  width: 28px;
  height: 28px;
}

/* チャット：スレッド一覧 */
.thread {
  display: flex;
  gap: 4vw;
  margin: 0 0 18px 0;
  padding: 0;
  list-style: none;
  flex-direction: column;
}

/* チャット：レスポンスカード */
.response {
  display: block;
  overflow: hidden;
  padding: 3vw;
  background: #fff0dd;
  border-radius: 8px;
  box-shadow: 2vw 2vw 0 rgba(0, 0, 0, 0.35);
}
.response-info {
  display: flex;
  gap: 3vw;
  margin-bottom: 3vw;
  align-items: center;
}
.user-icon {
  display: flex;
  align-items: center;
}
.user-icon img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12) inset;
}
.user-info {
  display: flex;
  max-width: calc(100% - 36px - 3vw);
  flex-direction: column;
}
.response-meta {
  height: 15px;
  opacity: 0.6;
  font-size: 10px;
  font-weight: bold;
  line-height: 1.5;
  color: #666;
}
.user-name {
  overflow: hidden;
  width: 100%;
  height: 21px;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  text-overflow: ellipsis;
  text-decoration: none;
  white-space: nowrap;
  color: #666;
  align-items: center;
}
.response-admin .user-name {
  color: #ff6388;
}
.user-id {
  padding-left: 0.5em;
  font-size: 13px;
  font-weight: 400;
}
.response-admin .user-id {
  color: #ff6388;
}

/* チャット：本文とリンク */
.response-body p {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  line-height: 1.5;
  white-space: pre-wrap;
  color: #666;
  word-break: break-word;
}
.response-admin .response-body p {
  color: #ff6388;
}
.response-body p .response-anchor {
  display: inline-block;
  margin: 0;
  padding: 3px 5px;
  font-size: 14px;
  text-decoration: none;
  color: #666;
  background: #fff9f0;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.response-body p .response-link {
  display: inline-block;
  overflow: hidden;
  max-width: 100%;
  margin: 4px 0;
  padding: 2px 7px;
  box-sizing: border-box;
  font-size: 12px;
  font-weight: normal;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: #000;
  background: #ffb7c8;
  border: 1px solid #c80003;
  border-radius: 10px;
}

/* チャット：返信操作 */
.response-detail {
  display: flex;
  margin-top: 5px;
  justify-content: flex-end;
}
.response-reply {
  display: block;
  line-height: 0;
}
.response-reply img {
  width: 15px;
  height: 10px;
}

/* チャット：ポップアップ */
.popup {
  width: 75%;
  box-shadow: 1vw 1vw 1vw 1vw rgba(0, 0, 0, .35);
}
.popup-button {
  display: flex;
  margin-bottom: 5px;
  align-items: center;
  justify-content: flex-end;
}
.popup-uncher a {
  padding: 2px 5px;
  text-decoration: none;
  font-size: 12px;
  color: #666;
  border: 1px solid #666;
  border-radius: 10px;
  outline: none;
}
.popup-closebox {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5em;
  line-height: 1;
  color: #666;
  cursor: pointer;
}

/* チャット：入力エリア */
.input-area {
  box-sizing: border-box;
  background: transparent;
}
.input-area h3 {
  margin: 0 0 8px 6px;
  font-weight: 700;
  color: #fff0dd;
}

/* チャット：ゲスト表示とテキストエリア */
.chat-guest {
  display: flex;
  flex-direction: column;
}
.chat-guest textarea,
.chat-form textarea {
  width: 100%;
  min-height: 110px;
  max-height: 220px;
  padding: 3vw;
  box-sizing: border-box;
  background: #fff0dd;
  border: none;
  border-radius: 0 0 8px 8px;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.5;
  color: #666;
  resize: vertical;
  outline: none;
}
.chat-guest textarea[disabled] {
  border-radius: 8px;
  opacity: 0.75;
}
.guest-actions {
  display: flex;
  margin-top: 12px;
  justify-content: flex-end;
}
#login-btn {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  text-decoration: none;
  color: #fff0dd;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  background: #ff6388;
  background: -moz-linear-gradient(top, #ff809e 0%, #ff6388 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(#ff809e), to(#ff6388));
  border: 1px solid #fff0dd66;
  border-radius: 8px;
  box-shadow: 0 0 2px #fff0dd;
  cursor: pointer;
}

/* チャット：ログイン済みフォーム */
.chat-form {
  display: flex;
  flex-direction: column;
}
/*.chat-guest[hidden],
.chat-form[hidden] {
  display: none;
}*/
.form-group {
  display: flex;
  gap: 12px;
  padding: 3vw;
  background: #fff0dd;
  border-bottom: 1px solid #ff6388;
  border-radius: 8px 8px 0 0;
  align-items: center;
}
.form-icon {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}
.form-info {
  display: flex;
  flex-direction: column;
}
.form-name {
  overflow: hidden;
  width: 100%;
  height: 21px;
  font-size: 14px;
  font-weight: bold;
  line-height: 21px;
  text-overflow: ellipsis;
  white-space: nowrap;
  align-items: center;
  color: #666;
}
.form-id {
  height: 15px;
  font-size: 13px;
  font-weight: 400;
  line-height: 15px;
  color: #666;
}

/* チャット：送信ボタン群 */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
#send-button {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  background: #fff0dd;
  background: -moz-linear-gradient(top, #fffdfa 0%, #fff0dd 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(#fffdfa), to(#fff0dd));
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 8px;
  cursor: pointer;
  flex: 1 1 auto;
}
#logout-btn.secondary {
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: #fff0dd;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  background: #ff6388;
  background: -moz-linear-gradient(top, #ff809e 0%, #ff6388 100%);
  background: -webkit-gradient(linear, left top, left bottom, from(#ff809e), to(#ff6388));
  border: 1px solid #fff0dd66;
  border-radius: 8px;
  box-shadow: 0 0 2px #fff0dd;
}


/* =========================================================
= キーフレーム（アニメーション定義）
========================================================= */
@keyframes loader-fairy {
  0% {
    z-index: 0;
    transform: rotateX(80deg) rotateY(15deg) rotateZ(200deg);
  }
  50% {
    z-index: 1;
  }
  100% {
    z-index: 0;
    transform: rotateX(80deg) rotateY(15deg) rotateZ(-160deg);
  }
}
@keyframes loader-text {
  0% {
    opacity: 1;
  }
  10% {
    opacity: 0.5;
  }
  20% {
    opacity: 1;
  }
}
@keyframes floatUp {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-120lvh);
  }
}
@keyframes fadeOut {
  0% {
    opacity: 1;
  }
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}
@keyframes navClick {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(0);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
@keyframes pulsate {
  0% {
    transform: scale(1);
    opacity: var(--ripple-opacity, 1);
  }
  50% {
    transform: scale(4);
    opacity: 0;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}
@keyframes pulsate-fade {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  50% {
    transform: scale(4);
    opacity: 0;
  }
  100% {
    transform: scale(4);
    opacity: 0;
  }
}


/* =========================================================
= メディアクエリ
========================================================= */
@media screen and (max-width: 640px) {
  /* 必要に応じてSP個別調整をここに追加 */
}