body.theme-studio {
  --bg: #0e0e12;
  --surface: #17171f;
  --surface-2: #1e1e28;
  --surface-strong: #0a0a10;
  --border: #2a2535;
  --border-strong: #3b3550;
  --text: #e8e6f0;
  --text-muted: #9b96b0;
  --accent: #a98fff;
  --accent-soft: rgba(124, 90, 240, 0.16);
  --accent-line: rgba(124, 90, 240, 0.38);
  --chord: #f0a050;
  --chord-soft: rgba(240, 160, 80, 0.14);
  --string: #9b96b0;
  --fret: #322c44;
  --finger: #7c5af0;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --shadow-lift: 0 14px 40px rgba(0, 0, 0, 0.6);
  --studio-link: #a98fff;
  --studio-fill: #7c5af0;
  --studio-teal: #3dd6ac;
  --learn-warm: #f0a050;
  --learn-teal: #3dd6ac;
  --crafted-label: #f0a050;
  --theory-label: #3dd6ac;
  --blog-header-h: clamp(3.25rem, 10vw, 3.75rem);

  --icon-list-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15V6'/%3E%3Cpath d='M18.5 18a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z'/%3E%3Cpath d='M12 12H3'/%3E%3Cpath d='M16 6H3'/%3E%3Cpath d='M12 18H3'/%3E%3C/svg%3E");
  --icon-music: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a98fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V5l12-2v13'/%3E%3Ccircle cx='6' cy='18' r='3'/%3E%3Ccircle cx='18' cy='16' r='3'/%3E%3C/svg%3E");

  --font-ui: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  --font-brand: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.02em;
  color-scheme: dark;
}

body.theme-studio ::selection {
  background: rgba(124, 90, 240, 0.35);
  color: #fff;
}

body.theme-studio *::-webkit-scrollbar-thumb:hover {
  background-color: #4a4560;
}

body.theme-studio,
body.theme-studio button,
body.theme-studio input,
body.theme-studio select,
body.theme-studio textarea,
body.theme-studio .dock-pill,
body.theme-studio .badge,
body.theme-studio .key-select,
body.theme-studio .header__title,
body.theme-studio .blog-pagehead__title,
body.theme-studio .detail__name,
body.theme-studio h1,
body.theme-studio h2,
body.theme-studio h3 {
  font-family: var(--font-ui);
}

body.theme-studio {
  padding-top: var(--blog-header-h);
}


.blog-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 330;
  height: var(--blog-header-h);
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
}

.blog-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1100px;
  height: 100%;
  margin: 0 auto;
  padding: 0 clamp(0.85rem, 3vw, 1.5rem);
}

.blog-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.blog-header__logo {
  display: block;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.55rem;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 18px rgba(124, 90, 240, 0.28);
}

.blog-header__name {
  display: block;
  height: 1.35rem;
  width: auto;
  max-width: min(10.5rem, 42vw);
  object-fit: contain;
  object-position: left center;
  flex-shrink: 1;

  filter: drop-shadow(0 0 6px rgba(124, 90, 240, 0.25));
}

.blog-header__menu-slot {
  display: flex;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}


.blog-pagehead {
  max-width: 1100px;
  margin: 0 auto;
  padding: clamp(1.25rem, 4vw, 2rem) clamp(0.85rem, 3vw, 1.5rem) clamp(0.85rem, 3vw, 1.25rem);
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.blog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.blog-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: var(--studio-link);
}

.blog-breadcrumb__sep {
  opacity: 0.55;
}

.blog-pagehead__title {
  margin: 0;
  font-size: clamp(1.45rem, 5vw, 1.85rem);
  color: var(--text);
}

body.theme-studio .header.header--compact,
body.theme-studio .app--guide .header {
  display: none;
}

body.theme-studio .theory-subnav {
  max-width: 1100px;
  margin: 0 auto;
  padding-left: clamp(0.85rem, 3vw, 1.5rem);
  padding-right: clamp(0.85rem, 3vw, 1.5rem);
}


body.theme-studio .site-nav {
  z-index: 340;
}

body.theme-studio .site-nav__toggle {
  position: static;
  top: auto;
  right: auto;
  transform: none;
  z-index: auto;
  width: auto;
  min-width: 2.75rem;
  height: 2.5rem;
  padding: 0.3rem 0.55rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: none;
  color: var(--studio-link);
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  cursor: pointer;
}

body.theme-studio .site-nav__toggle:hover,
body.theme-studio .site-nav__toggle:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-line);
  color: var(--studio-link);
  outline: none;
}

body.theme-studio .site-nav__toggle::after {
  content: "MENU";
  line-height: 1;
}

body.theme-studio .site-nav__bars {
  width: 16px;
  gap: 3px;
}

body.theme-studio .site-nav__bars span {
  background: currentColor;
  height: 1.5px;
}

body.theme-studio .site-nav__toggle[aria-expanded="true"] .site-nav__bars span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

body.theme-studio .site-nav__toggle[aria-expanded="true"] .site-nav__bars span:nth-child(3) {
  transform: translateY(-4.5px) rotate(-45deg);
}

body.theme-studio .site-nav__backdrop {
  z-index: 335;
  background: rgba(0, 0, 0, 0.6);
}

body.theme-studio .site-nav__panel {
  z-index: 345;
  top: var(--blog-header-h);
  height: calc(100% - var(--blog-header-h));
  padding-top: 1.25rem;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.6);
}

body.theme-studio .site-nav__title {
  font-size: 0.95rem;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.65rem;
  margin-bottom: 0.85rem;
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--text);
}

.blog-nav-widgets {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-nav-widgets__heading {
  margin: 0 0 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--studio-link);
  letter-spacing: 0.04em;
}

.blog-nav-widgets__list {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.blog-nav-widgets__list a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
}

.blog-nav-widgets__list a:hover {
  color: var(--studio-link);
}

.blog-nav-widgets__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

body.theme-studio .blog-widgets {
  order: 0;
}


.blog-widgets {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.blog-widget {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.blog-widget__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
}

.blog-widget--invite .blog-widget__title {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.blog-widget__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--studio-link);
}

.blog-widget__title i {
  margin-right: 0.35rem;
  color: var(--studio-link);
  font-size: 0.82rem;
}

.blog-widget__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-widget__list li + li {
  margin-top: 0.25rem;
}

.blog-widget__list a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.5;
}

.blog-widget__list a:hover {
  color: var(--studio-link);
}

.blog-widget__tags,
.blog-tag {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface-2);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
}

.blog-tag:hover {
  border-color: var(--studio-link);
  color: var(--studio-link);
}

.blog-widget__body {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.blog-widget__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.25rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: var(--studio-fill);
  color: #fff !important;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.blog-widget__cta:hover {
  filter: brightness(1.08);
}


body.theme-studio .main {
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 720px) {
  body.theme-studio .main {
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    gap: 0;
    padding: 0 clamp(0.85rem, 3vw, 1.5rem);
  }
}

body.theme-studio .sidebar {
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow);
  margin: clamp(0.85rem, 3vw, 1.25rem);
}

@media (min-width: 720px) {
  body.theme-studio .sidebar {
    margin: clamp(1rem, 3vw, 1.5rem) 0;
    align-self: start;
    position: sticky;
    top: calc(var(--blog-header-h) + 0.75rem);
  }
}

body.theme-studio .sidebar__title {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--text);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

body.theme-studio .sidebar__title::before {
  content: "";
  flex: none;
  width: 1rem;
  height: 1rem;
  background-color: var(--studio-link);
  -webkit-mask: var(--icon-list-music) center / contain no-repeat;
  mask: var(--icon-list-music) center / contain no-repeat;
}

body.theme-studio .sidebar__filter-label {
  font-size: 0.72rem;
  color: var(--studio-link);
}

body.theme-studio .sidebar__filter-select {
  border-radius: 4px;
  background: var(--surface-2);
}

body.theme-studio .seq-group {
  text-transform: none;
  letter-spacing: 0.04em;
  color: var(--studio-link);
  font-size: 0.75rem;
  font-weight: 700;
  border-left: 3px solid var(--studio-link);
  padding-left: 0.5rem;
}

body.theme-studio .seq-item {
  display: grid;
  grid-template-columns: 1.75rem minmax(0, 1fr);
  gap: 0.55rem;
  align-items: center;
  padding: 0.7rem 0.5rem;
  border: none;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
}

body.theme-studio .seq-item::before {
  content: "";
  position: static;
  inset: auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 4px;
  background-color: var(--surface-2);
  background-image: var(--icon-music);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.85rem;
  border: 1px solid var(--border);
  transform: none;
  opacity: 0.45;
}

body.theme-studio .seq-item:hover {
  background: var(--surface-2);
}

body.theme-studio .seq-item.is-active {
  background: var(--accent-soft);
  border-bottom-color: var(--accent-line);
}

body.theme-studio .seq-item.is-active::before {
  transform: none;
  opacity: 1;
  background-color: rgba(124, 90, 240, 0.14);
  border-color: var(--accent-line);
}

body.theme-studio .seq-item__body {
  min-width: 0;
}

body.theme-studio .detail {
  background: var(--surface);
  border-left: 1px solid var(--border);
}

@media (max-width: 719px) {
  body.theme-studio .detail {
    border-left: none;
    border-top: 1px solid var(--border);
  }
}

body.theme-studio .detail__name {
  font-size: clamp(1.35rem, 4.5vw, 1.75rem);
}

body.theme-studio .detail__play-all {
  border-radius: 4px;
  background: var(--studio-fill);
  border-color: var(--studio-fill);
  color: #fff;
}

body.theme-studio .detail__meta-label {
  color: var(--studio-link);
  text-transform: none;
}

body.theme-studio .badge {
  border-radius: 3px;
}


body.theme-studio .header__logo {
  border-radius: 0.55rem;
  border: 1px solid var(--accent-line);
  background:
    url("/static/brand/logo.png") center / cover no-repeat,
    #0e0e12;
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 18px rgba(124, 90, 240, 0.28);
}

body.theme-studio .site-footer::before {
  display: none;
}

body.theme-studio .site-footer {
  margin-top: 2rem;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}

body.theme-studio .site-footer__brand {
  display: block;
  margin: 0 auto;
  height: 1.25rem;
  width: auto;
  max-width: 9.5rem;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(124, 90, 240, 0.22));
}

body.theme-studio .site-footer__nav a {
  color: var(--text);
  font-weight: 500;
}

body.theme-studio .site-footer__nav a:hover {
  color: var(--studio-link);
}

body.theme-studio .site-footer__secondary {
  border-top: 1px solid var(--border);
}

body.theme-studio .site-footer__aux a,
body.theme-studio .site-footer__legal a {
  color: var(--text-muted);
}

body.theme-studio .site-footer__aux a:hover,
body.theme-studio .site-footer__legal a:hover {
  color: var(--studio-link);
}

body.theme-studio .site-footer__inner::after {
  content: "© Copyright " attr(data-year) " ChordLab.";
  display: block;
  margin-top: 1rem;
  font-size: 0.68rem;
  color: var(--text-muted);
}


body[data-page="home"] {
  --dock-height: 0px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

body[data-page="home"] .bottom-dock {
  display: none !important;
}

body.theme-studio .bottom-dock {
  background: var(--surface) !important;
  border-top: 1px solid var(--border) !important;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.5) !important;
}

@media (min-width: 768px) {
  body.theme-studio .bottom-dock {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  body.theme-studio .bottom-dock__nav {
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    background: var(--surface) !important;
    box-shadow: var(--shadow) !important;
  }
}

body.theme-studio .bottom-dock__nav-link,
body.theme-studio .bottom-dock__settings-btn {
  color: var(--text-muted);
  font-size: 0.58rem;
  letter-spacing: 0.02em;
}

@media (min-width: 768px) {
  body.theme-studio {
    --dock-nav-height: 3.25rem;
    --dock-item-slot: 5.75rem;
  }

  body.theme-studio .bottom-dock__nav-link,
  body.theme-studio .bottom-dock__settings-btn {
    font-size: 0.78rem;
    letter-spacing: 0;
  }
}

body.theme-studio .bottom-dock__nav-link.is-active,
body.theme-studio .bottom-dock__nav-link.is-open,
body.theme-studio .bottom-dock__settings-btn.is-active,
body.theme-studio .bottom-dock__settings-btn.is-open {
  color: var(--studio-link);
}

body.theme-studio .bottom-dock__nav-link.is-active .bottom-dock__nav-icon {
  color: var(--studio-link);
}

body.theme-studio .bottom-dock__nav-icon svg {
  stroke-width: 1.75;
}

body.theme-studio .back-to-top {
  bottom: calc(var(--dock-height) + 0.65rem + env(safe-area-inset-bottom, 0px));
  border-color: var(--border);
  background: rgba(23, 23, 31, 0.92);
  color: var(--studio-link);
  box-shadow: var(--shadow);
}

body[data-page="home"] .back-to-top {
  bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
}


body.theme-studio .theory-subnav__link {
  border-radius: 4px;
}

body.theme-studio .legal-page {
  max-width: 720px;
}

body.theme-studio .legal-doc,
body.theme-studio .tl-panel {
  border-radius: 6px;
  box-shadow: var(--shadow);
}

body.theme-studio a {
  color: var(--studio-link);
}

body.theme-studio .key-select,
body.theme-studio input,
body.theme-studio textarea,
body.theme-studio select {
  border-radius: 4px;
}
