
* {
  box-sizing: border-box;
}

:root {
  --ink: #111827;
  --muted: #667085;
  --subtle: #8a94a3;
  --line: #e1e6ec;
  --surface: #f5f7fa;
  --surface-strong: #edf1f5;
  --navy: #0b2341;
  --navy-soft: #eef4fb;
  --success: #1f6b3a;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

body {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  max-width: 1160px;
  margin: auto;
  padding: 20px 28px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: block;
  width: 184px;
  max-width: 52vw;
  height: auto;
}

.brand-link {
  display: block;
}

.header-label,
.eyebrow,
.card-kicker {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.header-label {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  white-space: nowrap;
}

.container {
  max-width: 1160px;
  margin: auto;
  padding: 0 28px 80px;
}

.hero {
  padding: 78px 0 44px;
}

.hero.compact {
  padding-top: 42px;
}

.hero h1 {
  margin: 12px 0 18px;
  color: var(--navy);
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #465260;
  font-size: 13px;
  font-weight: 700;
}

.portal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.portal-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-card {
  display: flex;
  position: relative;
  min-height: 260px;
  padding: 30px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.portal-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: 8px 8px 0 0;
  background: var(--navy);
}

.portal-card.active:hover,
.portal-card.active:focus-visible {
  border-color: #b8c5d3;
  box-shadow: 0 18px 40px rgba(11, 35, 65, .09);
  transform: translateY(-3px);
}

.portal-card:focus-visible {
  outline: 3px solid rgba(11, 35, 65, .2);
  outline-offset: 3px;
}

.card-top {
  display: flex;
  min-height: 28px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.portal-card h2 {
  margin: 26px 0 14px;
  color: var(--navy);
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.portal-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.card-link {
  margin-top: auto;
  color: var(--navy);
  font-weight: 700;
}

.portal-card.disabled {
  background: var(--surface-strong);
  color: #7d8793;
}

.portal-card.disabled::before {
  background: #aeb7c2;
}

.portal-card.disabled h2,
.portal-card.disabled p {
  color: #7d8793;
}

.status {
  flex-shrink: 0;
  padding: 6px 9px;
  border: 1px solid #d8dee6;
  border-radius: 999px;
  background: #fff;
  color: #596475;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.status.available {
  border-color: #cfe7d8;
  background: #f0f8f3;
  color: var(--success);
}

.status.soon {
  background: #fff;
  color: #6c7480;
}

.breadcrumb {
  padding-top: 28px;
  color: #7b8491;
  font-size: 13px;
}

.breadcrumb a,
.text-link {
  color: var(--navy);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumb a:hover,
.text-link:hover {
  text-decoration: underline;
}

.breadcrumb span {
  padding: 0 8px;
  color: #b0b5bd;
}

.future-note {
  margin-top: 28px;
  padding: 16px 18px;
  border-left: 4px solid var(--navy);
  background: #fff;
  color: #687384;
  font-size: 13px;
  line-height: 1.7;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 56px;
  }

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

  .portal-grid,
  .portal-grid.two {
    grid-template-columns: 1fr;
  }

  .portal-card {
    min-height: 220px;
  }
}

@media (max-width: 520px) {
  .header-inner,
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-inner {
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .logo {
    width: 158px;
  }

  .header-label {
    padding: 6px 8px;
    font-size: 10px;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 34px;
  }

  .hero.compact {
    padding-top: 34px;
  }

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

  .lead {
    font-size: 15px;
  }

  .portal-card {
    min-height: 210px;
    padding: 24px;
  }

  .portal-card h2 {
    margin-top: 22px;
    font-size: 30px;
  }

  .card-top {
    gap: 10px;
  }
}
