:root {
  color-scheme: light;
  font-family: ui-rounded, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #4f3b3c;
  background: #fff7e8;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: #fff7e8; }

body {
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 9% 10%, rgb(255 210 217 / 72%) 0 7rem, transparent 7.1rem),
    radial-gradient(circle at 91% 17%, rgb(200 236 255 / 75%) 0 8rem, transparent 8.1rem),
    linear-gradient(150deg, #fff8e9 0%, #fff3ed 42%, #f3f3ff 100%);
}

a { font: inherit; -webkit-tap-highlight-color: transparent; }

.site-shell {
  width: min(100%, 1040px);
  margin: 0 auto;
  padding: max(48px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) 42px max(24px, env(safe-area-inset-left));
}

.hero { max-width: 680px; margin: 0 auto clamp(36px, 7vw, 68px); text-align: center; }

.eyebrow, .section-kicker {
  display: inline-block;
  margin: 0 0 10px;
  color: #e07878;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero h1, .section-heading h2 { margin: 0; color: #51405f; letter-spacing: 0.02em; text-wrap: balance; }
.hero h1 { font-size: clamp(2.35rem, 7vw, 4.35rem); line-height: 1.15; }

.intro { margin: 18px auto 0; color: #806a72; font-size: clamp(1rem, 2.5vw, 1.2rem); font-weight: 600; line-height: 1.8; }

.notice { display: inline-block; margin: 18px 0 0; padding: 8px 14px; border: 1px solid rgb(224 120 120 / 22%); border-radius: 999px; background: rgb(255 255 255 / 60%); color: #9a7378; font-size: 0.88rem; font-weight: 700; }

.section-heading { margin-bottom: 22px; text-align: center; }
.section-kicker { margin-bottom: 6px; color: #7c82bc; font-size: 0.76rem; }
.section-heading h2 { font-size: clamp(1.45rem, 3.5vw, 2.15rem); }

.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 24px); }

.hub-card {
  position: relative;
  display: flex;
  min-height: 218px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 25px;
  overflow: hidden;
  border: 5px solid rgb(255 255 255 / 92%);
  border-radius: clamp(22px, 3vw, 30px);
  box-shadow: 0 16px 34px rgb(94 73 84 / 17%), inset 0 0 0 1px rgb(84 56 71 / 8%);
  color: #fff;
  text-decoration: none;
  touch-action: manipulation;
  transition: box-shadow 180ms ease, transform 180ms ease;
}

.hub-card::before, .hub-card::after { position: absolute; content: ""; border-radius: 50%; pointer-events: none; }
.hub-card::before { width: 180px; height: 180px; top: -62px; right: -38px; background: rgb(255 255 255 / 20%); }
.hub-card::after { width: 92px; height: 92px; top: 24px; right: 28px; border: 2px dashed rgb(255 255 255 / 52%); }

.hub-card--kids { grid-column: span 2; min-height: 248px; background: linear-gradient(135deg, #8fcfed 0%, #9896d7 54%, #efb3b7 100%); }
.hub-card--home { background: linear-gradient(135deg, #eea672, #df7d91); }
.hub-card--universe { background: linear-gradient(135deg, #8bcab2, #5e9cc7); }
.hub-card--rhythm { background: linear-gradient(135deg, #a999d4, #7163ad); }
.hub-card--rts { background: linear-gradient(135deg, #74b8c6, #5277b8); }

.hub-card__spark { position: absolute; z-index: 1; top: 22px; left: 24px; width: 52px; height: 52px; border-radius: 50%; background: rgb(255 255 255 / 84%); color: #6a5b74; font-size: 1.65rem; font-weight: 900; line-height: 52px; text-align: center; box-shadow: 0 5px 0 rgb(80 59 75 / 14%); }
.hub-card__eyebrow, .hub-card strong, .hub-card > span:last-child { position: relative; z-index: 1; }
.hub-card__eyebrow { font-size: 0.8rem; font-weight: 800; letter-spacing: 0.08em; text-shadow: 0 1px 4px rgb(46 30 43 / 30%); }
.hub-card strong { margin-top: 8px; font-size: clamp(1.55rem, 3.4vw, 2.25rem); line-height: 1.2; text-shadow: 0 2px 8px rgb(46 30 43 / 35%); }
.hub-card > span:last-child { margin-top: 7px; font-size: 0.96rem; font-weight: 700; text-shadow: 0 1px 4px rgb(46 30 43 / 30%); }

.hub-card:hover { transform: translateY(-5px) scale(1.012); box-shadow: 0 22px 44px rgb(94 73 84 / 24%), inset 0 0 0 1px rgb(84 56 71 / 8%); }
.hub-card:active { transform: translateY(1px) scale(0.985); }
.hub-card:focus-visible { outline: 6px solid #ffb438; outline-offset: 5px; }

.site-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 10px; padding: 0 24px max(22px, env(safe-area-inset-bottom)); color: #806a72; font-size: 0.875rem; line-height: 1.5; text-align: center; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer__police { display: inline-flex; align-items: center; gap: 5px; }
.site-footer__police img { display: block; width: 19px; height: 21px; object-fit: contain; }
.site-footer a:hover, .site-footer a:focus-visible { color: #51405f; text-decoration: underline; }
.site-footer a:focus-visible { outline: 3px solid #ffb438; outline-offset: 4px; }

@media (max-width: 560px) {
  .site-shell { padding-right: max(16px, env(safe-area-inset-right)); padding-left: max(16px, env(safe-area-inset-left)); }
  .project-grid { grid-template-columns: 1fr; }
  .hub-card--kids { grid-column: auto; }
  .hub-card { min-height: 194px; padding: 22px; }
  .site-footer__separator { display: none; }
}

@media (prefers-reduced-motion: reduce) { .hub-card { transition: none; } .hub-card:hover, .hub-card:active { transform: none; } }
