:root {
  --blue: #078ef0;
  --blue-deep: #0066ca;
  --navy: #071d45;
  --paper: #f8fbff;
  --muted: #617b96;
  --line: #b9daf1;
  font-family: "Noto Sans JP", sans-serif;
  color: var(--navy);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-width: 320px; min-height: 100%; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }

.maintenance {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(7, 29, 69, .045) calc(50% - 1px), rgba(7, 29, 69, .045) 50%, transparent 50%),
    var(--paper);
}

.maintenance::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: min(72vw, 940px);
  height: 1px;
  top: 17.2%;
  left: -8%;
  background: var(--blue);
  transform: rotate(-7deg);
  transform-origin: left center;
  opacity: .78;
  animation: line-draw 1.2s cubic-bezier(.2,.8,.2,1) both;
}

.site-header, .message, footer { position: relative; z-index: 1; }
.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5.5vw;
  border-bottom: 1px solid rgba(7, 29, 69, .08);
}

.brand strong { display: block; font-size: 19px; letter-spacing: .04em; }
.brand span { display: block; margin-top: 4px; font: 500 8px/1.2 "IBM Plex Mono", monospace; letter-spacing: .16em; }
.header-status { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--blue-deep); font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .12em; }
.header-status i { display: block; width: 8px; height: 8px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 0 rgba(7, 142, 240, .38); animation: pulse 2.2s infinite; }

.message {
  width: min(1240px, 100%);
  margin: auto;
  padding: 72px 5.5vw 56px 8.5vw;
  display: grid;
  grid-template-columns: minmax(390px, 1.1fr) minmax(360px, .9fr);
  gap: clamp(38px, 6vw, 112px);
  align-items: center;
}

.message-copy { position: relative; z-index: 2; }
.section-number { display: flex; align-items: center; gap: 10px; margin: 0 0 43px; color: var(--muted); font: 500 10px/1 "IBM Plex Mono", monospace; letter-spacing: .13em; }
.section-number i { width: 42px; height: 1px; background: var(--blue); }
h1 { margin: 0; font-size: clamp(42px, 3.7vw, 56px); line-height: 1.23; letter-spacing: -.065em; }
h1 span { white-space: nowrap; }
h1 span { display: block; opacity: 0; transform: translateY(22px); animation: reveal .75s cubic-bezier(.2,.8,.2,1) forwards; }
h1 span:nth-child(2) { animation-delay: .13s; }
.lead { margin: 35px 0 0; color: #385572; font-size: 16px; font-weight: 600; line-height: 2; opacity: 0; animation: fade-in .7s .38s ease forwards; }
.wait { display: inline-block; margin: 29px 0 0; padding: 13px 19px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.68); color: var(--navy); font-size: 14px; font-weight: 700; opacity: 0; animation: fade-in .7s .52s ease forwards; }

.lab-visual { position: relative; margin: 0; align-self: center; opacity: 0; transform: translateX(25px); animation: visual-in .9s .16s cubic-bezier(.2,.8,.2,1) forwards; }
.visual-frame { position: relative; aspect-ratio: 1.12; overflow: hidden; border-radius: 27% 9% 24% 11%; background: #e7f3fc; box-shadow: 0 36px 80px rgba(0, 93, 176, .14); }
.visual-frame::after { content: ""; position: absolute; inset: 0; border: 1px solid rgba(7, 29, 69, .06); border-radius: inherit; pointer-events: none; }
.visual-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 61% center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.lab-visual:hover img { transform: scale(1.035); }
.lab-visual figcaption { position: absolute; top: 11%; right: 5%; margin: 0; padding: 12px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; background: rgba(7, 29, 69, .78); box-shadow: 0 9px 25px rgba(7, 29, 69, .18); color: white; font: 500 9px/1.7 "IBM Plex Mono", monospace; letter-spacing: .17em; writing-mode: vertical-rl; }

footer { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 5.5vw; border-top: 1px solid rgba(7, 29, 69, .08); }
footer p { margin: 0; color: var(--blue-deep); font-size: 13px; font-weight: 700; }
footer small { font: 500 9px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; }

@keyframes reveal { to { opacity: 1; transform: translateY(0); } }
@keyframes fade-in { to { opacity: 1; } }
@keyframes visual-in { to { opacity: 1; transform: translateX(0); } }
@keyframes line-draw { from { transform: rotate(-7deg) scaleX(0); } to { transform: rotate(-7deg) scaleX(1); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(7, 142, 240, 0); } }

@media (max-width: 900px) {
  .maintenance { background: var(--paper); }
  .maintenance::before { top: 31%; left: -20%; width: 115vw; transform: rotate(-12deg); }
  .site-header { min-height: 70px; padding: 13px 20px; }
  .brand strong { font-size: 16px; }
  .header-status { font-size: 9px; }
  .message { min-height: 0; padding: 64px 20px 48px; grid-template-columns: 1fr; gap: 46px; }
  .section-number { margin-bottom: 28px; }
  h1 { font-size: clamp(37px, 11vw, 49px); letter-spacing: -.06em; }
  .lead { margin-top: 26px; font-size: 14px; line-height: 1.95; }
  .desktop-only { display: none; }
  .wait { margin-top: 22px; font-size: 13px; }
  .lab-visual { width: 92%; margin-left: auto; }
  .visual-frame { aspect-ratio: 1.08; }
  footer { align-items: flex-start; flex-direction: column; gap: 12px; padding: 21px 20px 24px; }
  footer p { font-size: 12px; }
}

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