:root {
  --bg: #F6F7F9;
  --text: #1C1C1C;
  --sub: #667085;
  --accent: #2F6FED;
  --ember: #C97B48;
  --night: #1B2230;
  --line: rgba(28, 28, 28, 0.12);
  --soft-line: rgba(28, 28, 28, 0.07);
  --font-ja: "Zen Kaku Gothic New", "Noto Sans JP", "BIZ UDPGothic", "Yu Gothic UI", sans-serif;
  --font-latin: "Segoe UI", Arial, Verdana, var(--font-ja);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(27, 34, 48, 0.035), rgba(246, 247, 249, 0) 36%),
    var(--bg);
  font-family: var(--font-ja);
  font-size: 16px;
  line-height: 2;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.04em;
  text-underline-offset: 0.38em;
  transition:
    color 540ms ease,
    opacity 540ms ease,
    text-decoration-color 540ms ease;
}

a:hover,
a:focus-visible {
  color: var(--accent);
}

a:focus-visible {
  outline: 1px solid var(--accent);
  outline-offset: 0.35rem;
  text-decoration: underline;
  text-decoration-color: rgba(47, 111, 237, 0.32);
}

::selection {
  color: #fff;
  background: var(--night);
}

.home-place,
.site-place {
  width: min(100% - 48px, 720px);
  margin: 0 auto;
}

.home-place {
  width: min(100% - 48px, 680px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 13vh 0 16vh;
}

.site-place {
  padding: 76px 0 64px;
}

.site-name {
  margin: 0 0 54px;
  color: var(--sub);
  font-family: var(--font-ja);
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
}

.home-words {
  margin: 0;
  font-size: 3.35rem;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
}

.quiet-nav {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-top: 88px;
  color: var(--sub);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0;
}

.quiet-nav a,
.small-link,
.page-nav a {
  transition:
    color 540ms ease,
    opacity 540ms ease,
    text-decoration-color 540ms ease;
}

.quiet-nav a:hover,
.small-link:hover,
.page-nav a:hover {
  opacity: 0.85;
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  margin-bottom: 92px;
}

.site-header .site-name {
  margin: 0;
}

.site-name:hover {
  opacity: 0.82;
  text-decoration: none;
}

.small-link {
  color: var(--sub);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
}

.fragments {
  display: grid;
  gap: 62px;
}

.fragment {
  display: block;
  padding: 0 0 44px;
  border-bottom: 1px solid var(--soft-line);
  color: var(--text);
  transition:
    border-color 560ms ease,
    opacity 560ms ease;
}

.fragment:hover {
  color: var(--text);
  border-bottom-color: rgba(47, 111, 237, 0.12);
  text-decoration: none;
}

.fragment:last-child {
  border-bottom: 0;
}

.fragment time,
.entry-date {
  display: block;
  margin-bottom: 1.32rem;
  color: var(--sub);
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
}

.fragment p,
.entry-body p {
  margin: 0;
  font-size: 1.34rem;
  font-weight: 400;
  line-height: 1.94;
}

.fragment time,
.fragment p {
  transition:
    color 560ms ease,
    opacity 560ms ease;
}

.fragment:hover time {
  color: var(--accent);
  opacity: 0.72;
}

.fragment:hover p {
  color: var(--accent);
  opacity: 0.82;
}

.fragment p + p,
.entry-body p + p {
  margin-top: 0.15rem;
}

.entry {
  max-width: 620px;
  padding-top: 10px;
}

.entry-body {
  margin-top: 64px;
}

.entry-body p {
  font-size: 1.48rem;
  line-height: 2;
}

.page-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 112px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #7B8798;
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0;
}

.page-nav a {
  color: #7B8798;
  transition:
    color 560ms ease,
    opacity 560ms ease;
}

.page-nav a:hover,
.page-nav a:focus-visible {
  color: rgba(47, 111, 237, 0.62);
  opacity: 0.78;
  text-decoration: none;
}

.page-nav a:first-child {
  justify-self: start;
}

.page-nav a:nth-child(2) {
  justify-self: center;
}

.page-nav a:last-child {
  justify-self: end;
}

.page-nav .muted {
  color: rgba(102, 112, 133, 0.42);
}

[data-fade] {
  animation: breathe-in 900ms ease both;
}

@keyframes breathe-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

@media (min-width: 761px) {
  .site-name,
  .quiet-nav,
  .small-link,
  .page-nav,
  .fragment time,
  .entry-date {
    font-family: var(--font-latin);
    font-weight: 400;
  }

  .site-name {
    font-size: 0.81rem;
  }

  .site-name,
  .fragment time,
  .entry-date {
    font-variant-numeric: tabular-nums;
  }
}

@media (max-width: 760px) {
  .home-words {
    font-size: 2.72rem;
    line-height: 1.58;
  }

  .quiet-nav {
    margin-top: 70px;
  }
}

@media (max-width: 560px) {
  .home-place,
  .site-place {
    width: min(100% - 32px, 720px);
  }

  .site-place {
    padding-top: 48px;
  }

  .site-header {
    margin-bottom: 68px;
  }

  .home-place {
    padding-top: 12vh;
    padding-bottom: 12vh;
  }

  .home-words {
    font-size: 2.24rem;
    line-height: 1.58;
  }

  .site-name {
    margin-bottom: 42px;
  }

  .quiet-nav {
    margin-top: 62px;
  }

  .fragments {
    gap: 48px;
  }

  .fragment {
    padding-bottom: 34px;
  }

  .entry-body {
    margin-top: 52px;
  }

  .fragment p,
  .entry-body p {
    font-size: 1.18rem;
    line-height: 1.95;
  }

  .entry-body p {
    font-size: 1.24rem;
    line-height: 2;
  }

  .page-nav {
    margin-top: 84px;
    gap: 12px;
  }
}

.site-footer {
  margin-top: 90px;
  color: var(--sub);
  font-family: var(--font-latin);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0;
}
