:root {
  color-scheme: light;
  --paper: #f3f5f2;
  --paper-deep: #e6ebe8;
  --ink: #192a35;
  --muted: #64747c;
  --line: #d5deda;
  --accent: #20798c;
  --accent-dark: #165b6c;
  --white: #fff;
  --error: #a1433c;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Meiryo", "Noto Sans JP", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(32, 121, 140, .35);
  outline-offset: 3px;
}

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  width: min(1200px, calc(100% - 72px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 13px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  display: grid;
  place-items: center;
  position: relative;
}
.brand-mark::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.brand-mark::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--accent);
}
.brand-name { font-size: 17px; font-weight: 700; letter-spacing: -.03em; }
.brand-sub { color: var(--muted); font-size: 11px; letter-spacing: .12em; }
.system-status { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #49a58a; box-shadow: 0 0 0 4px #e0f0e9; }
.site-footer {
  width: min(1200px, calc(100% - 72px));
  margin: auto auto 0;
  padding: 22px 0 26px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: 11px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer-links a { color: var(--muted); }

.login-main {
  width: min(1200px, calc(100% - 72px));
  flex: 1;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 432px;
  align-items: center;
  gap: clamp(48px, 9vw, 140px);
  padding: 38px 0 70px;
}
.scene { min-height: 490px; position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.scene::before {
  content: "";
  position: absolute;
  inset: 5% 2% 4% 4%;
  border: 1px solid rgba(32, 121, 140, .16);
  background:
    linear-gradient(90deg, transparent 24.8%, rgba(32,121,140,.09) 25%, transparent 25.2%, transparent 74.8%, rgba(32,121,140,.09) 75%, transparent 75.2%),
    linear-gradient(0deg, transparent 24.8%, rgba(32,121,140,.09) 25%, transparent 25.2%, transparent 74.8%, rgba(32,121,140,.09) 75%, transparent 75.2%);
  transform: rotate(-5deg);
}
.scene::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(32,121,140,.18);
  border-radius: 50%;
  right: -100px;
  top: 30px;
}
.scene-inner { position: relative; z-index: 1; max-width: 530px; padding: 48px 20px 48px 42px; }
.kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .18em; }
.scene h1 { margin: 22px 0 18px; font-size: clamp(30px, 3.3vw, 46px); font-weight: 600; line-height: 1.55; letter-spacing: .08em; }
.scene p { max-width: 380px; color: var(--muted); line-height: 2; }
.scene-footnote { margin-top: 64px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .05em; }

.card {
  width: 100%;
  padding: 42px;
  background: var(--white);
  border: 1px solid #e4e9e5;
  border-radius: 4px;
  box-shadow: 0 18px 50px rgba(23, 46, 50, .055);
}
.card-kicker { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: .18em; }
.card h2, .card h1 { margin: 10px 0 10px; font-size: 25px; font-weight: 650; letter-spacing: .045em; line-height: 1.5; }
.card-intro { margin: 0 0 29px; color: var(--muted); font-size: 12px; line-height: 1.85; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; color: #40535c; font-size: 12px; font-weight: 600; }
.field input, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #cbd7d5;
  border-radius: 3px;
  background: #fbfcfb;
  color: var(--ink);
  font-size: 13px;
  font-weight: 400;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: #9ba8ac; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(32,121,140,.1); }
.field textarea { min-height: 118px; resize: vertical; }
.form-options { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 11px; }
.checkbox { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; }
.checkbox input { accent-color: var(--accent); }
.primary-button {
  width: 100%;
  min-height: 45px;
  padding: 11px 18px;
  border: 1px solid var(--accent-dark);
  border-radius: 3px;
  background: var(--accent-dark);
  color: var(--white);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: .08em;
  transition: background .2s;
}
.primary-button:hover { background: #114757; }
.primary-button:disabled { opacity: .7; cursor: wait; }
.notice { min-height: 22px; margin: 0; color: var(--error); font-size: 11px; line-height: 1.6; }
.card-bottom { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; font-size: 12px; }

.content-main { width: min(760px, calc(100% - 48px)); flex: 1; margin: 0 auto; padding: 44px 0 80px; }
.page-crumb { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; margin-bottom: 28px; }
.document { background: var(--white); border: 1px solid #e4e9e5; border-radius: 4px; padding: 52px 58px; }
.document .kicker { margin-bottom: 11px; }
.document h1 { margin: 0 0 7px; font-size: 30px; font-weight: 650; letter-spacing: .06em; }
.updated { margin: 0 0 32px; color: #849097; font-size: 11px; }
.document h2 { margin: 30px 0 8px; padding-left: 13px; border-left: 2px solid var(--accent); font-size: 15px; font-weight: 650; }
.document p { margin: 0 0 15px; color: #50636c; font-size: 13px; line-height: 2; }
.narrow-main { width: min(440px, calc(100% - 40px)); flex: 1; margin: 0 auto; display: grid; align-items: center; padding: 55px 0 80px; }
.narrow-main .card { padding: 42px; }

@media (max-width: 900px) {
  .login-main { grid-template-columns: 1fr; gap: 12px; max-width: 540px; padding-top: 8px; }
  .scene { min-height: 230px; }
  .scene-inner { padding: 28px 16px; }
  .scene h1 { font-size: 30px; margin: 12px 0 6px; }
  .scene p { margin: 0; }
  .scene-footnote { display: none; }
}
@media (max-width: 560px) {
  .site-header, .site-footer, .login-main { width: calc(100% - 36px); }
  .site-header { padding: 18px 0; }
  .brand-sub { display: none; }
  .system-status { font-size: 10px; }
  .scene { min-height: 190px; }
  .scene h1 { font-size: 26px; }
  .scene::after { width: 260px; height: 260px; }
  .card { padding: 28px 24px; }
  .card-bottom { flex-wrap: wrap; }
  .form-options { flex-wrap: wrap; gap: 12px; }
  .field input, .field textarea { font-size: 16px; }
  .site-footer { flex-wrap: wrap; gap: 8px; }
  .content-main { padding: 26px 0 60px; }
  .document { padding: 32px 26px; }
  .document h1 { font-size: 25px; }
  .narrow-main .card { padding: 32px 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
