/* Outfit (geometric sans, SIL OFL 1.1) for the wordmark and Latin text.
   Zen Kaku Gothic New (SIL OFL 1.1) for Japanese.
   Licenses: /fonts/outfit-OFL.txt and /fonts/zen-kaku-gothic-new-OFL.txt.
   Files are subsets of the characters used on the top page and the 404 page.
   Anything else falls back to the next installed font. */

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/outfit-400.woff2") format("woff2");
  unicode-range: U+20, U+28-29, U+2E-2F, U+40, U+45, U+47-48, U+4D, U+57-58, U+61-63, U+65, U+67-69, U+6B-6D, U+6F, U+74-75, U+78;
}

@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/outfit-700.woff2") format("woff2");
  unicode-range: U+20, U+28-29, U+2E-2F, U+40, U+45, U+47-48, U+4D, U+57-58, U+61-63, U+65, U+67-69, U+6B-6D, U+6F, U+74-75, U+78;
}

@font-face {
  font-family: "Zen Kaku Gothic New";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/zen-kaku-gothic-new-400.woff2") format("woff2");
  unicode-range: U+3001-3002, U+3044, U+304B-304C, U+3053, U+305B, U+3060, U+3064, U+3066, U+306B, U+306E-306F, U+3078, U+307E, U+3082, U+308A-308B, U+3093, U+30A2, U+30A4, U+30AF, U+30B8-30B9, U+30C3, U+30C8-30C9, U+30CF, U+30D7, U+30DA, U+30DC, U+30EC, U+30FC, U+4F55, U+5148, U+623B, U+6587, U+672C, U+7D61, U+7F6E, U+898B, U+9023;
}

:root {
  --paper: #f6f5f2;
  --ink: #1a1a1a;
  --rule: rgba(26, 26, 26, 0.28);
  --sans: "Outfit", "Avenir Next", "Hiragino Sans", "Noto Sans", sans-serif;
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans CJK JP", "WenQuanYi Micro Hei", "Droid Sans Fallback", sans-serif;
  color-scheme: light;
}

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

html {
  background: var(--paper);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #e4e0d6;
  color: var(--ink);
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 2;
  padding: 8px 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--jp);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.sheet {
  width: min(36rem, 100%);
  margin-inline: auto;
  padding: clamp(4.5rem, 14vh, 8rem) 1.5rem 5rem;
}

.mark {
  margin: 0;
  font-weight: 700;
  font-size: clamp(3.25rem, 7vw, 4.85rem);
  letter-spacing: -0.045em;
  line-height: 1.15;
  font-variant-ligatures: none;
}

.mark ruby,
.brand ruby {
  ruby-position: over;
  ruby-align: start;
}

.mark rt,
.brand rt {
  font-family: var(--jp);
  font-weight: 400;
  letter-spacing: 0.06em;
  line-height: 1;
}

.mark rt {
  font-size: max(12px, 0.2em);
}

.contacts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  column-gap: 2rem;
  row-gap: 0.85rem;
  margin: clamp(3rem, 7vh, 4.75rem) 0 0;
  padding: 0;
}

.contacts > div {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  align-items: baseline;
}

dt,
dd {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.45;
}

dt {
  white-space: nowrap;
}

dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

dd a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.22em;
}

dd a:hover {
  text-decoration-color: var(--ink);
}

.apps,
.guides {
  margin: clamp(2.75rem, 6vh, 3.75rem) 0 0;
}

.guides {
  margin-top: clamp(1.85rem, 4vh, 2.5rem);
}

.apps h2,
.guides h2 {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: var(--jp);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.4;
}

.apps ul,
.guides ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.apps li,
.guides li {
  position: relative;
  width: fit-content;
  max-width: 100%;
}

.apps li + li,
.guides li + li {
  margin-top: 1.15rem;
}

.apps a,
.guides a {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}

.entry-name {
  max-width: 100%;
  font-family: var(--jp);
  font-size: 1.0625rem;
  line-height: 1.45;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.22em;
  overflow-wrap: anywhere;
}

.apps a:hover .entry-name,
.guides a:hover .entry-name,
.apps a:focus-visible .entry-name,
.guides a:focus-visible .entry-name {
  text-decoration-color: var(--ink);
}

.entry-url {
  max-width: 100%;
  margin-top: 0.12rem;
  color: var(--ink);
  font-family: "Avenir Next", "Hiragino Sans", "Noto Sans", sans-serif;
  font-size: 0.875rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.entry-sr,
.entry-more {
  margin: 0;
}

.entry-sr summary,
.entry-more summary {
  display: none;
  list-style: none;
}

@media not (pointer: coarse) {
  .entry-sr::details-content {
    display: block;
    content-visibility: visible;
  }
}

.entry-more summary::-webkit-details-marker {
  display: none;
}

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

.apps li:hover .entry-tip,
.guides li:hover .entry-tip,
.apps li:focus-within:has(a:focus-visible) .entry-tip,
.guides li:focus-within:has(a:focus-visible) .entry-tip {
  position: absolute;
  z-index: 1;
  top: auto;
  right: auto;
  bottom: 0;
  left: calc(100% + 0.75rem);
  width: max-content;
  height: auto;
  max-width: calc(100vw - 3rem - 100% - 0.75rem);
  margin: 0;
  transform: none;
  padding: 0.55rem 0.75rem;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--jp);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.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 {
  margin: 0 0 2.75rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.7;
}

.brand a {
  color: inherit;
  text-decoration: none;
}

.brand rt {
  font-size: max(11px, 0.48em);
}

.missing-title,
.missing-note,
.missing-back {
  font-family: var(--jp);
  font-weight: 400;
}

.missing-title {
  margin: 0;
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  letter-spacing: 0.04em;
  line-height: 1.45;
}

.missing-note {
  margin: 0.85rem 0 0;
  font-size: 0.95rem;
  line-height: 1.75;
}

.missing-back {
  margin: 1.75rem 0 0;
  font-size: 0.95rem;
}

.missing-back a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: 0.22em;
}

.missing-back a:hover {
  text-decoration-color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

@media (min-width: 576px) {
  .apps li:hover .entry-tip,
  .guides li:hover .entry-tip,
  .apps li:focus-within:has(a:focus-visible) .entry-tip,
  .guides li:focus-within:has(a:focus-visible) .entry-tip {
    max-width: calc(33rem - 100% - 0.75rem);
  }
}

@media (max-width: 420px) {
  .apps li:hover .entry-tip,
  .guides li:hover .entry-tip,
  .apps li:focus-within:has(a:focus-visible) .entry-tip,
  .guides li:focus-within:has(a:focus-visible) .entry-tip {
    max-width: calc(100vw - 2.5rem - 100% - 0.75rem);
  }

  .guides li:hover .entry-tip,
  .guides li:focus-within:has(a:focus-visible) .entry-tip {
    top: calc(100% + 0.45rem);
    right: auto;
    bottom: auto;
    left: 0;
    width: max-content;
    max-width: calc(100vw - 2.5rem);
  }
}

@media (hover: hover) and (pointer: fine) {
  .entry-more summary {
    display: none;
  }
}

@media (pointer: coarse) {
  .apps li:hover .entry-tip,
  .guides li:hover .entry-tip,
  .apps li:focus-within:has(a:focus-visible) .entry-tip,
  .guides li:focus-within:has(a:focus-visible) .entry-tip {
    position: absolute;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 1px;
    height: 1px;
    max-width: none;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    background: transparent;
  }

  .apps li,
  .guides li {
    width: 100%;
    padding-right: 44px;
  }

  .entry-more summary {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    color: var(--ink);
    cursor: pointer;
  }

  .entry-more summary:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
  }

  .entry-more[open] summary {
    color: var(--paper);
  }

  .entry-more[open] summary .entry-glyph {
    background: var(--ink);
    border-radius: 50%;
  }

  .apps li .entry-more[open] > .entry-panel,
  .guides li .entry-more[open] > .entry-panel {
    position: static;
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    margin: 0.7rem 0 0;
    padding: 0.55rem 0.75rem;
    overflow: visible;
    clip: auto;
    white-space: normal;
    background: var(--ink);
    color: var(--paper);
    font-family: var(--jp);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.65;
    word-break: keep-all;
    overflow-wrap: break-word;
  }
}

@media (max-width: 420px) {
  .sheet {
    padding-inline: 1.25rem;
  }

  .contacts {
    column-gap: 1.25rem;
  }

  dt,
  dd {
    font-size: 1rem;
  }
}
