.hm-intro {
  padding-block: clamp(32px, 5vw, 64px) clamp(24px, 3.4vw, 40px);
  text-align: center;
}
.hm-intro__word {
  display: block;
  margin: 0 auto;
  height: clamp(50px, 2.4rem + 3.4vw, 96px);
  width: auto;
  aspect-ratio: 396 / 106;
  overflow: visible;
  color: var(--text);
}
.hm-intro__red { fill: var(--red); }
.hm-intro__tag {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  padding-left: 0.32em;
  font-size: clamp(0.75rem, 0.7rem + 0.3vw, 0.9375rem);
  font-weight: 900;
  line-height: 1.5;
  letter-spacing: 0.32em;
}
.hm-intro h1 {
  margin: clamp(14px, 2vw, 22px) auto 0;
  max-width: 30em;
  font-size: clamp(1.0625rem, 0.95rem + 0.6vw, 1.375rem);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  text-wrap: balance;
}
.hm-intro h1:is(:lang(ja), :lang(zh-Hans)) { word-break: keep-all; }
@media (prefers-reduced-motion: no-preference) {
  .hm-intro__ink,
  .hm-intro__stem {
    transform-box: view-box;
    transform-origin: center;
    animation: intro-word 650ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 250ms both;
  }
  .hm-intro__dot {
    transform-box: fill-box;
    transform-origin: center;
    animation: intro-pop 300ms ease-out 800ms both;
  }
  .hm-intro__dot:nth-of-type(2) { animation-delay: 860ms; }
  .hm-intro__dot:nth-of-type(3) { animation-delay: 920ms; }
  .hm-intro__tag { animation: intro-rise 400ms ease-out 1000ms both; }
  .hm-intro h1 { animation: intro-rise 400ms ease-out 1150ms both; }
}
@keyframes intro-word { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: none; } }
@keyframes intro-pop { 0% { transform: scale(0); } 60% { transform: scale(1.3); } 100% { transform: scale(1); } }
@keyframes intro-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.hm-doors {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(16px, 2.4vw, 28px);
}
@media (min-width: 860px) { .hm-doors { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }

.hm-door {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 28px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text);
  text-decoration: none;
}
.hm-door:focus-visible { outline-offset: 6px; border-radius: 28px; }
.hm-door--nlink { --pick-color: var(--nlink-blue); }
.hm-door--games { --pick-color: var(--games-accent); }

.hm-door__stage {
  position: relative;
  height: clamp(240px, 21vw, 300px);
  overflow: hidden;
  isolation: isolate;
}
.hm-door__copy {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px clamp(22px, 2.8vw, 34px) 28px;
}
.hm-door__who { display: flex; align-items: center; gap: 10px; min-height: 34px; }
.hm-door__who .hm-brand { width: auto; }
.hm-door__who span { color: var(--text-muted); font-size: 0.875rem; font-weight: 600; }
.hm-door h2 {
  margin: 14px 0 6px;
  font-size: clamp(1.375rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hm-door p { margin: 0; color: var(--text-muted); font-size: 1rem; text-wrap: pretty; }
.hm-intro .hm-nw,
.hm-door .hm-nw { white-space: nowrap; }
.hm-door__go {
  margin-top: auto;
  padding-top: 18px;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.hm-door--nlink .hm-door__stage { background: var(--nlink-lilac); }
.hm-door--nlink .hm-door__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 260px;
  aspect-ratio: 1;
  left: -70px;
  bottom: -150px;
  border-radius: 50%;
  background: var(--nlink-yellow);
}
.hm-door__shot {
  position: absolute;
  left: 13%;
  top: 34px;
  width: 108%;
  max-width: none;
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(49, 111, 232, 0.18), 0 28px 50px -24px rgba(31, 63, 143, 0.45);
}
.hm-door__shot2 {
  position: absolute;
  left: 5%;
  top: 92px;
  width: 30%;
  border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05), 0 24px 40px -18px rgba(60, 40, 0, 0.5);
}
.hm-door--nlink .hm-door__who .hm-brand { height: 24px; }
.hm-door--nlink .hm-door__go { text-decoration-color: var(--nlink-blue); }

.hm-door--games .hm-door__stage { background: var(--mine-sky) var(--mine-bg) center / cover no-repeat; }
.hm-door__board {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -40px;
  grid-template-columns: repeat(9, 1fr);
  border-radius: 20px 20px 0 0;
  transform: rotate(-4deg);
  transform-origin: center bottom;
}
.hm-door__icon {
  position: absolute;
  right: 9%;
  top: 22px;
  width: clamp(130px, 13vw, 176px);
  border: 6px solid #fff;
  border-radius: 23%;
  box-shadow: 0 26px 40px -18px rgba(70, 40, 10, 0.6);
  transform: rotate(6deg);
}
.hm-door--games .hm-door__who .hm-brand { height: 34px; }
.hm-door--games .hm-door__go { text-decoration-color: #e0a100; }

.hm-together { padding-top: clamp(56px, 8vw, 96px); }
.hm-together__title {
  margin: 0 0 clamp(18px, 2.4vw, 26px);
  text-align: center;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: -0.025em;
}
.hm-together__grid { display: grid; gap: clamp(12px, 1.6vw, 18px); }
@media (min-width: 860px) { .hm-together__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.hm-together__item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 18px;
  padding: clamp(20px, 2.4vw, 28px) clamp(22px, 2.8vw, 34px);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text);
  text-decoration: none;
}
.hm-together__item:focus-visible { outline-offset: 6px; border-radius: 22px; }
.hm-together__item--nlink { --pick-color: var(--nlink-blue); }
.hm-together__item--games { --pick-color: var(--games-accent); }
.hm-together__tag { grid-column: 1; color: var(--text-muted); font-size: 0.8125rem; font-weight: 800; }
.hm-together__item strong { grid-column: 1; font-size: 1.1875rem; line-height: 1.35; font-weight: 800; letter-spacing: -0.02em; }
.hm-together__item p { grid-column: 1; margin: 0; color: var(--text-muted); font-size: 0.9375rem; line-height: 1.6; text-wrap: pretty; }
.hm-together__go {
  grid-column: 2;
  grid-row: 1 / span 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 800;
  line-height: 1.3;
  white-space: nowrap;
}
.hm-together__go svg { width: 16px; height: 16px; flex: none; }
.hm-together__item--nlink .hm-together__go { background: var(--nlink-blue); color: #fff; }
.hm-together__item--games .hm-together__go { background: var(--yellow); color: var(--text); }
@media (max-width: 559px) {
  .hm-together__item { grid-template-columns: minmax(0, 1fr); }
  .hm-together__go { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 10px; }
}
