:root {
  --ink: #07000d;
  --deep: #1c002e;
  --violet: #5b0088;
  --glow: #b277ff;
  --bone: #f3eefa;
  --mute: #a99bb8;
  --line: rgba(178, 119, 255, .22);
  --display: "Shippori Mincho B1", "Hiragino Mincho ProN", "Yu Mincho", serif;
  --body: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color-scheme: dark; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(1040px, 100% - 48px); margin-inline: auto; }

/* ---------- ナビ ---------- */
.nav {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px max(24px, calc((100% - 1040px) / 2));
}
.nav__home img { width: 40px; height: 40px; border-radius: 4px; }
.nav nav { display: flex; gap: clamp(16px, 3vw, 36px); font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .12em; }
.nav nav a { text-decoration: none; color: var(--bone); opacity: .85; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav nav a:hover { opacity: 1; border-bottom-color: var(--glow); }
.page-top { padding-top: 88px; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__emblem {
  position: absolute;
  inset: 50% auto auto 50%;
  width: min(120vh, 140vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  object-fit: cover;
  mix-blend-mode: screen;
  opacity: .3;
  z-index: -1;
  -webkit-mask-image: radial-gradient(circle, #000 35%, transparent 70%);
          mask-image: radial-gradient(circle, #000 35%, transparent 70%);
}
.hero__inner { width: 100%; min-width: 0; text-align: center; padding: 4vh 0 6vh; }
.hero__logo {
  --w: min(1040px, 94vw);
  width: var(--w);
  height: auto;
  max-width: none;
  margin-inline: calc(50% - var(--w) / 2);
  margin-block: calc(var(--w) * -.1);
  filter: drop-shadow(0 0 28px rgba(178, 119, 255, .45));
  clip-path: inset(0 100% 0 0);
  animation: write 2.6s cubic-bezier(.55, .1, .25, 1) .3s forwards;
}
.hero__lead {
  position: relative;
  margin-top: 1vh;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(17px, 2.2vw, 22px);
  letter-spacing: .28em;
  opacity: 0;
  animation: fade 1.2s ease 2.4s forwards;
}
@keyframes write { to { clip-path: inset(0 0 0 0); } }
@keyframes fade  { to { opacity: 1; } }

/* ---------- セクション共通 ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0 0; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(26px, 4vw, 40px);
  line-height: 1.3;
  letter-spacing: .04em;
}
.section__title--small { font-weight: 600; font-size: 15px; letter-spacing: .3em; color: var(--mute); }
.more { font-size: 14px; color: var(--mute); text-decoration: none; white-space: nowrap; }
.more:hover { color: var(--bone); text-decoration: underline; }

.about { padding: clamp(80px, 14vw, 160px) 0 0; }
.about p {
  max-width: 34em;
  margin-inline: auto;
  font-family: var(--display);
  font-size: clamp(18px, 2.4vw, 24px);
  line-height: 2.2;
  letter-spacing: .06em;
  text-align: center;
  text-wrap: balance;
}

/* ---------- 投稿一覧 ---------- */
.post { display: grid; text-decoration: none; color: inherit; }
.post time { font-size: 13px; color: var(--glow); letter-spacing: .1em; }
.post strong { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.5; }
.post__excerpt { color: var(--mute); font-size: 14px; line-height: 1.8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post__text { display: grid; gap: 4px; align-content: start; }
.post__thumb { display: block; overflow: hidden; background: var(--deep); border-radius: 2px; }
.post__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post__thumb.is-fallback img { object-fit: contain; padding: 14%; opacity: .55; }
.post:hover .post__thumb img { transform: scale(1.04); }
.post:hover strong { text-decoration: underline; text-underline-offset: 5px; text-decoration-color: var(--glow); }

.post--row { grid-template-columns: 200px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: center; }
.post--row .post__thumb { aspect-ratio: 16 / 9; }
.list-row { border-top: 1px solid var(--line); }

.list-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 36px 28px; }
.post--card { gap: 14px; align-content: start; }
.post--card .post__thumb { aspect-ratio: 4 / 3; }

.empty { color: var(--mute); padding: 32px 0; }
.load-more {
  display: block; margin: 40px auto 0; padding: 10px 32px;
  background: none; color: var(--bone); border: 1px solid var(--line); border-radius: 999px;
  font: inherit; font-size: 14px; cursor: pointer;
}
.load-more:hover { background: rgba(91, 0, 136, .35); }

/* ---------- WHat is WH ---------- */
.what__body { max-width: 40em; }
.photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 320px)); gap: 28px 24px; margin-top: 40px; }
.photos figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px; }
.photos figcaption { margin-top: 8px; font-size: 13px; color: var(--mute); }

/* ---------- 本文(記事・WHat is WH) ---------- */
.prose { font-size: 17px; line-height: 2; }
.prose > * + * { margin-top: 1.4em; }
.prose h2, .prose h3, .prose h4 { font-family: var(--display); font-weight: 800; line-height: 1.5; margin-top: 2.2em; }
.prose h2 { font-size: 26px; padding-bottom: .3em; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 21px; }
.prose h4 { font-size: 18px; }
.prose a { color: var(--glow); text-underline-offset: 4px; }
.prose figure img, .prose p img { width: 100%; height: auto; border-radius: 2px; }
.prose figcaption { margin-top: 8px; font-size: 13px; color: var(--mute); text-align: center; }
.prose ul { padding-left: 1.4em; }
.prose blockquote { border-left: 3px solid var(--violet); padding-left: 1.1em; color: var(--mute); }
.prose hr { border: 0; border-top: 1px solid var(--line); }

.article { max-width: 44em; margin-inline: auto; padding-bottom: 40px; }
.article__back { display: inline-block; margin: 8px 0 28px; font-size: 14px; color: var(--mute); text-decoration: none; }
.article__back:hover { color: var(--bone); }
.article time { display: block; color: var(--glow); font-size: 14px; letter-spacing: .1em; }
.article h1 { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4.6vw, 44px); line-height: 1.4; margin: 6px 0 28px; }
.article__thumb { width: 100%; height: auto; border-radius: 2px; margin-bottom: 36px; }

/* ---------- 名義 ---------- */
.name-list { list-style: none; border-top: 1px solid var(--line); }
.name {
  display: grid;
  grid-template-columns: 7.5em 1fr auto;
  align-items: baseline;
  gap: 8px 32px;
  padding: clamp(28px, 4.5vw, 48px) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .3s ease;
}
.name:hover { background: linear-gradient(90deg, rgba(91, 0, 136, .28), transparent 70%); }
.name__field { font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: .3em; color: var(--glow); }
.name__title { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 5.4vw, 56px); line-height: 1.25; letter-spacing: .03em; }
.name__desc { margin-top: 10px; color: var(--mute); font-size: 15px; line-height: 1.8; }
.name__state { font-size: 14px; color: var(--mute); border: 1px solid var(--line); padding: 4px 16px; border-radius: 999px; white-space: nowrap; text-decoration: none; }
a.name__state { color: var(--bone); border-color: var(--glow); }
a.name__state:hover { background: rgba(91, 0, 136, .5); }

/* ---------- フッター ---------- */
.foot { margin-top: clamp(80px, 12vw, 140px); border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--mute); font-size: 14px; }
.foot .wrap { display: flex; align-items: center; gap: 20px; }
.foot img { width: 56px; height: 56px; border-radius: 4px; }
.foot p { line-height: 1.7; }

@media (max-width: 720px) {
  .nav { padding: 12px 16px; }
  .nav nav { font-size: 13px; gap: 14px; letter-spacing: .06em; }
  .page-top { padding-top: 72px; }
  .hero__logo { --w: 100vw; }
  .hero__lead { margin-top: 3vh; letter-spacing: .2em; }
  .post--row { grid-template-columns: 112px 1fr; gap: 16px; }
  .post--row .post__excerpt { display: none; }
  .name { grid-template-columns: 1fr; gap: 6px; }
  .name__state { justify-self: start; margin-top: 12px; }
  .prose { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__logo { animation: none; clip-path: none; }
  .hero__lead { animation: none; opacity: 1; }
  .name, .post__thumb img { transition: none; }
}
