.app--card-home .main {
  padding-bottom: 48px;
}

.app--card-home .topbar {
  align-items: center;
}

.app--card-home .sidebar-context {
  grid-template-columns: minmax(0, 1fr);
}

.card-home__eyebrow {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 6px;
}

.card-home__lead {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 7px;
}

.card-home__scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line-strong);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 18px 20px;
  margin-bottom: 28px;
}

.card-home__scope-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.card-home__scope strong {
  font-size: 18px;
}

.card-home__scope p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.6;
  text-align: right;
}

.card-home__scope.is-blocked {
  border-left-color: var(--amber);
  background: var(--amber-2);
}

.card-home__section .page-title h2 {
  font-size: 21px;
}

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

.card-flow__item {
  position: relative;
  display: block;
  min-height: 166px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 20px 20px 18px;
  text-decoration: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.card-flow__item:hover {
  border-color: var(--teal-light);
  box-shadow: 0 8px 22px rgba(36, 61, 85, 0.1);
}

.card-flow__item:focus-visible {
  outline: 3px solid rgba(15, 127, 136, 0.28);
  outline-offset: 2px;
}

.card-flow__item--setup {
  background: #fbfcfa;
}

.card-flow__item--primary {
  border-color: var(--teal-light);
  background: var(--teal-soft);
}

.card-flow__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 27px;
  border-radius: 999px;
  background: #e7f3e3;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  padding: 0 9px;
  margin-bottom: 13px;
}

.card-flow__item strong {
  display: block;
  font-size: 18px;
  margin-bottom: 7px;
}

.card-flow__item p {
  color: var(--muted);
  line-height: 1.65;
}

.card-flow__item::after {
  content: "進む →";
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  margin-top: 14px;
  padding: 0 11px;
}

.card-flow__item.is-disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.card-flow__item.is-disabled::after {
  content: "会社選択が必要";
  color: var(--amber);
}

.card-home__guard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 18px 20px;
  margin-top: 24px;
}

.card-home__guard strong {
  display: block;
  margin-bottom: 6px;
}

.card-home__guard p {
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width: 980px) {
  .card-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .app--card-home .main {
    padding: 0 16px 32px;
  }

  .card-home__scope {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .card-home__scope p {
    text-align: left;
  }

  .card-flow {
    grid-template-columns: 1fr;
  }
}
