/* 公開ユーザー一覧 横スクロールカードレイアウト */
.users-scroll-section {
  box-sizing: border-box;
  overflow-x: auto;
  overflow-y: hidden;
  white-space: normal;
  padding: 32px 28px 28px;
  background: #081828;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 148, 32, 0.72) rgba(6, 16, 28, 0.14);
/*レガシーな中段揃え*/
  position: relative;
    top: 50%;  /* 親要素の50%の位置に */
    left: 50%; /* 水平も中央にしたい場合 */
    transform: translate(-50%, -50%); /* 自身のサイズ分ずらす */
}

/* Firefox用 */
.users-scroll-section {
  scrollbar-width: thin;
  scrollbar-color: #ff8800cc rgba(0,0,0,0.08);
}

/* ユーザー詳細 / 編集 */
.user-icon {
  margin-top: 4vh;
  max-width: 10vw;   /* 横長画像の場合、幅を40%まで */
  max-height: 15vh;  /* 縦長画像の場合、高さを60%まで */
  width: auto;       /* 幅は自動調整 */
  height: auto;      /* 高さは自動調整 */
  object-fit: contain; /* 縦横比を維持して収める */
  border-radius: 50%;
  border: 1px solid #1995ffe8;
}
.user-card {
  height: 86vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #00a0ff #001e3c;
  background: rgba(0,30,60,0.92);
  border: 2px solid #00a0ff;
  border-radius: 12px;
  box-shadow: 0 0 12px #00c8ff33;
  padding: 18px 16px;
  width: 100vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* --- UPDATE USER ワールドタグカードグリッド --- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.card-world {
  background: rgba(0, 30, 60, 0.92);
  border: 2px solid #00a0ff;
  border-radius: 10px;
  box-shadow: 0 0 12px #00c8ff33, 0 0 0 2px #001e3c;
  padding: 16px 12px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.card-world label {
  color: #00f0ff;
  font-weight: bold;
  font-size: 0.98em;
  margin-bottom: 2px;
  margin-top: 0;
  text-shadow: 0 0 4px #00f0ff99;
}
.card-world input[type="text"],
.card-world textarea {
  width: 100%;
  padding: 6px 10px;
  border: 1.5px solid #00a0ff;
  border-radius: 4px;
  background: rgba(0, 30, 60, 0.85);
  color: #e0f7fa;
  font-size: 1em;
  box-sizing: border-box;
  margin-bottom: 4px;
  margin-top: 0;
  transition: border 0.2s, box-shadow 0.2s;
}
.card-world textarea {
  min-height: 4vh;
  resize: vertical;
}
.card-world input[type="text"]:focus,
.card-world textarea:focus {
  border: 2px solid #00f0ff;
  box-shadow: 0 0 8px #00f0ff99;
  outline: none;
}

.creator-card {
  --creator-card-bg-top: rgba(7, 18, 30, 0.97);
  --creator-card-bg-mid: rgba(11, 28, 42, 0.95);
  --creator-card-bg-bottom: rgba(18, 36, 54, 0.92);
  --creator-surface-bg: rgba(11, 20, 30, 0.34);
  --creator-surface-bg-strong: rgba(10, 20, 30, 0.82);
  --creator-chip-bg: rgba(20, 38, 54, 0.82);
  --creator-icon-bg: #182433;
  --creator-button-bg: rgba(12, 38, 56, 0.82);
  --creator-button-bg-hover: rgba(16, 48, 72, 0.88);
  box-sizing: border-box;
  display: grid;
  grid-template-rows: auto auto minmax(54px, 72px) auto auto;
  align-items: start;
  gap: 8px;
  flex: 0 0 clamp(320px, 25vw, 360px);
  width: clamp(320px, 25vw, 360px);
  min-height: clamp(540px, 70vh, 660px);
  vertical-align: top;
  background: linear-gradient(155deg, var(--creator-card-bg-top) 0%, var(--creator-card-bg-mid) 58%, var(--creator-card-bg-bottom) 100%);
  border: 2.5px solid #1e90ff;
  border-radius: 12px;
  box-shadow: 0 0 24px #00c8ff66, 0 0 0 2px #00336699 inset;
  padding: 14px 12px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, border 0.2s;
  word-break: break-word;
  margin: 0 24px;
}

.creator-card .creator-card-meta-actions {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
}

.creator-card-media {
  width: 100%;
  min-height: clamp(88px, 12vh, 120px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.creator-card-icon {
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #00f0ff;
  margin: 0 auto;
  cursor: pointer;
  background: var(--creator-icon-bg);
  transition: box-shadow 0.2s;
  display: block;
  width: clamp(82px, 7vw, 112px);
  height: clamp(82px, 7vw, 112px);
  max-width: none;
  max-height: none;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

.creator-card-icon:hover {
  box-shadow: 0 0 0 4px #00f0ff55;
}

.creator-card-name {
  font-size: 1.16em;
  font-weight: bold;
  color: #00f0ff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  min-height: 2.5em;
  padding: 0 4px;
  line-height: 1.22;
  box-sizing: border-box;
}

.creator-card-description {
  color: #e0f7fa;
  font-size: clamp(0.82rem, 1.05vmin, 0.94rem);
  text-align: center;
  overflow-y: auto;
  white-space: pre-line;
  word-break: break-word;
  padding: 4px 6px;
  background: var(--creator-surface-bg);
  border-radius: 6px;
  line-height: 1.5;
  letter-spacing: 0.01em;
  width: 100%;
  min-height: 54px;
  max-height: 72px;
  box-sizing: border-box;
}
.profile-link-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px 0;
}

.profile-link-btn {
  text-decoration: none;
}

.profile-link-editor-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-link-editor-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 8px;
}

.profile-link-editor-row input {
  min-width: 0;
}

.creator-card-resources {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 96px;
  align-self: stretch;
}

.creator-card .creator-resource-panel {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  padding: 8px 12px;
  border: 1px solid rgba(0, 160, 255, 0.38);
  border-radius: 10px;
  background: var(--creator-surface-bg-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 240, 255, 0.04);
}

.creator-card .creator-resource-panel[open] {
  min-height: 156px;
  border-color: rgba(0, 240, 255, 0.72);
  box-shadow: 0 0 12px rgba(0, 200, 255, 0.12), inset 0 0 0 1px rgba(0, 240, 255, 0.08);
}

.creator-card .creator-resource-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  list-style: none;
  min-height: 22px;
}

.creator-card .creator-resource-summary::-webkit-details-marker {
  display: none;
}

.creator-card .creator-resource-summary:focus-visible {
  outline: 1px solid rgba(0, 240, 255, 0.7);
  outline-offset: 4px;
}

.creator-card .creator-resource-summary-main {
  display: flex;
  flex: 1 1 auto;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.creator-card .creator-resource-label {
  flex: 1 1 auto;
  color: #00f0ff;
  font-weight: bold;
  font-size: 0.96rem;
  text-align: left;
}

.creator-card .creator-resource-count {
  display: inline-flex;
  flex: 0 0 78px;
  align-items: center;
  justify-content: center;
  width: 78px;
  min-height: 20px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--creator-chip-bg);
  border: 1px solid rgba(0, 160, 255, 0.34);
  color: #cfefff;
  font-size: 0.74rem;
  font-weight: bold;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.creator-card .creator-resource-chevron {
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(159, 215, 255, 0.9);
  border-bottom: 2px solid rgba(159, 215, 255, 0.9);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
  margin-right: 4px;
}

.creator-card .creator-resource-panel[open] .creator-resource-chevron {
  transform: rotate(225deg);
}

.creator-card .creator-resource-preview {
  display: none;
}

.creator-card .creator-resource-panel[open] .creator-resource-preview {
  display: none;
}

.creator-card .creator-resource-body {
  margin-top: 6px;
  min-height: 76px;
  max-height: 126px;
  flex: 0 1 auto;
  overflow-y: auto;
  padding-right: 4px;
}

.creator-card .creator-resource-panel:not([open]) .creator-resource-body {
  display: none;
}

.creator-card .creator-resource-links {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-content: flex-start;
  width: 100%;
}

.creator-card .creator-resource-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  min-height: 28px;
  padding: 6px 10px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

.creator-card .creator-resource-empty {
  color: #9fd7ff;
  line-height: 1.6;
  text-align: left;
}

.creator-card .creator-card-actions {
  display: grid;
  grid-template-rows: repeat(3, minmax(34px, auto));
  gap: 6px;
  width: 100%;
  align-self: end;
  box-sizing: border-box;
}

.creator-card .creator-action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 8px 12px;
  box-sizing: border-box;
  text-decoration: none;
  line-height: 1.2;
  background: var(--creator-button-bg);
  color: #8fdfff !important;
  border-width: 1px;
}

.creator-card .creator-action-btn:hover,
.creator-card .creator-action-btn:focus-visible,
.creator-card .creator-edit-chip:hover,
.creator-card .creator-edit-chip:focus-visible {
  background: var(--creator-button-bg-hover);
}

.creator-card .creator-edit-btn {
  appearance: none;
  font-family: inherit;
  cursor: pointer;
}

.creator-card .creator-edit-chip {
  min-width: 72px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--creator-button-bg);
  color: #8fdfff !important;
  border-width: 1px;
}

@media (max-width: 600px) {
  .creator-card {
    flex-basis: 98vw;
    width: 98vw;
    min-width: 220px;
    min-height: 560px;
    padding: 14px 10px 12px 10px;
    margin: 0 12px;
  }

  .creator-card-description {
    font-size: 0.98em;
  }

  .creator-card-resources {
    min-height: 84px;
  }
}

/* 追加: 共通ユーザーリストレイアウト */
.user-list {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  margin: 0 auto 32px auto;
  box-sizing: border-box;
}

.account-settings-panel {
  width: min(760px, 100%);
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(0, 160, 255, 0.42);
}

.account-settings-panel h3 {
  margin: 0 0 12px;
  color: #00f0ff;
  text-align: center;
}

.account-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 24px;
}

.account-setting-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 160, 255, 0.2);
}

.account-setting-label {
  flex: 0 0 auto;
  color: #9fd7ff;
  font-size: 0.92em;
}

.account-setting-value {
  flex: 1 1 auto;
  min-width: 0;
  color: #e0f7fa;
  font-weight: 700;
  text-align: right;
  overflow-wrap: anywhere;
}

.account-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.account-settings-actions .small-btn,
.account-settings-actions .cyber-danger {
  min-height: 40px;
  padding: 8px 16px;
  text-decoration: none;
}

.user-admin-edit-title {
  color: #00f0ff;
  margin-bottom: 20px;
}

.user-form-button-spaced {
  margin-right: 10px;
}

.user-card-title {
  font-size: 1.15em;
  font-weight: bold;
  color: #00f0ff;
  margin-bottom: 8px;
}

.user-card-description {
  color: #e0f7fa;
  font-size: 0.98em;
  text-align: center;
  margin-bottom: 12px;
}

.user-edit-form-shell {
  margin-top: 24px;
  max-width: 100%;
  width: 100%;
}

.user-secondary-form {
  margin-top: 18px;
  max-width: 100%;
  width: 100%;
}

.form-note-row {
  text-align: center;
  margin-bottom: 1em;
}

.form-note-text {
  color: #555;
}

.user-edit-form-shell .form-note-text {
  color: #9fd7ff;
}

.form-note-text-accent {
  color: #9fd7ff;
}

.form-error-messages {
  color: red;
  margin-bottom: 1em;
  text-align: center;
}

.user-admin-note {
  font-size: 0.95em;
  color: #00f0ff;
  margin-top: 4px;
}

.password-help-text {
  color: #9fd7ff;
  font-size: 0.95em;
  margin-top: 4px;
}

.password-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  font-size: 1.05em;
  line-height: 1;
  text-align: center;
  border-radius: 8px;
}

.delete-user-modal-copy {
  margin-bottom: 12px;
}

.delete-user-modal-input {
  width: 80%;
  padding: 6px;
  margin-bottom: 10px;
}

.delete-user-modal-error {
  color: red;
  font-size: 0.95em;
  margin-bottom: 8px;
}

.modal-full-width-btn {
  width: 100%;
}

.modal-btn-stack-gap {
  margin-bottom: 6px;
}

.warning-accent {
  margin-bottom: 12px;
  color: #ff4444;
  font-weight: bold;
}

/* 追加: 退会ボタンの見た目 */

/* レスポンシブ調整 */
@media (max-width: 900px) {
  .user-card {
    width: 98vw;
    max-width: 98vw;
    min-width: 220px;
    padding: 14px 4px 12px 4px;
  }
  .user-list {
    gap: 12px;
  }
  .account-settings-grid {
    grid-template-columns: 1fr;
  }
}






.users-scroll-section {
    color: black;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    align-self: stretch;
    min-height: 100%;
    height: 100%;
    border-top: 1px solid transparent;
    border-bottom: 1px solid transparent;
    background-clip: padding-box;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 100%;
    padding: 28px 28px 32px;
    margin: 0 auto;
}

/* SciFi風 赤橙色系グローイングスクロールバー */
.users-scroll-section::before,
.users-scroll-section::after {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
  /*  height: 8px;*/
    background: linear-gradient(
        90deg,
        transparent 0%,
        #ff2200 15%,
        #ff4400 25%,
        #ff6600 35%,
        #ff8800 50%,
        #ff6600 65%,
        #ff4400 75%,
        #ff2200 85%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: scifiGlow 3s ease-in-out infinite alternate;
    border-radius: 4px;
    
    /* SciFi風グロー効果 */
    box-shadow: 
        0 0 6px rgba(255, 112, 0, 0.34),
        0 0 14px rgba(255, 92, 0, 0.24),
        0 0 24px rgba(255, 140, 32, 0.18),
        inset 0 0 6px rgba(255, 184, 72, 0.28);
    
    /* 弱めの発光 */
    opacity: 0.56;
    filter: blur(0.8px);
}

.users-scroll-section::before { 
    top: -12px;
    transform: scaleY(0.8);
}

.users-scroll-section::after { 
    bottom: -12px;
    transform: scaleY(0.8);
}

/* SciFi風パルス効果 */
@keyframes scifiGlow {
    0% { 
        background-position: 0% 50%;
        opacity: 0.5;
        transform: scaleX(0.95) scaleY(0.8);
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1.02) scaleY(0.9);
    }
    100% { 
        background-position: 100% 50%;
        opacity: 0.6;
        transform: scaleX(0.98) scaleY(0.8);
    }
}

/* 追加のSciFi効果 - エネルギーパルス */
.users-scroll-section::after {
    animation-delay: 0.5s;
}

/* ホバー時の強化効果 */
.users-scroll-section:hover::before,
.users-scroll-section:hover::after {
    opacity: 0.86;
    box-shadow: 
        0 0 8px rgba(255, 120, 0, 0.42),
        0 0 18px rgba(255, 92, 0, 0.28),
        0 0 28px rgba(255, 148, 32, 0.24),
        0 0 36px rgba(255, 116, 0, 0.12),
        inset 0 0 8px rgba(255, 196, 88, 0.32);
    animation-duration: 2s;
}

/* ===== SF風オレンジ半透明カスタムスクロールバー ===== */
.users-scroll-section::-webkit-scrollbar {
  height: 14px;
  background: rgba(0, 0, 0, 0);
}
.users-scroll-section::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, rgba(255, 116, 0, 0.54) 0%, rgba(255, 170, 58, 0.44) 55%, rgba(255, 132, 12, 0.58) 100%);
  border-radius: 8px;
  box-shadow:
    0 0 10px 1px rgba(255, 140, 0, 0.34),
    0 0 18px 2px rgba(255, 120, 0, 0.16),
    0 0 0 1.5px rgba(255, 116, 0, 0.66) inset;
  border: 2px solid rgba(255, 136, 0, 0.18);
  transition: background 0.2s, box-shadow 0.2s;
}
.users-scroll-section::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(90deg, rgba(255, 184, 72, 0.72) 0%, rgba(255, 124, 0, 0.78) 100%);
  box-shadow:
    0 0 14px 2px rgba(255, 148, 0, 0.44),
    0 0 26px 4px rgba(255, 120, 0, 0.2),
    0 0 0 2px rgba(255, 124, 0, 0.72) inset;
}
.users-scroll-section::-webkit-scrollbar-track {
  background: linear-gradient(180deg, rgba(10, 18, 28, 0.08) 0%, rgba(10, 18, 28, 0.2) 100%);
  border-radius: 8px;
}

