@charset "utf-8";

/* =========================================================
= 基本（HTML / Body / 汎用）
========================================================= */
html {
  scroll-padding-top: 100px;
}
body {
  position: relative;
  width: 100%;
  max-width: 100%;
  font: 14px/2 "Open sans", sans-serif;
  letter-spacing: 0.05em;
  background-image: url("../img/bg.png");
  background-size: 100%, auto, contain;
}
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;
}


/* =========================================================
= プレイリスト（全体・リスト・情報バー・ナビ）
========================================================= */
/* プレイリスト：全体 */
#playlist {
  display: flex;
  position: fixed;
  top: 100%;
  left: 0;
  z-index: 2000;
  width: 100%;
  height: 100dvh;
  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: 26.1vw 0 29.3vw;
  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: #ffffff;
}
.playlist-desc {
  overflow: hidden;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #ffffffb4;
}
.playlist-number {
  margin-left: 3vw;
  font-size: 12px;
  font-weight: 600;
  text-align: right;
  color: #ffffff;
}

/* プレイリスト：下部情報バー */
.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: 1.5px solid #ffffff;
  border-radius: 5px;
  object-fit: cover;
  box-sizing: border-box;
  box-shadow: 0 0 9px #66666699;
}
.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: #ffffff;
  filter: drop-shadow(0px 0px 1px #29639e);
  -webkit-text-stroke: 2px #009cf5;
  paint-order: stroke fill;
}
.playlist-info-bar-desc {
  overflow: hidden;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #009cf5;
  filter: drop-shadow(0px 0px 3px #ffffff);
  -webkit-text-stroke: 1px #ffffff99;
  paint-order: stroke fill;
}
.playlist-info-play {
  display: block;
  width: 3.6vw;
  height: auto;
  margin-left: 3vw;
  filter: drop-shadow(0 0 3px #66666699);
}

/* プレイリスト：ナビ */
.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: #ffffff;
  border-radius: 50%;
  content: "";
}
.playlist-nav-prev {
  transform: rotate(180deg);
}
.playlist-nav-buttons img {
  display: block;
  width: 5vw;
  height: auto;
}


/* =========================================================
= ヘッダー（プレイリスト上部画像）
========================================================= */
.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-x: hidden;
}
.player {
  position: relative;
}

/* 背景画像 */
.bg-player {
  z-index: 1;
  opacity: 0;
}
.bg-player img {
  display: block;
  width: 100%;
  height: auto;
}

/* ディスク背景 */
.bg-disc {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 100%;
  height: auto;
}
.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: -54.4vw;
  right: -48.5vw;
  width: 97%;
}
.disc2::before {
  position: absolute;
  top: -51.9vw;
  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: 18vw;
  width: 64vw;
  height: 17vw;
}
.scroll-jacket {
  top: 40vw;
  left: 20vw;
  width: 62vw;
  height: 62vw;
}
.scroll-info {
  top: 119vw;
  left: 11vw;
  width: 76vw;
  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;
  background: #ffffff;
  border: 1px solid #009cf5;
  border-radius: 50%;
  filter: drop-shadow(0 0 6px #009cf5);
  transition: transform 0.2s linear;
}
.player-dots .splide__pagination__page:hover {
  cursor: pointer;
}
.player-dots .splide__pagination__page.is-active {
  transform: scale(1.4);
  background: #fffd5e;
}

/* 進捗バー */
.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;
  filter: drop-shadow(0 0 6px #009cf599);
}
.progress-bar-track {
  position: relative;
  width: 100%;
  height: 100%;
  vertical-align: middle;
  filter: drop-shadow(0px 0px 1px #009cf5);
}
.progress-bar-track::before {
  position: absolute;
  top: 2px;
  bottom: 0;
  display: block;
  width: 100%;
  height: 0.6vw;
  margin: auto;
  background: #ffffff;
  content: "";
}
.progress-bar-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #ffffff);
  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: #ffffff;
  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;
  filter: drop-shadow(0px 0px 6px #009cf599);
}
.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;
  filter: drop-shadow(0px 0px 1px #009cf5);
  /* その他（カスタムプロパティ） */
  --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 #ffffff;
  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;
  padding-bottom: 31vw;
}
.detail-splide {
  position: relative;
  top: 0;
  left: 5.7vw;
  z-index: 5;
  width: 88.6vw;
  height: auto;
  background: #ffffffcc;
  border-radius: 28px;
  margin-top: 5.4vw;
}
.splide__track--fade>.splide__list>.splide__slide.is-active {
  height: auto;
}
.splide__track--fade>.splide__list>.splide__slide {
  height: 0;
}
.detail-inner {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
}
.detail-content {
  display: block;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  padding: 7.6vw 7.9vw;
}
.detail-text {
  margin: 12px 0;
  font-size: 3.45vw;
  font-weight: bold;
  line-height: 1.88;
  color: #29639e;
  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 #29639e46;
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
  -webkit-text-stroke: 3px #29639e; /* アウトラインの太さと色 */
  paint-order: stroke fill; 
}
.timetable + h4,
.detail-text + h4,
.detail-img-link + h4,
.staff-box + h4,
.twitter-tweet + h4 {
  margin-top: 45px;
}
.detail-content h4 span {
  display: inline-block;
  position: relative;
  left: 3px;
  z-index: 0;
  max-width: 100%;
}
.detail-content h4 span::before {
  position: absolute;
  bottom: 4px;
  left: -3px;
  z-index: -1;
  width: calc(100% + 6px);
  height: 9px;
  background: #fffd5e;
  content: "";
}
.detail-content h5 {
  margin: 24px 0 0;
  font-size: 16px;
  font-weight: bold;
  color: #29639e;
}
.detail-content h5 + .detail-text {
  margin-top: 0;
} 
.chat-link {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  margin-top: 8px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline 2px #fffd5e;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  line-height: 1.4;
  color: #ffffff;
  background: #009cf5;
  border-radius: 8px;
  cursor: pointer;
}

/* スタッフ */
.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 #29639e46;
}
.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 #29639e7d;
  border-right: 2px solid #29639e7d;
  transform: rotate(45deg) translateY(-50%);
  content: "";
}
.staff-name {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #29639e;
}
.staff-role {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #29639eb4;
}

/* タイムテーブル表示 */
.timetable {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  border-spacing: 0;
  font-size: max(14px, 3.45vw);
  font-weight: bolder;
  color: #29639e;
}
.timetable tr {
  display: flex;
  align-items: center;
  padding: 8px 0;
}
.timetable .timetable-dancer {
  padding-top: 0;
}
.timetable .timetable-border {
  border-bottom: 1px solid #29639e46;
}
.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: 55%;
}
.dancer-time {
  width: calc(55% - 88px);
  height: 36px;
  line-height: 18px;
}

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


/* =========================================================
= ギャラリー表示
========================================================= */
/* 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;
}

/* チャット：ヘッダー */
.header-content {
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 66px;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-bottom: 1px solid #29639e59;
  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 {
  position: relative;
  box-sizing: border-box;
  padding: 84px 5.7vw 31vw;
}

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

/* ナビゲーションメニュー */
.nav-menu {
  position: fixed;
  top: 66px;
  right: 0;
  z-index: 99;
  width: auto;
  max-height: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #009cf559;
  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: #29639e;
  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: 12px;
  width: calc(100% - 24px);
  height: 2px;
  background: #fffd5e;
  border-radius: 2px;
  content: "";
}
.nav-menu ul li a:hover {
  color: #29639e;
}

/* スクロールボタン */
.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: #ffffff;
  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: #ffffff;
  border-radius: 8px;
  box-shadow: 2vw 2vw 0 #29639e99;
}
.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-body p img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  margin: 4px 0;

}

/* チャット：返信操作 */
.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 #29639e99;
}
.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;
  margin-top: 26px;
  padding: 14px;
  background: #ffffffcc;
  border: 1px solid rgba(255, 240, 221, 0.24);
  border-radius: 14px;
}
.input-area h3 {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 700;
  color: #29639e;
}
.form-input,
#guest-textarea {
  display: flex;
  flex-direction: column;
  gap: 0;
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.14));
}


/* チャット：ゲスト表示とテキストエリア */
.chat-guest {
  display: flex;
  flex-direction: column;
}
.chat-guest textarea,
.chat-form textarea {
  width: 100%;
  min-height: 110px;
  max-height: 220px;
  padding: 12px;
  margin-bottom: 14px;
  box-sizing: border-box;
  background: #fffdf9;
  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: 10px;
  opacity: 0.75;
}
.guest-actions {
  display: flex;
  justify-content: flex-end;
}
#login-btn {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px 18px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline 2px #fffd5e;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  line-height: 1.4;
  color: #ffffff;
  background: #009cf5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* チャット：ログイン済みフォーム */
.chat-form {
  display: flex;
  flex-direction: column;
}
/*.chat-guest[hidden],
.chat-form[hidden] {
  display: none;
}*/
.form-group {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #fffdf9;
  border-bottom: 1px solid #39ceff;
  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: 10px;
}
#send-button {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline 2px #fffd5e;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  line-height: 1.4;
  color: #ffffff;
  background: #009cf5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  flex: 1 1 auto;
}

#logout-btn.secondary {
  display: inline-block;
  box-sizing: border-box;
  min-height: 44px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  line-height: 1.4;
  color: #ffffff;
  background: #786b62;
  border: none;
  border-radius: 8px;
  box-shadow: 0 0 2px #ffffff;
  cursor: pointer;
}


/* =========================================================
= 卒業アルバム専用スタイル
========================================================= */
/* 背景（固定） */
body.yearbook-page {
  min-height: 100vh;
  /* 視覚効果（アンチエイリアス系は他カテゴリ外扱い） */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

.album {
  display: grid;
  box-sizing: border-box;
  width: 100%;
  margin: 0 0 18px;
  padding: 16px;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: #fffdf9;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
  list-style: none;
}

.portrait {
  container-type: inline-size;
  overflow: hidden;
  min-width: 0;
  text-align: center;
}
.graduate-photo {
  display: block;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 3 / 4;
}
.graduate-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.graduate-name {
  overflow: hidden;
  margin: 3px 0 0;
  font-size: min(12px, calc(100cqi / 10));
  font-weight: 600;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #463b35;
}
.yearbook-page #post-form {
  padding: 12px;
  margin-bottom: 14px;
  background: #fffdf9;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.yearbook-page #post-form .form-group {
  display: grid;
  padding: 0;
  gap: 8px;
  background: transparent;
  border: 0;
}
.yearbook-page #avatar {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  color: #594d45;
  background: #fff7ed;
  border: 1px solid #e8d9c9;
  border-radius: 7px;
}
.yearbook-page .avatar-cropper {
  position: relative;
  overflow: hidden;
  width: min(100%, 360px);
  margin: 0 auto 8px;
  aspect-ratio: 6 / 7;
  background-color: #282828;
}
.yearbook-page .avatar-cropper[hidden] {
  display: none;
}
.yearbook-page .avatar-cropper .cropper-container {
  width: 100% !important;
  height: 100% !important;
}
.yearbook-page .avatar-cropper .cropper-modal {
  background-color: #000;
  opacity: 0.6;
}
.yearbook-page .avatar-cropper .cropper-view-box {
  outline: 3px dashed #ff7777;
  outline-color: rgba(255, 119, 119, 0.9);
}
.yearbook-page .avatar-cropper .cropper-face {
  background-color: transparent;
}
.yearbook-page .avatar-cropper-image {
  display: block;
  max-width: 100%;
}
.yearbook-page #form-graduate-name {
  box-sizing: border-box;
  width: 100%;
  min-height: 42px;
  padding: 9px 11px;
  font-size: 16px;
  color: #463b35;
  background: #fff;
  border: 1px solid #d8c9b9;
  border-radius: 7px;
}
.yearbook-page #form-graduate-name:focus {
  border-color: #009cf5;
  outline: 2px solid #009cf533;
}
.yearbook-page #post-form label {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  color: #594d45;
}
.yearbook-page .form-actions form {
  display: flex;
  flex: 1 1 0;
}
.yearbook-page .form-actions #send-button {
  flex: 1 1 0;
}
.yearbook-page .form-actions #send-button[hidden],
.yearbook-page .form-actions #delete-button[hidden],
.yearbook-page .form-actions #logout-btn[hidden],
.yearbook-page .form-actions #login-btn[hidden] {
  display: none;
}
.yearbook-page .form-group.is-locked {
  filter: brightness(0.55);
  opacity: 0.65;
  pointer-events: none;
}
.yearbook-page .yearbook-current-avatar {
  width: 72px;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}
.yearbook-page .yearbook-delete-button {
  display: inline-block;
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline 2px #fffd5e;
  text-shadow: rgba(0, 0, 0, 0.2) 0 1px 0;
  line-height: 1.4;
  color: #ffffff;
  background: #b94a48;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.yearbook-page .yearbook-prompt-guide {
  margin: 0 0 14px;
  padding: 12px;
  background: #fffdf9;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.14);
}
.yearbook-page .yearbook-prompt-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 700;
  color: #29639e;
}
.yearbook-page .yearbook-prompt-steps {
  display: grid;
  margin: 0 0 14px;
  padding-left: 1.5em;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #594d45;
}
.yearbook-page .yearbook-prompt-credit {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.5;
  color: #594d45;
}
.yearbook-page .yearbook-prompt-credit a {
  font-weight: 700;
  color: #1676b8;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.yearbook-page .yearbook-prompt-credit a:hover,
.yearbook-page .yearbook-prompt-credit a:focus-visible {
  color: #0c568b;
}
.yearbook-page .yearbook-prompt-actions {
  display: grid;
  position: relative;
  margin: 8px 0 0;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.yearbook-page .yearbook-prompt-heading {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: #594d45;
}
.yearbook-page .yearbook-prompt-button {
  display: inline-flex;
  min-height: 44px;
  padding: 10px 6px;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: #009cf5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}
.yearbook-page .yearbook-prompt-status {
  position: absolute;
  top: -44px;
  left: 50%;
  z-index: 1;
  margin: 0;
  padding: 8px 12px;
  white-space: nowrap;
  color: #ffffff;
  background: #29639e;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 300ms ease;
}
.yearbook-page .yearbook-prompt-status.is-visible {
  opacity: 1;
}
.yearbook-page .yearbook-prompt-status[hidden] {
  display: none;
}
.yearbook-page .yearbook-message {
  margin: 0 0 10px;
  color: #29639e;
}
.yearbook-page .yearbook-error {
  color: #b3261e;
}
/* =========================================================
= キーフレーム（アニメーション定義）
========================================================= */
@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) {
}