:root {
  --bg: #0c1016;
  --panel: #111923;
  --panel-alt: #0f1620;
  --panel-strong: #132235;
  --line: #2d3b4c;
  --line-soft: #314054;
  --text: #eaf2ff;
  --muted: #a7b8cd;
  --accent: #d8e6f8;
  --accent-warm: #ffe082;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Noto Sans JP", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(38, 63, 91, 0.18), transparent 24%),
    linear-gradient(180deg, #0c1016 0%, #0b1118 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 28%);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-wrap {
  width: min(1080px, calc(100% - 24px));
  margin: 0 auto;
  padding: 20px 0 40px;
}

.pending-link:hover {
  color: var(--accent);
}

.main-content {
  display: grid;
  gap: 12px;
}

.section-block {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  padding: 24px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.section-header p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.profile-layout {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.profile-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.profile-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #ffffff;
  overflow: hidden;
}

.profile-face {
  display: block;
  width: 100%;
  height: 100%;
  flex: none;
  object-fit: cover;
}

.profile-body p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.social-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--panel-strong);
  color: var(--accent);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.social-link:hover {
  background: #1b3048;
  border-color: #35506c;
  transform: translateY(-1px);
}

.social-link svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: currentColor;
}

.works-list {
  display: grid;
  gap: 12px;
}

.work-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-alt);
}

.work-entry.featured {
  background: linear-gradient(180deg, rgba(19, 34, 53, 0.96), rgba(15, 22, 32, 0.96));
}

.work-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  min-height: 116px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(27, 48, 72, 0.72), rgba(17, 25, 35, 0.9));
  color: var(--accent);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
}

.image-thumb {
  overflow: hidden;
  padding: 0;
}

.image-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.contain-thumb {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0d131b;
}

.contain-thumb img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #0d131b;
}

.focus-face-thumb img {
  object-position: center;
  transform: translateY(-14%);
}

.video-thumb {
  aspect-ratio: 16 / 10;
  min-height: 116px;
}

.video-thumb img {
  object-fit: cover;
  object-position: center center;
  transform: none;
}

.contain-thumb.video-thumb img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover !important;
  object-position: center center !important;
  background: #0d131b;
}

.work-body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.work-meta {
  margin: 8px 0 10px;
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.work-body p {
  margin: 0 0 10px;
  color: var(--muted);
  line-height: 1.8;
}

.pending-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--accent-warm);
  font-weight: 600;
}

@media (max-width: 760px) {
  .site-wrap {
    width: min(100% - 16px, 1080px);
    padding-top: 8px;
    padding-bottom: 24px;
  }

  .profile-layout,
  .work-entry {
    grid-template-columns: 1fr;
  }

  .section-block {
    padding: 18px;
  }

  .profile-icon {
    width: 112px;
    height: 112px;
  }
}
