:root {
  --bg: #fff;
  --text: #000;
  --muted: #000;
  --line: #d8d8d8;
  --max-width: 1120px;
  --content-width: 760px;
  --footer-clearance: 156px;
  --home-footer-height: 76px;
  --home-logo-height: min(280px, 30.1205vw, calc((100svh - var(--home-footer-height)) / 1.5));
  --home-lockup-gap: calc(var(--home-logo-height) * 0.25);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: "IBM Plex Sans JP", sans-serif;
  font-size: 14px;
  line-height: 1.9;
  padding-bottom: var(--footer-clearance);
}

body.site-home {
  min-height: 100svh;
  padding-bottom: 0;
  overflow: hidden;
}

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

a:hover,
a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  width: min(100%, var(--max-width));
  min-height: 100vh;
  margin: 0 auto;
  padding: 24px 40px 0;
  display: flex;
  flex-direction: column;
}

.site-home .site-shell {
  min-height: calc(100svh - var(--home-footer-height));
  padding: 0;
  justify-content: center;
}

.home-main {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 24px 0 48px;
}

.site-home .home-main {
  min-height: calc(100svh - var(--home-footer-height));
  padding: var(--home-lockup-gap);
}

.home-panel {
  display: flex;
  justify-content: center;
  width: 100%;
}

.home-lockup {
  position: relative;
  display: inline-block;
  width: min(789.6px, calc(var(--home-logo-height) * 2.82));
  container-type: inline-size;
}

.home-logo {
  width: 100%;
  height: auto;
  margin: 0;
}

.home-copy {
  position: absolute;
  left: 17.6%;
  bottom: 9.9%;
  width: 47.2%;
  margin: 0;
  color: #000;
  font-size: 1.5cqw;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.2em;
  white-space: nowrap;
  text-align: right;
}

.page-main {
  flex: 1;
  width: min(100%, var(--content-width));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.page-back {
  display: inline-block;
  margin-bottom: 48px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-header {
  margin-bottom: 52px;
}

.page-title {
  margin: 0;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.3;
  text-wrap: balance;
}

.page-summary {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  text-wrap: pretty;
}

.doc-section {
  margin-top: 44px;
}

.doc-section h2 {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  text-wrap: balance;
}

.doc-section p,
.doc-section li {
  margin: 0;
  font-size: 13px;
  text-wrap: pretty;
}

.doc-section p + p,
.doc-section ul {
  margin-top: 16px;
}

.doc-section ul {
  padding-left: 18px;
}

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  background: #000;
  color: #fff;
  padding: 18px 40px;
}

.footer-main {
  width: 100%;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-logo-link {
  flex: 0 0 auto;
}

.footer-logo {
  width: auto;
  height: 40px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 12px;
}

.footer-nav a {
  color: #fff;
}

.footer-mobile-menu {
  display: none;
  position: relative;
  margin-left: auto;
}

.footer-mobile-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}

.footer-mobile-icon {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
  background: linear-gradient(currentColor, currentColor) center / 22px 2px no-repeat;
}

.footer-mobile-icon::before,
.footer-mobile-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px;
  height: 2px;
  background: currentColor;
}

.footer-mobile-icon::before {
  top: 0;
}

.footer-mobile-icon::after {
  bottom: 0;
}

.footer-mobile-toggle::-webkit-details-marker {
  display: none;
}

.footer-mobile-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: grid;
  gap: 12px;
  min-width: 220px;
  padding: 16px 18px;
  border: 1px solid #fff;
  border-radius: 18px;
  background: #000;
}

.footer-mobile-panel a {
  color: #fff;
  font-size: 12px;
}

@media (max-width: 720px) {
  :root {
    --footer-clearance: 108px;
    --home-footer-height: 72px;
  }

  .site-shell {
    padding: 16px 40px 0;
  }

  .home-main {
    padding: 16px 0 40px;
  }

  .site-home .site-shell {
    padding: 0;
  }

  .site-home .home-main {
    padding: var(--home-lockup-gap);
  }

  .page-main {
    padding: 40px 0 64px;
  }

  .page-title {
    font-size: 22px;
  }

  .site-footer {
    padding: 16px 40px;
  }

  .footer-main {
    align-items: center;
    gap: 16px;
  }

  .footer-left {
    gap: 0;
  }

  .footer-nav {
    display: none;
  }

  .footer-mobile-menu {
    display: block;
  }
}
