:root {
  --ink: #152028;
  --ink-soft: #3d4a55;
  --muted: #5a6874;
  --line: rgba(21, 32, 40, 0.12);
  --accent: #00a8bc;
  --accent-deep: #008a9a;
  --yo: #00a8bc;
  --do: #111111;
  --font-jp: "Noto Sans JP", "Noto Sans CJK JP", "Hiragino Sans", sans-serif;
  --space: clamp(1.25rem, 3vw, 2rem);
  --max: 44rem;
  --text: 1.125rem;
  color-scheme: light;
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y pinch-zoom;
  font-family: var(--font-jp);
  font-size: var(--text);
  font-weight: 400;
  color: var(--ink);
  background: #ffffff;
  line-height: 1.9;
  text-rendering: optimizeLegibility;
  line-break: auto;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

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

a {
  color: var(--accent-deep);
  text-underline-offset: 0.18em;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--ink);
  color: #fff;
  padding: 0.5rem 0.75rem;
  z-index: 100;
  font-size: 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.lang {
  position: fixed;
  top: 1rem;
  right: 1.15rem;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.lang__link {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.lang__link:hover {
  color: var(--ink);
}

.lang__link.is-active {
  color: var(--ink);
  font-weight: 700;
}

.lang__sep {
  color: var(--muted);
  opacity: 0.55;
}

main {
  overflow-x: hidden;
  max-width: 100%;
}

.mark-do {
  color: var(--do);
}

.mark-yo {
  color: var(--yo);
}

.hero {
  position: relative;
  height: clamp(12rem, 28vw, 18rem);
  display: grid;
  align-items: center;
  overflow: clip;
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.18) 0%,
      rgba(255, 255, 255, 0.08) 40%,
      rgba(255, 255, 255, 0.55) 100%
    ),
    url("./assets/hero.jpg") center / cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem var(--space);
  color: var(--ink);
}

.hero__brand {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.65rem 0.85rem;
  font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 3.75rem);
  line-height: 1;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: rise 1s ease 0.15s forwards;
}

.hero__name {
  white-space: nowrap;
}

.hero__reading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--do);
}

.section {
  padding: clamp(1.4rem, 3vw, 2rem) 0;
}

.section__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  min-width: 0;
}

.section-heading {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.3;
}

.prose p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: var(--text);
}

.prose p:last-child {
  margin-bottom: 0;
}

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

.work-item {
  padding: 1.1rem 0;
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.work-item + .work-item {
  padding-top: 0.35rem;
}

.work-item h2 {
  margin: 0;
  font-size: clamp(1.75rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.3;
}

.work-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text);
}

.work-item__body {
  display: grid;
  gap: 0.75rem;
}

.work-item__body p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text);
}

.work-indent {
  margin-left: 1.25rem;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
}

.work-indent h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
}

.work-indent > .og-card {
  margin-top: 0.2rem;
}

.og-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin-top: 0.65rem;
  padding: 0.45rem 0.65rem;
  min-height: 3rem;
  text-decoration: none;
  color: inherit;
  background: #fafafa;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.og-card:hover {
  border-color: rgba(21, 32, 40, 0.28);
  background: #f5f5f5;
  color: inherit;
}

.og-card__image {
  flex: 0 0 auto;
  height: 2.25rem;
  width: auto;
  max-width: 5.5rem;
  object-fit: contain;
  object-position: center;
  background: transparent;
}

.og-card__meta {
  display: grid;
  gap: 0.05rem;
  min-width: 0;
  flex: 1 1 auto;
}

.og-card__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.og-card__desc {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.og-card__url {
  font-size: 0.8rem;
  line-height: 1.3;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work-sublist {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0 0 0 1.25rem;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.work-subitem {
  display: grid;
  gap: 0.4rem;
}

.work-subitem h3 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.45;
}

.work-subitem p {
  margin: 0;
  color: var(--ink-soft);
  font-size: var(--text);
}

.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;
}

.subscribe {
  display: grid;
  gap: 0.55rem;
  max-width: 24rem;
}

.subscribe__lede {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.subscribe__row {
  display: flex;
  gap: 0.45rem;
}

.subscribe__input {
  flex: 1 1 auto;
  min-width: 0;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}

.subscribe__input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.subscribe__btn {
  flex: 0 0 auto;
  height: 2.5rem;
  padding: 0 0.95rem;
  border: 0;
  background: var(--ink);
  color: #fff;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
}

.subscribe__btn:hover {
  background: #000;
}

.about__name {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.4vw, 2.15rem);
  font-weight: 700;
  line-height: 1.3;
}

.about__link {
  margin: 1rem 0 0;
  font-size: var(--text);
  text-align: right;
}

.about__link a {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}

.site-footer {
  padding: 1.5rem 0 2rem;
}

.site-footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--space);
  text-align: right;
}

.site-footer__copy {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero__reading,
  .hero__brand,
  .reveal {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
