:root {
  --ink: #4a080a;
  --paper: #fbfaf8;
  --paper-deep: #f4f0eb;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--paper);
}

body {
  color: var(--ink);
  font-family: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", serif;
}

button, a { cursor: default; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.site-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 64px);
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 42%, #fff 0 30%, transparent 68%),
    linear-gradient(145deg, var(--paper), var(--paper-deep));
  cursor: default;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

.grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.34;
  pointer-events: none;
  background-image: radial-gradient(rgba(74, 8, 10, 0.18) 0.55px, transparent 0.55px);
  background-size: 7px 7px;
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
}

.hero {
  width: min(100%, 1120px);
  display: grid;
  grid-template-columns: minmax(360px, 1.15fr) minmax(300px, 0.85fr);
  align-items: center;
  gap: clamp(28px, 7vw, 104px);
}

.mark-wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
}

.mark {
  position: relative;
  z-index: 2;
  display: block;
  width: min(46vw, 550px);
  height: auto;
  aspect-ratio: 1.08;
  object-fit: cover;
  mix-blend-mode: multiply;
  filter: contrast(1.06);
  animation: settle 1.2s cubic-bezier(.2,.75,.2,1) both;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(74, 8, 10, 0.16);
  border-radius: 50%;
  animation: breathe 8s ease-in-out infinite;
}

.orbit-one { width: 86%; aspect-ratio: 1; }
.orbit-two {
  width: 104%;
  aspect-ratio: 1;
  border-style: dashed;
  animation-delay: -3s;
}

.question {
  margin: 0;
  white-space: nowrap;
  font-size: clamp(58px, 7vw, 108px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(18px);
  animation: reveal 0.8s ease forwards;
}

.question-mark {
  display: inline-block;
  margin-left: 0.12em;
  font-size: 0.72em;
  transform: rotate(9deg) translateY(-0.1em);
  opacity: 0.62;
}

.echo-layer {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  overflow: hidden;
}

.echo {
  position: absolute;
  z-index: 0;
  isolation: isolate;
  padding: 0.12em 0.28em 0.18em;
  white-space: nowrap;
  font-size: clamp(58px, 9vw, 144px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.06em;
  opacity: 0;
  filter: blur(24px);
  transform: translate(-50%, -50%) scale(0.58);
  text-shadow: 0 0 40px rgba(74, 8, 10, 0.16);
  animation: bloom 1.75s cubic-bezier(.16,.72,.2,1) both;
  will-change: transform, filter, opacity;
}

.echo::before {
  content: "";
  position: absolute;
  inset: -0.18em -0.38em;
  z-index: -1;
  border-radius: 999px;
  background: rgba(251, 250, 248, 0.58);
  box-shadow: 0 0 42px 28px rgba(251, 250, 248, 0.44);
  backdrop-filter: blur(10px) saturate(0.72);
}

.skip-label {
  position: fixed;
  right: clamp(20px, 3vw, 44px);
  bottom: clamp(18px, 3vw, 38px);
  z-index: 20;
  display: block;
  padding: 9px 12px 8px 14px;
  border: 1px solid rgba(74, 8, 10, 0.34);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(251, 250, 248, 0.62);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.28em;
  opacity: 0.72;
  transition: opacity 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.skip-label:hover, .skip-label:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-2px);
  outline: none;
}

.company-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--ink);
  background: rgba(251, 250, 248, 0.82);
  backdrop-filter: blur(14px) saturate(0.7);
  animation: info-in 0.55s ease both;
  outline: none;
}

.company-card {
  width: min(100%, 680px);
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid rgba(74, 8, 10, 0.28);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: 0 24px 80px rgba(74, 8, 10, 0.08);
}

.company-card h2 {
  margin: 0 0 clamp(26px, 4vw, 42px);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.company-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(14px, 1.7vw, 19px);
  line-height: 1.7;
}

.company-card tr { border-top: 1px solid rgba(74, 8, 10, 0.17); }
.company-card tr:last-child { border-bottom: 1px solid rgba(74, 8, 10, 0.17); }
.company-card th, .company-card td {
  padding: 15px 0;
  text-align: left;
  vertical-align: top;
}
.company-card th {
  width: 28%;
  padding-right: 20px;
  font-weight: 400;
  opacity: 0.58;
}
.company-card td { font-weight: 500; }

@keyframes info-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes settle {
  from { opacity: 0; transform: scale(0.94) rotate(-2deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes breathe {
  0%, 100% { transform: scale(0.98); opacity: 0.35; }
  50% { transform: scale(1.03); opacity: 0.8; }
}
@keyframes bloom {
  0% { opacity: 0; filter: blur(28px); transform: translate(-50%, -50%) scale(0.52); }
  22% { opacity: 0.92; filter: blur(2px); transform: translate(-50%, -50%) scale(0.92); }
  54% { opacity: 0.9; filter: blur(0); transform: translate(-50%, -50%) scale(1.08); }
  100% { opacity: 0; filter: blur(24px); transform: translate(-50%, -50%) scale(1.78); }
}

@media (max-width: 760px) {
  .site-shell { padding: 20px; }
  .hero { grid-template-columns: 1fr; align-content: center; gap: 8px; }
  .mark { width: min(84vw, 470px); }
  .question {
    position: relative;
    z-index: 3;
    justify-self: center;
    font-size: clamp(54px, 17vw, 82px);
  }
  .echo { font-size: clamp(42px, 13vw, 72px); }
  .company-card { padding: 28px 22px; }
  .company-card th, .company-card td { display: block; width: 100%; padding: 0; }
  .company-card th { padding-top: 13px; font-size: 12px; }
  .company-card td { padding-bottom: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .echo { opacity: 1; filter: none; transform: translate(-50%, -50%); }
}
