:root {
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-soft: #f2f4f7;
  --text: #1f2328;
  --muted: #6f7782;
  --line: #e5e8ec;
  --accent: #0096fa;
  --accent-soft: #41b3ff;
  --sun: #0096fa;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { background: var(--bg); color: var(--text); }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  letter-spacing: 0;
  padding-left: 232px;
}

body,
button,
input,
textarea {
  -webkit-text-size-adjust: 100%;
}

a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
h1, h2, h3, p, a, span, button { overflow-wrap: anywhere; }

.age-line {
  padding: 7px 18px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.site-header {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
  width: 232px;
  height: 100svh;
  margin: 0;
  padding: 22px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 0;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(18px);
  overflow-y: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  align-self: stretch;
  gap: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--accent);
  line-height: 1.4;
}

.brand-mark {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(0, 150, 250, .1);
}

.site-search {
  flex: 0 0 auto;
  width: 100%;
  max-width: none;
}

.site-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #f2f4f7;
  color: var(--text);
  font: inherit;
  padding: 0 18px;
  outline: 0;
}

.site-search input:focus {
  border-color: var(--accent-soft);
  background: #fff;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: 100%;
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
}

.nav-icon svg {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
  background: var(--panel-soft);
}

.drawer-brand {
  display: none !important;
}

.pixiv-home {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 8px;
}

.pixiv-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.pixiv-title-row h1 {
  margin: 0;
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1;
}

.pixiv-title-row p {
  max-width: 720px;
  color: var(--muted);
}

.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 20px 0 4px;
}

.category-tabs a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.category-tabs a.active,
.category-tabs a:hover {
  background: #e8f4ff;
  color: var(--accent);
}

.menu-button { display: none; }

.site-header > .nav-backdrop {
  display: none !important;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}

.hero,
.profile-layout {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(360px, 1.18fr);
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  width: min(var(--max), calc(100% - 32px));
  min-height: calc(100svh - 96px);
  margin: 0 auto;
  padding: 44px 0 70px;
}

.feed-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: end;
  gap: clamp(24px, 5vw, 64px);
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 28px;
}

.feed-hero h1 {
  margin: 0;
  font-size: clamp(48px, 9vw, 124px);
  line-height: .9;
}

.feed-hero p {
  max-width: 720px;
  color: var(--muted);
}

.feed-stats {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .035);
}

.feed-stats span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.feed-stats span:last-child { border-bottom: 0; }

.feed-stats strong {
  color: var(--text);
  font-size: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 8vw, 112px);
  line-height: .92;
}

.page-title h1,
.profile-layout h1 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.hero-copy p,
.page-title p,
.profile-layout p {
  max-width: 590px;
  color: var(--muted);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.hero-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
.chip,
.menu-button,
.store-link {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
}

.sold-out-label {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 10px 26px rgba(0, 150, 250, .18);
}

.ghost:hover,
.chip:hover,
.store-link:hover {
  border-color: var(--accent-soft);
  box-shadow: 0 10px 28px rgba(0, 150, 250, .1);
}

.hero-visual img,
.profile-layout img {
  aspect-ratio: 4 / 5;
  height: min(76svh, 760px);
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 60px rgba(255, 79, 154, .16);
}

.section,
.page-title,
.note-list,
.policy,
.link-board {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.section.tight { padding-top: 20px; }

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section h2,
.section-head h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
}

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

.feed-section { padding-top: 28px; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px 18px;
  align-items: start;
}

.post-card {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: transform .18s ease, border-color .18s ease;
}

.post-card:hover {
  transform: translateY(-3px);
}

.empty-message {
  margin: 16px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.post-image {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.post-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 8px;
  background: #e8eaee;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.post-meta {
  display: grid;
  gap: 4px;
  padding: 8px 0 0;
}

.post-meta time {
  color: var(--muted);
  font-size: 12px;
}

.post-meta h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
}

.post-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.post-author {
  color: var(--muted);
  font-size: 12px;
}

.post-stats {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.post-detail {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 76px;
}

.post-detail h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1.15;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 13px;
}

.detail-meta span,
.detail-meta time {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--panel-soft);
}

.detail-tags {
  margin-top: 16px;
}

.detail-images {
  display: grid;
  gap: 22px;
  margin-top: 28px;
}

.detail-images img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 88svh;
  object-fit: contain;
  border-radius: 10px;
  background: #f2f4f7;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08);
}

.inline-ad {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.inline-ad .eyebrow {
  margin: 0;
}

.inline-ad a {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  background: #e8f4ff;
}

.inline-ad a:hover {
  background: #dff0ff;
}

.inline-ad strong {
  color: var(--accent);
}

.inline-ad span {
  color: var(--muted);
  font-size: 13px;
}

.detail-body,
.affiliate-box {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.detail-body h2,
.affiliate-box h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.detail-body p {
  margin: 0;
  color: var(--text);
  line-height: 1.9;
}

.affiliate-box {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.affiliate-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.affiliate-link {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.affiliate-link:hover {
  border-color: var(--accent-soft);
  background: #e8f4ff;
}

.affiliate-link strong {
  color: var(--accent);
}

.affiliate-link span {
  color: var(--muted);
  font-size: 13px;
}

.text-link {
  color: var(--accent-soft);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.work-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 20px rgba(31, 35, 40, .06);
  transition: transform .18s ease, box-shadow .18s ease;
}

.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 56px rgba(86, 62, 78, .13);
}

.work-image img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.work-body { padding: 18px; }

.work-body h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.work-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.tag-row span,
.chip {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 22px;
}

.tag-select {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 8px 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.tag-select select {
  min-width: 150px;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  padding: 0 34px 0 12px;
  outline: 0;
}

.tag-select select:focus {
  box-shadow: 0 0 0 3px rgba(0, 150, 250, .14);
}

.tag-filter {
  position: relative;
  width: min(100%, 360px);
}

.tag-filter-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  min-height: 46px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tag-filter-toggle strong {
  color: var(--accent);
  font-size: 12px;
}

.tag-filter-panel {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: min(360px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(31, 35, 40, .14);
}

.tag-filter-panel[hidden] {
  display: none;
}

.tag-filter-panel label {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tag-filter-panel label.is-selected {
  border-color: var(--accent);
  background: #e8f4ff;
  color: var(--accent);
}

.tag-filter-panel input {
  accent-color: var(--accent);
}

.tag-filter-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 2px;
}

.tag-filter-apply,
.tag-filter-clear {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.tag-filter-apply {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tag-filter-clear {
  background: #fff;
  color: var(--accent);
}

.chip.active {
  border-color: var(--accent);
  color: var(--accent);
  background: #e8f4ff;
}

.notice-band {
  display: grid;
  gap: 4px;
  width: min(var(--max), calc(100% - 32px));
  margin: 20px auto 90px;
  padding: 22px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 13px;
  border-radius: 8px;
}

.notice-band p { margin: 0; }

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 86px;
}

.sample-grid img {
  border: 1px solid var(--line);
  border-radius: 8px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(86, 62, 78, .08);
}

.coming-soon {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 86px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.coming-soon h2 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.2;
}

.coming-soon p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

.note-list {
  display: grid;
  gap: 16px;
}

.note-item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.note-item time,
.note-item p,
.policy p,
.profile-list dd { color: var(--muted); }

.note-item h2,
.policy h2 {
  margin: 4px 0 8px;
  font-size: 22px;
}

.profile-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.profile-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.profile-list dt { font-weight: 800; }
.profile-list dd { margin: 0; }

.link-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 20px;
}

.store-link {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 18px 20px;
  font-weight: 800;
  background: var(--panel);
}

.policy {
  max-width: 820px;
}

.policy h1 {
  margin: 0 0 24px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.15;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.site-footer p { margin: 0; }
.site-footer a { color: var(--text); }
.site-footer span { margin-left: 12px; }

.page-transition-cover {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  background: var(--bg);
  pointer-events: none;
}

.page-transition-cover.show {
  display: block;
}

.is-lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .72);
}

.lightbox-panel {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(960px, 100%);
  max-height: calc(100svh - 48px);
  padding: 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 22px 80px rgba(0, 0, 0, .32);
}

.lightbox-image {
  width: 100%;
  max-height: calc(100svh - 230px);
  object-fit: contain;
  border-radius: 8px;
  background: #f2f4f7;
  cursor: pointer;
}

.lightbox-close {
  position: absolute;
  right: 10px;
  top: 10px;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(31, 35, 40, .78);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
}

.lightbox-info {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.lightbox-info h2,
.lightbox-info p {
  margin: 0;
}

.lightbox-info h2 {
  font-size: 18px;
}

.lightbox-info p,
.lightbox-count {
  color: var(--muted);
  font-size: 13px;
}

.lightbox-count {
  flex: 0 0 auto;
  font-weight: 800;
}

.lightbox-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.lightbox-actions button {
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.lightbox-actions button:disabled {
  opacity: .45;
  cursor: default;
}

@media (max-width: 880px) {
  body {
    padding-left: 0;
  }

  body.nav-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    left: auto;
    top: 0;
    bottom: auto;
    z-index: 1000;
    width: 100%;
    height: auto;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    gap: 10px;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    overflow: visible;
    overflow-y: visible;
  }

  .site-search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .menu-button {
    position: relative;
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--text);
    cursor: pointer;
  }

  body.nav-open .menu-button {
    position: fixed;
    left: 12px;
    top: 12px;
    z-index: 1003;
  }

  .menu-button span {
    position: absolute;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .18s ease, opacity .18s ease;
  }

  .menu-button span:nth-child(1) { transform: translateY(-6px); }
  .menu-button span:nth-child(3) { transform: translateY(6px); }

  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

  .site-header > .nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none !important;
    width: auto;
    height: auto;
    padding: 0;
    border: 0;
    background: rgba(15, 23, 42, .34);
  }

  .site-header > .nav-backdrop.open {
    display: block !important;
  }

  .site-nav {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1001;
    display: flex;
    width: min(78vw, 280px);
    height: 100dvh;
    max-height: 100dvh;
    box-sizing: border-box;
    padding: 74px 16px 18px;
    border-right: 1px solid var(--line);
    background: rgba(255, 255, 255, .98);
    box-shadow: 18px 0 44px rgba(31, 35, 40, .14);
    flex-direction: column;
    align-items: stretch;
    visibility: hidden;
    overflow-y: auto;
  }

  .site-nav.open { visibility: visible; }

  .site-nav .drawer-brand {
    position: absolute;
    left: 62px;
    top: 12px;
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    width: calc(100% - 74px);
    min-height: 42px;
    padding: 0;
    color: var(--accent);
    background: transparent;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    line-height: 1.4;
  }

  .site-nav .drawer-brand:hover,
  .site-nav .drawer-brand.active {
    background: transparent;
    color: var(--accent);
  }

  .site-nav a {
    min-height: 44px;
    padding: 11px 12px;
  }

  .hero,
  .profile-layout {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 34px;
  }

  .feed-hero {
    grid-template-columns: 1fr;
    width: min(var(--max), calc(100% - 24px));
    padding-top: 38px;
    gap: 22px;
  }

  .post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .hero-visual { order: -1; }

  .hero-visual img,
  .profile-layout img {
    height: auto;
    max-height: none;
  }

  .gallery-grid,
  .sample-grid,
  .link-board {
    grid-template-columns: 1fr;
  }

  .section,
  .page-title,
  .note-list,
  .policy,
  .link-board,
  .sample-grid,
  .notice-band {
    width: min(var(--max), calc(100% - 24px));
  }
}

@media (max-width: 560px) {
  .age-line {
    padding: 7px 12px;
    font-size: 11px;
    line-height: 1.45;
  }

  .brand {
    max-width: calc(100% - 92px);
    font-size: 14px;
  }

  .site-search {
    display: none;
  }

  .pixiv-home {
    width: min(var(--max), calc(100% - 24px));
    padding-top: 22px;
  }

  .pixiv-title-row {
    display: grid;
    gap: 12px;
  }

  .pixiv-title-row > div {
    display: none;
  }

  .pixiv-title-row > .button {
    display: none;
  }

  .pixiv-title-row h1 {
    display: none;
  }

  .pixiv-title-row > div > .eyebrow {
    margin-bottom: 0;
  }

  .pixiv-title-row p {
    max-width: 100%;
    margin-top: 10px;
    font-size: 13px;
    line-height: 1.7;
  }

  .pixiv-title-row .button {
    justify-self: start;
    min-height: 38px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .feed-hero {
    padding: 30px 0 14px;
  }

  .feed-hero h1,
  .hero h1 {
    font-size: clamp(40px, 15vw, 62px);
  }

  .page-title h1,
  .profile-layout h1 {
    font-size: clamp(28px, 9vw, 40px);
    line-height: 1.18;
  }

  .page-title {
    padding-top: 26px;
    padding-bottom: 18px;
  }

  .page-title .eyebrow {
    margin-bottom: 6px;
  }

  .feed-hero p,
  .hero-copy p,
  .page-title p,
  .profile-layout p {
    font-size: 14px;
    line-height: 1.75;
  }

  .page-title p {
    margin-top: 8px;
  }

  .section.tight {
    padding-top: 6px;
  }

  .feed-stats {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .hero-actions,
  .card-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .button {
    min-height: 46px;
    padding: 10px 14px;
  }

  .section-head {
    align-items: start;
    gap: 12px;
    margin-bottom: 18px;
  }

  .section h2,
  .section-head h2 {
    font-size: 28px;
  }

  .gallery-grid { gap: 16px; }
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .post-meta {
    gap: 5px;
    padding: 10px;
  }

  .post-meta h2 {
    font-size: 13px;
  }

  .post-meta p {
    display: none;
  }

  .post-meta .post-author,
  .post-meta .post-stats {
    display: flex;
  }

  .post-meta .tag-row {
    margin-top: 4px;
    gap: 5px;
  }

  .post-meta .tag-row span {
    padding: 3px 7px;
    font-size: 10px;
  }

  .post-detail {
    width: min(100% - 24px, 860px);
    padding: 34px 0 56px;
  }

  .detail-images {
    gap: 14px;
    margin-top: 22px;
  }

  .inline-ad {
    padding: 14px;
  }

  .affiliate-box {
    padding: 18px;
  }

  .lightbox {
    padding: 10px;
  }

  .lightbox-panel {
    max-height: calc(100svh - 20px);
    padding: 12px;
    gap: 10px;
    border-radius: 10px;
  }

  .lightbox-image {
    max-height: calc(100svh - 210px);
  }

  .lightbox-info {
    display: grid;
    gap: 6px;
  }

  .lightbox-info h2 {
    font-size: 16px;
  }

  .lightbox-actions button {
    flex: 1;
  }

  .work-body {
    padding: 16px;
  }

  .toolbar {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
  }

  .tag-select {
    width: 100%;
    justify-content: space-between;
  }

  .tag-select select {
    min-width: 0;
    flex: 1;
  }

  .tag-filter {
    width: 100%;
  }

  .tag-filter-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 82px;
    z-index: 1200;
    grid-template-columns: 1fr;
    width: auto;
    max-height: calc(100dvh - 104px);
    overflow-y: auto;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(31, 35, 40, .2);
  }

  .tag-filter-panel label {
    min-height: 48px;
    padding: 10px 14px;
    font-size: 15px;
  }

  .tag-filter-panel input {
    width: 18px;
    height: 18px;
  }

  .tag-filter-actions {
    grid-template-columns: 1fr;
  }

  .chip {
    flex: 0 0 auto;
    min-height: 36px;
  }

  .section,
  .note-list,
  .policy,
  .link-board {
    padding: 34px 0;
  }

  .page-title {
    padding: 26px 0 18px;
  }
  .profile-list div { grid-template-columns: 1fr; gap: 4px; }
  .site-footer { flex-direction: column; }
  .button { flex: 1 1 auto; }
}

@media (max-width: 380px) {
  .pixiv-title-row h1 {
    font-size: 28px;
  }

  .post-grid {
    gap: 10px;
  }

  .post-meta time,
  .tag-row span,
  .chip {
    font-size: 10px;
  }
}

.palette-dark-pink {
  --bg: #07070a;
  --panel: #141418;
  --panel-soft: #202026;
  --text: #f5f3f7;
  --muted: #a9a3ae;
  --line: #2b2931;
  --accent: #ff4f9a;
  --accent-soft: #ff9ac5;
  --sun: #ff4f9a;
  background:
    radial-gradient(circle at 72% 8%, rgba(255, 79, 154, .22), transparent 28%),
    linear-gradient(180deg, #07070a 0%, #101014 52%, #08080a 100%);
}

.palette-light-pop {
  --bg: #fff8fc;
  --panel: #ffffff;
  --panel-soft: #fff0f7;
  --text: #25212a;
  --muted: #746c78;
  --line: #efd9e7;
  --accent: #ff4f9a;
  --accent-soft: #15c9d7;
  --sun: #ffd85c;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 216, 92, .45), transparent 24%),
    radial-gradient(circle at 92% 3%, rgba(21, 201, 215, .28), transparent 26%),
    linear-gradient(180deg, #fff8fc 0%, #ffffff 48%, #fff4fa 100%);
}

.palette-luxury {
  --bg: #101014;
  --panel: #1b1b21;
  --panel-soft: #25242a;
  --text: #f4f1f5;
  --muted: #aaa1ad;
  --line: #34313a;
  --accent: #ff4f9a;
  --accent-soft: #d8b75a;
  --sun: #d8b75a;
  background:
    radial-gradient(circle at 82% 6%, rgba(216, 183, 90, .2), transparent 28%),
    radial-gradient(circle at 12% 12%, rgba(255, 79, 154, .15), transparent 25%),
    linear-gradient(180deg, #101014 0%, #17171c 55%, #0d0d10 100%);
}

.palette-milky {
  --bg: #fff6f3;
  --panel: #ffffff;
  --panel-soft: #ffe9e7;
  --text: #30262a;
  --muted: #7d7074;
  --line: #f0d8d5;
  --accent: #ff6b8a;
  --accent-soft: #f5b84b;
  --sun: #f9d77c;
  background:
    radial-gradient(circle at 16% 6%, rgba(255, 205, 191, .58), transparent 26%),
    radial-gradient(circle at 88% 10%, rgba(255, 216, 92, .32), transparent 23%),
    linear-gradient(180deg, #fff6f3 0%, #ffffff 48%, #fff1ee 100%);
}

.palette-dark-pink .site-header,
.palette-luxury .site-header {
  background: rgba(12, 12, 15, .84);
}

.palette-light-pop .site-header,
.palette-milky .site-header {
  background: rgba(255, 250, 252, .86);
}

.palette-dark-pink .age-line,
.palette-luxury .age-line,
.palette-dark-pink .notice-band,
.palette-luxury .notice-band {
  background: rgba(15, 15, 18, .92);
  color: var(--muted);
}

.palette-light-pop .age-line,
.palette-milky .age-line,
.palette-light-pop .notice-band,
.palette-milky .notice-band {
  background: rgba(255, 255, 255, .9);
  color: var(--muted);
}

.palette-dark-pink .tag-row span,
.palette-dark-pink .chip,
.palette-luxury .tag-row span,
.palette-luxury .chip {
  background: rgba(255, 255, 255, .04);
  color: var(--muted);
}

.palette-light-pop .tag-row span,
.palette-light-pop .chip,
.palette-milky .tag-row span,
.palette-milky .chip {
  background: var(--panel-soft);
  color: var(--muted);
}

.palette-dark-pink .hero-visual img,
.palette-luxury .hero-visual img {
  box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.palette-swatch-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 0;
}

.palette-swatch-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.palette-swatch-nav a.active {
  border-color: var(--accent);
  color: var(--text);
}
