:root {
  color-scheme: light;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP',
    'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  color: #312d29;
  background: #fff8f1;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.login-page {
  width: 100%;
  max-width: 420px;
  padding: 24px;
  border: 1px solid #e9dfd7;
  border-radius: 22px;
  background: #fffcf8;
}

.login-page-with-example {
  max-width: 800px;
}

.login-page-with-example .login-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
}

.login-example {
  margin-top: 24px;
  padding: 20px;
  border: 1px solid #ead7c6;
  border-radius: 14px;
  background: #fff5e9;
}

.login-example-label {
  margin: 0 0 8px;
  color: #856644;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
}

.login-example h2 {
  margin: 0 0 14px;
  font-size: 20px;
}

.login-example-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.login-example-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  border-top: 1px solid #ead7c6;
  font-size: 12px;
  line-height: 1.5;
}

.login-example-list li:first-child {
  color: #a8482d;
  font-weight: 700;
}

.example-rank {
  font-size: 17px;
  font-weight: 700;
  color: #a8482d;
}

.login-example-list strong {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.login-example-note {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.7;
  color: #75675d;
}

.login-example-tip {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: #655b53;
}

@media (max-width: 680px) {
  .login-page-with-example {
    max-width: 420px;
  }

  .login-page-with-example .login-content {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

.login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.login-brand {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #a8482d;
}

.login-stage {
  padding: 3px 8px;
  border: 1px solid #e1d2c5;
  border-radius: 20px;
  color: #736258;
  font-size: 11px;
  line-height: 1.5;
}

.login-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 24px;
}

h1 {
  margin: 0;
  font-size: 25px;
  line-height: 1.45;
  letter-spacing: -0.6px;
  font-weight: 700;
}

h1 span {
  display: block;
}

.login-mascot {
  width: 88px;
  height: auto;
  flex-shrink: 0;
  border-radius: 18px;
}

.login-lead {
  margin: 10px 0 20px;
  color: #6b6058;
  font-size: 14px;
  line-height: 1.8;
}

.login-notice,
.login-error {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 9px;
  font-size: 13px;
  line-height: 1.7;
}

.login-notice {
  background: #fff0df;
  color: #74533a;
}

.login-error {
  background: #fce8e1;
  color: #972f1d;
}

.login-google,
.login-guest {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 50px;
  padding: 11px 14px;
  border: 1px solid #817871;
  border-radius: 9px;
  background: #fff;
  color: #2f2c29;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
}

.login-guest {
  gap: 12px;
  border-color: #a8482d;
  background: #a8482d;
  color: #fff;
}

.login-guest:hover {
  background: #913c26;
}

.login-google:hover {
  background: #f7f2ed;
}

a:focus-visible {
  outline: 3px solid #b94332;
  outline-offset: 4px;
}

.login-helper {
  margin: 8px 0 20px;
  color: #75675d;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.login-private {
  margin: 0;
  color: #655b53;
  font-size: 13px;
  line-height: 1.8;
}

.login-footer {
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid #e9dfd7;
}

.login-footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 16px;
}

.login-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #75675d;
  font-size: 12px;
  line-height: 1.5;
  text-underline-offset: 3px;
}

@media (max-width: 380px) {
  body {
    padding: 16px;
  }

  .login-page {
    padding: 20px 18px;
  }

  .login-brand {
    font-size: 18px;
  }

  h1 {
    font-size: 20px;
  }

  .login-mascot {
    width: 72px;
  }

  .login-footer nav {
    column-gap: 12px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 12px;
  }

  .login-intro {
    margin-top: 18px;
  }

  .login-lead {
    margin-bottom: 16px;
  }

  .login-helper {
    margin-bottom: 14px;
  }

  .login-footer {
    margin-top: 18px;
  }
}
