/* ═══════════════════════════════════════
   MIOSE v10 — FLOW
   Smooth scroll · no snap · no fixed HUD
   ═══════════════════════════════════════ */

:root {
  --bg: #141210;
  --bg-elevated: #1c1916;
  --bg-soft: #181614;
  --text: #edeae6;
  --text-soft: rgba(237, 234, 230, 0.68);
  --text-faint: rgba(237, 234, 230, 0.38);
  --line: rgba(237, 234, 230, 0.1);
  --accent: #e85d4c;
  --accent-soft: rgba(232, 93, 76, 0.15);

  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --serif: "Shippori Mincho", serif;
  --display: "Cormorant Garamond", "Shippori Mincho", serif;
  --mono: "IBM Plex Mono", monospace;

  --shell: 44rem;
  --shell-wide: 64rem;
  --topbar: 3.5rem;
  --page-gutter: max(1rem, calc((100% - min(100% - 2rem, var(--shell-wide))) / 2));
}

*, *::before, *::after { box-sizing: border-box; }

html {
  /* smooth より auto の方が長ページでカクつきにくい */
  scroll-behavior: auto;
  scroll-padding-top: var(--topbar);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.skip {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--text);
  color: var(--bg);
}

.skip:focus { top: 0; }

.svg-filters {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

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

.shell {
  width: min(100% - 2rem, var(--shell-wide));
  margin-inline: auto;
}

.shell--narrow { width: min(100% - 2rem, var(--shell)); }

/* ─── Topbar ─── */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--topbar);
  background: rgba(20, 18, 16, 0.88);
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  width: min(100% - 2rem, var(--shell-wide));
  margin-inline: auto;
}

.topbar__logo {
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.topbar__nav {
  display: none;
  gap: 1.75rem;
}

.topbar__nav a {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-soft);
  transition: color 0.15s ease;
}

.topbar__nav a:hover { color: var(--text); }

.topbar__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
}

.topbar__toggle span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.topbar__toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar__toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.topbar__toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.menu {
  position: fixed;
  inset: var(--topbar) 0 0;
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  background: rgba(20, 18, 16, 0.98);
}

.menu[hidden] { display: none; }

.menu a {
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

/* ─── Intro — image + left overlay ─── */
.intro {
  position: relative;
  isolation: isolate;
  height: 100vh;
  min-height: 100vh;
  max-height: 100vh;
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  background: var(--bg);
  overflow: hidden;
}

.intro__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
}

.intro__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.intro__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.intro__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 84% 44%;
  transform: scale(1);
  will-change: transform;
  filter: url(#intro-water);
  animation: intro-kenburns 26s ease-in-out infinite alternate;
}

@keyframes intro-kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.045); }
}

.intro__particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
}

.intro__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-color: rgba(20, 18, 16, 0.22);
  background-image:
    linear-gradient(
      to top,
      rgba(20, 18, 16, 0.35) 0%,
      transparent 38%
    ),
    linear-gradient(
      to bottom,
      rgba(20, 18, 16, 0.25) 0%,
      transparent 22%
    );
}

.intro__body {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: min(100% - 2rem, 38rem);
  margin-left: var(--page-gutter);
  margin-right: auto;
  padding: calc(var(--topbar) + 1.5rem) 0 clamp(2.5rem, 6vh, 4rem);
  pointer-events: none;
}

.intro__body-frame {
  position: relative;
  text-shadow: 0 1px 28px rgba(20, 18, 16, 0.55);
  pointer-events: auto;
}

.intro__body-frame::before {
  content: "";
  position: absolute;
  left: -0.85rem;
  top: 0.15rem;
  bottom: 0.15rem;
  width: 1px;
  background: rgba(237, 234, 230, 0.14);
}

.intro__role {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.intro__role::before {
  content: "";
  flex-shrink: 0;
  width: 1.5rem;
  height: 1px;
  background: var(--accent);
  opacity: 0.55;
}

.intro__title {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 300;
  letter-spacing: 0.12em;
  line-height: 0.95;
}

.intro__lead {
  margin: 1.25rem 0 0;
  max-width: 28em;
  font-family: var(--serif);
  font-size: clamp(0.9375rem, 2.2vw, 1rem);
  line-height: 2;
  color: var(--text-soft);
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 2rem;
  margin-top: 2rem;
}

.intro__latest {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
}

.intro__latest strong {
  color: var(--text);
  font-weight: 500;
}

/* Pills */
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pill--accent {
  background: var(--accent);
  color: #fff;
}

.pill--accent:hover {
  background: #f06e5e;
}

.pill--line {
  border: 1px solid var(--line);
  color: var(--text);
}

.pill--line:hover {
  border-color: var(--text-soft);
}

/* Panels */
.panel {
  padding: clamp(3.5rem, 9vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.panel--music { background: var(--bg); }
.panel--lyrics,
.panel--contact,
.panel--news { background: var(--bg-soft); }
.panel--world { background: var(--bg-elevated); }

.panel__head {
  margin-bottom: 2rem;
}

.panel__title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.panel__desc {
  margin: 0.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-soft);
}

.panel__desc--world {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
  max-width: 28em;
}

/* Spotlight release */
.spotlight {
  display: grid;
  gap: 1.5rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.spotlight__tag {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.spotlight__title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.spotlight__note {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--text-soft);
}

.spotlight__btn {
  justify-self: start;
}

/* Deck player — inline, not fixed */
.deck {
  padding: 1.25rem 1.5rem 1.5rem;
  margin-bottom: 2.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.deck__controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.deck__play {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 93, 76, 0.25);
  border-radius: 50%;
  transition: background 0.15s ease;
}

.deck__play:not(:disabled):hover {
  background: rgba(232, 93, 76, 0.28);
}

.deck__play:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.deck__play-icon {
  font-size: 0.6875rem;
  margin-left: 2px;
}

.deck.is-playing .deck__play {
  background: var(--accent);
  border-color: var(--accent);
}

.deck__info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.deck__label {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.deck__track {
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deck__time {
  flex-shrink: 0;
  display: flex;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
}

.deck__seek {
  width: 100%;
  height: 4px;
  margin-top: 1rem;
  appearance: none;
  background: var(--line);
  border-radius: 2px;
  cursor: pointer;
}

.deck__seek::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text);
  border-radius: 50%;
}

.deck__seek:disabled { opacity: 0.3; cursor: not-allowed; }

.deck__note {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

.deck__note--youtube {
  font-family: var(--mono);
  font-size: 0.6875rem;
}

.deck__note--youtube a {
  color: var(--accent);
  transition: color 0.15s ease;
}

.deck__note--youtube a:hover {
  color: #f06e5e;
}

/* Discography */
.discog-head {
  margin: 2.5rem 0 1.25rem;
}

.discog-head__title {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-faint);
}

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

.discog-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.35rem 0;
  border-top: 1px solid var(--line);
}

.discog-item:last-child {
  border-bottom: 1px solid var(--line);
}

.discog-item__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.discog-item__label {
  margin: 0.35rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.discog-item__date {
  margin: 0.45rem 0 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
}

.discog-item__link {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--accent);
  transition: color 0.15s ease;
}

.discog-item__link:hover {
  color: #f06e5e;
}

/* News */
.news-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.news-item {
  display: grid;
  gap: 0.85rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.news-item:last-child {
  border-bottom: 1px solid var(--line);
}

.news-item__date {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.news-item__body p {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 1.95;
  color: var(--text-soft);
}

.news-item__body p:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .news-item {
    grid-template-columns: 7.5rem 1fr;
    gap: 2rem;
    align-items: start;
  }
}

/* Album list */
.album-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.album-list__item {
  display: grid;
  grid-template-columns: 2.25rem 1fr auto;
  gap: 0.75rem 1rem;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.album-list__item.is-active .album-list__num { color: var(--accent); }
.album-list__item.is-active .album-list__name { color: var(--text); }

.album-list__num {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-faint);
}

.album-list__name {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-soft);
}

.album-list__play {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 0.35rem 0.5rem;
  transition: color 0.15s ease;
}

.album-list__play:hover:not(:disabled) { color: var(--text); }
.album-list__play:disabled { opacity: 0.4; cursor: default; }

.album-list__play--link {
  text-decoration: none;
  color: var(--accent);
}

.album-list__play--link:hover {
  color: #f06e5e;
}

/* Lyrics */
.lyrics__title {
  margin: 0 0 1.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.lyrics__body {
  margin: 0 0 2rem;
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 2.35;
}

.lyrics__meta {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  line-height: 1.9;
}

.lyrics__meta p { margin: 0 0 0.25rem; }

/* Profile split */
.profile-split {
  display: grid;
  gap: 2rem;
}

.profile-split__photo {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
}

.profile-split__photo picture {
  display: block;
}

.profile-split__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 88% 38%;
}

.profile-split__text p {
  margin: 0 0 1.15rem;
  font-family: var(--serif);
  font-size: 0.9375rem;
  line-height: 2.1;
  color: var(--text-soft);
}

.profile-split__text p:last-child { margin-bottom: 0; }

/* World */
.world-grid {
  display: grid;
  gap: 2rem;
}

.world-card {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.world-card__label {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.world-card__line {
  display: block;
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 2.05;
  color: var(--text-soft);
}

/* Links */
.link-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}

.link-rows li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.link-rows__item--primary {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.link-rows__label {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.link-rows__name {
  font-size: 0.9375rem;
  font-weight: 500;
}

.link-rows__profile {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
}

.link-rows a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--text-faint);
  transition: color 0.15s ease;
}

.link-rows a:hover { color: var(--text); }

.link-rows__link--primary {
  color: var(--accent);
  font-weight: 500;
}

.link-rows__link--primary:hover {
  color: #f06e5e;
}

.link-rows__soon {
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-faint);
}

.contact-blurb {
  margin: 0 0 1.5rem;
  max-width: 32em;
  color: var(--text-soft);
  line-height: 1.9;
}

/* Credits */
.credit-list {
  margin: 0;
  display: grid;
  gap: 0.25rem;
}

.credit-list dt {
  font-family: var(--mono);
  font-size: 0.5625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: 0.85rem;
}

.credit-list dt:first-child { margin-top: 0; }

.credit-list dd {
  margin: 0;
  font-size: 0.9375rem;
}

.credit-list a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.credit-list__note {
  margin-top: 1rem;
  font-size: 0.8125rem;
  color: var(--text-faint);
  line-height: 1.8;
}

/* Footer */
.foot {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
}

.foot__inner {
  display: grid;
  gap: 0.35rem;
}

.foot__brand {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.foot__copy {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.625rem;
  color: var(--text-faint);
}

.foot__note {
  margin: 0.5rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-faint);
  max-width: 36em;
}

/* Desktop */
@media (min-width: 768px) {
  .topbar__nav { display: flex; }
  .topbar__toggle { display: none; }

  .intro__body {
    padding-bottom: clamp(2.5rem, 5vh, 3.5rem);
  }

  .intro__shade {
    background-color: rgba(20, 18, 16, 0.24);
    background-image:
      linear-gradient(
        to top,
        rgba(20, 18, 16, 0.4) 0%,
        transparent 42%
      ),
      linear-gradient(
        to bottom,
        rgba(20, 18, 16, 0.28) 0%,
        transparent 24%
      );
  }

  .spotlight {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .profile-split {
    grid-template-columns: 1fr 1.1fr;
    gap: 3rem;
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
  }

  .intro__img {
    animation: none !important;
    filter: none !important;
  }

  .intro__particles {
    display: none !important;
  }
}
