:root {
  --fg: rgb(55, 53, 47);
  --fg-line: rgba(55, 53, 47, 0.09);
  --fg-muted: rgba(55, 53, 47, 0.4);
  --yellow: rgb(223, 171, 1);
  --header-height: 45px;
}

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

html,
body {
  margin: 0;
  background: #fff;
  scroll-padding-top: var(--header-height);
}

body {
  color: var(--fg);
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

.page {
  padding-top: var(--header-height);
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  width: 100%;
  height: var(--header-height);
  background: #fff;
}

.header-inner {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 4px 16px;
}

.crumbs {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin-right: 8px;
  color: var(--fg);
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
}

.crumbs a,
.crumbs .current {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--fg);
  text-decoration: none;
}

.crumbs a:hover {
  text-decoration: underline;
}

.crumbs img {
  display: block;
  width: 1em;
  height: 1em;
  margin-right: 4px;
  object-fit: cover;
}

.crumbs .label {
  overflow: hidden;
  max-width: 240px;
  line-height: 1.2;
  text-overflow: ellipsis;
}

.crumbs .sep {
  margin: 0 0.5em;
  color: var(--fg-muted);
  line-height: 1;
}

.cover {
  display: block;
  width: 100%;
  height: 30vh;
  object-fit: cover;
  object-position: center 40%;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 16px 32px;
  word-break: break-word;
}

.contents {
  position: relative;
  padding-top: 75px;
}

.page-icon {
  position: absolute;
  top: -60px;
  left: 0;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
}

.title {
  margin: 0 0 32px;
  color: var(--fg);
  font-size: 40px;
  font-weight: 700;
  line-height: 1.5;
}

.section-title {
  margin: 1.08em 0 1px;
  padding: 3px 2px;
  color: var(--yellow);
  font-size: 1.875em;
  font-weight: 600;
  line-height: 1.3;
}

.article-title {
  margin: 1.1em 0 1px;
  padding: 3px 2px;
  color: rgb(15, 123, 108);
  font-size: 1.5em;
  font-weight: 600;
  line-height: 1.3;
}

.article-title.plain {
  color: var(--fg);
}

.contents a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--fg-muted);
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
}

.contents hr {
  width: 100%;
  height: 0;
  margin: 6px 0;
  border: 0;
  border-bottom: 1px solid var(--fg-line);
}

.contents p {
  margin: 1px 0;
  padding: 3px 2px;
  white-space: pre-wrap;
  word-break: break-word;
}

.blank {
  min-height: 1rem;
  margin: 1px 0;
  padding: 3px 2px;
  line-height: 1.5;
}

.contents ul {
  margin: 0;
  padding: 0 0 0 1.7em;
  list-style-type: disc;
}

.contents li {
  padding: 6px 0;
  white-space: pre-wrap;
}

@media (max-width: 640px) {
  .header-inner {
    padding: 4px 8px;
  }

  .crumbs {
    font-size: 16px;
  }

  .title {
    font-size: 32px;
  }
}
