/* --------------------------------------------------
 * リセット / 共通設定
 * -------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  height: 100%;
  background: linear-gradient(to bottom, #0b0c1a 0%, #0d1c2e 40%, #1a3b5d 70%, #4c9ac0 100%);
  background-attachment: scroll !important;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(to bottom, #0b0c1a 0%, #0d1c2e 40%, #1a3b5d 70%, #4c9ac0 100%);
  background-attachment: scroll !important;
  position: relative;
}

::-webkit-scrollbar {
  display: none;
}

/* ハンバーガーボタンはデフォルト非表示（910px以上） */
#hamburgerBtn {
  display: none;
}

/* --------------------------------------------------
 * ヘッダー
 * -------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  background-color: #222;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 10000;
}

.header-left {
  display: flex;
  align-items: center;
}

.site-logo {
  width: 24px;
  height: 24px;
  margin-right: 0.5rem;
}

.site-name {
  font-weight: bold;
  font-size: 1.1rem;
}

.header-nav {
  display: flex;
  gap: 1rem;
}

.header-nav a {
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
}

.header-nav a:hover {
  text-decoration: underline;
}

.header-right {
  position: relative;
}

.header-right button {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 0.4rem 0.7rem;
  border-radius: 4px;
  cursor: pointer;
}

.header-right button:hover {
  background-color: #666;
}

/* --------------------------------------------------
 * 言語選択メニュー
 * -------------------------------------------------- */
.lang-wrapper {
  position: relative;
  display: inline-block;
}

#langToggle {
  background: transparent;
  border: 1px solid #ccc;
  color: #fff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.95rem;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
  width: 140px;
  background-color: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  transform-origin: top;
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
}

.lang-menu div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  color: #fff;
  cursor: pointer;
}

.lang-menu div:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lang-menu img {
  width: 20px;
  height: auto;
}

.lang-menu.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scaleY(0);
}

.lang-menu.visible {
  opacity: 1;
  pointer-events: auto;
  transform: scaleY(1);
}

/* --------------------------------------------------
 * メインコンテンツ
 * -------------------------------------------------- */
main {
  flex-grow: 1;
  padding: 4rem 2rem 2rem 2rem;
  text-align: center;
  color: #fff;
  z-index: 6;
}

/* --------------------------------------------------
 * フッター
 * -------------------------------------------------- */
.site-footer {
  position: relative;
  background-color: rgba(255, 255, 255, 0.15);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 2rem 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  z-index: 1;
}

.site-footer p {
  margin-bottom: 0.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
}

.footer-links a {
  color: #ccc;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
 * 星アニメーション背景
 * -------------------------------------------------- */
#stars-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
  background: transparent;
}

.star {
  position: absolute;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: twinkle 4s infinite alternate;
  will-change: opacity;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.8; }
  50%      { opacity: 0.2; }
}

/* page/home.html 要素定義 */
.description-text {
  font-size: 18px;
  color: #fff;
}

.sub-description-text {
  font-size: 14px;
  color: #cccccc;
}

.bot-button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  flex-wrap: wrap;
}

.add-bot-buton,
.bot-features-button {
  background-color: #5865F2;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.add-bot-buton:hover,
.bot-features-button:hover {
  background-color: #4752c4;
}

.dashboard-button {
  background-color: #4752c4;
  color: #fff;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  margin: 30px auto;
  display: block;
  transition: background-color 0.3s ease;
}

.dashboard-manual {
  flex-grow: 1;
  width: 100%;
  min-width: 300px;
  max-width: 800px;
  height: auto;
  display: block;
  margin: 30px auto;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------
 * ボックス表示用の機能グリッド
 * -------------------------------------------------- */
.feature-boxes-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 40px;
}

.feature-box {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 20px;
  width: 280px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px rgba(0,0,0,0.2);
}

.feature-icon-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.feature-icon {
  width: 32px;
  height: 32px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #fff;
}

.feature-description {
  font-size: 0.95rem;
  color: #ccc;
  line-height: 1.5;
}

/* auth */

.auth-button-container button {
  background-color: #5865F2;
  margin: 0.5rem; /* 上下左右に間隔 */
  color: #f1faee;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  min-width: 160px;
  box-shadow: 0 4px 6px rgb(0 0 0 / 0.3);
}


.auth-button-container button:hover {
  background-color: #4752c4;
}

.auth-discord-button {
  background-color: #5865F2;
}

.auth-discord-button:hover {
  background-color: #4752c4;
}

/* auth-modal */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

.modal-content {
  background: #424549;
  color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}



.modal-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.modal-content label {
  display: block;
  font-size: 1rem;
  margin: 0.5rem 0 0.2rem 0;
  color: #ddd;
}

.modal-content input {
  width: 100%;
  padding: 0.5rem;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #666;
  background-color: #333;
  color: #fff;
  box-sizing: border-box;
}

.modal-content button#submit-credentials {
  margin-top: 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.8rem 1.5rem;
  border-radius: 6px;
  border: none;
  background-color: #5865F2;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modal-content button#submit-credentials:hover {
  background-color: #4752c4;
}


/* 認証コード認証 */

#verify-code {
  display: inline-block;
  width: 100%;
  padding: 12px 20px;
  margin-top: 15px;
  font-size: 16px;
  font-weight: bold;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #4a90e2, #357ab7);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#verify-code:hover {
  background: linear-gradient(135deg, #5aa0f2, #468ad0);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}

#verify-code:active {
  transform: scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#verify-code:disabled {
  background: #888;
  cursor: not-allowed;
  box-shadow: none;
}

.btn {
  border: none;
  border-radius: 6px;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
  color: white;
  user-select: none;
}

.auth-submit-button {
  background-color: #5865F2;
}

.auth-submit-button:hover {
  background-color: #4752c4;
}

.auth-verify-button {
  background-color: #5865F2;
}

.auth-verify-button:hover {
  background-color: #4752c4;
}

.success-close {
  background-color: #28a745;
}

.success-close:hover {
  background-color: #218838;
}

.failure-retry {
  background-color: #dc3545;
}

.failure-retry:hover {
  background-color: #c82333;
}
