/* Local client revision 2026-09-06: white entry, vivid menus, crisp scrolling. */
html body .sense-entry.sense-entry-popup { display: none !important; }
html body.homegrid-page .hd, html body.homegrid-page .sp, html body.homegrid-page .drawer { display: none !important; }
html body.homegrid-page .homegrid-shell { padding-top: 0 !important; }
html body.homegrid-page { background: #fff !important; }
html body.sense-entry-active { overflow: hidden !important; }
html body.sense-entry-active .ft-tabbar { display: none !important; }
html body.sense-entry-active .sense-entry.sense-entry-popup {
  position: fixed !important; inset: 0 !important; z-index: 12000 !important;
  display: grid !important; place-items: center !important; min-height: 100svh !important;
  padding: max(22px, env(safe-area-inset-top)) 18px max(22px, env(safe-area-inset-bottom)) !important;
  box-sizing: border-box !important; overflow-y: auto !important;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.24)), url('../homegrid/backgrounds/salon_room.jpg') center / cover no-repeat !important;
}
html body .sense-entry-popup::before, html body .sense-entry-popup::after { display: none !important; }
html body .sense-entry-inner {
  display: grid !important; justify-items: center !important; width: min(100%, 580px) !important;
  box-sizing: border-box !important; margin: auto !important;
  padding: clamp(34px, 7svh, 64px) clamp(22px, 5vw, 54px) !important;
  border: 1px solid #eee !important; border-radius: clamp(26px, 6vw, 40px) !important;
  background: #fff !important; color: #151515 !important; text-align: center !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.16) !important;
  backdrop-filter: none !important; -webkit-backdrop-filter: none !important; transform: none !important;
}
html body .sense-entry-logo {
  width: min(100%, 330px) !important; height: auto !important; display: block !important;
  margin: 0 0 clamp(34px, 7svh, 62px) !important; filter: brightness(0) !important;
}
html body .sense-entry-kicker {
  margin: 0 0 20px !important; color: #161616 !important; font-size: 14px !important;
  font-family: system-ui, sans-serif !important; font-weight: 750 !important;
  letter-spacing: .18em !important; text-transform: uppercase !important; text-shadow: none !important;
}
html body .sense-entry h2 {
  margin: 0 !important; color: #111 !important;
  font-family: 'Noto Serif JP','Yu Mincho','Hiragino Mincho ProN',serif !important;
  font-size: clamp(27px, 7vw, 46px) !important; font-weight: 700 !important;
  line-height: 1.65 !important; letter-spacing: .015em !important; text-shadow: none !important;
}
html body .sense-entry-button {
  display: inline-flex !important; align-items: center !important; justify-content: center !important;
  box-sizing: border-box !important; width: 100% !important; min-height: 58px !important;
  margin: clamp(34px, 6svh, 52px) 0 0 !important; padding: 16px 24px !important;
  border: 1.5px solid #222 !important; border-radius: 999px !important; background: #fff !important;
  color: #151515 !important; -webkit-text-fill-color: #151515 !important;
  font-size: 18px !important; font-weight: 750 !important; line-height: 1.3 !important;
  text-decoration: none !important; text-shadow: none !important; box-shadow: none !important;
}
html body .sense-entry-button::after {
  content: '' !important; width: 8px; height: 8px; margin-left: 16px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg);
}
html body .sense-entry-button:hover { background: #f4f4f4 !important; }
html body .homegrid-home {
  min-height: 100svh !important; padding: max(36px, env(safe-area-inset-top)) 0 150px !important;
  box-sizing: border-box !important;
  background: linear-gradient(180deg, #fff 0%, rgba(255,255,255,.87) 18%, rgba(255,255,255,.82) 65%, #fff 100%), var(--homegrid-random-bg) center / cover !important;
  /* Keep the square artwork on a stable canvas while mobile browser chrome collapses. */
  background-size: auto, max(100vw, 100vh) max(100vw, 100vh) !important;
}
@supports (height: 100lvh) {
  html body .homegrid-home {
    background-size: auto, max(100vw, 100lvh) max(100vw, 100lvh) !important;
  }
}
html body .homegrid-home::before, html body .homegrid-home::after { display: none !important; }
html body .homegrid-pages { min-height: 0 !important; scroll-behavior: smooth; }
html body .homegrid-app-page { min-height: 0 !important; }
html body .homegrid-apps {
  width: min(calc(100% - 28px), 700px) !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 10px !important; padding: 6px 0 24px !important;
  filter: none !important; transform: none !important; opacity: 1 !important;
}
html body .homegrid-app-page:nth-child(3) .homegrid-apps { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 520px !important; }
html body .homegrid-app { gap: 4px !important; }
html body.homegrid-page .homegrid-icon {
  width: min(100%, 118px) !important; border: 0 !important; border-radius: 22% !important;
  background: none !important; box-shadow: none !important; backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important; overflow: hidden !important;
}
html body .homegrid-icon::after { display: none !important; }
html body .homegrid-icon img {
  display: block !important; position: static !important; width: 100% !important; height: 100% !important;
  object-fit: contain !important; filter: none !important; transform: none !important;
}
html body.homegrid-page .homegrid-label {
  width: 100% !important; margin-top: 5px !important; color: #171717 !important;
  -webkit-text-fill-color: #171717 !important; text-shadow: none !important;
  font-family: 'Noto Sans JP',system-ui,-apple-system,sans-serif !important;
  font-size: clamp(12px, 3.25vw, 16px) !important; font-weight: 650 !important;
  line-height: 1.5 !important; letter-spacing: -.035em !important; opacity: 1 !important;
}
html body .homegrid-label-line { display: block !important; white-space: nowrap !important; }
html body .homegrid-pager-controls {
  position: relative; z-index: 3; display: flex; align-items: center; justify-content: center;
  gap: 12px; width: fit-content; max-width: calc(100% - 24px); margin: 4px auto 0;
  padding: 8px 12px; border: 1px solid #ddd; border-radius: 22px; background: #fff;
}
html body .homegrid-pager-controls button {
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid #d4d4d4; border-radius: 50%; background: #fff; color: #222;
  font: 28px/1 system-ui,sans-serif; cursor: pointer;
}
html body .homegrid-pager-controls button:disabled { opacity: .3; cursor: default; }
html body.homegrid-page .homegrid-swipe-hint {
  position: static !important; margin: 0 !important; transform: none !important; animation: none !important;
  color: #333 !important; text-shadow: none !important; font-size: 12px !important;
  font-weight: 650 !important; line-height: 1.5 !important; letter-spacing: 0 !important;
}
html body .homegrid-swipe-hint::after { display: none !important; }
html body .homegrid-page-count { display: block; color: #555; font-size: 12px; font-variant-numeric: tabular-nums; }
html body .homegrid-page-dots { display: none !important; }
html body .homegrid-app:focus-visible, html body .homegrid-pages:focus-visible,
html body .sense-entry-button:focus-visible, html body .homegrid-pager-controls button:focus-visible {
  outline: 3px solid #135ac4 !important; outline-offset: 4px !important;
}
@media (min-width: 760px) {
  html body .homegrid-home { padding-top: 48px !important; }
  html body .homegrid-apps { gap: 36px 28px !important; }
  html body.homegrid-page .homegrid-swipe-hint { font-size: 14px !important; }
}
@media (max-width: 360px) {
  html body .homegrid-apps { width: calc(100% - 20px) !important; column-gap: 6px !important; }
  html body .homegrid-label { font-size: 11px !important; }
  html body .homegrid-pager-controls { gap: 6px; padding-inline: 8px; }
  html body.homegrid-page .homegrid-swipe-hint { font-size: 11px !important; }
}
@media (prefers-reduced-motion: reduce) { html body .homegrid-pages { scroll-behavior: auto; } }

/* Mobile visual audit: equal tile sizes and label baselines across all pages. */
html body.homegrid-page .homegrid-home {
  --app-size: clamp(64px, calc((100vw - 72px) / 4), 88px);
  padding-top: max(28px, env(safe-area-inset-top)) !important;
}
html body.homegrid-page .homegrid-apps,
html body.homegrid-page .homegrid-app-page:nth-child(3) .homegrid-apps {
  width: min(calc(100% - 32px), 680px) !important;
  max-width: 680px !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px 8px !important;
  padding: 8px 0 18px !important;
}
html body.homegrid-page .homegrid-app {
  width: 100% !important; grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: var(--app-size) 40px !important; gap: 10px !important;
  align-items: start !important;
}
html body.homegrid-page .homegrid-icon {
  width: var(--app-size) !important; height: var(--app-size) !important;
  min-width: 0 !important; border-radius: 23% !important;
  box-shadow: 0 2px 5px rgba(20,24,30,.10) !important;
  background: var(--icon-color, #fff) !important;
}
html body.homegrid-page .homegrid-label {
  width: 100% !important; min-width: 0 !important; min-height: 40px !important;
  margin: 0 !important; font-size: 13px !important; font-weight: 600 !important;
  line-height: 1.45 !important; letter-spacing: -.04em !important;
  align-self: start !important;
}
html body.homegrid-page .homegrid-label-line { white-space: nowrap !important; }
html body.homegrid-page .homegrid-pager-controls {
  border-color: #e2e2e2; box-shadow: 0 2px 8px rgba(0,0,0,.03);
  margin-top: 4px; padding: 5px 10px; gap: 10px;
}
html body.homegrid-page .homegrid-pager-controls button { border-color: #ddd; }
html body.homegrid-page .homegrid-page-count { font-weight: 500; letter-spacing: .12em; }
@media (max-width: 360px) {
  html body.homegrid-page .homegrid-label { font-size: 11px !important; letter-spacing: -.03em !important; }
  html body.homegrid-page .homegrid-apps { width: calc(100% - 24px) !important; column-gap: 6px !important; }
}
@media (min-width: 760px) {
  html body.homegrid-page .homegrid-home { --app-size: 110px; padding-top: 42px !important; }
  html body.homegrid-page .homegrid-apps { row-gap: 30px !important; }
  html body.homegrid-page .homegrid-label { font-size: 15px !important; }
}

/* Center the drawn arrow, independent of font baseline / glyph bearings. */
html body.homegrid-page .homegrid-pager-controls button {
  flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px;
  display: grid; place-items: center; padding: 0; line-height: 0;
}
html body.homegrid-page .homegrid-pager-controls .homegrid-pager-arrow {
  display: block; width: 24px; height: 24px; margin: 0;
  fill: none; stroke: currentColor; stroke-width: 2.8;
  stroke-linecap: round; stroke-linejoin: round; transform: none;
}

/* Translucent swipe capsule: retain live page status for screen readers only. */
html body.homegrid-page .homegrid-page-count {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important; clip-path: inset(50%) !important;
  white-space: nowrap !important; border: 0 !important;
}
html body.homegrid-page .homegrid-pager-controls {
  isolation: isolate; border-radius: 999px;
  padding: 6px 8px; gap: 10px;
  background: linear-gradient(135deg, rgba(255,255,255,.66), rgba(255,255,255,.28) 48%, rgba(231,235,239,.38));
  border: 1px solid rgba(255,255,255,.80);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 -1px 0 rgba(125,139,153,.14), 0 8px 24px rgba(49,56,64,.10), 0 1px 3px rgba(49,56,64,.06);
}
html body.homegrid-page .homegrid-pager-controls button {
  background: linear-gradient(150deg, rgba(255,255,255,.58), rgba(255,255,255,.12));
  border: 1px solid rgba(255,255,255,.72); color: #303740;
  box-shadow: inset 0 1px 1px rgba(255,255,255,.90), 0 1px 4px rgba(57,65,74,.07);
  transition: background .16s ease, box-shadow .16s ease;
}
html body.homegrid-page .homegrid-pager-controls button:disabled { opacity: .32; }
html body.homegrid-page .homegrid-pager-controls button:not(:disabled):active {
  background: rgba(214,224,233,.48); box-shadow: inset 0 1px 4px rgba(57,65,74,.13);
}
html body.homegrid-page .homegrid-swipe-hint {
  color: #303740 !important; font-weight: 600 !important;
  text-shadow: 0 1px 0 rgba(255,255,255,.6) !important;
}
html body.homegrid-page .homegrid-pager-controls .homegrid-pager-arrow { stroke-width: 2.4; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html body.homegrid-page .homegrid-pager-controls { background: rgba(248,250,252,.93); }
}
@media (prefers-reduced-transparency: reduce) {
  html body.homegrid-page .homegrid-pager-controls { background: #f5f7f9; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  html body.homegrid-page .homegrid-pager-controls button { transition: none; }
}
