/* kojima-lab トップ：白地に大きな名前だけのシンプルなページ */
* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: #ffffff;
  color: #000000;
  font-family: "Helvetica Neue", Helvetica, Arial, "Hiragino Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.15;
}

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

a:hover {
  opacity: 0.5;
}

a:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

/* ===== 上 ===== */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
}

.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid #000;
  border-radius: 50%;
  font-size: 11px;
  letter-spacing: -0.04em;
}

/* ===== 真ん中の名前 ===== */
.hero {
  display: grid;
  place-items: center;
  padding: 0 16px;
}

.name {
  display: flex;
  align-items: center;
  margin: 0;
  font-size: clamp(44px, 8.4vw, 180px);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.photo {
  width: 0.75em;
  height: 0.5em;
  margin: 0.08em 0.04em 0;
  object-fit: cover;
  object-position: 50% 45%;
  background: #ececec;
  filter: grayscale(1) contrast(1.1);
}

/* ===== 下 ===== */
.bottom {
  display: grid;
  grid-template-columns: 1fr minmax(0, 340px) 1fr;
  align-items: end;
  gap: 16px;
  padding: 16px;
}

.bottom p {
  margin: 0;
}

.dim {
  color: rgba(0, 0, 0, 0.4);
}

.now {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* 動いているサーバーを表す、小さな棒 */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}

.bars i {
  width: 2px;
  height: 100%;
  background: #000;
  transform-origin: bottom;
  animation: level 1.1s ease-in-out infinite;
}

.bars i:nth-child(2) { animation-delay: -0.3s; }
.bars i:nth-child(3) { animation-delay: -0.6s; }
.bars i:nth-child(4) { animation-delay: -0.15s; }
.bars i:nth-child(5) { animation-delay: -0.8s; }

@keyframes level {
  0%, 100% { transform: scaleY(0.3); }
  50% { transform: scaleY(1); }
}

.about {
  max-width: 340px;
  text-wrap: pretty; /* 最後の行に1語だけ残らないようにする */
}

.status {
  text-align: right;
}

.status-on {
  text-align: right;
}

/* ===== ログイン ===== */
.login {
  width: min(100%, 360px);
}

.name.small {
  justify-content: center;
  margin-bottom: 40px;
  font-size: clamp(56px, 7vw, 110px);
}

.login form {
  display: grid;
}

.login label {
  margin-top: 18px;
  color: rgba(0, 0, 0, 0.4);
}

.login input[type="email"],
.login input[type="password"],
.login input[type="text"] {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 1.5px solid #000;
  border-radius: 0;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 16px;
}

.login input:focus {
  outline: none;
  border-bottom-width: 3px;
  padding-bottom: 6.5px;
}

.password {
  position: relative;
}

.password input {
  padding-right: 52px !important;
}

.toggle {
  position: absolute;
  right: 0;
  bottom: 9px;
  padding: 0;
  border: none;
  background: none;
  color: rgba(0, 0, 0, 0.4);
  font: inherit;
  cursor: pointer;
}

.toggle:hover {
  color: #000;
}

.login .row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 18px 0 28px;
}

.login .remember {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: #000;
}

.login .remember input {
  accent-color: #000;
}

.submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px 16px;
  border: none;
  background: #000;
  color: #fff;
  font: inherit;
  font-size: 15px;
  cursor: pointer;
}

.submit:hover {
  opacity: 0.8;
}

.submit:focus-visible,
.toggle:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.login .status {
  min-height: 1.2em;
  margin: 14px 0 0;
  text-align: left;
}

/* ===== ログインした人のページ ===== */
.menu {
  display: flex;
  gap: 24px;
}

.panel {
  text-align: center;
}

.hello {
  margin: 0;
  color: rgba(0, 0, 0, 0.4);
}

.notice {
  margin: -20px 0 8px;
  text-align: center;
}

.submit.gap {
  margin-top: 28px;
}

.submit:disabled {
  opacity: 0.4;
  cursor: wait;
}

.admin {
  width: min(100%, 520px);
}

.admin section + section {
  margin-top: 40px;
}

.admin h2 {
  margin: 0 0 10px;
  font-size: inherit;
  color: rgba(0, 0, 0, 0.4);
}

.users {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid #000;
}

.users li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.users li > span:first-child {
  flex: 1;
  overflow-wrap: anywhere;
}

.link {
  padding: 0;
  border: none;
  background: none;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.add {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: end;
}

.add input {
  padding: 8px 0;
  border: none;
  border-bottom: 1.5px solid #000;
  border-radius: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
}

.add input:focus {
  outline: none;
  border-bottom-width: 3px;
}

.add select {
  padding: 8px 4px;
  border: 1.5px solid #000;
  border-radius: 0;
  background: #fff;
  font: inherit;
}

.add .submit {
  width: auto;
  gap: 16px;
}

.temp {
  margin-top: 16px;
  padding: 14px;
  border: 1.5px solid #000;
}

.temp p {
  margin: 0 0 8px;
}

.temp code {
  font-family: ui-monospace, Menlo, monospace;
  font-size: 18px;
  user-select: all;
}

.admin .status {
  min-height: 1.2em;
  margin: 12px 0 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* スマホ：説明を上に、名前を真ん中に、下は左右だけ */
@media (max-width: 640px) {
  .top {
    padding: 10px 12px;
  }

  .bottom {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .about {
    position: absolute;
    top: 52px;
    left: 12px;
    right: 12px;
    max-width: 260px;
  }

  .name {
    font-size: 10.6vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bars i {
    animation: none;
    transform: scaleY(0.6);
  }
}
