:root {
  color-scheme: light;
  --ink: #12343d;
  --muted: #526b72;
  --deep: #063f4c;
  --yellow: #ffdc70;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 24px 16px calc(24px + env(safe-area-inset-bottom));
  background: #f2f8fa;
  color: var(--ink);
  line-height: 1.6;
}

.access-shell { width: min(100%, 440px); }

.access-card {
  width: 100%;
  padding: clamp(24px, 7vw, 36px);
  border: 1px solid #d8e9e9;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(20, 80, 86, .08);
}

.access-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--deep);
  font-size: 15px;
  font-weight: 900;
}

.access-brand-mark {
  display: flex;
  flex: 0 0 34px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--deep);
  transform: rotate(-7deg);
}

.access-brand-mark span { width: 4px; height: 12px; border-radius: 3px; background: var(--yellow); }
.access-brand-mark span:first-child { height: 7px; }
.access-brand-mark span:last-child { height: 17px; }

.access-title {
  margin: 30px 0 8px;
  color: var(--deep);
  font-size: clamp(26px, 7vw, 32px);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1.35;
}

.access-copy, .access-note { margin: 0; color: var(--muted); font-size: 15px; }

.access-form { display: grid; gap: 12px; margin-top: 26px; }
.access-label { font-size: 15px; font-weight: 800; }

.access-input {
  display: block;
  width: 100%;
  min-height: 58px;
  padding: 12px 16px;
  border: 2px solid #aacbd0;
  border-radius: 12px;
  background: #fbfefe;
  color: var(--ink);
  font: inherit;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  letter-spacing: .12em;
  text-align: center;
}

.access-input:focus-visible, .access-button:focus-visible {
  outline: 3px solid #ef765c;
  outline-offset: 3px;
}

.access-button {
  display: block;
  width: 100%;
  min-height: 58px;
  margin-top: 4px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: var(--yellow);
  color: #042d37;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  cursor: pointer;
}

.access-button:hover { background: #ffe693; }
.access-button:active { transform: translateY(1px); }
.access-error { min-height: 1.5em; margin: 4px 0 0; color: #ad3d35; font-size: 14px; font-weight: 700; }

@media (max-width: 390px) {
  .access-card { padding: 24px 20px; }
}
