/* Minimal monochrome — aligned with bokuapp.com / app style.css */
:root {
  --md-sys-color-surface: #ffffff;
  --md-sys-color-surface-container: #f5f5f5;
  --md-sys-color-on-surface: #0a0a0a;
  --md-sys-color-on-surface-variant: #666666;
  --md-sys-color-outline-variant: #e8e8e8;
  --md-sys-color-primary: #0a0a0a;
  --md-sys-state-hover: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent);
  --md-sys-shape-corner-large: 0;
  --md-sys-shape-corner-extra-large: 0;

  --bg: var(--md-sys-color-surface);
  --surface: var(--md-sys-color-surface);
  --ink: var(--md-sys-color-on-surface);
  --muted: var(--md-sys-color-on-surface-variant);
  --line: var(--md-sys-color-outline-variant);
  --accent: var(--md-sys-color-primary);
  --radius: var(--md-sys-shape-corner-large);
  --shadow: none;
  --text-label: #999999;
  --header-h: 3rem;

  --font-sans: "Inter", "Noto Sans JP", sans-serif;
  --font-display: "Inter", "Noto Sans JP", sans-serif;
  --font-jp: "Noto Sans JP", sans-serif;
  --text-secondary: #444444;
  --content: 48rem;
  --wide: 48rem;

  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

html {
  font-size: 16px;
  -moz-osx-font-smoothing: grayscale;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  line-height: 1.65;
  color: var(--ink);
  background: var(--md-sys-color-surface);
  -webkit-font-smoothing: antialiased;
}

.legal-wrap {
  width: min(var(--wide, 48rem), calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.75rem 0 1rem;
}

.legal-panel {
  background: var(--surface);
  border: none;
  border-radius: 0;
  padding: 1.5rem 1.25rem 1.75rem;
  box-shadow: none;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text-label, #999999);
  margin: 0 0 1.5rem;
  list-style: none;
  padding: 0;
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.35rem;
  color: var(--line);
}

.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.breadcrumb [aria-current="page"] {
  color: var(--ink);
}

.legal-panel h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display, var(--font-sans));
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.legal-panel h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display, var(--font-sans));
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.4;
  color: var(--ink);
}

.legal-panel p,
.legal-panel li {
  color: var(--text-secondary, #444444);
  font-family: var(--font-jp, "Noto Sans JP", sans-serif);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.75;
}

.legal-panel a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.legal-updated {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.legal-dl {
  margin: 0;
}

.legal-dl-row {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.legal-dl-row:last-child {
  border-bottom: 0;
}

.legal-dl dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-label, #999999);
}

.legal-dl dd {
  margin: 0;
  font-family: var(--font-jp, "Noto Sans JP", sans-serif);
  font-size: 0.9375rem;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink);
}

.legal-list {
  margin: 0.4rem 0 0;
  padding-left: 1.2rem;
}

.legal-related {
  margin: 1.25rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--md-sys-color-outline-variant, #e8e8e8);
  background: var(--md-sys-color-surface, #fff);
  padding: 2.5rem 1.25rem 2.5rem;
  text-align: left;
}

.site-footer-inner {
  max-width: var(--wide, 48rem);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.footer-brand {
  font-family: var(--font-display, var(--font-sans));
  font-weight: 500;
  color: var(--ink, #0a0a0a);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
}

.footer-brand .brand-period {
  color: var(--accent, #0a0a0a);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
}

.footer-nav a {
  color: var(--text-label, #999999);
  text-decoration: none;
  font-size: 0.75rem;
  min-height: auto;
  display: inline-flex;
  align-items: center;
}

.footer-nav a:hover {
  color: var(--ink, #0a0a0a);
}

.footer-meta {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-label, #999999);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
}

/* Site header (same as app top) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--md-sys-color-surface);
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  max-width: var(--wide, 48rem);
  margin: 0 auto;
  padding: 0 1.25rem;
  height: var(--header-h, 3rem);
  min-height: var(--header-h, 3rem);
  box-sizing: border-box;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
}

html[lang="en"] .is-reading,
html.locale-en .is-reading {
  display: none !important;
}

html[lang="en"] [data-lang="ja"],
html.locale-en [data-lang="ja"] {
  display: none !important;
}

html[lang="ja"] [data-lang="en"],
html.locale-ja [data-lang="en"] {
  display: none !important;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.lang-toggle {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2rem;
  min-width: 2.25rem;
  margin: 0;
  padding: 0.25rem 0.45rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text-label, #999999);
  font: inherit;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.2;
  cursor: pointer;
}

.lang-toggle:hover {
  color: var(--ink);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  text-decoration: none;
  color: var(--ink);
  line-height: 1.2;
  flex-shrink: 0;
}

.brand:hover {
  color: var(--ink);
}

.brand-name {
  font-family: var(--font-display, var(--font-sans));
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.brand-period {
  color: var(--accent, #0a0a0a);
  font-weight: 500;
}

.brand-domain {
  font-size: 0.625rem;
  color: var(--text-label, #999999);
  letter-spacing: 0.08em;
}

.site-header-menu-btn {
  appearance: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-header-menu-btn:hover {
  background: var(--md-sys-state-hover);
}

.site-header-menu-btn:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.site-header-menu-icon,
.site-header-menu-icon::before,
.site-header-menu-icon::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.site-header-menu-icon {
  position: relative;
  background: transparent;
}

.site-header-menu-icon::before,
.site-header-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.site-header-menu-icon::before {
  top: -4px;
}

.site-header-menu-icon::after {
  top: 4px;
}

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.site-menu[hidden] {
  display: none;
}

.site-menu.is-open {
  pointer-events: auto;
}

.site-menu-backdrop {
  appearance: none;
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.site-menu.is-open .site-menu-backdrop {
  opacity: 1;
}

.site-menu-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(20rem, 86vw);
  background: var(--md-sys-color-surface);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.22s ease;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
  padding-right: env(safe-area-inset-right, 0px);
}

.site-menu.is-open .site-menu-drawer {
  transform: translateX(0);
}

.site-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
  padding: 0.5rem 0.85rem 0.5rem 1.15rem;
  border-bottom: 1px solid var(--md-sys-color-outline-variant);
}

.site-menu-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--md-sys-color-on-surface);
}

.site-menu-close {
  appearance: none;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--md-sys-color-on-surface);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-menu-close:hover {
  background: var(--md-sys-state-hover);
}

.site-menu-close:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 2px;
}

.site-menu-nav {
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.site-menu-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}

.site-menu-list a {
  display: block;
  padding: 0.95rem 1.15rem;
  color: var(--md-sys-color-on-surface);
  text-decoration: none;
  font-size: 0.95rem;
}

.site-menu-list a:hover {
  background: var(--md-sys-state-hover);
}

html.is-site-menu-open {
  overflow: hidden;
}

.not-found {
  text-align: center;
  padding: 2.5rem 0 3rem;
}

.not-found h1 {
  margin: 0 0 0.75rem;
  font-size: 1.45rem;
  font-weight: 500;
}

.not-found .page-lead {
  margin: 0 auto 1.75rem;
  max-width: 28rem;
  color: var(--muted);
}

.not-found-actions {
  margin: 0;
}

.not-found .home-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: min(100%, 16rem);
  padding: 0.85rem 1.5rem;
  background: var(--md-sys-color-primary);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

.not-found .home-cta:hover {
  background: color-mix(in srgb, #000 12%, var(--md-sys-color-primary));
  color: #ffffff;
}

.not-found .home-cta:focus-visible {
  outline: 2px solid var(--md-sys-color-primary);
  outline-offset: 3px;
}


/* Desktop nav: hidden on mobile */
.nav-desktop {
  display: none;
}

/* PC layout (≥1024px) */
@media (min-width: 1024px) {
  :root {
    --md-sys-color-on-surface: #0c0c0c;
    --md-sys-color-primary: #0c0c0c;
    --text-label: #888888;
    --header-h: 3.5rem;
    --content: 68.75rem;
    --wide: 68.75rem;
  }

  .site-header-inner {
    max-width: 1100px;
    padding: 0 40px;
    height: 56px;
    min-height: 56px;
  }

  .brand-name {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: -0.02em;
  }

  .brand-domain {
    font-size: 0.6875rem;
    color: #888888;
    letter-spacing: 0.06em;
  }

  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    margin-right: 1rem;
  }

  .nav-desktop a {
    font-size: 0.75rem;
    color: #888888;
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: color 0.15s ease;
  }

  .nav-desktop a:hover,
  .nav-desktop a[aria-current="page"] {
    color: #0c0c0c;
  }

  .site-header-menu-btn,
  .site-menu {
    display: none !important;
  }

  .legal-wrap {
    width: min(1100px, calc(100% - 80px));
    padding: 3rem 0 2rem;
  }

  .site-footer {
    padding: 1.75rem 40px;
  }

  .site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-brand {
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: -0.02em;
  }

  .footer-nav {
    gap: 1.75rem;
  }

  .footer-nav a {
    font-size: 0.75rem;
    color: #888888;
    min-height: auto;
    transition: color 0.15s ease;
  }

  .footer-nav a:hover {
    color: #0c0c0c;
  }

  .footer-meta {
    font-size: 0.6875rem;
    color: #bbbbbb;
    font-weight: 300;
  }
}

/* 「ぼくの。」→ bokuapp.com on click; sister apps on hover (editorial list) */
.boku-apps {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.boku-apps-trigger {
  color: inherit;
  text-decoration: none;
}

.boku-apps-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 60;
  min-width: 17.5rem;
  margin: 0;
  padding: 0.85rem 1.25rem 1.25rem;
  background: #ffffff;
  border: 0;
  border-top: 1px solid #0c0c0c;
  box-sizing: border-box;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.06);
}


.boku-apps:hover .boku-apps-panel,
.boku-apps:focus-within .boku-apps-panel {
  display: grid;
  gap: 0;
  animation: boku-apps-in 0.22s ease;
}

@keyframes boku-apps-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.boku-apps-link {
  display: block;
  margin: 0;
  padding: 0.7rem 0;
  border: 0;
  border-bottom: 1px solid #efefef;
  color: #0c0c0c !important;
  text-decoration: none;
  background: transparent;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.boku-apps-link:last-child {
  border-bottom: 0;
  padding-bottom: 0.15rem;
}

.boku-apps-link:first-child {
  padding-top: 0.15rem;
}


.boku-apps-copy {
  display: grid;
  gap: 0.12rem;
  min-width: 0;
}

.boku-apps-name {
  font-family: var(--font-jp, "Noto Sans JP", sans-serif);
  font-size: 0.875rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.35;
  color: #0c0c0c;
}

.boku-apps-host {
  font-family: var(--font-sans, "Inter", sans-serif);
  font-size: 0.625rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: #b0b0b0;
  line-height: 1.2;
}

.boku-apps-link:hover,
.boku-apps-link[aria-current="page"] {
  background: transparent;
  transform: translateX(3px);
  color: #0c0c0c !important;
}

.boku-apps-link:hover .boku-apps-name,
.boku-apps-link[aria-current="page"] .boku-apps-name {
  font-weight: 500;
}

.boku-apps-link:hover .boku-apps-host,
.boku-apps-link[aria-current="page"] .boku-apps-host {
  color: #888888;
}

.boku-apps--footer .boku-apps-panel {
  top: auto;
  bottom: 100%;
  padding: 1.15rem 1.25rem 0.85rem;
  border-top: 0;
  border-bottom: 1px solid #0c0c0c;
  box-shadow: 0 -18px 40px rgba(0, 0, 0, 0.05);
}


.site-menu-apps {
  display: grid;
  gap: 0;
  padding: 0.15rem 1.15rem 1rem;
  border-bottom: 1px solid #e8e8e8;
}

.site-menu-apps .boku-apps-link {
  padding: 0.85rem 0;
}

