/* Zen Maru Gothic — SIL Open Font License 1.1 (see fonts/OFL.txt). */
@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Zen Maru Gothic";
  src: url("fonts/ZenMaruGothic-Black.woff2") format("woff2");
  font-style: normal;
  font-weight: 900;
  font-display: swap;
}

:root {
  --background: #ffffff;
  --paper: #ffffff;
  --surface: #f2f7f5;
  --surface-strong: #eef8f4;
  --text: #34443f;
  --text-strong: #183c34;
  --muted: #63746f;
  --accent: #f07a64;
  --accent-dark: #c95443;
  --accent-blue: #207565;
  --accent-navy: #19493f;
  --link: #17695c;
  --border: #183c34;
  --focus: #f07a64;
  --header-height: 72px;
  --reading-width: 760px;
  --page-gutter: clamp(20px, 4vw, 48px);
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.language-loading body {
  visibility: hidden;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent-dark);
}

a:focus-visible {
  border-radius: 4px;
  outline: 3px solid color-mix(in srgb, var(--focus) 34%, transparent);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border: 2px solid var(--text-strong);
  border-radius: 4px;
  background: var(--text-strong);
  box-shadow: 4px 4px 0 var(--accent);
  color: var(--paper);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 140ms ease;
}

.skip-link:focus {
  color: #ffffff;
  transform: translateY(0);
}

.site-header {
  position: static;
  z-index: 20;
  min-height: var(--header-height);
  border-bottom: 2px solid var(--border);
  background: rgb(255 255 255 / 96%);
  backdrop-filter: blur(14px);
}

.header-inner,
.footer-inner {
  display: flex;
  width: min(1120px, 100%);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.header-inner {
  min-height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.header-actions,
.language-switcher {
  display: flex;
  align-items: center;
}

.header-actions {
  gap: 20px;
}

.menu-button,
.drawer-close,
.drawer-backdrop {
  display: none;
}

.menu-button,
.drawer-close {
  width: 40px;
  height: 40px;
  padding: 0;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 3px 3px 0 var(--accent);
  color: var(--text-strong);
  cursor: pointer;
}

.menu-button svg,
.drawer-close svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.language-switcher {
  gap: 3px;
  padding: 3px;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 4px 4px 0 var(--accent-blue);
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.language-switcher a {
  min-width: 38px;
  padding: 8px 9px;
  border-radius: 3px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}

.language-switcher a[aria-current="page"] {
  background: var(--accent-blue);
  box-shadow: none;
  color: #ffffff;
}

.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, var(--reading-width));
  gap: clamp(48px, 6vw, 72px);
  width: min(1120px, 100%);
  margin-inline: auto;
  padding: 72px var(--page-gutter) 112px;
}

.table-of-contents {
  position: sticky;
  top: 32px;
  align-self: start;
  max-height: calc(100vh - 64px);
  padding: 20px 18px 22px;
  overflow-y: auto;
  border: 2px solid var(--border);
  border-radius: 5px;
  background: var(--paper);
  box-shadow: 6px 6px 0 var(--accent-navy);
  font-size: 13px;
  line-height: 1.42;
}

.toc-title {
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
  color: var(--text-strong);
  font-weight: 900;
}

html[lang="en"] .toc-title {
  letter-spacing: 0.08em;
}

.drawer-header {
  display: block;
}

.table-of-contents ol {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.table-of-contents a {
  display: block;
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

.table-of-contents a:hover {
  color: var(--accent-blue);
  transform: translateX(3px);
}

.policy {
  min-width: 0;
}

.policy-header {
  padding: clamp(30px, 5vw, 48px);
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 10px 10px 0 var(--accent);
}

.product-name {
  display: inline-block;
  margin-bottom: 20px;
  padding: 5px 11px 6px;
  border: 2px solid var(--border);
  border-radius: 3px;
  background: var(--accent-blue);
  box-shadow: 4px 4px 0 var(--accent-navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

h1,
h2,
h3,
p,
ul {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 900;
  letter-spacing: -0.035em;
}

html[lang="ja"] h1,
html[lang="ja"] h2,
html[lang="ja"] h3 {
  font-weight: 700;
  letter-spacing: -0.025em;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(44px, 6vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.06em;
}

h1 span {
  white-space: nowrap;
}

h1 span:last-child {
  color: inherit;
}

h2 {
  margin-bottom: 24px;
  font-size: clamp(23px, 3vw, 28px);
  line-height: 1.35;
}

h2 span {
  color: var(--accent-blue);
}

h3 {
  margin: 30px 0 12px;
  padding: 5px 0 5px 12px;
  border-left: 5px solid var(--accent);
  font-size: 18px;
  line-height: 1.4;
}

p {
  margin-bottom: 16px;
}

ul {
  margin-bottom: 18px;
  padding-left: 1.3em;
}

li + li {
  margin-top: 8px;
}

.effective-date {
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
}

.effective-date strong {
  color: var(--text);
}

.introduction {
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.62;
}

.policy > section {
  padding-top: 56px;
}

.policy > section + section:not(.summary) {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 2px dashed color-mix(in srgb, var(--text-strong) 36%, transparent);
}

.policy > section:not(.summary) > h2 {
  display: table;
  max-width: calc(100% - 7px);
  padding: 10px 16px 11px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--accent-blue);
  box-shadow: 7px 7px 0 var(--accent);
  color: #ffffff;
}

.policy > section:not(.summary) > h2 span {
  color: #ffd7c7;
}

.policy > section.summary {
  margin-top: 54px;
  padding: 32px;
  border: 2px solid var(--border);
  border-radius: 6px;
  background: var(--surface-strong);
  box-shadow: 9px 9px 0 var(--accent-navy);
}

.summary h2 {
  display: table;
  margin-bottom: 16px;
  padding: 8px 14px 9px;
  border: 2px solid var(--border);
  border-radius: 4px;
  background: var(--accent-blue);
  box-shadow: 5px 5px 0 var(--accent);
  color: #ffffff;
  font-size: 24px;
}

.summary ul {
  margin-bottom: 0;
}

.summary li::marker {
  color: var(--accent-blue);
}

.contact-note {
  padding: 14px 16px;
  border: 2px solid var(--border);
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--accent-blue);
  color: var(--text);
  font-size: 14px;
}

.site-footer {
  border-top: 2px solid var(--border);
  background: var(--text-strong);
  color: var(--paper);
  font-size: 13px;
}

.footer-inner {
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-top: 24px;
  padding-bottom: 24px;
}

.footer-inner p {
  margin: 0;
}

.github-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--paper);
  cursor: pointer;
}

.github-link svg {
  fill: currentColor;
}

.github-link:hover {
  color: var(--paper);
}

.github-link:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body.drawer-open {
    overflow: hidden;
  }

  .site-header {
    position: sticky;
    top: 0;
    transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.header-hidden {
    transform: translateY(-100%);
  }

  body.drawer-open .site-header {
    transform: translateY(0);
  }

  .page-shell {
    display: block;
    width: min(calc(var(--reading-width) + 2 * var(--page-gutter)), 100%);
    padding-top: 44px;
  }

  .menu-button,
  .drawer-close {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .table-of-contents {
    position: fixed;
    z-index: 60;
    top: 0;
    bottom: auto;
    left: 0;
    width: min(320px, calc(100vw - 56px));
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    margin: 0;
    padding: 0 0 calc(36px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    -webkit-overflow-scrolling: touch;
    border: 0;
    border-right: 2px solid var(--border);
    border-radius: 0;
    background: var(--paper);
    box-shadow: 10px 0 0 var(--accent-navy);
    font-size: 15px;
    transform: translateX(-105%);
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .drawer-open .table-of-contents {
    transform: translateX(0);
  }

  .drawer-header {
    position: sticky;
    z-index: 1;
    top: 0;
    display: flex;
    min-height: var(--header-height);
    padding: 12px 16px 12px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 2px solid var(--border);
    background: rgb(255 255 255 / 96%);
    backdrop-filter: blur(12px);
  }

  .drawer-header .toc-title {
    margin: 0;
  }

  .table-of-contents ol {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 14px 12px;
  }

  .table-of-contents a {
    padding: 10px 11px;
    border-radius: 3px;
    color: var(--text);
  }

  .table-of-contents a:hover {
    background: var(--surface);
  }

  .drawer-backdrop {
    position: fixed;
    z-index: 50;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    background: rgb(24 60 52 / 45%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
  }

  .drawer-open .drawer-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 600px) {
  :root {
    --header-height: 64px;
  }

  body {
    font-size: 15.5px;
    line-height: 1.64;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    gap: 12px;
  }

  .language-switcher a {
    min-width: 36px;
    padding: 7px 8px;
  }

  .brand img {
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .page-shell {
    padding-top: 30px;
    padding-bottom: 72px;
  }

  .policy-header {
    padding: 26px 22px 28px;
    box-shadow: 6px 6px 0 var(--accent);
  }

  h1 {
    font-size: 42px;
  }

  .policy > section {
    padding-top: 38px;
  }

  .policy > section + section:not(.summary) {
    margin-top: 38px;
    padding-top: 38px;
  }

  .policy > section.summary {
    margin-top: 38px;
    padding: 24px;
    border-radius: 4px;
    box-shadow: 6px 6px 0 var(--accent-navy);
  }

  .policy > section:not(.summary) > h2 {
    padding: 9px 12px 10px;
    box-shadow: 5px 5px 0 var(--accent);
  }

  .footer-inner {
    gap: 20px;
  }
}

@media (max-width: 360px) {
  .brand {
    gap: 0;
    font-size: 0;
  }

  .header-actions {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  :root {
    --text: #000000;
    --text-strong: #000000;
  }

  .site-header,
  .table-of-contents,
  .site-footer,
  .skip-link {
    display: none;
  }

  .page-shell {
    display: block;
    width: auto;
    padding: 0;
  }

  .policy-header {
    padding: 0 0 24px;
    border: 0;
    border-bottom: 1px solid #aaaaaa;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }

  .product-name {
    display: block;
    margin-bottom: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #000000;
    font-weight: 700;
  }

  h1 {
    font-size: 36px;
  }

  .summary {
    border: 1px solid #aaaaaa;
    background: #ffffff;
    box-shadow: none;
  }

  .policy > section:not(.summary) > h2,
  .contact-note {
    box-shadow: none;
  }

  .policy > section,
  .policy > section + section:not(.summary) {
    margin-top: 20px;
    padding-top: 20px;
  }

  a {
    color: inherit;
  }
}
