:root {
  --paper: #fffaf2;
  --ink: #182018;
  --pink: #ff8e9a;
  --pink-light: #ffd7da;
  --green: #7ebd43;
  --header-h: 84px;
}

* { box-sizing: border-box; }
html { min-height: 100%; overflow-x: clip; background: var(--paper); scroll-behavior: smooth; }
body {
  min-height: 100%;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  overflow-x: clip;
}
.iris-stage { background: var(--paper); }
a { color: inherit; text-decoration: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  width: 100%;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 68px);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  border-bottom: 1px solid rgba(24,32,24,.09);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: baseline; gap: 10px; font-weight: 700; letter-spacing: -.04em; }
.brand span { font-size: clamp(22px, 2.1vw, 34px); }
.brand small { font-size: 11px; letter-spacing: .14em; }
.global-nav { display: flex; gap: clamp(24px, 3.5vw, 58px); text-transform: uppercase; font-size: 13px; letter-spacing: .08em; }
.global-nav a { position: relative; padding: 10px 0; }
.global-nav a::after { content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.global-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.menu-button { display: none; }

.iris-stage { height: 230vh; min-height: 1500px; }
.iris-motion { height: 100%; }
.iris-motion.is-past .iris-sticky { display: none; }
.iris-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; background: var(--paper); }
.iris-image {
  --iris-radius: 150vmax;
  --iris-x: 50%;
  --iris-y: 46%;
  --bg-x: 50%;
  --bg-y: 50%;
  --bg-width: auto;
  --bg-height: auto;
  position: absolute;
  z-index: 2;
  inset: var(--header-h) 0 0;
  clip-path: circle(var(--iris-radius) at var(--iris-x) var(--iris-y));
  opacity: 0;
  transition: opacity 1s ease;
  will-change: clip-path, opacity;
}
.iris-image.is-loaded { opacity: 1; }
.iris-media {
  position: absolute;
  left: var(--bg-x);
  top: var(--bg-y);
  display: block;
  width: var(--bg-width);
  height: var(--bg-height);
  max-width: none;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.hero-copy {
  position: absolute;
  z-index: 3;
  left: clamp(24px, 5vw, 86px);
  top: 50%;
  color: white;
  transform: translateY(-42%);
  text-shadow: 0 2px 22px rgba(45, 80, 30, .2);
  opacity: 0;
  transition: opacity 1s ease, transform .5s ease;
}
.eyebrow { margin: 0 0 10px; font-size: clamp(12px, 1.2vw, 16px); font-weight: 600; text-transform: uppercase; letter-spacing: .13em; }
.hero-copy h1 { margin: 0; font-size: clamp(70px, 11.5vw, 184px); line-height: .83; letter-spacing: -.085em; }
.hero-copy h1 span { font-weight: 700; }
.hero-note { margin: 24px 0 0; font: 500 clamp(15px, 1.4vw, 20px) "Noto Sans JP", sans-serif; letter-spacing: .12em; }
.scroll-cue { display: inline-flex; gap: 10px; margin-top: 48px; padding-bottom: 7px; border-bottom: 1px solid currentColor; font-size: 12px; text-transform: uppercase; letter-spacing: .16em; }

.discover-grid {
  position: absolute;
  z-index: 1;
  inset: var(--header-h) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr);
  align-items: center;
  gap: clamp(40px, 7vw, 130px);
  max-width: 1500px;
  margin: auto;
  padding: 5vw clamp(24px, 6vw, 100px);
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .4s, transform .5s;
}
.discover-grid.is-visible { z-index: 4; opacity: 1; transform: none; }
.works-card { max-width: 600px; padding: clamp(30px, 4vw, 64px); background: var(--pink-light); box-shadow: 16px 18px 0 rgba(255,142,154,.22); }
.section-number { margin: 0 0 28px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .2em; }
.recommend-slider { min-width: 0; }
.recommend-viewport { overflow: hidden; touch-action: pan-y; }
.recommend-track { display: flex; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.recommend-slide { flex: 0 0 100%; min-width: 0; }
.recommend-slide > a { display: block; }
.recommend-artwork {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 3px;
  background: linear-gradient(145deg, #ff839b, #d75077);
}
.recommend-artwork img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .5s ease; }
.recommend-slide > a:hover .recommend-artwork img { transform: scale(1.035); }
.recommend-badge { position: absolute; z-index: 2; top: 12px; left: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: 9px; font-weight: 700; letter-spacing: .08em; line-height: 1; }
.recommend-play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: white; font-size: 11px; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.recommend-body { display: block; padding: 16px 2px 4px; }
.recommend-date { display: block; margin: 0; color: rgba(24,32,24,.62); font-size: 10px; font-weight: 600; letter-spacing: .08em; }
.recommend-title { display: block; margin: 6px 0 5px; overflow: hidden; font-size: clamp(20px, 2vw, 27px); line-height: 1.35; letter-spacing: -.035em; text-overflow: ellipsis; white-space: nowrap; }
.recommend-artists { display: block; margin: 0; overflow: hidden; color: rgba(24,32,24,.62); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.recommend-tieup { display: block; margin-top: 10px; overflow: hidden; color: #b44a61; font-size: 10px; font-weight: 600; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; }
.recommend-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 15px 0 22px; }
.recommend-arrow { width: 34px; height: 30px; padding: 0; border: 0; background: transparent; color: inherit; cursor: pointer; }
.recommend-dots { display: flex; justify-content: center; gap: 7px; }
.recommend-dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: rgba(24,32,24,.24); cursor: pointer; transition: width .25s, border-radius .25s, background .25s; }
.recommend-dot.is-active { width: 22px; border-radius: 999px; background: var(--ink); }
.recommend-loading { min-height: 270px; display: grid; place-items: center; margin: 0; font-size: 12px; letter-spacing: .08em; }
.recommend-error { min-height: 180px; display: grid; place-items: center; margin: 0; font-size: 12px; }
.text-link { display: inline-flex; justify-content: space-between; gap: 48px; padding: 12px 0; border-bottom: 1px solid; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.profile-link {
  position: absolute;
  left: var(--profile-x, 74%);
  top: calc(var(--profile-y, 40%) + var(--profile-radius, 180px) + 18px);
  display: flex;
  width: max-content;
  flex-direction: column;
  padding: 0;
  text-align: center;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .35s ease, transform .45s ease;
}
.profile-link.is-visible { opacity: 1; transform: translate(-50%, 0); }
.profile-link span { font-size: clamp(40px, 5vw, 72px); font-weight: 600; letter-spacing: -.05em; }
.profile-link small { margin-top: 5px; font-size: 12px; letter-spacing: .08em; }
.home-profile-socials {
  position: absolute;
  left: var(--profile-x, 74%);
  top: calc(var(--profile-y, 40%) + var(--profile-radius, 180px) + 136px);
  display: flex;
  align-items: center;
  gap: 14px;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .35s ease .05s, transform .45s ease .05s;
}
.home-profile-socials.is-visible { opacity: 1; transform: translate(-50%, 0); }
.home-profile-socials a {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: color .2s, transform .2s;
}
.home-profile-socials a:hover { color: var(--pink); transform: translateY(-2px); }
.home-profile-socials a:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }
.social-icon {
  display: block;
  width: 20px;
  height: 20px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}
.social-icon--youtube { --icon: url("../img/yt_icon_almostblack_digital.png"); width: 36px; height: 28px; }
.social-icon--niconico { --icon: url("../img/niconico.png"); width: 35px; height: 35px; }
.social-icon--x { --icon: url("../img/x.svg"); width: 20px; height: 20px; }
.social-icon--instagram { --icon: url("../img/instagram.svg"); width: 23px; height: 23px; }
.social-icon--mail { --icon: url("../img/mail.svg"); width: 25px; height: 25px; }

.connect-section { max-width: 1500px; margin: 0 auto; padding: 140px clamp(24px, 6vw, 100px) 180px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 60px; }
.section-heading .section-number { margin: 0; }
.section-heading h2 { margin: 0; font: 700 clamp(30px, 4vw, 58px) "Noto Sans JP", sans-serif; letter-spacing: -.04em; }
.social-list { border-top: 1px solid rgba(24,32,24,.25); }
.social-list a { display: flex; justify-content: space-between; padding: 25px 6px; border-bottom: 1px solid rgba(24,32,24,.25); font-size: clamp(22px, 2.5vw, 38px); transition: padding .25s, color .25s; }
.social-list a:hover { padding-left: 20px; color: #e7697a; }

.contact-section { margin: 0 clamp(16px, 3vw, 48px) 48px; padding: clamp(70px, 10vw, 150px) clamp(24px, 8vw, 130px); text-align: center; background: var(--pink); }
.contact-section .section-number { margin-bottom: 32px; }
.contact-section h2 { margin: 0; font: 700 clamp(38px, 6.2vw, 96px) "Noto Sans JP", sans-serif; letter-spacing: -.06em; }
.contact-section > p:not(.section-number) { max-width: 620px; margin: 24px auto 44px; line-height: 1.9; }
.contact-button { display: inline-flex; align-items: center; gap: 38px; padding: 20px 28px; background: var(--ink); color: white; font-weight: 500; transition: transform .25s, box-shadow .25s; }
.contact-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(24,32,24,.2); }
footer { display: flex; justify-content: space-between; align-items: end; padding: 50px clamp(24px, 4vw, 68px); }
footer p { margin: 0; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 800px) {
  :root { --header-h: 70px; }
  .brand small { display: none; }
  .menu-button { display: flex; flex-direction: column; gap: 5px; width: 38px; padding: 10px 4px; border: 0; background: none; }
  .menu-button span:not(.sr-only) { display: block; width: 100%; height: 1px; background: var(--ink); transition: transform .25s, opacity .25s; }
  .menu-button[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .global-nav { position: fixed; top: var(--header-h); left: 0; right: 0; display: flex; flex-direction: column; gap: 0; padding: 20px 24px 30px; background: var(--paper); transform: translateY(-120%); transition: transform .3s; z-index: -1; }
  .global-nav.is-open { transform: none; }
  .global-nav a { padding: 14px 0; border-bottom: 1px solid rgba(24,32,24,.15); }
  .iris-stage { height: auto; min-height: 0; }
  .iris-motion {
    height: 190vh;
    height: 190lvh;
    min-height: 0;
  }
  .iris-sticky { height: 100vh; height: 100lvh; }
  .hero-copy { left: 22px; right: 22px; top: 56%; }
  .hero-copy h1 {
    font-size: clamp(42px, 15vw, 72px);
    white-space: nowrap;
  }
  .eyebrow { max-width: 280px; line-height: 1.7; }
  .discover-grid {
    display: block;
    padding: 0 20px;
    transform: none;
    transition: none;
    will-change: opacity;
  }
  .works-card {
    position: relative;
    z-index: 5;
    width: auto;
    max-width: none;
    margin: -36vh 20px 64px;
    margin: -36svh 20px calc(64px + env(safe-area-inset-bottom));
    padding: 24px;
    box-shadow: 9px 10px 0 rgba(255,142,154,.22);
  }
  .works-card .section-number { margin-bottom: 8px; }
  .recommend-artwork { height: auto; aspect-ratio: 16 / 10; }
  .recommend-body { padding-top: 14px; }
  .recommend-title { margin: 2px 0; font-size: 19px; }
  .recommend-tieup { margin-top: 4px; }
  .recommend-controls { margin: 10px 0 12px; }
  .recommend-arrow { height: 30px; }
  .text-link {
    width: 100%;
    padding: 14px 4px;
    font-size: 15px;
  }
  .profile-link {
    top: calc(var(--profile-y) + var(--profile-radius) + 12px);
    transform: translate(-50%, 0);
    transition: none;
    will-change: opacity;
  }
  .profile-link span { font-size: 34px; line-height: 1; }
  .profile-link small { margin-top: 3px; font-size: 10px; }
  .home-profile-socials {
    top: calc(var(--profile-y) + var(--profile-radius) + 78px);
    gap: 10px;
    transform: translate(-50%, 0);
    transition: none;
    will-change: opacity;
  }
  .home-profile-socials a {
    width: 38px;
    height: 38px;
  }
  .section-heading { display: block; }
  .section-heading .section-number { margin-bottom: 25px; }
  .connect-section { padding-top: 100px; padding-bottom: 110px; }
  .contact-section { margin: 0 12px 12px; }
  footer { align-items: center; }
}

@media (max-width: 800px) and (max-height: 620px) {
  .works-card {
    margin-top: calc(-36svh + 96px);
  }

  .home-profile-socials {
    top: calc(var(--profile-y) + var(--profile-radius) + 66px);
  }
}

@media (min-width: 801px) and (max-height: 760px) {
  .discover-grid {
    gap: clamp(34px, 5vw, 76px);
    padding: 14px clamp(28px, 6vw, 72px) 22px;
  }
  .works-card {
    width: min(100%, 540px);
    padding: clamp(20px, 3vh, 30px);
    box-shadow: 10px 12px 0 rgba(255,142,154,.22);
  }
  .section-number { margin-bottom: 13px; }
  .recommend-artwork { height: min(31vh, 225px); aspect-ratio: auto; }
  .recommend-body { padding-top: 9px; }
  .recommend-title { margin: 3px 0; font-size: clamp(18px, 2vw, 23px); }
  .recommend-tieup { margin-top: 5px; }
  .recommend-controls { margin: 7px 0 8px; }
  .recommend-arrow { height: 24px; }
  .text-link { padding: 8px 0; }
  .profile-link {
    top: calc(var(--profile-y) + var(--profile-radius) + 12px);
  }
  .profile-link span { font-size: clamp(38px, 4.5vw, 56px); line-height: 1; }
  .home-profile-socials {
    top: calc(var(--profile-y) + var(--profile-radius) + 104px);
  }
}

@media (min-width: 1400px) and (min-height: 820px) {
  .home-profile-socials {
    top: calc(var(--profile-y, 40%) + var(--profile-radius, 180px) + 148px);
    gap: 16px;
  }

  .home-profile-socials a {
    width: 50px;
    height: 50px;
  }

  .social-icon--youtube { width: 40px; height: 31px; }
  .social-icon--niconico { width: 39px; height: 39px; }
  .social-icon--x { width: 22px; height: 22px; }
  .social-icon--instagram { width: 26px; height: 26px; }
  .social-icon--mail { width: 28px; height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
