:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-soft: #0b1728;
  --panel: rgba(16, 31, 51, 0.86);
  --panel-border: rgba(151, 180, 219, 0.16);
  --text: #f4f7fb;
  --muted: #9eabc0;
  --accent: #7c9cff;
  --accent-strong: #93adff;
  --success: #4cd6a8;
  --pending: #aeb7c6;
  --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 24px;
  --radius-md: 16px;
  --content-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  font-family:
    Inter, "Noto Sans JP", "Yu Gothic UI", "Hiragino Kaku Gothic ProN",
    Meiryo, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 10%, rgba(82, 111, 255, 0.17), transparent 34%),
    radial-gradient(circle at 84% 20%, rgba(53, 203, 172, 0.08), transparent 26%),
    linear-gradient(180deg, #081321 0%, #06101d 100%);
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(151, 180, 219, 0.12);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-weight: 800;
  font-size: 20px;
  color: #06101d;
  background: linear-gradient(135deg, #e8eeff, #8ea8ff);
  box-shadow: 0 10px 28px rgba(89, 117, 255, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text strong {
  font-size: 16px;
  letter-spacing: 0.02em;
}

.brand-text small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-badge {
  padding: 7px 12px;
  border: 1px solid rgba(124, 156, 255, 0.24);
  border-radius: 999px;
  color: #c5d1ff;
  background: rgba(124, 156, 255, 0.08);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.portal-main {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  flex: 1;
  padding: 78px 0 64px;
}

.hero {
  max-width: 780px;
  margin-bottom: 42px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.hero-description {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.9;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.system-card {
  min-height: 470px;
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.system-card--active {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.system-card--active:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 156, 255, 0.36);
  box-shadow: 0 30px 85px rgba(0, 0, 0, 0.34);
}

.system-card--disabled {
  opacity: 0.68;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.icon-box {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-md);
  color: #a9bbff;
  background: rgba(124, 156, 255, 0.11);
  border: 1px solid rgba(124, 156, 255, 0.16);
}

.icon-box--muted {
  color: #aab3c0;
  background: rgba(170, 179, 192, 0.08);
  border-color: rgba(170, 179, 192, 0.12);
}

.icon-box svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status--available {
  color: var(--success);
  background: rgba(76, 214, 168, 0.08);
  border: 1px solid rgba(76, 214, 168, 0.15);
}

.status--pending {
  color: var(--pending);
  background: rgba(174, 183, 198, 0.07);
  border: 1px solid rgba(174, 183, 198, 0.12);
}

.card-content {
  margin-top: 32px;
}

.card-label {
  margin: 0 0 9px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.system-card--disabled .card-label {
  color: var(--pending);
}

.card-content h2 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.03em;
}

.card-content p:last-child {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 30px;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-left: 18px;
  color: #d9e0eb;
  font-size: 14px;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.58em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.feature-list--muted li {
  color: var(--muted);
}

.feature-list--muted li::before {
  background: #7f8997;
}

.primary-button,
.secondary-button {
  width: 100%;
  min-height: 50px;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
}

.primary-button {
  text-decoration: none;
  color: #07111f;
  background: linear-gradient(135deg, #dce5ff, #8fa9ff);
  box-shadow: 0 14px 34px rgba(96, 125, 255, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(96, 125, 255, 0.31);
}

.primary-button:focus-visible {
  outline: 3px solid rgba(152, 177, 255, 0.5);
  outline-offset: 3px;
}

.secondary-button {
  border: 1px solid rgba(174, 183, 198, 0.14);
  color: #9ca6b5;
  background: rgba(174, 183, 198, 0.06);
  cursor: not-allowed;
}

.site-footer {
  width: min(calc(100% - 40px), var(--content-width));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(151, 180, 219, 0.12);
  color: #7f8ba0;
  font-size: 12px;
}

@media (max-width: 820px) {
  .portal-main {
    padding-top: 54px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: auto;
  }
}

@media (max-width: 520px) {
  .site-header,
  .portal-main,
  .site-footer {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .site-header {
    min-height: 74px;
  }

  .header-badge {
    display: none;
  }

  .portal-main {
    padding-bottom: 44px;
  }

  .hero h1 {
    font-size: 36px;
  }

  .system-card {
    padding: 24px;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
  }
}
