:root {
  --ink: #241b18;
  --cream: #f3e1bd;
  --paper: #fff4dc;
  --red: #9f3729;
  --teal: #176f72;
  --cyan: #61e8f2;
  --gold: #d89b3c;
  --night: #171a2b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Yu Gothic", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  background: var(--night);
}
img { display: block; width: 100%; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px clamp(16px, 4vw, 60px);
  color: var(--cream);
  background: linear-gradient(rgba(23, 26, 43, .82), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}
.brand-logo {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, .42));
}
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand small { font-size: 8px; letter-spacing: .12em; }
.site-header nav { display: flex; gap: 4px; }
.site-header nav a {
  padding: 9px 13px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(243, 225, 189, .55);
  background: rgba(23, 26, 43, .55);
}
.site-header nav a:last-child { background: var(--red); }
.human-language-switch {
  display: grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: 0 8px;
  margin-left: 8px;
  padding: 7px 11px;
  color: var(--cream);
  cursor: pointer;
  border: 1px solid rgba(243, 225, 189, .72);
  background: rgba(23, 26, 43, .72);
  box-shadow: inset 0 0 0 1px rgba(97, 232, 242, .15);
}
.human-language-switch span {
  grid-row: 1 / 3;
  max-width: 74px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
}
.human-language-switch strong { color: var(--cyan); font-size: 11px; letter-spacing: .08em; }
.human-language-switch small { font-size: 7px; opacity: .72; }
.human-language-switch:hover,
.human-language-switch:focus-visible { border-color: var(--cyan); background: rgba(23, 111, 114, .82); }

.scene {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  color: #fff;
}
.scene-image, .scene-shade {
  position: absolute;
  inset: 0;
  height: 100%;
}
.scene-image { z-index: -3; object-fit: cover; }
.scene-shade { z-index: -2; }
.hero .scene-shade {
  background: linear-gradient(90deg, rgba(17, 18, 39, .82), rgba(17, 18, 39, .12) 60%, rgba(17, 18, 39, .05));
}
.hero {
  display: flex;
  align-items: center;
  padding: 130px clamp(20px, 7vw, 110px) 90px;
}
.hero-copy { width: min(670px, 100%); text-shadow: 0 3px 18px #191423; }
.eyebrow {
  margin: 0 0 16px;
  color: #ffcf72;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.eyebrow.dark { color: var(--red); }
h1, h2, p { overflow-wrap: anywhere; }
h1, h2 { margin: 0; line-height: 1.12; letter-spacing: 0; }
h1 { font-size: clamp(52px, 8vw, 118px); }
.hero-title {
  width: min-content;
  min-width: min(100%, 11em);
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-title span {
  display: block;
  white-space: nowrap;
}
h2 { font-size: clamp(42px, 6vw, 82px); }
.hero-copy > p:last-of-type {
  margin: 24px 0 30px;
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 700;
  line-height: 1.9;
}

.call-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 58px;
  padding: 12px 22px;
  color: var(--cream);
  font-weight: 900;
  background: linear-gradient(#315e5e, #174a4c);
  border: 3px solid #af7142;
  border-radius: 7px;
  box-shadow: inset 0 0 0 2px #1b2827, 0 8px 0 #201713, 0 12px 26px rgba(0,0,0,.35);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}
.call-button:hover {
  transform: translateY(4px);
  box-shadow: inset 0 0 0 2px #1b2827, 0 4px 0 #201713, 0 8px 18px rgba(0,0,0,.35);
}
.call-light {
  width: 13px;
  height: 13px;
  background: var(--cyan);
  border: 2px solid #102e30;
  border-radius: 50%;
  box-shadow: 0 0 14px var(--cyan);
  animation: blink 1.7s ease-in-out infinite;
}
.call-arrow { margin-left: 16px; font-size: 21px; }
.enter-lab {
  position: absolute;
  right: 34px;
  bottom: 32px;
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 900;
  border-bottom: 1px solid #fff;
}

.signal-bar {
  position: relative;
  z-index: 4;
  overflow: hidden;
  padding: 13px 0;
  color: var(--cream);
  background: var(--red);
  border-block: 3px solid #341d18;
}
.signal-bar div {
  display: flex;
  gap: 28px;
  align-items: center;
  width: max-content;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  animation: ticker 24s linear infinite;
}
.signal-bar b { color: #ffca6a; }

.story-scene {
  display: grid;
  grid-template-rows: auto auto;
  min-height: 0;
  padding: 0;
  overflow: visible;
  background: #0d1924;
}
.story-scene .scene-image {
  position: relative;
  inset: auto;
  z-index: 1;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #101522;
}
.story-panel {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  width: 100%;
  min-height: 190px;
  padding: 0;
  overflow: hidden;
  background: #0d1924;
  border: 0;
  border-top: 2px solid rgba(97, 232, 242, .75);
  border-bottom: 2px solid rgba(97, 232, 242, .42);
  border-left: 7px solid var(--cyan);
  box-shadow: inset 0 0 42px rgba(31, 159, 180, .1);
  backdrop-filter: none;
}
.report-title {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px clamp(24px, 4vw, 58px);
  background: #0d1924;
  box-shadow: 0 14px 20px #0d1924;
}
.report-title .eyebrow {
  margin-bottom: 10px;
}
.report-title h2 {
  font-size: clamp(32px, 4vw, 58px);
}
.report-ticker {
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: 20px;
  background:
    linear-gradient(90deg, #0d1924, transparent 14%, transparent 88%, #0d1924),
    rgba(16, 35, 47, .9);
}
.report-ticker div {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  padding-left: 38px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.8;
  white-space: nowrap;
  animation: report-scroll 26s linear infinite;
}
.report-ticker span {
  min-width: max-content;
}
.report-ticker b {
  color: var(--cyan);
  text-shadow: 0 0 12px var(--cyan);
}

.workshop {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr);
  min-height: 850px;
  background: var(--cream);
}
.workshop-image { min-height: 700px; overflow: hidden; }
.workshop-image img { height: 100%; object-fit: cover; }
.workshop-copy {
  align-self: center;
  container-type: inline-size;
  padding: clamp(50px, 7vw, 100px);
}
.stack-heading {
  word-break: keep-all;
  overflow-wrap: normal;
}
.stack-heading span {
  display: block;
  white-space: nowrap;
}
.service-heading {
  font-size: clamp(52px, 18cqi, 78px);
  line-height: 1.18;
}
.service-list { margin: 44px 0 0; padding: 0; list-style: none; }
.service-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px 12px;
  padding: 17px 0;
  border-top: 1px solid rgba(36, 27, 24, .35);
}
.service-list li:last-child { border-bottom: 1px solid rgba(36, 27, 24, .35); }
.service-list span {
  grid-row: span 2;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}
.service-list strong { font-size: 18px; }
.service-list small { line-height: 1.6; }
.tiny-note { margin-top: 20px; font-size: 10px; font-weight: 700; }

.door-scene {
  display: grid;
  grid-template-columns: minmax(320px, .68fr) minmax(0, 1.32fr);
  min-height: 100svh;
  color: var(--cream);
  background: #172c32;
}
.door-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  container-type: inline-size;
  padding: clamp(34px, 5cqi, 70px);
}
.phrase-heading {
  font-size: clamp(42px, 15cqi, 64px);
  line-height: 1.24;
}
.door-copy > p:nth-of-type(2) { margin: 24px 0 30px; font-weight: 700; line-height: 1.9; }
.door-photo { min-height: 800px; overflow: hidden; }
.door-photo img { height: 100%; object-fit: cover; object-position: center; }
.call-button-large { min-width: 210px; justify-content: center; }
.mail-link {
  display: block;
  width: max-content;
  margin-top: 25px;
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid var(--cream);
}

.human-guide {
  position: relative;
  overflow: hidden;
  padding: clamp(64px, 9vw, 120px) clamp(18px, 6vw, 86px);
  background:
    radial-gradient(circle at 18% 12%, rgba(97, 232, 242, .16), transparent 30%),
    linear-gradient(135deg, #f4dfb6 0%, #fff4dc 48%, #d8a44e 100%);
}
.human-guide::before {
  content: "HIIRO / HUMAN DESK / SNS / FORM /";
  position: absolute;
  left: -18px;
  top: 18px;
  color: rgba(159, 55, 41, .12);
  font-size: clamp(42px, 10vw, 124px);
  font-weight: 900;
  letter-spacing: .02em;
  white-space: nowrap;
}
.human-guide-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(36px, 7vw, 92px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto;
}
.human-guide-head h2 {
  color: var(--ink);
  font-size: clamp(44px, 7vw, 86px);
}
.human-guide-head p:last-child {
  max-width: 520px;
  margin: 24px 0 0;
  font-weight: 700;
  line-height: 1.9;
}
.guide-actions {
  display: grid;
  gap: 18px;
}
.guide-primary {
  display: grid;
  gap: 8px;
  padding: 24px;
  color: var(--cream);
  background: #172c32;
  border: 3px solid #a3663f;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #241b18;
}
.guide-primary span,
.social-links span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .14em;
}
.guide-primary strong {
  font-size: clamp(24px, 3.6vw, 42px);
}
.guide-primary.is-preparing {
  color: rgba(243, 225, 189, .78);
  background: #294047;
}
.guide-email {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
  padding: 14px 4px 8px;
  border-bottom: 1px solid rgba(36, 27, 24, .45);
}
.guide-email span {
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
}
.guide-email strong {
  overflow-wrap: anywhere;
  font-size: clamp(15px, 2vw, 20px);
}
.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.social-links a,
.social-coming {
  display: grid;
  min-height: 150px;
  padding: 16px;
  align-content: space-between;
  background: rgba(255, 244, 220, .78);
  border: 2px solid rgba(36, 27, 24, .24);
  border-radius: 8px;
  transition: transform .18s ease, background .18s ease;
}
.social-links a:hover {
  transform: translateY(-4px) rotate(-1deg);
  background: #fff4dc;
}
.social-coming {
  color: rgba(36, 27, 24, .68);
}
.social-links span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--cream);
  background: var(--red);
  border-radius: 50%;
}
.social-links strong {
  font-size: 18px;
}
.social-links small {
  font-weight: 800;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 5vw, 70px);
  color: var(--cream);
  font-size: 10px;
  letter-spacing: .1em;
  background: #0f111c;
}

.bird-call {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  visibility: hidden;
  background: rgba(10, 11, 20, .76);
  opacity: 0;
  transition: opacity .25s ease, visibility .25s ease;
}
.bird-call.is-active { visibility: visible; opacity: 1; }
.close-call {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 6;
  width: 45px;
  height: 45px;
  color: var(--cream);
  font-size: 26px;
  background: #542e24;
  border: 2px solid #c68c55;
  border-radius: 50%;
  cursor: pointer;
}
.call-machine {
  position: relative;
  z-index: 3;
  width: min(520px, 90vw);
  padding: 48px 32px 30px;
  background: linear-gradient(135deg, #78533b, #273b3d 48%, #1b292d);
  border: 5px solid #3b241b;
  border-radius: 48px 48px 18px 18px;
  box-shadow: inset 0 0 0 3px #b67c4d, 0 25px 60px rgba(0,0,0,.5);
}
.machine-top {
  position: absolute;
  top: 17px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 13px;
  width: 100%;
}
.bulb { width: 10px; height: 10px; border-radius: 50%; background: #293c3e; }
.is-active .bulb-one { animation: lamp .5s .1s 3; }
.is-active .bulb-two { animation: lamp .5s .25s 3; }
.is-active .bulb-three { animation: lamp .5s .4s 3; }
.hatch {
  position: relative;
  display: grid;
  place-items: end center;
  height: 340px;
  overflow: visible;
  background: radial-gradient(circle, #fff3b1, #d38a42 55%, #5b3828 56%);
  border: 8px solid #251813;
  border-radius: 50% 50% 42% 42%;
  box-shadow: inset 0 0 30px #2a1713, 0 0 22px rgba(255, 200, 103, .5);
}
.hatch::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 8px solid #251813;
  border-radius: inherit;
  box-shadow: inset 0 0 30px #2a1713, 0 0 22px rgba(255, 200, 103, .5);
}
.hatch-door {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: repeating-linear-gradient(90deg, #34595a 0 34px, #294a4c 34px 38px);
  border-radius: inherit;
  transform-origin: left;
}
.is-active .hatch-door { animation: open-hatch .75s .7s ease-in-out forwards; }
.called-bird {
  position: relative;
  z-index: 3;
  width: min(116%, 520px);
  max-height: 128%;
  object-fit: contain;
  filter: drop-shadow(0 18px 18px rgba(32, 18, 12, .38));
  transform: translateY(115%) rotate(-3deg) scale(.92);
}
.is-active .called-bird { animation: bird-rise .82s 1.25s cubic-bezier(.2,.8,.2,1.15) forwards; }
.machine-status {
  margin: 22px 0 0;
  color: var(--cyan);
  font-family: monospace;
  font-size: 13px;
  font-weight: 900;
  text-align: center;
  letter-spacing: .12em;
}
.bird-speech {
  position: absolute;
  z-index: 4;
  margin: 0 0 390px 430px;
  padding: 14px 18px;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 18px;
  opacity: 0;
  transform: scale(.7) rotate(4deg);
}
.bird-speech strong, .bird-speech span { display: block; }
.bird-speech span { margin-top: 4px; font-size: 11px; }
.is-active .bird-speech { animation: speech-in .35s 1.9s forwards; }
.flying-bird {
  position: absolute;
  z-index: 5;
  left: -220px;
  bottom: 12%;
  width: min(165px, 30vw);
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .35));
  opacity: 0;
}
.is-active .flying-bird { animation: fly-across 2.6s 2.5s ease-in forwards; }

@keyframes blink { 50% { opacity: .35; box-shadow: 0 0 2px var(--cyan); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes report-scroll { to { transform: translateX(-50%); } }
@keyframes lamp { 50% { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); } }
@keyframes open-hatch { to { transform: perspective(800px) rotateY(-108deg); } }
@keyframes bird-rise { to { transform: translateY(2%) rotate(-3deg) scale(1.08); } }
@keyframes speech-in { to { opacity: 1; transform: scale(1) rotate(4deg); } }
@keyframes fly-across {
  0% { opacity: 0; transform: translate(0, 0) rotate(-8deg); }
  10% { opacity: 1; }
  45% { transform: translate(50vw, -100px) rotate(5deg); }
  100% { opacity: 1; transform: translate(calc(100vw + 350px), -30vh) rotate(12deg); }
}

@media (max-width: 900px) {
  .story-panel { grid-template-columns: 1fr; }
  .workshop, .door-scene { grid-template-columns: 1fr; }
  .human-guide-inner { grid-template-columns: 1fr; }
  .workshop-image { min-height: 520px; }
  .door-photo { min-height: 520px; order: -1; }
  .door-copy {
    align-self: start;
    padding: 54px 24px 70px;
  }
}

@media (max-width: 640px) {
  .site-header { padding: 10px; }
  .brand-logo { width: 32px !important; height: 32px !important; }
  .brand strong { font-size: 12px; }
  .brand small { display: none; }
  .site-header nav a:not(:last-child) { display: none; }
  .human-language-switch {
    margin-left: 4px;
    padding: 6px 8px;
  }
  .human-language-switch span { display: none; }
  .human-language-switch strong,
  .human-language-switch small { grid-column: 1; }
  .hero { min-height: 760px; padding: 120px 18px 70px; align-items: end; }
  .hero .scene-image { object-position: 57% center; }
  h1 { font-size: 52px; }
  .hero-title { font-size: clamp(43px, 13.5vw, 58px); }
  h2 { font-size: 42px; }
  .enter-lab { display: none; }
  .story-scene { min-height: 0; padding: 0; }
  .story-scene .scene-image,
  .archive-scene .scene-image { object-position: center; }
  .story-panel {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 0;
    background: #0d1924;
    border-left-width: 4px;
  }
  .report-title {
    padding: 22px 18px;
    box-shadow: 0 14px 20px #0d1924;
  }
  .report-title h2 { font-size: 34px; }
  .report-ticker {
    min-height: 70px;
    padding-block: 12px;
  }
  .report-ticker div { font-size: 13px; }
  .workshop-image { min-height: 420px; }
  .workshop-copy { padding: 70px 18px; }
  .door-photo { min-height: 460px; }
  .door-photo img { object-position: 53% center; }
  .service-heading { font-size: clamp(52px, 18cqi, 78px); }
  .phrase-heading { font-size: clamp(42px, 14cqi, 58px); }
  .human-guide { padding-block: 70px; }
  .human-guide::before { top: 10px; }
  .social-links { grid-template-columns: 1fr; }
  .social-links a,
  .social-coming {
    min-height: 94px;
    grid-template-columns: 48px 1fr;
    gap: 4px 12px;
    align-items: center;
  }
  .social-links small { grid-column: 2; }
  footer { flex-direction: column; }
  .call-machine { padding: 42px 18px 22px; }
  .hatch { height: 290px; }
  .bird-speech { bottom: 8%; margin: 0; }
  .flying-bird { width: 105px; }
}

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