.home-page {
  color: #18344a;
}

.home-page * {
  box-sizing: border-box;
}

.home-hero,
.home-section {
  width: min(100% - 2rem, 1180px);
  margin-right: auto;
  margin-left: auto;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  margin-top: 1.5rem;
  padding: clamp(2rem, 5vw, 4rem);
  border: 1px solid #d2e4f1;
  border-radius: 24px;
  background: linear-gradient(135deg, #edf7ff 0%, #f6fbff 58%, #e9f8f4 100%);
}

.home-eyebrow,
.home-panel-label {
  margin: 0 0 0.75rem;
  color: #176eac;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 650px;
  margin: 0;
  color: #102c46;
  font-size: clamp(2.3rem, 4.2vw, 4rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.home-lead {
  max-width: 620px;
  margin: 1.3rem 0 1.5rem;
  color: #3b586d;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.65;
}

.home-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.home-page .home-button,
.home-page .home-button:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.1rem;
  border: 1px solid #176eac;
  border-radius: 9px;
  font-weight: 700;
  text-decoration: none;
}

.home-page .home-button-primary,
.home-page .home-button-primary:visited {
  color: #fff;
  background: #176eac;
}

.home-page .home-button-secondary,
.home-page .home-button-secondary:visited {
  color: #115a90;
  background: #fff;
}

.home-page .home-button:hover {
  box-shadow: 0 5px 14px #115a902b;
}

.home-privacy {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  color: #315f69;
  font-size: 0.9rem;
  line-height: 1.5;
}

.home-privacy i {
  margin-top: 0.2rem;
}

.home-hero-panel {
  padding: clamp(1.2rem, 2.5vw, 1.7rem);
  border: 1px solid #d8e5ed;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 38px #1b5a8320;
}

.home-hero-panel h2 {
  margin: 0 0 1rem;
  color: #173b5f;
  font-size: 1.35rem;
  line-height: 1.25;
}

.home-quick-list {
  display: grid;
  gap: 0.55rem;
}

.home-quick-list a,
.home-quick-list a:visited {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #e0eaf1;
  border-radius: 10px;
  color: #173b5f;
  background: #f8fbfd;
  text-decoration: none;
}

.home-quick-list a:hover {
  border-color: #83b4d7;
  background: #eff7fc;
}

.home-quick-list strong,
.home-quick-list small {
  display: block;
}

.home-quick-list small {
  margin-top: 0.1rem;
  color: #5a7080;
  font-size: 0.78rem;
}

.home-quick-list i {
  color: #3379a5;
  font-size: 0.75rem;
}

.home-section {
  margin-top: clamp(2.5rem, 5vw, 4rem);
}

.home-section-intro {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.home-section-intro h2 {
  margin: 0;
  color: #173b5f;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.home-section-intro p:last-child {
  margin: 0.6rem 0 0;
  color: #4b6477;
  line-height: 1.6;
}

.home-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-page .home-category-card,
.home-page .home-category-card:visited {
  display: flex;
  flex-direction: column;
  min-height: 265px;
  padding: 1.35rem;
  border: 1px solid #d8e5ed;
  border-radius: 16px;
  color: #173b5f;
  background: #fff;
  box-shadow: 0 4px 12px #173b5f0d;
  text-decoration: none;
}

.home-page .home-category-card:hover {
  border-color: #81b7d7;
  box-shadow: 0 9px 22px #173b5f19;
}

.home-category-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  font-size: 1.25rem;
}

.home-icon-image { color: #155fbd; background: #e9f1ff; }
.home-icon-audio { color: #7952ad; background: #f2ebff; }
.home-icon-unit { color: #137d65; background: #e4f7ef; }
.home-icon-color { color: #ac5d23; background: #fff0de; }

.home-category-card h3 {
  margin: 1.2rem 0 0.45rem;
  color: #173b5f;
  font-size: 1.18rem;
}

.home-category-card p {
  margin: 0;
  color: #4c6475;
  font-size: 0.91rem;
  line-height: 1.55;
}

.home-card-action {
  margin-top: auto;
  padding-top: 1.1rem;
  color: #075eaa;
  font-size: 0.88rem;
  font-weight: 700;
}

.home-card-action::after {
  content: ' →';
}

.home-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.home-link-group {
  padding: 1.25rem;
  border: 1px solid #d8e5ed;
  border-radius: 14px;
  background: #fff;
}

.home-link-group h3 {
  margin: 0 0 0.55rem;
  color: #173b5f;
  font-size: 1.05rem;
}

.home-link-group a {
  display: block;
  padding: 0.55rem 0;
  border-top: 1px solid #edf2f6;
  color: #075eaa;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.home-link-group a:hover,
.home-more-links a:hover {
  text-decoration: underline;
}

.home-explain-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.home-explain-grid article {
  padding: 1.35rem;
  border: 1px solid #d8e5ed;
  border-radius: 14px;
  background: #eff7fb;
}

.home-explain-grid h3 {
  margin: 0 0 0.45rem;
  color: #173b5f;
  font-size: 1.05rem;
}

.home-explain-grid p {
  margin: 0;
  color: #4b6477;
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-more {
  margin-bottom: 4rem;
}

.home-more-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.home-more-links a,
.home-more-links a:visited {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.6rem 0.9rem;
  border: 1px solid #cbdce8;
  border-radius: 9px;
  color: #075eaa;
  background: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
  }
  .home-category-grid,
  .home-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .home-category-card {
    min-height: 225px;
  }
}

@media (max-width: 620px) {
  .home-hero,
  .home-section {
    width: min(100% - 1rem, 1180px);
  }
  .home-hero {
    gap: 1.5rem;
    margin-top: 0.5rem;
    padding: 1.4rem;
    border-radius: 18px;
  }
  .home-hero h1 {
    font-size: clamp(2rem, 8vw, 2.7rem);
  }
  .home-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .home-category-grid,
  .home-popular-grid,
  .home-explain-grid {
    grid-template-columns: 1fr;
  }
  .home-page .home-category-card {
    min-height: 0;
  }
  .home-more {
    margin-bottom: 2.5rem;
  }
}
