* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc 0%, #e0f2fe 100%);
  color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
}

.homecare-shell {
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 24px;
}

.homecare-header {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 22px;
}

.homecare-back {
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #334155;
  font-weight: 700;
  padding: 10px 14px;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.homecare-kicker {
  margin: 0 0 6px;
  color: #0369a1;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.04em;
}

.homecare-lead {
  margin: 8px 0 0;
  color: #475569;
  line-height: 1.8;
}

.homecare-panel {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.11);
  padding: 22px;
}

.homecare-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.homecare-panel h2 {
  margin: 0;
  font-size: 1.35rem;
}

.homecare-panel p {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.7;
}

.homecare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.homecare-card {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.homecare-card:hover,
.homecare-card:focus-visible {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.18);
  outline: none;
}

.homecare-card[hidden] {
  display: none;
}

.homecare-card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: #dbeafe;
  font-size: 1.25rem;
}

.homecare-card-title {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.4;
}

.homecare-card-desc {
  color: #475569;
  line-height: 1.55;
}

.homecare-empty {
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  text-align: center;
}

@media (max-width: 640px) {
  .homecare-shell {
    padding: 16px;
  }

  .homecare-header {
    display: block;
  }

  .homecare-back {
    margin-bottom: 16px;
  }

  .homecare-panel {
    padding: 16px;
    border-radius: 22px;
  }
}
