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

html {
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "M PLUS 2", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
    "Noto Sans JP", Meiryo, sans-serif;
  font-weight: 300;
  font-feature-settings: "palt" 1;
  line-height: 1.75;
  color: #f2f5f9;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.75rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2rem)
    clamp(2.75rem, 6vw, 4rem);
  overflow-x: hidden;
  background: radial-gradient(
      ellipse 100% 80% at 50% -35%,
      rgba(74, 120, 182, 0.14),
      transparent 52%
    ),
    linear-gradient(180deg, #101828 0%, #141f31 46%, #0f1726 100%);
}

.hero__backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: auto;
  height: min(100vh, 900px);
  height: min(100svh, 900px);
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__photo {
  position: absolute;
  inset: 0;
}

.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    125deg,
    rgba(14, 24, 38, 0.72) 0%,
    rgba(35, 50, 72, 0.22) 48%,
    rgba(22, 32, 50, 0.62) 100%
  );
}

.hero__photo-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(4.5rem, 14vmin, 7.5rem);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(16, 24, 40, 0.55) 45%,
    rgba(17, 25, 40, 0.97) 100%
  );
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(1080px, 94vw);
  margin-inline: auto;
  text-align: center;
}

.hero__intro {
  max-width: 40rem;
  margin-inline: auto;
  padding-top: clamp(0.5rem, 4vmin, 1.75rem);
  padding-bottom: 1.75rem;
  text-align: center;
}

.hero__brand {
  margin: 0 0 0.35rem;
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-weight: 200;
  letter-spacing: 0.14em;
  font-size: clamp(2.1rem, 6.5vw, 3.5rem);
  line-height: 1.05;
}

.hero__tagline {
  margin: 0 0 1.5rem;
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-weight: 300;
  font-size: clamp(1.02rem, 3.1vw, 1.45rem);
  line-height: 1.4;
  letter-spacing: 0.045em;
}

.hero__lead {
  --tag-to-ja-gap: clamp(1.5rem, 4.8vmin, 2.35rem);
  margin: 0 0 calc(3.65rem - var(--tag-to-ja-gap));
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  font-weight: 300;
  letter-spacing: 0.04em;
  opacity: 0.94;
}

.hero__lead .line-tag {
  display: block;
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-weight: 300;
  letter-spacing: 0.08em;
  margin-bottom: var(--tag-to-ja-gap);
  opacity: 1;
}


.works {
  position: relative;
  z-index: 1;
  margin: 1.75rem 0 0;
  padding: 1.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  text-align: center;
  --works-max: 1040px;
  --works-gap: clamp(0.75rem, 2vw, 1rem);
}

.works__intro {
  margin: 0 auto 1.6rem;
  max-width: 28rem;
  text-align: center;
}

.works__kicker {
  margin: 0 0 0.42rem;
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-size: 0.6rem;
  font-weight: 300;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: rgba(229, 236, 246, 0.48);
}

.works__title {
  margin: 0;
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-weight: 200;
  font-size: clamp(1.65rem, 3.6vw, 2.05rem);
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  line-height: 1.1;
}

.works__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--works-gap);
  width: 100%;
  max-width: var(--works-max);
  margin-inline: auto;
  align-items: stretch;
}

.works-cell {
  display: flex;
  min-width: 0;
  min-height: 100%;
}

.works-cell--full {
  grid-column: 1 / -1;
}

.works-cell .works-card {
  flex: 1;
}

.works-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  background: rgba(8, 14, 24, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  transition: transform 0.22s ease, border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.works-card:hover {
  transform: translateY(-3px);
  border-color: rgba(168, 210, 255, 0.35);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.works-card:focus-visible {
  outline: 2px solid rgba(168, 210, 255, 0.95);
  outline-offset: 3px;
}

.works-card--magazine {
  flex-direction: row;
  width: 100%;
  align-items: stretch;
}

.works-card--magazine:hover {
  transform: translateY(-2px);
}

.works-card__thumb {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #070d14;
}

.works-card--magazine .works-card__thumb {
  flex: 0 1 34%;
  min-height: 8.5rem;
  max-height: 12rem;
  aspect-ratio: auto;
}

.works-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88);
  transition: transform 0.4s ease, filter 0.35s ease;
}

.works-card__thumb--github {
  display: flex;
  align-items: center;
  justify-content: center;
}

.works-card__thumb--github img {
  width: clamp(4rem, 42%, 5.85rem);
  height: auto;
  max-height: 58%;
  object-fit: contain;
  filter: invert(1) saturate(0) opacity(0.88);
  transition: transform 0.4s ease, filter 0.35s ease, opacity 0.35s ease;
}

.works-card:hover .works-card__thumb img {
  transform: scale(1.04);
  filter: saturate(1);
}

.works-card:hover .works-card__thumb--github img {
  transform: scale(1.06);
  filter: invert(1) saturate(0) opacity(1);
}

.works-card__meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
  padding: 1rem 1.08rem 1.12rem;
  min-width: 0;
  text-align: center;
  align-items: center;
}

.works-card__pill {
  align-self: center;
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(248, 250, 255, 0.88);
}

.works-card__pill--ghost {
  opacity: 0.5;
}

.works-card--magazine .works-card__pill {
  border-color: rgba(154, 200, 255, 0.45);
  color: #cce4ff;
}

.works-card__title {
  margin: 0;
  font-family: inherit;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.42;
}

.works-card__paren {
  font-weight: 300;
  opacity: 0.85;
}

.works-card__desc {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.62;
  font-weight: 300;
  opacity: 0.7;
}

.works__foot {
  margin: 1.5rem 0 0;
  text-align: center;
}

.works__foot-link {
  font-family: Outfit, "M PLUS 2", sans-serif;
  font-size: 0.78rem;
  font-weight: 300;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: rgba(195, 220, 255, 0.95);
  border-bottom: 1px solid rgba(195, 220, 255, 0.35);
  padding-bottom: 0.15rem;
}

.works__foot-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

@media (max-width: 900px) {
  .works__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .works__grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .hero__backdrop {
    height: min(92vh, 780px);
    height: min(92svh, 780px);
  }

  .works-card--magazine {
    flex-direction: column;
  }

  .works-card--magazine .works-card__thumb {
    flex: none;
    max-height: none;
    aspect-ratio: 16 / 10;
  }
}

.social-links {
  margin: 2.25rem auto 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}


.social-links li {
  display: flex;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  color: inherit;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
}

.social-links svg {
  fill: currentColor;
}

.social-links a[aria-label*="X"] {
  color: #000;
}

.social-links a[aria-label*="Facebook"] {
  color: #1877f2;
}

.social-links a[aria-label*="note"] {
  color: #000;
}

ruby rt {
  font-size: 0.52em;
  font-weight: 300;
  letter-spacing: 0.02em;
}
