body {
  background: #000;
  color: #fff;
  font-family: monospace;
  margin: 0;
  padding: 0;
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem 2rem 0 2rem;
  border-bottom: 1px solid #333;
  background: linear-gradient(90deg, #1a1a1a 0%, #000 100%);
}

.logo-block {
  width: 100%;
  display: flex;
  justify-content: center;
}

  .logo {
    font-size: 10px;
    font-family: 'Fira Mono', 'Consolas', monospace;
    /* 中央(50%)から上下に、
       白→黄色→鮮やかなピンク→薄い緑→緑→青 */
    background: linear-gradient(to bottom,
      #0000ff 0%,    /* 青 */
      #00ff00 10%,   /* 緑 */
      #66ff66 20%,   /* 薄い緑 */
      #ff00ff 30%,   /* 鮮やかなピンク */
      #ffffff 40%,   /* 黄色 */
      #ffff00 50%,   /* 中央：白 */
      #ffffff 60%,   /* 黄色 */
      #ff00ff 70%,   /* 鮮やかなピンク */
      #66ff66 80%,   /* 薄い緑 */
      #00ff00 90%,   /* 緑 */
      #0000ff 100%   /* 青 */
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    line-height: 1.1;
    letter-spacing: 1px;
  }

.logo-img { display: none; max-width: 100%; height: auto; margin: 0 auto; }

.title {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
  background: linear-gradient(45deg, #0f0, #00f);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.catchphrase {
  color: #888;
  font-size: 0.9rem;
  margin: 0;
}

.wallet-btn {
  background: linear-gradient(45deg, #0f0, #00f);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
  min-width: 120px;
}

.wallet-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.wallet-btn.connected {
  background: linear-gradient(45deg, #f00, #ff6b6b);
  color: #fff;
}

.wallet-btn.connected:hover {
  background: linear-gradient(45deg, #ff6b6b, #f00);
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.wallet-btn.connected::before {
  content: '切断: ';
}

.wallet-btn.logged-in {
  background: linear-gradient(45deg, #f00, #ff6b6b) !important;
  color: #fff !important;
}

.wallet-btn.logged-in:hover {
  background: linear-gradient(45deg, #ff6b6b, #f00) !important;
  box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}

.main {
  padding: 1rem;
}

.main .terminal {
  max-width: 80% !important;
  width: 80%;
  margin: auto;
}

/* cnp.html専用のターミナルスタイル */
.cnp-terminal {
  border: 1px solid #333;
  padding: 1rem;
  max-width: 80% !important;
  margin: auto;
  background: rgba(0, 0, 0, 0.8);
  width: 80%;
  /* 高さ制限を削除してコンテンツに応じて調整 */
  display: block;
  overflow: visible;
}

/* モバイル用のcnp-terminalスタイル */
@media (max-width: 768px) {
  .cnp-terminal {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0.5rem;
    border-radius: 0;
  }
  
  .cnp-terminal .terminal {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0.5rem;
    border-radius: 0;
  }
  
  .cnp-terminal .cnp-details {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0.5rem;
  }
  
  .cnp-terminal .cnp-image-wrapper {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .cnp-terminal .cnp-image {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 600px) {
  .cnp-terminal {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0.3rem;
    border-radius: 0;
  }
  
  .cnp-terminal .terminal {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0.3rem;
    border-radius: 0;
  }
  
  .cnp-terminal .cnp-details {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0;
    padding: 0.3rem;
  }
}

.terminal {
  border: 1px solid #333;
  padding: 1rem;
  padding-bottom: 1.5rem;
  max-width: 80% !important;
  margin: auto;
  background: rgba(0, 0, 0, 0.8);
  width: 80%;
  height: auto;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  overflow: visible;
}

.terminal-header {
  color: #0f0;
  font-weight: bold;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
  padding: 0.1rem 0;
  text-align: left;
}

.terminal-output {
  margin-bottom: 0;
  flex: 1;
  overflow-y: scroll;
  scrollbar-width: thin;
  scrollbar-color: #00ff00 #333;
  line-height: 1.4;
  white-space: pre-wrap;
  word-wrap: break-word;
  /* スクロールバーを強制表示 */
  overflow-y: scroll !important;
  /* 最大高さを制限 */
  max-height: 80px;
  min-height: 80px;
}

/* スクロールバーのスタイル */
.terminal-output::-webkit-scrollbar {
  width: 8px;
}

.terminal-output::-webkit-scrollbar-track {
  background: #333;
}

.terminal-output::-webkit-scrollbar-thumb {
  background: #00ff00;
  border-radius: 4px;
}

.terminal-output::-webkit-scrollbar-thumb:hover {
  background: #00cc00;
}





.output::-webkit-scrollbar {
  width: 8px; /* スクロールバーを少し太く */
}

.output::-webkit-scrollbar-track {
  background: #000;
  border-radius: 4px;
}

.output::-webkit-scrollbar-thumb {
  background: #444; /* より見やすく */
  border-radius: 4px;
  border: 1px solid #666;
}

.output::-webkit-scrollbar-thumb:hover {
  background: #666;
}



.welcome {
  color: #0f0;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.help {
  color: #888;
  font-size: 0.9rem;
}

.ranking-section {
  margin: 2rem 0;
  padding: 1rem;
  border: 1px solid #333;
  background: rgba(0, 20, 0, 0.1);
}

.ranking-title {
  color: #0f0;
  text-align: center;
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.ranking-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.cnp-card {
  border: 1px solid #333;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.cnp-card:hover {
  border-color: #0f0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 255, 0, 0.2);
}

.cnp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #0f0, transparent);
  transition: left 0.5s ease;
}

.cnp-card:hover::before {
  left: 100%;
}

.cnp-image {
  width: 100%;
  height: 200px;
  max-width: 300px;
  max-height: 300px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  margin-bottom: 0.5rem;
  border: 1px solid #333;
  position: relative;
  background-color: transparent;
  transition: all 0.3s ease;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.cnp-card {
  position: relative;
  display: inline-block;
}

.cnp-image-container {
  position: relative;
  display: block;
  text-align: center;
}

.cnp-image-wrapper {
  position: relative;
  display: inline-block;
  width: 300px;
  height: 300px;
}

.cnp-like-btn {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 15px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 9999 !important;
  min-width: 60px;
  text-align: center;
  pointer-events: all !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  transform: translate(0, 0);
}



.cnp-like-btn:hover {
  background: rgba(255, 255, 0, 0.2);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(255, 255, 0, 0.5);
}

.cnp-like-btn:disabled {
  background: rgba(255, 105, 180, 0.2);
  cursor: not-allowed;
  transform: none;
}

.cnp-info {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0.5rem 0;
  text-align: center;
}

.cnp-id {
  color: #f00;
  font-weight: bold;
  font-size: 1.4rem;
  text-shadow: 0 0 10px #f00, 0 0 20px #f00, 0 0 30px #f00;
  animation: glow 2s ease-in-out infinite alternate;
}

.cnp-name {
  color: #fff;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnp-score {
  color: #ffff00 !important;
  font-weight: bold;
  font-size: 18px;
  text-align: center !important;
  display: block;
  width: 100%;
  flex: 1;
}

.cnp-stats {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #fff;
  margin-bottom: 0.5rem;
  gap: 10px;
}

.cnp-stats span {
  color: #fff;
  font-size: 0.8rem;
}

.cnp-stats .cnp-likes {
  font-size: 0.8rem;
  color: white !important;
  font-weight: bold;
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  margin-top: 1rem;
}

.nav-btn {
  background: #333;
  color: #fff;
  border: 1px solid #555;
  padding: 0.5rem 1rem;
  font-family: monospace;
  cursor: pointer;
  transition: all 0.3s ease;
}

.nav-btn:hover:not(:disabled) {
  background: #0f0;
  color: #000;
  border-color: #0f0;
}

.nav-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-info {
  color: #888;
  font-size: 0.9rem;
}

.prompt {
  display: flex;
  margin-top: 0;
  padding-top: 0;
  flex-shrink: 0;
  height: 30px;
  min-height: 30px;
  align-items: center;
}

.prompt-prefix {
  color: #0f0;
  margin-right: 0.5rem;
}

#cmdInput {
  background: transparent;
  border: none;
  color: #fff;
  flex: 1;
  outline: none;
  font-family: monospace;
}

.loading {
  text-align: center;
  color: #0f0;
  padding: 2rem;
}

.error {
  color: #f00;
  text-align: center;
  padding: 1rem;
}

/* CNP編集ページ用スタイル */
.cnp-info-section {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #333;
  background: rgba(0, 20, 0, 0.1);
}

.cnp-detail-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.cnp-detail-image {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #333;
  background-color: transparent;
  transition: all 0.3s ease;
}

.cnp-detail-card {
  display: inline-block;
}

.cnp-name-overlay {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
  color: #fff;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cnp-score-overlay {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, rgba(0, 255, 0, 0.9), rgba(0, 200, 0, 0.7));
  color: #000;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(0, 255, 0, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(0, 255, 0, 0.3);
}

.cnp-detail-info h4 {
  color: #0f0;
  margin: 0 0 0.5rem 0;
  text-align: center;
}

.cnp-detail-info p {
  color: #ccc;
  margin: 0 0 1rem 0;
  line-height: 1.4;
  text-align: center;
}

.cnp-attributes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.attribute {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #0f0;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  color: #0f0;
}

.edit-section {
  margin-bottom: 2rem;
  padding: 1rem;
  border: 1px solid #333;
  background: rgba(0, 20, 0, 0.1);
}

.edit-section h3 {
  color: #0f0;
  margin: 0 0 1rem 0;
}

.exp-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  color: #ccc;
  font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
  color: #fff;
  padding: 0.5rem;
  font-family: monospace;
  border-radius: 3px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #0f0;
}

.submit-btn {
  background: linear-gradient(45deg, #0f0, #00f);
  color: #000;
  border: none;
  padding: 0.5rem 1rem;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  border-radius: 3px;
  transition: all 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 255, 0, 0.3);
}

.experiences-section {
  padding: 1rem;
  border: 1px solid #333;
  background: rgba(0, 20, 0, 0.1);
}

.experiences-section h3 {
  color: #0f0;
  margin: 0 0 1rem 0;
}

.experiences-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.experience-item {
  border: 1px solid #333;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.exp-header h4 {
  color: #fff;
  margin: 0;
}

.exp-type {
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  font-size: 0.8rem;
  font-weight: bold;
}

.exp-type.日常 {
  background: rgba(40, 167, 69, 0.2);
  color: #28a745;
  border: 1px solid #28a745;
}

.exp-type.戦い {
  background: rgba(220, 53, 69, 0.2);
  color: #dc3545;
  border: 1px solid #dc3545;
}

.exp-type.成長 {
  background: rgba(255, 193, 7, 0.2);
  color: #ffc107;
  border: 1px solid #ffc107;
}

.exp-type.特殊 {
  background: rgba(111, 66, 193, 0.2);
  color: #6f42c1;
  border: 1px solid #6f42c1;
}

.exp-story {
  color: #fff;
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  font-style: italic;
  line-height: 1.4;
}

.exp-url {
  color: #0f0;
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
}

.exp-url:hover {
  text-decoration: underline;
}

.exp-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.exp-points {
  color: #ff0;
  font-weight: bold;
}

.exp-likes {
  color: #f00;
  font-weight: bold;
}



.like-btn {
  background: rgba(255, 0, 0, 0.2);
  color: #f00;
  border: 1px solid #f00;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  cursor: pointer;
  font-family: monospace;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.like-btn:hover {
  background: rgba(255, 0, 0, 0.3);
}

.delete-btn {
  background-color: #f44336;
  color: white;
  border: none;
  padding: 5px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.8rem;
  margin-left: 5px;
  transition: background-color 0.3s ease;
}

.delete-btn:hover {
  background-color: #d32f2f;
}

.delete-btn:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.no-experiences {
  color: #888;
  text-align: center;
  font-style: italic;
}

@media (max-width: 768px) {
  .header {
    flex-direction: column;
    gap: 1rem;
  }
  
  .ranking-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  }
  
  .cnp-card {
    padding: 0.5rem;
  }
  
  .cnp-image {
    height: 150px;
    object-position: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cnp-detail-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .cnp-detail-image {
    width: 150px;
    height: 150px;
  }
  
  .exp-form {
    gap: 0.8rem;
  }
  
  .my-cnp-section {
    margin: 0;
    padding: 0;
  }
  
  .mobile-fallback {
    margin: 0.2rem 0;
  }
  
  .terminal {
    height: auto;
    min-height: 120px;
    max-height: none;
    padding: 0;
    margin: 0;
    max-width: 100% !important;
    width: 100%;
    border-radius: 0;
  }
  
  .terminal-header {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    line-height: 1.2;
  }
  
  .terminal-output {
    max-height: 60px;
    min-height: 60px;
  }
  
  .prompt {
    flex-direction: row;
    align-items: center;
    height: auto;
    min-height: auto;
  }
  
  .guide-intro {
    padding: 8px;
    margin: 8px;
    border-radius: 6px;
  }
  
  .guide-intro-content {
    flex-direction: row;
    align-items: center;
    gap: 8px;
  }
  
  .guide-intro-text h3 {
    font-size: 0.9rem;
    margin: 0 0 3px 0;
  }
  
  .guide-intro-text p {
    font-size: 0.7rem;
    margin: 0;
  }
  
  .guide-intro-buttons {
    flex-direction: row;
    gap: 4px;
  }
  
  .guide-btn {
    padding: 4px 8px;
    font-size: 0.7rem;
    border-radius: 12px;
  }
  
  .guide-btn.secondary {
    display: none;
  }
  
  /* モバイルでのタイトルとボタンの空白調整 */
  .header-content .title, h1.title {
    margin: 0.2rem 0 !important;
  }
  
  .wallet-connect-message {
    margin: 0.3rem 0 !important;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 15px;
    padding: 0;
    margin: 0;
  }
  .header {
    padding: 0.5rem 0.5rem 0 0.5rem;
    flex-direction: column;
    align-items: center;
  }
  .logo-block {
    margin: 0 auto 0.5rem auto;
    max-width: 100vw;
    overflow-x: auto;
  }
  .logo { display: none; }
  .logo-img { display: block; }
  .header-content .title, h1.title {
    font-size: 1rem;
    text-align: center;
    word-break: break-all;
    white-space: normal;
    margin: 0.2rem 0 !important;
    line-height: 1.3;
  }
  .wallet-btn, .home-btn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    min-width: 90px;
  }
  .terminal {
    padding: 0;
    font-size: 0.95rem;
    border-radius: 0;
    max-width: 100% !important;
    width: 100%;
    height: auto;
    min-height: 120px;
    margin: 0;
  }
  
  .main .terminal {
    max-width: 100% !important;
    width: 100%;
    margin: 0;
  }
  .ranking-section, .my-cnp-section {
    padding: 0;
    margin: 0;
    border-radius: 0;
  }
  .ranking-title, .my-cnp-title {
    font-size: 1.1rem;
    margin: 0;
  }
  .ranking-grid, .my-cnp-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.1rem;
    justify-items: stretch;
  }
  .cnp-card {
    padding: 0.05rem;
    font-size: 0.95rem;
    min-width: 0;
    width: 100%;
    min-height: 200px;
  }
  .cnp-image {
    height: 90px;
    max-width: 100%;
    border-radius: 3px;
    object-position: center;
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.2rem;
  }
  .pagination {
    gap: 0.5rem;
    font-size: 0.95rem;
  }
  .fooder {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
  .prompt {
    flex-direction: row;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    height: auto;
    min-height: auto;
  }
  #cmdInput {
    font-size: 1rem;
    padding: 0.3rem;
  }
  
  .cnp-details {
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  
  .cnp-image-container {
    border: none;
    padding: 0;
    margin-bottom: 0;
  }
  
  .cnp-details .overlay-estimated-price {
    font-size: 14px;
  }
  
  .cnp-details .overlay-cnp-name {
    font-size: 20px;
  }
  
  .cnp-details .overlay-like-btn {
    font-size: 20px !important;
  }
  
  .cnp-details .overlay-rarity {
    font-size: 10px;
  }
  
  .cnp-details .overlay-experience-count {
    font-size: 20px !important;
  }
  
  .cnp-details .overlay-ranking {
    font-size: 14px;
  }
  
  .cnp-details .cnp-info-overlay {
    padding: 8px;
  }
  
  .cnp-details .cnp-bottom-overlay {
    padding: 8px;
  }
  
  .cnp-info {
    padding: 0px;
    margin-bottom: 0px;
  }
  
  .cnp-info h3 {
    font-size: 1rem;
    margin: 0.2rem 0;
  }
  
  .cnp-info p {
    font-size: 0.9rem;
    margin: 0.2rem 0;
  }
  
  .exp-form {
    gap: 0.5rem;
  }
  
  .exp-form input, .exp-form textarea {
    font-size: 0.9rem;
    padding: 0.3rem;
  }
  
  .exp-form button {
    font-size: 0.9rem;
    padding: 0.3rem 0.6rem;
  }
  
  .mobile-fallback {
    margin-top: 0.2rem;
  }
  
  .wallet-connect-message {
    margin: 0.3rem 0 !important;
  }
}

.header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 1.5rem 0.5rem 1.5rem;
  box-sizing: border-box;
}

.home-btn {
  background: linear-gradient(90deg, #00ff99 0%, #00ffcc 100%);
  color: #000;
  border: none;
  padding: 0.5rem 1.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-weight: bold;
  cursor: pointer;
  margin-right: 1rem;
  transition: box-shadow 0.2s;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.home-btn:hover {
  box-shadow: 0 2px 8px rgba(0,255,128,0.2);
}







.magic-eden-link {
  display: inline-block;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.magic-eden-link:hover {
  transform: translateY(-1px);
}

.cnp-actions, .my-cnp-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.magic-eden-img {
  width: 70%;
  height: auto;
  transition: transform 0.3s ease;
  padding: 5px;
  border-radius: 4px;
  animation: pulse 2s infinite;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  animation: pulse 2s infinite, glow 2s ease-in-out infinite alternate;
  display: block;
  margin: 0 auto;
}

.magic-eden-img:hover {
  transform: scale(1.05);
  background-color: #ffffd0;
}

.magic-eden-purchase-link {
  color: #ff6b35;
  text-decoration: none;
  font-weight: bold;
  margin-left: 10px;
  padding: 5px 10px;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.magic-eden-purchase-link:hover {
  color: #000;
  background-color: #ffffd0;
  text-decoration: underline;
}

.cnp-image-link {
  display: block;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 5px;
  border-radius: 4px;
  z-index: 1;
}

.cnp-image-link:hover {
  transform: scale(1.02);
}

.cnp-image-link:hover .cnp-image {
  background-color: #ffffd0;
  border: 2px solid #ffff00;
}

.cnp-image-link:hover .cnp-detail-image {
  background-color: #ffffd0;
  border: 2px solid #ffff00;
}



.cnp-image-container:hover .cnp-detail-image {
  background-color: #ffffd0;
  border: 2px solid #ffff00;
}

.cnp-card:hover .cnp-image {
  background-color: #ffffd0;
  border: 2px solid #ffff00;
}

.cnp-image-container:hover .cnp-image {
  background-color: #ffffd0;
  border: 2px solid #ffff00;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

@keyframes glow {
  from { box-shadow: 0 0 10px rgba(255, 255, 255, 0.5); }
  to { box-shadow: 0 0 20px rgba(255, 255, 255, 0.8); }
}

/* CNP一覧セクション */
.my-cnp-section {
  margin: 0 auto;
  padding: 0;
  border: 1px solid #333;
  background: rgba(0, 20, 0, 0.1);
  max-width: 1200px;
  text-align: center;
}

.my-cnp-title {
  color: #0f0;
  text-align: center;
  margin: 0;
  font-size: 1.2rem;
}

.my-cnp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin: 0;
  justify-items: center;
}





@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .guide-intro-content {
    flex-direction: column;
    text-align: center;
  }
  
  .guide-intro-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .guide-btn {
    width: 100%;
    text-align: center;
  }
}

.guide-intro {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 20px;
  margin: 20px;
  border-radius: 15px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
  animation: slideInFromTop 0.6s ease-out;
}

.guide-intro-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.guide-intro-text h3 {
  color: white;
  margin: 0 0 10px 0;
  font-size: 1.4rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.guide-intro-text p {
  color: rgba(255,255,255,0.9);
  margin: 0;
  font-size: 1rem;
}

.guide-intro-buttons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.guide-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-family: monospace;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.guide-btn.primary {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.guide-btn.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.guide-btn.secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 2px solid rgba(255,255,255,0.3);
}

.guide-btn.secondary:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 768px) {
  .guide-intro-content {
    flex-direction: column;
    text-align: center;
  }
  
  .guide-intro-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .guide-btn {
    width: 100%;
    text-align: center;
  }
}

/* ユーザー入力用のスタイル */
.user-input {
  color: #fff;
  margin: 2px 0;
}

/* 検索結果用のスタイル */
.search-result {
  color: #87ceeb;
  margin: 1px 0;
  padding-left: 10px;
}

/* 警告メッセージ用のスタイル */
.warning {
  color: #ffa500;
  margin: 2px 0;
}

/* 自動返答メッセージ用のスタイル（ターミナル風） */
.auto-reply {
  color: #0f0;
  margin: 2px 0;
}

/* CNP詳細表示 */
.cnp-details {
  margin: 20px 0;
  padding: 20px;
  background: rgba(0, 0, 0, 0.8);
  border-radius: 10px;
  color: #fff;
}

/* CNP画像内エリア */
.cnp-image-container {
  border: 2px solid #333;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
  position: relative;
  overflow: hidden;
}

.cnp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 15px;
}

.cnp-name {
  font-size: 24px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.cnp-price-section {
  text-align: right;
  flex: 1;
  margin-left: 20px;
}

.estimated-price {
  font-size: 18px;
  color: #00ff00;
  font-weight: bold;
}

.price-change {
  font-size: 14px;
  color: #00ff00;
  margin: 5px 0;
}

.price-change.down {
  color: #ff4444;
}

.cnp-details .cnp-stats {
  font-size: 16px;
  color: #87ceeb;
  font-weight: bold;
  margin: 8px 0;
}



.cnp-price {
  color: #ffff00 !important;
  font-weight: bold;
  font-size: 18px;
  text-align: center !important;
  display: block;
  width: 100%;
  flex: 1;
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px #FFD700, 0 0 20px #FFD700, 0 0 30px #FFD700;
  }
  to {
    text-shadow: 0 0 20px #FFD700, 0 0 30px #FFD700, 0 0 40px #FFD700;
  }
}

.cnp-likes {
  font-size: 18px;
  color: #ff69b4;
  font-weight: bold;
}

.rarity {
  margin-right: 15px;
}

.like-section {
  margin-left: 15px;
}

.like-btn {
  background: none;
  border: none;
  color: #ff69b4;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
}

.like-btn:hover {
  transform: scale(1.2);
}

.like-btn.liked {
  color: #ff1493;
  animation: heartBeat 0.5s;
}

@keyframes heartBeat {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

.cnp-image-wrapper {
  text-align: center;
  position: relative;
  display: inline-block;
}

/* 詳細ページ専用のcnp-image-wrapper */
.cnp-details .cnp-image-wrapper {
  text-align: center;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 80%;
  height: auto;
  max-width: 450px;
  margin: 0 auto;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
}

/* 画像上オーバーレイ情報 */
.cnp-info-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.7));
  color: white;
  padding: 10px;
  z-index: 10;
  border-radius: 10px 10px 0 0;
}

.overlay-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
}

.overlay-cnp-name {
  font-size: 20px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  flex: 1;
}

.overlay-price-info {
  text-align: right;
  margin-left: 15px;
}

.overlay-estimated-price {
  font-size: 16px;
  color: #0f0 !important;
  text-shadow: 0 0 10px #0f0, 0 0 20px #0f0, 0 0 30px #0f0 !important;
  animation: glow 2s ease-in-out infinite alternate !important;
  font-weight: bold;
  margin-bottom: 3px;
}

.overlay-price-change {
  font-size: 12px;
  color: #00ff00;
}

.overlay-price-change.down {
  color: #ff4444;
}

.overlay-stats {
  font-size: 11px;
  color: #87ceeb;
  display: flex;
  justify-content: space-between;
}

.overlay-rarity {
  margin-right: 15px;
}

#cnpImage {
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 15px;
  box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
  transition: transform 0.3s;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

#cnpImage:hover {
  transform: scale(1.05);
}

/* 画像上オーバーレイ情報 - 1.5倍拡大 */
.cnp-details .cnp-info-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  color: white;
  padding: 15px;
  z-index: 10;
  border-radius: 15px 15px 0 0;
}

.cnp-details .overlay-likes {
  text-align: right;
  margin-top: 10px;
}

.cnp-details .overlay-like-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #ff69b4;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 5px 10px;
  border-radius: 5px;
}

.cnp-details .overlay-like-btn:hover {
  transform: scale(1.1);
  background: rgba(255, 105, 180, 0.1);
}

.cnp-details .overlay-like-btn:active {
  transform: scale(0.95);
}

.cnp-details .overlay-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.cnp-details .overlay-estimated-price {
  font-size: 32px;
  color: #ff0000 !important;
  text-shadow: 0 0 15px #ff0000, 0 0 30px #ff0000, 0 0 45px #ff0000, 0 0 60px #ff0000 !important;
  animation: glow 2s ease-in-out infinite alternate !important;
  font-weight: bold;
  text-align: center;
  line-height: 1.4;
  white-space: pre-line;
}

.cnp-details .overlay-cnp-name {
  font-size: 40px;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
  flex: 2;
  text-align: center;
  animation: glow 2s ease-in-out infinite alternate;
}

.cnp-details .overlay-likes {
  flex: 1;
  text-align: right;
}

.cnp-details .overlay-like-btn {
  font-size: 28px;
  background: none;
  border: none;
  color: #ff69b4;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 5px 10px;
  border-radius: 8px;
  font-weight: bold;
}

/* 画像下オーバーレイ情報 */
.cnp-details .cnp-bottom-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5));
  color: white;
  padding: 15px;
  z-index: 10;
  border-radius: 0 0 15px 15px;
}

.cnp-details .overlay-bottom-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  gap: 10px;
}

.cnp-details .overlay-rarity {
  font-size: 16px;
  color: #87ceeb;
  font-weight: bold;
  flex: 1;
  text-align: left;
  line-height: 1.4;
  white-space: pre-line;
}

.cnp-details .overlay-ranking {
  font-size: 30px;
  color: #ffd700;
  font-weight: bold;
  flex: 1;
  text-align: center;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
  animation: glow 2s ease-in-out infinite alternate;
}

.cnp-details .overlay-experience-count {
  font-size: 28px;
  color: #0066ff;
  font-weight: bold;
  flex: 1;
  text-align: left;
}

@keyframes glow {
  from {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6), 0 0 40px rgba(255, 215, 0, 0.4);
  }
  to {
    text-shadow: 0 0 30px rgba(255, 215, 0, 1), 0 0 40px rgba(255, 215, 0, 0.8), 0 0 50px rgba(255, 215, 0, 0.6), 0 0 60px rgba(255, 215, 0, 0.4);
  }
}



.cnp-image:hover {
  transform: scale(1.05);
}

.cnp-experience-count {
  margin-top: 10px;
  font-size: 14px;
  color: #ffa500;
}

/* SNS宣伝エリア */
.sns-promotion-section {
  border-top: 2px solid #333;
  padding-top: 20px;
  margin-top: 20px;
}

.promotion-header {
  text-align: center;
  margin-bottom: 15px;
  font-size: 16px;
  color: #ffd700;
}

.sns-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.sns-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  min-height: 50px;
}

.sns-icon {
  width: 24px;
  height: 24px;
  filter: brightness(0) invert(1);
}

.twitter-btn {
  background: #1da1f2;
  color: white;
}

.twitter-btn:hover {
  background: #0d8bd9;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(29, 161, 242, 0.4);
}

.instagram-btn {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  color: white;
}

.instagram-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(220, 39, 67, 0.4);
}

.facebook-btn {
  background: #1877f2;
  color: white;
}

.facebook-btn:hover {
  background: #166fe5;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(24, 119, 242, 0.4);
}

.tiktok-btn {
  background: #000000;
  color: white;
}

.tiktok-btn:hover {
  background: #333333;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

.copy-btn {
  background: #6c757d;
  color: white;
}

.copy-btn:hover {
  background: #5a6268;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(108, 117, 125, 0.4);
}

.share-preview {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 15px;
  margin-top: 15px;
}

.preview-content {
  font-size: 12px;
  line-height: 1.4;
  color: #ccc;
  white-space: pre-line;
}

/* レア度エフェクト */
.rarity-legendary {
  animation: legendaryGlow 2s infinite;
}

.rarity-rare {
  animation: rareGlow 2s infinite;
}

.rarity-common {
  animation: commonGlow 2s infinite;
}

@keyframes legendaryGlow {
  0%, 100% { text-shadow: 0 0 10px #ffd700, 0 0 20px #ffd700, 0 0 30px #ffd700; }
  50% { text-shadow: 0 0 20px #ffd700, 0 0 30px #ffd700, 0 0 40px #ffd700; }
}

@keyframes rareGlow {
  0%, 100% { text-shadow: 0 0 10px #c0c0c0, 0 0 20px #c0c0c0; }
  50% { text-shadow: 0 0 20px #c0c0c0, 0 0 30px #c0c0c0; }
}

@keyframes commonGlow {
  0%, 100% { text-shadow: 0 0 10px #cd7f32, 0 0 20px #cd7f32; }
  50% { text-shadow: 0 0 20px #cd7f32, 0 0 30px #cd7f32; }
}

/* モバイル対応のメディアクエリを追加 */
@media (max-width: 768px) {
  .guide-intro-content {
    flex-direction: column;
    padding: 20px;
  }
  
  .guide-intro-buttons {
    flex-direction: column;
    gap: 10px;
  }
  
  .guide-btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
  
  .my-cnp-grid,
  .ranking-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
    padding: 8px;
    justify-items: center;
    justify-content: center;
  }
  
  .cnp-card {
    min-height: 200px;
    padding: 0.2rem;
  }
  
  .cnp-image {
    height: 150px;
    margin-bottom: 0.3rem;
  }
  
  .cnp-card .cnp-name-overlay {
    font-size: 14px !important;
    padding: 8px !important;
  }
  
  .cnp-card .cnp-rank-overlay {
    font-size: 14px !important;
    padding: 8px !important;
  }
  
  .cnp-score-overlay {
    font-size: 12px;
    padding: 6px;
  }
  
  .cnp-like-btn {
    font-size: 12px;
    padding: 6px 8px;
  }
  
  .cnp-info {
    padding: 1px;
    margin-bottom: 1px;
  }
  
  .cnp-id,
  .cnp-score {
    font-size: 14px;
  }
  
  .cnp-card .cnp-stats {
    padding: 0px 8px !important;
    font-size: 10px !important;
    margin-bottom: 0px !important;
  }
  
  .cnp-card .cnp-actions {
    margin-top: 1px !important;
  }
  
  .pagination {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }
  
  .nav-btn {
    padding: 12px 20px;
    font-size: 16px;
  }
  
  .page-info {
    font-size: 14px;
  }
  
  .my-cnp-title,
  .ranking-title {
    font-size: 24px;
    padding: 15px;
  }
  
  .magic-eden-img {
    width: 85%;
    height: auto;
    max-height: 60px;
  }
  
  .cnp-details .cnp-image-wrapper {
    width: 100%;
  }
  
  .cnp-details {
    margin: 0;
    padding: 0;
    border-radius: 0;
  }
  
  .cnp-image-container {
    border: none;
    padding: 0;
    margin-bottom: 0;
  }
  
  .cnp-details .overlay-estimated-price {
    font-size: 20px;
  }
  
  .cnp-details .overlay-cnp-name {
    font-size: 24px;
  }
  
  .cnp-details .overlay-like-btn {
    font-size: 20px;
  }
  
  .cnp-details .overlay-rarity {
    font-size: 12px;
  }
  
  .cnp-details .overlay-experience-count {
    font-size: 16px;
  }
  
  .cnp-details .cnp-info-overlay {
    padding: 12px;
  }
  
  .cnp-details .cnp-bottom-overlay {
    padding: 12px;
  }
  
  .cnp-card .cnp-image-container {
    padding: 0px;
    margin-bottom: 0px;
  }
}

@media (max-width: 480px) {
  .my-cnp-grid,
  .ranking-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 8px;
    padding: 5px;
    justify-items: center;
    justify-content: center;
  }
  
  .cnp-card {
    min-height: 180px;
  }
  
  .cnp-image {
    height: 120px;
  }
  
  .cnp-card .cnp-name-overlay {
    font-size: 12px !important;
    padding: 6px !important;
  }
  
  .cnp-card .cnp-rank-overlay {
    font-size: 12px !important;
    padding: 6px !important;
  }
  
  .cnp-score-overlay {
    font-size: 11px;
    padding: 4px;
  }
  
  .cnp-like-btn {
    font-size: 11px;
    padding: 4px 6px;
  }
  
  .cnp-info {
    padding: 8px;
  }
  
  .cnp-id,
  .cnp-score {
    font-size: 7px;
  }
  
  .cnp-price {
    font-size: 9px !important;
  }
  
  .cnp-stats {
    padding: 6px 8px;
    font-size: 9px;
    justify-content: center !important;
    gap: 0 !important;
  }
  
  .cnp-stats .cnp-experience {
    flex: 0 0 auto !important;
    font-size: 10px !important;
  }
  
  .cnp-stats .cnp-price {
    flex: 1 !important;
    text-align: center !important;
    font-size: 11px !important;
  }
  
  .cnp-stats .cnp-like-btn {
    flex: 0 0 auto !important;
    font-size: 10px !important;
  }
  
  .cnp-stats .cnp-experience {
    flex: 0 0 auto !important;
    font-size: 10px !important;
  }
  
  .my-cnp-title,
  .ranking-title {
    font-size: 20px;
    padding: 10px;
  }
  
  .magic-eden-img {
    width: 80%;
    height: auto;
    max-height: 55px;
  }
}

/* タッチ操作の最適化 */
@media (hover: none) and (pointer: coarse) {
  .cnp-card {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  
  .cnp-like-btn,
  .nav-btn,
  .guide-btn {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }
  
  .cnp-card:active {
    transform: scale(0.98);
  }
  
  .cnp-like-btn:active,
  .nav-btn:active,
  .guide-btn:active {
    transform: scale(0.95);
  }
}

/* 横画面対応 */
@media (orientation: landscape) and (max-height: 500px) {
  .guide-intro {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
  }
  
  .guide-intro-content {
    max-height: 100vh;
    overflow-y: auto;
  }
}

/* 高解像度ディスプレイ対応 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .cnp-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* ダークモード対応 */
@media (prefers-color-scheme: dark) {
  .guide-intro {
    background-color: rgba(0, 0, 0, 0.9);
  }
  
  .guide-intro-content {
    background-color: #2a2a2a;
    color: #ffffff;
  }
  
  .guide-btn.secondary {
    background-color: #444;
    color: #ffffff;
  }
}

/* アニメーション最適化 */
@media (prefers-reduced-motion: reduce) {
  .cnp-card,
  .cnp-like-btn,
  .nav-btn,
  .guide-btn {
    transition: none;
  }
  
  .cnp-card:active,
  .cnp-like-btn:active,
  .nav-btn:active,
  .guide-btn:active {
    transform: none;
  }
}

/* 右下追従型使い方ボタン */
.guide-button {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: rgba(255, 192, 203, 0.4);
  color: #333;
  padding: 24px 32px;
  border-radius: 50px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.guide-button:hover {
  background: rgba(255, 192, 203, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .guide-button {
    bottom: 15px;
    right: 15px;
    padding: 20px 28px;
    font-size: 26px;
  }
}

@media (max-width: 600px) {
  .guide-button {
    bottom: 10px;
    right: 10px;
    padding: 16px 24px;
    font-size: 24px;
  }
}

/* ウォレット接続メッセージ */
.wallet-connect-message {
  margin: 20px 0;
}

/* メタマスク接続ボタン */
.mobile-fallback {
  margin: 5px 0;
}

.cnp-rank-overlay {
  position: absolute;
  top: 5px;
  left: 5px;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.7), rgba(255, 165, 0, 0.5));
  color: #000;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 18px;
  font-weight: bold;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 215, 0, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.cnp-likes-overlay {
  position: absolute;
  top: 5px;
  right: 5px;
  background: linear-gradient(135deg, rgba(255, 20, 147, 0.9), rgba(255, 105, 180, 0.7));
  color: #fff;
  padding: 8px 12px;
  border-radius: 15px;
  font-size: 14px;
  font-weight: bold;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  border: 1px solid rgba(255, 20, 147, 0.3);
  backdrop-filter: blur(5px);
  box-shadow: 0 2px 10px rgba(255, 20, 147, 0.3);
}

.cnp-stats .cnp-like-btn {
  position: static !important;
  background: none;
  border: none;
  color: #ff69b4;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 6px 10px;
  border-radius: 18px;
  font-weight: bold;
  z-index: auto;
  min-width: auto;
  text-shadow: none;
  transform: none;
}

.cnp-stats .cnp-like-btn:hover {
  transform: scale(1.2);
  color: #ff1493;
  background: none;
  box-shadow: none;
}

.cnp-stats .cnp-like-btn.liked {
  color: #ff1493;
  animation: heartBeat 0.5s;
}

.cnp-stats .cnp-experience {
  font-size: 20px;
  font-weight: bold !important;
  color: #0066cc !important;
  text-shadow: 0 0 5px rgba(0, 102, 204, 0.5) !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}