@charset "UTF-8";

:root {
  --color-ground: #e6e6e6;
  --color-mark: #111111;
  --color-on-ground: #111111;
  --color-structure: #111111;
  --color-accent: #111111;
  --color-paper: #fff;
  --color-ink: #111;
  --color-muted: #767676;
  --header-height: 80px;
  --gutter: calc(80 / 1366 * 100vw);
  --grid-gap: calc(40 / 1366 * 100vw);
  --section-gap: 64px;
  --transition: 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --font-sans: "YakuHanJPs", "Noto Sans JP", "Yu Gothic", "YuGothic", "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  --font-serif: "YakuHanMPs", "Shippori Mincho", "Yu Mincho", "YuMincho", "Hiragino Mincho ProN", "Hiragino Mincho Pro", serif;
}

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

html {
  min-width: 320px;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 62.5%;
  font-synthesis: none;
  font-kerning: normal;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  --color-page-mark: var(--color-structure);
  --color-selection-text: var(--color-paper);
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background: var(--color-paper);
  color: var(--color-ink);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1.8;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

body.page-home {
  --color-page-mark: var(--color-accent);
  --color-selection-text: var(--color-ground);
  background: var(--color-ground);
  color: var(--color-on-ground);
}

body.page-work,
body.auth-page {
  --color-page-mark: var(--color-structure);
  --color-selection-text: var(--color-paper);
  background: var(--color-paper);
  color: var(--color-structure);
}

button,
input,
summary {
  color: inherit;
  font: inherit;
}

button,
input {
  border-radius: 0;
}

button,
summary {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a,
button,
summary {
  transition: text-decoration-color var(--transition), text-decoration-thickness var(--transition);
  -webkit-tap-highlight-color: transparent;
}

@media (hover: hover) and (pointer: fine) {
  a:hover {
    text-decoration-thickness: 2px;
  }
}

:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

::selection {
  background: var(--color-page-mark);
  color: var(--color-selection-text);
}

.l-app {
  min-height: 100vh;
}

.l-main {
  min-height: calc(100svh - var(--header-height));
}

.l-inner {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.l-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--grid-gap);
}

.c-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  background: transparent;
  color: var(--color-structure);
}

.page-home .c-header {
  color: var(--color-on-ground);
}

.c-header__inner {
  display: flex;
  height: 100%;
  align-items: center;
}

.c-global-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 1.6rem;
  font-weight: 500;
  letter-spacing: 0.015em;
  line-height: 1;
}

.c-global-nav a {
  position: relative;
  text-decoration: none;
}

.c-global-nav a.is-current,
.c-global-nav a:hover,
.c-global-nav a:focus-visible {
  color: inherit;
  text-decoration-color: var(--color-page-mark);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

.page-work .c-global-nav a.is-current,
.page-work .c-global-nav a:hover,
.page-work .c-global-nav a:focus-visible,
.auth-page .c-global-nav a.is-current,
.auth-page .c-global-nav a:hover,
.auth-page .c-global-nav a:focus-visible {
  text-decoration-color: var(--color-structure);
}

.c-global-nav a:focus-visible {
  outline: none;
  text-decoration-thickness: 2px;
}

.c-skip-link {
  position: fixed;
  top: 0;
  left: var(--gutter);
  z-index: 1000;
  padding: 0.6rem 0.8rem;
  transform: translateY(-140%);
  background: var(--color-structure);
  color: var(--color-paper);
}

.c-skip-link:focus {
  transform: translateY(0.6rem);
}

.page-home .c-skip-link {
  background: var(--color-on-ground);
  color: var(--color-ground);
}

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

html.home-document,
html.home-document body {
  height: 100%;
  overflow: hidden;
}

html.home-document {
  background: var(--color-ground);
  color: var(--color-on-ground);
}

html.home-document .l-app {
  display: flex;
  height: 100svh;
  min-height: 0;
  flex-direction: column;
}

html.home-document .l-main {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
}

.p-home__fv {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  padding-bottom: calc(40 / 1366 * 100vw);
}

.c-mark {
  width: min(
    calc(420 / 1366 * 100vw),
    calc((100svh - var(--header-height) - (80 / 1366 * 100vw)) * 172 / 202)
  );
  height: auto;
  fill: currentColor;
  color: var(--color-mark);
}

.c-page-title {
  margin: 0 0 var(--section-gap);
  font-size: 3.6rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.75;
}

.c-lead {
  display: grid;
  width: 100%;
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.c-lead p {
  width: 100%;
  margin: 0;
}

.c-lead__source,
.c-lead__output {
  grid-area: 1 / 1;
}

.is-js .c-lead__source {
  color: transparent;
}

.is-js .c-lead:not(.is-complete) .c-lead__output::after {
  display: inline-block;
  width: 0.45em;
  height: 0.18em;
  margin-left: 0.16em;
  background: var(--color-page-mark);
  content: "";
  vertical-align: 0.08em;
}

.p-write,
.p-index,
.p-work {
  padding-top: 24px;
  padding-bottom: 128px;
}

.p-write__head,
.p-index__head {
  grid-column: 1 / span 8;
  margin-bottom: var(--section-gap);
}

.p-write__head .c-page-title {
  margin-bottom: calc(var(--section-gap) / 2);
}

.p-write__body {
  grid-column: 1 / span 8;
}

.p-index__body {
  grid-column: 1 / -1;
}

.c-work__column {
  grid-column: 1 / span 8;
}

.c-prose {
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.c-prose p {
  margin: 0;
}

.c-prose p + p {
  margin-top: 1.6em;
}

.c-prose a,
.c-disclosure__closed,
.c-disclosure__open,
.c-index__title {
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.23em;
}

.c-prose a,
.c-disclosure__closed,
.c-disclosure__open,
.c-index__number,
.c-index__author,
.c-index__form {
  color: var(--color-structure);
}

.c-disclosure {
  margin: 1.6em 0;
}

.c-disclosure summary {
  position: relative;
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 0.65em;
  padding: 0;
  list-style: none;
  line-height: 1;
}

.c-disclosure summary::after {
  display: inline-block;
  content: "＋";
  text-decoration: none;
}

.c-disclosure[open] summary::after {
  content: "−";
}

.c-disclosure summary::-webkit-details-marker {
  display: none;
}

.c-disclosure summary:focus-visible {
  outline: none;
}

.c-disclosure summary:focus-visible :is(.c-disclosure__closed, .c-disclosure__open) {
  text-decoration-thickness: 2px;
}

.c-disclosure__open,
.c-disclosure[open] .c-disclosure__closed {
  display: none;
}

.c-disclosure[open] .c-disclosure__open {
  display: inline;
}

.c-disclosure[open] summary {
  margin-bottom: 1.6em;
}

.c-index {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 1.8rem;
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.c-index__item + .c-index__item {
  margin-top: var(--section-gap);
}

.c-index__link {
  display: grid;
  grid-template-columns: 2.8em minmax(0, 1fr);
  align-items: baseline;
  text-decoration: none;
}

.c-index__title {
  color: var(--color-ink);
}

.c-index__number {
  font-variant-numeric: tabular-nums;
}

.c-index__summary {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.25fr) minmax(5em, 0.75fr);
  align-items: baseline;
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .c-index__link:hover .c-index__title,
  .c-disclosure summary:hover :is(.c-disclosure__closed, .c-disclosure__open) {
    text-decoration-thickness: 2px;
  }
}

.c-work {
  color: var(--color-ink);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  font-feature-settings: "palt" 0;
  letter-spacing: 0.04em;
  line-height: 1.75;
}

.c-work__header {
  margin-bottom: var(--section-gap);
}

.c-work__header h1 {
  margin: 0;
  color: var(--color-structure);
  font: inherit;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.75;
}

.c-work__body {
  margin-bottom: var(--section-gap);
}

.c-work__body p {
  margin: 1.6em 0;
}

.c-work__body > :first-child,
.c-work-stanza p {
  margin-top: 0;
}

.c-work__body > :last-child,
.c-work-stanza p {
  margin-bottom: 0;
}

.c-work-stanza + .c-work-stanza {
  margin-top: 1.75em;
}

.c-work__body--essay > p {
  text-indent: 1em;
}

.c-work__body h2,
.c-work__body h3,
.c-work__body h4 {
  margin: 2.5em 0 1em;
  color: var(--color-structure);
  font: inherit;
  font-weight: 600;
}

.c-work-quote {
  margin: 2.5em 0;
  padding-left: 1em;
}

.c-work-quote blockquote,
.c-work-quote p,
.c-work-quote figcaption {
  margin: 0;
}

.c-work-quote figcaption {
  margin-top: 0.75em;
  color: var(--color-structure);
}

.c-work-divider {
  height: 0;
  margin: 3em 0;
  border: 0;
}

.c-work-note {
  margin-top: 3em;
  color: var(--color-structure);
}

.c-work-note ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-work-note li {
  position: relative;
  margin-bottom: 0.75em;
  padding-left: 1.5em;
}

.c-work-note-ref {
  white-space: nowrap;
}

.c-work-profile {
  margin: 0;
  color: var(--color-structure);
  font: inherit;
}

.c-work-profile h2,
.c-work-profile p {
  margin: 0;
  font: inherit;
}

.c-work-profile__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.c-preview-status {
  position: absolute;
  top: 0;
  right: var(--gutter);
  z-index: 30;
  display: flex;
  height: var(--header-height);
  align-items: center;
  margin: 0;
  color: var(--color-structure);
  font-family: var(--font-sans);
  font-size: 1.2rem;
  line-height: 1;
}

.is-preview.page-home .c-preview-status {
  color: var(--color-on-ground);
}

.p-not-found {
  display: grid;
  place-items: center;
  text-align: center;
}

.p-not-found h1 {
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
}

.p-not-found p {
  margin: 1.6rem 0 0;
}

.auth-page {
  display: grid;
  min-height: 100svh;
  padding: 24px;
  place-items: center;
  font-family: var(--font-sans);
}

.auth-sheet {
  width: 100%;
}

.auth-frame {
  width: min(100%, 440px);
  margin: 0 auto;
  color: var(--color-structure);
}

.auth-frame h1 {
  margin: 0 0 24px;
  font-size: 2rem;
  font-weight: 500;
}

.auth-frame > p,
.auth-frame label,
.auth-error {
  font-size: 1.4rem;
}

.auth-frame form {
  display: grid;
  gap: 8px;
  margin-top: 24px;
}

.password-field {
  display: grid;
  grid-template-columns: 1fr auto;
}

.auth-frame input,
.auth-frame button {
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--color-structure);
  background: var(--color-paper);
}

.auth-frame form > button[type="submit"] {
  margin-top: 4px;
  background: var(--color-structure);
  color: var(--color-paper);
}

.auth-frame button:disabled,
.auth-frame input:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.auth-error {
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  :root {
    --header-height: 61px;
    --gutter: calc(24 / 375 * 100vw);
    --grid-gap: calc(24 / 375 * 100vw);
    --section-gap: 48px;
  }

  body {
    font-size: 1.6rem;
  }

  .l-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .c-mark {
    width: min(
      calc(240 / 375 * 100vw),
      calc((100svh - var(--header-height) - (48 / 375 * 100vw)) * 172 / 202)
    );
  }

  .c-page-title {
    font-size: 3.2rem;
  }

  .c-prose,
  .c-index {
    font-size: 1.6rem;
    line-height: 1.75;
  }

  .c-global-nav {
    gap: 24px;
    font-size: 1.6rem;
  }

  .c-global-nav a {
    text-decoration-color: var(--color-page-mark);
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
  }

  .c-global-nav a::before {
    position: absolute;
    inset: -1em -0.45em;
    content: "";
  }

  .p-write,
  .p-index,
  .p-work {
    padding-top: 16px;
  }

  .p-home__fv {
    padding-bottom: calc(48 / 375 * 100vw);
  }

  .c-lead {
    font-size: 1.6rem;
    letter-spacing: 0.035em;
    line-height: 1.75;
  }

  .p-write,
  .p-index,
  .p-work {
    padding-bottom: 96px;
  }

  .p-write__head,
  .p-index__head,
  .p-write__body,
  .p-index__body,
  .c-work__column {
    grid-column: 1;
  }

  .c-disclosure summary {
    display: block;
    width: 100%;
  }

  .c-disclosure summary::before,
  .c-index__link::before {
    position: absolute;
    inset: -0.65em 0;
    content: "";
  }

  .c-disclosure summary::after {
    position: absolute;
    right: 0;
    text-decoration: none;
  }

  .c-index__link {
    position: relative;
    grid-template-columns: 2.8em minmax(0, 1fr);
  }

  .c-index__summary {
    display: flex;
    flex-wrap: wrap;
  }

  .c-index__author::before,
  .c-index__form::before {
    content: "／";
    margin: 0 0.35em;
  }

  .c-index__author,
  .c-index__form {
    display: inline;
  }

  .c-work {
    font-size: 1.6rem;
  }

  .c-work__header h1 {
    font-size: 3.2rem;
  }

  .c-work-profile__links a {
    position: relative;
  }

  .c-work-profile__links a::before {
    position: absolute;
    inset: -0.75em -0.35em;
    content: "";
  }

  .c-preview-status {
    right: var(--gutter);
    height: var(--header-height);
    font-size: 1.1rem;
  }
}

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

  .is-js .c-lead__source {
    color: inherit;
  }
}
