@charset "UTF-8";
/* -------------------------------------------------- reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: auto;
}

body {
  background: #f2efe9;
  color: #15140f;
  font-family: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "palt";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (min-width: 769px) {
  body {
    font-size: 16px;
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

::selection {
  background: #15140f;
  color: #f2efe9;
}

/* -------------------------------------------------- 反転テーマ
   スクロールで背景ごと反転させる。「飽きない」を作る主要装置 */
body {
  transition: background-color 0.7s cubic-bezier(0.65, 0, 0.35, 1), color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}

body.is-dark {
  background: #15140f;
  color: #f2efe9;
}
body.is-dark ::selection {
  background: #f2efe9;
  color: #15140f;
}

/* -------------------------------------------------- 共通パーツ */
.inner {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .inner {
    max-width: 1280px;
    padding-inline: 60px;
  }
}

.sec {
  padding-block: 100px;
}
@media (min-width: 769px) {
  .sec {
    padding-block: 190px;
  }
}

.label {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .label {
    font-size: 11px;
  }
}

.en {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.04em;
}

.rule {
  height: 1px;
  background: #d7d2c6;
  border: 0;
  transition: background-color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
body.is-dark .rule {
  background: #3a382f;
}

/* セクション見出し（ラベル＋大見出し） */
.sec-head {
  display: grid;
  gap: 14px;
  margin-bottom: 48px;
}
@media (min-width: 769px) {
  .sec-head {
    grid-template-columns: 160px 1fr;
    gap: 32px;
    margin-bottom: 84px;
  }
}
.sec-head__num {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .sec-head__num {
    font-size: 11px;
  }
}
.sec-head__num {
  padding-top: 10px;
}
.sec-head__title {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 769px) {
  .sec-head__title {
    font-size: 46px;
  }
}
.sec-head__title .en {
  font-size: 1.1em;
}
.sec-head__lead {
  margin-top: 18px;
  max-width: 34em;
  color: #6e6a5f;
  font-size: 14px;
  line-height: 1.6;
}
body.is-dark .sec-head__lead {
  color: rgba(242, 239, 233, 0.62);
}

/* テキストリンク */
.tlink {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.tlink::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(1);
  transform-origin: right center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (hover: hover) {
  .tlink:hover::after {
    transform: scaleX(0);
    transform-origin: right center;
    transition-duration: 0.3s;
  }
}
.tlink {
  font-size: 14px;
  line-height: 1.3;
}

/* -------------------------------------------------- 出現前の初期状態
   JS が有効なときだけ隠す。JS が落ちたら .js を外して全部見せる */
.js [data-reveal] {
  opacity: 0;
}
.js [data-split] {
  visibility: hidden;
}
.js [data-clip] > * {
  opacity: 0;
}

/* 行マスク（JS が生成する） */
.line-mask {
  display: block;
  overflow: hidden;
}
.line-mask > span {
  display: block;
  will-change: transform;
}

/* -------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-clip] > * {
    opacity: 1 !important;
  }
  .js [data-split] {
    visibility: visible !important;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* ==================================================
   ローダー（初回のみ・カウントアップ）
================================================== */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: #15140f;
  color: #f2efe9;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding: 24px;
  pointer-events: none;
}
@media (min-width: 769px) {
  .loader {
    padding: 60px;
  }
}
.loader__name {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .loader__name {
    font-size: 11px;
  }
}
.loader__name {
  color: rgba(242, 239, 233, 0.5);
}
.loader__count {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (min-width: 769px) {
  .loader__count {
    font-size: 128px;
  }
}
.loader__bar {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: rgba(242, 239, 233, 0.28);
  transform: scaleX(0);
  transform-origin: left center;
}

.is-loaded .loader {
  display: none;
}

/* ==================================================
   カスタムカーソル（PC・hover 環境のみ）
================================================== */
.cursor {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 90;
    pointer-events: none;
    mix-blend-mode: difference;
  }
  .cursor__dot {
    position: absolute;
    width: 7px;
    height: 7px;
    margin: -3.5px 0 0 -3.5px;
    border-radius: 50%;
    background: #fff;
  }
  .cursor__ring {
    position: absolute;
    width: 38px;
    height: 38px;
    margin: -19px 0 0 -19px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 9px;
    line-height: 1.3;
    letter-spacing: 0.14em;
    color: #fff;
  }
  .cursor__ring span {
    opacity: 0;
  }
}

/* ==================================================
   ヘッダー（下スクロールで隠れる）
================================================== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  padding-block: 18px;
  mix-blend-mode: difference;
  color: #fff;
  will-change: transform;
}
.header__in {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .header__in {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.header__in {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.header__logo {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (min-width: 769px) {
  .header__logo {
    font-size: 22px;
  }
}
.header__nav {
  display: flex;
  gap: 20px;
}
@media (min-width: 769px) {
  .header__nav {
    gap: 34px;
  }
}
.header__nav a {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .header__nav a {
    font-size: 11px;
  }
}
.header__nav a {
  color: rgba(255, 255, 255, 0.86);
  transition: color 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.header__nav a:hover, .header__nav a[aria-current=page] {
  color: #fff;
}

/* ==================================================
   マーキー（技術スタックの無限ループ帯）
================================================== */
.marquee {
  overflow: hidden;
  border-block: 1px solid #d7d2c6;
  padding-block: 18px;
  white-space: nowrap;
  transition: border-color 0.7s cubic-bezier(0.65, 0, 0.35, 1);
}
body.is-dark .marquee {
  border-color: #3a382f;
}
.marquee__row {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding-inline: 17px;
  will-change: transform;
}
@media (min-width: 769px) {
  .marquee__row {
    gap: 56px;
    padding-inline: 28px;
  }
}
.marquee__item {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .marquee__item {
    font-size: 40px;
  }
}
body.is-dark .marquee__item {
  color: rgba(242, 239, 233, 0.55);
}
.marquee__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a3b1e;
  flex: none;
}

/* ==================================================
   作品ビジュアル（クリップリビール＋パララックス）
================================================== */
.figure {
  position: relative;
  overflow: hidden;
  background: #e2ded4;
}
.figure__alt {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  text-align: center;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.16em;
  color: rgba(21, 20, 15, 0.34);
}
.figure__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  color: transparent;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  will-change: transform;
}

/* ==================================================
   フッター（下から出てくる）
================================================== */
.footer {
  background: #15140f;
  color: #f2efe9;
  padding-block: 80px 40px;
}
@media (min-width: 769px) {
  .footer {
    padding-block: 150px 44px;
  }
}
.footer__cta {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .footer__cta {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.footer__lead {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .footer__lead {
    font-size: 11px;
  }
}
.footer__lead {
  color: rgba(242, 239, 233, 0.5);
}
.footer__mail {
  display: inline-block;
  margin-top: 20px;
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.01em;
  word-break: break-all;
}
@media (min-width: 769px) {
  .footer__mail {
    font-size: 74px;
  }
}
.footer__mail .char {
  display: inline-block;
  will-change: transform;
}
.footer__bottom {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .footer__bottom {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.footer__bottom {
  margin-top: 70px;
  padding-top: 26px;
  border-top: 1px solid #3a382f;
  display: grid;
  gap: 16px;
}
@media (min-width: 769px) {
  .footer__bottom {
    margin-top: 120px;
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}
.footer__note {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(242, 239, 233, 0.48);
  max-width: 40em;
}
.footer__links {
  display: flex;
  gap: 22px;
}
.footer__links a {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .footer__links a {
    font-size: 11px;
  }
}
.footer__links a {
  color: rgba(242, 239, 233, 0.68);
}
.footer__links a:hover {
  color: #f2efe9;
}

/* ==================================================
   ページ遷移カーテン
================================================== */
.curtain {
  position: fixed;
  inset: 0;
  z-index: 95;
  background: #15140f;
  transform: scaleY(0);
  transform-origin: bottom center;
  pointer-events: none;
}

/* ==================================================
   HERO
================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 130px 28px;
}
@media (min-width: 769px) {
  .hero {
    padding-block: 180px 40px;
  }
}
.hero__in {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .hero__in {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.hero__title {
  font-size: clamp(46px, 15vw, 84px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
}
@media (min-width: 769px) {
  .hero__title {
    font-size: clamp(76px, 8.4vw, 132px);
  }
}
.hero__title .en {
  font-weight: 400;
  letter-spacing: -0.02em;
}
.hero__title .hero__num {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  color: #8a3b1e;
}
.hero__lead {
  margin-top: 34px;
  max-width: 30em;
  font-size: 14px;
  line-height: 1.6;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .hero__lead {
    margin-top: 52px;
    font-size: 15px;
    margin-left: auto;
    max-width: 26em;
  }
}
.hero__meta {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .hero__meta {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.hero__meta {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid #d7d2c6;
  display: grid;
  gap: 12px;
}
@media (min-width: 769px) {
  .hero__meta {
    margin-top: 90px;
    grid-template-columns: repeat(3, auto) 1fr;
    gap: 44px;
    align-items: baseline;
  }
}
.hero__metaitem {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .hero__metaitem {
    font-size: 11px;
  }
}
.hero__metaitem {
  display: flex;
  gap: 10px;
}
.hero__metaitem b {
  font-weight: 400;
  color: #15140f;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
}
.hero__cue {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .hero__cue {
    font-size: 11px;
  }
}
.hero__cue {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__cue i {
  display: block;
  width: 40px;
  height: 1px;
  background: #d7d2c6;
  overflow: hidden;
  position: relative;
  font-style: normal;
}
.hero__cue i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #8a3b1e;
  transform-origin: left center;
  animation: cue 2.2s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes cue {
  0% {
    transform: scaleX(0);
    transform-origin: left center;
  }
  45% {
    transform: scaleX(1);
    transform-origin: left center;
  }
  55% {
    transform: scaleX(1);
    transform-origin: right center;
  }
  100% {
    transform: scaleX(0);
    transform-origin: right center;
  }
}
/* ==================================================
   SELECTED WORKS
================================================== */
.swork {
  display: grid;
  gap: 22px;
  margin-bottom: 90px;
}
@media (min-width: 769px) {
  .swork {
    grid-template-columns: 1.55fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 170px;
  }
}
.swork:last-child {
  margin-bottom: 0;
}
@media (min-width: 769px) {
  .swork--rev {
    grid-template-columns: 1fr 1.55fr;
  }
  .swork--rev .swork__fig {
    order: 2;
  }
}
.swork__fig {
  aspect-ratio: 16/10;
}
@media (min-width: 769px) {
  .swork__fig {
    aspect-ratio: 4/3;
  }
}
.swork__meta {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .swork__meta {
    font-size: 11px;
  }
}
.swork__meta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.swork__meta i {
  display: block;
  width: 26px;
  height: 1px;
  background: #d7d2c6;
  font-style: normal;
}
.swork__title {
  margin-top: 14px;
  font-size: 23px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
}
@media (min-width: 769px) {
  .swork__title {
    font-size: 32px;
  }
}
.swork__desc {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #6e6a5f;
  max-width: 30em;
}
.swork__tags {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.swork__tag {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .swork__tag {
    font-size: 11px;
  }
}
.swork__tag {
  border: 1px solid #d7d2c6;
  padding: 6px 11px;
  color: #6e6a5f;
}
.swork__links {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
}
.swork__link {
  display: inline-block;
}

/* ==================================================
   ABOUT
================================================== */
.about__grid {
  display: grid;
  gap: 32px;
}
@media (min-width: 769px) {
  .about__grid {
    grid-template-columns: 300px 1fr;
    gap: 70px;
    align-items: start;
  }
}
.about__fig {
  aspect-ratio: 3/4;
  width: 72%;
}
@media (min-width: 769px) {
  .about__fig {
    width: 100%;
  }
}
.about__cap {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .about__cap {
    font-size: 11px;
  }
}
.about__cap {
  margin-top: 12px;
  text-transform: none;
  letter-spacing: 0.06em;
  line-height: 1.6;
}
body.is-dark .about__cap {
  color: rgba(242, 239, 233, 0.5);
}
.about__body p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 32em;
}
@media (min-width: 769px) {
  .about__body p {
    font-size: 17px;
  }
}
.about__body p + p {
  margin-top: 22px;
}
.about__skills {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid #d7d2c6;
}
body.is-dark .about__skills {
  border-color: #3a382f;
}
.about__list {
  margin-top: 18px;
  display: grid;
  gap: 0;
}
@media (min-width: 769px) {
  .about__list {
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
  }
}
.about__item {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding-block: 13px;
  border-bottom: 1px solid #d7d2c6;
  font-size: 14px;
  line-height: 1.3;
}
body.is-dark .about__item {
  border-color: #3a382f;
}
.about__item span {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .about__item span {
    font-size: 11px;
  }
}
.about__item span {
  flex: none;
  width: 26px;
}

/* ==================================================
   TOP の Works 抜粋（見出し行）
================================================== */
.works-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}
.works-head__title {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.02em;
}
@media (min-width: 769px) {
  .works-head__title {
    font-size: 58px;
  }
}
.works-head__title em {
  font-style: normal;
  color: #6e6a5f;
}

/* ==================================================
   WORKS ページ見出し
================================================== */
.page-head {
  padding-block: 140px 40px;
}
@media (min-width: 769px) {
  .page-head {
    padding-block: 210px 60px;
  }
}
.page-head__in {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .page-head__in {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.page-head__title {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 15vw, 84px);
  line-height: 1;
  letter-spacing: -0.03em;
}
@media (min-width: 769px) {
  .page-head__title {
    font-size: clamp(90px, 10vw, 160px);
  }
}
.page-head__title em {
  font-style: normal;
  color: #d7d2c6;
}
.page-head__lead {
  margin-top: 24px;
  max-width: 32em;
  font-size: 14px;
  line-height: 1.6;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .page-head__lead {
    margin-top: 34px;
    font-size: 15px;
  }
}

/* ==================================================
   フィルタ
================================================== */
.filter {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .filter {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 22px;
}
@media (min-width: 769px) {
  .filter {
    gap: 30px;
  }
}
.filter__btn {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .filter__btn {
    font-size: 11px;
  }
}
.filter__btn {
  position: relative;
  padding-bottom: 6px;
  color: #6e6a5f;
  transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter__btn::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.filter__btn.is-on {
  color: #15140f;
}
.filter__btn.is-on::after {
  transform: scaleX(1);
}
.filter__count {
  margin-left: 6px;
  opacity: 0.55;
}

/* ==================================================
   インデックス（テキスト行リスト）
   ── 21 行が縦に積み上がる光景そのものを実績にする
================================================== */
.idx {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .idx {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.idx {
  border-top: 1px solid #d7d2c6;
}
body.is-dark .idx {
  border-color: #3a382f;
}
.idx__row {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  grid-template-areas: "no  ttl  case" ".   sub  sub";
  column-gap: 12px;
  row-gap: 6px;
  align-items: baseline;
  padding-block: 15px;
  border-bottom: 1px solid #d7d2c6;
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
@media (min-width: 769px) {
  .idx__row {
    grid-template-columns: 54px minmax(0, 1fr) 110px 200px 74px;
    grid-template-areas: "no ttl kind stack case";
    column-gap: 24px;
    padding-block: 19px;
    align-items: center;
  }
}
body.is-dark .idx__row {
  border-color: #3a382f;
}
.idx__no {
  grid-area: no;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .idx__no {
    font-size: 11px;
  }
}
.idx__ttl {
  grid-area: ttl;
  position: relative;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.005em;
}
@media (min-width: 769px) {
  .idx__ttl {
    font-size: 20px;
  }
}
.idx__ttl a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.idx__ttl i {
  position: relative;
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-left: 11px;
  color: #6e6a5f;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.idx__ttl i::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12.7px;
  height: 1px;
  background: currentColor;
  transform-origin: left bottom;
  transform: rotate(-45deg);
}
.idx__ttl i::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
}
.idx__ttl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.idx__case {
  grid-area: case;
  position: relative;
  z-index: 2;
  justify-self: end;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .idx__case {
    font-size: 11px;
  }
}
.idx__case {
  padding-bottom: 4px;
  border-bottom: 1px solid #d7d2c6;
  color: #15140f;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.idx__case:hover {
  border-color: #8a3b1e;
  color: #8a3b1e;
}
body.is-dark .idx__case {
  color: #f2efe9;
  border-color: #3a382f;
}
.idx__kind {
  display: none;
}
@media (min-width: 769px) {
  .idx__kind {
    display: block;
    grid-area: kind;
    font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
    line-height: 1.3;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6e6a5f;
  }
}
@media (min-width: 769px) and (min-width: 769px) {
  .idx__kind {
    font-size: 11px;
  }
}
.idx__kind[data-kind=ORIGINAL] {
  color: #8a3b1e;
}
.idx__stack {
  grid-area: stack;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .idx__stack {
    font-size: 11px;
  }
}
.idx__stack {
  letter-spacing: 0.1em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: none;
}
@media (min-width: 769px) {
  .idx__stack {
    display: block;
  }
}
.idx__sub {
  grid-area: sub;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .idx__sub {
    font-size: 11px;
  }
}
.idx__sub {
  display: flex;
  gap: 10px;
}
@media (min-width: 769px) {
  .idx__sub {
    display: none;
  }
}
@media (hover: hover) and (pointer: fine) {
  .idx__row:hover .idx__ttl::after {
    transform: scaleX(1);
  }
  .idx__row:hover .idx__ttl i {
    transform: translate(3px, -3px);
    color: #8a3b1e;
  }
}
.idx__row.is-hide {
  display: none;
}

/* 行数の背骨になる 1px を伸ばす演出用 */
.idx__row::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: #8a3b1e;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
  .idx__row:hover::before {
    transform: scaleX(1);
  }
}
/* ==================================================
   カーソル追従プレビュー
================================================== */
.preview {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .preview {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 40;
    width: 260px;
    height: 172px;
    margin: -86px 0 0 -130px;
    overflow: hidden;
    background: #e2ded4;
    pointer-events: none;
    opacity: 0;
    will-change: transform;
  }
  .preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .preview img.is-on {
    opacity: 1;
  }
}

/* ==================================================
   ケーススタディ ヘッダー
================================================== */
.case-head {
  padding-block: 130px 0;
}
@media (min-width: 769px) {
  .case-head {
    padding-block: 200px 0;
  }
}
.case-head__in {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .case-head__in {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.case-head__back {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .case-head__back {
    font-size: 11px;
  }
}
.case-head__back {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  transition: gap 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-head__back:hover {
  gap: 14px;
}
.case-head__live {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .case-head__live {
    font-size: 11px;
  }
}
.case-head__live {
  float: right;
  padding-bottom: 4px;
  border-bottom: 1px solid #d7d2c6;
  color: #15140f;
  transition: border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1), color 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.case-head__live:hover {
  color: #8a3b1e;
  border-color: #8a3b1e;
}
.case-head__title {
  clear: both;
  margin-top: 22px;
  font-size: clamp(30px, 8vw, 46px);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.02em;
}
@media (min-width: 769px) {
  .case-head__title {
    margin-top: 34px;
    font-size: clamp(52px, 5.6vw, 88px);
  }
}
.case-head__desc {
  margin-top: 20px;
  max-width: 32em;
  font-size: 15px;
  line-height: 1.6;
  color: #6e6a5f;
}

/* メタ表（枠で囲わず罫線だけ） */
.meta {
  margin-top: 46px;
  width: 100%;
  border-collapse: collapse;
}
@media (min-width: 769px) {
  .meta {
    margin-top: 70px;
    max-width: 820px;
  }
}
.meta th,
.meta td {
  border-bottom: 1px solid #d7d2c6;
  padding-block: 13px;
  text-align: left;
  vertical-align: top;
  line-height: 1.6;
}
.meta th {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .meta th {
    font-size: 11px;
  }
}
.meta th {
  width: 84px;
  padding-right: 14px;
  white-space: nowrap;
}
@media (min-width: 769px) {
  .meta th {
    width: 130px;
  }
}
.meta td {
  font-size: 14px;
}
@media (min-width: 769px) {
  .meta td {
    font-size: 15px;
  }
}

/* FV キャプチャ（フル幅・モック枠に入れない） */
.case-fv {
  margin-top: 56px;
  aspect-ratio: 16/10;
}
@media (min-width: 769px) {
  .case-fv {
    margin-top: 90px;
    aspect-ratio: 16/9;
  }
}

/* ==================================================
   本文（4章）
================================================== */
.chapter {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .chapter {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.chapter {
  padding-block: 60px;
}
@media (min-width: 769px) {
  .chapter {
    padding-block: 100px;
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    gap: 60px;
    align-items: start;
  }
}
.chapter + .chapter {
  border-top: 1px solid #d7d2c6;
}
.chapter__label {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .chapter__label {
    font-size: 11px;
  }
}
.chapter__label {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}
@media (min-width: 769px) {
  .chapter__label {
    margin-bottom: 0;
    position: sticky;
    top: 90px;
  }
}
.chapter__label b {
  font-weight: 400;
  color: #8a3b1e;
}
.chapter__title {
  font-size: 21px;
  line-height: 1.3;
  font-weight: 700;
  margin-bottom: 20px;
}
@media (min-width: 769px) {
  .chapter__title {
    font-size: 27px;
    margin-bottom: 28px;
  }
}
.chapter__body p {
  font-size: 15px;
  line-height: 1.6;
  max-width: 36em;
}
@media (min-width: 769px) {
  .chapter__body p {
    font-size: 16px;
  }
}
.chapter__body p + p {
  margin-top: 20px;
}
.chapter__body strong {
  font-weight: 700;
  background: linear-gradient(transparent 62%, rgba(138, 59, 30, 0.18) 62%);
}
.chapter__figs {
  margin-top: 34px;
  display: grid;
  gap: 16px;
}
@media (min-width: 769px) {
  .chapter__figs {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
}
.chapter__fig {
  aspect-ratio: 4/3;
}
.chapter__cap {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .chapter__cap {
    font-size: 11px;
  }
}
.chapter__cap {
  margin-top: 10px;
  text-transform: none;
  letter-spacing: 0.06em;
}

/* コード断片（1つだけ・10行以内） */
.code {
  margin-top: 30px;
  background: rgba(21, 20, 15, 0.045);
  border-left: 2px solid #8a3b1e;
  padding: 18px 20px;
  overflow-x: auto;
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.6;
}
@media (min-width: 769px) {
  .code {
    font-size: 13px;
  }
}
.code code {
  white-space: pre;
}

/* 数値・結果 */
.result {
  margin-top: 34px;
  display: grid;
  gap: 0;
  border-top: 1px solid #d7d2c6;
}
.result__item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 16px;
  border-bottom: 1px solid #d7d2c6;
}
.result__k {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .result__k {
    font-size: 11px;
  }
}
.result__k {
  text-transform: none;
  letter-spacing: 0.06em;
}
.result__v {
  font-family: "Instrument Serif", Georgia, "Times New Roman", serif;
  font-size: 26px;
  line-height: 1;
}
@media (min-width: 769px) {
  .result__v {
    font-size: 34px;
  }
}

/* スクリーンショット列 */
.shots {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .shots {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.shots {
  display: grid;
  gap: 16px;
  padding-bottom: 60px;
}
@media (min-width: 769px) {
  .shots {
    gap: 30px;
    padding-bottom: 110px;
  }
}
.shots__label {
  text-transform: none;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.shots__label .tlink {
  font-size: inherit;
  color: #15140f;
}
.shots__fig {
  display: block;
  aspect-ratio: 16/10;
}
@media (min-width: 769px) {
  .shots__fig {
    aspect-ratio: 16/9;
  }
}

/* ==================================================
   Prev / Next
================================================== */
.pager {
  width: 100%;
  margin-inline: auto;
  padding-inline: 24px;
}
@media (min-width: 769px) {
  .pager {
    max-width: 1280px;
    padding-inline: 60px;
  }
}
.pager {
  display: grid;
  gap: 26px;
  padding-block: 44px;
  border-top: 1px solid #d7d2c6;
}
@media (min-width: 769px) {
  .pager {
    grid-template-columns: 1fr 1fr;
    padding-block: 64px;
  }
}
.pager__item {
  display: block;
}
.pager__item--next {
  text-align: right;
}
.pager__label {
  font-family: "Roboto Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  line-height: 1.3;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6e6a5f;
}
@media (min-width: 769px) {
  .pager__label {
    font-size: 11px;
  }
}
.pager__ttl {
  margin-top: 8px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.01em;
}
@media (min-width: 769px) {
  .pager__ttl {
    font-size: 26px;
  }
}
@media (hover: hover) {
  .pager__item:hover .pager__ttl {
    color: #8a3b1e;
    transition: color 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
