/* ========================================
   Settings Section
   ======================================== */

/* ロゴ非表示バナーを強制的に非表示 */
.logo-removal-banner,
#logoRemovalBanner {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* 起動時課金誘導バナー */
.startup-upgrade-banner {
  margin: 0 0 20px 0;
  padding: 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.startup-upgrade-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.startup-upgrade-banner .banner-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 14px;
}

.startup-upgrade-banner .banner-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.startup-upgrade-banner .banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.startup-upgrade-banner .banner-title {
  color: white;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.startup-upgrade-banner .banner-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.startup-upgrade-banner .banner-button {
  flex-shrink: 0;
}

.startup-upgrade-banner .banner-upgrade-btn {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  padding: 8px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(10px);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.startup-upgrade-banner .banner-upgrade-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: scale(1.05);
}

/* モバイル対応 */
@media (max-width: 480px) {
  .startup-upgrade-banner .banner-content {
    padding: 14px 16px;
    gap: 12px;
  }

  .startup-upgrade-banner .banner-icon {
    font-size: 24px;
  }

  .startup-upgrade-banner .banner-title {
    font-size: 15px;
  }

  .startup-upgrade-banner .banner-subtitle {
    font-size: 13px;
  }

  .startup-upgrade-banner .banner-upgrade-btn {
    padding: 6px;
    font-size: 14px;
    width: 28px;
    height: 28px;
  }
}

/* マナーモード警告バナー */
.manner-mode-banner {
  margin: 0 0 20px 0;
  padding: 0;
  background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  animation: pulse-glow 2s ease-in-out infinite;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

@keyframes pulse-glow {

  0%,
  100% {
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
  }

  50% {
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.6);
  }
}

.manner-mode-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
}

.manner-mode-banner .banner-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 14px;
}

.manner-mode-banner .banner-icon {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

.manner-mode-banner .banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.manner-mode-banner .manner-banner-title {
  color: white;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.manner-mode-banner .manner-banner-subtitle {
  color: white;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* モバイル対応 */
@media (max-width: 480px) {
  .manner-mode-banner .banner-content {
    padding: 14px 16px;
    gap: 12px;
  }

  .manner-mode-banner .banner-icon {
    font-size: 24px;
  }

  .manner-mode-banner .manner-banner-title {
    font-size: 16px;
  }

  .manner-mode-banner .manner-banner-subtitle {
    font-size: 16px;
  }
}

/* 音声選択（通常の設定パネル内） */
.general-sound-selection {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sound-selection {
  text-align: center;
  margin-bottom: 0;
  padding: 0;
}

body.front-page .general-sound-selection h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

/* 旧定義（互換性のため残すが必要なければ削除） 
body.front-page .sound-selection h4 {
  color: #ffffff;
  margin-bottom: 20px;
  font-family: "Sniglet", "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
}
*/

.stamp-selection {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.front-page .stamp-selection h4 {
  color: #ffffff;
  margin-bottom: 25px;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
}

.stamp-container {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.current-sound-display {
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 25px;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.current-sound-display span:first-child {
  font-weight: normal;
}

#currentSoundName {
  color: #4CAF50;
  font-weight: normal;
}

.sound-select-button {
  background: linear-gradient(45deg, #4CAF50, #45a049);
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 25px;
  font-family: "Itim", cursive;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sound-select-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.sound-select-button:active {
  transform: translateY(0);
}

.sound-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 20px;
}

.sound-list .sound-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  border-radius: 20px;
}

.sound-list .sound-option:hover {
  transform: translateY(-2px);
}

.sound-list .sound-image {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.sound-list .sound-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sound-list .sound-name {
  font-size: 14px;
  font-weight: normal;
  color: #fff;
  font-family: "Sniglet", "Helvetica", "Helvetica Neue", Arial, sans-serif;
}

/* Sound Options (Common) */
.sound-option {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 4px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  color: #fff;
}

.sound-option:hover {
  border-color: #2196F3;
  transform: translateX(5px);
}

.sound-option.selected {
  border: 4px solid #2196F3;
}

.sound-icon {
  font-size: 24px;
  margin-right: 15px;
  width: 30px;
  text-align: center;
}

.sound-name {
  font-family: "Sniglet", "Helvetica", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #ffffff;
}

/* Default Sound Setting */
.default-sound-setting {
  margin-top: 40px;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.default-sound-info {
  margin-bottom: 20px;
}

.default-sound-info p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.default-sound-controls {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.default-sound-btn {
  padding: 12px 20px;
  background: rgba(76, 175, 80, 0.2);
  border: 1px solid rgba(76, 175, 80, 0.5);
  color: #4CAF50;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal;
  transition: all 0.3s ease;
  flex: 1;
  min-width: 150px;
}

.default-sound-btn:hover {
  background: rgba(76, 175, 80, 0.3);
  border-color: #4CAF50;
  transform: translateY(-1px);
}

.default-sound-btn.reset {
  background: rgba(244, 67, 54, 0.2);
  border-color: rgba(244, 67, 54, 0.5);
  color: #F44336;
}

.default-sound-btn.reset:hover {
  background: rgba(244, 67, 54, 0.3);
  border-color: #F44336;
}

.default-sound-status {
  padding: 15px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 14px;
}

.default-sound-status span:first-child {
  color: rgba(255, 255, 255, 0.7);
}

.default-sound-status span:last-child {
  color: #4CAF50;
  font-weight: normal;
}

/* Sound Test Section */
.sound-test-section {
  margin: 15px 0;
  text-align: center;
}

.test-sound-btn {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  margin-right: 10px;
}

.test-sound-btn:hover {
  background: #45a049;
}

.test-note {
  font-size: 12px;
  color: #666;
  font-style: italic;
}

/* 設定ヘッダー */
.settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

/* PCでの幅固定レイアウト */
@media (min-width: 769px) {
  .settings-header {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 20px;
  }

  .language-selection {
    min-width: 140px;
  }
}

body.front-page .settings-header h3,
body.front-page .settings-content>h3 {
  text-align: left;
  margin: 0;
  color: #ffffff;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  padding-bottom: 0;
}

body.front-page .settings-content>h3 {
  margin-top: 30px;
  margin-bottom: 15px;
}

/* 言語選択 */
.language-selection {
  margin: 0;
  padding: 0;
}

.language-dropdown {
  width: 140px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  color: #ffffff;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: normal;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.9)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 16px;
  padding-right: 30px;
}

.language-dropdown:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.language-dropdown:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: #4CAF50;
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.language-dropdown option {
  background: #333333;
  color: #ffffff;
  padding: 10px;
  font-size: 14px;
  font-weight: normal;
}

/* カウントダウン設定・ロゴ設定 */
.countdown-settings,
.logo-settings {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.setting-item {
  margin-bottom: 15px;
}

.setting-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #ffffff;
  font-weight: normal;
}

.setting-checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.checkmark {
  position: relative;
  height: 20px;
  width: 20px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 12px;
  transition: all 0.3s ease;
}

.setting-label:hover .checkmark {
  background-color: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.setting-checkbox:checked~.checkmark {
  background-color: #4CAF50;
  border-color: #4CAF50;
}

.checkmark:after {
  content: "";
  position: absolute;
  display: none;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.setting-checkbox:checked~.checkmark:after {
  display: block;
}

.setting-description {
  margin: 8px 0 0 32px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.4;
}

/* MSOOJA設定パネル */
.msooja-settings-panel {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.msooja-settings-panel h4 {
  color: #ffffff;
  margin-bottom: 15px;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

/* MSOOJAパネル内のロゴ選択（入れ子にならないようスタイルリセット） */
.msooja-settings-panel .logo-selection {
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 0;
}

/* MSOOJAパネル内の音声選択 */
.msooja-sound-selection {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.msooja-sound-selection .sound-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.msooja-sound-selection .sound-option {
  display: flex;
  align-items: center;
  padding: 15px;
  margin: 0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.08);
  box-sizing: border-box;
  color: #fff;
}

.msooja-sound-selection .sound-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.msooja-sound-selection .sound-option.selected {
  border: 2px solid #4CAF50;
  background-color: rgba(76, 175, 80, 0.2);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

/* ロゴ選択 */
.logo-selection,
.general-logo-selection {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.logo-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.logo-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.logo-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.logo-option.active {
  border-color: #4CAF50;
  background-color: rgba(76, 175, 80, 0.2);
  box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.logo-preview {
  width: 100%;
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.logo-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
}

.logo-option.active .logo-name {
  color: #4CAF50;
  font-weight: 600;
}

/* モバイル対応 */
@media (max-width: 768px) {
  .logo-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .logo-option {
    padding: 10px;
  }

  .logo-preview {
    max-width: 60px;
  }
}

/* フレーム選択 */
.general-frame-selection {
  margin: 20px 0;
  padding: 20px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.frame-options {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.frame-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 12px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  background-color: rgba(255, 255, 255, 0.05);
}

.frame-option:hover {
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-2px);
}

.frame-option.active {
  border-color: #2196F3;
  background-color: rgba(33, 150, 243, 0.2);
  box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.frame-preview {
  width: 100%;
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.frame-name {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  text-align: center;
}

.frame-option.active .frame-name {
  color: #2196F3;
  font-weight: 600;
}

/* フレーム モバイル対応 */
@media (max-width: 768px) {
  .frame-options {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .frame-option {
    padding: 10px;
  }

  .frame-preview {
    max-width: 60px;
  }
}

/* カテゴリフィルタ */
.category-filter {
  margin: 15px 0 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* カテゴリラベル表示（プロジェクト名など） - クリック可能なボタンスタイル */
.category-label-display {
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  white-space: nowrap;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.category-label-display:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.category-label-display.active {
  background: linear-gradient(45deg, #007AFF, #5856D6);
  border-color: #007AFF;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.filter-buttons {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.8);
  font-family: "Noto Sans JP", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  outline: none;
  min-width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.1);
}

.filter-btn.active {
  background: linear-gradient(45deg, #007AFF, #5856D6);
  border-color: #007AFF;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 122, 255, 0.3);
}

.filter-btn.active:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

/* モバイル対応 */
@media (max-width: 768px) {
  .filter-buttons {
    gap: 8px;
  }

  .filter-btn {
    padding: 6px 12px;
    font-size: 13px;
    min-width: auto;
    height: auto;
    gap: 4px;
  }
}

/* 2025/09/10 add */
.about-link {
  width: max-content;
  margin: 20px auto 0;
  display: block;
  font-size: 14px;
  font-weight: normal;
  color: #fff;
  font-family: "Sniglet", "Helvetica", "Helvetica Neue", Arial, sans-serif;
}

/* /2025/09/10 add */

/* SakuraShimeji Filter Button Adjustment */
.filter-btn[data-category="sakurashimeji"] {
  font-size: 10px !important;
  white-space: nowrap !important;
  padding: 6px 8px !important;
  letter-spacing: -0.5px;
}