
body {
  background-color: #15202b;
  color: #e1e8ed;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 20px;
}
h1 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  color: #ff6699;
  text-shadow: 0 0 5px #ff6699;
  margin-bottom: 30px;
}
.post-box {
  max-width: 600px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.post-box input[type="text"] {
  max-width: 320px;
  flex: 1 1 auto;
}
.post-box input[type="file"] {
  max-width: 180px;
  flex: 1 1 auto;
  background-color: #222f44;
  border-radius: 12px;
  padding: 6px 10px;
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 0 5px #ff99ccaa;
}
.post-box input[type="file"]::-webkit-file-upload-button {
  background: #ff6699;
  border: none;
  padding: 6px 12px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease;
}
.post-box input[type="file"]::-webkit-file-upload-button:hover {
  background: #ff4d81;
}
.post-box textarea {
  flex: 1 1 100%;
  margin-top: 8px;
  resize: vertical;
}
.post-box button {
  background-color: #ff6699;
  border: none;
  border-radius: 12px;
  color: white;
  font-weight: 700;
  padding: 10px 20px;
  cursor: pointer;
  box-shadow: 0 0 12px #ff6699cc;
  transition: background-color 0.3s ease;
  flex: 1 1 100%;
  margin-top: 10px;
}
.post-box button:hover {
  background-color: #ff4d81;
}
.container {
  max-width: 600px;
  margin: 0 auto;
}
.tweet {
  background-color: #192734;
  border-radius: 12px;
  padding: 15px;
  margin-bottom: 15px;
  text-decoration: none;
  display: block;
  color: #fff;
}
.tweet:hover {
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.3);
}
.tweet.sayaka {
  background: linear-gradient(145deg, #2b1a26, #1a2b2b);
  box-shadow: 0 0 25px rgba(255, 105, 180, 0.5);
  font-size: 17px;
  transform: scale(1.05);
  z-index: 10;
  position: sticky;
  top: 20px;
}
.tweet.locked {
  transform: scale(0.94);
  font-size: 15px;
  opacity: 0.85;
}
.meta {
  font-size: 13px;
  color: #8899a6;
  font-weight: 600;
  margin-bottom: 4px;
}
.name {
  font-weight: 700;
  font-size: 18px;
  color: #ff99cc;
  margin-bottom: 6px;
}
.text {
  white-space: pre-wrap;
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}
.image {
  max-width: 100%;
  border-radius: 12px;
  margin-bottom: 10px;
  display: block;
}
.actions {
  font-size: 13px;
  color: #8899a6;
  display: flex;
  gap: 12px;
}
/* 💞 さやか専用入室ボタン */
.line-button.sayaka-button {
  background: linear-gradient(135deg, #ff99cc, #ff6699);
  color: white;
  font-weight: 800;
  font-size: 20px;       /* フォントサイズ大きめに */
  padding: 14px 30px;    /* ボタンの縦横パディングも大きめに */
  box-shadow: 0 0 18px #ff99ccaa;
  border-radius: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-block; /* サイズ調整しやすく */
  min-width: 200px;      /* 幅の最小値設定 */
  text-align: center;
}

.line-button.sayaka-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px #ff66aacc;
}

.line-button.locked-button {
  background: linear-gradient(135deg, #00c300, #008c00);
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  box-shadow: 0 0 12px #00c300aa;
  border-radius: 12px;
  text-align: center;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
}

.line-button.locked-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px #00cc00cc;
}
.line-button.other-button {
  background: linear-gradient(135deg, #00c3ff, #0066cc);
  color: white;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 24px;
  box-shadow: 0 0 12px #00c3ffaa;
  border-radius: 12px;
  text-align: center;
  display: inline-block;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  min-width: 180px;
  margin-top: 12px;
}

.line-button.other-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px #00c3ffcc;
}

.sayaka-layout {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 8px 0 12px 0;
}
.sayaka-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 6px #ff99ccaa;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: bold;
  margin-left: 6px;
}
.badge.open {
  background-color: #ff69b4;
  color: white;
  box-shadow: 0 0 5px #ff69b4aa;
}
.badge.locked {
  background-color: #555;
  color: #ccc;
  box-shadow: 0 0 5px #0006;
}
.badge.reserved {
  background-color: #ff99cc !important;
  color: white !important;
  box-shadow: 0 0 6px #ff69b4aa !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  margin-left: 6px !important;
  display: inline-block !important;
  text-align: center !important;
}

#slide-wrapper {
  min-height: 220px;
}
.loader {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #ff6699;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
/* モーダル単体表示（背景黒なし） */
#entryOverlay {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #222f44;
  padding: 2em 3em;
  border-radius: 12px;
  box-shadow: 0 0 20px #ff6699cc;
  text-align: center;
  color: #fff;
  font-size: 1.2rem;
}
#entryOverlay.show {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: fadeIn 0.4s ease-out forwards;
}
#overlayBox {
  background: #222f44;
  padding: 2em 3em;
  border-radius: 12px;
  max-width: 320px;
  box-shadow: 0 0 20px #ff6699cc;
  transform: translateY(50px);
  opacity: 0;
  animation: slideUpFadeIn 0.6s forwards 0.8s;
}
@keyframes slideUpFadeIn {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.unlock-animation {
  font-size: 1.5rem;
  margin-bottom: 15px;
  font-weight: bold;
  color: #ff99cc;
}

@keyframes unlock {
  0% { transform: rotateY(0deg); opacity: 1; }
  50% { transform: rotateY(180deg); opacity: 0.5; }
  100% { transform: rotateY(360deg); opacity: 1; }
}

.note {
  font-size: 0.9em;
  color: #e38da9;
  margin-top: 8px;
  animation: fadeIn 1s ease 1.5s forwards;
  opacity: 0;
}
@keyframes fadeIn {
  to { opacity: 1; }
}





@media screen and (max-width: 600px) {
  body {
    padding: 10px;
  }

  h1 {
    font-size: 1.6rem;
  }

  .post-box {
    flex-direction: column;
    gap: 8px;
  }

  .post-box input[type="text"],
  .post-box input[type="file"],
  .post-box textarea,
  .post-box button {
    max-width: 100% !important;
    flex: 1 1 100% !important;
  }

  .sayaka-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
  }

  .sayaka-icon {
    width: 48px;
    height: 48px;
  }

  .line-button.sayaka-button,
  .line-button.other-button,
  .line-button.locked-button {
    font-size: 16px;
    padding: 10px 18px;
    min-width: auto;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  #entryOverlay {
    width: 90%;
    padding: 1.5em 1em;
    font-size: 1rem;
  }

  #overlayBox {
    max-width: 90%;
    padding: 1.5em 1em;
  }
}

@media screen and (max-width: 600px) {
  .actions {
    flex-direction: column;
    gap: 8px;
  }

  .actions .line-button {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    font-size: 15px;
    padding: 10px 16px;
  }

  .tweet.sayaka {
    transform: none; /* スマホで拡大しすぎ問題も回避 */
  }
}