/* ポインター差・画面幅・動きの軽減を集約する最終CSS。
   pointer fine→広い幅→狭い幅→reduced motionの順で上書きする。 */
@media (pointer: fine) {
  .site-nav a:hover,
  .site-nav a:focus-visible {
    color: var(--color-purple);
  }

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

  .link-card:hover,
  .link-card:focus-visible,
  .song-card:hover,
  .song-card:focus-visible {
    border-color: var(--color-purple);
    transform: translateY(-6px);
  }

  .link-card:hover,
  .link-card:focus-visible {
    box-shadow: 0 0 9px rgba(177, 140, 255, .3), 0 0 28px rgba(127, 216, 240, .18);
  }

  .link-card:hover .link-label,
  .link-card:hover > span:last-child,
  .link-card:focus-visible .link-label,
  .link-card:focus-visible > span:last-child {
    text-shadow: 0 0 12px rgba(177, 140, 255, .7), 0 0 24px rgba(127, 216, 240, .42);
  }

  .link-card:hover::after,
  .link-card:focus-visible::after,
  .song-card:hover .song-image::after,
  .song-card:focus-visible .song-image::after {
    opacity: .76;
    transform: translateX(400%) skewX(-12deg);
  }

  .song-card:hover .song-image picture,
  .song-card:focus-visible .song-image picture {
    transform: scale(1.03);
  }

  .link-card:hover .shine-snow i,
  .link-card:focus-visible .shine-snow i,
  .song-card:hover .shine-snow i,
  .song-card:focus-visible .shine-snow i {
    opacity: 1;
    transform: translateY(-3px) rotate(12deg) scale(1);
  }

  .link-card:hover .shine-snow i:nth-child(2),
  .link-card:focus-visible .shine-snow i:nth-child(2),
  .song-card:hover .shine-snow i:nth-child(2),
  .song-card:focus-visible .shine-snow i:nth-child(2) {
    transform: translateY(-6px) rotate(-18deg) scale(1.08);
  }

  .button.penlight-button:active {
    transform: translateY(3px) scale(.985);
  }

  .fan-gift-button:hover,
  .fan-gift-button:focus-visible {
    border-color: var(--color-purple);
    background: var(--color-surface);
    box-shadow: 0 0 18px rgba(177, 140, 255, .2);
    color: var(--color-purple);
    transform: translateY(-2px);
  }
}

@media (min-width: 1200px) {
  .songs-grid {
    gap: 28px;
  }
}

@media (max-width: 960px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav a {
    font-size: 10px;
  }

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

  .counter-card:last-child,
  .song-card:last-child,
  .link-card:last-child {
    grid-column: 1 / -1;
  }

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

  .about-grid,
  .penlight-inner {
    grid-template-columns: .72fr 1.28fr;
  }

  .about-story,
  .penlight-copy {
    grid-column: 1 / -1;
  }

  .footer-inner {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .site-nav {
    display: none;
  }

  .hero {
    padding-block: 136px 58px;
  }

  .hero-media img {
    object-position: 58% center;
  }

  .hero-scrim {
    background: rgba(41, 48, 74, .58);
  }

  .about-grid,
  .counter-grid,
  .songs-grid,
  .penlight-inner,
  .links-grid,
  .fan-panel {
    display: block;
  }

  .about-character,
  .penlight-character {
    margin-top: 30px;
  }

  .penlight-character {
    margin-right: 0;
  }

  .about-character img,
  .penlight-character img {
    /* 狭幅で透過人物が本文を圧迫しないための画像表示率。 */
    width: 72%;
    margin-inline: auto;
  }

  .penlight-character figcaption {
    margin-inline: 12%;
  }

  .fan-character img {
    /* FAN本文とリアクションを同じ画面内へ残す人物画像の表示率。 */
    width: 68%;
    margin-inline: auto;
  }

  .fan-content {
    margin-top: 30px;
  }

  .profile-list,
  .counter-card,
  .song-card,
  .link-card,
  .penlight-console {
    margin-top: 28px;
  }

  .counter-card:first-child,
  .song-card:first-child,
  .link-card:first-child {
    margin-top: 0;
  }

  .story-copy p {
    font-size: 15px;
  }

  .snow-bunny {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 42px;
  }

  .outro-inner {
    padding-right: 24px;
    text-align: center;
  }

  .outro-character {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 38px;
  }

  .outro-character img {
    /* モバイル終幕で全身と本文を同時に見せる画像表示率。 */
    width: 72%;
    margin-inline: auto;
  }

  .outro-section {
    padding-bottom: 0;
  }
}

@media (max-width: 520px) {
  :root {
    --section-space: 78px;
  }

  html {
    scroll-padding-top: 68px;
  }

  .page-shell {
    padding-inline: 24px;
  }

  .page-shell.reading-shell {
    padding-inline: 24px;
  }

  .page-shell .reading-shell {
    padding-inline: 0;
  }

  .story-inner .reading-shell {
    padding-inline: 12px;
  }

  .header-inner {
    padding-block: 12px;
  }

  .brand strong {
    font-size: 12px;
  }

  .brand small {
    font-size: 8px;
  }

  .hero {
    padding-block: 122px 46px;
  }

  .hero-media img {
    object-position: 61% center;
  }

  .hero-copy h1 {
    font-size: 36px;
  }

  .hero-lead {
    margin-top: 22px;
    font-size: 15px;
    line-height: 1.9;
  }

  .hero-signature {
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 52px;
  }

  .story-section {
    padding-block: 96px;
  }

  .story-chapter {
    gap: 10px;
    margin-bottom: 42px;
  }

  .story-chapter p {
    letter-spacing: .12em;
  }

  .story-window {
    margin-block: 48px;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  [data-section-title] > .eyebrow {
    letter-spacing: .12em;
  }

  .about-story p,
  .fan-guideline {
    font-size: 16px;
  }

  .profile-list {
    padding-inline: 18px;
  }

  .profile-list div {
    grid-template-columns: 5.3em 1fr;
    gap: 14px;
  }

  .schedule-grid {
    display: block;
  }

  .schedule-card + .schedule-card {
    margin-top: 14px;
  }

  .songs-inner {
    padding-top: 68px;
  }

  .marquee-group {
    gap: 22px;
  }

  .penlight-console {
    padding: 30px 20px;
  }

  /* 縦長画面では発光端を段違いにし、同じ高さへ重なる平坦な帯を作らない。 */
  .penlight-beam:nth-child(1) {
    bottom: 78%;
  }

  .penlight-beam:nth-child(2) {
    bottom: 73%;
  }

  .penlight-beam:nth-child(3) {
    bottom: 68%;
  }

  .penlight-beam:nth-child(4) {
    bottom: 63%;
  }

  .penlight-beam:nth-child(5) {
    bottom: 49%;
  }

  .penlight-beam:nth-child(6) {
    bottom: 45%;
  }

  .penlight-beam:nth-child(7) {
    bottom: 41%;
  }

  .penlight-beam:nth-child(8) {
    bottom: 37%;
  }

  .penlight-beam:nth-child(9) {
    bottom: 23%;
  }

  .penlight-beam:nth-child(10) {
    bottom: 18%;
  }

  .penlight-beam:nth-child(11) {
    bottom: 13%;
  }

  .penlight-beam:nth-child(12) {
    bottom: 8%;
  }

  .penlight-beam.is-live {
    opacity: .58;
  }

  .fan-panel {
    padding: 34px 22px;
  }

  .fan-gift-options {
    display: block;
  }

  .fan-gift-button {
    display: flex;
    justify-content: center;
  }

  .fan-gift-button + .fan-gift-button {
    margin-top: 10px;
  }

  .outro-section {
    padding-block: 110px 0;
  }

  .outro-media img {
    object-position: 50% center;
  }

  .footer-inner {
    display: block;
  }

  .footer-inner p + p {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

  .intro-overlay {
    display: none !important;
  }

  .js .hero-intro-item,
  .js.motion-ready [data-reveal],
  .js.motion-ready .schedule-card {
    opacity: 1;
    transform: none;
  }

  .image-curtain,
  .marquee-group[aria-hidden="true"],
  .particle-layer,
  .link-card::after,
  .song-image::after,
  .shine-snow {
    display: none;
  }

  .penlight-beam-core {
    animation: none;
    transform: translateX(-50%) rotate(var(--beam-start));
  }

  .penlight-console::before {
    animation: none;
    transform: translateX(-16.666%);
  }

  .penlight-crowd-stick {
    animation: none;
    transform: rotate(var(--crowd-angle-start));
  }

  .marquee-track,
  [data-parallax-media] {
    transform: none !important;
  }
}
