:root {
  /*
   * MarchinZ 配色：白・黒（階調含む）＋ 色は3色のみ
   * 信頼感：ネイビー / 行動・リンク：ブルー / 温かい強調：アンバー
   */
  --white: #ffffff;
  /* MarchinZ ロゴ（logo/marchinz-logo.png／実体 JPEG）キャンパス〜サンプリング近似 */
  --logo-canvas: #fefcef;
  --black: #0c0f14;

  --navy: #0f2138;
  --blue: #1e4fd6;
  --blue-deep: #163b9e;
  --amber: #b45309;
  --amber-bright: #d97706;

  --bg: #f4f6f8;
  --panel: var(--white);
  --panel-tint: rgba(15, 33, 56, 0.04);
  --text: var(--black);
  --muted: rgba(12, 15, 20, 0.6);
  --text-strong: var(--black);

  --accent: var(--blue);
  --accent-strong: var(--navy);
  --link: var(--blue);
  --link-hover: var(--blue-deep);
  --border: rgba(15, 33, 56, 0.12);
  --row-alt: rgba(12, 15, 20, 0.04);
  --shadow: rgba(15, 33, 56, 0.12);

  --nav-bg: var(--navy);
  --nav-active: #152a45;
  --table-th: var(--navy);

  /* 旧トークン互換（ナビ下線・ホバーなど） */
  --yellow: var(--amber-bright);
  --yellow-soft: #e8f1fe;

  --nav-pill-bg: #fff7e8;
  --nav-pill-border: #e89520;
  --nav-pill-text: var(--navy);

  /* 角丸 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-card: 6px;
  --radius-thumb: 4px;
  --radius-pill: 999px;

  /* アンバー系（動画タイトル・チップ） */
  --gold-border: #ca8a04;
  --gold-border-hover: var(--amber);
  --gold-cream-top: #fffbeb;
  --gold-cream-mid: #fef3c7;
  --gold-cream-hover-top: #fde68a;
  --gold-cream-hover-mid: #fcd34d;
  --gold-chip-bg: #fffbeb;

  /* 主要 CTA（ネイビー→ブルー）— 変数名は既存クラス互換のため cta-teal-* のまま */
  --cta-teal-1: var(--navy);
  --cta-teal-2: #1a5088;
  --cta-teal-3: var(--blue);
  --cta-teal-border: #0a1522;
  --cta-teal-border-hover: var(--blue-deep);
  --cta-teal-text: #f4f7fb;
  --cta-teal-hover-1: #1e3d66;
  --cta-teal-hover-2: var(--blue);
  --cta-teal-shadow: rgba(15, 33, 56, 0.22);
  --cta-teal-focus: #93c5fd;

  /* 動画カード（ネイビー／ブルーのチントのみ） */
  --video-marching-bg: rgba(15, 33, 56, 0.045);
  --video-marching-border: rgba(15, 33, 56, 0.18);
  --video-marching-thumb: #4a5d73;
  --video-marching-thumb-glow: rgba(15, 33, 56, 0.12);
  --video-drum-bg: rgba(30, 79, 214, 0.06);
  --video-drum-border: rgba(30, 79, 214, 0.22);
  --video-drum-thumb: #3d6ec9;
  --video-drum-thumb-glow: rgba(30, 79, 214, 0.15);

  /* YouTube バッジ等の3色内区分 */
  --badge-navy-bg: #e8ecf1;
  --badge-navy-border: rgba(15, 33, 56, 0.28);
  --badge-blue-bg: #e8f1fc;
  --badge-blue-border: rgba(30, 79, 214, 0.35);
  --badge-amber-bg: #fff7e6;
  --badge-amber-border: rgba(217, 119, 6, 0.55);
  --badge-neutral-bg: #ececec;
  --badge-neutral-border: rgba(12, 15, 20, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.site-brand {
  position: relative;
  z-index: 600;
  padding: 1.25rem 1.5rem 1rem;
  text-align: center;
  background: var(--logo-canvas);
  border-bottom: 1px solid var(--border);
}

.site-brand-inner {
  box-sizing: border-box;
  position: relative;
  z-index: 601;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.85rem 1.25rem;
  overflow: visible;
}

.site-brand-logo-block {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.site-brand-tagline {
  margin: 0.35rem 0 0;
  padding: 0;
  font-size: 0.68rem;
  line-height: 1.48;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-align: center;
  max-width: 18.5rem;
}

.site-brand-actions {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0.5rem;
}

.site-brand-actions[hidden] {
  display: none !important;
}

.site-brand-user-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: min(92vw, 22rem);
  overflow: visible;
}

.site-brand-user-profile-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  text-decoration: none;
  color: inherit;
  border-radius: 8px;
  padding: 2px 4px;
  margin: -2px -4px;
  overflow: visible;
}

.site-brand-user-profile-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.mll-profile-page-link {
  font-weight: 600;
  text-decoration: underline;
  color: inherit;
}

.site-brand-user-area[hidden] {
  display: none !important;
}

.site-brand-user-avatar-wrap {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
  overflow: visible;
  padding-top: 4px;
  margin-top: -4px;
}

.site-brand-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--panel-tint);
  flex-shrink: 0;
}

.header-notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  height: auto;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #ef4444;
  border: 2px solid var(--bg, #fff);
  border-radius: 999px;
  pointer-events: none;
  box-sizing: border-box;
}

.header-notif-badge[hidden] {
  display: none !important;
}

.site-brand-user-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: min(42vw, 10rem);
}

.site-brand-account-menu-wrap {
  position: relative;
  z-index: 602;
  flex-shrink: 0;
}

.site-brand-account-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition:
    background 0.15s ease,
    border-color 0.15s ease;
}

.site-brand-account-menu-btn:hover {
  background: rgba(0, 0, 0, 0.04);
}

.site-brand-hamburger {
  display: grid;
  gap: 4px;
  width: 1.1rem;
  pointer-events: none;
}

.site-brand-hamburger span {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: var(--text);
}

.user-account-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 13.5rem;
  padding: 0.35rem 0;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow:
    0 10px 28px rgba(12, 20, 42, 0.18),
    0 2px 6px rgba(12, 20, 42, 0.08);
  background: var(--panel);
  z-index: 603;
  text-align: left;
}

.user-account-dropdown[hidden] {
  display: none !important;
}

.user-account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.95rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.86rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.user-account-dropdown-item .mz-ui-icon {
  margin-right: 0;
  flex-shrink: 0;
  font-size: 0.95em;
}

.user-account-dropdown-item:hover {
  background: var(--panel-tint);
}

a.user-account-dropdown-item {
  text-decoration: none;
}

.site-brand-firebase-hint {
  margin: 0;
  flex: 1 1 100%;
  font-size: 0.67rem;
  line-height: 1.42;
  color: #92400e;
  text-align: center;
  max-width: 36rem;
}

.site-brand-firebase-hint[hidden] {
  display: none !important;
}

@media (min-width: 720px) {
  .site-brand-inner {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    row-gap: 0.5rem;
  }

  .site-brand-inner:has(.site-brand-actions:not([hidden])),
  .site-brand-inner:has(.site-brand-user-area:not([hidden])) {
    padding-inline: clamp(0.85rem, 11vw, 11rem);
  }

  .site-brand-actions,
  .site-brand-user-area {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    row-gap: 0;
  }

  .site-brand-main-row {
    display: contents;
  }

  .site-mobile-nav-toggle {
    display: none !important;
  }
}

@media (max-width: 719px) {
  :root {
    --mz-mobile-toggle-size: 3.06rem;
    --mz-mobile-logo-gap: 0.32rem;
    --mz-mobile-logo-safe-inset: 0.86rem;
  }

  .site-brand {
    padding: 0.65rem max(0.5rem, env(safe-area-inset-right, 0px)) 0.55rem max(0.5rem, env(safe-area-inset-left, 0px));
    text-align: left;
  }

  .site-brand-inner {
    align-items: stretch;
    gap: 0.45rem;
  }

  .site-brand-main-row {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    min-height: 2.55rem;
  }

  .site-brand-logo-block {
    align-items: flex-start;
    text-align: left;
  }

  .site-logo-heading {
    text-align: left;
  }

  .site-logo {
    max-width: min(calc(92vw * 0.7 * 0.667), 168px);
    margin: 0;
  }

  .site-brand-tagline {
    display: none;
  }

  .site-mobile-nav-toggle {
    position: absolute;
    top: 50%;
    right: max(0.06rem, env(safe-area-inset-right, 0px));
    transform: translateY(-50%);
    display: inline-flex !important;
    width: var(--mz-mobile-toggle-size);
    height: var(--mz-mobile-toggle-size);
  }

  .site-mobile-nav-toggle .site-brand-hamburger {
    width: 1.32rem;
    gap: 5px;
  }

  .site-brand-actions {
    display: none !important;
  }

  .site-brand-user-area {
    position: absolute;
    top: 50%;
    right: calc(max(0.06rem, env(safe-area-inset-right, 0px)) + var(--mz-mobile-toggle-size) + var(--mz-mobile-logo-gap) + 0.1rem);
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    gap: 0;
    max-width: none;
  }

  .site-brand-user-area[hidden] {
    display: none !important;
  }

  .site-brand-user-profile-link {
    padding: 0;
    margin: 0;
  }

  .site-brand-user-name,
  .site-brand-account-menu-wrap {
    display: none !important;
  }

  .site-brand-user-avatar {
    width: 2rem;
    height: 2rem;
  }

  .site-nav {
    display: none !important;
  }

  nav.tabs.youtube-tabs.mz-tab-strip-yamap,
  .youtube-tabs.mz-tab-strip-yamap {
    /* 大会動画の分類は、右へスワイプしないと見えない設計にしない。
       初見でも全分類を発見できるよう、スマホでは常に一列に収める。 */
    display: grid;
    grid-template-columns: 1.35fr 1fr 0.82fr;
    gap: 4px;
    overflow: visible;
    margin-bottom: 0.38rem;
    padding: 4px;
    border: none;
    border-radius: 12px;
    background: rgba(15, 33, 56, 0.06);
    max-width: 100%;
    min-width: 0;
  }

  /* 大会動画はPOVを含む4分類。日本語の長い「マーチング等」を保ちながら
     「海外」と「POV」をそれぞれ独立して発見できる幅にする。 */
  #page-videos nav.tabs.youtube-tabs.mz-tab-strip-yamap[aria-label="大会動画の分類"] {
    grid-template-columns: 1.35fr 1fr 0.82fr 0.68fr;
  }

  nav.tabs.youtube-tabs.mz-tab-strip-yamap::-webkit-scrollbar,
  .youtube-tabs.mz-tab-strip-yamap::-webkit-scrollbar {
    display: none;
  }

  nav.tabs.youtube-tabs.mz-tab-strip-yamap .youtube-tab-btn,
  nav.tabs.youtube-tabs.mz-tab-strip-yamap button[role="tab"],
  .youtube-tabs.mz-tab-strip-yamap .youtube-tab-btn,
  .youtube-tabs.mz-tab-strip-yamap button[role="tab"] {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    flex: 1 1 0;
    border: none !important;
    border-radius: 9px !important;
    background: none !important;
    box-shadow: none !important;
    padding: 0.62rem 0.24rem;
    margin-bottom: 0;
    color: var(--muted);
    font-weight: 500;
    border-bottom: none !important;
    white-space: nowrap;
    max-width: none;
  }

  nav.tabs.youtube-tabs.mz-tab-strip-yamap .youtube-tab-btn[aria-selected="true"],
  nav.tabs.youtube-tabs.mz-tab-strip-yamap button[role="tab"][aria-selected="true"],
  .youtube-tabs.mz-tab-strip-yamap .youtube-tab-btn[aria-selected="true"],
  .youtube-tabs.mz-tab-strip-yamap button[role="tab"][aria-selected="true"] {
    color: var(--navy) !important;
    font-weight: 700 !important;
    background: #fff !important;
    box-shadow: 0 1px 3px rgba(15, 33, 56, 0.14) !important;
  }

  /* 3分類を表示するため、長い補足は読み上げ名に残して視覚上だけ省略する。 */
  nav.tabs.youtube-tabs.mz-tab-strip-yamap .tabs-tab-cross-sub,
  .youtube-tabs.mz-tab-strip-yamap .tabs-tab-cross-sub {
    display: none;
  }

  .media-jump-links.youtube-tabs.mz-tab-strip-yamap {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0 0.9rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0;
  }

  .media-jump-links.youtube-tabs.mz-tab-strip-yamap::-webkit-scrollbar {
    display: none;
  }

  .media-jump-links.youtube-tabs.mz-tab-strip-yamap .media-jump-tab {
    text-decoration: none;
    padding: 0.52rem 0.35rem;
    margin-bottom: -1px;
    color: var(--muted);
    font-weight: 500;
    border-bottom: 3px solid transparent;
    gap: 0.45em;
  }

  .media-jump-links.youtube-tabs.mz-tab-strip-yamap .media-jump-tab.media-jump-tab--active {
    color: var(--text);
    font-weight: 700;
    border-bottom-color: var(--text);
  }

  .result-sort-bar {
    padding-left: 0;
    padding-right: 0;
  }
}

.site-brand-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.38rem 0.82rem;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-decoration: none;
  border-radius: 7px;
  border: 1px solid transparent;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    opacity 0.15s ease;
}

.site-brand-action-btn--secondary {
  color: var(--text);
  background: transparent;
  border-color: rgba(0, 0, 0, 0.12);
}

.site-brand-action-btn--secondary:hover {
  background: rgba(0, 0, 0, 0.04);
}

.site-brand-action-btn--accent {
  color: #1a1410;
  background: linear-gradient(180deg, var(--yellow) 0%, #f0cf4f 100%);
  border-color: rgba(212, 170, 0, 0.55);
}

.site-brand-action-btn--accent:hover {
  filter: brightness(1.04);
}

.page-auth-entry .auth-entry-panel {
  padding-top: 0.85rem;
  padding-bottom: 2rem;
}

.auth-inapp-browser-notice {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid #e8b4b8;
  background: #fff5f6;
  color: #5c2a2e;
  font-size: 0.9rem;
  line-height: 1.55;
}

.auth-inapp-browser-notice__text {
  margin: 0 0 0.65rem;
}

.auth-inapp-browser-notice__copy {
  font-size: 0.85rem;
}

.mz-inapp-browser-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200000;
  padding: 0.85rem 0.9rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.99) 100%);
  border-top: 1px solid rgba(30, 58, 95, 0.14);
  box-shadow: 0 -4px 20px rgba(30, 58, 95, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

html.mz-inapp-browser-banner-visible main {
  padding-bottom: calc(6.5rem + env(safe-area-inset-bottom, 0px));
}

.mz-inapp-browser-banner__inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.mz-inapp-browser-banner__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--accent-strong, #1e3a5f);
}

.mz-inapp-browser-banner__desc {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #475569;
}

.mz-inapp-browser-banner__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.55rem 0.75rem;
}

.mz-inapp-browser-banner__copy {
  border: 1px solid rgba(30, 58, 95, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-strong, #1e3a5f);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.85rem;
  cursor: pointer;
}

.mz-inapp-browser-banner__copy:hover {
  background: rgba(30, 58, 95, 0.06);
}

.mz-inapp-browser-banner__dismiss {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mz-inapp-browser-banner__dismiss:hover {
  color: #334155;
}

/* 旧全画面オーバーレイ（1.26.40 で廃止）— キャッシュ互換で非表示 */
.mz-inapp-browser-overlay,
html.mz-inapp-browser-blocked .site-brand,
html.mz-inapp-browser-blocked .site-nav,
html.mz-inapp-browser-blocked .site-mobile-drawer,
html.mz-inapp-browser-blocked main {
  display: none !important;
}

.mz-dialog-overlay.mz-youtube-embed-overlay {
  z-index: 12950;
  align-items: center;
  justify-content: center;
  padding: max(0.5rem, env(safe-area-inset-top, 0px)) max(0.5rem, env(safe-area-inset-right, 0px))
    max(0.5rem, env(safe-area-inset-bottom, 0px)) max(0.5rem, env(safe-area-inset-left, 0px));
}

.mz-dialog-overlay.mz-youtube-embed-overlay .mz-dialog {
  width: min(1200px, 98vw);
  max-height: min(94dvh, 980px);
  border-radius: 12px;
  border-bottom: 1px solid rgba(25, 40, 72, 0.12);
  box-shadow: 0 22px 60px rgba(10, 20, 40, 0.28);
}

.mz-dialog--youtube-embed {
  max-width: min(1200px, 98vw);
  width: 100%;
}

.mz-youtube-embed-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.35;
  font-size: clamp(0.62rem, 1.8vw, 0.68rem);
  font-weight: 600;
}

.mz-dialog-overlay.mz-youtube-embed-overlay .mz-dialog-head {
  padding: 0.4rem 0.65rem 0.35rem;
}

.mz-youtube-embed-body {
  padding: 0;
}

.mz-youtube-embed-frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.mz-youtube-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.mz-youtube-embed-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.55rem;
  padding: 0.45rem 0.75rem 0.65rem;
}

.mz-youtube-embed-foot-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
}

.mz-youtube-embed-quality-hint {
  margin: 0;
  flex: 1 1 100%;
  min-width: 0;
  font-size: 0.65rem;
  line-height: 1.35;
  color: var(--muted);
}

.mz-youtube-embed-fullscreen-btn,
.mz-youtube-embed-open-external,
.mz-youtube-embed-copy-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  font: inherit;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.mz-youtube-embed-fullscreen-btn {
  border: 1px solid var(--nav-pill-border);
  background: linear-gradient(180deg, #ffe8b8 0%, #f5a623 100%);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(232, 149, 32, 0.28);
}

.mz-youtube-embed-fullscreen-btn:hover {
  filter: brightness(1.03);
}

.mz-youtube-embed-fullscreen-btn:active {
  transform: translateY(1px);
}

.mz-youtube-embed-open-external {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.mz-youtube-embed-copy-link {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.mz-youtube-embed-copy-link:hover {
  background: rgba(30, 79, 214, 0.08);
}

.mz-youtube-embed-open-external:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.03);
}

.mz-youtube-embed-frame-wrap:fullscreen,
.mz-youtube-embed-frame-wrap:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  background: #000;
}

.mz-youtube-embed-frame-wrap:fullscreen .mz-youtube-embed-frame,
.mz-youtube-embed-frame-wrap:-webkit-full-screen .mz-youtube-embed-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (min-width: 600px) {
  .mz-youtube-embed-quality-hint {
    flex: 1 1 8rem;
  }

  .mz-youtube-embed-foot-actions {
    flex: 0 0 auto;
    width: auto;
    justify-content: flex-end;
  }

  .mz-youtube-embed-fullscreen-btn,
  .mz-youtube-embed-open-external,
  .mz-youtube-embed-copy-link {
    flex: 0 0 auto;
    padding: 0.3rem 0.9rem;
    font-size: 0.68rem;
  }
}

@media (min-width: 600px) {
  .mz-dialog-overlay.mz-youtube-embed-overlay .mz-dialog {
    width: min(1200px, 98vw);
  }
}

@media (max-width: 599px) {
  .mz-dialog-overlay.mz-youtube-embed-overlay {
    align-items: center;
    justify-content: center;
    padding: max(0.35rem, env(safe-area-inset-top, 0px)) 0 max(0.35rem, env(safe-area-inset-bottom, 0px));
  }

  .mz-dialog-overlay.mz-youtube-embed-overlay .mz-dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(92dvh, calc(100dvh - 0.5rem));
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(25, 40, 72, 0.12);
  }

  .mz-dialog-overlay.mz-youtube-embed-overlay .mz-dialog-head {
    padding: 0.45rem 0.55rem 0.4rem;
  }

  .mz-youtube-embed-foot {
    padding: 0.35rem 0.55rem 0.55rem;
  }
}

html.mz-youtube-embed-open {
  overflow: hidden;
}

/* ---------- ミニプレイヤー(2026-07-23) ----------
   モーダルを畳んで右下の小窓で再生を続ける。オーバーレイは透明+クリック透過にし、
   小窓だけが操作を受ける。タブバーとセーフエリアの上に載せる */
.mz-dialog-overlay.mz-youtube-embed-overlay.mz-yt-mini {
  pointer-events: none;
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  padding: 0;
}
.mz-dialog-overlay.mz-youtube-embed-overlay.mz-yt-mini .mz-dialog {
  /* 位置と見た目のみ。寸法(width/left/top)は既存のフルサイズ用ルールと
     競合して負けるため、JS側でインライン指定する(2026-07-23) */
  pointer-events: auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 32px rgba(10, 20, 40, 0.35);
  animation: mzYtMiniIn 0.18s ease-out;
}
@keyframes mzYtMiniIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.mz-dialog-overlay.mz-youtube-embed-overlay.mz-yt-mini .mz-dialog-head,
.mz-dialog-overlay.mz-youtube-embed-overlay.mz-yt-mini .mz-dialog-foot {
  display: none;
}

/* 小窓ヘッダー(縮小中だけ表示) */
.mz-yt-mini-bar {
  display: none;
}
.mz-dialog-overlay.mz-youtube-embed-overlay.mz-yt-mini .mz-yt-mini-bar {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.3rem 0.25rem 0.55rem;
  background: #fff;
}
.mz-yt-mini-bar-title {
  flex: 1;
  min-width: 0;
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mz-yt-mini-bar-btn {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}
.mz-yt-mini-bar-btn:active {
  background: rgba(25, 40, 72, 0.08);
}

/* フッターの「小さくして見る」は全画面ボタンと同じ見た目の系統に */
.mz-youtube-embed-mini-btn {
  border: 1px solid rgba(25, 40, 72, 0.22);
  border-radius: 8px;
  background: #fff;
  padding: 0.35rem 0.6rem;
  font-size: 0.68rem;
  font-weight: 600;
  cursor: pointer;
}

.auth-entry-lead strong {
  font-weight: 700;
}

.auth-entry-actions {
  display: flex;
  justify-content: center;
  margin: 1.25rem 0 0;
}

.auth-entry-switch {
  text-align: center;
  margin: 1rem 0 0;
  font-size: 0.9rem;
}

.auth-entry-switch .static-panel-link {
  font-weight: 600;
}

.auth-popup-hint {
  margin-top: -0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
}

.auth-google-notice {
  margin: 0.5rem 0 0.25rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  text-align: center;
}

.auth-entry-msg {
  min-height: 1.2em;
}

.auth-entry-signup-consent-block {
  margin-top: 1rem;
}

.auth-signup-attributes-block {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.auth-signup-attributes-heading {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
}

.profile-form-attributes-block {
  margin: 0.75rem 0;
}

.profile-form-attributes-heading {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
}

/* プロフィール属性：バッジ（ピル）で複数選択 */
.mz-profile-attr-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.5rem;
  align-items: center;
}

.mz-profile-attr-badges--signup {
  gap: 0.42rem 0.48rem;
}

.mz-profile-attr-badge {
  position: relative;
  display: inline-block;
  margin: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.mz-profile-attr-badge__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mz-profile-attr-badge__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.05rem;
  padding: 0.32rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--text);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--border);
  border-radius: 9999px;
  box-shadow: 0 1px 0 rgba(15, 33, 56, 0.06);
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}

.mz-profile-attr-badge:hover .mz-profile-attr-badge__face {
  border-color: rgba(32, 69, 111, 0.35);
  background: rgba(255, 255, 255, 0.85);
}

.mz-profile-attr-badge__input:checked + .mz-profile-attr-badge__face {
  color: #fff;
  background: linear-gradient(135deg, #1a3a5c 0%, #20456f 100%);
  border-color: rgba(15, 33, 56, 0.35);
  box-shadow: 0 1px 2px rgba(15, 33, 56, 0.18);
}

.mz-profile-attr-badge__input:focus-visible + .mz-profile-attr-badge__face {
  outline: 2px solid var(--link, #2563eb);
  outline-offset: 2px;
}

.mz-profile-attr-badge__input:active + .mz-profile-attr-badge__face {
  transform: scale(0.98);
}

#auth-signup-consent-msg {
  text-align: center;
  color: #cc1f1f;
  font-weight: 700;
  margin: 0.78rem 0 0.28rem;
}

.btn-auth-google-entry {
  min-width: min(280px, 88vw);
  font-size: 0.93rem;
  padding-left: 1.35rem;
  padding-right: 1.35rem;
}

.site-logo-heading {
  margin: 0;
  line-height: 0;
  text-align: center;
}

.site-logo-link {
  display: inline-block;
  line-height: 0;
  text-decoration: none;
  border-radius: 10px;
  outline-offset: 4px;
}

.site-logo-link:focus-visible {
  outline: 2px solid var(--accent-strong);
}

.site-logo-link:hover .site-logo {
  opacity: 0.94;
}

.site-logo {
  display: block;
  /* 旧: min(92vw, 360px) × 0.7 → 表示幅の約7割 */
  max-width: min(calc(92vw * 0.7), 252px);
  width: auto;
  height: auto;
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 2px solid var(--yellow);
  background: var(--nav-bg);
}

.site-nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.55rem 1.5rem;
}

.site-nav-link {
  display: inline-block;
  padding: 0.4rem 0.75rem;
  font-size: 0.88rem;
  color: rgba(255, 250, 240, 0.85);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
}

/* 管理者専用ナビ(管理/UGC)は JS が admin 判定するまで hidden 属性で隠れているが、
   .site-nav-link / .site-mobile-drawer-nav-link の display 指定が UA の [hidden] を
   打ち消し、認証確定前に一瞬見えてしまう(FOUC)。data-admin-only + hidden の間は
   確実に隠す。admin 確定時は JS が hidden 属性を外すのでこのルールは外れ表示される。 */
[data-admin-only][hidden] {
  display: none !important;
}

.site-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.site-nav-link.site-nav-link-active {
  color: var(--nav-pill-text);
  background: var(--nav-pill-bg);
  border-color: var(--nav-pill-border);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(15, 33, 56, 0.06);
}

.site-brand-main-row {
  width: 100%;
  overflow: visible;
}

.site-mobile-nav-toggle {
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.site-mobile-nav-toggle:hover {
  background: rgba(0, 0, 0, 0.04);
}

/* FA 付与時は CSS ハンバーガーを隠す（二重表示防止） */
.site-mobile-nav-toggle:has(.mz-ui-icon) .site-brand-hamburger,
.site-brand-account-menu-btn:has(.mz-ui-icon) .site-brand-hamburger {
  display: none;
}

.site-mobile-nav-toggle .mz-ui-icon,
.site-brand-account-menu-btn .mz-ui-icon {
  margin-right: 0;
}

.site-mobile-drawer[hidden] {
  display: none !important;
}

.site-mobile-drawer:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 2147483640;
  isolation: isolate;
}

.site-mobile-drawer:not([hidden]) .site-mobile-drawer-backdrop {
  opacity: 0;
  transition: opacity 0.38s ease-out;
}

.site-mobile-drawer--open .site-mobile-drawer-backdrop {
  opacity: 1;
}

.site-mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(12, 18, 32, 0.42);
  cursor: pointer;
}

.site-mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: min(92vw, 400px);
  background: var(--panel);
  box-shadow: -10px 0 36px rgba(12, 20, 42, 0.2);
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  min-height: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform 0.38s ease-out;
  will-change: transform;
}

.site-mobile-drawer--open .site-mobile-drawer-panel {
  transform: translate3d(0, 0, 0);
}

.site-mobile-drawer-head {
  display: flex;
  justify-content: flex-end;
  padding: 0.28rem 0.35rem 0.05rem;
  position: sticky;
  top: 0;
  background: var(--panel);
  z-index: 1;
  flex-shrink: 0;
}

.site-mobile-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border: none;
  background: transparent;
  font-size: 1.28rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
  border-radius: 8px;
}

.site-mobile-drawer-close:hover {
  background: var(--panel-tint);
}

.site-mobile-drawer-auth {
  padding: 0 0.6rem 0.55rem;
  flex-shrink: 0;
}

.site-mobile-drawer-section-label {
  margin: 0;
  padding: 0.05rem 0.6rem 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  flex-shrink: 0;
}

.site-mobile-drawer-lead {
  margin: 0 0 0.55rem;
  font-size: 0.8rem;
  line-height: 1.48;
  color: var(--text);
}

.site-mobile-drawer-cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
}

.site-mobile-drawer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35em;
  padding: 0.48rem 0.75rem;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 8px;
  border: 1px solid transparent;
  text-align: center;
}

.site-mobile-drawer-btn--primary {
  background: var(--text);
  color: var(--white);
}

.site-mobile-drawer-btn--primary:hover {
  opacity: 0.92;
}

.site-mobile-drawer-btn--secondary {
  background: rgba(15, 33, 56, 0.07);
  color: var(--text);
  border-color: rgba(15, 33, 56, 0.1);
}

.site-mobile-drawer-btn--secondary:hover {
  background: rgba(15, 33, 56, 0.1);
}

.site-mobile-drawer-user-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.45rem;
}

.site-mobile-drawer-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.site-mobile-drawer-user-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.site-mobile-drawer-mypage-link {
  display: inline-block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.site-mobile-drawer-mypage-link:hover {
  text-decoration: underline;
}

.site-mobile-drawer-user-actions {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.site-mobile-drawer-menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.45rem 0.08rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border-radius: 6px;
}

.site-mobile-drawer-menu-item:hover {
  background: var(--panel-tint);
}

a.site-mobile-drawer-menu-item:hover {
  text-decoration: none;
}

.site-mobile-drawer-menu-item--danger {
  color: #b91c1c;
}

.site-mobile-drawer-divider {
  height: 1px;
  margin: 0.35rem 0.6rem 0.35rem;
  flex-shrink: 0;
  background: var(--border);
}

.site-mobile-drawer-nav {
  display: flex;
  flex-direction: column;
  padding: 0.1rem 0.6rem 0.65rem;
  gap: 0;
  flex-shrink: 0;
}

.site-mobile-drawer-nav-link {
  display: block;
  padding: 0.48rem 0.22rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.site-mobile-drawer-nav-link:hover {
  background: var(--panel-tint);
}

.site-mobile-drawer-nav-link--active {
  color: var(--accent-strong);
  background: rgba(30, 79, 214, 0.08);
}

.site-mobile-drawer-nav-sub {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.site-mobile-drawer-nav-parent {
  display: block;
  padding: 0.32rem 0.22rem 0.12rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.site-mobile-drawer-nav-link--sub {
  padding-left: 1rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  font-size: 0.84rem;
}

body.mz-mobile-drawer-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .site-mobile-drawer-panel,
  .site-mobile-drawer:not([hidden]) .site-mobile-drawer-backdrop {
    transition-duration: 0.01ms !important;
  }
}

.footer-copy {
  margin: 0.35rem 0 0 !important;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-app-ver {
  margin-left: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  color: var(--muted);
  opacity: 0.9;
  white-space: nowrap;
  vertical-align: baseline;
}

.auth-register-block {
  margin: 0 0 0.5rem;
}

.auth-register-lead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.auth-inline-link {
  color: var(--link);
  font-weight: 600;
  text-decoration: none;
}

.auth-inline-link:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.auth-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  cursor: pointer;
}

.auth-consent-label--optional {
  opacity: 0.95;
}

.auth-consent-optional-note {
  margin: 0.15rem 0 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
}

.mz-settings-b-test-section {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border, #e8e4dc);
}

.mz-settings-b-test-note {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.mz-b-test-dialog-actions {
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.auth-consent-label input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.community-consent-label:last-of-type {
  margin-bottom: 0;
}

.community-login-consent-block {
  margin: 0 0 0.65rem;
  text-align: left;
}

.community-login-consent-lead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--muted);
}

.profile-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-tint);
  object-fit: cover;
}

.profile-main {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.profile-name {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.profile-form {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.5rem;
}

.profile-upload-hint {
  margin: -0.15rem 0 0.35rem;
}

.profile-form-preview-row {
  margin: 0 0 0.65rem;
}

.profile-form-preview--avatar {
  display: block;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border, #e2e8f0);
}

.profile-form-preview--cover {
  display: block;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 2.35 / 1;
  max-height: none;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border, #e2e8f0);
}

.profile-form-cover-hint {
  margin: 0.2rem 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted, #64748b);
}

/* ── クロップモーダル ── */
.mz-dialog--crop {
  width: min(92vw, 720px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.mz-crop-body {
  flex: 1 1 auto;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  min-height: 280px;
  max-height: 60vh;
  width: 100%;
  box-sizing: border-box;
}
.mz-crop-container {
  width: 100%;
  height: 100%;
  max-height: 60vh;
  box-sizing: border-box;
}
#mz-crop-image {
  display: block;
  max-width: 100%;
  height: auto;
}
.mz-crop-container img {
  display: block;
  max-width: 100%;
}
.mz-crop-zoom-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 8px 16px 0;
  background: var(--surface, #fff);
}
.mz-crop-zoom-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border, #e2e8f0);
  background: var(--surface-alt, #f1f5f9);
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.mz-crop-zoom-btn:active {
  background: var(--border, #e2e8f0);
}
.mz-crop-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 8px 16px 12px;
  background: var(--surface, #fff);
}
.mz-crop-btn--cancel {
  background: var(--surface-alt, #f1f5f9) !important;
  color: var(--text, #1e293b) !important;
}
.mz-crop-btn--confirm {
  background: var(--accent, #2563eb) !important;
  color: #fff !important;
}
.mz-crop-avatar .cropper-view-box,
.mz-crop-avatar .cropper-face {
  border-radius: 50%;
}

.mz-crop-container.mz-crop-cover {
  width: min(100%, 720px);
  margin: 0 auto;
  aspect-ratio: 2.35 / 1;
  max-height: min(60vh, calc(100vw * 4 / 13));
  height: auto;
}

/* Cropper 本体だけコンテナに合わせる（crop-box 等を 100% 固定すると枠と出力がずれる） */
.mz-crop-container.mz-crop-cover > .cropper-container {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 599px) {
  .mz-dialog--crop {
    width: 100%;
    max-height: 96vh;
  }

  .mz-crop-body {
    min-height: 50vh;
    max-height: 58vh;
    align-items: stretch;
  }

  .mz-crop-container {
    min-height: 300px;
    height: 50vh;
    max-height: 58vh;
  }

  .mz-crop-container.mz-crop-cover {
    width: 100%;
    max-width: 100%;
    min-height: 300px;
    height: max(300px, min(50vh, calc((100vw - 2rem) / 2.35)));
    max-height: 58vh;
    aspect-ratio: 2.35 / 1;
  }
}

.mz-picker-new-oshi-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.mz-picker-new-oshi-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  box-sizing: border-box;
  resize: vertical;
  min-height: 3rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.15));
  border-radius: 8px;
  font: inherit;
}

.top-page-mll-subcaption {
  margin: 0.35rem 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.mz-profile-dialog-form {
  margin-top: 0;
}
.mz-profile-dialog-form input[type="text"],
.mz-profile-dialog-form input[type="file"],
.mz-profile-dialog-form select,
.mz-profile-dialog-form textarea {
  box-sizing: border-box;
  max-width: 100%;
}

.mz-dialog-overlay--legal-gate {
  z-index: 13100;
}

.mz-dialog-overlay--legal-gate .mz-dialog {
  max-height: min(90vh, 620px);
}

.mz-legal-gate-lead {
  margin-top: 0;
  font-size: 0.95rem;
}

.mz-legal-gate-bullets {
  margin: 0.5rem 0 0.75rem;
  padding-left: 1.25rem;
}

.mz-legal-gate-actions {
  margin-top: 1rem;
}

.auth-legal-summary-snippet {
  margin: 0.5rem 0 0.65rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #555);
}

.mz-dialog-overlay {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0;
  margin: 0;
  overflow: auto;
  z-index: 12800;
  background: rgba(12, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

html.mz-crop-dialog-open #mz-crop-dialog.mz-dialog-overlay:not([hidden]) {
  z-index: 13100;
}

.mz-dialog-overlay[hidden] {
  display: none !important;
}

.mz-dialog {
  box-sizing: border-box;
  width: 100%;
  max-height: 92vh;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
  border: 1px solid rgba(25, 40, 72, 0.12);
  border-bottom: none;
  background: var(--panel);
  box-shadow: 0 -8px 40px rgba(10, 20, 40, 0.2);
}

.mz-dialog--narrow {
  width: 100%;
}

@media (min-width: 600px) {
  .mz-dialog-overlay {
    align-items: center;
    padding: 1rem;
  }
  .mz-dialog {
    width: min(100%, 440px);
    max-height: min(88vh, 580px);
    border-radius: 12px;
    border-bottom: 1px solid rgba(25, 40, 72, 0.12);
    box-shadow: 0 22px 60px rgba(10, 20, 40, 0.28);
  }
  .mz-dialog--narrow {
    width: min(100%, 26rem);
  }

  .mz-dialog--profile-edit {
    width: min(100%, 44rem);
    max-height: min(92vh, 720px);
  }
}

@media (min-width: 1024px) {
  .mz-dialog--profile-edit {
    width: min(96vw, 58rem);
    max-height: min(94vh, 860px);
  }
}

@media (min-width: 1280px) {
  .mz-dialog--profile-edit {
    width: min(96vw, 64rem);
    max-height: min(94vh, 900px);
  }
}

html.mz-profile-dialog-open,
html.mz-profile-dialog-open body.mz-profile-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.mz-profile-dialog-open body.mz-profile-dialog-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

html.mz-profile-dialog-open .mz-dialog-overlay:not([hidden]) {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}

#mz-profile-dialog.mz-dialog-overlay {
  overflow: hidden;
  overscroll-behavior: none;
}

#mz-profile-dialog .mz-dialog {
  display: flex;
  flex-direction: column;
  max-height: min(92dvh, 920px);
}

#mz-profile-dialog .mz-dialog-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
  padding-bottom: 1rem;
}

#mz-profile-dialog .mz-dialog-foot {
  flex-shrink: 0;
  padding: 0.75rem 1rem;
  padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--panel, #fff);
}

#mz-profile-dialog .mz-profile-dialog-foot .search-share-row {
  margin-top: 0;
}

@media (max-width: 767px) {
  #mz-profile-dialog .mz-profile-dialog-foot .search-share-row .btn-share-search,
  #mz-profile-dialog .mz-profile-dialog-foot .search-share-row .btn-reset-search {
    width: 100%;
    box-sizing: border-box;
  }
}

.mz-ephemeral-toast {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(120%);
  z-index: 14000;
  max-width: min(92vw, 28rem);
  padding: 0.65rem 1.1rem;
  border-radius: 10px;
  border: 1px solid rgba(25, 40, 72, 0.14);
  background: var(--panel, #fffdf9);
  color: var(--text, #0f172a);
  font-size: 0.92rem;
  font-weight: 600;
  text-align: center;
  box-shadow: 0 12px 36px rgba(10, 20, 40, 0.22);
  pointer-events: none;
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
}

.mz-ephemeral-toast--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.mz-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fffdf9 0%, var(--panel) 100%);
}

.mz-dialog-title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.mz-dialog-close-btn {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  margin: -0.2rem -0.2rem 0 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}

.mz-dialog-close-btn:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text);
}

.mz-dialog-body {
  padding: 1rem 1rem 1.5rem;
  padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  overflow: auto;
  max-height: 78vh;
}

/* YouTube 埋め込みのみ — 共通 .mz-dialog-body の padding を上書き（他モーダルに影響しない） */
#mz-youtube-embed-overlay .mz-youtube-embed-body,
#mz-youtube-embed-overlay .mz-dialog-body.mz-youtube-embed-body {
  padding: 0;
  margin: 0;
  overflow: hidden;
  max-height: none;
}

@media (max-width: 599px) {
  #mz-youtube-embed-overlay.mz-dialog-overlay.mz-youtube-embed-overlay {
    align-items: center !important;
    justify-content: center !important;
    padding: max(0.35rem, env(safe-area-inset-top, 0px)) 0 max(0.35rem, env(safe-area-inset-bottom, 0px)) !important;
  }

  #mz-youtube-embed-overlay .mz-dialog,
  #mz-youtube-embed-overlay .mz-dialog.mz-dialog--youtube-embed,
  #mz-youtube-embed-overlay .mz-dialog--youtube-embed {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    border-left: none !important;
    border-right: none !important;
    box-shadow: none !important;
  }

  #mz-youtube-embed-overlay .mz-youtube-embed-body,
  #mz-youtube-embed-overlay .mz-dialog-body {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #mz-youtube-embed-overlay .mz-youtube-embed-frame-wrap {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
  }

  #mz-youtube-embed-overlay .mz-youtube-embed-frame {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #mz-youtube-embed-overlay .mz-dialog-head {
    padding: 0.45rem 0.55rem 0.4rem;
  }

  #mz-youtube-embed-overlay .mz-youtube-embed-foot {
    padding: 0.35rem 0.55rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  }
}
@media (min-width: 600px) {
  .mz-dialog-body {
    max-height: min(72vh, 480px);
    padding-bottom: 1.1rem;
  }
  .mz-dialog--profile-edit .mz-dialog-body {
    max-height: min(78vh, 640px);
  }
}

@media (min-width: 1024px) {
  .mz-dialog--profile-edit .mz-dialog-body {
    max-height: min(78vh, 720px);
  }
}

.mz-withdraw-done-actions {
  margin-top: 1rem;
}

.mz-dialog--settings {
  width: 100%;
}

/* 設定ダイアログはスマホでも中央表示（デフォルトの下寄せシートを使わない） */
#mz-settings-dialog.mz-dialog-overlay {
  align-items: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px)) 0.75rem
    max(0.75rem, env(safe-area-inset-bottom, 0px));
}

#mz-settings-dialog.mz-dialog-overlay .mz-dialog {
  width: min(100%, 26rem);
  max-height: min(88vh, 640px);
  border-radius: 12px;
  border-bottom: 1px solid rgba(25, 40, 72, 0.12);
  box-shadow: 0 22px 60px rgba(10, 20, 40, 0.28);
}

#mz-settings-dialog.mz-dialog-overlay .mz-dialog-body {
  max-height: min(72vh, 520px);
  padding-bottom: 1.1rem;
}

@media (min-width: 600px) {
  .mz-dialog--settings {
    width: min(100%, 44rem);
    max-height: min(92vh, 720px);
  }
  .mz-dialog--settings .mz-dialog-body {
    max-height: min(78vh, 640px);
  }
}

@media (min-width: 1024px) {
  .mz-dialog--settings {
    width: min(96vw, 58rem);
    max-height: min(94vh, 860px);
  }
  .mz-dialog--settings .mz-dialog-body {
    max-height: min(78vh, 720px);
  }
}

@media (min-width: 1280px) {
  .mz-dialog--settings {
    width: min(96vw, 64rem);
    max-height: min(94vh, 900px);
  }
}

html.mz-settings-dialog-open,
html.mz-settings-dialog-open body.mz-settings-dialog-open {
  overflow: hidden;
  overscroll-behavior: none;
}

html.mz-settings-dialog-open body.mz-settings-dialog-open {
  position: fixed;
  width: 100%;
  left: 0;
  right: 0;
}

html.mz-settings-dialog-open .mz-dialog-overlay:not([hidden]) {
  overflow-x: hidden;
  touch-action: pan-y;
}

.mz-settings-lead {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.62;
  color: var(--text);
}

.mz-settings-accordion-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  width: 100%;
}
.mz-settings-subheading--inline {
  margin: 0;
}
.mz-settings-accordion-icon {
  font-size: 0.85rem;
  transition: transform 0.2s;
}
.mz-settings-accordion-toggle[aria-expanded="true"] .mz-settings-accordion-icon {
  transform: rotate(90deg);
}
.mz-settings-accordion-body {
  padding-top: 0.5rem;
}

.mz-settings-vis-list {
  margin: 0;
  padding: 0;
}
.mz-settings-vis-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.35rem 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
}
.mz-settings-vis-toggle-btn:hover {
  background: rgba(0, 0, 0, 0.03);
}
.mz-settings-vis-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(25, 118, 210, 0.35);
  color: #0d47a1;
  background: rgba(25, 118, 210, 0.1);
}
.mz-settings-vis-badge--private {
  border-color: rgba(100, 116, 139, 0.3);
  color: #475569;
  background: rgba(100, 116, 139, 0.1);
}

.mz-profile-private-notice {
  margin: 0.75rem 0 0.5rem;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 8px;
}

.mz-settings-subheading {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.mz-settings-visibility-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.mz-settings-vis-fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.85rem 0.85rem;
  margin: 0.65rem 0 0.85rem;
  font-size: 0.88rem;
}

.mz-settings-vis-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.82rem;
}

.mz-settings-vis-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: 1rem;
  cursor: pointer;
}

.mz-settings-save-msg {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.mz-settings-danger-zone {
  margin-top: 0.5rem;
  padding: 0.2rem 0;
  border: 0;
  background: transparent;
}

.mz-settings-danger-lead {
  margin: 0 0 0.65rem !important;
  color: var(--muted);
  font-size: 0.8rem !important;
}

.page[hidden] {
  display: none !important;
}

.static-panel {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.25rem 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.static-panel-title {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.static-panel-lead {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.65;
}

.community-board-lead-main {
  margin-bottom: 0.75rem;
}

.community-updates {
  margin: 0.65rem 0 1rem;
  width: 100%;
}

.community-updates-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.community-updates-heading .mz-ui-icon {
  color: var(--blue);
  font-size: 0.85rem;
}

.community-updates-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.35rem;
  scrollbar-width: thin;
}

.community-updates-list {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0.1rem 0.15rem 0.1rem 0;
  width: max-content;
  max-width: none;
}

.community-updates-item {
  flex: 0 0 auto;
  width: min(88vw, 17.5rem);
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-md, 10px);
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.community-updates-line {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  word-break: break-word;
}

.community-updates-actor,
.community-updates-target {
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}

.community-updates-actor:hover,
.community-updates-target:hover {
  text-decoration: underline;
}

.community-board-guest-hint {
  margin: 0.5rem 0 0;
  color: var(--mz-text-muted, #666);
}

.community-theme-members-note {
  margin: 0.35rem 0 0.75rem;
  color: var(--mz-text-muted, #666);
}

.community-theme-lock-icon {
  display: inline-flex;
  margin-right: 0.25rem;
  font-size: 0.85em;
  vertical-align: middle;
}

.community-post-engage-primary .share-wrap {
  display: inline-flex;
  position: relative;
  flex: 0 0 auto;
  flex-shrink: 0;
  z-index: 5;
}

/* 掲示板: 下向きだとリスト枠に隠れる／ flex で幅が潰れる */
.community-post-engage .share-menu {
  top: auto;
  bottom: calc(100% + 4px);
  margin-top: 0;
  left: 0;
  right: auto;
  z-index: 100;
  min-width: 200px;
}

.mll-log-list-wrap:has(.share-menu:not([hidden])),
.community-thread:has(.share-menu:not([hidden])),
.community-thread-body:has(.share-menu:not([hidden])),
.community-post-engage:has(.share-menu:not([hidden])) {
  overflow: visible;
}

.community-compose-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin: 0.65rem 0 0.85rem;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

.community-open-compose-btn {
  white-space: nowrap;
}

.community-login-overlay {
  z-index: 12100;
}

.community-login-overlay .community-compose-backdrop {
  background: rgba(12, 16, 32, 0.82);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.community-login-dialog.community-compose-dialog {
  width: min(22rem, calc(100vw - 1.25rem));
  max-height: min(88vh, 560px);
  background: #fffdf9;
  border: 1px solid rgba(20, 32, 55, 0.14);
  box-shadow: 0 22px 56px rgba(10, 20, 40, 0.35);
}

.community-login-dialog .community-compose-dialog-head {
  padding: 0.5rem 0.7rem;
  background: #fffdf9;
  border-bottom-color: rgba(25, 40, 72, 0.12);
}

.community-login-dialog .community-login-dialog-brand {
  display: flex;
  justify-content: center;
  padding: 0.2rem 0.65rem 0;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(to bottom, #fff 0%, #f6f5fb 100%);
}

.community-login-dialog-logo-img {
  width: clamp(76px, 22vw, 120px);
  height: auto;
}

.community-login-preface {
  margin: 0 0 0.75rem;
  padding-bottom: 0.72rem;
  border-bottom: 1px solid rgba(25, 40, 72, 0.12);
}

.community-login-preface-title {
  margin: 0 0 0.5rem;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.52;
  color: var(--text);
}

.community-login-preface-line {
  margin: 0.38rem 0 0;
  font-size: 0.9rem;
  line-height: 1.52;
  color: var(--text);
}

.community-login-preface-line strong {
  font-weight: 700;
}

.community-login-dialog-lead {
  margin-top: 0;
  margin-bottom: 0.55rem;
  line-height: 1.62;
  font-size: 0.92rem;
  color: var(--text);
}

.community-login-dialog .community-compose-scroll {
  padding: 0.5rem 0.7rem 0.65rem;
  background: #fffdf9;
}

.community-login-dialog .community-login-consent-lead {
  color: var(--text);
  font-size: 0.86rem;
  line-height: 1.55;
}

.community-login-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
}

.community-login-modal-actions .btn-reset-search {
  min-height: auto;
}

.community-feed-msg {
  margin: 0 0 0.65rem;
  min-height: 1.25rem;
}

.community-hub-lead {
  margin-bottom: 0.35rem;
}

.community-hub {
  box-sizing: border-box;
  margin: 0 auto 1rem;
  padding: 1rem;
  max-width: 42rem;
  width: 100%;
}

@media (min-width: 900px) {
  .community-hub {
    max-width: min(1180px, calc(100% - 2.5rem));
    padding: 1.15rem 1.5rem 2rem;
  }

  .community-hub-tabs {
    max-width: 36rem;
  }

  .community-hub-panel--notes > .mll-panel,
  .community-hub-panel--board > .mll-panel {
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding: 1.1rem 0 1.5rem;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .community-hub-panel--events .mll-panel,
  .community-hub-panel--events .calendar-events-panel {
    max-width: none;
  }
}

.community-hub-tabs {
  margin-top: 0.65rem;
  margin-bottom: 1.1rem;
}

.community-hub-panel {
  padding-top: 0.35rem;
}

/* MarchinZ Note 公開一覧（コミュニティ・ノートタブ） */
.mln-feed-msg {
  margin: 0 0 0.85rem;
  min-height: 1.25rem;
  font-size: 0.86rem;
  color: var(--muted);
}

.mln-feed-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  max-width: 40rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .mln-feed-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
    max-width: 52rem;
  }
}

@media (min-width: 1024px) {
  .mln-feed-grid {
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.35rem 1.2rem;
    max-width: none;
    margin: 0;
  }
}

.mln-feed-card {
  margin: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  height: 100%;
  box-shadow: 0 1px 10px rgba(15, 33, 56, 0.07);
}

@media (min-width: 1024px) {
  .mln-feed-card {
    border-radius: 12px;
    border-color: rgba(15, 33, 56, 0.1);
    box-shadow: 0 4px 20px rgba(15, 33, 56, 0.08);
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  }

  .mln-feed-card--openable:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 79, 214, 0.22);
    box-shadow: 0 14px 32px rgba(15, 33, 56, 0.12);
  }

  .mln-feed-card-cover {
    margin: 0;
    border-radius: 0;
    aspect-ratio: 4 / 3;
  }

  .mln-feed-card-body {
    padding: 0.85rem 1rem 1rem;
  }

  .mln-feed-card-head {
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
  }

  .mln-feed-card-head-aside {
    flex-direction: row;
    align-items: center;
    width: auto;
    max-width: none;
    gap: 0.55rem;
  }

  .mln-feed-card-head-aside .mln-feed-author-name-link {
    text-align: left;
    font-size: 0.82rem;
    word-break: normal;
    max-width: 8.5rem;
  }

  .mln-feed-card-title {
    font-size: 1.1rem;
    line-height: 1.42;
  }

  .mln-feed-card-subline {
    font-size: 0.82rem;
  }

  .community-hub-panel--notes .mln-feed-search {
    max-width: 28rem;
    margin-left: 0;
    margin-right: 0;
  }

  .community-hub-panel--moments .mln-feed-search {
    max-width: 28rem;
    margin-left: 0;
    margin-right: 0;
  }

  .mlm-feed-create-row {
    margin: 0.75rem 0 1rem;
  }

  .community-hub-panel--moments .static-panel-lead {
    font-size: 1rem;
    color: rgba(12, 15, 20, 0.72);
  }

  .community-hub-panel--notes .static-panel-lead {
    font-size: 1rem;
    color: rgba(12, 15, 20, 0.72);
    max-width: 42em;
  }
}

.mln-feed-card--media {
  border-color: rgba(30, 79, 214, 0.18);
}

.mln-feed-card--openable {
  cursor: pointer;
}

.mln-feed-card--openable .marchinz-protected-photo-overlay {
  pointer-events: none;
}

.mln-feed-card--openable .mln-feed-card-cover,
.mln-feed-card--openable .mln-feed-card-title {
  cursor: pointer;
}

.mln-feed-card--openable:focus-visible {
  outline: 2px solid var(--accent, #1e4fd6);
  outline-offset: 2px;
}

.mln-feed-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 8px;
  margin: 0.55rem 0.5rem 0.35rem;
  background: var(--row-alt, #eceff1);
}

.mln-feed-card-cover .marchinz-protected-photo-inner,
.mln-feed-card-cover-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.mln-feed-card-title-text {
  color: inherit;
}

.mln-note-viewer {
  max-width: min(44rem, calc(100vw - 1rem));
}

.mln-note-viewer-body {
  max-height: min(88vh, 820px);
  overflow-y: auto;
}

/* Note 閲覧: シェアは「閉じる」の直前。下向きだと閉じるボタンに隠れる */
.mln-note-viewer-actions .share-wrap {
  position: relative;
  z-index: 5;
}

.mln-note-viewer-actions .share-menu {
  top: auto;
  bottom: calc(100% + 4px);
  margin-top: 0;
  left: 0;
  right: auto;
  z-index: 50;
}

.eld-cover-pick {
  margin: 0.5rem 0 0;
}

.eld-cover-pick-label {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.eld-cover-pick-note {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.eld-cover-pick-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.eld-cover-pick-btn {
  position: relative;
  padding: 0;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  cursor: pointer;
  width: 4.5rem;
  height: 4.5rem;
  overflow: hidden;
}

.eld-cover-pick-btn.is-active {
  border-color: #6f42c1;
  box-shadow: 0 0 0 2px rgba(111, 66, 193, 0.25);
}

.eld-cover-pick-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.eld-cover-pick-badge {
  position: absolute;
  left: 0.2rem;
  bottom: 0.2rem;
  padding: 0.08rem 0.35rem;
  font-size: 0.62rem;
  font-weight: 700;
  border-radius: 4px;
  background: rgba(111, 66, 193, 0.92);
  color: #fff;
}

.eld-card-photo-cell--cover {
  width: 100%;
  max-width: 100%;
}

.eld-card-media.mln-feed-card-cover {
  margin: 0.45rem 0.5rem 0.25rem;
}

.mln-feed-card-media {
  margin: 0.55rem 0 0.15rem;
  width: 100%;
}

.mln-feed-card-media-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  padding: 0 0.35rem;
}

.mln-feed-card-media-inner--single .mln-feed-card-photo-cell {
  width: 100%;
  max-width: 100%;
}

.mln-feed-card-photo-cell {
  flex: 0 1 auto;
  max-width: calc(50% - 0.25rem);
  display: flex;
  justify-content: center;
}

.mln-feed-card-photo-img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: min(28rem, 72vh);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: var(--row-alt);
}

.mln-feed-card-title-link {
  color: inherit;
  text-decoration: none;
}

.mln-feed-card-title-link:hover {
  color: var(--link);
}

.mln-feed-card-body {
  flex: 1 1 auto;
  padding: 0.72rem 0.82rem 0.88rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.mln-feed-author {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.mln-feed-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mln-feed-author-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mln-feed-card-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.15rem 0 0.1rem;
  min-width: 0;
}

.mln-feed-card-head-aside {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  width: 4.25rem;
  max-width: 4.75rem;
}

.mln-feed-card-head-aside .mln-feed-author-name-link {
  display: block;
  width: 100%;
  font-size: 0.72rem;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  word-break: break-all;
}

.mln-feed-card-head-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.mln-feed-card-head-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mln-feed-card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text);
}

.mln-feed-card-subline {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.mln-feed-mll-log-label {
  flex: 0 0 auto;
}

.mln-feed-card-subline-event,
.mln-feed-card-subline-date {
  font-weight: 500;
}

.mln-feed-part-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 999px;
  border: 1px solid rgba(111, 66, 193, 0.35);
  background: rgba(111, 66, 193, 0.08);
  color: #5b21b6;
}

.mln-feed-part-chip--unknown,
.user-profile-mll-role-hint--unknown {
  border-color: rgba(180, 83, 9, 0.45);
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

/* 未来日のログ=「予定」(2026-08-06 優さん指示)。実績の色(既定の.user-profile-mll-role-hint)
   と区別できるよう、まだ起きていないことが分かる控えめな青系に */
.user-profile-mll-role-hint--future {
  color: #1d4ed8;
  font-weight: 600;
}

.eld-participation-current-unknown {
  margin: 0 0 0.5rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #92400e;
}

.mln-feed-card-meta {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}

.mln-feed-card-excerpt {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.8rem;
  line-height: 1.54;
  color: var(--text);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 4;
  -webkit-line-clamp: 4;
  overflow: hidden;
}

.mln-feed-card-cta-wrap {
  display: none;
}

.mln-feed-author-name-link,
.eld-card-author-name.mln-feed-author-name-link {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}

.mln-feed-author-name-link:hover,
.eld-card-author-name.mln-feed-author-name-link:hover {
  color: var(--link);
  text-decoration: underline;
}

.mln-feed-empty {
  grid-column: 1 / -1;
  margin: 1rem 0;
  padding: 1rem 1.25rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.89rem;
  color: var(--muted);
}

.mln-feed-search,
.eld-search-input {
  display: block;
  width: 100%;
  max-width: 28rem;
  margin: 0 auto 1rem;
  box-sizing: border-box;
}

.mln-feed-card-event,
.eld-event-card-event {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.mz-title-like-row,
.mln-feed-card-title-row,
.user-profile-mll-event-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
}

.mln-feed-card-head .mln-feed-card-title-row {
  align-items: center;
}

.mln-feed-card-title-row .mln-feed-card-title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
}

.mz-inline-like-host .community-like-row,
.eld-card-like-host .community-like-row,
.mll-log-like-host .community-like-row {
  margin: 0;
}

.calendar-ev-title-row .calendar-ev-like-host {
  flex: 0 0 auto;
  align-self: center;
}

.mln-feed-card-engage,
.eld-card-engage {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.mln-feed-card-media--placeholder,
.eld-card-media--placeholder {
  background: var(--row-alt);
}

.mln-feed-card-photo-img--placeholder,
.eld-card-photo-img--placeholder {
  max-height: 10rem;
  object-fit: contain;
  padding: 1rem;
  opacity: 0.85;
}

.eld-card-author,
.mln-feed-author {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.mln-feed-author--compact {
  margin-top: 0.45rem;
  padding-top: 0.45rem;
}

.eld-card-author-avatar,
.mln-feed-author-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.eld-card-author-name,
.mln-feed-author-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.eld-title-input {
  margin-bottom: 0.35rem;
}

.eld-view-head {
  margin-bottom: 0.75rem;
}

.eld-view-title {
  margin: 0 0 0.25rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
}

.eld-view-event {
  margin: 0 0 0.35rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.eld-view-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.mln-feed-empty--err {
  border-color: rgba(217, 119, 6, 0.45);
}

html.community-compose-active,
body.community-compose-active,
html.calendar-ev-compose-active,
body.calendar-ev-compose-active {
  overflow: hidden;
}

.community-compose-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: max(0.45rem, env(safe-area-inset-top)) max(0.45rem, env(safe-area-inset-right))
    max(0.45rem, env(safe-area-inset-bottom)) max(0.45rem, env(safe-area-inset-left));
}

.community-compose-overlay[hidden] {
  display: none;
}

.auth-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483600;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.7);
  pointer-events: auto;
}

.auth-loading-overlay-inner {
  display: grid;
  place-items: center;
  gap: 0.7rem;
  padding: 1.1rem 1.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 33, 56, 0.16);
  box-shadow: 0 8px 28px rgba(15, 33, 56, 0.14);
}

.auth-loading-spinner {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 3px solid rgba(15, 33, 56, 0.2);
  border-top-color: #0f2138;
  animation: auth-loading-spin 0.9s linear infinite;
}

.auth-loading-text {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f2138;
}

@keyframes auth-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

.community-compose-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(12, 16, 32, 0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

html.community-compose-active #community-hub-panel-board .community-board-lead-main,
html.community-compose-active #community-hub-panel-board .mz-search-bar--community,
html.community-compose-active #community-hub-panel-board .mz-tab-strip-yamap[aria-label="話題一覧のカテゴリ絞り込み"],
html.community-compose-active #community-hub-panel-board .mll-log-list-wrap,
html.community-compose-active #community-hub-panel-board .community-feed-msg,
html.community-compose-active #community-hub-panel-board .community-compose-bar {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

html.community-compose-active #community-compose-overlay {
  filter: none;
  pointer-events: auto;
}

.community-compose-dialog {
  position: relative;
  z-index: 1;
  width: min(40rem, calc(100vw - 1rem));
  max-height: min(92dvh, 920px);
  display: flex;
  flex-direction: column;
  background: var(--panel, #fff);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 18px 48px rgba(15, 33, 56, 0.2);
  overflow: hidden;
}

@media (max-width: 767px) {
  #community-compose-overlay.community-compose-overlay {
    align-items: flex-start;
    justify-content: flex-start;
    padding: max(0.35rem, env(safe-area-inset-top, 0px)) max(0.35rem, env(safe-area-inset-right, 0px))
      max(0.35rem, env(safe-area-inset-bottom, 0px)) max(0.35rem, env(safe-area-inset-left, 0px));
  }

  #community-compose-overlay .community-compose-dialog {
    width: min(40rem, 100%);
    max-height: calc(
      100dvh - max(0.35rem, env(safe-area-inset-top, 0px)) - max(0.35rem, env(safe-area-inset-bottom, 0px))
    );
    margin: 0 auto;
  }

  .community-form-theme-select {
    display: block;
  }

  .community-form-theme-inner.community-form-theme-tabs {
    display: none !important;
  }

  .community-compose-submit-row {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .community-compose-submit-row .btn-reset-search,
  .community-compose-submit-row .btn-share-search {
    width: 100%;
    justify-content: center;
    min-height: 2.75rem;
  }
}

.community-compose-dialog-head {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel-tint, var(--surface));
}

.community-compose-heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.community-compose-close-btn {
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

.community-compose-close-btn:hover {
  border-color: var(--border);
  color: var(--text);
}

.community-compose-notes {
  flex: 0 0 auto;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.82rem;
  line-height: 1.55;
}

.community-compose-notes .community-compose-note-p {
  margin: 0 0 0.55rem;
}

.community-compose-notes .community-compose-note-p:last-child {
  margin-bottom: 0;
}

.community-compose-rules {
  margin: 0 !important;
  line-height: 1.5;
}

.community-compose-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.community-compose-form-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.community-form--compose-dialog {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.community-compose-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  padding: 0.75rem 1rem 0.85rem;
  -webkit-overflow-scrolling: touch;
}

.community-compose-dialog-foot {
  flex: 0 0 auto;
  padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--border);
  background: var(--panel, #fff);
}

.community-compose-dialog-foot .community-compose-submit-row {
  margin: 0;
}

.community-compose-dialog-foot .mll-create-msg {
  margin: 0.45rem 0 0;
}

.community-compose-auth-phase {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 0.35rem 0 1.1rem;
  box-sizing: border-box;
}

.community-compose-auth-phase .community-compose-auth-actions {
  margin-top: 0;
  justify-content: center;
}

.community-compose-submit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.community-compose-submit-row .btn-reset-search {
  min-height: auto;
}

.static-panel-text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.6;
  word-break: break-all;
}

.static-panel-link {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.static-panel-link:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

.artlist-link-neutral,
.artlist-link-neutral:hover {
  color: var(--text);
}

#page-ops .static-panel {
  margin-top: 0;
  max-width: 44rem;
}

.ops-privacy-block,
.ops-legal-block {
  scroll-margin-top: 1rem;
}

.mll-log-self-actions {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.mll-log-delete-btn {
  font-size: 0.78rem;
}

.privacy-policy-meta {
  margin: -0.15rem 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.privacy-policy-scope {
  font-size: 0.92rem;
}

.privacy-policy-doc {
  margin-top: 1rem;
}

.privacy-policy-heading {
  margin: 1.1rem 0 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.privacy-policy-doc > .privacy-policy-heading:first-child {
  margin-top: 0;
}

.privacy-policy-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.92rem;
  line-height: 1.72;
  color: var(--text);
}

.privacy-policy-list li {
  margin-bottom: 0.65rem;
}

.privacy-policy-list li:last-child {
  margin-bottom: 0;
}

.privacy-policy-doc code {
  font-size: 0.86em;
  word-break: break-all;
}

.privacy-policy-closing {
  margin-top: 1.25rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
}

.privacy-policy-sample-url {
  word-break: break-all;
}

.mz-philosophy {
  padding-bottom: 0.15rem;
}

.mz-philosophy-header {
  margin: 0 0 1.35rem;
}

.page-hero.mz-philosophy-header {
  margin-bottom: 1.35rem;
}

.mz-philosophy-header--nested {
  margin: 0 0 1.05rem;
}

.mz-philosophy-header--nested .mz-philosophy-heading {
  font-size: clamp(1.12rem, 3.2vw, 1.48rem);
}

.youtube-page-hero .youtube-page-hero-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem 0.9rem;
  flex-wrap: wrap;
  width: 100%;
}

.ops-contact-lead {
  margin: 0 0 0.65rem;
}

.ops-contact-actions {
  margin: 0;
}

a.ops-google-form-btn {
  text-decoration: none;
}

.mz-philosophy-label {
  margin: 0 0 0.45rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.mz-philosophy-heading {
  margin: 0;
  font-size: clamp(1.28rem, 3.8vw, 1.72rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: 0.06em;
  color: var(--navy);
}

/** 英語は従来 MESSAGE 行の位置に表示（.mz-philosophy-label--en） */
.mz-philosophy-label--en {
  font-size: clamp(0.7rem, 1.9vw, 0.82rem);
  letter-spacing: 0.1em;
  line-height: 1.35;
  max-width: 100%;
  text-transform: uppercase;
}

.youtube-page-hero-row .youtube-panel-title {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-withdraw-btn {
  margin-top: 0.45rem;
  font-size: 0.78rem;
}

.mz-withdraw-toggle-link {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.mz-withdraw-toggle-link:hover {
  text-decoration: underline;
}

.mz-settings-withdraw-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted, #888);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}
.mz-settings-withdraw-toggle:hover {
  color: var(--text);
}
.mz-settings-withdraw-toggle .mz-settings-accordion-icon {
  transition: transform 0.2s;
}
.mz-settings-withdraw-toggle[aria-expanded="true"] .mz-settings-accordion-icon {
  transform: rotate(90deg);
}

.community-post-image--withdrawn {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
}

.community-post-avatar--withdrawn {
  object-fit: cover;
  background: #fff;
}

.calendar-ev-avatar-img--withdrawn {
  background: #fff !important;
  object-fit: cover;
  opacity: 1 !important;
}

span.calendar-ev-avatar-img.calendar-ev-avatar-img--withdrawn {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0;
}

span.calendar-likers-avatar.calendar-ev-avatar-img--withdrawn {
  display: inline-block;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #fff !important;
  border: 1px solid var(--border);
  box-sizing: border-box;
  flex-shrink: 0;
}

.mz-philosophy-rule {
  margin-top: 1rem;
  width: min(5rem, 28%);
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--navy) 0%, var(--blue) 100%);
}

/* スマホではページ見出しを内容優先にする。英語の飾り見出しと区切り線を
   外し、日本語見出しもPC基準の約65%へ抑える。 */
@media (max-width: 700px) {
  .mz-philosophy-header .mz-philosophy-label--en,
  .mz-philosophy-header .mz-philosophy-rule {
    display: none;
  }

  .mz-philosophy-header .mz-philosophy-heading {
    font-size: clamp(1.05rem, 4.55vw, 1.15rem);
    line-height: 1.36;
  }

  .mz-philosophy-header {
    margin-bottom: 0.8rem;
  }
}

.mz-philosophy-quote {
  margin: 0 0 1.35rem;
  padding: 0;
  border: none;
}

.mz-philosophy-quote p {
  margin: 0;
  padding: 1.05rem 1.15rem 1.15rem 1.25rem;
  border-left: 4px solid var(--blue-deep);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(135deg, var(--badge-navy-bg) 0%, var(--badge-blue-bg) 100%);
  font-size: clamp(0.98rem, 2.4vw, 1.08rem);
  font-weight: 600;
  line-height: 1.82;
  color: var(--navy);
}

.mz-philosophy-prose {
  display: grid;
  gap: 1rem;
}

.mz-philosophy-prose p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.9;
  color: var(--text);
  word-break: normal;
  overflow-wrap: break-word;
}

.mz-philosophy-vision {
  margin: 1.5rem 0 0;
  padding: 1.05rem 1.2rem;
  border: 1px solid var(--border);
  border-left: 4px solid var(--amber-bright);
  border-radius: 0 10px 10px 0;
  background: var(--nav-pill-bg);
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.78;
  color: var(--navy);
}

/** クリエイター：サービスヘッダを発足の締め文（単一 .mz-philosophy-vision）と同型に */
.creator-services-vision {
  margin-top: 1.1rem;
  margin-bottom: 0.85rem;
}

.creator-services-vision-line {
  display: block;
}

.creator-services-vision-line + .creator-services-vision-line {
  margin-top: 0.38em;
}

.ops-block + .ops-block {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.ops-block .static-panel-title {
  margin-bottom: 0.65rem;
}

.ops-block .media-section-heading {
  margin-top: 0;
}

.ops-url-text {
  margin-top: 0.35rem;
}

.magazine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

/* じぇねTUBEは「最新 / TOP1 / TOP2 / ランダム」の4枚を、PCでは2×2で読む。 */
#marching-live-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.magazine-card {
  display: block;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.magazine-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 6px 16px var(--shadow);
}

.magazine-thumb {
  position: relative;
  overflow: hidden;
  min-height: 14rem;
  border-radius: 8px;
  background: linear-gradient(160deg, var(--navy), var(--blue));
  color: #f4f7fb;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.magazine-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--panel-tint);
}

/* じぇねTUBEは動画カードなので、スマホでもサムネイルを16:9で見せる。
   既定の最小高は雑誌・マンガを想定しており、動画だけ縦長に見えていた。 */
#marching-live-grid .magazine-thumb {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

#manga-grid .magazine-thumb {
  background: #ffffff;
}

#manga-grid .magazine-thumb img {
  object-fit: contain;
  background: #ffffff;
}

#books-grid .magazine-thumb {
  min-height: 15rem;
  background: #ffffff;
}

#books-grid .magazine-thumb img {
  object-fit: contain;
  background: #ffffff;
}


.magazine-thumb-fallback {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

.magazine-thumb.no-image .magazine-thumb-fallback {
  display: flex;
}

.magazine-meta {
  margin: 0.65rem 0 0.2rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.magazine-title {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
}

.media-limited .media-item-extra {
  display: none;
}

.media-limited .media-item-extra.media-item-revealed {
  display: block;
}

.media-actions {
  margin: 0.9rem 0 0;
}

.media-more-btn {
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--table-th);
  color: #f4f7fb;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.affiliate-note {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.manga-ku-note {
  margin: 0 0 0.8rem;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--text);
}

.manga-ku-banner {
  margin: 0 0 0.9rem;
}

.manga-ku-banner a {
  display: inline-block;
}

.manga-ku-banner img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.creator-promo-text {
  margin: 0 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text);
}

.creator-link-label {
  margin: 0.2rem 0 0.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.creator-block-divider {
  margin: 1rem 0 0.8rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.creator-banner {
  margin: 0 0 0.95rem;
}

.creator-banner a {
  display: inline-block;
}

.creator-banner img {
  display: block;
  max-width: min(100%, 520px);
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.source-note {
  margin: 1rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  line-height: 1.65;
  color: var(--muted);
}

.media-section-heading {
  margin: 1.25rem 0 0.65rem;
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.5em;
  padding: 0.3rem 0.85rem;
  border: 1px solid var(--gold-border);
  border-radius: 999px;
  background: var(--gold-cream-mid);
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 380px) {
  .media-section-heading {
    font-size: 0.86rem;
    padding: 0.28rem 0.65rem;
    gap: 0.45em;
  }
}

.media-jump-links {
  margin: 0.15rem 0 0.8rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
}

.media-jump-tab {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.45em;
  white-space: nowrap;
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
  flex: 0 0 auto;
}

.media-jump-tab:hover {
  text-decoration: underline;
}

.media-jump-links.youtube-tabs.mz-tab-strip-yamap {
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-bottom: 1px solid var(--border);
}

.media-jump-links.youtube-tabs.mz-tab-strip-yamap::-webkit-scrollbar {
  display: none;
}

.section-top-link {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
}

.section-top-link a {
  color: var(--link);
  text-decoration: none;
}

.section-top-link a:hover {
  text-decoration: underline;
}

.media-subheading {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

#media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-card {
  padding: 0.7rem 0.72rem;
  box-shadow: 0 2px 10px var(--shadow);
}

#media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-thumb {
  min-height: 10.2rem;
  background: #ffffff;
}

#media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-thumb img {
  object-fit: contain;
  background: #ffffff;
  padding: 0.4rem;
}

#media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-title {
  margin-top: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.45;
}

.media-promo-text {
  margin: 0 0 0.95rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text);
}

/** クリエイター：Artlist リンク pill 内のアイコン間隔 */
#page-creators .media-section-heading .artlist-link-neutral,
#page-creators .media-section-heading a.static-panel-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  text-decoration: none;
}

#page-creators .media-section-heading .artlist-link-neutral .mz-ui-icon,
#page-creators .media-section-heading a.static-panel-link .mz-ui-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.media-common-link {
  margin: 1.2rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border);
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--text);
}

main {
  flex: 0 0 auto;
  padding: 1rem 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
}

.site-footer {
  margin-top: 0.55rem;
  padding: 0 1.5rem 1.05rem;
  border-top: 1px solid var(--border);
  background: var(--panel-tint);
  text-align: center;
}

.site-footer p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* フッター広告バナー(Kindle Unlimited・Artlist・公式X)。フッター上部に横一列で中央寄せ */
.footer-banner {
  margin: 0 0 0.6rem;
}

.footer-banner-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  margin: 0 auto 0.9rem;
  flex-wrap: nowrap;
  width: fit-content;
}

.footer-banner-row .footer-banner {
  margin: 0;
  flex: 0 0 auto;
}

.footer-banner a {
  display: block;
  width: auto;
  margin: 0 auto;
}

.footer-banner img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.footer-banner-artlist a {
  max-width: none;
}

.footer-banner-x .x-logo-link {
  width: 56px;
  height: 56px;
  border: 1px solid #111;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
  padding: 0;
  line-height: 1;
  text-decoration: none;
}

.footer-banner-x .x-logo-icon {
  width: 2rem;
  height: 2rem;
  display: block;
}

.footer-banner-x .x-logo-link:hover {
  background: #000;
  border-color: #000;
  text-decoration: none;
}

.x-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.x-logo-link:hover {
  text-decoration: underline;
}

.x-logo-icon {
  width: 1.1rem;
  height: 1.1rem;
  display: inline-block;
}

.meta-bar {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.visible-orgs {
  margin: 0 0 0.6rem;
  color: var(--text);
  padding: 0.35rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.visible-orgs-label {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text);
}

.visible-orgs-tags {
  margin-top: 0.45rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* 大会動画：表示中チップは最大3行、あふれは右スクロールバーで縦スクロール */
#page-videos #visible-orgs .visible-orgs-tags {
  align-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
  max-height: calc(3 * (0.28rem * 2 + 1.35 * 0.78rem) + 2 * 0.35rem);
  padding-right: 0.2rem;
}

.mll-participant-rows {
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
}

.mll-participant-like-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
}

.mll-participant-like-row .mll-log-like-host .community-like-row {
  margin-top: 0;
}

.mll-log-like-host .community-like-row {
  margin-top: 0.25rem;
}

/* 動画検索「表示中の団体/チーム」チップ — 団体一覧（.browse-button-list .browse-chip）と同系のオレンジ枠。文字サイズは 0.78rem のまま */
.visible-orgs-chip {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  border: 1px solid rgba(202, 138, 4, 0.58);
  border-radius: 8px;
  background: var(--gold-chip-bg);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.14);
}

.visible-orgs-chip-name {
  display: flex;
  align-items: center;
  padding: 0.28rem 0.45rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--navy);
}

.visible-orgs-tag-remove {
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 1.85rem;
  padding: 0 0.4rem;
  border: none;
  border-left: 1px solid rgba(202, 138, 4, 0.42);
  background: var(--gold-cream-top);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.visible-orgs-tag-remove:hover {
  background: var(--gold-cream-hover-top);
  color: #b71c1c;
}

.visible-orgs-tag-remove-x {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* MLL の参加者チップ等（大会動画の表示中タグとは別） */
.visible-orgs-tag.mll-user-chip,
.visible-orgs-tag:not(.visible-orgs-tag-remove) {
  font-size: 0.78rem;
  max-width: 100%;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.28rem 0.45rem;
  background: var(--bg);
}

.visible-orgs-tag.mll-user-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.browse-button-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-content: flex-start;
  max-height: min(50vh, 26rem);
  overflow: auto;
  padding: 0.75rem 0.65rem 0.7rem;
  margin: 0.35rem 0 0;
  border: 1px solid rgba(15, 33, 56, 0.12);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  -webkit-overflow-scrolling: touch;
  scroll-padding: 0.5rem;
}

.browse-button-list--below-team {
  margin-top: 0.5rem;
  margin-left: 0;
  margin-right: 0;
  padding-top: 0.75rem;
}

/* 大会動画：団体/チーム一覧を全画面で表示 */
.browse-org-overlay {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 12180;
  display: flex;
  flex-direction: column;
  justify-content: stretch;
  padding-top: env(safe-area-inset-top, 0);
  padding-left: max(0.45rem, env(safe-area-inset-left, 0));
  padding-right: max(0.45rem, env(safe-area-inset-right, 0));
  margin: 0;
  background: rgba(15, 33, 56, 0.28);
}

.browse-org-overlay[hidden] {
  display: none !important;
}

.browse-org-overlay__sheet {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  background: var(--panel);
  border-radius: 12px 12px 0 0;
  box-shadow: 0 -4px 28px rgba(15, 33, 56, 0.18);
}

.browse-org-overlay__sheet:focus {
  outline: none;
}

.browse-org-overlay__sheet:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
}

.browse-org-overlay__head {
  flex-shrink: 0;
  padding: 0.5rem 0.75rem 0.45rem;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
}

.browse-org-overlay__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.12rem 0.35rem;
  margin-bottom: 0.4rem;
}

.browse-org-overlay__heading {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.browse-org-overlay__count {
  font-size: 0.52rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.25;
  letter-spacing: 0.02em;
}

.browse-org-overlay__filter-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.browse-org-overlay__filter-label {
  flex-shrink: 0;
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.browse-org-overlay__filter {
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
  padding: 0.38rem 0.55rem;
  font-size: 0.88rem;
  line-height: 1.3;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
}

.browse-org-overlay__scroll {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.browse-button-list.browse-button-list--overlay {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  margin: 0;
  padding: 0.85rem 0.75rem 5.5rem;
  border: none;
  border-radius: 0;
  background: var(--panel);
  box-shadow: none;
  -webkit-overflow-scrolling: touch;
}

.browse-org-overlay__fade {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5.25rem;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--white) 0%,
    rgba(255, 255, 255, 0.88) 38%,
    rgba(255, 255, 255, 0) 100%
  );
}

.browse-org-overlay__footer {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding: 0.65rem 0 calc(0.85rem + env(safe-area-inset-bottom, 0));
  background: var(--white);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
}

.browse-org-overlay__switch,
.browse-org-overlay__close {
  flex: none;
  min-width: 0;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.browse-org-overlay__switch {
  margin: 0 1rem;
  width: auto;
  align-self: stretch;
  background: var(--bg);
  color: var(--navy);
  border: 1px solid var(--border);
}

.browse-org-overlay__switch:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(30, 79, 214, 0.04);
}

.browse-org-overlay__close {
  margin: 0 1rem;
  width: auto;
  align-self: stretch;
}

.browse-button-list[hidden] {
  display: none !important;
}

.browse-chip {
  max-width: 100%;
  min-height: 2.5rem;
  box-sizing: border-box;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-align: left;
  border: 1px solid rgba(15, 33, 56, 0.16);
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy);
  cursor: pointer;
  word-break: break-word;
  box-shadow: 0 1px 2px rgba(15, 33, 56, 0.06);
  transition:
    border-color 0.12s ease,
    box-shadow 0.12s ease,
    color 0.12s ease,
    background 0.12s ease;
}

.browse-chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: rgba(30, 79, 214, 0.04);
  box-shadow: 0 2px 6px rgba(30, 79, 214, 0.12);
}

.browse-chip:focus {
  outline: none;
}

.browse-chip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 団体／チーム一覧: オレンジ系の枠・地色のみ（左の太線なし・3色分割なし） */
.browse-button-list .browse-chip {
  border: 1px solid rgba(202, 138, 4, 0.58);
  background: var(--gold-chip-bg);
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.14);
}

.browse-button-list .browse-chip:hover {
  border-color: var(--gold-border-hover);
  color: var(--navy);
  background: var(--gold-cream-hover-top);
  box-shadow: 0 2px 6px rgba(180, 83, 9, 0.22);
}

.search-panel {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

#page-videos .videos-page-main .search-panel {
  margin-bottom: 0;
  background: var(--panel-tint);
  border-radius: 10px;
}

.videos-browse-hint {
  margin: 0.15rem 0 0.35rem;
  max-width: 36rem;
}

.videos-heading-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.6rem;
}

.browse-inline-row {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  margin: 0;
  vertical-align: middle;
}

.browse-inline-trigger-line {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem 0.62rem;
  width: auto;
  text-align: center;
}

.search-panel-title {
  display: inline-block;
  margin: 0 0 0.45rem;
  vertical-align: middle;
}

.search-panel .browse-inline-trigger {
  margin: 0;
}

.browse-inline-trigger-label {
  text-align: left;
}

/** 団体／チーム件数はチップ外・やや小さめ */
.browse-inline-org-count-outside {
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
  color: var(--muted);
  line-height: 1.35;
  flex-shrink: 0;
  text-align: center;
}

.mll-panel {
  box-sizing: border-box;
  display: grid;
  gap: 0.7rem;
  margin: 0 auto 1rem;
  padding: 1rem;
  max-width: 42rem;
  width: 100%;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mll-logo-wrap {
  margin: 0;
}

.mll-logo {
  width: min(100%, 420px);
  height: auto;
  display: block;
}

.mll-lead {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.mll-intro {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.85rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel-tint);
}

.mll-intro-body {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.mll-intro-title {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.45;
  color: var(--accent-strong);
}

.mll-intro-text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text);
}

.mll-intro-image-wrap {
  margin: 0;
}

.mll-intro-image {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/** —— TOP LP（MarchinZ）：ヒーロー → できること → 見開きイラスト → 機能カード → 登録CTA */
#page-mll.page-mll {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  gap: clamp(1rem, 3vw, 2rem);
  box-sizing: border-box;
}

.mll-lp {
  width: 100%;
}

.mll-lp-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.mll-lp-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    138deg,
    #e9f1fb 0%,
    #f8f0f4 52%,
    #e9ecf5 100%
  );
  border-bottom: 1px solid rgba(15, 33, 56, 0.08);
}

.mll-lp-hero-inner {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.85rem, 5vw, 3.75rem) 1.25rem clamp(2.25rem, 6vw, 4.25rem);
}

.mll-lp-eyebrow {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  /* 0.55 は薄灰地で3.66しか出ない(2026-07-20 UI/UXレビュー) */
  color: rgba(15, 33, 56, 0.72);
}

.mll-lp-hero-hook {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.38;
  color: var(--navy);
}

.mll-lp-hero-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.05rem, 2.15vw, 1.38rem);
  font-weight: 700;
  line-height: 1.42;
  color: var(--navy);
}

.mll-lp-hero-lead {
  margin: 1rem 0 1.35rem;
  font-size: 0.94rem;
  line-height: 1.76;
  color: rgba(12, 15, 20, 0.66);
  max-width: 40em;
}

.mll-lp-hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

/** display:flex が UA の [hidden] を打ち消すため、非表示は明示する */
.mll-lp-hero-cta-row[hidden] {
  display: none !important;
}

.mll-lp-hero-cta-row--mypage {
  justify-content: flex-start;
}

.mll-lp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* アイコン+ラベルの間隔。未指定だと接触する(2026-07-20 UI/UXレビュー) */
  gap: 0.5em;
  box-sizing: border-box;
  min-height: 2.68rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 0.93rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}

.mll-lp-btn:hover {
  transform: translateY(-1px);
}

.mll-lp-btn--primary {
  color: var(--cta-teal-text);
  background: linear-gradient(155deg, var(--cta-teal-3) 0%, var(--cta-teal-1) 100%);
  border-color: var(--cta-teal-border);
  box-shadow: 0 6px 20px rgba(15, 33, 56, 0.2);
}

.mll-lp-btn--primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(15, 33, 56, 0.24);
}

.mll-lp-btn--ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--navy);
  border-color: rgba(15, 33, 56, 0.18);
  backdrop-filter: blur(10px);
}

.mll-lp-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(30, 79, 214, 0.35);
}

.mll-lp-hero-subcta {
  margin: 1.15rem 0 0;
  font-size: 0.82rem;
  color: rgba(12, 15, 20, 0.58);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-start;
  column-gap: 1.15rem;
  row-gap: 0.45rem;
}

.mll-lp-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.mll-lp-inline-link .mz-ui-icon {
  margin-right: 0;
  font-size: 0.92em;
  opacity: 0.9;
  text-decoration: none;
}

.mll-lp-inline-link:hover {
  color: var(--link-hover);
}

.mll-lp-band {
  padding: clamp(2.25rem, 5vw, 3.5rem) 0;
}

.mll-lp-band--muted {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.mll-lp-section-head {
  margin: 0 0 0.65rem;
  font-size: clamp(1.25rem, 2.35vw, 1.62rem);
  font-weight: 800;
  text-align: center;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.mll-lp-section-sub {
  margin: 0 auto 2rem;
  max-width: min(100%, 58em);
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.74;
  color: var(--muted);
}

.mll-lp-pill-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: clamp(1.35rem, 3.5vw, 2.35rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (min-width: 1024px) {
  .mll-lp-pill-grid {
    gap: 1.75rem 1.35rem;
  }

  .mll-lp-pill {
    padding: 1.45rem 1.35rem 1.55rem;
    border-color: rgba(15, 33, 56, 0.12);
    box-shadow: 0 12px 36px rgba(15, 33, 56, 0.09);
  }

  .mll-lp-pill-title {
    font-size: 1.08rem;
  }

  .mll-lp-pill-desc {
    font-size: 0.9rem;
    color: rgba(12, 15, 20, 0.72);
    line-height: 1.78;
  }

  .mll-lp-hero-lead {
    font-size: 1rem;
    color: rgba(12, 15, 20, 0.72);
  }

  .mll-lp-section-sub {
    font-size: 0.96rem;
  }
}

.mll-lp-pill {
  box-sizing: border-box;
  display: grid;
  gap: 0.55rem;
  padding: clamp(1.1rem, 2.8vw, 1.65rem);
  border-radius: 16px;
  border: 1px solid rgba(15, 33, 56, 0.1);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98) 0%, rgba(255, 255, 255, 0.93) 100%);
  box-shadow: 0 10px 32px rgba(15, 33, 56, 0.07);
}

.mll-lp-pill-icon-link {
  display: block;
  text-decoration: none;
  color: inherit;
  border-radius: 14px;
}

.mll-lp-pill-icon-link:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 4px;
}

.mll-lp-pill-icon-wrap {
  display: block;
  width: 100%;
  margin: 0 0 0.45rem;
}

.mll-lp-pill-icon {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(15, 33, 56, 0.1));
}

.mll-lp-pill-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.45;
  color: var(--navy);
  text-align: center;
}

.mll-lp-pill-title-sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(30, 79, 214, 0.82);
}

.mll-lp-pill-sub-link {
  display: inline-flex;
  align-items: center;
  gap: 0.32em;
  color: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 1px;
}

.mll-lp-pill-sub-link .mz-ui-icon {
  margin-right: 0;
  font-size: 0.88em;
  opacity: 0.88;
  text-decoration: none;
}

.mll-lp-btn .mz-ui-icon {
  margin-right: 0;
  font-size: 0.92em;
}

.mll-lp-pill-sub-link:hover {
  color: var(--link-hover);
}

.mll-lp-pill-desc {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.73;
  color: rgba(12, 15, 20, 0.66);
}

/* 見出し2行＋サブタイトル直後の本文までの行間を詰める（ピラー2・3） */
.mll-lp-pill-desc--tight-top {
  margin-top: -0.42rem;
}

/* 掲示板ピラー：MarchinZ Board と説明文のあいだをさらに詰める */
.mll-lp-pill:last-child .mll-lp-pill-desc--tight-top {
  margin-top: -0.88rem;
}

/* 背景は全幅。本文・図版の横位置は上段と同一の .mll-lp-container（内側 .mll-lp-split-inner が grid） */
.mll-lp-split {
  box-sizing: border-box;
  width: 100%;
  padding: clamp(2.35rem, 6vw, 4.25rem) 0;
}

.mll-lp-split-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.35rem, 4vw, 3rem);
  align-items: center;
}

.mll-lp-split--reverse .mll-lp-split-inner {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
}

.mll-lp-split-copy {
  min-width: 0;
}

.mll-lp-split-head {
  margin: 0 0 0.95rem;
  font-size: clamp(1.2rem, 2.55vw, 1.72rem);
  font-weight: 800;
  line-height: 1.38;
  color: var(--navy);
}

.mll-lp-split-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.76;
  color: rgba(12, 15, 20, 0.66);
}

/* アリーナ帯: 背景色・見出し／本文の色のみ finale（ダーク）と同一。レイアウト・図版は従来どおり */
.mll-lp-split--on-dark {
  background: var(--nav-bg);
}

.mll-lp-split--on-dark .mll-lp-split-head {
  color: #fff;
}

.mll-lp-split--on-dark .mll-lp-split-text {
  color: rgba(255, 255, 255, 0.76);
}

/* 下段スプリットの図版と、TOP ヒーロー右の画像枠を同一スタイルに */
.mll-lp-split-figure,
.mll-lp-hero-art {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(15, 33, 56, 0.1);
}

.mll-lp-split-img,
.mll-lp-hero-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.mll-lp-split--reverse .mll-lp-split-figure {
  grid-column: 1;
  grid-row: 1;
}

.mll-lp-split--reverse .mll-lp-split-copy {
  grid-column: 2;
  grid-row: 1;
}

.mll-lp-finale {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* フッターナビ（.footer-nav）と同じベース色で一段暗く */
  background: var(--nav-bg);
  padding: clamp(2.6rem, 6vw, 3.85rem) 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mll-lp-finale::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: -14% -8%;
  pointer-events: none;
  background-image: url("images/lp/hero-show.png");
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: min(175vw, 2000px) auto;
  opacity: 0.15;
}

/* TOP 最終 CTA（明ルック `.mll-lp-finale--pattern-a`）。背景イラストは finale 既定と同一設定で、サイズのみ「3人の顔が収まる範囲で最大」 */
.mll-lp-finale--pattern-a {
  background: var(--panel);
  border-bottom: 1px solid var(--border);
}

.mll-lp-finale--pattern-a::before {
  background-size: min(152vw, 1820px) auto;
  filter: saturate(2);
}

.mll-lp-finale--pattern-a::after {
  display: none;
}

.mll-lp-finale--pattern-a .mll-lp-finale-inner {
  text-shadow: none;
}

.mll-lp-finale--pattern-a .mll-lp-finale-title {
  color: var(--text);
}

.mll-lp-finale--pattern-a .mll-lp-finale-text {
  color: var(--muted);
}

@media (max-width: 720px) {
  .mll-lp-finale--pattern-a::before {
    background-size: min(198vw, 1180px) auto;
  }
}

.mll-lp-finale-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  text-shadow: 0 1px 4px rgba(8, 18, 36, 0.55);
}

.mll-lp-finale-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.18rem, 2.55vw, 1.62rem);
  font-weight: 800;
  line-height: 1.45;
  color: #fff;
  font-family: inherit;
}

.mll-lp-finale-text {
  margin: 0 0 1.65rem;
  font-size: 0.93rem;
  line-height: 1.73;
  color: rgba(255, 255, 255, 0.76);
}

.mll-lp-finale-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
}

.mll-lp-finale-row[hidden] {
  display: none !important;
}

.mll-lp-finale-row .mll-lp-btn {
  text-shadow: none;
}

.mll-lp-btn--on-dark {
  color: var(--cta-teal-text);
  background: linear-gradient(155deg, var(--blue) 0%, #6ba9ff 100%);
  border-color: rgba(255, 255, 255, 0.22);
}

.mll-lp-btn--on-dark:hover {
  filter: brightness(1.08);
}

.mll-lp-btn--ghost-dark {
  background: transparent;
  color: rgba(255, 255, 255, 0.95);
  border-color: rgba(255, 255, 255, 0.4);
}

.mll-lp-btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 940px) {
  .mll-lp-hero-inner {
    grid-template-columns: 1fr;
  }

  .mll-lp-hero-visual {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  .mll-lp-pill-grid {
    grid-template-columns: 1fr;
    max-width: 28rem;
    margin: 0 auto;
  }

  .mll-lp-split-inner {
    grid-template-columns: 1fr;
  }

  .mll-lp-split--reverse .mll-lp-split-figure,
  .mll-lp-split--reverse .mll-lp-split-copy {
    grid-column: auto;
    grid-row: auto;
  }

  /* レイアウト統一でイラストを先に読ませたいときの順序維持 */
  .mll-lp-split--reverse .mll-lp-split-copy {
    order: 2;
  }

  .mll-lp-split--reverse .mll-lp-split-figure {
    order: 1;
  }
}

.community-board-rules {
  margin: 0 0 0.85rem;
  line-height: 1.45;
}

.community-login-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-tint);
}

.community-form {
  display: grid;
  gap: 0.55rem;
}

.community-theme-fieldset {
  margin: 0;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.community-theme-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
}

.community-theme-options label {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  font-size: 0.86rem;
  color: var(--text);
}

.community-post-head {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 0.3rem;
  min-width: 0;
  max-width: 100%;
}

.community-post-head > div {
  min-width: 0;
  flex: 1 1 auto;
}

.community-post-avatar-link {
  flex: 0 0 auto;
  line-height: 0;
  border-radius: 999px;
}

.community-post-author-link {
  color: inherit;
  text-decoration: none;
}

.community-post-author-link:hover {
  text-decoration: underline;
}

.community-post-avatar {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
}

.community-post-meta {
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.community-datetime-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  margin: 0.12rem 0 0;
}

.community-post-datetime {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  color: var(--navy);
}

.community-post-datetime--updated {
  font-weight: 500;
  color: var(--muted);
}

.community-images-field {
  margin: 0.2rem 0 0;
}

.community-images-field-label {
  margin-bottom: 0.2rem;
}

.community-images-note {
  margin: 0 0 0.35rem;
  line-height: 1.35;
}

.community-images-input {
  display: block;
  max-width: 100%;
  font-size: 0.82rem;
}

/* ネイティブ file 入力の「ファイル未選択」は非表示。ラベルボタンで選択 */
.community-file-picker {
  display: block;
  max-width: 100%;
}

.community-file-picker__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  cursor: pointer;
}

.community-file-picker__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.community-file-picker__trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
  line-height: 1.35;
  border: 1px solid var(--border, #c8d4e6);
  border-radius: 6px;
  background: var(--surface, #f6f9fc);
  color: var(--text, #1a2a44);
}

.community-file-picker__label:hover .community-file-picker__trigger {
  border-color: var(--accent, #2f6fed);
}

.community-file-picker__input:disabled + .community-file-picker__trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

.community-images-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.community-images-preview--reply {
  margin-top: 0.25rem;
}

.community-reply-images-row {
  display: grid;
  gap: 0.25rem;
}

.community-image-thumb {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 3.25rem;
  max-width: 5.75rem;
  max-height: 5.75rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-tint);
}

.community-image-thumb img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 5.75rem;
  object-fit: contain;
}

.community-image-thumb-remove {
  position: absolute;
  right: 2px;
  top: 2px;
  padding: 0.1rem 0.28rem;
  font-size: 0.62rem;
  line-height: 1.2;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
}

.community-post-images {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.5rem auto 0;
  width: 100%;
  max-width: min(100%, 36rem);
  min-width: 0;
  box-sizing: border-box;
}

.community-post-image-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-tint);
  max-width: 100%;
}

.community-post-images--count-1 .community-post-image-slot {
  flex-basis: 100%;
  max-width: min(100%, 22rem);
}

.community-post-images--count-2 .community-post-image-slot {
  flex-basis: calc(50% - 0.3rem);
  max-width: min(calc(50% - 0.3rem), 14rem);
}

.community-post-images--count-3 .community-post-image-slot,
.community-post-images--count-4 .community-post-image-slot {
  flex-basis: calc(50% - 0.3rem);
  max-width: min(calc(50% - 0.3rem), 12rem);
}

.community-post-image-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  line-height: 0;
}

.community-post-image-btn:focus-visible {
  outline: 2px solid var(--cta-teal-focus, #0d7a72);
  outline-offset: 2px;
}

.community-post-image-link {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--panel-tint);
}

.community-post-image {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 18rem);
  object-fit: contain;
  vertical-align: middle;
}

/* 画像の長押しメニュー等を抑止（フロントのみ・完全防除ではない） */
.marchinz-protected-photo-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.marchinz-protected-photo-inner img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  vertical-align: middle;
  pointer-events: none;
  -webkit-user-drag: none;
}
.marchinz-protected-photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: default;
  background: transparent;
}
.marchinz-protected-photo-cell {
  width: 100%;
  height: 100%;
}

.mz-photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(0.75rem, env(safe-area-inset-top, 0px))
    max(0.75rem, env(safe-area-inset-right, 0px)) max(0.75rem, env(safe-area-inset-bottom, 0px))
    max(0.75rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}

.mz-photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: rgba(8, 18, 32, 0.88);
  cursor: pointer;
}

.mz-photo-lightbox-frame {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
  pointer-events: none;
}

.mz-photo-lightbox-img {
  display: block;
  max-width: min(100%, 100vw);
  max-height: min(100%, 100dvh, 100vh);
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: auto;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.mz-photo-lightbox-close {
  position: absolute;
  z-index: 2;
  top: max(0.65rem, env(safe-area-inset-top, 0px));
  right: max(0.65rem, env(safe-area-inset-right, 0px));
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f2138;
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.mz-photo-lightbox-close:hover {
  background: #fff;
}

html.mz-photo-lightbox-open,
body.mz-photo-lightbox-open {
  overflow: hidden;
}

.community-theme-tag {
  display: inline-block;
  margin: 0 0 0.28rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  background: var(--badge-navy-bg);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
}

.community-like-row {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.community-like-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: var(--surface, #fafafa);
  color: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  line-height: 1;
}

.community-like-btn:disabled {
  cursor: default;
  opacity: 0.85;
}

.community-like-btn:not(:disabled):hover {
  border-color: var(--muted, rgba(0, 0, 0, 0.22));
}

.community-like-heart {
  font-size: 0.95rem;
  line-height: 1;
  color: var(--muted, #607d8b);
  transition: color 0.12s ease, transform 0.12s ease;
  width: 1em;
  text-align: center;
}

.community-post-overflow-icon {
  font-size: 1rem;
  line-height: 1;
}

.community-post-overflow-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.75rem;
  min-height: 1.75rem;
}

/* Font Awesome：ナビ・タブ・CTA */
.mz-ui-icon {
  margin-right: 0.35em;
  font-size: 0.92em;
  opacity: 0.88;
  vertical-align: -0.08em;
  pointer-events: none;
}

.site-nav-link .mz-ui-icon,
.site-mobile-drawer-nav-link .mz-ui-icon {
  font-size: 0.95em;
}

.site-brand-action-btn .mz-ui-icon,
.site-mobile-drawer-btn .mz-ui-icon,
.btn-share-search[data-mll-auth-entry] .mz-ui-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.youtube-tab-btn,
.calendar-ev-view-btn,
.calendar-ev-sort-btn,
.sort-btn,
.youtube-sort-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
  max-width: 100%;
  min-width: 0;
}

.youtube-tab-btn .mz-ui-icon,
.calendar-ev-view-btn .mz-ui-icon,
.calendar-ev-sort-btn .mz-ui-icon,
.sort-btn .mz-ui-icon,
.youtube-sort-btn .mz-ui-icon,
.media-section-heading .mz-ui-icon,
.media-jump-tab .mz-ui-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.media-section-heading .mz-ui-icon,
.media-jump-tab .mz-ui-icon {
  font-size: 0.95em;
  opacity: 0.9;
}

.mz-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.mz-search-input-wrap .mz-search-input,
.mz-search-input-wrap .mz-search-input-icon + input {
  width: 100%;
}

.mz-search-input-wrap .mz-search-input-icon {
  position: absolute;
  left: 0.65rem;
  color: var(--muted);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.mz-search-input-wrap .mz-search-input,
.mz-search-input-wrap input.mz-search-input {
  padding-left: 2.15rem;
}

.community-like-btn--on .community-like-heart {
  color: #e53935;
}

.community-like-btn--pop {
  animation: mz-like-pop 0.28s ease;
}

@keyframes mz-like-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.22);
  }
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .community-like-btn--pop {
    animation: none;
  }
}

.community-like-count {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--text);
}

.community-like-hint {
  margin: 0;
  font-size: 0.75rem;
}

.community-post-actions {
  margin-top: 0.45rem;
  display: flex;
  gap: 0.45rem;
}

.community-post-actions .btn-reset-search {
  min-height: auto;
  padding: 0.26rem 0.58rem;
  font-size: 0.78rem;
}

.community-post-engage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem 0.65rem;
  margin-top: 0.45rem;
  width: 100%;
  box-sizing: border-box;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.community-post-engage-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-right: auto;
}

.community-post-engage-primary .community-like-row {
  margin-top: 0;
}

.community-post-engage-aside {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.community-post-engage-primary .community-like-btn {
  padding: 0.45rem 0.72rem;
  font-size: 0.95rem;
  min-height: 2.4rem;
  border-radius: 999px;
  font-weight: 600;
}

.community-reply-open-btn {
  padding: 0.45rem 0.95rem;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: 999px;
  border: 1px solid var(--accent, #c9a227);
  background: linear-gradient(180deg, #fffefc, #fff3d6);
  color: var(--text);
  cursor: pointer;
  line-height: 1.2;
  font: inherit;
}

.community-reply-open-btn:hover {
  border-color: var(--accent-strong, #a67c00);
  filter: brightness(1.02);
}

.community-post-engage--reply-active .community-reply-open-btn,
.community-has-reply-compose .community-reply-open-btn,
.community-reply-item-inner:has(.community-reply-compose) .community-reply-open-btn,
.community-thread-body:has(.community-reply-compose) .community-reply-open-btn,
.community-thread-body.community-has-reply-compose .community-reply-open-btn {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.community-post-manage-btn {
  min-height: auto;
  padding: 0.28rem 0.55rem;
  font-size: 0.76rem;
}

.community-post-engage-aside {
  overflow: visible;
}

.community-post-overflow {
  position: relative;
  overflow: visible;
  z-index: 1;
}

.community-post-overflow[open] {
  z-index: 240;
}

.community-post-engage:has(.community-post-overflow[open]) {
  position: relative;
  z-index: 239;
  overflow: visible;
}

.community-post-overflow > summary {
  list-style: none;
  cursor: pointer;
  width: 2.25rem;
  height: 2.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: var(--surface, #fafafa);
  color: var(--muted, #607d8b);
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: 0.02em;
  user-select: none;
}

.community-post-overflow > summary::-webkit-details-marker {
  display: none;
}

.community-post-overflow > summary::marker {
  content: "";
}

.community-post-overflow-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.35rem);
  min-width: 9.75rem;
  padding: 0.3rem 0;
  border-radius: 10px;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  background: var(--panel, #fff);
  box-shadow: 0 8px 28px rgba(10, 20, 40, 0.18);
  z-index: 241;
}

.community-post-overflow-item {
  /* ★ 44px 以上にする(2026-08-04 レビュー)。「コピーして作成」が増えて
     3項目になり、その真下が「削除する」になった ─ 指1つぶん外すと
     取り消せない操作に届く。高さはタップの安全余裕そのもの */
  display: flex;
  align-items: center;
  min-height: 44px;
  width: 100%;
  text-align: left;
  padding: 0.7rem 0.9rem;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: #b71c1c;
  cursor: pointer;
}

.community-post-overflow-item:hover {
  background: rgba(183, 28, 28, 0.06);
}

.community-post-overflow--panel-below .community-post-overflow-panel {
  top: calc(100% + 0.28rem);
  bottom: auto;
  left: auto;
  right: 0;
}

.community-post-overflow-item--neutral {
  color: var(--text, #1e293b);
}

.community-post-overflow-item--neutral:hover {
  background: rgba(37, 99, 235, 0.06);
}

.community-post-overflow-item--danger {
  color: #e74c3c;
}

.community-post-overflow-item--danger:hover {
  background: rgba(231, 76, 60, 0.08);
}

.community-hidden-note {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* 掲示板 — 運営のみ見える非表示投稿・操作（#admin と同系のピンク／赤） */
.community-admin-only-note {
  margin: 0.55rem 0 0;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.45;
  color: #881337;
  background: linear-gradient(180deg, rgba(255, 228, 235, 0.95) 0%, rgba(254, 205, 211, 0.72) 100%);
  border: 1px solid rgba(190, 24, 93, 0.38);
  border-left: 4px solid #be123c;
  border-radius: 8px;
  box-shadow: 0 1px 0 rgba(190, 24, 93, 0.08);
}

.community-admin-only-note::before {
  content: "運営のみ · ";
  font-weight: 800;
  letter-spacing: 0.02em;
}

.community-thread--admin-hidden > .community-thread-body,
.community-reply-item--admin-hidden > .community-reply-item-inner,
.mll-log-item.community-thread--admin-hidden:not(:has(.community-thread-body)) {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: linear-gradient(
    180deg,
    rgba(255, 241, 245, 0.88) 0%,
    rgba(254, 226, 226, 0.38) 100%
  );
  border: 1px dashed rgba(190, 24, 93, 0.35);
  box-shadow: inset 3px 0 0 #be123c;
}

.community-post-manage-btn--moderation {
  border-color: rgba(190, 24, 93, 0.45) !important;
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%) !important;
  color: #9d174d !important;
  font-weight: 700;
}

.community-post-manage-btn--moderation:hover {
  border-color: rgba(190, 24, 93, 0.65) !important;
  background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%) !important;
  color: #831843 !important;
}

/* 投稿フォームのカテゴリ：YouTube カテゴリタブと同じ mz-tab-strip-yamap / youtube-tab-btn に統一 */
.community-form-theme-inner.youtube-tabs.mz-tab-strip-yamap {
  margin-bottom: 0;
}

.community-form-theme-select {
  display: none;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel, #fff);
  font: inherit;
  font-size: 0.95rem;
  color: var(--text);
}

.mll-log-item.community-thread {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.community-thread {
  display: grid;
  gap: 0.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.community-thread:has(.community-post-overflow[open]),
.community-thread-body:has(.community-post-overflow[open]),
.community-reply-item:has(.community-post-overflow[open]),
.community-reply-item-inner:has(.community-post-overflow[open]) {
  overflow: visible;
}

.community-thread-body {
  display: grid;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
  box-sizing: border-box;
}

.community-thread-body:has(.community-post-overflow[open]) {
  overflow: visible;
}

.community-thread-body > *,
.community-reply-item-inner > * {
  max-width: 100%;
  min-width: 0;
}

.community-thread .mll-log-note,
.community-reply-item .mll-log-note,
.community-thread .mll-log-title,
.community-thread .community-theme-tag {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
  max-width: 100%;
}

.community-thread .mz-title-like-row {
  width: 100%;
  max-width: 100%;
}

.community-thread .mz-title-like-row .mll-log-title {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
}

.community-post-head--reply {
  margin-top: 0.15rem;
}

.community-reply-list {
  list-style: none;
  margin: 0.4rem 0 0;
  padding: 0.35rem 0 0.15rem 0.75rem;
  border-left: 3px solid var(--border);
  display: grid;
  gap: 0.55rem;
}

.community-reply-list--nested {
  margin-top: 0.4rem;
  padding-left: min(calc(0.35rem + var(--reply-depth, 1) * 0.55rem), 2.75rem);
  border-left-color: #d4d4d8;
}

.community-reply-item {
  margin: 0;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--border);
}

.community-reply-item-inner {
  display: grid;
  gap: 0.28rem;
}

.community-reply-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.community-reply-compose {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.community-reply-compose--collapsed .community-reply-textarea,
.community-reply-compose--collapsed .community-reply-actions,
.community-reply-compose--collapsed .community-reply-images-row {
  display: none;
}

.community-reply-compose--collapsed {
  display: none;
}

.community-reply-textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 4rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  background: var(--bg);
  box-sizing: border-box;
}

.community-reply-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: stretch;
}

.community-reply-actions .community-file-picker {
  min-width: 0;
}

.community-reply-actions .community-file-picker__label {
  display: flex;
  width: 100%;
  margin: 0;
}

.community-reply-actions .community-file-picker__trigger,
.community-reply-actions .community-reply-send-btn {
  width: 100%;
  min-width: 0;
  min-height: 2.35rem;
  box-sizing: border-box;
  justify-content: center;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 600;
}

.community-reply-compose .community-images-input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.youtube-tab-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.moderation-report-note {
  margin: 0.3rem 0 0;
  font-size: 0.8rem;
  color: var(--text);
  white-space: pre-wrap;
}
.moderation-toolbar {
  margin: 0.5rem 0;
}
.moderation-view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.35rem 0 0.25rem;
}
.moderation-view-tab {
  font: inherit;
  font-size: 0.85rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.moderation-view-tab[aria-selected="true"] {
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

/* 管理者専用（#admin・プロフィール凍結パネル等）— ピンク／赤系で一般 UI と区別 */
.page.page-mz-admin {
  --mz-admin-surface: rgba(255, 228, 235, 0.92);
  --mz-admin-surface-soft: rgba(254, 205, 211, 0.55);
  --mz-admin-border: rgba(190, 24, 93, 0.38);
  --mz-admin-accent: #be123c;
  --mz-admin-accent-deep: #9f1239;
  --mz-admin-text: #881337;
  background: linear-gradient(
    180deg,
    rgba(251, 207, 232, 0.55) 0%,
    rgba(254, 226, 226, 0.35) 22%,
    var(--bg) 55%
  );
}
.mz-admin-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 0.75rem 0.85rem 2rem;
  border-left: 4px solid var(--mz-admin-accent, #be123c);
  border-radius: 0 10px 10px 0;
  background: linear-gradient(
    135deg,
    rgba(255, 228, 235, 0.95) 0%,
    rgba(254, 205, 211, 0.72) 48%,
    rgba(254, 226, 226, 0.55) 100%
  );
  box-shadow: inset 0 0 0 1px var(--mz-admin-border, rgba(190, 24, 93, 0.38));
}
.mz-admin-hero {
  margin: 0 0 0.65rem;
  padding: 0.55rem 0.65rem 0.35rem;
  border-radius: 8px;
  background: rgba(255, 228, 235, 0.65);
}
.mz-admin-kicker {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: var(--mz-admin-accent, #be123c);
}
.mz-admin-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--mz-admin-text, #881337);
}
.mz-admin-lead {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  opacity: 0.92;
}
.mz-admin-main-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 0.4rem;
  margin: 0.5rem 0 0.85rem;
}
.mz-admin-main-tab {
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 0.95rem;
  border-radius: 8px;
  border: 1px solid var(--mz-admin-border, rgba(190, 24, 93, 0.38));
  background: rgba(255, 255, 255, 0.72);
  color: var(--mz-admin-text, #881337);
  cursor: pointer;
}
.mz-admin-main-tab[aria-selected="true"] {
  background: var(--mz-admin-accent, #be123c);
  color: #fff;
  border-color: var(--mz-admin-accent-deep, #9f1239);
}
.mz-admin-pane {
  margin-top: 0.25rem;
}
.mz-admin-pane-card {
  padding: 0.65rem 0.75rem 1rem;
  border-radius: 10px;
  background: var(--mz-admin-surface, rgba(255, 228, 235, 0.92));
  border: 1px solid var(--mz-admin-border, rgba(190, 24, 93, 0.38));
  box-shadow: 0 1px 0 rgba(190, 24, 93, 0.08);
}
.mz-admin-pane-heading {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--mz-admin-text, #881337);
}
.page-mz-admin .moderation-toolbar,
.page-mz-admin .moderation-bulk-actions {
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  background: var(--mz-admin-surface-soft, rgba(254, 205, 211, 0.55));
  border: 1px solid var(--mz-admin-border, rgba(190, 24, 93, 0.28));
}
.mz-admin-pane-lead {
  margin-top: 0;
}

.mz-admin-trash-list {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.mz-admin-trash-empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.mz-admin-trash-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--mz-admin-border, rgba(190, 24, 93, 0.28));
  background: rgba(255, 255, 255, 0.82);
}

.mz-admin-trash-item-title {
  margin: 0 0 0.2rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}

.mz-admin-trash-item-meta {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text);
}

.mz-admin-trash-item-meta--sub {
  color: var(--muted);
  font-size: 0.76rem;
}

.mz-admin-trash-item-main {
  flex: 1 1 12rem;
  min-width: 0;
}

.mz-admin-trash-item-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.mz-admin-banned-toolbar {
  margin-top: 0.5rem;
}

.mz-admin-banned-item-actions {
  flex-wrap: wrap;
  gap: 0.35rem;
}

.mz-admin-banned-item-actions .btn-reset-search {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.site-nav-link.site-nav-link--admin {
  color: #be123c;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(255, 228, 235, 0.85);
  border: 1px solid rgba(190, 24, 93, 0.28);
}
.site-nav-link.site-nav-link--ugc {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #1d4ed8;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  background: rgba(232, 241, 252, 0.95);
  border: 1px solid rgba(30, 79, 214, 0.28);
}
.site-nav-link.site-nav-link--ugc.site-nav-link-active {
  color: #fff;
  background: #1d4ed8;
  border-color: #1e40af;
  text-decoration-thickness: 2px;
}
.site-nav-unread-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #ef4444;
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  box-sizing: border-box;
}
.site-nav-unread-badge[hidden] {
  display: none !important;
}
.admin-ugc-kind-tabs .moderation-view-tab {
  position: relative;
}
.admin-ugc-kind-badge {
  position: absolute;
  top: -6px;
  right: -4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.1em;
  padding: 0 4px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  background: #ef4444;
  border: 2px solid var(--panel, #fff);
  border-radius: 999px;
  pointer-events: none;
  box-sizing: border-box;
}
.admin-ugc-kind-badge[hidden] {
  display: none !important;
}

/* ツール使用状況サマリー(UGC → ツール利用タブの上部) */
.admin-ugc-tool-summary {
  margin: 0 0 0.9rem;
  padding: 0.9rem 1rem;
  background: var(--panel, #fff);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(15, 33, 56, 0.05), 0 4px 16px rgba(15, 33, 56, 0.06);
}
.admin-ugc-tool-summary[hidden] {
  display: none !important;
}
.admin-ugc-tsum-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.admin-ugc-tsum-head > i {
  color: var(--blue);
}
.admin-ugc-tsum-title {
  font-weight: 700;
  font-size: 0.95rem;
}
.admin-ugc-tsum-total {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.admin-ugc-tsum-row {
  display: grid;
  grid-template-columns: 8.5rem 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0;
}
.admin-ugc-tsum-row + .admin-ugc-tsum-row {
  border-top: 1px solid rgba(15, 33, 56, 0.06);
}
.admin-ugc-tsum-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}
.admin-ugc-tsum-name > i {
  width: 1rem;
  text-align: center;
  color: var(--blue);
  flex-shrink: 0;
}
.admin-ugc-tsum-name > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.admin-ugc-tsum-barwrap {
  height: 10px;
  background: rgba(15, 33, 56, 0.07);
  border-radius: 999px;
  overflow: hidden;
}
.admin-ugc-tsum-bar {
  height: 100%;
  min-width: 3px;
  background: linear-gradient(90deg, var(--blue), #4d7ce8);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.admin-ugc-tsum-bar--zero {
  min-width: 0;
  background: transparent;
}
.admin-ugc-tsum-count {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  min-width: 0;
}
.admin-ugc-tsum-big {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.admin-ugc-tsum-sub {
  font-size: 0.66rem;
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.admin-ugc-tsum-note {
  margin: 0.7rem 0 0;
  font-size: 0.66rem;
  color: var(--muted);
  line-height: 1.5;
}
@media (max-width: 560px) {
  .admin-ugc-tsum-row {
    grid-template-columns: 6.5rem 1fr auto;
    gap: 0.45rem;
  }
  .admin-ugc-tsum-name {
    font-size: 0.76rem;
  }
  .admin-ugc-tsum-sub {
    font-size: 0.6rem;
  }
}
.site-mobile-drawer-nav-link.site-mobile-drawer-nav-link--ugc {
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(232, 241, 252, 0.95);
  border: 1px solid rgba(30, 79, 214, 0.28);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.site-nav-link.site-nav-link--admin.site-nav-link-active {
  color: #fff;
  background: #be123c;
  border-color: #9f1239;
  text-decoration-thickness: 2px;
}
.site-mobile-drawer-nav-link.site-mobile-drawer-nav-link--admin {
  font-weight: 700;
  color: #be123c;
  background: rgba(255, 228, 235, 0.9);
  border: 1px solid rgba(190, 24, 93, 0.28);
  border-radius: 8px;
}

.moderation-bulk-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  margin-top: 0.4rem;
}
.moderation-select-all-label {
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
}
.moderation-item-checkbox {
  margin-right: 0.4rem;
}

.mll-form {
  display: grid;
  gap: 0.55rem;
}

.mll-form-inline-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.mll-form select,
.mll-form textarea {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}

.mll-role-preview {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text);
  font-weight: 600;
}

.mll-field-error {
  margin: 0.1rem 0 0;
  min-height: 1.05rem;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #b71c1c;
}

.mz-field-tag {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}

.mz-field-tag--required {
  color: #b71c1c;
}

.mz-field-tag--optional {
  color: #6b7280;
  font-weight: 600;
}

.mz-profile-field-privacy-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.76rem;
  font-weight: 500;
  color: #6b7280;
}

.profile-form-field {
  margin-bottom: 0.15rem;
}

.profile-form-field--has-error input,
.profile-form-field--has-error select,
.profile-form-field--has-error textarea,
.profile-form-field--has-error .mz-profile-attr-badges {
  outline: 1px solid #b71c1c;
  outline-offset: 1px;
}
.mll-field-warn {
  margin: 0.1rem 0 0;
  font-size: 0.76rem;
  line-height: 1.35;
  color: #b45309;
}

#mll-role {
  display: none;
}

.mll-role-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.mll-role-btn {
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font-size: 0.84rem;
  font-weight: 600;
}

.mll-role-btn.is-active {
  border-color: #d77a12;
  background: #ffe0bd;
  color: #7f3900;
}

.mll-create-msg {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.mll-log-privacy-label {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.mll-log-privacy-label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.mll-log-privacy-options {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text);
}

.mll-log-privacy-options input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.mll-log-privacy-hint {
  margin: -0.15rem 0 0;
}

.mll-log-visibility-note {
  margin: 0.15rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.mll-mylist-section {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.mll-mylist-hint {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.mll-mylist-video-list {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mll-mylist-item {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.45rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  padding: 0.45rem 0.55rem;
}

.mll-mylist-item-main {
  flex: 1;
  min-width: 8rem;
}

.mll-mylist-item-title {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
}

.mll-mylist-item-title:hover {
  text-decoration: underline;
}

.mll-mylist-item-meta {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--muted);
}

.mll-mylist-remove {
  flex-shrink: 0;
  font-size: 0.78rem;
}

/* --- マイリスト カード表示（動画 / チャンネル共通） --- */
.mll-mylist-list-like-host {
  margin: 0.25rem 0 0;
}
.mll-mylist-video-grid,
.mll-mylist-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}
.mll-mylist-video-grid[hidden],
.mll-mylist-channel-grid[hidden] {
  display: none !important;
}
.mll-mylist-video-card,
.mll-mylist-channel-card {
  display: flex;
  flex-direction: column;
  border-radius: 8px;
  background: var(--bg);
  overflow: hidden;
  border: 1px solid var(--card-border, rgba(255, 255, 255, 0.08));
}
.mll-mylist-card-thumb-wrap {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.mll-mylist-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.mll-mylist-card-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0.75rem 0;
}
.mll-mylist-card-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
}
.mll-mylist-card-body {
  padding: 0.5rem 0.6rem;
  flex: 1;
}
.mll-mylist-card-org {
  margin: 0 0 0.2rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
}
.mll-mylist-card-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--link);
  text-decoration: none;
  line-height: 1.35;
}
.mll-mylist-card-title:hover {
  text-decoration: underline;
}
.mll-mylist-card-channel {
  margin: 0.2rem 0 0;
  font-size: 0.74rem;
  color: var(--muted);
}
.mll-mylist-card-category {
  display: inline-block;
  margin-top: 0.25rem;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
}
.mll-mylist-card-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.6rem 0.5rem;
  border-top: 1px solid var(--card-border, rgba(255, 255, 255, 0.06));
}

.mll-mylist-empty {
  margin: 0;
  padding: 0.35rem 0;
  font-size: 0.82rem;
  color: var(--muted);
  list-style: none;
}

.mll-mylist-page-heading {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.mll-mylist-msg {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
}

.mll-mylist-list-block {
  margin-top: 0.85rem;
}

.mll-mylist-list-block:first-child {
  margin-top: 0.35rem;
}

.mll-mylist-list-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 0.35rem;
}

.mll-mylist-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  width: 100%;
}

.mll-mylist-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.mll-mylist-list-name {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  flex: 1 1 auto;
  min-width: 0;
}

.mll-mylist-oshi-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  width: 100%;
  margin: -0.05rem 0 0;
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--text);
}

.mll-mylist-oshi-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  border-radius: 999px;
  background: var(--badge-blue-bg, #e8f1fc);
  border: 1px solid var(--badge-blue-border, rgba(30, 79, 214, 0.35));
  color: var(--accent, #1d4ed8);
}

.mll-mylist-oshi-display.is-placeholder .mll-mylist-oshi-label {
  background: var(--badge-neutral-bg, #ececec);
  border-color: var(--badge-neutral-border, rgba(12, 15, 20, 0.22));
  color: var(--muted);
}

.mll-mylist-oshi-text {
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}

.mll-mylist-oshi-display.is-placeholder .mll-mylist-oshi-text {
  color: rgba(12, 15, 20, 0.45);
  font-weight: 500;
}

.mll-mylist-oshi-edit-row {
  display: grid;
  gap: 0.4rem;
  margin: 0.38rem 0 0.6rem;
}

.mll-mylist-oshi-input {
  width: 100%;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 0.84rem;
  line-height: 1.4;
}

.mll-mylist-oshi-save {
  width: fit-content;
  font-size: 0.78rem;
}

.mll-mylist-list-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem 0.5rem;
  margin-left: auto;
}

.mll-mylist-list-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
}
.mll-mylist-drag-handle {
  cursor: grab;
  font-size: 1.1rem;
  color: var(--muted);
  user-select: none;
  padding: 0.15rem 0.3rem;
  border-radius: 4px;
}
.mll-mylist-drag-handle:active { cursor: grabbing; }
.mll-mylist-dragging { opacity: 0.4; }
.mll-mylist-dragover {
  outline: 2px dashed var(--accent, #1d4ed8);
  outline-offset: 2px;
  border-radius: 8px;
}

.mll-mylist-list-tool-btn,
.mll-mylist-order-btn {
  font-size: 0.72rem;
  padding: 0.15rem 0.35rem;
  min-width: 2rem;
  line-height: 1.2;
}

.mll-mylist-item-order {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex-shrink: 0;
}

.mll-mylist-vis-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.mll-mylist-vis-tag--public {
  color: #0d47a1;
  background: rgba(25, 118, 210, 0.1);
  border-color: rgba(25, 118, 210, 0.35);
}

.mll-mylist-vis-tag--private {
  color: #4a4a4a;
  background: var(--bg);
}

.mz-video-mylist-picker {
  max-width: min(32rem, calc(100vw - 2rem));
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
}

.mz-video-mylist-picker::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.mz-picker-dialog-surface {
  padding: 1rem 1.1rem 1.1rem;
}

.mz-picker-dialog-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.mz-picker-dialog-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.mz-picker-lists {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  max-height: min(40vh, 16rem);
  overflow: auto;
}

.mz-picker-list-option {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.86rem;
  cursor: pointer;
}

.mz-picker-new-block {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.mz-picker-new-name-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.mz-picker-new-name-input {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
}

.mz-picker-new-vis-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.mz-picker-new-vis-legend {
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
}

.mz-picker-vis-label {
  display: block;
  font-size: 0.82rem;
  margin: 0.25rem 0 0;
  cursor: pointer;
}

.mz-picker-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.user-profile-mylist-videos-root {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.user-profile-mylist-list-section {
  margin: 0;
  padding: 0;
  max-width: 100%;
  min-width: 0;
}


.user-profile-mylist-edit-vis-note {
  margin: 0.35rem 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.user-profile-mylist-list-head {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  margin: 0 0 0.5rem;
}

.user-profile-mylist-top-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.65rem;
  width: 100%;
}

.user-profile-mylist-title-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
}

.user-profile-mylist-title-block .user-profile-mylist-list-title {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.4rem;
}

.user-profile-mylist-inline-like {
  flex: 0 0 auto;
}

.user-profile-mylist-inline-like .community-like-row {
  margin: 0;
}

.user-profile-mylist-oshi-block {
  width: 100%;
  flex: 0 0 100%;
}

.user-profile-mylist-overflow {
  flex: 0 0 auto;
}

.user-profile-mylist-overflow .community-post-overflow-trigger {
  /* タップ目標44px(カレンダー側 2026-08-04 と同じ値に統一 2026-08-06) */
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.45rem;
}

.user-profile-mylist-thumb-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.32rem;
  list-style: none;
  margin: 0.28rem 0 0;
  padding: 0;
  width: 100%;
  flex: 0 0 100%;
}

.user-profile-mylist-thumb-slot {
  flex: 0 0 auto;
  width: 54px;
  height: 38px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--row-alt, #eef1f6);
}

.user-profile-mylist-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.user-profile-mylist-thumb-slot--round {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  overflow: hidden;
  flex-shrink: 0;
}

.user-profile-mylist-thumb-link--round {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  margin: 0;
  line-height: 0;
}

.user-profile-mylist-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-profile-mylist-thumb-img--round {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.user-profile-mylist-thumb-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 38px;
  padding: 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

.user-profile-mylist-list-section--expanded .user-profile-mylist-thumb-strip {
  display: none !important;
}

.user-profile-private-blur {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  min-height: 120px;
  border: 1px solid var(--border);
  background: var(--surface, #f8f9fb);
}

.user-profile-private-blur__faux {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.85rem;
  filter: blur(11px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
}

.user-profile-private-blur__bar {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #cbd5e1, #e2e8f0);
}

.user-profile-private-blur__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-weight: 700;
  font-size: 0.92rem;
  color: #64748b;
  background: rgba(255, 251, 245, 0.62);
}

.user-profile-mylist-private-lock {
  position: relative;
  width: 100%;
  flex: 0 0 100%;
  margin-top: 0.3rem;
  min-height: 72px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface, #f8f9fb);
}

.user-profile-mylist-private-lock .user-profile-mylist-thumb-strip--faux {
  filter: blur(9px);
  opacity: 0.42;
  pointer-events: none;
}

.user-profile-mylist-private-lock .user-profile-mylist-thumb-slot {
  background: #dbeafe;
}
.user-profile-mylist-list-head--toggle {
  border-radius: 8px;
  padding: 0.5rem 0.65rem;
  background: var(--surface, #f8f9fb);
  border: 1px solid var(--border);
}

.user-profile-mylist-expand-hit {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  min-width: 0;
  flex: 1 1 auto;
  cursor: pointer;
  border-radius: 6px;
  padding: 0.1rem 0.2rem;
  margin: -0.1rem -0.2rem;
}

.user-profile-mylist-expand-hit:hover {
  background: var(--hover, #eef1f6);
}

.user-profile-mylist-expand-hit:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 2px;
}
.user-profile-mylist-toggle-chevron {
  flex: 0 0 auto;
  font-size: 0.8rem;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.2s;
}

.user-profile-mylist-expand-hit[aria-expanded="true"] .user-profile-mylist-toggle-chevron {
  transform: rotate(90deg);
}

.user-profile-oshi-display {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: var(--text);
}

.user-profile-oshi-badge-label {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.35;
  border-radius: 999px;
  background: var(--badge-blue-bg, #e8f1fc);
  border: 1px solid var(--badge-blue-border, rgba(30, 79, 214, 0.35));
  color: var(--accent, #1d4ed8);
}

.user-profile-oshi-display.is-placeholder .user-profile-oshi-badge-label {
  background: var(--badge-neutral-bg, #ececec);
  border-color: var(--badge-neutral-border, rgba(12, 15, 20, 0.22));
  color: var(--muted);
}

.user-profile-oshi-badge-text {
  font-weight: 600;
  color: var(--text);
  min-width: 0;
}

.user-profile-oshi-display.is-placeholder .user-profile-oshi-badge-text {
  color: var(--muted);
  font-weight: 500;
}

/* 0件でもタブは常にクリック可能（無効化クラスは付与しない） */

.user-profile-mylist-list-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.user-profile-mylist-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3em;
  height: 1.3em;
  padding: 0 0.3em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--border, #e2e5ea);
  border-radius: 999px;
  vertical-align: middle;
}

.user-profile-mylist-list-head-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.user-profile-mylist-edit-btn {
  white-space: nowrap;
}

dialog.user-profile-mylist-edit-dialog {
  border: none;
  padding: 0;
  border-radius: 12px;
  width: min(92vw, 720px);
  max-width: min(92vw, 720px);
  box-shadow: 0 18px 48px rgba(10, 20, 40, 0.28);
}

dialog.user-profile-mylist-edit-dialog::backdrop {
  background: rgba(12, 16, 32, 0.45);
}

.user-profile-mylist-edit-panel {
  padding: 1rem 1.15rem 1.1rem;
  background: var(--panel);
  box-sizing: border-box;
}

@media (max-width: 599px) {
  dialog.user-profile-mylist-edit-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  dialog.user-profile-mylist-edit-dialog .user-profile-mylist-edit-panel {
    min-height: 100%;
    padding: 1.1rem 1rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  }
}

.user-profile-mylist-edit-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}

.user-profile-mylist-edit-field {
  display: block;
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.user-profile-mylist-edit-input {
  display: block;
  width: 100%;
  margin-top: 0.25rem;
  box-sizing: border-box;
  padding: 0.4rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border, #e2e8f0);
  font: inherit;
}

.user-profile-mylist-edit-radio {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-right: 1rem;
  font-size: 0.88rem;
}

.user-profile-mylist-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.85rem;
}

.user-profile-mylist-oshi-block {
  width: 100%;
  margin: 0 0 0.5rem;
  padding: 0 0.65rem;
  box-sizing: border-box;
}

.user-profile-vis-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.user-profile-vis-tag--public {
  color: #0d47a1;
  background: rgba(25, 118, 210, 0.1);
  border-color: rgba(25, 118, 210, 0.35);
}

.user-profile-vis-tag--private {
  color: #4a4a4a;
  background: var(--bg);
}

.mll-log-list-wrap {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

.mll-log-list-wrap:has(.community-post-overflow[open]) {
  overflow: visible;
}

.mll-event-list-wrap {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.mll-event-list-wrap--page {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.mll-events-mll-panel {
  margin: 1.25rem 0 1.75rem;
  padding: 1rem 1rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 252, 254, 0.98), var(--panel));
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.06);
}

.mll-events-mll-lead {
  margin-top: 0.35rem;
}

.mll-events-mll-list-wrap {
  margin-top: 0.85rem;
}

.mll-events-register-reveal {
  margin: 0;
}

/* 旧 mll-log-form（calendar-event-form に統合済み・常時非表示） */
#mll-events-mll-logged-block {
  display: none !important;
}

html.calendar-ev-compose-active #community-hub-panel-events .calendar-events-panel {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}

html.calendar-ev-compose-active #calendar-ev-compose-overlay,
html.calendar-ev-compose-active #calendar-edit-overlay {
  filter: none;
  pointer-events: auto;
}

.calendar-ev-compose-dialog .mll-events-mll-lead {
  margin-top: 0;
}

/* イベント登録モーダル: PC では枠・文字を大きく */
@media (min-width: 768px) {
  .calendar-ev-compose-dialog.community-compose-dialog {
    width: min(56rem, calc(100vw - 2.5rem));
    max-height: min(94vh, 980px);
  }

  .calendar-ev-compose-dialog .community-compose-dialog-head {
    padding: 1rem 1.4rem;
  }

  .calendar-ev-compose-dialog .community-compose-heading {
    font-size: 1.35rem;
  }

  .calendar-ev-compose-dialog .community-compose-close-btn {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.5rem;
  }

  .calendar-ev-compose-dialog .community-compose-scroll {
    padding: 1rem 1.4rem 1.4rem;
  }

  .calendar-ev-compose-dialog .mll-events-mll-lead,
  .calendar-ev-compose-dialog .static-panel-lead {
    font-size: 1rem;
    line-height: 1.6;
  }

  .calendar-ev-compose-dialog .calendar-event-form,
  .calendar-ev-compose-dialog #calendar-event-form,
  .calendar-ev-compose-dialog .calendar-ev-form-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 0.35rem 0.15rem;
    border: 0;
    background: transparent;
  }

  .calendar-ev-compose-dialog .search-label-full {
    gap: 0.45rem;
    font-size: 1rem;
  }

  .calendar-ev-compose-dialog .search-label-full input,
  .calendar-ev-compose-dialog .search-label-full select,
  .calendar-ev-compose-dialog .calendar-event-form input,
  .calendar-ev-compose-dialog .calendar-event-form select {
    font-size: 1.125rem;
    padding: 0.7rem 0.85rem;
    min-height: 3.1rem;
    border-radius: 8px;
  }

  .calendar-ev-compose-dialog .mll-log-meta,
  .calendar-ev-compose-dialog .mz-profile-field-note,
  .calendar-ev-compose-dialog .calendar-ev-date-hint,
  .calendar-ev-compose-dialog .calendar-ev-register-consent {
    font-size: 0.92rem !important;
    line-height: 1.6 !important;
  }

  .calendar-ev-compose-dialog .btn-share-search.calendar-ev-submit-register {
    font-size: 1.08rem;
    padding: 0.75rem 1.5rem;
    min-height: 3.1rem;
  }
}

.mll-event-kind-label--from-tab select[hidden] {
  display: none;
}

.mll-event-kind-tab-hint {
  margin: 0.35rem 0 0;
  font-weight: 600;
  color: var(--text-strong, #0f172a);
}

.mll-events-auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-top: 1rem;
}

.mll-events-withdrawn-msg {
  color: #b71c1c;
  margin: 0.35rem 0 0;
}

.mll-events-mll-footnote {
  margin-top: 0.65rem;
}

.mll-profile-viewer-inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.25rem;
}

.mll-profile-close-btn {
  font-size: 0.85rem;
  align-self: flex-end;
}

.mll-profile-viewer {
  margin-top: 0.15rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.mll-profile-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  background: var(--panel-tint);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
}

.mll-user-chip {
  cursor: pointer;
}

.mll-user-chip:hover {
  opacity: 0.92;
}

.mll-log-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
}
.mll-log-list[hidden] {
  display: none !important;
}

.mll-log-item {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 8px;
  padding: 0.5rem 0.6rem;
}

.mll-log-item.community-thread:has(.community-post-overflow[open]) {
  position: relative;
  z-index: 3;
  overflow: visible;
}

.mll-log-meta {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.mll-log-title {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text);
  font-weight: 700;
}

.mll-log-note {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: var(--text);
  white-space: pre-wrap;
}

.search-panel-title {
  display: inline-block;
  margin: 0;
  vertical-align: middle;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.search-inline-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  flex-wrap: nowrap;
  margin: 0 0 0.45rem;
}

.search-panel-title-note {
  font-size: calc(0.95rem - 3pt);
  font-weight: 500;
}

.search-panel label,
.search-label,
.search-label-full {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.search-panel .search-field--team > .search-label,
.search-panel .search-field--free > .search-label {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  text-align: left;
}

.search-panel input {
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  text-align: left;
}

#page-videos .search-panel .search-share-row {
  margin-inline: 0.35rem;
  padding-inline: 0.15rem;
  box-sizing: border-box;
}

/* 大会動画検索：団体・フリーはラベル左・入力右 */
.search-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.search-row {
  width: 100%;
}

.search-field--team {
  display: grid;
  /* ラベル幅は文字どおり。min 固定幅を付けない（短文ラベルと入力の間に空きができないように） */
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.35rem 0.35rem;
  align-items: center;
}

.search-field--team > .search-label {
  grid-column: 1;
  grid-row: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding-top: 0;
  padding-right: 0;
  white-space: nowrap;
}

.search-field--team > .search-label .mz-ui-icon,
.search-field--free > .search-label .mz-ui-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.search-field--team > .search-team-line {
  grid-column: 2;
  grid-row: 1;
}

.search-field--free {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.35rem 0.35rem;
  align-items: center;
}

.search-field--free > .search-label {
  grid-column: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin: 0;
  padding-right: 0;
  white-space: nowrap;
}

.search-field--free > input {
  grid-column: 2;
  min-width: 0;
  width: 100%;
}

.search-team-line {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.5rem;
}

.search-team-line input {
  flex: 1 1 14rem;
  min-width: 0;
}

@media (max-width: 520px) {
  .search-field--team,
  .search-field--free {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.28rem 0.35rem;
    align-items: center;
  }

  .search-field--team > .search-label,
  .search-field--free > .search-label {
    grid-column: 1;
    grid-row: 1;
    padding-top: 0;
    white-space: nowrap;
    font-size: 0.72rem;
  }

  .search-field--team > .search-team-line {
    grid-column: 2;
    grid-row: 1;
  }

  .search-field--free > input {
    grid-column: 2;
    grid-row: 1;
  }

  #page-videos .search-panel .search-share-row {
    margin-inline: 0.4rem;
    padding-inline: 0.2rem;
  }
}

.search-options {
  display: grid;
  gap: 0.35rem;
  margin: 0.2rem 0 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-tint);
}

.search-options-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.8rem;
  font-size: 0.82rem;
  color: var(--text);
}

.search-options-label {
  font-weight: 700;
  color: var(--muted);
  min-width: 4.5rem;
}

.search-options-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
}

.search-option-box {
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
}

.browse-inline-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  border: 2px solid #d77a12;
  border-radius: 8px;
  background: #ffd39a;
  color: #8a4600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--shadow);
}

.browse-inline-trigger:hover {
  border-color: #b96407;
  background: #ffc277;
  color: #7a3d00;
}

.browse-inline-trigger.browse-trigger-active,
.browse-inline-trigger[aria-expanded="true"] {
  background: #ffb85c;
  color: #6e3300;
  border-color: #b96407;
  box-shadow: 0 0 0 2px rgba(217, 122, 18, 0.22);
}

.search-share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.mll-events-form-actions {
  width: 100%;
}

.mll-events-form-close-btn {
  font-size: 0.85rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  line-height: 1.25;
}

.mll-events-form-close-btn:hover {
  background: var(--hover, #eef1f6);
}

.search-presets,
.search-history {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
}

.search-presets-title {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
}

.search-history-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  margin-bottom: 0.45rem;
}

.search-presets-title--history {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 12rem);
}

.search-history-heading .btn-reset-search--history {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  line-height: 1.35;
}

.search-presets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0;
}

.search-presets-empty {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.btn-reset-search,
.btn-share-search {
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--yellow-soft);
  color: var(--accent-strong);
  cursor: pointer;
}

.btn-reset-search:hover,
.btn-share-search:hover {
  background: var(--panel);
  border-color: var(--accent-strong);
}

.recommend-section {
  margin-top: 1.25rem;
  margin-bottom: 0;
  padding: 1.1rem 1rem;
  background: linear-gradient(135deg, var(--yellow-soft) 0%, var(--panel) 55%);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 12px var(--shadow);
}

.recommend-section[hidden] {
  display: none !important;
}

.recommend-heading {
  margin: 0 0 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent-strong);
}

.recommend-list,
.video-result-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  grid-template-columns: 1fr;
}

.video-result-list {
  gap: 1rem;
}

.recommend-item {
  margin: 0;
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  font-size: 0.88rem;
  line-height: 1.45;
  min-width: 0;
  max-width: 100%;
}

.recommend-item--marching {
  background: var(--video-marching-bg);
  border-color: var(--video-marching-border);
}

.recommend-item--drum {
  background: var(--video-drum-bg);
  border-color: var(--video-drum-border);
}

.recommend-item--marching .recommend-item-thumb-wrap {
  border-color: var(--video-marching-thumb);
  box-shadow: 0 0 0 1px var(--video-marching-thumb-glow);
}

.recommend-item--drum .recommend-item-thumb-wrap {
  border-color: var(--video-drum-thumb);
  box-shadow: 0 0 0 1px var(--video-drum-thumb-glow);
}

.recommend-item-thumb-wrap {
  flex: 0 0 auto;
  width: 156px;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-thumb);
  overflow: hidden;
  background: var(--row-alt);
  border: 1px solid var(--border);
  align-self: center;
}

/* 検索結果：サムネをカード幅いっぱい（YouTube 風） */
.video-result-list .recommend-item-thumb-wrap {
  width: 100%;
  max-width: none;
  align-self: stretch;
  border-radius: 10px;
}

.recommend-item-yt-info-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.recommend-item-yt-avatar-wrap {
  flex-shrink: 0;
  padding-top: 0.12rem;
}

.recommend-item-yt-avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.12) 0%, rgba(30, 64, 175, 0.15) 100%);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1;
  overflow: hidden;
  flex-shrink: 0;
}

.recommend-item-yt-avatar--has-img {
  padding: 0;
  background: rgba(15, 23, 42, 0.08);
}

.recommend-item-yt-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-item-yt-avatar:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.recommend-item-yt-avatar-letter {
  pointer-events: none;
}

.recommend-item-yt-text-stack {
  flex: 1;
  min-width: 0;
}

.recommend-item-yt-meta-line {
  margin: 0.2rem 0 0;
  padding: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  word-break: break-word;
}

.recommend-item-yt-meta-prefix {
  font-size: calc(1em - 4pt);
  font-weight: 600;
  color: inherit;
}

.recommend-item-yt-meta-channel {
  color: inherit;
  font-weight: 600;
  text-decoration: none;
}

.recommend-item-yt-meta-channel:hover {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

/* 大会動画検索結果：タイトルはプレーンな太字２行、団体行は控えめ */
.video-result-list .recommend-item {
  padding: 0.45rem 0.5rem 0.6rem;
  gap: 0.5rem;
}

.video-result-list .recommend-item-head-row {
  color: var(--muted);
}

.video-result-list .recommend-item-event {
  margin-top: 0.08rem;
  font-size: 0.92rem;
  line-height: 1.35;
}

.video-result-list .recommend-item-event-link,
.video-result-list .recommend-item-event-plain {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  white-space: normal;
  max-width: 100%;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  font-weight: 600;
  color: var(--text-strong);
}

.video-result-list .recommend-item-event-link--marching,
.video-result-list .recommend-item-event-link--drum {
  border: none;
  background: none;
}

.video-result-list .recommend-item-event-link:hover,
.video-result-list .recommend-item-event-link--marching:hover,
.video-result-list .recommend-item-event-link--drum:hover {
  background: none;
  border: none;
  color: var(--accent-strong);
  text-decoration: underline;
}

.video-result-list .recommend-item-url-line {
  margin-top: 0.2rem;
  font-size: 0.72rem;
}

.recommend-item-thumb-link {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}

.recommend-item-thumb-wrap--empty {
  min-height: 5.85rem;
  background: linear-gradient(135deg, var(--row-alt) 0%, rgba(15, 33, 56, 0.06) 100%);
}


.recommend-item-thumb-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--row-alt) 0%, rgba(30, 79, 214, 0.08) 100%);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--accent);
  text-decoration: none;
  opacity: 0.9;
}

.recommend-item-thumb-fallback:hover {
  opacity: 1;
  color: var(--accent-strong);
}

.recommend-item-thumb-fallback::before {
  content: "▶";
  margin-left: 0.1rem;
}

.recommend-item-thumb {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  vertical-align: middle;
}


.recommend-item-body {
  width: 100%;
  min-width: 0;
  text-align: left;
}

.recommend-item-head-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
  white-space: nowrap;
  font-size: clamp(0.5rem, 0.3vw + 0.5rem, 0.82rem);
  overflow: hidden;
}

.recommend-item-org-search-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  min-width: 0;
  flex: 1 1 auto;
  max-width: 100%;
}

.recommend-item-org-search-wrap .recommend-item-org {
  flex: 1 1 auto;
  min-width: 0;
}

.recommend-item-team-search-btn {
  flex: 0 0 auto;
  margin: 0;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
}

/** シェア CTA と同系（パディング・フォントはカード用に絞る） */
.recommend-item-team-search-btn.btn-share-search.btn-marchinz-spotlight {
  margin: 0;
  padding: 0.12rem 0.52rem;
  font-size: clamp(0.62rem, 0.55em, 0.76rem);
  line-height: 1.25;
  border-radius: var(--radius-md);
}

.recommend-item-team-search-btn:focus-visible {
  outline: 2px solid var(--cta-teal-focus);
  outline-offset: 2px;
}

.recommend-item-org {
  font-weight: 600;
  font-size: calc(1em + 5pt);
  color: var(--text-strong);
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-item-meta {
  margin: 0;
  word-break: normal;
  white-space: nowrap;
}

.recommend-item-meta-label {
  font-weight: 600;
  color: var(--text);
  margin-right: 0.25rem;
}

.recommend-item-event {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  word-break: break-word;
}

.recommend-item-event-link {
  display: inline-block;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-cream-top) 0%, var(--gold-cream-mid) 100%);
  color: var(--text-strong);
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-item-event-link:hover {
  background: linear-gradient(180deg, var(--gold-cream-hover-top) 0%, var(--gold-cream-hover-mid) 100%);
  border-color: var(--gold-border-hover);
  color: var(--text-strong);
}

.recommend-item-event-link--marching,
.recommend-item-event-link--drum {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, var(--gold-cream-top) 0%, var(--gold-cream-mid) 100%);
  color: var(--text-strong);
}

.recommend-item-event-link--marching:hover,
.recommend-item-event-link--drum:hover {
  background: linear-gradient(180deg, var(--gold-cream-hover-top) 0%, var(--gold-cream-hover-mid) 100%);
  border-color: var(--gold-border-hover);
  color: var(--text-strong);
}

.recommend-item-event-plain {
  display: inline-block;
  max-width: 100%;
  padding: 0.18rem 0.5rem;
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-pill);
  background: linear-gradient(180deg, var(--gold-cream-top) 0%, var(--gold-cream-mid) 100%);
  color: var(--text-strong);
  font-weight: 600;
}

.recommend-item-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel-tint);
  color: var(--muted);
  flex: 0 1 auto;
  max-width: 38%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-item-channel {
  margin: 0;
  word-break: normal;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recommend-item-channel-prefix {
  font-weight: 600;
  margin-right: 0.08rem;
  flex: 0 0 auto;
}

/** 動画カードの配信日・配信元（URL と同じ字サイズ） */
.recommend-item-publish-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.95rem;
  margin-top: 0.38rem;
  font-size: 0.65rem;
  line-height: 1.45;
  color: var(--muted);
}

.recommend-item-publish-row .recommend-item-publish-meta {
  flex: 0 1 auto;
  min-width: 0;
  color: inherit;
}

.recommend-item-publish-row .recommend-item-meta-label {
  color: inherit;
}

.recommend-item-publish-row .recommend-item-publish-channel {
  flex: 1 1 14rem;
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommend-item-publish-row .recommend-item-channel-prefix {
  color: inherit;
}

.recommend-item-publish-row .recommend-item-channel[href] {
  color: inherit;
  text-decoration: none;
}

.recommend-item-publish-row .recommend-item-channel[href]:hover {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.recommend-item-url-line {
  display: inline-block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  word-break: break-all;
  color: var(--muted);
  text-decoration: none;
}

.recommend-item-url-accent {
  color: #f08a24;
  font-weight: 700;
}

.recommend-item-url-line:hover {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.recommend-item-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  width: 100%;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.recommend-item-action-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.btn-mll-mylist-add {
  padding: 0.35rem 0.55rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.btn-mll-mylist-add:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.btn-mll-mylist-add:disabled {
  opacity: 0.65;
  cursor: default;
}


.recommend-item-actions .share-wrap {
  position: relative;
}

.recommend-item-actions .share-menu {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

.recommend-more {
  margin-top: 0.65rem;
  padding: 0.45rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--panel);
  color: var(--accent-strong);
  cursor: pointer;
}

.recommend-more:hover {
  background: var(--yellow-soft);
}

.video-result-more-wrap {
  display: flex;
  justify-content: center;
  margin: 0.45rem 0 0.35rem;
}

/* グリッド末尾の空きセル：次の1件＋白ベール＋もっと見る */
.video-result-peek-slot {
  min-width: 0;
  align-self: start;
  width: 100%;
  max-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.video-result-peek-stack {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border);
}

.video-result-list .video-result-peek-card,
.youtube-channel-list .youtube-card.video-result-peek-card {
  margin: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  pointer-events: none;
  user-select: none;
  opacity: 0.97;
}

.video-result-peek-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(255, 255, 255, 0.82);
  pointer-events: auto;
}

.video-result-peek-more-btn.recommend-more {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  margin: 0;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.12);
}

.tabs {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.tabs button[role="tab"] {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.tabs button[role="tab"][aria-selected="true"] {
  background: var(--yellow-soft);
  color: var(--navy);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(30, 79, 214, 0.35);
  font-weight: 600;
}

.tabs button[role="tab"]:hover {
  color: var(--text);
}

.tabs button[role="tab"] .tabs-tab-cross-sub {
  font-size: 0.7225em;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.youtube-tabs {
  margin-bottom: 0.95rem;
}

/* 大会動画の分類は、端末や表示幅にかかわらず44px以上のタップ領域を保つ。 */
#page-videos nav.tabs.youtube-tabs[aria-label="大会動画の分類"] button[role="tab"] {
  min-height: 44px;
}

.youtube-tab-btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.youtube-tab-btn[aria-selected="true"] {
  background: var(--yellow-soft);
  color: var(--navy);
  border-color: var(--blue);
  box-shadow: 0 0 0 1px rgba(30, 79, 214, 0.35);
  font-weight: 600;
}

.youtube-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.9rem;
  flex-wrap: wrap;
  margin: 0 0 1rem;
}

.youtube-panel-title {
  margin: 0;
}

.youtube-panel-lead-block {
  margin: 0 0 1rem;
}

.youtube-panel-lead-main {
  margin: 0 0 0.35rem;
  font-size: 0.82rem;
  color: var(--text);
  line-height: 1.55;
}

.youtube-panel-lead-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.youtube-panel-lead-ops-link {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.youtube-panel-lead-ops-link:hover {
  text-decoration-thickness: 0.1em;
}

.youtube-list-updated {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.2rem 0.5rem;
  background: var(--panel);
  line-height: 1.3;
  white-space: nowrap;
}

.youtube-published-list-wrap {
  margin: 0 0 0.95rem;
  width: 100%;
  min-width: 0;
}

.youtube-published-list-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.youtube-published-list-btn-count {
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--text);
  opacity: 0.62;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.youtube-published-list-row .mz-search-bar--youtube {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  max-width: none;
  margin: 0;
}

.youtube-published-list-row .mz-search-bar--youtube .mz-search-input {
  width: 100%;
  min-width: 0;
}

@media (max-width: 480px) {
  .youtube-published-list-btn-count {
    font-size: 0.52rem;
  }

  .youtube-published-list-btn {
    padding: 0.4rem 0.75rem;
    font-size: 0.78rem;
  }

  .youtube-published-list-row .mz-search-bar--youtube .mz-search-input {
    font-size: 0.75rem;
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
  }
}

.youtube-published-channel-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  opacity: 0.72;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.youtube-published-list-btn {
  flex-shrink: 0;
  white-space: nowrap;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid var(--navy);
  border-radius: 999px;
  background: var(--navy);
  color: var(--white);
  cursor: pointer;
}

.youtube-published-list-btn:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.youtube-published-list-dialog {
  max-width: min(32rem, calc(100vw - 2rem));
  width: 100%;
  margin: auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  color: #000;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.youtube-published-list-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.youtube-published-list-header {
  position: relative;
  padding: 0.9rem 2.6rem 0.5rem 1rem;
  border-bottom: 1px solid var(--border);
}

.youtube-published-list-title {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  color: #000;
}

#youtube-published-list-title-count {
  margin-left: 0.2em;
  font-size: 0.78em;
  font-weight: 600;
  color: var(--muted);
}

.youtube-published-list-note {
  margin: 0;
  font-size: 0.75rem;
  color: #000;
  line-height: 1.4;
}

.youtube-published-list-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0;
  font-size: 1.4rem;
  line-height: 1;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.youtube-published-list-close:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.06);
}


.youtube-published-list-body {
  max-height: min(70vh, 28rem);
  overflow: auto;
  padding: 0.6rem 1rem 1rem;
}

.youtube-published-list-cat {
  margin: 0.75rem 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #000;
}

.youtube-published-list-cat:first-child {
  margin-top: 0.15rem;
}

.youtube-published-list-ul {
  margin: 0 0 0.4rem;
  padding: 0 0 0 1.1rem;
  list-style: disc;
  font-size: 0.88rem;
  line-height: 1.5;
  color: #000;
}

.youtube-published-list-ul a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  word-break: break-all;
}

.youtube-published-list-ul a:hover {
  text-decoration: underline;
  color: #000;
}

.youtube-sort-btn {
  padding: 0.32rem 0.7rem;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}

.youtube-sort-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  font-weight: 700;
}

/* YouTube 一覧は大会動画の results-panel と同型で横幅いっぱい */
.youtube-results-panel .youtube-result-sort-bar {
  margin-bottom: 0.5rem;
  justify-content: flex-start;
  align-items: center;
  column-gap: 0.75rem;
}

.youtube-results-panel .youtube-result-sort-bar .result-sort-bar-main {
  align-items: center;
}

.youtube-sort-bar-channel-count {
  flex-shrink: 0;
}

/* モバイルファースト：〜899px 1列 / 900〜1199px 2列 / 1200px〜 3列（大会動画一覧と同じ閾値） */
.youtube-channel-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  justify-content: center;
}

.youtube-channel-list > li {
  min-width: 0;
}

@media (min-width: 900px) {
  .youtube-channel-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* 区分などで 2 チャンネルだけ：最大幅を抑えて中央に並べる */
  .youtube-channel-list.youtube-channel-list--total-2 {
    grid-template-columns: repeat(2, minmax(0, min(100%, 24rem)));
    justify-content: center;
  }

  /* 1 件だけ：カード幅を抑えて中央 */
  .youtube-channel-list.youtube-channel-list--total-1 {
    grid-template-columns: minmax(0, min(100%, 28rem));
    justify-content: center;
  }
}

@media (min-width: 1200px) {
  .youtube-channel-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* 広い画面で 2 件のみのときは 3 列グリッドをやめ 2 枚を中央に */
  .youtube-channel-list.youtube-channel-list--total-2 {
    grid-template-columns: repeat(2, minmax(0, min(100%, 24rem)));
    justify-content: center;
  }

  .youtube-channel-list.youtube-channel-list--total-1 {
    grid-template-columns: minmax(0, min(100%, 28rem));
    justify-content: center;
  }
}

.youtube-results-skeleton {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 1.35rem);
  min-height: auto;
}

@media (min-width: 900px) {
  .youtube-results-skeleton {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .youtube-results-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.youtube-more-wrap {
  margin: 0.55rem 0 0;
  text-align: center;
}

.youtube-visible-count {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.youtube-card {
  border: 1px solid var(--border);
  background: var(--bg);
  border-radius: 10px;
  padding: 0.7rem 0.72rem;
  box-shadow: 0 2px 10px var(--shadow);
}

.youtube-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.youtube-card-logo {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--border);
  object-fit: cover;
  background: #fff;
  flex-shrink: 0;
}

.youtube-logo-link {
  display: inline-block;
  line-height: 0;
}

.youtube-card-info {
  min-width: 0;
  min-height: 84px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.22rem;
  flex: 1;
  text-align: left;
}

.youtube-card-name {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}

.youtube-card-top-badges {
  display: flex;
  align-items: center;
  gap: 0.28rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.youtube-top-badge {
  display: inline-block;
  padding: 0.04rem 0.36rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
  border: 1px solid transparent;
}

.youtube-top-badge--category {
  background: var(--badge-amber-bg);
  border-color: var(--badge-amber-border);
  color: var(--navy);
}

.youtube-top-badge--cat-taikai {
  background: var(--badge-navy-bg);
  border-color: var(--badge-navy-border);
  color: var(--navy);
}

.youtube-top-badge--cat-ippan {
  background: var(--badge-blue-bg);
  border-color: var(--badge-blue-border);
  color: var(--navy);
}

.youtube-top-badge--cat-junior {
  background: var(--badge-amber-bg);
  border-color: var(--badge-amber-border);
  color: var(--navy);
}

.youtube-top-badge--cat-colorguard {
  background: var(--badge-navy-bg);
  border-color: var(--badge-navy-border);
  color: var(--navy);
}

.youtube-top-badge--cat-koko {
  background: var(--badge-blue-bg);
  border-color: var(--badge-blue-border);
  color: var(--navy);
}

.youtube-top-badge--cat-default {
  background: var(--badge-neutral-bg);
  border-color: var(--badge-neutral-border);
  color: var(--black);
}

.youtube-top-badge--date {
  background: var(--badge-blue-bg);
  border-color: var(--badge-blue-border);
  color: var(--navy);
}

.youtube-top-badge--video-date {
  max-width: 11rem;
}

.youtube-top-badge--live-date {
  background: var(--badge-amber-bg);
  border-color: var(--badge-amber-border);
  color: var(--navy);
  max-width: 11rem;
}

.youtube-card-link {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.35;
  word-break: break-all;
}

.youtube-card-link a {
  color: var(--link);
  text-decoration: none;
  font-weight: 600;
}

.youtube-card-link a:hover {
  text-decoration: underline;
}

.youtube-thumb-list {
  margin-top: 0.58rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.38rem;
}

.youtube-thumb-item {
  position: relative;
}

.youtube-thumb-link {
  display: block;
}

.youtube-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #f7f7f7;
}


.youtube-thumb-badge {
  position: absolute;
  left: 0.32rem;
  top: 0.28rem;
  z-index: 1;
  display: inline-block;
  max-width: calc(100% - 0.6rem);
  padding: 0.12rem 0.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: #fff;
  font-size: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  white-space: normal;
  word-break: break-word;
  hyphens: auto;
  pointer-events: none;
}

.youtube-thumb-badge--corner-tr {
  left: auto;
  right: 0.32rem;
  text-align: right;
  max-width: min(9.2rem, calc(100% - 0.6rem));
}

.youtube-thumb-badge--rank-0 {
  background: rgba(185, 28, 28, 0.94);
  border-color: rgba(254, 202, 202, 0.62);
}

/* 白文字とのコントラストが2.77:1(WCAG AA 4.5:1未達)だったため、
   2026-08-13 デザインレビューで amber-700 系へ濃くした。4.48:1で合格。 */
.youtube-thumb-badge--rank-1 {
  background: rgba(161, 98, 7, 0.95);
  border-color: rgba(254, 240, 138, 0.75);
}

/* 白文字とのコントラストが4.38:1でAAの境界だったため gray-600 系へ。6.58:1。 */
.youtube-thumb-badge--rank-2 {
  background: rgba(75, 85, 99, 0.95);
  border-color: rgba(229, 231, 235, 0.75);
}

.youtube-thumb-badge--rank-3 {
  background: rgba(146, 64, 14, 0.95);
  border-color: rgba(253, 186, 116, 0.72);
}

/* オススメ = 人が選んで固定した枠。botが毎日入れ替える NEW/TOP と
   同じ色にすると「自動で出た枠」と見分けが付かないので別の色を当てる */
.youtube-thumb-badge--rank-pick {
  background: rgba(29, 78, 216, 0.95);
  border-color: rgba(191, 219, 254, 0.75);
  /* 日本語4文字ぶんだけ他バッジ(英字)より横に張り出していたので詰める */
  letter-spacing: -0.02em;
}

.youtube-thumb-title {
  position: absolute;
  left: 0.28rem;
  right: 0.28rem;
  bottom: 0.26rem;
  padding: 0.2rem 0.36rem 0.22rem;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.68);
  color: #fff;
  font-size: 0.55rem;
  line-height: 1.2;
  font-weight: 600;
  z-index: 2;
  pointer-events: none;
  text-align: left;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3.6em;
  min-height: 1.1em;
  word-break: break-word;
}

.youtube-debug-meta {
  margin: 0.5rem 0 0;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--border);
  font-size: 0.66rem;
  line-height: 1.45;
  color: #6b7280;
  word-break: break-all;
}

@media (max-width: 700px) {
  .youtube-card {
    padding: 0.68rem 0.68rem;
  }

  .youtube-card-logo {
    width: 72px;
    height: 72px;
  }

  .youtube-card-name {
    font-size: 0.98rem;
  }

  .youtube-top-badge {
    font-size: 0.68rem;
  }

  .youtube-card-link {
    font-size: 0.75rem;
  }

  #media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-card {
    padding: 0.66rem 0.66rem;
  }

  #media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-thumb {
    min-height: 8.4rem;
  }

  #media-note + .section-top-link + .media-subheading + .magazine-grid .magazine-title {
    font-size: 0.82rem;
  }
}

.mix3-notice {
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--yellow-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.mix3-notice p {
  margin: 0 0 0.4rem;
}

.mix3-notice p:last-child {
  margin-bottom: 0;
}

.mix3-notice a {
  color: var(--link);
  text-decoration: none;
}

.mix3-notice a:hover {
  text-decoration: underline;
}

.data-fetch-meta {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.data-fetch-meta a {
  color: var(--link);
  text-decoration: none;
  word-break: break-all;
}

.data-fetch-meta a:hover {
  text-decoration: underline;
}

.err {
  color: #b71c1c;
  margin: 0.5rem 0;
}

.rights-notice {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.rights-notice-mix3 {
  margin: 0.18rem 0 0.45rem;
  font-size: 0.68rem;
  line-height: 1.45;
}

/* 大会動画タブ下：検索注記（常時）＋ MIX3 注記（MIX3 タブ時のみ）を同じ体裁で積む */
.videos-tab-notice-block {
  margin: 0.18rem 0 0.45rem;
}

.videos-tab-notice-block .videos-tab-notice-line {
  margin: 0;
}

html.mix3-about-active,
body.mix3-about-active {
  overflow: hidden;
}

.videos-tab-notice-block #mix3-notice:not([hidden]) {
  margin-top: 0.35rem;
}

.mix3-about-chip-wrap {
  margin-top: 0.4rem;
}

.mix3-about-chip-wrap[hidden] {
  display: none !important;
}

.mix3-about-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(202, 138, 4, 0.58);
  border-radius: var(--radius-pill);
  background: var(--gold-chip-bg);
  box-shadow: 0 1px 3px rgba(180, 83, 9, 0.14);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
  cursor: pointer;
}

.mix3-about-chip:hover {
  background: var(--gold-cream-top);
}

.mix3-about-chip:focus-visible {
  outline: 2px solid var(--nav-pill-border);
  outline-offset: 2px;
}

.mix3-about-dialog {
  width: min(52rem, calc(98vw - 1rem));
}

@media (min-width: 900px) {
  .mix3-about-dialog {
    width: min(56rem, 96vw);
  }
}

.mix3-about-scroll {
  padding: 0.85rem 1rem 1.1rem;
}

.mix3-about-section {
  margin: 0 0 1rem;
}

.mix3-about-section--video .mix3-about-video-title {
  padding: 0 0.15rem;
}

.mix3-about-section--rule {
  padding: 0 0.15rem;
}

.mix3-about-section:last-child {
  margin-bottom: 0;
}

.mix3-about-section-title {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.mix3-about-video-thumb-btn {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  background: #111827;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(15, 33, 56, 0.18);
}

.mix3-about-video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.mix3-about-video-play-icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(2rem, 8vw, 2.75rem);
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.mix3-about-video-title {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}

.mix3-about-rule-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

.mix3-about-rule-link:hover {
  text-decoration: underline;
}

.mix3-about-rule-url {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  word-break: break-all;
}

.mix3-about-rule-url a {
  color: inherit;
}

@media (max-width: 767px) {
  #mix3-about-overlay.community-compose-overlay {
    align-items: center;
    justify-content: center;
    padding: max(0.35rem, env(safe-area-inset-top, 0px)) 0 max(0.35rem, env(safe-area-inset-bottom, 0px));
  }

  #mix3-about-overlay .mix3-about-dialog {
    width: 100%;
    max-width: 100%;
    max-height: min(94dvh, calc(100dvh - 0.5rem));
    border-radius: 10px;
  }

  .mix3-about-scroll {
    padding-top: 0.75rem;
    padding-bottom: 1rem;
    padding-left: 0;
    padding-right: 0;
  }

  .mix3-about-section--video {
    margin-bottom: 0.85rem;
  }

  .mix3-about-section--video .mix3-about-section-title {
    padding: 0 0.65rem;
  }

  .mix3-about-video-thumb-btn {
    border-radius: 0;
  }

  .mix3-about-section--video .mix3-about-video-title {
    padding: 0.55rem 0.65rem 0;
  }

  .mix3-about-section--rule {
    padding: 0 0.65rem;
  }
}

.rights-notice-mix3[hidden] {
  display: none !important;
}

.rights-notice a,
.rights-notice-mix3 a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.rights-notice a:hover,
.rights-notice-mix3 a:hover {
  text-decoration-thickness: from-font;
}

/** 一覧ページ送り / YouTube「もっと見る」の直後など */
.rights-notice--page-foot {
  margin-top: 0.75rem;
  margin-bottom: 0.65rem;
}

.rights-notice--youtube-foot {
  text-align: left;
}

/* YouTube / 大会動画一覧：並び替えバーの直下 */
.youtube-results-panel > .rights-notice--youtube-under-sort,
#results-panel > .rights-notice--videos-under-sort {
  margin-top: 0.42rem;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--muted);
}

.results-panel {
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  padding: 0.8rem 0.75rem;
}

.results-skeleton {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 6rem;
}

.results-skeleton[hidden] {
  display: none;
}

.skeleton-card {
  min-height: 4.25rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: linear-gradient(
    110deg,
    var(--table-th) 0%,
    var(--border) 45%,
    var(--table-th) 90%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.1s ease-in-out infinite;
}

@keyframes skeleton-pulse {
  0% {
    background-position: 100% 0;
    opacity: 0.65;
  }
  50% {
    opacity: 0.95;
  }
  100% {
    background-position: -100% 0;
    opacity: 0.65;
  }
}

.result-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 1rem;
  margin: 0 0 0.65rem;
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--border);
}

.result-sort-bar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.85rem;
  min-width: min(100%, 12rem);
}

.result-sort-group,
.result-filter-group {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem 0.42rem;
  min-width: 0;
}

.result-sort-btn-group {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  flex-wrap: nowrap;
}

.result-sort-btn-group .sort-btn[data-sort] {
  flex: 0 1 auto;
  min-width: 0;
}

.result-sort-bar-share {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.result-sort-bar-share .share-wrap {
  position: relative;
}

.result-sort-bar-share .search-share-wrap {
  display: flex;
  justify-content: flex-end;
}

.result-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 0.22em;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.result-sort-label .mz-ui-icon {
  font-size: 0.85em;
  opacity: 0.88;
}

.result-filter-label {
  margin-left: 0;
}

.video-source-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.video-source-filter-menu {
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 0;
  z-index: 48;
  min-width: 10.5rem;
  margin: 0;
  padding: 0.28rem;
  border: 1px solid rgba(15, 33, 56, 0.14);
  border-radius: 8px;
  background: var(--card, #fff);
  box-shadow: 0 6px 18px rgba(15, 33, 56, 0.12);
}

.video-source-filter-menu[hidden] {
  display: none !important;
}

.video-source-filter-item {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0.45rem 0.65rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.video-source-filter-item:hover {
  background: var(--yellow-soft, rgba(253, 230, 138, 0.35));
}

.video-source-filter-item[aria-selected="true"] {
  background: var(--table-th);
  color: #f4f7fb;
}

.video-source-filter-btn--active {
  border-color: rgba(253, 224, 71, 0.55);
  color: #fde68a;
}

.sort-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--table-th);
  color: #f4f7fb;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

.sort-btn[data-sort]:hover {
  color: #fde68a;
}

.sort-btn.sorted-asc::after {
  content: " ▲";
  font-size: 0.7em;
  opacity: 0.85;
}

.sort-btn.sorted-desc::after {
  content: " ▼";
  font-size: 0.7em;
  opacity: 0.85;
}

.pagination {
  margin-top: 0.75rem;
}

.pagination-toolbar {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.page-size-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.page-size-select {
  padding: 0.35rem 2rem 0.35rem 0.55rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.page-size-select:focus {
  outline: 1px solid var(--accent);
  outline-offset: 1px;
}

.pagination-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.pagination-status {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  min-width: 14rem;
  text-align: center;
  line-height: 1.4;
  white-space: nowrap;
}

.pagination-status-sub {
  font-size: 0.72em;
  letter-spacing: 0.01em;
}

.pagination-share-btn {
  padding: 0.34rem 0.72rem;
  font-size: 0.76rem;
  white-space: nowrap;
  flex: 0 0 auto;
}

.page-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-btn--icon-only {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  padding: 0.4rem 0.55rem;
}

.page-btn--icon-only .mz-ui-icon {
  margin-right: 0;
  font-size: 1rem;
}

.recommend-item-team-search-btn,
.btn-mll-mylist-add,
.youtube-channel-mylist-add-btn,
.share-toggle,
.recommend-more,
.video-result-more,
.media-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28em;
}

.recommend-more[hidden],
.video-result-more[hidden],
.video-result-more-wrap[hidden],
.youtube-result-more-wrap[hidden] {
  display: none !important;
}

.recommend-item-team-search-btn .mz-ui-icon,
.btn-mll-mylist-add .mz-ui-icon,
.youtube-channel-mylist-add-btn .mz-ui-icon,
.share-toggle .mz-ui-icon,
.recommend-more .mz-ui-icon,
.video-result-more .mz-ui-icon,
.media-more-btn .mz-ui-icon {
  margin-right: 0;
  flex-shrink: 0;
}

.share-wrap {
  position: relative;
}

.share-toggle {
  padding: 0.35rem 0.6rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--table-th);
  color: #f4f7fb;
  font-weight: 600;
  cursor: pointer;
}

.share-toggle:hover {
  color: #fde68a;
}

/* CTA スポットライト（.share-toggle より後で指定し、行シェアも同色に統一） */
.btn-share-search.btn-marchinz-spotlight,
.btn-share-search.btn-marchinz-spotlight.share-toggle {
  background: linear-gradient(
    145deg,
    var(--cta-teal-1) 0%,
    var(--cta-teal-2) 48%,
    var(--cta-teal-3) 100%
  );
  color: var(--cta-teal-text);
  border: 1px solid var(--cta-teal-border);
  font-weight: 700;
  box-shadow:
    0 2px 14px var(--cta-teal-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.btn-share-search.btn-marchinz-spotlight:hover,
.btn-share-search.btn-marchinz-spotlight.share-toggle:hover {
  background: linear-gradient(
    145deg,
    var(--cta-teal-hover-1) 0%,
    var(--cta-teal-hover-2) 50%,
    var(--cta-teal-3) 100%
  );
  color: #fff;
  border-color: var(--cta-teal-border-hover);
}

.btn-share-search.btn-marchinz-spotlight:focus-visible,
.btn-share-search.btn-marchinz-spotlight.share-toggle:focus-visible {
  outline: 2px solid var(--cta-teal-focus);
  outline-offset: 2px;
}

/* 検索パネル等：flex 折り返しで wrap が行幅いっぱいになり right:0 メニューが左にはみ出すのを防ぐ */
.search-share-row .search-share-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
  max-width: 100%;
  min-width: 0;
}

.search-share-row .share-menu {
  left: 0;
  right: auto;
}

.share-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 4px;
  min-width: 200px;
  max-width: min(240px, calc(100vw - 2rem));
  padding: 0.35rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px var(--shadow);
  z-index: 10;
}

.result-sort-bar-share .share-menu {
  left: auto;
  right: 0;
}

.share-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 0.82rem;
  cursor: pointer;
  border-radius: 4px;
}

.share-menu button:hover {
  background: var(--bg);
}

.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  backdrop-filter: blur(3px);
  background: rgba(15, 33, 56, 0.35);
}

.search-overlay[hidden] {
  display: none !important;
}

.search-overlay-label {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--gold-border);
  background: var(--gold-cream-mid);
  color: var(--navy);
  font-weight: 700;
}

@media (max-width: 1200px) {
  .magazine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pagination-status {
    min-width: unset;
    font-size: 0.78rem;
  }

  .pagination-toolbar {
    justify-content: space-between;
  }
}

@media (min-width: 900px) {
  .video-result-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .video-result-list .recommend-item-head-row {
    flex-wrap: wrap;
    white-space: normal;
    align-items: flex-start;
    row-gap: 0.3rem;
  }

  .video-result-list .recommend-item-org-search-wrap {
    width: 100%;
    flex: 0 0 100%;
  }

  .video-result-list .recommend-item-org-search-wrap .recommend-item-org {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
  }

  .video-result-list .recommend-item-publish-row {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/** 大会動画・おすすめカード：スマホは団体名の下に「この団体／チームの動画を検索」 */
@media (max-width: 719px) {
  .recommend-list .recommend-item-head-row {
    flex-wrap: wrap;
    align-items: flex-start;
    white-space: normal;
    row-gap: 0.3rem;
  }

  .recommend-list .recommend-item-org-search-wrap {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    flex: 1 1 100%;
    max-width: 100%;
  }

  .recommend-list .recommend-item-org-search-wrap .recommend-item-org {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    word-break: break-word;
  }

  .recommend-list .recommend-item-team-search-btn {
    align-self: flex-start;
    white-space: normal;
    max-width: 100%;
    text-align: center;
    margin-top: 0.06rem;
  }
}

@media (min-width: 1200px) {
  .video-result-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .mll-intro {
    grid-template-columns: 1fr;
  }

  .magazine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* じぇねTUBEは動画タイトルまで読みやすい1列。雑誌・マンガの2列は維持する。 */
  #marching-live-grid {
    grid-template-columns: 1fr;
  }

  .magazine-thumb {
    min-height: 9rem;
  }
}

/* ---------- イベントページ（カレンダー共有） ---------- */

/**
 * 見出し（page-hero）〜直下のタブ／リードまで縦を詰める
 * — 演奏会・大会・イベント / 大会動画（マーチング等・MIX3）/ MarchinZ Note / MarchinZ Board
 */
.mll-panel.calendar-events-panel,
.mll-panel.videos-page-main,
.mll-panel.youtube-page-main,
.community-hub-panel--notes > .mll-panel,
.community-hub-panel--board > .mll-panel {
  gap: 0.48rem;
}
.calendar-events-panel {
  position: relative;
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}

.community-hub-panel--events {
  min-width: 0;
  max-width: 100%;
  overflow-x: clip;
}

.mll-panel.calendar-events-panel > header.page-hero.mz-philosophy-header,
.mll-panel.videos-page-main > header.page-hero.mz-philosophy-header,
.mll-panel.youtube-page-main > header.page-hero.mz-philosophy-header,
.community-hub-panel--notes > .mll-panel > header.page-hero.mz-philosophy-header,
.community-hub-panel--board > .mll-panel > header.page-hero.mz-philosophy-header {
  margin-bottom: 0.28rem;
}

.mll-panel.calendar-events-panel .mz-philosophy-label,
.mll-panel.videos-page-main .mz-philosophy-label,
.mll-panel.youtube-page-main .mz-philosophy-label,
.community-hub-panel--notes > .mll-panel .mz-philosophy-label,
.community-hub-panel--board > .mll-panel .mz-philosophy-label {
  margin-bottom: 0.3rem;
}

.mll-panel.calendar-events-panel .mz-philosophy-rule,
.mll-panel.videos-page-main .mz-philosophy-rule,
.mll-panel.youtube-page-main .mz-philosophy-rule,
.community-hub-panel--notes > .mll-panel .mz-philosophy-rule,
.community-hub-panel--board > .mll-panel .mz-philosophy-rule {
  margin-top: 0.55rem;
}

.mll-panel.calendar-events-panel .calendar-events-head-band {
  margin: 0 0 0.28rem;
}

/* ── 共通検索バー ── */
.mz-search-bar {
  margin: 0.4rem 0 0.3rem;
}
.mz-search-input {
  width: 100%;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  background: var(--panel, #fff);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}
.mz-search-input:focus { border-color: var(--accent, #1d4ed8); }
.mz-search-input::placeholder { color: var(--muted); }

.community-hub-panel--notes > .mll-panel > .static-panel-lead:first-of-type,
.community-hub-panel--board > .mll-panel > .community-board-lead-main {
  line-height: 1.42;
}

/* コミュニティ見出し直下: リード → 種別タブ → 登録（中央・団体一覧ボタン同型） */
.calendar-events-head-band {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0.15rem 0 0.28rem;
}

.calendar-ev-lead-register-line {
  width: 100%;
  min-width: 0;
  margin: 0 0 0.28rem;
}

.calendar-ev-lead-register-line .static-panel-lead.calendar-ev-lead-inline {
  margin: 0;
  line-height: 1.42;
}

.calendar-ev-lead-inline {
  display: block;
  max-width: 100%;
}

.calendar-events-head-band {
  min-width: 0;
  max-width: 100%;
}

.calendar-events-head-band nav.tabs.youtube-tabs.mz-tab-strip-yamap {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-inline-end: 0.75rem;
  scroll-padding-inline-end: 0.75rem;
}

.calendar-events-head-band nav.tabs.youtube-tabs.mz-tab-strip-yamap::-webkit-scrollbar {
  display: none;
}

/* 種別タブと一覧の間。ヘッドバンド内では下余白を抑える */
.calendar-ev-register-action-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 0 0.75rem;
}

.calendar-events-head-band .calendar-ev-register-action-row {
  padding: 0.45rem 0 0.35rem;
  margin: 0;
}

.calendar-ev-register-action-row .browse-inline-trigger {
  margin: 0;
  flex: 0 0 auto;
}

.calendar-ev-register-footer {
  justify-content: center;
  width: 100%;
  padding: 1rem 0 1.35rem;
  margin-top: 0.25rem;
}

.calendar-ev-register-footer[hidden] {
  display: none !important;
}

.calendar-ev-controls-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  margin: 0 0 0.15rem;
}
.calendar-ev-controls-row[hidden] {
  display: none !important;
}

.calendar-ev-controls-row .calendar-ev-sort-bar {
  margin: 0;
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.calendar-ev-upcoming-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-size: 0.72rem;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  flex: 0 0 auto;
}

.calendar-ev-upcoming-filter--inline {
  white-space: nowrap;
}

.calendar-ev-upcoming-filter input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent, #1e4fd6);
}

.calendar-event-form.calendar-ev-form-body {
  margin: 0 0 1rem;
  padding: 0.75rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface, #fafafa);
}

.calendar-ev-form-body[hidden] {
  display: none !important;
}

.calendar-ev-date-hint {
  margin: 0 0 0.55rem !important;
  font-size: 0.76rem !important;
  line-height: 1.5 !important;
  color: var(--muted) !important;
}

.calendar-ev-form-msg {
  margin: 0.15rem 0 0.85rem;
}

.calendar-ev-register-success {
  margin: 0.35rem 0 0.75rem;
  padding: 0.55rem 0.85rem;
  text-align: center;
  font-weight: 700;
  color: #0d5c2e;
  background: rgba(46, 125, 50, 0.1);
  border: 1px solid rgba(46, 125, 50, 0.28);
  border-radius: 8px;
}

.calendar-ev-register-success[hidden] {
  display: none !important;
}

.calendar-ev-register-consent {
  margin: 0.35rem 0 0.65rem !important;
  line-height: 1.55 !important;
}

.calendar-ev-venue-label select,
.calendar-event-form select {
  font-size: 1rem;
  max-width: 100%;
  min-height: 2.7rem;
}

#mll-event-date,
#calendar-ev-date,
#calendar-edit-date {
  min-height: 2.7rem;
}

#calendar-edit-overlay .calendar-edit-body select {
  font-size: 1rem;
}

.calendar-ev-list-wrap {
  margin-top: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.calendar-ev-list {
  overflow-x: clip;
  max-width: 100%;
  min-width: 0;
}

.mll-log-item.calendar-ev-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.calendar-ev-year-reel {
  margin: 0.35rem 0 0.65rem;
}

.calendar-ev-list-root {
  display: flex;
  flex-direction: column;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.calendar-ev-year {
  margin-bottom: 1.25rem;
}

.calendar-ev-year-hdr {
  scroll-margin-top: 5.5rem;
}

.calendar-ev-year-cards {
  margin: 0;
}

.calendar-ev-year-items.calendar-ev-list--compact {
  margin-bottom: 0.35rem;
}

.calendar-ev-empty-msg {
  margin: 0.5rem 0;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ── ビュー切替（3タブで幅いっぱい・右余白なし） ── */
.calendar-ev-view-switcher {
  display: flex;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin: 0.35rem 0 0;
}
.calendar-ev-view-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0.3rem 0.5rem;
  font: inherit;
  font-size: 0.75rem;
  border: none;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  border-right: 1px solid var(--border);
  text-align: center;
}
.calendar-ev-view-btn:last-child { border-right: none; }
.calendar-ev-view-btn[aria-selected="true"] {
  background: var(--accent, #1d4ed8);
  color: #fff;
  font-weight: 700;
}

/* ── コンパクトリストビュー ── */
.calendar-ev-list--compact {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.calendar-ev-compact-row {
  display: grid;
  grid-template-columns: 6px max-content 3.25rem minmax(0, 1fr) auto auto;
  gap: 0 0.32rem;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.1s;
  overflow: hidden;
}
.calendar-ev-compact-row:last-child { border-bottom: none; }
.calendar-ev-compact-row:hover { background: rgba(0, 0, 0, 0.03); }
.calendar-ev-compact-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted);
}
.calendar-ev-compact-dot--ensoukai { background: #2563eb; }
.calendar-ev-compact-dot--taikai { background: #dc2626; }
.calendar-ev-compact-dot--event { background: #059669; }
.calendar-ev-compact-dot--ippan { background: #7c3aed; }
.calendar-ev-compact-dot--koukou { background: #ea580c; }
.calendar-ev-compact-dot--chuugaku { background: #0891b2; }
.calendar-ev-compact-dot--colourguard { background: #d946ef; }
.calendar-ev-compact-dot--kaigai { background: #65a30d; }
.calendar-ev-compact-date {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.calendar-ev-compact-kind {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.calendar-ev-compact-kind--ensoukai { color: #2563eb; }
.calendar-ev-compact-kind--taikai { color: #dc2626; }
.calendar-ev-compact-kind--event { color: #059669; }
.calendar-ev-compact-kind--ippan { color: #7c3aed; }
.calendar-ev-compact-kind--koukou { color: #ea580c; }
.calendar-ev-compact-kind--chuugaku { color: #0891b2; }
.calendar-ev-compact-kind--colourguard { color: #d946ef; }
.calendar-ev-compact-kind--kaigai { color: #65a30d; }
.calendar-ev-compact-title {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.calendar-ev-compact-venue {
  font-size: 0.7rem;
  color: var(--muted);
  white-space: nowrap;
}
.calendar-ev-compact-likes {
  font-size: 0.65rem;
  color: #e11d48;
  white-space: nowrap;
  min-width: 1.8rem;
  text-align: right;
}
.calendar-ev-like-host {
  margin-top: 0.35rem;
}
.calendar-ev-compact-like-wrap {
  cursor: default;
  justify-self: end;
  min-width: 0;
}
.calendar-ev-compact-like-wrap .community-like-row {
  flex-wrap: nowrap;
}
@media (max-width: 500px) {
  .calendar-ev-compact-row {
    grid-template-columns: 6px max-content minmax(0, 1fr) auto;
    gap: 0 0.28rem;
    padding-inline: 0.45rem;
    font-size: 0.74rem;
  }
  .calendar-ev-compact-date {
    padding-right: 0.12rem;
  }
  .calendar-ev-compact-title {
    padding-left: 0;
  }
  .calendar-ev-compact-kind,
  .calendar-ev-compact-venue { display: none; }
}

/* ── カレンダービュー ── */
.calendar-ev-cal-view {
  margin-top: 0.5rem;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.calendar-ev-list-wrap--calendar-mode #calendar-event-list,
.calendar-ev-list-wrap--calendar-mode .calendar-ev-controls-row,
.calendar-ev-list-wrap--calendar-mode #calendar-ev-year-reel {
  display: none !important;
}

#calendar-event-list[hidden] {
  display: none !important;
}
.calendar-ev-cal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.calendar-ev-cal-nav-btn {
  padding: 0.25rem 0.5rem;
  font: inherit;
  font-size: 0.82rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
  color: var(--text);
}
.calendar-ev-cal-nav-btn--today {
  font-size: 0.72rem;
  font-weight: 600;
}
.calendar-ev-cal-month-label {
  font-size: 1rem;
  font-weight: 700;
  min-width: 7rem;
  text-align: center;
}
.calendar-ev-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  grid-auto-rows: minmax(4rem, auto);
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  max-width: 100%;
}
.calendar-ev-cal-dow {
  padding: 0.3rem;
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid var(--border);
}
.calendar-ev-cal-cell {
  min-height: 4rem;
  min-width: 0;
  padding: 0.2rem;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: visible;
  align-items: stretch;
}

.calendar-ev-cal-cell[data-cal-week-max="2"] {
  min-height: 5.75rem;
}

.calendar-ev-cal-cell[data-cal-week-max="3"],
.calendar-ev-cal-cell[data-cal-week-max="4"] {
  min-height: 8rem;
}
.calendar-ev-cal-cell:nth-child(7n+7+7) { border-right: none; }
.calendar-ev-cal-cell--empty {
  background: rgba(0, 0, 0, 0.015);
}
.calendar-ev-cal-cell--today {
  background: rgba(37, 99, 235, 0.06);
}
.calendar-ev-cal-day-num {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 1px;
}
.calendar-ev-cal-cell--today .calendar-ev-cal-day-num {
  color: #1d4ed8;
  font-weight: 800;
}
.calendar-ev-cal-chip {
  font-size: 0.55rem;
  line-height: 1.25;
  padding: 2px 3px;
  border-radius: 3px;
  white-space: normal;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  word-break: break-word;
  flex-shrink: 0;
  cursor: pointer;
  color: #fff;
  background: #64748b;
}
.calendar-ev-cal-chip--taikai { background: #dc2626; }
.calendar-ev-cal-chip--ensoukai { background: #2563eb; }
.calendar-ev-cal-chip--event { background: #059669; }
.calendar-ev-cal-chip--ippan { background: #7c3aed; }
.calendar-ev-cal-chip--koukou { background: #ea580c; }
.calendar-ev-cal-chip--chuugaku { background: #0891b2; }
.calendar-ev-cal-chip--colourguard { background: #d946ef; }
.calendar-ev-cal-chip--kaigai { background: #65a30d; }
.calendar-ev-cal-more {
  font-size: 0.55rem;
  color: var(--muted);
}
@media (max-width: 500px) {
  .calendar-ev-cal-cell { min-height: 3rem; }
  .calendar-ev-cal-cell[data-cal-week-max="2"] { min-height: 4.75rem; }
  .calendar-ev-cal-cell[data-cal-week-max="3"],
  .calendar-ev-cal-cell[data-cal-week-max="4"] { min-height: 6.5rem; }
  .calendar-ev-cal-chip { font-size: 0.5rem; }
}

.calendar-ev-event-url-row a {
  color: var(--link);
  word-break: break-all;
}

.calendar-ev-card {
  overflow: hidden;
  max-width: 100%;
}

.calendar-ev-card:has(.community-post-overflow[open]),
.mll-log-item.calendar-ev-card:has(.community-post-overflow[open]) {
  overflow: visible;
  position: relative;
  z-index: 238;
}

.calendar-ev-title-row:has(.community-post-overflow[open]) {
  overflow: visible;
}

.calendar-ev-list:has(.community-post-overflow[open]),
.calendar-ev-list-wrap:has(.community-post-overflow[open]) {
  overflow: visible;
}

.calendar-ev-card .calendar-ev-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.45rem 0.75rem;
  margin: 0.15rem 0 0.35rem;
}

.calendar-ev-title-row--prominent {
  margin: 0.72rem 0 0.5rem;
}

.calendar-ev-title-col {
  flex: 1 1 100%;
  min-width: 0;
}

.calendar-ev-title-row--prominent .calendar-ev-title-text {
  font-size: 1.22rem;
  line-height: 1.52;
  font-weight: 800;
  margin: 0;
}

.calendar-ev-title-row--prominent .calendar-ev-overflow {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: flex-start;
}

.calendar-ev-overflow .community-post-overflow-trigger {
  /* 触る的も 44px 未満だった(2026-08-04 レビュー) */
  min-width: 2.75rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.45rem;
}

.calendar-ev-title-url {
  margin: 0.18rem 0 0 !important;
  font-size: 0.72rem !important;
  line-height: 1.42 !important;
  color: var(--muted) !important;
}

.calendar-ev-title-url a {
  color: var(--link);
  word-break: break-all;
  overflow-wrap: break-word;
}

.calendar-ev-title-text {
  flex: 0 1 auto;
  min-width: min(100%, 8rem);
  margin: 0;
}

.calendar-ev-like-cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}

.calendar-ev-avatar-stack-btn {
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  line-height: 0;
}

.calendar-ev-avatar-stack {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
}

.calendar-ev-avatar-ring {
  position: relative;
  width: 1.45rem;
  height: 1.45rem;
  margin-left: -0.48rem;
  border-radius: 50%;
  border: 2px solid var(--surface, #fafafa);
  box-sizing: border-box;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  flex-shrink: 0;
}

.calendar-ev-avatar-ring:first-child {
  margin-left: 0;
}

.calendar-ev-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-ev-att-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.35rem;
}

.calendar-ev-att-label {
  font-size: 0.82rem;
  color: var(--text);
}

.calendar-ev-att-open-btn {
  font-size: 0.8rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
}

.calendar-ev-att-open-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.calendar-participants-dialog,
.mll-participants-dialog,
.calendar-attendance-dialog,
.calendar-edit-dialog {
  max-width: min(22rem, calc(100vw - 2rem));
}

#calendar-participants-overlay.community-compose-overlay {
  padding: max(0.4rem, env(safe-area-inset-top)) max(0.4rem, env(safe-area-inset-right))
    max(0.4rem, env(safe-area-inset-bottom)) max(0.4rem, env(safe-area-inset-left));
}

.calendar-participants-dialog.community-compose-dialog,
.mll-participants-dialog.community-compose-dialog {
  width: 100%;
  max-width: calc(100vw - 0.8rem);
}

@media (min-width: 540px) {
  .calendar-participants-dialog.community-compose-dialog,
  .mll-participants-dialog.community-compose-dialog {
    max-width: min(40rem, calc(100vw - 1.5rem));
  }
}

@media (min-width: 900px) {
  .calendar-participants-dialog.community-compose-dialog,
  .mll-participants-dialog.community-compose-dialog {
    max-width: min(52rem, calc(100vw - 2.5rem));
  }
}

@media (min-width: 1200px) {
  .calendar-participants-dialog.community-compose-dialog,
  .mll-participants-dialog.community-compose-dialog {
    max-width: min(60rem, calc(100vw - 3rem));
  }
}

.calendar-participants-lead {
  margin: 0 0.75rem 0.5rem;
  font-size: 0.78rem;
}

.calendar-participants-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.75rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.calendar-participants-tab {
  font-size: 0.76rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  line-height: 1.25;
}

.calendar-participants-tab--active {
  border-color: var(--navy, #1a237e);
  background: var(--badge-navy-bg, rgba(26, 35, 126, 0.08));
  font-weight: 700;
}

.calendar-participants-body {
  padding: 0.5rem 0.75rem 0.85rem;
  max-height: min(72vh, 36rem);
  overflow: auto;
}

.calendar-participants-panel {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.calendar-participants-tab--note {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.22rem 0.55rem;
}

.calendar-participants-tab--note .mz-icon {
  font-size: 0.85rem;
  margin: 0;
}

.calendar-participants-notes-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.35rem 0.35rem;
  text-align: center;
}

.calendar-participants-notes-empty-msg {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
}

.calendar-participants-notes-empty-lead {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.calendar-participants-notes-create-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-top: 0.15rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--navy, #1a237e);
  background: var(--navy, #1a237e);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-participants-note-card {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.35rem;
  border-radius: 0.55rem;
  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;
}

.calendar-participants-note-card:focus-visible {
  outline: 2px solid var(--navy, #1a237e);
  outline-offset: 2px;
}

.calendar-participants-note-avatar-wrap {
  flex-shrink: 0;
}

.calendar-participants-note-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.calendar-participants-note-avatar--withdrawn {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--border);
  display: block;
}

.calendar-participants-note-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.calendar-participants-note-author {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--navy, #1a237e);
}

.calendar-participants-note-title {
  font-size: 0.8rem;
  line-height: 1.35;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-ev-participant-more {
  margin-left: 0.12rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.12rem 0.38rem;
  line-height: 1.2;
  flex-shrink: 0;
  align-self: center;
  z-index: 12;
}

.calendar-ev-participant-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.35rem;
}

.calendar-ev-participant-preview-label {
  font-size: 0.82rem;
  color: var(--text);
}

.calendar-ev-participant-stack-btn {
  vertical-align: middle;
}

.mll-participant-preview-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin-top: 0.35rem;
}

.mll-participant-preview-label {
  font-size: 0.82rem;
  color: var(--text);
}

.mz-participant-detail-card {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}

.mz-participant-detail-card:last-child {
  border-bottom: none;
}

.mz-participant-detail-avatar-wrap {
  flex-shrink: 0;
  display: block;
  text-decoration: none;
}

.mz-participant-detail-avatar {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  display: block;
  background: var(--panel);
}

.mz-participant-detail-avatar--withdrawn {
  display: block;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 50%;
  border: 2px dashed var(--border);
  background: repeating-linear-gradient(
    -45deg,
    var(--bg),
    var(--bg) 4px,
    var(--panel) 4px,
    var(--panel) 8px
  );
}

.mz-participant-detail-body {
  flex: 1;
  min-width: 8rem;
}

.mz-participant-detail-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--link);
  text-decoration: none;
  display: inline-block;
}

.mz-participant-detail-name:hover {
  text-decoration: underline;
}

.mz-participant-role-line {
  margin: 0.2rem 0 0;
}

.mz-participant-detail-attrs {
  margin: 0.35rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.mz-participant-attr-pill {
  font-size: 0.72rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.calendar-likers-ul {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0.75rem 0.85rem;
  max-height: min(60vh, 22rem);
  overflow: auto;
}

.calendar-likers-li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.calendar-likers-li:last-child {
  border-bottom: none;
}

.calendar-likers-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.calendar-att-hint {
  margin: 0 0.75rem 0.5rem;
}

.calendar-att-options {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.75rem 0.5rem;
}

.calendar-att-opt-btn {
  text-align: left;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
  font-size: 0.88rem;
  /* タップ目標44px(iOS基準)。375pxで37.4pxしかなかった(2026-08-06、3画面共通) */
  min-height: 44px;
}

.calendar-att-opt-btn:hover {
  border-color: var(--muted, rgba(0, 0, 0, 0.22));
}

.calendar-att-actions {
  margin: 0;
  padding: 0 0.75rem 0.85rem;
}

.calendar-att-clear {
  font-size: 0.82rem;
  padding: 0.35rem 0.65rem;
}

.calendar-edit-dialog {
  display: flex;
  flex-direction: column;
}

.calendar-edit-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: 0 0.75rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
  #calendar-edit-overlay.community-compose-overlay {
    align-items: flex-start;
    justify-content: flex-start;
    padding: max(0.35rem, env(safe-area-inset-top, 0px)) max(0.35rem, env(safe-area-inset-right, 0px))
      max(0.35rem, env(safe-area-inset-bottom, 0px)) max(0.35rem, env(safe-area-inset-left, 0px));
  }

  #calendar-edit-overlay .calendar-edit-dialog.community-compose-dialog {
    width: min(40rem, 100%);
    max-height: calc(
      100dvh - max(0.35rem, env(safe-area-inset-top, 0px)) - max(0.35rem, env(safe-area-inset-bottom, 0px))
    );
    margin: 0 auto;
  }
}

.calendar-edit-body .calendar-edit-hint {
  margin: 0 0 0.5rem;
}

.calendar-edit-body .search-label-full {
  margin-top: 0.5rem;
}

.calendar-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 0.85rem;
}

.calendar-ev-delete-btn {
  font-size: 0.88rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid #b71c1c;
  background: transparent;
  color: #b71c1c;
  cursor: pointer;
}

.calendar-ev-delete-btn:hover:not(:disabled) {
  background: rgba(183, 28, 28, 0.08);
}

.calendar-ev-delete-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.calendar-ev-owner-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.35rem;
}

.calendar-ev-edit-btn {
  font-size: 0.82rem;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  cursor: pointer;
}

.calendar-ev-edit-btn:hover {
  border-color: var(--muted, rgba(0, 0, 0, 0.22));
}

a.user-account-dropdown-link {
  text-decoration: none;
  box-sizing: border-box;
}

/* ★ 登録直後の注目(2026-08-04 レビュー)。地図から着地したときの
   --highlight は #c62828 = 削除ボタンと同系の赤で、登録の成功に使うと
   「何か失敗した」に読める。成功はアクセントの青で示す */
.calendar-ev-card--just-added {
  outline: 3px solid var(--mz-accent, #1e4fd6);
  outline-offset: 3px;
  border-radius: 8px;
  transition: outline-color 0.35s ease;
}

.calendar-ev-card--highlight {
  outline: 3px solid #c62828;
  outline-offset: 3px;
  border-radius: 8px;
  transition: outline-color 0.35s ease;
}

/* カレンダー一覧: 並び替え（開催日 / 開催地 / 種別）— 大会動画と同様に ▲▼ */
.calendar-ev-sort-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22rem 0.34rem;
  margin: 0.02rem 0 0.28rem;
}

.calendar-ev-sort-intro {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-right: 0.06rem;
}

.calendar-ev-filter-intro {
  margin-left: 0.45rem;
}

.calendar-ev-venue-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.calendar-ev-year-filter-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.calendar-ev-venue-filter-menu {
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 0;
  z-index: 48;
  min-width: 10.5rem;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.28rem;
  border: 1px solid rgba(15, 33, 56, 0.14);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 33, 56, 0.14);
}

.calendar-ev-venue-filter-menu[hidden] {
  display: none !important;
}

.calendar-ev-year-filter-menu {
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 0;
  z-index: 48;
  min-width: 8.5rem;
  max-height: 16rem;
  overflow-y: auto;
  margin: 0;
  padding: 0.28rem;
  border: 1px solid rgba(15, 33, 56, 0.14);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(15, 33, 56, 0.14);
}

.calendar-ev-year-filter-menu[hidden] {
  display: none !important;
}

.calendar-ev-venue-filter-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.38rem 0.55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.calendar-ev-venue-filter-item:hover {
  background: rgba(30, 79, 214, 0.08);
}

.calendar-ev-venue-filter-item[aria-selected="true"] {
  background: rgba(30, 79, 214, 0.14);
  color: #1a237e;
}

.calendar-ev-year-filter-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.38rem 0.55rem;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.calendar-ev-year-filter-item:hover {
  background: rgba(30, 79, 214, 0.08);
}

.calendar-ev-year-filter-item[aria-selected="true"] {
  background: rgba(30, 79, 214, 0.14);
  color: #1a237e;
}

.calendar-ev-venue-filter-btn--active {
  background: rgba(30, 79, 214, 0.14);
  border-color: rgba(30, 79, 214, 0.48);
  color: #1a237e;
}

.calendar-ev-year-filter-btn--active {
  background: rgba(30, 79, 214, 0.14);
  border-color: rgba(30, 79, 214, 0.48);
  color: #1a237e;
}

button.calendar-ev-mll-log-label {
  cursor: pointer;
  font: inherit;
}

button.calendar-ev-mll-log-label:hover {
  filter: brightness(0.97);
}

.calendar-ev-sort-btn {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.18rem 0.42rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 33, 56, 0.16);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  line-height: 1.25;
  transition:
    background 0.12s ease,
    border-color 0.12s ease,
    color 0.12s ease,
    box-shadow 0.12s ease;
}

.calendar-ev-sort-btn:hover {
  border-color: rgba(30, 79, 214, 0.35);
  color: var(--navy);
}

.calendar-ev-sort-btn--active {
  background: rgba(30, 79, 214, 0.14);
  border-color: rgba(30, 79, 214, 0.48);
  color: #1a237e;
  box-shadow: 0 1px 3px rgba(30, 79, 214, 0.12);
}

.calendar-ev-sort-btn.sorted-asc::after,
.calendar-ev-sort-btn.sorted-desc::after {
  font-size: 0.68em;
  opacity: 0.88;
  font-weight: 700;
}

.calendar-ev-sort-btn.sorted-asc::after {
  content: " ▲";
}

.calendar-ev-sort-btn.sorted-desc::after {
  content: " ▼";
}

/* 1行目: チップ + 右寄せ 記入者・アイコン・名前 */
.calendar-ev-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.35rem 0.65rem;
  width: 100%;
  max-width: 100%;
  margin: 0 0 0.2rem;
}

.calendar-ev-topline .calendar-ev-meta-chips {
  margin-bottom: 0;
  margin-right: 0;
  flex: 1 1 auto;
  min-width: min(100%, 10rem);
}

.calendar-ev-topline-right {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  text-align: right;
}

.calendar-ev-topline-kinyuu {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  flex: 0 0 auto;
}

.calendar-ev-topline-creator {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.38rem;
  flex: 0 1 auto;
  min-width: 0;
}

.calendar-ev-topline-creator-avatar-link {
  display: inline-flex;
  line-height: 0;
  flex-shrink: 0;
  border-radius: 50%;
  text-decoration: none;
}

.calendar-ev-topline-creator-avatar-link:hover .calendar-ev-topline-creator-avatar {
  box-shadow: 0 0 0 2px rgba(30, 79, 214, 0.35);
}

.calendar-ev-topline-creator-avatar {
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(15, 33, 56, 0.12);
  box-sizing: border-box;
  display: block;
}

.calendar-ev-topline-creator-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(100%, 14rem);
}

/* MarchinZ Log 行（参加者 + アイコン + 右アクション） */
.calendar-ev-mll-log-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  margin-top: 0.45rem;
  padding-top: 0.45rem;
  border-top: 1px solid rgba(15, 33, 56, 0.1);
  max-width: 100%;
}

.calendar-ev-mll-log-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem 0.45rem;
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
}

.calendar-ev-mll-log-part-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

button.calendar-ev-mll-log-part-label {
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

button.calendar-ev-mll-log-part-label:hover {
  color: var(--blue-deep);
  text-decoration: underline;
}

.calendar-ev-mll-log-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.15;
  color: var(--blue-deep);
  white-space: nowrap;
  padding: 0.14rem 0.44rem 0.15rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(30, 79, 214, 0.28);
  background: linear-gradient(
    155deg,
    rgba(240, 246, 255, 0.98) 0%,
    rgba(220, 232, 252, 0.88) 55%,
    rgba(232, 241, 252, 0.92) 100%
  );
  box-shadow: 0 1px 3px rgba(30, 79, 214, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* イベントカード「MarchinZ Log x人」チップ */
.calendar-ev-mll-log-count-chip {
  font-family: inherit;
  font-size: calc(0.76rem - 4pt);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.25;
  color: #b45309;
  border-color: rgba(234, 88, 12, 0.38);
  background: linear-gradient(
    155deg,
    rgba(255, 247, 237, 0.98) 0%,
    rgba(254, 235, 200, 0.9) 55%,
    rgba(255, 241, 213, 0.94) 100%
  );
  box-shadow: 0 1px 3px rgba(234, 88, 12, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

button.calendar-ev-mll-log-count-chip:hover {
  filter: brightness(0.97);
}

.calendar-ev-mll-log-actions {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 0.35rem;
  flex: 0 0 auto;
}

@media (min-width: 480px) {
  .calendar-ev-mll-log-actions {
    flex-direction: row;
    align-items: center;
  }
}

.calendar-ev-mll-log-save-btn {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(30, 79, 214, 0.45);
  background: linear-gradient(180deg, rgba(30, 79, 214, 0.16) 0%, rgba(30, 79, 214, 0.08) 100%);
  color: #0d2474;
  cursor: pointer;
  line-height: 1.25;
  white-space: nowrap;
}

.calendar-ev-mll-log-save-btn:hover {
  border-color: rgba(30, 79, 214, 0.65);
  background: linear-gradient(180deg, rgba(30, 79, 214, 0.22) 0%, rgba(30, 79, 214, 0.12) 100%);
}

.calendar-ev-mll-log-save-btn--log {
  border-color: var(--badge-amber-border);
  background: linear-gradient(180deg, var(--badge-amber-bg) 0%, #fff3d6 100%);
  color: var(--amber);
}

.calendar-ev-mll-log-save-btn--log:hover {
  border-color: var(--amber-bright);
  background: linear-gradient(180deg, #ffefc2 0%, var(--badge-amber-bg) 100%);
}

.calendar-ev-mll-log-save-btn--note {
  border-color: rgba(30, 79, 214, 0.45);
  background: linear-gradient(180deg, rgba(30, 79, 214, 0.16) 0%, rgba(30, 79, 214, 0.08) 100%);
  color: #0d2474;
}

.calendar-ev-mll-log-save-btn--note:hover {
  border-color: rgba(30, 79, 214, 0.65);
  background: linear-gradient(180deg, rgba(30, 79, 214, 0.22) 0%, rgba(30, 79, 214, 0.12) 100%);
}

.calendar-ev-mll-log-save-btn--view-log {
  border-color: rgba(5, 150, 105, 0.55);
  background: linear-gradient(180deg, #ecfdf5 0%, #d1fae5 100%);
  color: #065f46;
}

.calendar-ev-mll-log-save-btn--view-log:hover {
  border-color: #059669;
  background: linear-gradient(180deg, #d1fae5 0%, #a7f3d0 100%);
}

.eld-compose-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.eld-compose-step {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.eld-compose-step.is-active {
  color: var(--text);
}

.eld-compose-step.is-done {
  color: var(--amber);
}

.eld-compose-step-summary {
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--muted);
}

.calendar-ev-mll-log-clone-btn {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.36rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  line-height: 1.25;
}

.calendar-ev-mll-log-clone-btn:hover {
  border-color: var(--muted);
}

.calendar-ev-mll-log-part-btn {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--muted);
  cursor: pointer;
  line-height: 1.2;
  flex: 0 0 auto;
}

.calendar-ev-mll-log-part-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* MarchinZ Log を公開しているユーザー（プロフィールへ） */
.calendar-ev-mll-faces {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  max-width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: none;
}

.calendar-ev-mll-face {
  flex: 0 0 auto;
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(15, 33, 56, 0.12);
  line-height: 0;
  text-decoration: none;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.calendar-ev-mll-face:hover {
  transform: scale(1.06);
  box-shadow: 0 0 0 2px rgba(30, 79, 214, 0.28);
}

.calendar-ev-mll-face-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-ev-mll-face-img--withdrawn {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cfd8dc, #90a4ae);
}

/* カレンダー一覧: メタを YouTube 風チップ（日付・開催地・種別） */
.calendar-ev-meta-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.4rem;
}

.calendar-ev-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.48rem;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  border-radius: 999px;
  border: 1px solid rgba(15, 33, 56, 0.14);
  background: var(--panel, #f5f5f5);
  color: var(--navy, #1a237e);
  box-shadow: 0 1px 2px rgba(15, 33, 56, 0.06);
}

.calendar-ev-meta-chip--date {
  font-variant-numeric: tabular-nums;
}

.calendar-ev-meta-chip--venue {
  font-weight: 500;
}

.calendar-ev-meta-chip--kind-ensoukai {
  border-color: rgba(37, 99, 235, 0.42);
  background: rgba(37, 99, 235, 0.09);
  color: #1e40af;
}
.calendar-ev-meta-chip--kind-taikai {
  border-color: rgba(198, 40, 40, 0.45);
  background: rgba(198, 40, 40, 0.08);
  color: #b71c1c;
}
.calendar-ev-meta-chip--kind-ippan {
  border-color: rgba(124, 58, 237, 0.42);
  background: rgba(124, 58, 237, 0.09);
  color: #5b21b6;
}
.calendar-ev-meta-chip--kind-koukou {
  border-color: rgba(234, 88, 12, 0.42);
  background: rgba(234, 88, 12, 0.09);
  color: #c2410c;
}
.calendar-ev-meta-chip--kind-chuugaku {
  border-color: rgba(8, 145, 178, 0.42);
  background: rgba(8, 145, 178, 0.09);
  color: #0e7490;
}
.calendar-ev-meta-chip--kind-colourguard {
  border-color: rgba(217, 70, 239, 0.42);
  background: rgba(217, 70, 239, 0.09);
  color: #a21caf;
}
.calendar-ev-meta-chip--kind-kaigai {
  border-color: rgba(101, 163, 13, 0.42);
  background: rgba(101, 163, 13, 0.09);
  color: #4d7c0f;
}

.calendar-ev-meta-chip--kind-event {
  border-color: rgba(21, 101, 192, 0.45);
  background: rgba(21, 101, 192, 0.08);
  color: #0d47a1;
}

.calendar-ev-meta-chip--kind-marching {
  border-color: rgba(245, 124, 0, 0.5);
  background: rgba(245, 124, 0, 0.1);
  color: #e65100;
}

.calendar-ev-meta-chip--kind-other {
  border-color: rgba(15, 33, 56, 0.18);
  background: var(--bg);
  color: var(--muted);
}

/* 種別ごとにカード左アクセント + タブと同系の背景トーン */
.calendar-ev-card.calendar-ev-card--kind-ensoukai {
  border-left: 4px solid #2563eb;
  background: linear-gradient(105deg, rgba(37,99,235,0.11) 0%, rgba(37,99,235,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-taikai {
  border-left: 4px solid #c62828;
  background: linear-gradient(105deg, rgba(198,40,40,0.11) 0%, rgba(198,40,40,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-event {
  border-left: 4px solid #059669;
  background: linear-gradient(105deg, rgba(5,150,105,0.11) 0%, rgba(5,150,105,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-ippan {
  border-left: 4px solid #7c3aed;
  background: linear-gradient(105deg, rgba(124,58,237,0.11) 0%, rgba(124,58,237,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-koukou {
  border-left: 4px solid #ea580c;
  background: linear-gradient(105deg, rgba(234,88,12,0.11) 0%, rgba(234,88,12,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-chuugaku {
  border-left: 4px solid #0891b2;
  background: linear-gradient(105deg, rgba(8,145,178,0.11) 0%, rgba(8,145,178,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-colourguard {
  border-left: 4px solid #d946ef;
  background: linear-gradient(105deg, rgba(217,70,239,0.11) 0%, rgba(217,70,239,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-kaigai {
  border-left: 4px solid #65a30d;
  background: linear-gradient(105deg, rgba(101,163,13,0.11) 0%, rgba(101,163,13,0.04) 42%, var(--bg) 100%);
}
.calendar-ev-card.calendar-ev-card--kind-other {
  border-left: 4px solid rgba(15, 33, 56, 0.22);
  background: linear-gradient(105deg, rgba(26,35,126,0.06) 0%, rgba(26,35,126,0.02) 40%, var(--bg) 100%);
}

/* いいね表示を ♥0 に近づける */
.calendar-ev-like-btn {
  gap: 0.02rem;
  padding: 0.15rem 0.32rem;
}

.calendar-ev-like-btn .community-like-count {
  margin-left: -0.02rem;
}

/* 作成者（サイト共通の小さな円形アバター） */
.calendar-ev-creator-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.45rem;
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.calendar-ev-creator-label {
  font-weight: 600;
  color: var(--text);
}

.calendar-ev-creator-avatar {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(15, 33, 56, 0.12);
  box-sizing: border-box;
}

.calendar-ev-creator-name {
  color: var(--text);
  font-weight: 500;
}

/* 参加者アバター横並び（カード内） */
.calendar-ev-att-avatars-btn {
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  line-height: 0;
}

.calendar-ev-att-avatars-btn:focus-visible {
  outline: 2px solid var(--accent, #1e4fd6);
  outline-offset: 2px;
}

.calendar-ev-att-avatars {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.28rem;
}

.calendar-ev-att-avatar-ring {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid var(--surface, #fafafa);
  box-sizing: border-box;
  box-shadow: 0 0 0 1px rgba(15, 33, 56, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.calendar-ev-att-avatar-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.calendar-ev-att-avatar-img--withdrawn {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #cfd8dc, #90a4ae);
}

.calendar-ev-att-avatar-more {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0 0.15rem;
}

@keyframes mz-cover-kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.2);
  }
}

.profile-attributes-fieldset {
  margin: 0.75rem 0 0;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.profile-attributes-fieldset legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-attribute-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  margin-top: 0.35rem;
}

.profile-attribute-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  cursor: pointer;
}

.mz-profile-dialog-form textarea,
.profile-form textarea {
  width: 100%;
  min-height: 4.5rem;
  resize: vertical;
  font: inherit;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-sizing: border-box;
}

.mz-profile-dialog-form select {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
}

.mz-profile-dialog-form input[type="date"] {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  box-sizing: border-box;
}

.mz-profile-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  max-width: 100%;
  margin-top: 0.65rem;
  font-size: 0.92rem;
  line-height: 1.35;
  cursor: pointer;
}

.mz-profile-checkbox-label input {
  margin: 0;
  flex-shrink: 0;
  cursor: pointer;
}

.mz-profile-checkbox-text {
  cursor: pointer;
}

.mz-profile-field-note {
  margin: 0.35rem 0 0;
}

.user-profile-panel {
  max-width: 960px;
  margin-inline: auto;
}

/* ── 視点切り替えタブ ── */
.user-profile-view-toggle {
  display: inline-flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}
.user-profile-view-toggle-btn {
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.75rem;
  border: none;
  border-right: 1px solid var(--border);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
}
.user-profile-view-toggle-btn:last-child { border-right: none; }
.user-profile-view-toggle-btn[aria-selected="true"] {
  background: var(--accent, #1d4ed8);
  color: #fff;
  font-weight: 700;
}

html[data-mz-prof-guest-preview="1"] .user-profile-notif-row,
html[data-mz-prof-guest-preview="1"] #prof-tab-notifs,
html[data-mz-prof-guest-preview="1"] #prof-tab-ops,
html[data-mz-prof-guest-preview="1"] #prof-pane-notifs,
html[data-mz-prof-guest-preview="1"] #prof-pane-ops,
html[data-mz-prof-visitor="1"] .user-profile-view-toggle,
html[data-mz-prof-visitor="1"] .user-profile-guest-preview-notice,
html[data-mz-prof-visitor="1"] .user-profile-notif-row,
html[data-mz-prof-visitor="1"] #prof-tab-notifs,
html[data-mz-prof-visitor="1"] #prof-tab-ops,
html[data-mz-prof-visitor="1"] #prof-pane-notifs,
html[data-mz-prof-visitor="1"] #prof-pane-ops,
html[data-mz-prof-guest-preview="1"] #prof-tab-base,
html[data-mz-prof-guest-preview="1"] #prof-pane-base,
html[data-mz-prof-visitor="1"] #prof-tab-base,
html[data-mz-prof-visitor="1"] #prof-pane-base {
  display: none !important;
}

html[data-mz-prof-guest-preview="1"] .user-profile-mylist-edit-btn,
html[data-mz-prof-guest-preview="1"] .user-profile-mylist-list-head-right,
html[data-mz-prof-guest-preview="1"] .user-profile-mylist-overflow,
html[data-mz-prof-guest-preview="1"] .user-profile-mll-share-row,
html[data-mz-prof-guest-preview="1"] .btn-share-search.btn-marchinz-spotlight,
html[data-mz-prof-guest-preview="1"] [data-mz-prof-owner-action] {
  display: none !important;
}

.calendar-ev-topline-creator-name-link {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.calendar-ev-topline-creator-name-link:hover {
  text-decoration: underline;
}

html[data-mz-prof-guest-preview="1"] #page-profile .user-profile-panel {
  background: #fffbf5;
}

html[data-mz-prof-guest-preview="1"] .user-profile-layout {
  background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 40%, #fffbeb 100%);
  border-radius: 14px;
  padding: 0.85rem 0.65rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.2);
}

.user-profile-guest-preview-notice {
  padding: 0.4rem 0.75rem;
  margin: 0 0 0.5rem;
  background: #fef3c7;
  border: 1px solid #f59e0b;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
}

.user-profile-load-msg {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  color: var(--muted, #666);
}

.user-profile-load-msg[hidden] {
  display: none !important;
}

.user-profile-layout {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
@media (min-width: 600px) {
  .user-profile-layout {
    gap: 0.85rem;
  }
}

/* ユーザー未指定時：案内文だけ見せてカバー枠・タブは隠す */
.user-profile-layout--no-target .user-profile-cover-slot,
.user-profile-layout--no-target .user-profile-identity-row,
.user-profile-layout--no-target .user-profile-bio-public,
.user-profile-layout--no-target .user-profile-notif-row,
.user-profile-layout--no-target .user-profile-tabs,
.user-profile-layout--no-target .user-profile-tab-pane,
.user-profile-layout--no-target .user-profile-view-toggle,
.user-profile-layout--no-target .user-profile-guest-preview-notice {
  display: none !important;
}

.user-profile-layout--loading .user-profile-cover-mount,
.user-profile-layout--loading .user-profile-identity-row,
.user-profile-layout--loading .user-profile-tab-pane {
  opacity: 0.55;
  pointer-events: none;
}

.user-profile-cover-slot {
  width: 100%;
}

.user-profile-cover-mount {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 2.35 / 1;
  min-height: 0;
  background: linear-gradient(120deg, #1e293b, #334155);
  cursor: zoom-in;
}

.user-profile-cover-mount.user-profile-cover--single {
  cursor: default;
}

.user-profile-cover-mount:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
}

.user-profile-cover--empty {
  cursor: default;
}

.user-profile-cover-placeholder {
  min-height: 120px;
}

.user-profile-cover-slide-view {
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2.35 / 1;
}

.user-profile-cover-slide-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition-property: transform;
  transition-timing-function: cubic-bezier(0.42, 0, 0.58, 1);
}

.user-profile-cover-slide-pane {
  flex: 0 0 100%;
  height: 100%;
}

.user-profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.user-profile-cover-mount > .marchinz-protected-photo-inner {
  width: 100%;
  height: 100%;
}

.user-profile-cover-mount .marchinz-protected-photo-inner img.user-profile-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-profile-cover-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.user-profile-cover-layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center center;
}

.user-profile-identity-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.user-profile-identity-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.user-profile-avatar-lg {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  object-fit: cover;
  margin-top: -2.5rem;
  border: 3px solid var(--panel, #fff);
  box-sizing: border-box;
  flex-shrink: 0;
}

.user-profile-identity-row .marchinz-protected-photo-inner {
  width: 80px;
  height: 80px;
  border-radius: 999px;
  overflow: hidden;
  margin-top: -2.5rem;
  border: 3px solid var(--panel, #fff);
  box-sizing: border-box;
  flex-shrink: 0;
}

.user-profile-identity-row .marchinz-protected-photo-inner .user-profile-avatar-lg {
  width: 100%;
  height: 100%;
  margin-top: 0;
  border: none;
  border-radius: 0;
  object-fit: cover;
}

@media (min-width: 600px) {
  .user-profile-avatar-lg {
    width: 112px;
    height: 112px;
    margin-top: -3.5rem;
    border-width: 4px;
  }
  .user-profile-identity-row .marchinz-protected-photo-inner {
    width: 112px;
    height: 112px;
    margin-top: -3.5rem;
    border-width: 4px;
  }
}

.user-profile-display-name {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
@media (min-width: 600px) {
  .user-profile-display-name {
    font-size: 1.45rem;
  }
}

@media (max-width: 600px) {
  .user-profile-identity-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.6rem;
    margin-top: 1rem;
  }
  .user-profile-identity-text {
    align-items: center;
    text-align: center;
  }
  .user-profile-name-row {
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
  }
  .user-profile-id-pref-row {
    justify-content: center;
  }
  .user-profile-pills--inline {
    justify-content: center;
    text-align: center;
  }
  .user-profile-avatar-lg {
    margin-top: 0.5rem;
  }
}

.user-profile-id-pref-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.6rem;
  margin: 0;
}

.user-profile-public-id {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted, #666);
  white-space: nowrap;
}

.user-profile-address-prefecture {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted, #666);
  white-space: nowrap;
}

.user-profile-address-prefecture[hidden] {
  display: none !important;
}

.user-profile-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 0.5rem;
  width: 100%;
}

.user-profile-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.2rem;
}
.user-profile-pills--inline {
  display: inline-flex;
  margin-top: 0;
  align-items: center;
}

.user-profile-attr-pill {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.2);
  line-height: 1.4;
}

.user-profile-bio-public {
  margin: 0.4rem 0 0;
  font-size: 0.85rem;
  line-height: 1.6;
  white-space: pre-wrap;
  width: 100%;
}
.user-profile-bio-public:empty { display: none; }

.user-profile-notif-row {
  display: flex;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.35rem;
  margin-bottom: 0;
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.user-profile-tab--notif,
.user-profile-tab--ops {
  position: relative;
  border: 1px solid transparent;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0.4rem 1.15rem 0.4rem 0.55rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  border-radius: 0;
  margin-bottom: -1px;
  overflow: visible;
  line-height: 1.4;
}
.user-profile-tab-label {
  white-space: nowrap;
}
.user-profile-tab--notif[aria-selected="true"],
.user-profile-tab--ops[aria-selected="true"] {
  border-bottom-color: var(--accent, #1d4ed8);
  font-weight: 700;
  color: var(--accent, #1d4ed8);
  background: transparent;
}
.user-profile-notif-badge,
.user-profile-ops-badge {
  position: absolute;
  top: 0.08rem;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  min-width: 18px;
  height: 18px;
  box-sizing: border-box;
  padding: 0 4px;
  margin-left: 0;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: #ef4444;
  border-radius: 999px;
  vertical-align: middle;
  transform: translateX(48%);
  pointer-events: none;
}
.user-profile-notif-badge[hidden],
.user-profile-ops-badge[hidden] { display: none !important; }

.user-prof-ops-feed {
  margin-top: 0.35rem;
}
.user-prof-ops-items {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.user-profile-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.user-profile-tabs::-webkit-scrollbar {
  display: none;
}

/* display指定のあるクラスは [hidden] より詳細度で勝ってしまうため、
   hidden 属性を常に最優先する。これが無いと el.hidden=true が効かず、
   本人限定タブ(#prof-tab-base 等)が他人にも見えてしまう(2026-07-19 レビュー指摘) */
[hidden] { display: none !important; }

.user-profile-tab {
  border: none;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 0.45rem 0.55rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  flex-shrink: 0;
  border-radius: 0;
  margin-bottom: -1px;
  color: var(--muted, #666);
}

.user-profile-tab[aria-selected="true"] {
  border-bottom-color: var(--accent, #1d4ed8);
  color: var(--accent, #1d4ed8);
  font-weight: 700;
  background: transparent;
}

.user-profile-tab-count {
  font-size: 0.65rem;
  padding: 0.05rem 0.3rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted, #444);
  font-weight: 600;
}

@media (min-width: 600px) {
  .user-profile-tab {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
  }
}

.user-profile-tab-vis {
  font-size: 0.62rem;
  padding: 0.02rem 0.3rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.user-profile-tab-vis--private {
  border-color: rgba(100, 116, 139, 0.3);
  color: #475569;
  background: rgba(100, 116, 139, 0.1);
}

.user-profile-mll-vis-toggle {
  font-size: 0.72rem;
  padding: 0.12rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
  cursor: pointer;
  line-height: 1.35;
  flex-shrink: 0;
}

.user-profile-mll-vis-toggle--private {
  border-color: rgba(100, 116, 139, 0.3);
  color: #475569;
  background: rgba(100, 116, 139, 0.1);
}

.user-profile-mll-vis-toggle--pane {
  display: inline-block;
  margin: 0 0 0.65rem;
}

.mll-mylist-vis-tag--clickable {
  cursor: pointer;
  transition: opacity 0.15s;
}
.mll-mylist-vis-tag--clickable:hover {
  opacity: 0.75;
}

.mll-mylist-list-name--editable {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}
.mll-mylist-list-name--editable:hover {
  color: var(--accent, #1d4ed8);
}

.mll-mylist-edit-panel {
  background: var(--panel, #fff);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.mll-mylist-edit-name {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.88rem;
}
.mll-mylist-edit-vis-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mll-mylist-edit-btns {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}
.mll-mylist-edit-save {
  font-size: 0.82rem;
}
.mll-mylist-edit-cancel {
  font-size: 0.82rem;
  color: var(--muted, #666);
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.3rem 0.7rem;
  cursor: pointer;
}

.user-profile-tab-pane {
  padding-top: 0.85rem;
}

.user-profile-logdiary-lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: rgba(12, 15, 20, 0.72);
}

.user-profile-pane-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(12, 15, 20, 0.65);
}

.user-profile-pane-lead a {
  color: var(--link, #2563eb);
  text-decoration: underline;
  text-underline-offset: 0.14em;
}

.user-profile-logdiary-notice {
  margin-top: -0.35rem;
  margin-bottom: 1rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(12, 15, 20, 0.03);
}

.user-profile-logdiary-notice strong {
  font-weight: 700;
  color: rgba(12, 15, 20, 0.9);
}

.prof-log-diary-root {
  position: relative;
}

.eld-note-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
}

.eld-note-filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.28rem 0.72rem;
  font-size: 0.8rem;
  line-height: 1.25;
  cursor: pointer;
}

.eld-note-filter-btn[aria-selected="true"] {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 700;
}

.prof-log-diary-root .eld-search-input {
  margin-bottom: 0.65rem;
}

.eld-participation-block {
  margin: 0 0 1rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(12, 15, 20, 0.02);
}

.eld-participation-label {
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.eld-participation-sync-note {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: rgba(12, 15, 20, 0.62);
}

.eld-participation-options.calendar-att-options {
  margin: 0;
}

.prof-log-diary-note-grid.mln-feed-grid {
  max-width: min(72rem, calc(100% - 2rem));
}

.prof-log-diary-note-grid .eld-event-card {
  width: 100%;
  box-sizing: border-box;
}

.prof-log-diary-note-grid .eld-event-card-actions {
  align-items: center;
}

.prof-log-diary-note-grid .eld-open-btn--write {
  align-self: center;
  border: 1px solid rgba(219, 39, 119, 0.45);
  background: linear-gradient(180deg, #fdf2f8 0%, #fce7f3 100%);
  color: #9d174d;
  border-radius: 999px;
  font-weight: 700;
}

.prof-log-diary-note-grid .eld-open-btn--write:hover {
  border-color: rgba(190, 24, 93, 0.65);
  background: linear-gradient(180deg, #fce7f3 0%, #fbcfe8 100%);
  color: #831843;
}

.prof-log-diary-note-grid .eld-open-btn--write:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mz-settings-like-item--static {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mz-settings-vis-note-static {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.45;
}

.eld-event-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  max-width: 40rem;
  width: 100%;
}

.eld-event-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  background: var(--panel);
  width: 100%;
  box-sizing: border-box;
  box-shadow: 0 1px 8px rgba(15, 33, 56, 0.06);
}

.eld-event-card--media {
  padding-left: 0;
  padding-right: 0;
  padding-top: 0.85rem;
}

.eld-event-card--media .eld-event-card-head,
.eld-event-card--media .eld-event-card-preview,
.eld-event-card--media .eld-event-card-actions,
.eld-event-card--media .eld-card-like-host {
  padding-left: 1rem;
  padding-right: 1rem;
}

.eld-event-card-head {
  margin-bottom: 0.55rem;
}

.eld-event-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.eld-event-card-title {
  margin: 0;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  flex: 1 1 auto;
  min-width: 0;
}

.eld-vis-badge {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

.eld-vis-badge--public {
  color: #0b5cab;
  background: rgba(30, 79, 214, 0.12);
  border: 1px solid rgba(30, 79, 214, 0.28);
}

.eld-vis-badge--private {
  color: #6b4b00;
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.35);
}

.eld-card-media {
  margin: 0.35rem 0 0.65rem;
  width: 100%;
}

.eld-card-media-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
}

.eld-card-media-inner--single .eld-card-photo-cell {
  width: 100%;
}

.eld-card-photo-cell {
  flex: 0 1 auto;
  max-width: calc(50% - 0.25rem);
  display: flex;
  justify-content: center;
}

.eld-card-photo-img {
  display: block;
  max-width: 100%;
  width: auto;
  max-height: min(26rem, 70vh);
  height: auto;
  margin: 0 auto;
  object-fit: contain;
  border-radius: 8px;
  background: var(--row-alt);
}

.eld-event-card-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.eld-event-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  align-items: flex-start;
}

.eld-event-card-preview {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(12, 15, 20, 0.72);
}

.eld-open-btn {
  align-self: flex-start;
}

.eld-dialog {
  width: min(720px, 96vw);
  max-height: min(92vh, 900px);
  padding: 0;
  border: none;
  border-radius: 14px;
  background: transparent;
  box-shadow: none;
}

.eld-dialog::backdrop {
  background: rgba(15, 23, 42, 0.45);
}

.eld-dialog-surface {
  position: relative;
  box-sizing: border-box;
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 1.25rem 1.1rem 1.5rem;
  border-radius: 14px;
  background: var(--panel);
  border: 1px solid var(--border);
}

.eld-dialog-x {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--text);
}

.eld-shell-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-right: 2.5rem;
}

.eld-shell-heading {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy);
}

.eld-shell-seeall {
  border: none;
  background: none;
  color: var(--link);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.eld-body-text {
  font-size: 0.92rem;
  line-height: 1.75;
  white-space: pre-wrap;
  margin: 0 0 1rem;
  color: var(--text);
}

.eld-view-actions {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.eld-body-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font: inherit;
  resize: vertical;
  min-height: 7rem;
}

.eld-hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.eld-upload-notice {
  margin: 0 0 0.85rem;
  padding: 0.65rem 0.7rem;
  font-size: 0.76rem;
  line-height: 1.55;
  color: rgba(12, 15, 20, 0.78);
  border-left: 3px solid rgba(30, 79, 214, 0.45);
  background: rgba(12, 15, 20, 0.04);
  border-radius: 0 8px 8px 0;
}

.eld-upload-notice strong {
  font-weight: 700;
  color: rgba(12, 15, 20, 0.92);
}

.eld-vis {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.88rem;
}

.eld-vis-select {
  min-width: 8rem;
  padding: 0.35rem 0.5rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.eld-vis-prompt {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid rgba(30, 79, 214, 0.28);
  background: rgba(30, 79, 214, 0.06);
}

.eld-vis-lead {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--text);
}

.eld-vis-prompt-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
}

.eld-vis-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
}

.eld-vis-option {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  cursor: pointer;
}

.eld-photo-edit {
  margin-bottom: 1rem;
}

.eld-photo-add {
  display: inline-flex;
  cursor: pointer;
}

.eld-photo-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.38rem 0.75rem;
  border-radius: 8px;
  border: 1px dashed rgba(30, 79, 214, 0.45);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--link);
}

.eld-photo-add-btn > i {
  font-size: 1rem;
}

.eld-photo-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.eld-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
}

.eld-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eld-thumb-rm {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 1.35rem;
  height: 1.35rem;
  border: none;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
}

.eld-grid-wrap {
  margin: 0 0 1rem;
}

.eld-photo-grid {
  display: grid;
  gap: 0.4rem;
  max-height: none;
  overflow: visible;
  border-radius: 4px;
  justify-items: stretch;
  align-items: stretch;
}

.eld-photo-grid .eld-photo-cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  min-width: 0;
}

.eld-photo-grid .eld-photo-cell img,
.eld-photo-grid .eld-photo-cell .marchinz-protected-photo-inner img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  display: block;
  margin: 0;
}

/* 1〜3枚: 横一列（PC） */
.eld-photo-grid--count-1 {
  grid-template-columns: minmax(0, 1fr);
  max-width: 14rem;
  margin-inline: auto;
}

.eld-photo-grid--count-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.eld-photo-grid--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 4枚: 2×2 */
.eld-photo-grid--count-4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 28rem;
  margin-inline: auto;
}

.mln-feed-card-cover--has-vis {
  position: relative;
}

.mln-feed-cover-vis {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(10, 20, 40, 0.12);
}

.eld-photo-grid--expanded {
  max-height: none;
}

.eld-photo-cell {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e8ecf1;
}

.eld-photo-cell > .marchinz-protected-photo-cell {
  width: 100%;
  height: 100%;
}

.eld-photo-cell img,
.eld-photo-cell .marchinz-protected-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eld-pill {
  position: sticky;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  margin: 1rem auto 0;
  padding: 0.45rem 0.85rem;
  max-width: 22rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(15, 33, 56, 0.1);
  box-shadow: 0 6px 24px rgba(15, 33, 56, 0.12);
}

.eld-pill-item {
  font-size: 0.82rem;
  color: rgba(12, 15, 20, 0.72);
}

.eld-pill-iconbtn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}

.eld-pill-iconbtn:hover {
  background: rgba(30, 79, 214, 0.08);
}

.eld-save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

.eld-error {
  margin: 0.5rem 0 0;
  font-size: 0.84rem;
  color: #b91c1c;
}

.eld-dialog-close {
  margin-top: 0.75rem;
  width: 100%;
}

@media (max-width: 520px) {
  .eld-photo-grid--count-2,
  .eld-photo-grid--count-3,
  .eld-photo-grid--count-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 100%;
  }

  .eld-photo-grid--count-3 .eld-photo-cell:last-child {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }
}

.user-profile-rights {
  margin: 0 0 1rem;
  font-size: 0.78rem !important;
  line-height: 1.55;
}

.user-profile-layout--banned-limited .user-profile-tabs,
.user-profile-layout--banned-limited .user-profile-tab-panels,
.user-profile-layout--banned-limited #prof-public-id,
.user-profile-layout--banned-limited #prof-bio,
.user-profile-layout--banned-limited #prof-attrs,
.user-profile-layout--banned-limited #prof-address-prefecture,
.user-profile-layout--banned-limited .user-profile-notif-row,
.user-profile-layout--banned-limited .user-profile-mll-vis-toggle-wrap {
  display: none !important;
}

.user-profile-banned-note {
  margin: 0.5rem 0 0;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.45;
}

.user-profile-admin-ban {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid rgba(190, 24, 93, 0.4);
  background: linear-gradient(
    135deg,
    rgba(255, 228, 235, 0.98) 0%,
    rgba(254, 205, 211, 0.78) 55%,
    rgba(254, 226, 226, 0.65) 100%
  );
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.user-profile-admin-ban-heading {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #881337;
}

.user-profile-admin-ban-status {
  margin: 0 0 0.65rem;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.user-profile-admin-ban-label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.user-profile-admin-ban-reason {
  display: block;
  width: 100%;
  max-width: 36rem;
  box-sizing: border-box;
  margin: 0 0 0.65rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  resize: vertical;
}

.user-profile-admin-ban-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.user-profile-mylist-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  max-width: 100%;
  min-width: 0;
}
.user-profile-mylist-grid[hidden] {
  display: none !important;
}

/* プロフ内マイリスト: 大会動画カードを recommend-item 風に */
.prof-mylist-recommend-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 10px var(--shadow);
}
.prof-mylist-recommend-item .recommend-item-thumb-wrap {
  width: 100%;
  align-self: stretch;
  border-radius: 10px 10px 0 0;
  border: none;
  box-shadow: none;
}
.prof-mylist-recommend-item .recommend-item-yt-info-row {
  padding: 0.5rem 0.65rem 0.6rem;
}
.prof-mylist-recommend-item .recommend-item-event-link {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  font-weight: 600;
  color: var(--text-strong);
  text-decoration: none;
  border: none;
  background: none;
  padding: 0;
  border-radius: 0;
}
.prof-mylist-recommend-item .recommend-item-event-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* プロフ内マイリスト: YouTube チャンネルカードを youtube-card 風に */
.prof-mylist-youtube-card {
  padding: 0.7rem 0.72rem;
}
.prof-mylist-youtube-card .youtube-card-logo {
  width: 72px;
  height: 72px;
}
.prof-mylist-youtube-card .youtube-card-info {
  min-height: 72px;
}
.prof-mylist-youtube-card .youtube-card-name.prof-mylist-youtube-card-name {
  margin: 0;
  font-weight: 600;
  color: var(--text-strong);
  word-break: break-word;
}

/* マイリスト: 折りたたみ時は小さめグリッド（幅が広がりすぎない） */
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .user-profile-mylist-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.42rem;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .prof-mylist-recommend-item .recommend-item-thumb-wrap {
  border-radius: 6px 6px 0 0;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .recommend-item-yt-info-row {
  padding: 0.28rem 0.32rem 0.32rem;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .recommend-item-org,
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .recommend-item-yt-meta-line {
  display: none;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .recommend-item-event-link {
  font-size: 0.62rem;
  -webkit-line-clamp: 3;
  line-clamp: 3;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .prof-mylist-youtube-card {
  padding: 0.32rem 0.38rem;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .prof-mylist-youtube-card .youtube-card-logo {
  width: 36px;
  height: 36px;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .prof-mylist-youtube-card .youtube-card-info {
  min-height: 0;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .prof-mylist-youtube-card .youtube-card-name.prof-mylist-youtube-card-name {
  font-size: 0.62rem;
}
.user-profile-mylist-list-section--cards-compact:not(.user-profile-mylist-list-section--expanded) .youtube-card-top-badges {
  display: none;
}

/* 来訪で Log/Note 非公開・マイリスト系のみ公開: 従来の peek クラスも同じ見た目 */
.user-profile-mylist-list-section--peek:not(.user-profile-mylist-list-section--expanded) .user-profile-mylist-grid {
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 0.42rem;
}
.user-profile-mylist-peek-more {
  grid-column: 1 / -1;
  list-style: none;
  margin: 0;
  padding: 0.2rem 0.1rem 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-align: center;
}

.user-profile-mylist-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: var(--panel);
}

.user-profile-mylist-card-title {
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  word-break: break-word;
}

.user-profile-mylist-card-title:hover {
  text-decoration: underline;
}

.user-profile-mylist-card-meta {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

.user-profile-empty,
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: #666;
  box-sizing: border-box;
}

.user-profile-auth-gate {
  padding: 0.85rem 0.25rem;
  max-width: 32rem;
}

.user-profile-auth-gate-note {
  margin: 0 0 0.85rem;
  line-height: 1.55;
  color: var(--text);
}

.user-profile-auth-gate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.user-profile-auth-gate-li {
  list-style: none;
  grid-column: 1 / -1;
  width: 100%;
}

/* MarchinZ Log タブ — TOP `.mll-lp-finale--pattern-a` と同じ背景ルール */
.user-profile-tab-pane.user-profile-mll-pane {
  padding-top: 0;
}

.user-profile-mll-pane.mll-lp-finale {
  margin-top: 0.65rem;
  padding: clamp(1.2rem, 3.5vw, 2rem) clamp(0.75rem, 2.5vw, 1.15rem) clamp(1.4rem, 4.5vw, 2.25rem);
  border-radius: 12px;
}

.user-profile-mll-pane.mll-lp-finale--pattern-a {
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.user-profile-mll-pane-content {
  position: relative;
  z-index: 1;
  max-width: min(52rem, 100%);
  margin: 0 auto;
  text-align: left;
}

.user-profile-mll-pane .user-profile-pane-lead {
  margin-bottom: 0.65rem;
  color: var(--muted);
}

.user-profile-mll-pane .user-profile-mll-vis-toggle--pane {
  margin-bottom: 0.85rem;
}

.user-profile-mll-pane #prof-mll-main {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
}

.user-profile-mll-pane .user-profile-mll-year {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.user-profile-mll-pane .user-profile-mll-share-row {
  margin-bottom: 1rem;
}

@media (max-width: 767px) {
  .user-profile-mll-pane.mll-lp-finale {
    margin-top: 0.5rem;
    padding: 1.1rem 0.65rem 1.35rem;
    border-radius: 10px;
  }

  .user-profile-mll-pane-content {
    max-width: 100%;
  }
}

.user-profile-mll-kpi-bar.mll-lp-finale {
  margin-bottom: 1.25rem;
  padding: clamp(1rem, 2.8vw, 1.2rem);
  border-radius: 10px;
  overflow: hidden;
}

.user-profile-mll-kpi-bar.mll-lp-finale--pattern-a {
  border: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.user-profile-mll-kpi-bar__inner {
  position: relative;
  z-index: 1;
}

.user-profile-mll-kpi-bar {
  overflow: visible;
}

.user-profile-mll-kpi-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.55rem;
  margin: 0 0 0.65rem;
}

.user-profile-mll-kpi-caption-label {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.user-profile-mll-kpi-caption-sub {
  font-weight: 400;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.user-profile-mll-summary {
  margin: 0.75rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text);
  text-align: center;
  width: 100%;
}

.user-profile-mll-kpi-inner {
  display: grid;
  justify-content: center;
  justify-items: center;
  align-items: start;
  gap: 1rem 1.25rem;
  width: 100%;
  margin-inline: auto;
}

.user-profile-mll-kpi-inner--n1 {
  grid-template-columns: minmax(0, 7rem);
  max-width: 7rem;
}

.user-profile-mll-kpi-inner--n2 {
  grid-template-columns: repeat(2, minmax(0, 7rem));
  max-width: 15.5rem;
}

.user-profile-mll-kpi-inner--n3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
}

.user-profile-mll-kpi-inner--n4 {
  grid-template-columns: repeat(2, minmax(0, 7rem));
  max-width: 15.5rem;
}

.user-profile-mll-kpi-inner .user-profile-mll-medal {
  flex: unset;
  width: 100%;
  max-width: 7rem;
}

.user-profile-mll-kpi-inner .user-profile-mll-medal-badge,
.user-profile-mll-kpi-inner .mil-role-badge {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 7rem;
}

.user-profile-mll-sample {
  grid-column: 1 / -1;
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 0.65rem 0.55rem;
  background: #fffdf6;
}

.user-profile-mll-sample-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
  gap: 0.2rem;
}

.user-profile-mll-sample-row--label {
  margin-top: 0.2rem;
}

.user-profile-mll-sample-count {
  font-size: 1.48rem;
  font-weight: 800;
  color: #6d28d9;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.user-profile-mll-sample-count--cute-circle {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8a2be2;
  background: #ffe7fb;
  border: 2px solid #f2b8ff;
  font-family: "Hiragino Maru Gothic ProN", "M PLUS Rounded 1c", "Hiragino Sans", sans-serif;
  font-size: 1.26rem;
  box-shadow: 0 2px 8px rgba(138, 43, 226, 0.16);
}

.user-profile-mll-sample-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #4b5563;
}

/* MarchinZ Log KPI バッジのみ（Note・いいね・マイリスト件数には非適用） */
.user-profile-mll-medal {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  text-align: center;
  padding: 0.2rem 0.15rem 0.35rem;
  flex: 0 0 112px;
  width: 112px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .user-profile-mll-medal {
    flex: 1 1 0;
    width: auto;
    min-width: 112px;
    max-width: none;
  }

  .user-profile-mll-kpi-inner .user-profile-mll-medal {
    flex: unset;
    width: 100%;
    max-width: 7rem;
    min-width: 0;
  }
}

/* 実寸224px画像を112px表示（Retina 2x） */
.user-profile-mll-medal-badge,
.mil-role-badge {
  position: relative;
  width: 112px !important;
  height: 112px !important;
  min-width: 112px !important;
  min-height: 112px !important;
  border-radius: 50%;
  border-width: 3px !important;
  border-style: solid;
  border-color: #9b59b6;
  background-color: #f4f6f8;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 14px rgba(44, 62, 80, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

/* 観戦 → 01_player / 出演 → 02_fan（participation_style マッピング仕様） */
.user-profile-mll-medal--watch .user-profile-mll-medal-badge,
.user-profile-mll-medal--watch .mil-role-badge {
  border-color: #ff7f50;
  background-image: url("img/mll-log/01_player.jpg?v=1.24.17");
}

.user-profile-mll-medal--perform .user-profile-mll-medal-badge,
.user-profile-mll-medal--perform .mil-role-badge {
  border-color: #f1c40f;
  background-image: url("img/mll-log/02_fan.jpg?v=1.24.17");
}

.user-profile-mll-medal--team_staff .user-profile-mll-medal-badge,
.user-profile-mll-medal--team_staff .mil-role-badge {
  border-color: #34cbd0;
  background-image: url("img/mll-log/03_teamstaff.jpg?v=1.25.94");
  /* 画像下部の「チームスタッフ」が円で切れないよう縮小＋やや上寄せ */
  background-size: 80%;
  background-position: center 58%;
}

.user-profile-mll-medal--ops .user-profile-mll-medal-badge,
.user-profile-mll-medal--ops .mil-role-badge {
  border-color: #9b59b6;
  background-image: url("img/mll-log/04_manage.jpg?v=1.24.17");
}

.user-profile-mll-medal-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 48px !important;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #2c3e50 !important;
  text-shadow:
    0 0 5px #fff,
    0 0 10px #fff,
    0 0 15px #fff !important;
  pointer-events: none;
}

.user-profile-mll-medal-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #2c3e50;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.user-profile-mll-share-row {
  margin: 1rem 0 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
}

.user-profile-mll-owner-actions-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.user-profile-mll-share-row-overflow {
  flex: 0 0 auto;
}

.user-profile-mll-share-row-overflow .community-post-overflow-trigger {
  /* タップ目標44px(2026-08-06) */
  min-height: 2.75rem;
  min-width: 2.75rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel);
}

.user-profile-mll-purge-row {
  margin: 0 0 1.25rem;
  display: flex;
  justify-content: flex-start;
}

.user-profile-mll-purge-mount {
  margin: 0.75rem 0 0;
}

.user-profile-mll-purge-mount[hidden] {
  display: none !important;
}

.user-profile-mll-main:has(.user-profile-empty) + .user-profile-mll-purge-row,
#prof-mll-main:has(.user-profile-empty) .user-profile-mll-purge-row {
  margin-top: 0.85rem;
}

.user-profile-mll-purge-all-btn {
  font-size: 0.82rem;
}

@media (max-width: 767px) {
  .search-share-row {
    flex-direction: column;
    align-items: stretch;
  }

  .search-share-row .btn-reset-search,
  .search-share-row .search-share-wrap .btn-share-search {
    width: 100%;
    box-sizing: border-box;
  }

  .search-share-row .search-share-wrap {
    width: 100%;
  }

  .search-share-row .share-menu {
    left: 0;
    right: auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .recommend-item-actions .share-menu {
    left: 0;
    right: auto;
    transform: none;
    width: max-content;
    max-width: min(240px, calc(100vw - 2rem));
  }

  .user-profile-mll-kpi-inner--n3 {
    gap: 0.65rem 0.75rem;
  }

  .user-profile-mll-kpi-bar {
    padding: 1rem 0.65rem;
  }

  .user-profile-mll-share-row {
    align-items: stretch;
  }

  .user-profile-mll-share-btn.share-toggle {
    width: 100%;
    text-align: center;
  }
}

.user-profile-mll-share-hint {
  margin: 0;
  font-size: 0.82rem;
  color: #6d28d9;
  line-height: 1.45;
  max-width: 36rem;
}

.user-profile-mll-share-btn.share-toggle {
  border-radius: 999px;
}

.user-profile-mll-year {
  margin-bottom: 1.5rem;
}

.user-profile-mll-year-hdr {
  margin: 0 0 0.65rem;
}

.user-profile-mll-year-title {
  margin: 0;
  font-size: 1.12rem;
}

.user-profile-mll-year-meta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.user-profile-mll-event-actions-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.3rem;
  min-width: 0;
}

.user-profile-mll-role-hint {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.user-profile-mll-event-actions-row .calendar-ev-mll-log-save-btn,
.user-profile-mll-event-actions-row .user-profile-mll-note-btn {
  flex-shrink: 0;
}

.user-profile-mll-event-actions-row .mz-inline-like-host,
.user-profile-mll-event-actions-row .user-profile-mll-overflow {
  flex: 0 0 auto;
}

dialog.user-profile-mll-participation-dialog {
  border: none;
  padding: 0;
  max-width: min(22rem, calc(100vw - 2rem));
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 12px 40px var(--shadow);
}

dialog.user-profile-mll-participation-dialog::backdrop {
  background: rgba(15, 33, 56, 0.42);
}

.user-profile-mll-participation-panel {
  padding: 1rem 1rem 0.85rem;
}

.user-profile-mll-participation-title {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
}

.user-profile-mll-participation-hint {
  margin: 0 0 0.65rem;
  line-height: 1.45;
}

.user-profile-mll-participation-options {
  padding: 0;
}

.user-profile-mll-participation-actions {
  margin-top: 0.65rem;
  display: flex;
  justify-content: flex-end;
}

.calendar-att-opt-btn--current {
  border-color: var(--cta-teal-border, #0d7a72);
  background: rgba(13, 122, 114, 0.08);
  font-weight: 700;
}

.user-profile-mll-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.user-profile-mll-row {
  display: grid;
  grid-template-columns: 8.8rem min-content 1fr;
  gap: 0.65rem;
  align-items: start;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

@media (max-width: 767px) {
  .user-profile-mll-row {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0.75rem 0;
  }

  .user-profile-mll-spine {
    display: none;
  }

  .user-profile-mll-date {
    text-align: left;
    font-weight: 600;
    font-size: 0.84rem;
    color: #4b5563;
  }

  .user-profile-mll-event {
    width: 100%;
    min-width: 0;
  }

  .user-profile-mll-event-title-row {
    width: 100%;
  }

  .user-profile-mll-event-link {
    display: block;
    line-height: 1.4;
    overflow-wrap: anywhere;
    word-break: normal;
  }

  .user-profile-mll-event-actions-row {
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    gap: 0.4rem 0.45rem;
  }

  .user-profile-mll-role-hint {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .user-profile-mll-overflow {
    margin-left: 0;
    flex-shrink: 0;
  }

  .user-profile-mll-year-meta {
    font-size: 0.78rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
  }

  .mln-feed-card-title,
  .mln-feed-card-title-text,
  .eld-event-card-title {
    word-break: normal;
    overflow-wrap: break-word;
    white-space: normal;
  }

  .mln-feed-card-head-main,
  .eld-event-card-head {
    min-width: 0;
    width: 100%;
  }

  .mln-feed-card-head-aside {
    width: 3.75rem;
    max-width: 4.25rem;
  }

  .mln-feed-card-head-aside .mln-feed-author-name-link {
    font-size: 0.78rem;
  }
}

.user-profile-mll-date {
  font-size: 0.82rem;
  color: var(--muted);
  text-align: right;
}

.user-profile-mll-spine {
  width: 12px;
  position: relative;
  min-height: 1.75rem;
  border-left: 2px solid rgba(0, 0, 0, 0.12);
  margin-inline: auto;
}

.user-profile-mll-event-link {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.user-profile-mll-event-link:hover {
  text-decoration: underline;
}

.user-profile-mll-role-hint {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-top: 0.15rem;
}

.user-profile-mll-event-title-row {
  align-items: flex-start;
}

.user-profile-mll-event-title-main {
  flex: 1 1 auto;
  min-width: 0;
}

.user-profile-mll-overflow {
  flex: 0 0 auto;
  margin-left: auto;
}

.user-profile-mll-overflow .community-post-overflow-trigger {
  /* タップ目標44px(2026-08-06、ここだけ36pxだった) */
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0.2rem 0.45rem;
}

.user-profile-mll-overflow .community-post-overflow-panel {
  min-width: 9.75rem;
}

.user-profile-mll-overflow .community-post-overflow-item {
  white-space: nowrap;
}

.youtube-card-mylist-row {
  display: flex;
  justify-content: center;
  padding: 0.45rem 0 0.15rem;
}

/* YouTube チャンネル行の「マイリストに追加」は .btn-share-search.btn-marchinz-spotlight（検索結果シェアと同型） */
.youtube-card-mylist-row .youtube-channel-mylist-add-btn.btn-share-search.btn-marchinz-spotlight {
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  padding: 0.45rem 1rem;
}

.user-profile-cover-dialog {
  border: none;
  border-radius: 12px;
  padding: 0;
  max-width: min(960px, 96vw);
}

.user-profile-cover-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.user-profile-cover-dialog-panel {
  padding: 0.75rem 1rem 1rem;
}

.user-profile-cover-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.user-profile-cover-dialog-title {
  margin: 0;
  font-size: 1.05rem;
}

.user-profile-cover-grid-host {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.user-profile-cover-grid-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
}

/* プロフィール「通知」（X 風の縦リスト） */
.user-prof-notifs-feed {
  margin: 0;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
}

.user-prof-notif-filters {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.user-prof-notif-filter-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.76rem;
  line-height: 1.2;
  cursor: pointer;
}

.user-prof-notif-filter-btn[aria-pressed="true"] {
  border-color: rgba(37, 99, 235, 0.3);
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 700;
}

.user-prof-notifs-items {
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.user-prof-notif {
  display: flex;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  cursor: default;
}

/* display:flex が [hidden] を打ち消すため明示（Safari 含む） */
.user-prof-notif[hidden] {
  display: none !important;
}

.user-prof-notif:last-child {
  border-bottom: none;
}

.user-prof-notif--unread {
  background: rgba(59, 130, 246, 0.06);
}

.user-prof-notif-avatar-wrap {
  flex-shrink: 0;
}

.user-prof-notif-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  background: rgba(12, 15, 20, 0.06);
}

.user-prof-notif-body {
  flex: 1;
  min-width: 0;
}

.user-prof-notif-line1,
.user-prof-notif-line2 {
  margin: 0 0 0.2rem;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(12, 15, 20, 0.92);
}

.user-prof-notif-actor {
  font-weight: 700;
  color: var(--accent, #2563eb);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.user-prof-notif-actor:hover {
  color: var(--accent-strong, #1d4ed8);
}

.user-prof-notif-avatar-wrap--link {
  cursor: pointer;
}

.user-prof-notif-actor--static {
  color: var(--navy, #0f172a);
  text-decoration: none;
  cursor: default;
}

.user-prof-notif-target {
  display: inline;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: 700;
  color: var(--accent, #2563eb);
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.user-prof-notif-target:hover {
  color: var(--navy, #0f172a);
}

.user-prof-notif-time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--muted, #64748b);
}

.user-prof-notif--site {
  border-left: 3px solid var(--accent, #c9a227);
}

.user-prof-notif-avatar-wrap--site .user-prof-notif-avatar {
  object-fit: contain;
  padding: 0.2rem;
  background: var(--surface-elevated, #f8fafc);
}

.user-prof-notif-line2--site {
  line-height: 1.5;
}

.user-prof-notif-site-title {
  font-weight: 600;
  color: var(--text-strong, #0f172a);
}

.user-prof-notif-site-link-row {
  margin: 0.35rem 0 0;
}

a.user-prof-notif-site-title,
button.user-prof-notif-site-title {
  display: inline;
  font: inherit;
  font-weight: 600;
  color: var(--link, #1d4ed8);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  text-align: left;
}

.user-prof-notif-site-link {
  color: var(--link, #1d4ed8);
  text-decoration: underline;
}

button.user-prof-notif-site-link {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-decoration: underline;
  color: var(--link, #1d4ed8);
}

.user-prof-notif-mark-read {
  margin-top: 0.45rem;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.15));
  background: var(--surface-elevated, #f8fafc);
  color: var(--text, #0f172a);
  cursor: pointer;
}

.user-prof-notif-mark-read:hover {
  border-color: var(--accent, #c9a227);
}

.user-prof-notif-delete {
  margin-top: 0.35rem;
  margin-left: 0.35rem;
  font: inherit;
  font-size: 0.78rem;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(185, 28, 28, 0.35);
  background: rgba(254, 242, 242, 0.9);
  color: #b91c1c;
  cursor: pointer;
}

.user-prof-notif-delete:hover {
  border-color: #b91c1c;
  background: #fee2e2;
}

button.mz-site-ann-hashlink {
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
}

.mz-site-announcement-banner {
  background: linear-gradient(90deg, rgba(201, 162, 39, 0.12), rgba(15, 23, 42, 0.04));
  border-bottom: 1px solid var(--border, rgba(15, 23, 42, 0.12));
}

.mz-site-announcement-banner-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.65rem 1rem 0.75rem;
  position: relative;
}

.mz-site-announcement-banner-label {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent, #9a7b1a);
  text-transform: uppercase;
}

.mz-site-announcement-banner-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-strong, #0f172a);
}

.mz-site-announcement-banner-body {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text, #334155);
  white-space: pre-wrap;
}

.mz-site-announcement-banner-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.mz-site-announcement-banner-link {
  font-size: 0.85rem;
  color: var(--link, #1d4ed8);
  text-decoration: underline;
}

button.mz-site-announcement-banner-link {
  font: inherit;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.mz-site-announcement-banner-open-notifs {
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.18));
  background: var(--surface, #fff);
  cursor: pointer;
}

.mz-site-announcement-banner-dismiss {
  margin-left: auto;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.15rem 0.45rem;
  border: none;
  background: transparent;
  color: var(--muted, #64748b);
  cursor: pointer;
}

.ops-announcement-admin {
  margin-bottom: 1.5rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(190, 24, 93, 0.35);
  border-radius: 12px;
  background: linear-gradient(
    180deg,
    rgba(255, 228, 235, 0.95) 0%,
    rgba(254, 226, 226, 0.72) 100%
  );
}
.page-mz-admin .ops-announcement-preview {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(190, 24, 93, 0.25);
}

.ops-announcement-field {
  display: block;
  margin: 0.65rem 0;
}

.ops-announcement-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.ops-announcement-field input,
.ops-announcement-field textarea {
  width: 100%;
  max-width: 36rem;
  box-sizing: border-box;
}

.ops-announcement-preview {
  margin-top: 0.75rem;
  padding: 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px dashed var(--border, rgba(15, 23, 42, 0.2));
}

.ops-announcement-preview-title {
  margin: 0 0 0.35rem;
  font-weight: 700;
}

.ops-announcement-preview-body {
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.9rem;
}

.ops-announcement-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.ops-announcement-msg--err {
  color: #b91c1c;
}

.community-thread--highlight {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 2px;
  border-radius: 10px;
}

.user-profile-mylist-card--highlight {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 3px;
  border-radius: 12px;
  transition: outline-color 0.2s ease;
}

.mz-settings-like-section {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, rgba(15, 23, 42, 0.12));
}

.mz-settings-like-lead {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #64748b);
}

.mz-settings-like-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mz-settings-like-item {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

.mz-settings-like-item label {
  cursor: pointer;
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.mz-settings-like-item input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.mz-settings-like-status {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--muted, #64748b);
}

.mz-settings-like-status--err {
  color: #b91c1c;
}

/*
 * スマホ（〜719px）レイアウト最終適用（本ファイルより後勝ち）:
 * ブロック間マージンはほぼゼロ／ブロック内だけ読みやすいパディング。
 */
@media (max-width: 719px) {
  :root {
    --mz-mobile-stack-gap: 0.62rem;
    --mz-mobile-block-py: 0.82rem;
    --mz-mobile-block-pl: max(0.46rem, env(safe-area-inset-left, 0px));
    --mz-mobile-block-pr: max(0.46rem, env(safe-area-inset-right, 0px));
  }

  /* ①外側グレーを狭くする: main の左右余白だけ縮小 */
  body main {
    padding: 0.52rem 0.45rem 1.3rem;
  }

  /* ページ名は読み取れる行高を維持しつつ、上部ナビや次のタブとの
     空白を詰める。コミュニティ、YouTube、大会動画など共通で効く。 */
  body .page-hero.mz-philosophy-header {
    margin-top: 0;
    margin-bottom: 0.56rem;
  }

  body .static-panel {
    padding: var(--mz-mobile-block-py) var(--mz-mobile-block-pr) var(--mz-mobile-block-py)
      var(--mz-mobile-block-pl);
    margin: 0 auto var(--mz-mobile-stack-gap) !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: none;
  }

  body .mll-panel {
    padding: var(--mz-mobile-block-py) var(--mz-mobile-block-pr) var(--mz-mobile-block-py)
      var(--mz-mobile-block-pl);
    margin: 0 auto var(--mz-mobile-stack-gap) !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    max-width: none;
  }

  body .community-hub {
    padding: var(--mz-mobile-stack-gap) var(--mz-mobile-block-pr) var(--mz-mobile-stack-gap)
      var(--mz-mobile-block-pl);
    margin: 0 auto var(--mz-mobile-stack-gap) !important;
    max-width: none;
    overflow-x: clip;
    min-width: 0;
  }

  body .community-hub-panel--events,
  body .community-hub-panel--events .calendar-events-panel,
  body .calendar-ev-list-wrap,
  body .calendar-ev-list,
  body .mll-log-item.calendar-ev-card {
    min-width: 0;
    max-width: 100%;
  }

  body .calendar-ev-topline .calendar-ev-meta-chips {
    min-width: 0;
    flex: 1 1 100%;
    max-width: 100%;
  }

  body .calendar-ev-topline-right {
    flex: 1 1 auto;
    margin-left: 0;
    max-width: 100%;
    justify-content: flex-start;
  }

  body .calendar-ev-topline-creator-name {
    max-width: min(12rem, 42vw);
  }

  body .calendar-ev-mll-log-row,
  body .calendar-ev-mll-log-actions {
    min-width: 0;
    max-width: 100%;
  }

  body .calendar-ev-view-btn {
    padding: 0.3rem 0.35rem;
    font-size: 0.7rem;
    gap: 0.2em;
  }

  body .community-hub-panel--board .mll-panel,
  body .community-hub-panel--board .mll-log-list-wrap,
  body .community-hub-panel--board .mll-log-list,
  body .community-reply-list,
  body .community-thread,
  body .community-thread-body,
  body .community-reply-item,
  body .community-reply-item-inner,
  body .community-reply-compose {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
    box-sizing: border-box;
  }

  body .community-hub-panel--board .mll-log-list-wrap:has(.community-post-overflow[open]),
  body .community-hub-panel--board .mll-log-list-wrap:has(.share-menu:not([hidden])),
  body .mll-log-item.community-thread:has(.community-post-overflow[open]),
  body .mll-log-item.community-thread:has(.share-menu:not([hidden])),
  body .community-thread-body:has(.share-menu:not([hidden])),
  body .community-reply-item:has(.community-post-overflow[open]),
  body .community-reply-item-inner:has(.community-post-overflow[open]) {
    overflow: visible;
  }

  body .community-post-engage,
  body .community-post-engage-aside,
  body .community-post-overflow {
    overflow: visible;
  }

  /* ケバブは行末（右）に置くため、パネルはトリガー右端基準で左方向に広げる */
  body .community-post-overflow:not(.community-post-overflow--panel-below)
    .community-post-overflow-panel,
  body .community-post-overflow--panel-below .community-post-overflow-panel {
    left: auto;
    right: 0;
    max-width: min(12.5rem, calc(100vw - 1.25rem));
  }

  body .user-profile-mll-pane:has(.community-post-overflow[open]),
  body .user-profile-mll-event:has(.community-post-overflow[open]),
  body .user-profile-mll-event-actions-row:has(.community-post-overflow[open]),
  body #prof-mll-main:has(.community-post-overflow[open]) {
    overflow: visible;
  }

  body .mll-log-item.community-thread {
    padding-left: max(0.55rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.55rem, env(safe-area-inset-right, 0px));
  }

  body .community-post-images,
  body .community-post-image-slot,
  body .community-post-image-btn {
    max-width: 100%;
    min-width: 0;
  }

  body .community-board-lead-main,
  body .community-hub-panel--board .static-panel-lead {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
  }

  body .community-reply-list {
    padding-left: 0.45rem;
    margin-left: 0;
    border-left-width: 2px;
  }

  body .community-reply-list--nested {
    padding-left: min(calc(0.25rem + var(--reply-depth, 1) * 0.35rem), 1rem);
  }

  body .community-reply-textarea {
    font-size: 16px;
  }

  body .community-reply-compose .community-file-picker__trigger {
    font-size: 16px;
  }

  body .community-reply-images-row {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }

  body .community-reply-actions {
    grid-template-columns: 1fr 1fr;
  }

  body .community-reply-actions .community-reply-send-btn {
    min-width: 0;
    max-width: 100%;
  }

  body .community-post-engage {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  body .community-post-engage-primary {
    width: 100%;
    margin-right: 0;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  body .community-post-engage-aside {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  body .community-reply-open-btn {
    flex: 1 1 7.5rem;
    min-width: 0;
    text-align: center;
  }

  body .community-post-manage-btn {
    flex: 0 1 auto;
  }

  body .community-thread .mll-log-title,
  body .community-thread .mll-log-note,
  body .community-reply-item .mll-log-note,
  body .community-post-head {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
    min-width: 0;
  }

  body .community-post-head-text {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body .community-hub-tabs {
    margin-top: 0.35rem;
    margin-bottom: 0.4rem;
  }

  body .search-panel {
    padding: var(--mz-mobile-block-py) var(--mz-mobile-block-pr) var(--mz-mobile-block-py)
      var(--mz-mobile-block-pl);
    margin-bottom: var(--mz-mobile-stack-gap) !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  body #page-videos .videos-page-main .search-panel {
    margin-bottom: 0 !important;
  }

  body .results-panel {
    padding: var(--mz-mobile-block-py) var(--mz-mobile-block-pr) var(--mz-mobile-block-py)
      var(--mz-mobile-block-pl);
    margin-bottom: var(--mz-mobile-stack-gap);
    border-radius: 0;
    border-left: none;
    border-right: none;
  }

  body .mix3-notice {
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-bottom: var(--mz-mobile-stack-gap);
    padding: 0.65rem var(--mz-mobile-block-pr) 0.65rem var(--mz-mobile-block-pl);
  }

  body .mll-lp-container {
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
  }

  body .mll-lp-hero-inner {
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
  }

  body .mll-lp-finale {
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
  }

  body .mll-lp-finale--pattern-a .mll-lp-finale-inner {
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
  }

  body .mll-intro {
    padding: var(--mz-mobile-block-py) var(--mz-mobile-block-pr) var(--mz-mobile-block-py)
      var(--mz-mobile-block-pl);
    margin-bottom: var(--mz-mobile-stack-gap);
  }

  body .mll-lp-pill {
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
  }

  /* TOP「できること」：スマホではピラー画像を約半分の見た目に */
  body .mll-lp-band .mll-lp-pill-icon-wrap {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
  }

  body .youtube-channel-list {
    gap: var(--mz-mobile-stack-gap);
  }

  body .youtube-card {
    padding: var(--mz-mobile-block-py) var(--mz-mobile-block-pr) var(--mz-mobile-block-py)
      var(--mz-mobile-block-pl);
  }

  body .user-profile-panel {
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
    box-sizing: border-box;
  }

  body .mln-feed-grid {
    gap: 0.35rem;
  }

  body .site-mobile-drawer-head {
    padding: 0.3rem var(--mz-mobile-block-pr) 0.06rem var(--mz-mobile-block-pl);
  }

  body .site-mobile-drawer-auth {
    padding: 0 var(--mz-mobile-block-pr) 0.55rem var(--mz-mobile-block-pl);
  }

  body .site-mobile-drawer-section-label {
    padding-left: var(--mz-mobile-block-pl);
    padding-right: var(--mz-mobile-block-pr);
  }

  body .site-mobile-drawer-divider {
    margin-left: var(--mz-mobile-block-pl);
    margin-right: var(--mz-mobile-block-pr);
  }

  body .site-mobile-drawer-nav {
    padding: 0.12rem var(--mz-mobile-block-pr) 0.65rem var(--mz-mobile-block-pl);
  }

  /* フッター3リンク画像は横一列固定・中央寄せ（間隔は詰める） */
  body .footer-banner-row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    gap: 0.12rem;
    overflow-x: hidden;
  }

  body .footer-banner-row .footer-banner {
    margin: 0;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  body .footer-banner a {
    display: inline-flex;
    width: auto;
    align-items: center;
    justify-content: center;
    line-height: 0;
  }

  body .footer-banner img {
    display: block;
    width: auto;
    height: clamp(28px, 7vw, 32px);
    max-width: 32vw;
    object-fit: contain;
  }

  /* Xは横長長方形を固定（広がりすぎ防止） */
  body .footer-banner-x .x-logo-link {
    width: clamp(42px, 11vw, 50px);
    height: clamp(28px, 7vw, 32px);
    border-radius: 5px;
  }

  body .footer-banner-x .x-logo-icon {
    width: 1rem;
    height: 1rem;
  }

  /* 並び順（ラベル＋ボタン）と絞込みを2グループで折り返し */
  body .result-sort-bar-main {
    width: 100%;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.38rem 0.55rem;
  }

  body .result-sort-group {
    flex: 1 1 auto;
    min-width: min(100%, 11.5rem);
    gap: 0.24rem 0.32rem;
  }

  body .result-filter-group {
    flex: 0 1 auto;
    gap: 0.24rem 0.32rem;
  }

  body .result-sort-btn-group {
    gap: 0.22rem;
    flex: 1 1 auto;
    min-width: 0;
  }

  body .result-sort-label {
    font-size: 0.54rem;
    white-space: nowrap;
    flex: 0 0 auto;
  }

  body .sort-btn[data-sort] {
    padding: 0.24rem 0.44rem;
    font-size: 0.66rem;
    line-height: 1.15;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 0;
  }

  body .sort-btn {
    padding: 0.22rem 0.38rem;
    font-size: 0.66rem;
    line-height: 1.15;
    white-space: nowrap;
  }

  /* 各ページの下部ブロックに横余白を少し足す（カード幅は維持） */
  body .pagination,
  body .rights-notice--page-foot,
  body .rights-notice--youtube-foot,
  body .mll-mylist-section {
    padding-left: calc(var(--mz-mobile-block-pl) + 0.24rem);
    padding-right: calc(var(--mz-mobile-block-pr) + 0.24rem);
    box-sizing: border-box;
  }

  body .youtube-results-panel > .rights-notice--youtube-under-sort,
  body #results-panel > .rights-notice--videos-under-sort {
    padding-left: 0;
    padding-right: 0;
  }

}

.mz-event-card-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 1rem;
  overflow-y: auto;
}
.mz-event-card-overlay-inner {
  background: var(--card-bg, #fff);
  border-radius: 12px;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 1.2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  position: relative;
}
.mz-event-card-overlay-close {
  display: block;
  margin-left: auto;
  margin-bottom: 0.5rem;
  background: none;
  border: 1px solid var(--border-color, #ccc);
  border-radius: 6px;
  padding: 0.3rem 0.8rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--text-color, #333);
}
.mz-event-card-overlay-close:hover {
  background: var(--hover-bg, #f0f0f0);
}
.calendar-ev-overlay-card-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* クリエイターページの「無料登録＋パソコンでできること」(2026-08-05 優さん指示) */
.mz-ctools-note--tip {
  margin-top: 6px; padding: 10px 12px; border-radius: 10px;
  background: rgba(30, 79, 214, 0.06); border: 1px solid rgba(30, 79, 214, 0.18);
  line-height: 1.8;
}
.mz-ctools-note--tip i { margin-right: 7px; }

/* 掲示板はカテゴリが6つあるため、大会動画用の3列タブを流用しない。
   スマホでは常に一行の横スクロールにして、ラベル同士の重なりを防ぐ。 */
@media (max-width: 719px) {
  /* コミュニティの4区分は全てを一目で選べる4列にする。 */
  nav.tabs.youtube-tabs.community-hub-tabs.mz-tab-strip-yamap {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  nav.tabs.youtube-tabs.community-hub-tabs.mz-tab-strip-yamap .youtube-tab-btn {
    min-height: 44px;
    padding: 0.55rem 0.12rem;
    font-size: 0.76rem;
  }

  #community-hub-panel-board nav.mz-tab-strip-yamap[aria-label="話題一覧のカテゴリ絞り込み"] {
    display: flex;
    grid-template-columns: none;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.38rem;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.3rem;
  }

  #community-hub-panel-board nav.mz-tab-strip-yamap[aria-label="話題一覧のカテゴリ絞り込み"]::-webkit-scrollbar {
    display: none;
  }

  #community-hub-panel-board nav.mz-tab-strip-yamap[aria-label="話題一覧のカテゴリ絞り込み"] .youtube-tab-btn {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0.55rem 0.78rem;
    white-space: nowrap;
  }
}

/* イベント一覧: 種別・年を1行で見せ、登録を唯一の主操作にする。 */
@media (max-width: 719px) {
  .calendar-events-head-band nav.tabs.youtube-tabs.mz-tab-strip-yamap[aria-label="イベント種別の絞り込み"] {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    overflow: visible;
    padding: 4px;
  }

  .calendar-events-head-band nav.tabs.youtube-tabs.mz-tab-strip-yamap[aria-label="イベント種別の絞り込み"] .youtube-tab-btn {
    min-height: 44px;
    padding: 0.5rem 0.08rem;
    font-size: 0.72rem;
  }

  .calendar-events-head-band .calendar-ev-register-action-row {
    padding: 0.5rem 0 0.42rem;
  }

  .calendar-events-head-band .calendar-ev-open-register-btn {
    width: 100%;
    min-height: 52px;
    padding: 0.7rem 1rem;
    border: 0;
    border-radius: 14px;
    background: var(--accent, #1e4fd6);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(30, 79, 214, 0.24);
  }

  .calendar-events-head-band .calendar-ev-open-register-btn:hover,
  .calendar-events-head-band .calendar-ev-open-register-btn[aria-expanded="true"] {
    border: 0;
    background: #173faa;
    color: #fff;
  }

  .calendar-events-head-band .calendar-ev-view-switcher {
    margin-top: 0.1rem;
  }

  .calendar-ev-controls-row {
    flex-wrap: nowrap;
    gap: 0.42rem;
    margin: 0.1rem 0 0.35rem;
  }

  .calendar-ev-controls-row .calendar-ev-sort-bar {
    flex: 1 1 0;
    min-width: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 2px;
  }

  .calendar-ev-controls-row .calendar-ev-sort-bar::-webkit-scrollbar {
    display: none;
  }

  .calendar-ev-controls-row .calendar-ev-sort-intro {
    display: none;
  }

  .calendar-ev-controls-row .calendar-ev-filter-intro {
    margin-left: 0;
  }

  .calendar-ev-controls-row .calendar-ev-sort-btn,
  .calendar-ev-controls-row .calendar-ev-upcoming-filter {
    min-height: 40px;
  }

  .calendar-ev-controls-row .calendar-ev-sort-btn {
    flex: 0 0 auto;
    padding: 0.36rem 0.58rem;
    font-size: 0.72rem;
    white-space: nowrap;
  }

  .calendar-ev-controls-row .calendar-ev-upcoming-filter {
    flex: 0 0 auto;
    padding: 0 0.42rem;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--panel, #fff);
    font-size: 0.72rem;
    white-space: nowrap;
  }

  #calendar-ev-year-reel.calendar-ev-year-reel {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.38rem;
    margin: 0.25rem 0 0.6rem;
    padding: 0.3rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  #calendar-ev-year-reel.calendar-ev-year-reel[hidden] {
    display: none !important;
  }

  #calendar-ev-year-reel.calendar-ev-year-reel::-webkit-scrollbar {
    display: none;
  }

  #calendar-ev-year-reel.calendar-ev-year-reel .youtube-tab-btn {
    flex: 0 0 auto;
    min-width: 5.7rem;
    min-height: 44px;
    padding: 0.48rem 0.7rem;
  }
}

/* 写真がないモーメントは、メディア用の高さを確保しない。 */
#community-hub-panel-moments .mlm-feed-card:not(.mlm-feed-card--with-photo) {
  height: auto;
  min-height: 0;
}

#community-hub-panel-moments .mlm-feed-card:not(.mlm-feed-card--with-photo) .mln-feed-card-body {
  flex: 0 0 auto;
}
