:root {
  --bg: #fff9fc;
  --bg-soft: #fff0f6;
  --panel: #ffffff;
  --ink: #3f3f46;
  --muted: #706873;
  --accent: #ff8db1;
  --accent-strong: #ff6f9f;
  --accent-deep: #d94d7f;
  --mint: #7dd3b0;
  --blue: #84b8f5;
  --line: #ffd1e0;
  --shadow: 0 16px 42px rgba(129, 91, 111, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, "Noto Sans JP", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.18;
}

.site-background {
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 390px;
  overflow: hidden;
  background: #dff3fb;
}

body[data-page="home"] .site-background {
  height: 650px;
}

.site-background::after {
  position: absolute;
  inset: 0;
  background: rgba(255, 249, 252, 0.38);
  content: "";
}

.site-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 24%;
}

body[data-page="home"] .site-background video {
  object-position: center center;
}

#site-header,
main,
#site-footer {
  position: relative;
  z-index: 1;
}

#site-header {
  z-index: 100;
}

.site-header {
  position: sticky;
  top: 12px;
  z-index: 50;
  display: flex;
  width: min(1380px, calc(100% - 32px));
  min-height: 60px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 12px auto 0;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, backdrop-filter 180ms ease;
}

.site-header:hover,
.site-header:focus-within,
.site-header.is-open {
  border-color: rgba(255, 209, 224, 0.9);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
  backdrop-filter: none;
}

.brand,
.header-panel,
.nav-links,
.header-tools,
.language-switcher,
.hero-actions,
.entry-links,
.site-footer,
.guide-links {
  display: flex;
  align-items: center;
}

.brand {
  flex: 0 0 auto;
  gap: 9px;
  color: var(--accent-deep);
  font-weight: 800;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.9);
}

.header-panel {
  gap: 14px;
}

.nav-links {
  gap: 4px;
}

.nav-item,
.nav-trigger {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.is-active,
.nav-group:hover > .nav-trigger,
.nav-group:focus-within > .nav-trigger,
.nav-group.is-active > .nav-trigger,
.nav-group.is-open > .nav-trigger {
  background: rgba(255, 240, 246, 0.68);
  color: var(--accent-deep);
}

.nav-group {
  position: relative;
}

.nav-caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 160ms ease;
}

.nav-group:hover .nav-caret,
.nav-group:focus-within .nav-caret,
.nav-group.is-open .nav-caret {
  transform: rotate(225deg) translate(-1px, -1px);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: 0;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.nav-group:hover .nav-dropdown,
.nav-group:focus-within .nav-dropdown,
.nav-group.is-open .nav-dropdown {
  display: grid;
}

.nav-dropdown a {
  padding: 9px 10px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.nav-dropdown a:hover,
.nav-dropdown a[aria-current="page"] {
  background: var(--bg-soft);
  color: var(--accent-deep);
}

.header-tools {
  gap: 8px;
}

.language-switcher {
  gap: 4px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.lang-button,
.background-toggle {
  min-width: 36px;
  min-height: 32px;
  padding: 0 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.74rem;
  font-weight: 800;
}

.lang-button.is-active,
.lang-button:hover,
.background-toggle:hover {
  background: var(--accent);
  color: #ffffff;
}

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent-deep);
}

.home-hero,
.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-hero {
  display: flex;
  min-height: 510px;
  align-items: center;
  padding: 64px 0 92px;
}

.hero-copy {
  max-width: 700px;
  text-shadow: 0 1px 18px rgba(255, 255, 255, 0.92);
}

.eyebrow,
.section-kicker {
  margin-bottom: 10px;
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
}

.hero-text {
  max-width: 650px;
  color: #514b55;
  font-size: clamp(1rem, 1.7vw, 1.12rem);
}

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

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent-deep);
}

.page-hero {
  display: flex;
  min-height: 245px;
  align-items: center;
  padding: 48px 0 66px;
}

.page-hero h1 {
  margin-bottom: 10px;
  font-size: clamp(2.25rem, 4.5vw, 3.7rem);
}

.page-hero h1 + p {
  max-width: 720px;
  margin-bottom: 0;
  color: #514b55;
}

.section-page-tabs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.section-page-tabs a {
  display: inline-flex;
  min-width: 136px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 8px 18px;
  border: 1px solid rgba(255, 141, 177, 0.58);
  border-radius: 8px;
  background: rgba(255, 249, 252, 0.58);
  color: var(--accent-deep);
  font-size: 0.86rem;
  font-weight: 800;
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.section-page-tabs a:hover,
.section-page-tabs a:focus-visible {
  border-color: var(--accent);
  background: rgba(255, 240, 246, 0.78);
  transform: translateY(-2px);
}

.section-page-tabs a[aria-current="page"] {
  border-color: rgba(255, 111, 159, 0.78);
  background: rgba(255, 141, 177, 0.24);
}

.page-surface {
  position: relative;
  margin-top: -34px;
  padding: 72px 0 78px;
  background: rgba(255, 249, 252, 0.96);
  clip-path: polygon(0 30px, 20% 12px, 42% 32px, 64% 10px, 82% 28px, 100% 12px, 100% 100%, 0 100%);
}

.home-surface {
  margin-top: -56px;
}

.content-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.home-entry-grid,
.content-grid,
.metric-grid,
.gallery-grid {
  display: grid;
  gap: 16px;
}

.home-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entry-card,
.content-card,
.metric-card,
.gallery-card,
.contact-method,
.empty-state {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(129, 91, 111, 0.1);
}

.entry-card {
  display: flex;
  min-height: 190px;
  justify-content: space-between;
  flex-direction: column;
  padding: 24px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.entry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.entry-card h2 {
  margin-bottom: 10px;
  font-size: 1.65rem;
}

.entry-card p {
  color: var(--muted);
}

.entry-links {
  justify-content: space-between;
  color: var(--accent-deep);
  font-size: 0.84rem;
  font-weight: 800;
}

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card,
.contact-method,
.empty-state {
  padding: 24px;
}

.content-card h2,
.content-card h3,
.contact-method h2,
.empty-state h2 {
  margin-bottom: 12px;
}

.content-card p,
.contact-method p,
.empty-state p {
  color: var(--muted);
}

.content-card p:last-child,
.contact-method p:last-child,
.empty-state p:last-child {
  margin-bottom: 0;
}

.about-page,
.about-section {
  display: grid;
}

.about-page {
  gap: 48px;
}

.about-section {
  gap: 16px;
}

.section-heading {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}

.about-intro-card {
  display: grid;
  gap: 14px;
}

.about-intro-card h2,
.featured-project-card h2 {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
}

.about-pr-grid,
.project-detail-grid {
  display: grid;
  gap: 16px;
}

.about-pr-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.about-pr-card {
  min-height: 184px;
}

.career-timeline {
  display: grid;
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(129, 91, 111, 0.1);
  list-style: none;
}

.career-timeline li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.career-timeline li:last-child {
  border-bottom: 0;
}

.career-timeline time {
  color: var(--accent-deep);
  font-weight: 800;
}

.career-timeline p {
  margin: 0;
  color: var(--muted);
}

.featured-project-card {
  display: grid;
  gap: 22px;
}

.featured-project-heading,
.project-facts {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
}

.featured-project-heading p,
.project-facts p,
.project-copy p,
.project-next p {
  margin: 0;
  color: var(--muted);
}

.project-facts {
  justify-content: flex-start;
  flex-wrap: wrap;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.project-facts p {
  display: grid;
  gap: 4px;
  min-width: min(100%, 235px);
}

.project-facts strong,
.project-copy h3,
.project-detail-grid h3,
.project-next h3 {
  color: var(--ink);
  font-size: 0.92rem;
}

.project-copy {
  display: grid;
}

.project-copy,
.project-detail-grid {
  gap: 10px;
}

.project-detail-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.project-next {
  padding: 18px;
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  background: rgba(255, 141, 177, 0.1);
}

.project-next h3 {
  margin-bottom: 8px;
}

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

.work-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(129, 91, 111, 0.1);
}

.work-card-copy {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.work-card-copy h2 {
  margin: 10px 0;
  font-size: clamp(1.45rem, 2.5vw, 2rem);
}

.work-card-copy p {
  margin-bottom: 0;
  color: var(--muted);
}

.tag-row,
.skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag,
.skill-list span,
.status-label {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 0.74rem;
  font-weight: 800;
}

.work-card-mark {
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
}

.work-card-mark.mint {
  background: var(--mint);
}

.work-card-mark.blue {
  background: var(--blue);
}

.metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-card {
  padding: 24px;
}

.metric-card strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1;
  overflow-wrap: anywhere;
}

.metric-card.mint strong {
  color: var(--mint);
}

.metric-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.skill-list {
  margin-top: 16px;
}

.skills-page,
.skill-category {
  display: grid;
}

.skills-page {
  gap: 54px;
}

.skill-category {
  gap: 18px;
}

.skill-category-heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.skill-category-heading > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.skill-category-heading .eyebrow {
  margin-bottom: 2px;
}

.skill-category-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.skill-card-grid,
.design-skill-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.skill-card,
.design-skill-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 24px rgba(129, 91, 111, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.skill-card {
  min-height: 148px;
  padding: 20px;
}

.skill-card:hover,
.design-skill-card:hover {
  border-color: var(--skill-color, var(--accent));
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(129, 91, 111, 0.13);
}

.skill-card-head {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.skill-icon {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--skill-color, var(--accent)) 16%, white);
  color: var(--skill-color, var(--accent-deep));
  font-size: 0.82rem;
  font-weight: 800;
}

.skill-card h3,
.design-skill-card h3 {
  margin-bottom: 3px;
  overflow-wrap: anywhere;
  font-size: 1.12rem;
}

.skill-card-head p,
.design-skill-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.skill-card-head strong {
  align-self: start;
  padding: 3px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--skill-color) 12%, white);
  color: var(--skill-color);
  font-size: 0.78rem;
}

.skill-progress {
  height: 7px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 4px;
  background: #e6f1f8;
}

.skill-progress span {
  display: block;
  width: calc(var(--skill-level) * 1%);
  height: 100%;
  border-radius: inherit;
  background: var(--skill-color);
}

.design-skill-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  min-height: 140px;
  align-items: flex-start;
  gap: 16px;
  padding: 22px;
  --skill-color: var(--accent);
}

.skill-engine-card .skill-card-head {
  grid-template-columns: 52px minmax(0, 1fr);
}

.skill-qualitative-card .skill-card-head {
  grid-template-columns: 52px minmax(0, 1fr);
}

.design-skill-card .skill-card-extra {
  grid-column: 2;
}

.design-skill-card:nth-child(2) {
  --skill-color: var(--mint);
}

.design-skill-card p {
  max-width: 430px;
  font-size: 0.9rem;
}

.skill-card-extra {
  display: grid;
  gap: 13px;
  margin-top: 16px;
}

.skill-card-extra > span {
  color: var(--accent-deep);
  font-size: 0.76rem;
  font-weight: 800;
}

.skill-card-extra p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.skill-card-extra div {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.skill-card-extra div span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 700;
}

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

.contact-method a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--accent-deep);
  font-weight: 800;
}

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

.anime-gallery,
.game-gallery {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.gallery-card {
  overflow: hidden;
}

.gallery-image {
  display: block;
  width: 100%;
  aspect-ratio: 7 / 10;
  object-fit: cover;
  object-position: center top;
}

.anime-card {
  display: grid;
  aspect-ratio: 3 / 4;
  height: 100%;
  grid-template-rows: minmax(0, 1fr) 82px;
  gap: 8px;
  padding: 10px;
  border-color: rgba(255, 141, 177, 0.55);
  background: rgba(255, 255, 255, 0.86);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.anime-card .gallery-image {
  height: 100%;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: 5px;
}

.anime-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.anime-card .gallery-card-body {
  display: block;
  height: auto;
  min-height: 0;
  padding: 8px;
  border: 1px solid rgba(255, 141, 177, 0.32);
  border-radius: 6px;
  background: rgba(255, 249, 252, 0.76);
}

.anime-card .gallery-card-body h2 {
  margin-bottom: 0;
  overflow-wrap: anywhere;
  font-size: 0.78rem;
  line-height: 1.35;
}

.gallery-index {
  display: block;
  margin-bottom: 3px;
  color: var(--accent-deep);
  font-size: 0.64rem;
  font-weight: 800;
}

.cosplay-page,
.cosplay-group {
  display: grid;
}

.cosplay-page {
  gap: 48px;
}

.cosplay-group {
  gap: 16px;
}

.cosplay-group-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cosplay-group-heading span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
}

.cosplay-group-heading h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
}

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

.cosplay-card {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 141, 177, 0.55);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 28px rgba(129, 91, 111, 0.1);
}

.cosplay-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center top;
}

.cosplay-portrait-grid .cosplay-card img {
  aspect-ratio: 3 / 5;
}

.cosplay-landscape-grid .cosplay-card img {
  aspect-ratio: 5 / 3;
}

.cosplay-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 141, 177, 0.45);
  border-radius: 6px;
  background: rgba(255, 249, 252, 0.82);
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 800;
}

.placeholder-media {
  display: grid;
  min-height: 220px;
  place-items: center;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.gallery-card.portrait .placeholder-media {
  min-height: 340px;
}

.gallery-card-body {
  padding: 18px;
}

.gallery-card-body h2 {
  margin-bottom: 8px;
  font-size: 1.15rem;
}

.gallery-card-body p {
  margin-bottom: 0;
  color: var(--muted);
}

.empty-state {
  text-align: center;
}

.site-footer {
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.sakura-canvas {
  position: fixed;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.music-dock {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60;
}

.music-dock-toggle,
.music-icon-button {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: var(--accent-deep);
  cursor: pointer;
  box-shadow: var(--shadow);
}

.music-dock-toggle {
  width: 48px;
  height: 48px;
  font-weight: 800;
}

.music-player-panel {
  position: absolute;
  left: 0;
  bottom: 58px;
  display: none;
  width: min(292px, calc(100vw - 32px));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.music-dock.is-open .music-player-panel {
  display: block;
}

.music-player-panel audio {
  display: none;
}

.music-meta {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 8px;
  align-items: baseline;
  line-height: 1.3;
}

.music-label {
  color: var(--accent-deep);
  font-size: 0.68rem;
  font-weight: 800;
}

#music-track {
  font-size: 0.82rem;
}

.music-status {
  grid-column: 2;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.music-controls {
  display: grid;
  grid-template-columns: 32px 38px 32px minmax(76px, 1fr);
  align-items: center;
  gap: 6px;
  margin-top: 10px;
}

.music-icon-button {
  width: 32px;
  height: 32px;
  padding: 0;
  box-shadow: none;
  font-size: 0.7rem;
}

.music-toggle {
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: #ffffff;
}

.volume-control {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 800;
}

.volume-control input {
  width: 100%;
  min-width: 0;
  accent-color: var(--accent);
}

.ai-guide {
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 61;
  width: 150px;
  height: 300px;
}

.navigator-character {
  position: absolute;
  right: 0;
  bottom: 0;
  display: block;
  width: 150px;
  height: 300px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.guide-navigator {
  display: block;
  width: 150px;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 10px 16px rgba(255, 141, 177, 0.24));
}

.ai-guide-panel {
  position: absolute;
  right: 142px;
  bottom: 20px;
  display: none;
  width: 280px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.ai-guide:hover .ai-guide-panel,
.ai-guide:focus-within .ai-guide-panel,
.ai-guide.is-open .ai-guide-panel {
  display: block;
}

.ai-guide-panel p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.guide-links {
  flex-wrap: wrap;
  gap: 7px;
}

.guide-links a {
  padding: 6px 9px;
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--accent-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: flex;
  }

  .header-panel {
    display: none;
    width: 100%;
    align-items: stretch;
    flex-direction: column;
    padding-top: 6px;
  }

  .site-header.is-open {
    background: rgba(255, 255, 255, 0.8);
  }

  .site-header.is-open .header-panel {
    display: flex;
  }

  .nav-links {
    align-items: stretch;
    flex-direction: column;
  }

  .nav-item,
  .nav-trigger {
    width: 100%;
    justify-content: space-between;
  }

  .nav-dropdown,
  .nav-group:hover .nav-dropdown,
  .nav-group:focus-within .nav-dropdown {
    position: static;
    display: none;
    margin: 2px 0 6px 14px;
    border: 0;
    box-shadow: none;
    background: var(--bg-soft);
  }

  .nav-group.is-open .nav-dropdown {
    display: grid;
  }

  .header-tools {
    justify-content: space-between;
    padding: 6px 0;
  }

  .home-entry-grid,
  .metric-grid,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .anime-gallery,
  .game-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cosplay-landscape-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-background,
  body[data-page="home"] .site-background {
    height: 590px;
  }

  .site-background video {
    object-position: 62% 24%;
  }

  body[data-page="home"] .site-background video {
    object-position: 62% center;
  }

  .site-header {
    top: 8px;
    width: calc(100% - 16px);
    margin-top: 8px;
  }

  .brand span:last-child {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .home-hero {
    min-height: 510px;
    padding: 80px 0 110px;
  }

  .home-hero h1 {
    font-size: 2.45rem;
  }

  .page-hero {
    min-height: 320px;
    padding: 72px 0 90px;
  }

  .page-surface {
    margin-top: -48px;
    padding-top: 76px;
  }

  .content-wrap,
  .home-hero,
  .page-hero,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .home-entry-grid,
  .content-grid,
  .metric-grid,
  .contact-grid,
  .gallery-grid,
  .about-pr-grid,
  .project-detail-grid,
  .skill-card-grid,
  .design-skill-grid {
    grid-template-columns: minmax(0, 1fr);
  }


  .anime-gallery,
  .game-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .anime-card {
    aspect-ratio: 2 / 3;
    grid-template-rows: minmax(0, 1fr) 86px;
    padding: 8px;
  }

  .anime-card .gallery-card-body {
    padding: 7px;
  }

  .cosplay-page {
    gap: 38px;
  }

  .cosplay-portrait-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .cosplay-landscape-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .skills-page {
    gap: 42px;
  }

  .skill-card {
    padding: 17px;
  }

  .skill-card-head {
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 11px;
  }

  .skill-icon {
    width: 46px;
    height: 46px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .section-page-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }

  .section-page-tabs a {
    min-width: 0;
    padding-inline: 8px;
  }

  .career-timeline li {
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 12px;
    padding: 14px;
  }

  .featured-project-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .work-card {
    grid-template-columns: minmax(0, 1fr) 62px;
  }

  .gallery-card.portrait .placeholder-media {
    min-height: 300px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .music-dock {
    left: 12px;
    bottom: 12px;
  }

  .music-dock-toggle {
    width: 56px;
    height: 42px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
  }

  .ai-guide {
    width: 104px;
    height: 208px;
  }

  .navigator-character,
  .guide-navigator {
    width: 104px;
    height: 208px;
  }

  .guide-navigator {
    height: auto;
  }

  .ai-guide-panel {
    right: 0;
    bottom: 210px;
    width: min(300px, calc(100vw - 28px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .sakura-canvas,
  .site-background video,
  .background-toggle {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
