/* =========================================================
   UNLOCK / OfficeMUC — Homepage styles
   Design tokens: tokens/tokens.css
   ========================================================= */
@import url("tokens/tokens.css");

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, "Noto Sans JP", "Zen Kaku Gothic New", system-ui, sans-serif;
  color: var(--unlock-text);
  background: var(--unlock-surface);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: inherit; }

.container {
  width: min(var(--container), calc(100% - 64px));
  margin-inline: auto;
}

/* Visually hidden but accessible */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Focus states */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--unlock-yellow-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  border-radius: var(--radius-pill);
  padding: 13px 26px;
  font-weight: 800;
  font-size: 16px;
  text-decoration: none;
  color: var(--unlock-black);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, color .16s ease;
}
.btn .ico { width: 22px; height: 22px; flex: none; }
.btn.yellow { background: var(--unlock-yellow); }
.btn.yellow:hover { background: var(--unlock-yellow-dark); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.btn.outline { background: #fff; border-color: var(--unlock-black); }
.btn.outline:hover { background: var(--unlock-black); color: #fff; transform: translateY(-2px); }
.btn.outline:hover .ico path,
.btn.outline:hover .ico rect { stroke: #fff; }
.btn.dark { background: var(--unlock-black); color: #fff; }
.btn.dark .ico path,
.btn.dark .ico rect { stroke: #fff; }
.btn.dark:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--unlock-line);
}
.site-header .container {
  height: 88px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  line-height: 1;
}
.brand .wordmark { width: 168px; height: auto; display: block; }
.brand .badge { width: 80px; height: auto; }
.brand.footer-brand .wordmark { width: 132px; }
.brand.footer-brand .badge { width: 64px; }

.main-nav {
  display: flex;
  gap: 30px;
  margin-left: auto;
}
.main-nav a {
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  color: var(--unlock-black);
  padding: 6px 2px;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 3px;
  background: var(--unlock-yellow);
  transition: right .2s ease;
}
.main-nav a:hover::after { right: 0; }

.header-cta { margin-left: 6px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 48px; height: 48px;
  border: 1px solid var(--unlock-line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 10px;
}
.menu-toggle .ico { width: 100%; height: 100%; }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 32px 24px;
  border-bottom: 1px solid var(--unlock-line);
  background: #fff;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  text-decoration: none;
  font-weight: 700;
  color: var(--unlock-black);
  padding: 14px 8px;
  border-bottom: 1px solid var(--unlock-line);
}

/* ---------- Decorative sparkle ---------- */
.spark { color: var(--unlock-yellow); flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 44px; }
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 56px;
  align-items: start;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--unlock-black);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  transform: rotate(-2.5deg);
  font-size: clamp(15px, 1.7vw, 20px);
  font-weight: 800;
  box-shadow: var(--shadow-card);
}
.hero-eyebrow .spark { width: 22px; height: 22px; }
.hero h1 {
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.22;
  letter-spacing: -.04em;
  margin: 30px 0 26px;
  font-weight: 900;
  color: var(--unlock-black);
}
.hero h1 .mark {
  background: linear-gradient(transparent 62%, var(--unlock-yellow) 62%, var(--unlock-yellow) 92%, transparent 92%);
  padding-inline: 2px;
}
.hero .lead {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.95;
  color: var(--unlock-text);
  max-width: 560px;
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero cards (asymmetric: 1 top / 2 bottom) */
.hero-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hero-card {
  position: relative;
  border: 1px solid var(--unlock-line);
  border-radius: 18px;
  padding: 22px;
  min-height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.hero-card.wide { grid-column: 1 / -1; min-height: 250px; }
.pill {
  align-self: flex-start;
  display: inline-block;
  background: #fff;
  border: 1px solid rgba(17,17,17,.14);
  border-radius: 8px;
  padding: 5px 12px;
  font-weight: 700;
  font-size: 13px;
  color: var(--unlock-black);
}
.hero-card h3 {
  font-size: clamp(20px, 2.1vw, 26px);
  margin: 14px 0 0;
  font-weight: 800;
  line-height: 1.4;
  color: var(--unlock-black);
}
.hero-card .art {
  margin-top: auto;
  align-self: flex-end;
  width: 60%;
  max-width: 200px;
}
.hero-card.wide .art { width: 52%; max-width: 260px; }
.hero-card.kids { background: var(--unlock-kids); }
.hero-card.corp { background: var(--unlock-corporate); }
.hero-card.app  { background: var(--unlock-application); }

/* ---------- Mission strip ---------- */
.mission { margin-top: 12px; }
.mission-inner {
  position: relative;
  border: 1.5px solid #f4cc54;
  background: var(--unlock-warm);
  border-radius: 22px;
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1.5fr auto 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: center;
  overflow: hidden;
}
.mission-lead {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 4px 16px;
  align-items: center;
}
.mission-lead .lock { grid-row: 1 / 3; width: 60px; height: 60px; }
.mission-lead h2 { margin: 0; font-size: 21px; font-weight: 800; color: var(--unlock-black); white-space: nowrap; }
.mission-lead p { margin: 0; font-size: 14px; color: var(--unlock-muted); }
.mission-step { text-align: center; }
.mission-icon { width: 46px; height: 46px; display: block; margin: 0 auto 8px; }
.mission-step b { display: block; font-size: 20px; font-weight: 800; color: var(--unlock-black); }
.mission-step small { display: block; margin-top: 6px; font-size: 13px; color: var(--unlock-muted); line-height: 1.5; }
.mission-arrow { color: var(--unlock-yellow-dark); width: 30px; height: 30px; }
.mission-dots {
  position: absolute;
  right: -10px; top: -10px;
  width: 120px; height: 90px;
  opacity: .7;
  pointer-events: none;
}

/* ---------- Sections ---------- */
.section { padding: 52px 0; }
.section-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(30px, 3.4vw, 40px);
  font-weight: 800;
  color: var(--unlock-black);
  margin: 0;
  letter-spacing: -.01em;
}
.section-title .ja { font-size: 15px; font-weight: 700; color: var(--unlock-muted); margin-left: 4px; }
.section-title .spark { width: 22px; height: 22px; }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.see-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--unlock-black);
}
.see-all .arrow { width: 26px; height: 26px; }
.see-all:hover { color: var(--unlock-yellow-dark); }

/* ---------- Business cards ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.biz-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--unlock-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 26px 26px 30px;
  min-height: 320px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.biz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.biz-card .card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.biz-card .card-icon { width: 54px; height: 54px; flex: none; }
.biz-card h3 { font-size: 23px; font-weight: 800; margin: 16px 0 14px; color: var(--unlock-black); }
.biz-card ul { list-style: none; margin: 0; padding: 0; }
.biz-card li {
  position: relative;
  padding-left: 20px;
  margin: 12px 0;
  line-height: 1.6;
  font-size: 15px;
  color: var(--unlock-text);
}
.biz-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--unlock-yellow);
}
.biz-card .go {
  margin-top: auto;
  align-self: flex-end;
  width: 44px; height: 44px;
  transition: transform .18s ease;
}
.biz-card:hover .go { transform: translateX(3px); }

/* ---------- Services carousel ---------- */
.scroller {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  scrollbar-width: none;
}
.scroller::-webkit-scrollbar { display: none; }
.service-card {
  scroll-snap-align: start;
  border: 1px solid var(--unlock-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 24px;
  min-height: 210px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform .18s ease, box-shadow .18s ease;
}
.service-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.service-card .service-head { display: flex; align-items: center; gap: 14px; }
.service-card .service-art { width: 66px; height: 56px; object-fit: contain; flex: none; }
.service-card h3 { font-size: 19px; font-weight: 800; margin: 0; line-height: 1.35; color: var(--unlock-black); }
.service-card p { font-size: 14px; line-height: 1.75; color: var(--unlock-muted); margin: 14px 0 0; }
.service-card .service-go { margin-top: auto; align-self: flex-end; width: 34px; height: 34px; padding-top: 12px; }
.service-card.coming {
  border-style: dashed;
  background: #fffdf7;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: none;
}
.service-card.coming .plus {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--unlock-yellow);
  display: grid; place-items: center;
  font-size: 30px; font-weight: 800;
  color: var(--unlock-black);
  margin-bottom: 14px;
}
.service-card.coming h3 { font-weight: 800; }
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--unlock-muted);
  font-size: 13px;
  margin-top: 4px;
}
.scroll-hint .dash { flex: 1; max-width: 160px; border-top: 1px dashed var(--unlock-line); }
.scroll-hint button {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--unlock-line);
  background: #fff;
  cursor: pointer;
  display: grid; place-items: center;
  color: var(--unlock-black);
}
.scroll-hint button:hover { background: var(--unlock-warm); }

/* ---------- Partners ---------- */
.partners-wrap { position: relative; }
.partner-card {
  display: flex;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--unlock-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
  text-decoration: none;
  color: var(--unlock-black);
  font-weight: 800;
  font-size: 19px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.partner-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.partner-card .p-logo {
  width: 46px; height: 46px;
  border-radius: 50%;
  flex: none;
  display: grid; place-items: center;
  background: var(--unlock-warm);
  border: 1px solid var(--unlock-line);
  font-size: 13px; font-weight: 800;
}
.partner-card .ext { margin-left: auto; width: 18px; height: 18px; color: var(--unlock-muted); }
.partner-card .p-body { display: flex; flex-direction: column; }
.partner-card small { font-size: 13px; font-weight: 500; color: var(--unlock-muted); }
.partner-card.soon { color: var(--unlock-muted); box-shadow: none; }
.partner-card.soon .p-logo { color: var(--unlock-muted); }
.owl {
  display: block;
  width: 112px;
  height: auto;
  margin: -8px 0 0 auto;
}

/* ---------- Contact band ---------- */
.contact {
  position: relative;
  margin-top: 30px;
  background: var(--unlock-yellow);
  padding: 46px 20px 40px;
}
.contact-wave {
  position: absolute;
  top: -1px; left: 0;
  width: 100%; height: 26px;
  transform: translateY(-99%);
  display: block;
}
.contact .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}
.contact .sprout { width: 84px; height: auto; flex: none; }
.contact h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 900;
  color: var(--unlock-black);
  margin: 0;
}
.contact .hills { width: 96px; height: auto; flex: none; }
.contact-body { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--unlock-line);
  padding: 30px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-nav a { text-decoration: none; font-weight: 700; font-size: 14px; color: var(--unlock-black); }
.footer-nav a:hover { color: var(--unlock-yellow-dark); }
.footer-social { display: flex; gap: 14px; align-items: center; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid var(--unlock-line);
  border-radius: 50%;
  display: grid; place-items: center;
  color: var(--unlock-black);
}
.footer-social a:hover { background: var(--unlock-warm); }
.footer-copy { width: 100%; text-align: center; font-size: 12px; color: var(--unlock-muted); margin-top: 6px; }

/* ---------- Modal (kids training) ---------- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,17,17,.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 28px;
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--unlock-line);
  padding-bottom: 16px;
  margin-bottom: 20px;
}
.modal-head h3 { margin: 0; font-size: 20px; font-weight: 800; }
.modal-close {
  border: none;
  background: transparent;
  cursor: pointer;
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 24px; line-height: 1;
}
.modal-close:hover { background: var(--unlock-warm); }
.modal-case { margin-bottom: 22px; }
.modal-case img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--unlock-line);
  display: block;
}
.modal-case p { font-size: 13px; font-weight: 700; color: var(--unlock-muted); margin: 10px 0 0; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 959px) {
  .container { width: min(var(--container), calc(100% - 40px)); }
  .main-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero .container { grid-template-columns: 1fr; gap: 34px; }
  .mission-inner {
    grid-template-columns: 1fr 1fr;
    gap: 22px 18px;
  }
  .mission-lead { grid-column: 1 / -1; }
  .mission-arrow { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-3 .biz-card:last-child,
  .partners-wrap .grid-3 .partner-card:last-child { grid-column: 1 / -1; }
  .owl { width: 96px; }
}

@media (max-width: 639px) {
  .container { width: min(var(--container), calc(100% - 32px)); }
  .site-header .container { height: 74px; gap: 16px; }
  .brand .wordmark { width: 132px; }
  .brand .badge { width: 64px; }
  .hero { padding: 30px 0 34px; }
  .hero-actions .btn { width: 100%; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-card.wide { grid-column: auto; }
  .mission-inner { grid-template-columns: 1fr; text-align: center; }
  .mission-lead { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .mission-lead .lock { grid-row: auto; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3 .biz-card:last-child,
  .partners-wrap .grid-3 .partner-card:last-child { grid-column: auto; }
  .scroller { grid-auto-columns: 82vw; }
  .contact .container { flex-direction: column; gap: 8px; }
  .contact .sprout, .contact .hills { display: none; }
  .site-footer .container { flex-direction: column; align-items: flex-start; }
  .owl { width: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
