/* STRQX 天体ナビ HP */
:root {
  --ink: #1a1c22;
  --muted: #5a616e;
  --faint: #9aa0ab;
  --bg: #e8e8e8;
  --line: rgba(26, 28, 34, 0.12);
  --cyan: #00b4d8;
  --blue: #3a6ff0;
  --purple: #7a3ff0;
  --grad: linear-gradient(90deg, #00b4d8, #3a6ff0, #7a3ff0);
  --serif: "Noto Serif JP", "Hiragino Mincho ProN", serif;
  --sans: "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif;
  --latin: "Jost", sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --soft: cubic-bezier(0.22, 0.61, 0.36, 1);
  --out: cubic-bezier(0.4, 0, 0.2, 1);
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
}
button {
  font: inherit;
  color: inherit;
}
a {
  color: var(--blue);
}
a:hover {
  color: var(--purple);
}
/* stage */
.cosmos {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.85;
  letter-spacing: 0.01em;
  isolation: isolate;
  outline: none;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.cosmos.is-dragging {
  cursor: grabbing;
}
.cosmos.is-focus {
  cursor: auto;
  touch-action: auto;
}
.glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.glow--a {
  top: -300px;
  left: -280px;
  width: 960px;
  height: 960px;
  background: radial-gradient(
    circle,
    rgba(0, 180, 216, 0.16),
    rgba(0, 180, 216, 0.05) 45%,
    rgba(0, 180, 216, 0) 70%
  );
  filter: blur(60px);
}
.glow--b {
  bottom: -320px;
  right: -280px;
  width: 1000px;
  height: 1000px;
  background: radial-gradient(
    circle,
    rgba(122, 63, 240, 0.14),
    rgba(58, 111, 240, 0.05) 45%,
    rgba(122, 63, 240, 0) 70%
  );
  filter: blur(70px);
}
.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(
      circle at 12% 22%,
      rgba(90, 97, 110, 0.45) 0 1px,
      transparent 1.6px
    ),
    radial-gradient(
      circle at 67% 64%,
      rgba(90, 97, 110, 0.32) 0 0.9px,
      transparent 1.5px
    ),
    radial-gradient(
      circle at 38% 81%,
      rgba(58, 111, 240, 0.5) 0 1.2px,
      transparent 1.9px
    ),
    radial-gradient(
      circle at 84% 37%,
      rgba(122, 63, 240, 0.42) 0 1.1px,
      transparent 1.8px
    ),
    radial-gradient(
      circle at 26% 49%,
      rgba(90, 97, 110, 0.38) 0 1.3px,
      transparent 2px
    ),
    radial-gradient(
      circle at 55% 12%,
      rgba(0, 180, 216, 0.45) 0 1px,
      transparent 1.7px
    ),
    radial-gradient(
      circle at 73% 88%,
      rgba(90, 97, 110, 0.28) 0 0.8px,
      transparent 1.4px
    );
  background-size:
    280px 250px,
    380px 350px,
    470px 415px,
    550px 530px,
    640px 590px,
    720px 670px,
    235px 215px;
}
.dim {
  opacity: 1;
  transition: opacity 0.6s var(--soft);
}
.cosmos.is-focus .dim {
  opacity: 0;
}
/* orbits */
.orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbits--back {
  z-index: 4;
}
.orbits svg {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
}
.orbit {
  vector-effect: non-scaling-stroke;
  stroke-width: 1px;
}
.orbit {
  stroke: rgba(26, 28, 34, 0.16);
  transition: stroke 0.5s;
}
.cosmos[data-hover="works"] .orbit[data-k="works"],
.cosmos[data-hover="portfolio"] .orbit[data-k="portfolio"],
.cosmos[data-hover="contact"] .orbit[data-k="contact"] {
  stroke: rgba(58, 111, 240, 0.7);
  stroke-width: 1.5px;
}
/* bodies — JS sets transform / z-index / scale every frame */
.body {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  z-index: 30;
}
.body--sun {
  z-index: 20;
}
.body__fade {
  opacity: 1;
  transition: opacity 0.6s var(--soft);
}
.cosmos.is-focus .body:not(.is-focused) .body__fade {
  opacity: 0;
}
.body__depth {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
}
.body__sphere {
  position: absolute;
  left: 0;
  top: 0;
  translate: -50% -50%;
  z-index: 1;
  pointer-events: none;
  transition:
    scale 0.6s var(--soft),
    width 1.15s var(--ease),
    height 1.15s var(--ease);
}
.sun-glow {
  position: absolute;
  inset: -62%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(58, 111, 240, 0.28) 0%,
    rgba(122, 63, 240, 0.13) 42%,
    rgba(122, 63, 240, 0) 70%
  );
}
.body--sun .sun-glow {
  display: none;
}
.sun-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 46%,
    #7fe9ff 0%,
    #00b4d8 26%,
    #3a6ff0 58%,
    #7a3ff0 86%,
    rgba(122, 63, 240, 0) 100%
  );
}
.body__halo {
  position: absolute;
  inset: -90%;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s;
}
.body__ball {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}
.body--works .body__halo {
  background: radial-gradient(
    circle,
    rgba(0, 180, 216, 0.32) 0%,
    rgba(0, 180, 216, 0.1) 40%,
    rgba(0, 180, 216, 0) 70%
  );
}
.body--works .body__ball {
  background: radial-gradient(
    circle at 34% 30%,
    #ffffff 0%,
    #ddf3f8 26%,
    #8fcfe0 68%,
    #4fa9c2 100%
  );
  box-shadow: 0 6px 16px rgba(26, 28, 34, 0.12);
}
.body--portfolio .body__halo {
  background: radial-gradient(
    circle,
    rgba(122, 63, 240, 0.28) 0%,
    rgba(122, 63, 240, 0.09) 40%,
    rgba(122, 63, 240, 0) 70%
  );
}
.body--portfolio .body__ball {
  background: radial-gradient(
    circle at 34% 30%,
    #ffffff 0%,
    #ece6fa 26%,
    #b9a6ee 68%,
    #8467db 100%
  );
  box-shadow: 0 8px 18px rgba(26, 28, 34, 0.12);
}
.body--contact .body__halo {
  background: radial-gradient(
    circle,
    rgba(58, 111, 240, 0.3) 0%,
    rgba(58, 111, 240, 0.09) 40%,
    rgba(58, 111, 240, 0) 70%
  );
}
.body--contact .body__ball {
  background: radial-gradient(
    circle at 34% 30%,
    #ffffff 0%,
    #e1eafc 26%,
    #9db7f4 66%,
    #5579e0 100%
  );
  box-shadow: 0 8px 20px rgba(26, 28, 34, 0.12);
}
.cosmos[data-hover="works"] .body--works .body__halo,
.cosmos[data-hover="portfolio"] .body--portfolio .body__halo,
.cosmos[data-hover="contact"] .body--contact .body__halo,
.body.is-focused .body__halo {
  opacity: 1;
}
.moon {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 30%,
    #ffffff 0%,
    #cfd1d6 60%,
    #9aa0ab 100%
  );
  pointer-events: none;
}
.moon-cta {
  display: block;
  border: 0;
  padding: 0;
  cursor: pointer;
  pointer-events: none;
  text-decoration: none;
}
.moon__bubble {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 14px);
  width: max-content;
  max-width: 190px;
  padding: 9px 13px;
  border: 1px solid rgba(26, 28, 34, 0.16);
  border-radius: 4px;
  background: rgba(248, 248, 248, 0.96);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.04em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(5px);
  transition: opacity 0.4s var(--soft), transform 0.4s var(--ease);
}
.moon__bubble::after {
  position: absolute;
  right: 12px;
  bottom: -5px;
  width: 8px;
  height: 8px;
  border-right: 1px solid rgba(26, 28, 34, 0.16);
  border-bottom: 1px solid rgba(26, 28, 34, 0.16);
  background: rgba(248, 248, 248, 0.96);
  content: "";
  transform: rotate(45deg);
}
.body--contact.is-focused .moon-cta {
  opacity: 1;
  pointer-events: auto;
}
.body--contact.is-focused .moon-cta:hover .moon__bubble,
.body--contact.is-focused .moon-cta:focus-visible .moon__bubble {
  opacity: 1;
  transform: none;
}
.body__hit {
  position: absolute;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
/* labels */
.body__label {
  position: absolute;
  left: 30px;
  top: 0;
  translate: 0 -50%;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s;
}
.body__label--below {
  left: 0;
  translate: -50% 0;
  flex-direction: column;
  gap: 0;
}
.body__tick {
  width: 16px;
  height: 1px;
  background: var(--faint);
}
.body__name {
  position: relative;
  font-family: var(--latin);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  transition: color 0.3s;
}
.body__sub {
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--muted);
  opacity: 0;
  transition: opacity 0.4s;
}
.body--planet .body__sub {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 2px;
  white-space: nowrap;
}
.cosmos[data-label="hover"] .body__label {
  opacity: 0;
}
.cosmos[data-hover="about"] .body--sun .body__label,
.cosmos[data-hover="works"] .body--works .body__label,
.cosmos[data-hover="portfolio"] .body--portfolio .body__label,
.cosmos[data-hover="contact"] .body--contact .body__label {
  opacity: 1;
}
.cosmos[data-hover="about"] .body--sun .body__sub,
.cosmos[data-hover="works"] .body--works .body__sub,
.cosmos[data-hover="portfolio"] .body--portfolio .body__sub,
.cosmos[data-hover="contact"] .body--contact .body__sub {
  opacity: 1;
}
.cosmos.is-focus .body__label {
  opacity: 0;
}
.cosmos[data-hover="about"] [data-ix="about"],
.cosmos[data-hover="works"] [data-ix="works"],
.cosmos[data-hover="portfolio"] [data-ix="portfolio"],
.cosmos[data-hover="contact"] [data-ix="contact"] {
  color: var(--blue);
}
/* chrome */
.logo {
  position: absolute;
  left: 48px;
  top: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 60;
  pointer-events: none;
}
.logo img {
  width: 26px;
  height: 26px;
  display: block;
}
.logo span {
  font-family: var(--latin);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 0.18em;
  line-height: 1;
}
.hint {
  position: absolute;
  right: 48px;
  top: 44px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  z-index: 40;
  pointer-events: none;
  transition: opacity 0.5s;
}
.hint__mark {
  display: flex;
  align-items: center;
  gap: 6px;
}
.hint__mark span {
  width: 14px;
  height: 1px;
  background: var(--muted);
}
.hint__mark i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue);
}
.hint__mob {
  display: none;
}
.hero {
  position: absolute;
  left: 48px;
  bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  z-index: 55;
  pointer-events: none;
  transition: opacity 0.5s;
}
.hero__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 38px;
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.hero__title span,
.dest__title span,
.dest__body span {
  display: block;
  white-space: nowrap;
}
.hero__tag {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--latin);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.16em;
  color: var(--muted);
}
.grad-rule {
  width: 36px;
  height: 2px;
  background: var(--grad);
}
.cosmos.is-focus .hint,
.cosmos.is-focus .hero,
.cosmos.is-focus .site-footer {
  opacity: 0;
}
.site-footer {
  position: absolute;
  right: 48px;
  bottom: 16px;
  z-index: 40;
  color: var(--faint);
  font-family: var(--latin);
  font-size: 9px;
  letter-spacing: 0.12em;
}
.index {
  position: absolute;
  right: 48px;
  bottom: 44px;
  width: 232px;
  display: flex;
  flex-direction: column;
  z-index: 40;
  transition: opacity 0.5s;
}
.index__head {
  font-family: var(--latin);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 10px;
}
.index__row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  height: 34px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink);
  transition: color 0.3s;
}
.index__row:last-child {
  border-bottom: 1px solid var(--line);
}
.index__en {
  color: var(--faint);
  letter-spacing: 0.16em;
}
.tabbar {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  display: none;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  z-index: 40;
  border-top: 1px solid var(--line);
  transition: opacity 0.5s;
}
.tabbar button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 56px;
  padding: 6px 0 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--latin);
}
.tabbar button span:first-child {
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.2em;
  color: var(--faint);
}
.tabbar__planet {
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 3px;
  border-radius: 50%;
}
.tabbar__planet--sun {
  background: radial-gradient(circle at 35% 30%, #7fe9ff 0%, #00b4d8 32%, #3a6ff0 65%, #7a3ff0 100%);
}
.tabbar__planet--works {
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #ddf3f8 30%, #8fcfe0 70%, #4fa9c2 100%);
}
.tabbar__planet--portfolio {
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #ece6fa 30%, #b9a6ee 70%, #8467db 100%);
}
.tabbar__planet--contact {
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #e1eafc 30%, #9db7f4 70%, #5579e0 100%);
}
.tabbar button span:last-child {
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.cosmos.is-focus .index,
.cosmos.is-focus .tabbar {
  opacity: 0;
  pointer-events: none;
}
/* panel */
.panel {
  position: absolute;
  left: clamp(240px, 20vw, 480px);
  top: 0;
  bottom: 0;
  width: min(620px, 52%);
  display: flex;
  align-items: center;
  z-index: 50;
  opacity: 0;
  transform: translateX(-28px);
  pointer-events: none;
  transition:
    opacity 0.35s var(--out),
    transform 0.5s var(--out);
}
.cosmos.is-focus .panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  transition:
    opacity 0.8s var(--soft) 0.5s,
    transform 1.1s var(--ease) 0.5s;
}
.panel__scroll {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding: 48px 0;
  touch-action: pan-y;
  user-select: text;
  -webkit-user-select: text;
  cursor: auto;
}
.panel__inner {
  display: flex;
  flex-direction: column;
  gap: 44px;
  align-items: flex-start;
}
.dest {
  display: none;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}
.cosmos[data-last="about"] .dest--about,
.cosmos[data-last="works"] .dest--works,
.cosmos[data-last="portfolio"] .dest--portfolio,
.cosmos[data-last="contact"] .dest--contact {
  display: flex;
}
.dest--works {
  gap: 28px;
  max-width: 480px;
}
.dest--portfolio {
  max-width: 500px;
}
.dest--contact {
  gap: 28px;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--latin);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow__rule {
  width: 28px;
  height: 1px;
  background: var(--muted);
}
.eyebrow__en {
  color: var(--faint);
}
.dest__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(22px, 5.6vw, 38px);
  line-height: 1.65;
  letter-spacing: 0.03em;
}
.grad-text {
  font-style: normal;
  background: linear-gradient(90deg, #00b4d8, #7a3ff0);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.dest__body {
  margin: 0;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 2.2;
  color: #2a2d35;
}
.dest__note {
  margin: 0;
  font-size: clamp(14px, 3.8vw, 16px);
  line-height: 2;
  color: var(--muted);
}
.svc {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(26, 28, 34, 0.1);
}
.svc__row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 8px;
  padding: 20px 0;
  border-top: 1px solid rgba(26, 28, 34, 0.1);
}
.svc__no {
  font-family: var(--latin);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.12em;
  color: var(--faint);
  padding-top: 9px;
}
.svc__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.svc__head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.svc__name {
  font-family: var(--serif);
  font-size: clamp(20px, 5vw, 26px);
  line-height: 1.5;
  letter-spacing: 0.03em;
}
.svc__en {
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--faint);
}
.svc__copy {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
}
.thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
}
.thumb {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
}
.thumb__img {
  position: relative;
  display: block;
  aspect-ratio: 16/9;
  border-radius: 4px;
  background: #e0e0e0;
  box-shadow: inset 0 0 0 1px rgba(26, 28, 34, 0.08);
  overflow: hidden;
}
.thumb__img::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}
.thumb:hover .thumb__img::after {
  transform: scaleX(1);
}
.thumb__cap {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}
.portfolio-tabs {
  display: flex;
  gap: 22px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.portfolio-sticky {
  z-index: 4;
  width: 100%;
}
.portfolio-sticky .portfolio-tabs {
  margin-top: 10px;
}
.portfolio-tab {
  position: relative;
  padding: 0 0 10px;
  border: 0;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-family: var(--latin);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.portfolio-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--grad);
  content: "";
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.portfolio-tab.is-active {
  color: var(--ink);
}
.portfolio-tab.is-active::after {
  transform: scaleX(1);
}
.portfolio-pane[hidden] {
  display: none;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 16px;
  width: 100%;
}
.portfolio-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}
.portfolio-thumb {
  position: relative;
  display: flex;
  aspect-ratio: 16 / 10;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(26, 28, 34, 0.12);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.portfolio-card:hover .portfolio-thumb,
.portfolio-card:focus-visible .portfolio-thumb {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 28, 34, 0.14), inset 0 0 0 1px rgba(58, 111, 240, 0.35);
}
.portfolio-thumb--film {
  background: linear-gradient(135deg, #071d2b, #147d9b 48%, #7542cc);
}
.portfolio-thumb--night {
  background: linear-gradient(145deg, #101326, #272e65 55%, #d76fbd);
}
.portfolio-thumb--fragment {
  background: radial-gradient(circle at 70% 30%, #d7f5ff 0 5%, transparent 6%), linear-gradient(135deg, #111827, #5369dd);
}
.portfolio-thumb--web {
  background: linear-gradient(135deg, #e8f7fa, #a8c9f8 52%, #c4a7ef);
}
.portfolio-thumb--field {
  background: linear-gradient(135deg, #f0eee8, #d6d9ff 55%, #8ca8ed);
}
.portfolio-thumb--mono {
  background: linear-gradient(135deg, #f3f3f0, #a4a9b7);
}
.portfolio-thumb--social {
  background: linear-gradient(135deg, #00b4d8, #3a6ff0 52%, #7a3ff0);
}
.portfolio-thumb--object {
  background: radial-gradient(circle at 52% 45%, #ffffff 0 9%, #79d9ec 10% 23%, transparent 24%), linear-gradient(135deg, #171a2b, #5f62bd);
}
.portfolio-thumb--signal {
  background: repeating-linear-gradient(135deg, #e8e8e8 0 8px, #c5c8d0 9px 10px);
}
.portfolio-thumb__play {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  text-indent: 2px;
  background: rgba(14, 22, 38, 0.28);
}
.portfolio-thumb__scan,
.portfolio-thumb__grid,
.portfolio-thumb__webline,
.portfolio-thumb__fieldcard,
.portfolio-thumb__signal {
  position: absolute;
  inset: 16% 12%;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
.portfolio-thumb__scan {
  inset: auto 0 22%;
  border-width: 1px 0 0;
}
.portfolio-thumb__grid {
  background: linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
}
.portfolio-thumb__browser {
  position: absolute;
  inset: 12%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.64);
}
.portfolio-thumb__browser i {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin: 7px 0 0 5px;
  border-radius: 50%;
  background: var(--blue);
}
.portfolio-thumb__webline {
  inset: 52% 24% 25%;
  border-width: 1px 0 0;
}
.portfolio-thumb__fieldcard {
  inset: 35% 18% 18%;
  background: rgba(255, 255, 255, 0.4);
}
.portfolio-thumb__socialmark {
  font-family: var(--latin);
  font-size: 32px;
  font-weight: 500;
  color: #fff;
}
.portfolio-thumb__object {
  width: 42px;
  height: 42px;
  border-radius: 35% 65% 55% 45%;
  background: linear-gradient(135deg, #fff, #7fd8ec 42%, #3a6ff0);
  box-shadow: 10px 12px 0 rgba(122, 63, 240, 0.25);
  transform: rotate(-18deg);
}
.portfolio-card__title,
.portfolio-card__meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.portfolio-card__title {
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.portfolio-card__meta {
  color: var(--faint);
  font-size: 11px;
}
.portfolio-preview {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 10px solid #15171d;
  border-radius: 6px;
  background: rgba(244, 244, 244, 0.94);
  box-shadow: 0 18px 48px rgba(26, 28, 34, 0.28);
  opacity: 0;
  pointer-events: none;
  transform: translate(-9999px, -9999px) scale(0.96);
  transition: opacity 0.35s var(--soft), transform 0.45s var(--ease);
}
.portfolio-preview.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, 0) scale(1);
}
.portfolio-preview__close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #8f96a3;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
}
.portfolio-preview__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.18em;
}
.portfolio-preview__eyebrow span {
  width: 18px;
  height: 1px;
  background: var(--grad);
}
.portfolio-preview h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
}
.portfolio-preview__mock {
  display: grid;
  min-height: 132px;
  place-items: center;
  overflow: hidden;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: #172034;
}
.portfolio-preview__mock--video {
  background: linear-gradient(135deg, #071d2b, #00b4d8 50%, #7a3ff0);
}
.portfolio-preview__mock--web {
  background: linear-gradient(135deg, #effaff, #a8c9f8 55%, #c4a7ef);
}
.portfolio-preview__mock--web::before {
  width: 55%;
  height: 55%;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 12px 0 rgba(255, 255, 255, 0.25);
  content: "";
}
.portfolio-preview__mock--other {
  background: radial-gradient(circle at 50% 50%, #ffffff 0 8%, #7fd8ec 9% 20%, transparent 21%), linear-gradient(135deg, #171a2b, #5f62bd);
}
.portfolio-preview__mock--video::before {
  content: "▶";
  color: #fff;
  font-size: 24px;
  text-indent: 4px;
}
.portfolio-preview p {
  margin: 0;
  color: var(--faint);
  font-family: var(--latin);
  font-size: 10px;
  letter-spacing: 0.08em;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}
.contact-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 14px;
}
.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}
.contact-form__field span {
  letter-spacing: 0.08em;
}
.contact-form__field b {
  color: var(--purple);
  font-weight: 400;
}
.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  border: 1px solid rgba(26, 28, 34, 0.18);
  border-radius: 3px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  font: inherit;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.contact-form__field textarea {
  min-height: 118px;
  resize: vertical;
}
.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(58, 111, 240, 0.1);
}
.contact-form__field--full {
  grid-column: 1 / -1;
}
.contact-form__submit {
  align-self: flex-start;
  border: 0;
  cursor: pointer;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 18px 40px;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--soft),
    box-shadow 0.3s var(--soft),
    color 0.15s;
}
.btn:active {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 6px 18px rgba(58, 111, 240, 0.16);
}
.btn--primary:hover {
  color: #fff;
  box-shadow: 0 10px 32px rgba(58, 111, 240, 0.32);
}
.btn--secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(26, 28, 34, 0.28);
}
.btn--secondary:hover {
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--blue);
}
.back {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: var(--latin);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.3s;
}
.back:hover {
  color: var(--blue);
}
.back span {
  width: 28px;
  height: 1px;
  background: currentColor;
}
.portfolio-back {
  margin-top: 32px;
}
/* SP */
@media (max-width: 1024px) {
  .logo {
    left: 20px;
    top: 22px;
  }
  .hint {
    right: 20px;
    top: 26px;
    font-size: 10px;
    letter-spacing: 0.22em;
  }
  .hint__desk {
    display: none;
  }
  .hint__mob {
    display: inline;
  }
  .hero {
    left: 20px;
    top: 76px;
    bottom: auto;
    gap: 12px;
  }
  .site-footer {
    left: 0;
    right: 0;
    bottom: calc(16px + env(safe-area-inset-bottom));
    font-size: 8px;
    text-align: center;
  }
  .hero__title {
    font-size: 26px;
  }
  .body__name {
    font-size: 10px;
  }
  .body__label {
    display: none;
  }
  .body__sub {
    display: none;
  }
  .index {
    display: none;
  }
  .tabbar {
    bottom: calc(64px + env(safe-area-inset-bottom));
    display: grid;
  }
  .panel {
    left: 20px;
    right: 20px;
    width: auto;
    top: 33%;
    align-items: flex-start;
    transform: translateY(24px);
  }
  .panel__scroll {
    padding: 8px 0 40px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .dest--works {
    align-self: center;
  }
  .dest--about,
  .dest--portfolio,
  .dest--contact {
    align-self: center;
    max-width: 480px;
  }
  .contact-form__grid {
    grid-template-columns: 1fr;
  }
  .contact-form__field--full {
    grid-column: auto;
  }
  .contact-form__submit {
    align-self: stretch;
  }
  .panel__inner > .back {
    align-self: center;
    width: min(480px, 100%);
    justify-content: flex-start;
  }
  .cosmos[data-last="portfolio"] .panel__scroll {
    overflow: hidden;
  }
  .cosmos[data-last="portfolio"] .portfolio-panels {
    position: fixed;
    top: calc(33% + 100px);
    right: 20px;
    bottom: calc(72px + env(safe-area-inset-bottom));
    left: 20px;
    z-index: 50;
    overflow-y: auto;
    padding: 0 0 40px;
    overscroll-behavior: contain;
  }
  .portfolio-sticky {
    position: fixed;
    top: 33%;
    right: 20px;
    left: 20px;
    z-index: 55;
    width: auto;
    padding: 8px 0 12px;
    background: transparent;
    border: 0;
  }
  .portfolio-preview {
    padding: 14px;
  }
  .btn {
    padding: 18px 28px;
    font-size: 16px;
  }
}
@media (min-width: 760px) and (max-width: 1024px) {
  .portfolio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition-duration: 0.01ms !important;
  }
}
