:root {
  --bg: #f6f6f2;
  --paper: #ffffff;
  --ink: #101010;
  --muted: #6f6f68;
  --line: #deded7;
  --soft: #ecece6;
  --accent: #1f3f39;
  --warm: #b66a3c;
  --error: #9a2424;
  --max: 1160px;
  --mx: 50vw;
  --my: 20vh;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(31, 63, 57, 0.08), transparent 23rem),
    linear-gradient(90deg, rgba(16, 16, 16, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 16, 16, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
  line-height: 1.85;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: -18%;
  z-index: -1;
  background:
    linear-gradient(112deg, transparent 0 42%, rgba(31, 63, 57, 0.038) 42% 42.16%, transparent 42.16%),
    linear-gradient(248deg, transparent 0 66%, rgba(182, 106, 60, 0.035) 66% 66.14%, transparent 66.14%);
  content: "";
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}

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

img,
video {
  display: block;
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(16, 16, 16, 0.08);
  background: rgba(246, 246, 242, 0.78);
  backdrop-filter: blur(22px) saturate(1.16);
}

.header-inner,
.page,
.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand::before {
  width: 8px;
  height: 8px;
  border: 1px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.nav {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.nav a {
  position: relative;
  padding: 9px 0;
}

.nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  min-height: calc(100svh - 72px);
  align-items: center;
  gap: 56px;
  padding: 82px 0 72px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.98;
  text-wrap: balance;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3.8rem, 8vw, 7.4rem);
}

.page-title {
  max-width: 12ch;
  font-size: clamp(3.2rem, 8vw, 7.2rem);
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  font-size: clamp(1.18rem, 2vw, 1.8rem);
  line-height: 1.55;
}

.body-text,
.section-text {
  max-width: 760px;
  color: #30302c;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
}

.hero-card {
  position: relative;
  min-height: 520px;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.66)),
    var(--paper);
  box-shadow: 0 36px 90px rgba(16, 16, 16, 0.08);
  overflow: hidden;
  animation: float 7s ease-in-out infinite;
}

.hero-card::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 42%, rgba(16, 16, 16, 0.04) 42% 43%, transparent 43%),
    repeating-linear-gradient(180deg, rgba(16, 16, 16, 0.045) 0 1px, transparent 1px 42px);
  content: "";
}

.hero-card-content {
  position: absolute;
  inset: 42px;
  display: grid;
  align-content: end;
}

.hero-card-content span {
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
}

.hero-card-content strong {
  display: block;
  max-width: 8ch;
  margin-top: 18px;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1;
}

.section,
.page-hero {
  border-top: 1px solid var(--line);
  padding: 94px 0;
}

.page-hero {
  min-height: 38svh;
  border-top: 0;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.38fr) minmax(0, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.section h2 {
  font-size: clamp(2.6rem, 7vw, 6.2rem);
}

.grid-3,
.work-grid,
.daily-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
}

.card,
.work-card,
.daily-card {
  position: relative;
  min-height: 270px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.78);
  overflow: hidden;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
  transition: transform 240ms ease, background 220ms ease, box-shadow 220ms ease;
}

.card:hover,
.work-card:hover,
.daily-card:hover {
  z-index: 1;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(16, 16, 16, 0.09);
}

.card span,
.work-card span {
  display: block;
  margin-bottom: 44px;
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.8rem;
}

.card h3,
.work-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.08;
}

.work-meta {
  margin-top: 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.wide-image,
.secret-image,
.daily-photo {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  box-shadow: 0 30px 80px rgba(16, 16, 16, 0.07);
}

.secret-zone {
  padding-bottom: 110px;
}

.secret-image {
  cursor: default;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.secret-image:active {
  transform: scale(0.997);
}

.staff-gate {
  display: none;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.staff-gate.is-visible {
  display: block;
}

.staff-gate a {
  border-bottom: 1px solid currentColor;
}

.daily-card {
  min-height: auto;
  padding: 0;
}

.photo-wrap {
  position: relative;
}

.sticky-note {
  position: absolute;
  right: 8%;
  bottom: 14%;
  padding: 10px 12px;
  background: #f4de80;
  box-shadow: 0 8px 20px rgba(16, 16, 16, 0.16);
  color: #2a2515;
  font-size: clamp(0.68rem, 1.2vw, 0.86rem);
  font-weight: 700;
  transform: rotate(-4deg);
}

.form-shell,
.staff-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  gap: 64px;
  border-top: 1px solid var(--line);
  padding: 76px 0 108px;
}

.form {
  display: grid;
  gap: 18px;
}

.form,
.staff-panel,
.search-panel,
.notice-panel,
.file-panel,
.orientation-panel {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 30px 80px rgba(16, 16, 16, 0.06);
  padding: clamp(24px, 4vw, 42px);
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  outline: none;
  padding: 15px 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

textarea {
  min-height: 170px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 0 18px 50px rgba(16, 16, 16, 0.07);
}

.button-row,
.hint-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 12px 18px;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  background: transparent;
  color: var(--ink);
  transform: translateY(-2px);
}

.button.secondary {
  background: transparent;
  color: var(--ink);
}

.button.secondary:hover {
  background: var(--ink);
  color: var(--paper);
}

.message {
  min-height: 28px;
  color: var(--error);
  font-size: 0.92rem;
}

.video-wrap {
  position: relative;
  display: grid;
  min-height: 340px;
  place-items: center;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(16, 16, 16, 0.06), transparent 48%),
    #fff;
  overflow: hidden;
}

.video-wrap video {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.video-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.video-wrap.has-video .video-fallback {
  display: none;
}

.orientation-meta,
.file-meta {
  display: grid;
  gap: 1px;
  margin: 28px 0;
  border: 1px solid var(--line);
  background: var(--line);
}

.meta-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.78);
}

.internal-label {
  display: inline-flex;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.78rem;
  padding: 5px 8px;
}

.staff-home {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.62fr);
  gap: 28px;
  padding-bottom: 108px;
}

.search-result {
  display: none;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: #fff;
}

.search-result.is-visible {
  display: block;
}

.result-link {
  display: block;
  padding: 22px;
  transition: background 180ms ease;
}

.result-link:hover {
  background: var(--soft);
}

.notice-panel ul,
.file-panel ul {
  margin: 0;
  padding-left: 1.2em;
}

.notice-panel li + li,
.file-panel li + li {
  margin-top: 10px;
}

.file-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  gap: 48px;
  border-top: 1px solid var(--line);
  padding: 76px 0 108px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: "Courier New", monospace;
  font-size: 0.76rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 0;
}

.cursor-light {
  position: fixed;
  top: -190px;
  left: -190px;
  z-index: 1;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.58), rgba(31, 63, 57, 0.08) 36%, transparent 68%);
  mix-blend-mode: multiply;
  opacity: 0.44;
  pointer-events: none;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero > .reveal,
.page-hero.reveal {
  opacity: 1;
  transform: none;
}

@keyframes drift {
  from {
    transform: translate3d(-1.2%, -0.8%, 0) rotate(-0.35deg);
  }
  to {
    transform: translate3d(1.1%, 1%, 0) rotate(0.45deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 920px) {
  .hero,
  .section-head,
  .form-shell,
  .staff-shell,
  .staff-home,
  .file-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-card {
    min-height: 360px;
  }

  .grid-3,
  .work-grid,
  .daily-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header-inner,
  .page,
  .footer-inner {
    width: min(100% - 28px, var(--max));
  }

  .header-inner {
    min-height: 104px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 9px;
    font-size: 0.68rem;
  }

  h1 {
    font-size: clamp(3.7rem, 18vw, 6rem);
  }

  .section,
  .page-hero {
    padding: 70px 0;
  }

  .grid-3,
  .work-grid,
  .daily-grid {
    grid-template-columns: 1fr;
  }

  .button-row,
  .hint-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .meta-row,
  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .cursor-light {
    display: none;
  }
}
