/* ishmto — Web 制作用トップ（ADR-0006）
   白地 + インクの黒。色は作品から借りる: ヒーローで表示中の制作見本の色が --accent になり、ロゴや帯の記号にも移る。
   主役は大きな文字組みと、制作見本の画面そのもの。動きはすべて reduced-motion で止める。
   ブログ・tank は従来の style.css のまま（このファイルは読まない） */

:root {
  --bg: #ffffff;
  --surface: #f3f3f5;
  --ink: #0e0e10;
  --text: #2b2c31;
  --muted: #62656e;          /* 白地で 5.9:1 */
  --faint: #d3d4d9;          /* 考え方の文章の、まだ読んでいない部分 */
  --line: #e4e4e8;
  --accent: #ee4d12;         /* 大きな文字・記号用（JS が作品ごとに差し替える） */
  --accent-strong: #c93d0a;  /* 白い文字を載せる面用（4.5:1 以上） */
  --jp: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic UI", Meiryo, sans-serif;
  --display: "Bricolage Grotesque", "Zen Kaku Gothic New", sans-serif;
  --serif: "Instrument Serif", "Times New Roman", serif;
  --gutter: clamp(20px, 4vw, 56px);
  --maxw: 1360px;
  --hd-h: 72px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --cycle: 7s;               /* ヒーローで 1 作品を見せる時間（home.js と合わせる） */
  interpolate-size: allow-keywords;
  color-scheme: light;
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--jp);
  font-size: 16px;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.35; font-weight: 900; }
p, ol, ul, dl, dd, pre { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--ink); color: #fff; }

.u-vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.u-pc { display: none; }
@media (min-width: 1024px) { .u-pc { display: inline; } }

.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 700; }
.skip:focus { top: 12px; }

.label {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--display); font-weight: 500; font-size: 14px; letter-spacing: .02em;
  color: var(--muted);
}
.label::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.label--light { color: rgba(255, 255, 255, .64); }

/* ---------------------------------------------------------------- buttons */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 58px; padding: 0 30px;
  border-radius: 999px;
  font-weight: 700; font-size: 15px; letter-spacing: .02em; text-decoration: none;
  transition: color .35s var(--ease), border-color .35s var(--ease);
}
.btn__arrow { display: inline-block; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, 0); }
.btn--ink { background: var(--ink); color: #fff; }
/* ホバーは黒で塗らず、作品の色が下からせり上がる */
.btn--ink::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: var(--accent-strong); transform: translateY(101%); transition: transform .5s var(--ease), background-color .6s;
}
.btn--ink:hover::before { transform: none; }
.btn--line { border: 1.5px solid var(--ink); color: var(--ink); }
.btn--line:hover { border-color: var(--accent-strong); color: var(--accent-strong); }

/* ---------------------------------------------------------------- header */
.hd { position: fixed; inset: 0 0 auto; z-index: 60; transition: transform .5s var(--ease), background-color .3s, box-shadow .3s; }
.hd.is-solid { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
.hd.is-hidden { transform: translateY(-100%); }
.hd__inner { display: flex; align-items: center; gap: 28px; height: var(--hd-h); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.logo {
  display: inline-flex; align-items: center; gap: 10px; margin-right: auto;
  font-family: var(--display); font-weight: 700; font-size: 23px; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.logo__mark { width: 18px; height: 18px; border-radius: 6px; background: var(--accent); transition: background-color .9s var(--ease-io), border-radius .6s var(--ease); }
.logo:hover .logo__mark { border-radius: 50%; }
.hd__nav { display: none; gap: 30px; }
.hd__nav a {
  position: relative; padding: 6px 0;
  font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--text); text-decoration: none;
}
.hd__nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease);
}
.hd__nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.hd__cta {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 999px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; text-decoration: none;
  transition: background-color .3s;
}
.hd__cta:hover { background: var(--accent-strong); }
.hd__menu {
  position: relative; width: 48px; height: 48px; margin-right: -8px;
  border: 0; background: none; cursor: pointer;
}
.hd__menu i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .45s var(--ease), top .45s var(--ease); }
.hd__menu i:first-of-type { top: 19px; }
.hd__menu i:last-of-type { top: 27px; }
.hd__menu[aria-expanded="true"] i:first-of-type { top: 23px; transform: rotate(45deg); }
.hd__menu[aria-expanded="true"] i:last-of-type { top: 23px; transform: rotate(-45deg); }
@media (min-width: 1024px) {
  .hd__nav, .hd__cta { display: flex; }
  .hd__menu { display: none; }
}
/* JS なし: ヘッダーは最初から白地、メニューは開けないので相談ボタンを出す */
html:not(.js) .hd { background: rgba(255, 255, 255, .94); box-shadow: 0 1px 0 var(--line); }
html:not(.js) .hd__menu { display: none; }
html:not(.js) .hd__cta { display: inline-flex; }

/* スマホのメニュー（ヘッダーの下に全画面で出す） */
.drawer {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--hd-h) + 12px) var(--gutter) 36px;
  background: var(--bg); overflow-y: auto;
}
.drawer[hidden] { display: none; }
.drawer__nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--display); font-weight: 600; font-size: clamp(30px, 9vw, 44px); letter-spacing: -.02em;
  color: var(--ink); text-decoration: none;
}
.drawer__nav small { font-family: var(--jp); font-weight: 700; font-size: 13px; letter-spacing: 0; color: var(--muted); }
.drawer__foot { margin-top: 32px; font-size: 14px; color: var(--muted); }
.js .drawer.is-open .drawer__nav a { animation: drawer-in .6s var(--ease) both; }
.js .drawer.is-open .drawer__nav a:nth-child(2) { animation-delay: .04s; }
.js .drawer.is-open .drawer__nav a:nth-child(3) { animation-delay: .08s; }
.js .drawer.is-open .drawer__nav a:nth-child(4) { animation-delay: .12s; }
.js .drawer.is-open .drawer__nav a:nth-child(5) { animation-delay: .16s; }
.js .drawer.is-open .drawer__nav a:nth-child(6) { animation-delay: .2s; }
@keyframes drawer-in { from { opacity: 0; transform: translateY(18px); } }

/* ---------------------------------------------------------------- hero */
.hero { padding: calc(var(--hd-h) + 24px) 0 48px; }
.hero__inner { display: grid; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.hero__meta { display: flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 700; color: var(--muted); }
.hero__dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent);
  transition: background-color .9s var(--ease-io), box-shadow .9s var(--ease-io);
}
.hero__title {
  margin-top: 22px;
  font-size: clamp(38px, 10vw, 60px);
  line-height: 1.16; letter-spacing: -.02em;
}
.hero__line { display: block; }
.rot { display: grid; }
.rot__word { grid-area: 1 / 1; color: var(--c); white-space: nowrap; }
html:not(.js) .rot__word:not(:first-child) { display: none; }
.js .rot:not(.is-ready) { visibility: hidden; }
.js .rot__word .ch { display: inline-block; opacity: 0; transform: translateY(.45em); transition: opacity .45s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 34ms); }
.js .rot__word.is-active .ch { opacity: 1; transform: none; }
.js .rot__word.is-out .ch { opacity: 0; transform: translateY(-.35em); transition-duration: .35s, .45s; transition-delay: calc(var(--i) * 18ms); }
.hero__lead { margin-top: 26px; max-width: 32em; font-size: clamp(15px, 1.2vw, 17px); line-height: 1.95; color: var(--muted); word-break: auto-phrase; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__actions .btn { flex: 1 1 180px; }

/* 登場: 文字がせり上がり、舞台が遅れて出る */
.js .hero__meta, .js .hero__line, .js .hero__lead, .js .hero__actions { animation: rise .9s var(--ease) both; }
.js .hero__line:nth-of-type(2) { animation-delay: .08s; }
.js .hero__line:nth-of-type(3) { animation-delay: .14s; }
.js .hero__lead { animation-delay: .22s; }
.js .hero__actions { animation-delay: .3s; }
.js .stage { animation: stage-in 1.1s var(--ease) .15s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes stage-in { from { opacity: 0; transform: translateY(40px) scale(.97); } }

@media (min-width: 1024px) {
  .hero { padding: calc(var(--hd-h) + 8px) 0 32px; }
  .hero__inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 4vw, 72px); min-height: calc(100svh - var(--hd-h) - 40px); }
  .hero__title { font-size: clamp(52px, 5.6vw, 92px); }
  .hero__actions .btn { flex: 0 0 auto; }
}

/* 舞台: 表示中の制作見本の色になり、PC とスマホの画面がゆっくりスクロールする */
.stage {
  --stage-bg: #121212; --stage-fg: #ffffff;
  position: relative; overflow: hidden;
  width: 100%; aspect-ratio: 1 / 1.02; min-height: 360px; /* width を決めておく（min-height から幅が広がらないように） */
  border-radius: 28px;
  background: var(--stage-bg); color: var(--stage-fg);
  transition: background-color 1s var(--ease-io), color .6s var(--ease-io);
  container: stage / inline-size;
}
.stage[data-theme="light"] { --stage-fg: #0e0e10; }
@media (min-width: 1024px) { .stage { aspect-ratio: auto; height: min(calc(100svh - var(--hd-h) - 64px), 780px); border-radius: 32px; } }
.stage__tag {
  position: absolute; left: clamp(18px, 2.4vw, 30px); top: clamp(16px, 2.2vw, 26px); z-index: 3;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; max-width: calc(100% - 40px);
  font-size: 13px; line-height: 1.5;
}
.stage__no { font-family: var(--display); font-weight: 600; opacity: .6; }
.stage__name { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -.01em; }
.stage__kind { opacity: .72; font-weight: 700; }

.browser {
  position: absolute; right: -3%; top: 17%; z-index: 1;
  width: 88%;
  border-radius: 12px; overflow: hidden; background: #fff;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px rgba(0, 0, 0, .08);
}
.browser__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #f1f1f3; border-bottom: 1px solid #e2e2e6; }
.browser__bar i { width: 9px; height: 9px; border-radius: 50%; background: #d5d5da; }
.browser__url {
  flex: 0 1 60%; margin-left: 10px; height: 18px; padding: 0 10px; border-radius: 6px; background: #fff;
  font-family: var(--display); font-size: 10.5px; line-height: 18px; color: #6c6e76;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.browser__url b { color: #0e0e10; font-weight: 600; }
.browser__screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
/* PC は舞台の高さに合わせて枠を伸び縮みさせる（背の低い画面でも下のタブに重ならない） */
@media (min-width: 1024px) {
  .browser { top: 15%; bottom: 17%; width: 90%; display: flex; flex-direction: column; }
  .browser__screen { flex: 1; min-height: 0; aspect-ratio: auto; }
  .phone { bottom: 12%; }
}
.phone {
  position: absolute; left: 6%; bottom: 13%; z-index: 2;
  width: 23%; aspect-ratio: 9 / 19;
  padding: 6px; border-radius: 24px; background: #0e0e10;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08) inset;
}
.phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 18px; background: #fff; }
.scr { position: absolute; left: 0; top: 0; width: 100%; height: auto; opacity: 0; transition: opacity .7s var(--ease-io); }
.scr.is-active { opacity: 1; z-index: 1; }
.scr.is-scrolling { animation: autoscroll calc(var(--cycle) - 1.4s) cubic-bezier(.45, 0, .3, 1) .7s both; }
@keyframes autoscroll { to { transform: translateY(var(--dist, 0px)); } }
.stage.is-paused .scr, .stage.is-paused .stage__tab.is-active i::after { animation-play-state: paused; }

.stage__foot {
  position: absolute; left: clamp(14px, 2vw, 24px); right: clamp(14px, 2vw, 24px); bottom: clamp(12px, 1.8vw, 20px); z-index: 3;
  display: flex; align-items: center; gap: 8px;
}
.stage__tabs { display: flex; gap: 4px; flex: 1; min-width: 0; }
.stage__tab {
  position: relative; flex: 1; min-width: 0; min-height: 44px; padding: 8px 6px 10px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: 13px; color: inherit; opacity: .55;
  transition: opacity .3s;
}
.stage__tab { display: flex; align-items: baseline; gap: 8px; }
.stage__tab-no { font-weight: 500; font-size: 11px; opacity: .8; }
.stage__tab-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stage__tab.is-active, .stage__tab:hover { opacity: 1; }
.stage__tab i { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 2px; border-radius: 2px; background: color-mix(in srgb, currentColor 22%, transparent); overflow: hidden; }
.stage__tab i::after { content: ""; position: absolute; inset: 0; background: currentColor; transform: scaleX(0); transform-origin: left; }
.stage__tab.is-active i::after { transform: scaleX(1); }
.js .stage.is-auto .stage__tab.is-active i::after { animation: tab-progress var(--cycle) linear both; }
@keyframes tab-progress { from { transform: scaleX(0); } }
.stage__pause {
  position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); background: none; cursor: pointer;
}
.stage__pause i { position: absolute; inset: 0; margin: auto; width: 10px; height: 12px; border-inline: 3px solid currentColor; }
.stage__pause[aria-pressed="true"] i { width: 0; height: 0; border: 0; border-block: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 17px; }
html:not(.js) .stage__pause { display: none; }
.stage__link {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: var(--stage-fg); color: var(--stage-bg);
  font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 1s var(--ease-io), color 1s var(--ease-io);
}
@media (max-width: 560px) {
  .stage { aspect-ratio: 1 / 1.14; }
}
/* 舞台が狭いときは、タブを番号だけにする（名前は読み上げ用に残す） */
@container stage (max-width: 600px) {
  .stage__tab { justify-content: center; }
  .stage__tab-no { font-size: 13px; opacity: 1; }
  .stage__tab-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .stage__link { padding: 0 14px; }
}
@container stage (max-width: 400px) {
  .stage__kind { display: none; }
}
/* さらに狭いときは「サイトを見る」を矢印だけの丸にして、タブの押せる幅を確保する */
@container stage (max-width: 340px) {
  .stage__link { width: 44px; padding: 0; justify-content: center; }
  .stage__link-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------------------------------------------------------------- marquee */
.marquee { overflow: hidden; padding: clamp(14px, 1.6vw, 22px) 0; border-block: 1px solid var(--line); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex; align-items: center; gap: clamp(20px, 2.6vw, 40px); padding-right: clamp(20px, 2.6vw, 40px);
  font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5.4vw, 84px); line-height: 1.12; letter-spacing: -.03em;
  color: var(--ink); white-space: nowrap;
}
.marquee__group em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
.marquee__group i { font-style: normal; font-size: .5em; color: var(--accent); transition: color .9s var(--ease-io); }

/* ---------------------------------------------------------------- statement */
.statement { padding: clamp(96px, 12vw, 184px) 0 clamp(24px, 3vw, 48px); }
.statement__inner { max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }
.statement__text {
  margin-top: 32px;
  font-weight: 900; font-size: clamp(23px, 3.3vw, 46px); line-height: 1.7; letter-spacing: .01em; color: var(--ink);
}
.statement__text mark { background: none; color: inherit; }
.js .statement__text .c { color: var(--faint); transition: color .3s; }
.js .statement__text .c.on { color: var(--ink); }
.statement__text mark {
  background-image: linear-gradient(var(--accent), var(--accent));
  background-repeat: no-repeat; background-position: 0 90%; background-size: 100% .14em;
  transition: background-size 1s var(--ease), background-image .9s;
}
.js .statement__text mark { background-size: 0 .14em; }
.js .statement__text mark.on { background-size: 100% .14em; }

/* ---------------------------------------------------------------- section common */
.sec { padding: clamp(72px, 8.5vw, 132px) 0; }
.sec__head {
  display: grid; gap: 22px;
  max-width: var(--maxw); margin: 0 auto clamp(48px, 6vw, 96px); padding: 0 var(--gutter);
}
.sec__title { display: grid; gap: 14px; }
.sec__en {
  font-family: var(--display); font-weight: 600; font-size: clamp(54px, 9.2vw, 148px);
  line-height: .92; letter-spacing: -.045em; color: var(--ink);
}
.sec__en em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.sec__ja { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.sec__ja::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transition: background-color .9s var(--ease-io); }
.sec__lead { max-width: 33em; color: var(--muted); word-break: auto-phrase; }
@media (min-width: 1024px) {
  .sec__head { grid-template-columns: minmax(0, 1fr) minmax(0, 30em); align-items: end; }
}

/* 見出しの文字が下からせり上がる（黒い帯などで覆わない） */
.split__inner .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .1em; margin: -.06em -.02em -.1em; }
.js .split__inner .ch { display: inline-block; transform: translateY(115%); transition: transform 1s var(--ease); transition-delay: calc(var(--i) * 26ms); }
.js [data-split].in .ch { transform: none; }

/* 薄く浮き上がる */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- works (stacked cards) */
.anchor { display: block; }
.stack { display: grid; gap: 20px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.card {
  --bg-c: #111; --fg-c: #fff; --muted-c: rgba(255, 255, 255, .7); --line-c: rgba(255, 255, 255, .16);
  --btn-bg: #fff; --btn-fg: #111;
  position: relative; overflow: hidden;
  display: grid; gap: 36px;
  padding: clamp(24px, 4vw, 56px);
  border-radius: 28px;
  background: var(--bg-c); color: var(--fg-c);
  transform-origin: 50% 0;
}
.card--ironpact { --bg-c: #0d0d0d; --fg-c: #f3f1ec; --muted-c: #a8a49d; --line-c: rgba(243, 241, 236, .16); --btn-bg: #ff5a1f; --btn-fg: #0d0d0d; }
.card--asatsuyu { --bg-c: #eee8df; --fg-c: #2d3430; --muted-c: #5a625c; --line-c: rgba(45, 52, 48, .16); --btn-bg: #2d3430; --btn-fg: #f6f3ee; }
.card--hitokoma { --bg-c: #e7eefd; --fg-c: #0f1b2d; --muted-c: #475569; --line-c: rgba(15, 27, 45, .14); --btn-bg: #2257e6; --btn-fg: #fff; }
.card__info { position: relative; z-index: 2; display: flex; flex-direction: column; }
.card__top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-size: 13px; font-weight: 700; color: var(--muted-c); }
.card__no { font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--fg-c); }
.card__title { margin-top: 18px; font-size: clamp(48px, 6.4vw, 96px); line-height: 1; color: var(--fg-c); }
.card--ironpact .card__title { font-family: "Anton", var(--display); font-weight: 400; letter-spacing: .01em; }
.card--asatsuyu .card__title { font-family: "Cormorant Garamond", serif; font-weight: 500; letter-spacing: .05em; }
.card--hitokoma .card__title { font-family: "Plus Jakarta Sans", var(--display); font-weight: 800; letter-spacing: -.035em; }
.card__catch { margin-top: 18px; font-weight: 900; font-size: clamp(18px, 1.7vw, 23px); line-height: 1.5; word-break: auto-phrase; }
.card--asatsuyu .card__catch { font-weight: 700; letter-spacing: .08em; }
.card__desc { margin-top: 14px; max-width: 32em; font-size: 15px; line-height: 1.9; color: var(--muted-c); word-break: auto-phrase; }
.card__meta { margin: 22px 0 28px; border-top: 1px solid var(--line-c); font-size: 14px; }
.card__meta div { display: grid; grid-template-columns: 5.5em 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-c); }
.card__meta dt { color: var(--muted-c); font-weight: 700; }
.card__meta dd { margin: 0; }
.card__cta {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: 15px; text-decoration: none;
  transition: transform .4s var(--ease);
}
.card__cta:hover { transform: translateY(-2px); }
.card__cta span { transition: transform .4s var(--ease); }
.card__cta:hover span { transform: translate(2px, -2px); }

.card__visual { position: relative; display: block; aspect-ratio: 5 / 4; }
.card__pc, .card__sp, .card__chip { position: absolute; display: block; overflow: hidden; transition: transform .8s var(--ease); }
.card__pc {
  right: 0; top: 4%; width: 90%;
  border-radius: 12px; background: #fff;
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .08);
}
.card__pc img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.card__sp {
  left: 0; bottom: 2%; width: 23%; aspect-ratio: 400 / 866;
  padding: 5px; border-radius: 20px; background: #0e0e10;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
}
.card__sp img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 15px; }
.card__chip {
  right: 3%; bottom: 0; width: 52%;
  border-radius: 12px; background: #fff;
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .5), 0 0 0 1px rgba(0, 0, 0, .1);
}
.card__chip--tall { width: 26%; right: 6%; bottom: -2%; }
.card__chip b {
  position: absolute; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 999px; background: rgba(14, 14, 16, .86); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.card__visual:hover .card__pc { transform: translateY(-8px); }
.card__visual:hover .card__sp { transform: translateY(-14px) rotate(-2deg); }
.card__visual:hover .card__chip { transform: translateY(-4px) rotate(1deg); }
.works__note { max-width: var(--maxw); margin: 32px auto 0; padding: 0 var(--gutter); font-size: 13px; color: var(--muted); }

@media (min-width: 1024px) {
  .card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 4vw, 64px); border-radius: 36px; }
}
/* 高さのある PC 画面では、カードが上に積み重なっていく */
@media (min-width: 1024px) and (min-height: 760px) {
  .stack { gap: 0; }
  .card {
    position: sticky; top: calc(var(--hd-h) + 16px + var(--i) * 22px);
    min-height: min(calc(100svh - var(--hd-h) - 56px), 760px);
    margin-bottom: 38vh;
  }
  .card:last-child { margin-bottom: 0; }
}

/* ---------------------------------------------------------------- services */
.svc { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.svc__item {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 14px;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.svc__item:last-child { border-bottom: 1px solid var(--line); }
.svc__item::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1.5px;
  background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.svc__item:hover::before { transform: scaleX(1); }
.svc__no { font-family: var(--display); font-weight: 500; font-size: 15px; color: var(--muted); padding-top: .35em; }
.svc__title { font-size: clamp(26px, 3.4vw, 46px); line-height: 1.25; letter-spacing: -.01em; transition: transform .6s var(--ease); }
.svc__en { display: block; margin-top: 6px; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: 0; color: var(--muted); }
.svc__desc { grid-column: 2; color: var(--muted); font-size: 15px; word-break: auto-phrase; }
.svc__arrow { display: none; }
@media (min-width: 1024px) {
  .svc__item { grid-template-columns: 90px minmax(0, 1.15fr) minmax(0, 1fr) 48px; align-items: center; gap: 32px; padding: 44px 0; }
  .svc__desc { grid-column: auto; }
  .svc__arrow {
    display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
    border: 1.5px solid var(--line); font-family: var(--display); font-size: 18px; color: var(--ink);
    transition: transform .5s var(--ease), border-color .3s;
  }
  .svc__item:hover .svc__title { transform: translateX(14px); }
  .svc__item:hover .svc__arrow { transform: rotate(45deg); border-color: var(--ink); }
}

/* ---------------------------------------------------------------- why (bento) */
.why { background: var(--surface); }
.bento { display: grid; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 22px;
  padding: clamp(22px, 2.6vw, 34px);
  border-radius: 26px; background: #fff;
}
.tile__no { font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--muted); }
.tile__title { margin-top: 8px; font-size: clamp(21px, 2vw, 27px); line-height: 1.4; letter-spacing: -.01em; word-break: auto-phrase; }
.tile__text { margin-top: 10px; max-width: 34em; font-size: 14.5px; line-height: 1.85; color: var(--muted); word-break: auto-phrase; }
@media (min-width: 768px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--resp { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
  .tile--resp { grid-column: span 7; grid-row: span 2; }
  .tile--form, .tile--speed { grid-column: span 5; }
  .tile--code, .tile--log { grid-column: span 6; }
}

/* 01 画面幅のデモ: つまみで幅を変えると、中のレイアウトがコンテナクエリで組み替わる */
.resp { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.resp__stage { position: relative; flex: 1; min-height: 300px; display: flex; padding: 18px 26px 18px 18px; border-radius: 18px; background: var(--surface); }
.resp__frame {
  position: relative; flex: none; width: 100%; min-width: 96px;
  border-radius: 12px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 18px 30px -18px rgba(0, 0, 0, .25);
}
.resp__view { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.resp__handle {
  position: absolute; right: -12px; top: 50%; z-index: 2;
  width: 24px; height: 64px; margin-top: -32px;
  border-radius: 12px; background: var(--ink); border: 4px solid var(--surface);
  cursor: ew-resize; touch-action: none;
}
.resp__handle::before { content: ""; position: absolute; inset: 18px 7px; border-inline: 1.5px solid rgba(255, 255, 255, .6); }
.resp__handle:focus-visible { outline: 3px solid var(--accent-strong); outline-offset: 2px; }
.resp__readout { display: flex; align-items: baseline; gap: 4px; font-family: var(--display); font-size: 14px; color: var(--muted); }
.resp__readout b { font-size: 22px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.resp__readout span { margin-left: 10px; padding: 2px 10px; border-radius: 999px; background: var(--surface); font-family: var(--jp); font-size: 13px; font-weight: 700; color: var(--ink); }
/* 中のページは「仮想の画面幅」で組んでから縮小する（寸法は仮想の px）。切り替えは 600px / 1000px */
.mini { position: absolute; left: 0; top: 0; width: 1280px; transform-origin: 0 0; background: #fff; container-type: inline-size; }
.mini i { display: block; }
.mini__page { display: grid; align-content: start; gap: 34px; padding: 24px 36px; }
.mini__nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; }
.mini__logo { width: 104px; height: 22px; border-radius: 7px; background: var(--ink); }
.mini__links { display: flex; gap: 26px; }
.mini__links i { width: 74px; height: 12px; border-radius: 6px; background: var(--faint); }
.mini__burger { display: none; position: relative; width: 34px; height: 24px; border-block: 4px solid var(--ink); }
.mini__burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: var(--ink); }
.mini__hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.mini__copy { display: grid; gap: 16px; }
.mini__t1, .mini__t2 { height: 44px; border-radius: 8px; background: var(--ink); }
.mini__t1 { width: 94%; }
.mini__t2 { width: 64%; }
.mini__t3 { width: 84%; height: 16px; border-radius: 8px; background: var(--faint); }
.mini__btn { width: 190px; height: 56px; margin-top: 12px; border-radius: 28px; background: var(--accent); transition: background-color .9s var(--ease-io); }
.mini__img { aspect-ratio: 4 / 3; border-radius: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 55%, #fff), color-mix(in srgb, var(--accent) 16%, #fff)); }
.mini__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mini__cards i { aspect-ratio: 4 / 3; border-radius: 18px; background: var(--surface); }
.mini__sec { display: grid; gap: 14px; padding-top: 12px; }
.mini__h { width: 38%; height: 28px; border-radius: 7px; background: var(--ink); }
.mini__p { width: 100%; height: 14px; border-radius: 7px; background: var(--faint); }
.mini__p--short { width: 62%; }
.mini__foot { display: flex; justify-content: space-between; align-items: center; height: 120px; margin: 12px -36px 0; padding: 0 36px; background: var(--ink); }
.mini__foot i { width: 120px; height: 16px; border-radius: 8px; background: rgba(255, 255, 255, .35); }
.mini__foot i:last-child { width: 220px; }
@container (max-width: 999px) {
  .mini__links i:nth-child(3), .mini__cards i:nth-child(3) { display: none; }
  .mini__cards { grid-template-columns: repeat(2, 1fr); }
}
@container (max-width: 599px) {
  .mini__page { gap: 24px; padding: 18px 22px; }
  .mini__links { display: none; }
  .mini__burger { display: block; }
  .mini__hero { grid-template-columns: 1fr; gap: 22px; }
  .mini__img { order: -1; }
  .mini__t1, .mini__t2 { height: 30px; }
  .mini__cards { grid-template-columns: 1fr; gap: 18px; }
  .mini__cards i:nth-child(3) { display: block; }
  .mini__h { width: 70%; }
  .mini__foot { margin: 8px -22px 0; padding: 0 22px; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; }
}

/* 02 フォームのデモ */
.demo-form { margin-top: auto; }
.demo-form__label { display: block; font-size: 14px; font-weight: 700; color: var(--ink); }
.demo-form__label small { margin-left: 6px; font-size: 12px; font-weight: 400; color: var(--muted); }
.demo-form__field { position: relative; margin-top: 10px; }
.demo-form input {
  width: 100%; min-height: 56px; padding: 0 52px 0 18px;
  border: 1.5px solid var(--line); border-radius: 14px; background: #fff;
  font: inherit; font-size: 16px; color: var(--ink);
  transition: border-color .25s, box-shadow .25s;
}
.demo-form input::placeholder { color: #8b8e96; }
.demo-form input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(14, 14, 16, .08); }
.demo-form__state { position: absolute; right: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; transform: scale(0); transition: transform .35s var(--ease), background-color .2s; }
.demo-form__msg { margin-top: 10px; min-height: 1.85em; font-size: 13.5px; color: var(--muted); }
.demo-form.is-ok input { border-color: #1d7a55; }
.demo-form.is-ok .demo-form__state { transform: scale(1); background: #1d7a55 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.demo-form.is-ok .demo-form__msg { color: #1d7a55; font-weight: 700; }
.demo-form.is-ng input { border-color: #c2331f; }
.demo-form.is-ng .demo-form__state { transform: scale(1); background: #c2331f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6.5v5.5M11 15.2v.3' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.demo-form.is-ng .demo-form__msg { color: #b02d1b; font-weight: 700; }

/* 03 速さのデモ: 骨組み → 画像と文字が順に入る、を繰り返す */
.speed { position: relative; margin-top: auto; padding: 16px; border-radius: 18px; background: var(--surface); }
.speed__bar { position: absolute; left: 16px; right: 16px; top: 8px; height: 3px; border-radius: 3px; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.speed__page { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; padding: 14px; border-radius: 12px; background: #fff; }
.speed__page i { display: block; border-radius: 4px; }
.speed__img { grid-row: span 4; aspect-ratio: 4 / 3.2; border-radius: 8px !important; }
.speed__l1 { height: 12px; width: 90%; }
.speed__l2 { height: 12px; width: 60%; }
.speed__l3 { height: 7px; width: 80%; }
.speed__btn { width: 64px; height: 18px; border-radius: 9px !important; }
/* 読み込み済みの色が基本（JS なし・動きを減らす設定ではこのまま） */
.speed__img { background-color: color-mix(in srgb, var(--accent) 38%, #fff); }
.speed__l1, .speed__l2 { background-color: var(--ink); }
.speed__l3 { background-color: #e9e9ec; }
.speed__btn { background-color: var(--accent); }
.speed__bar { opacity: 0; }
.js .speed.is-run .speed__bar { animation: speed-bar 3.6s var(--ease) 3 both; }
.js .speed.is-run .speed__img { animation: speed-img 3.6s var(--ease) 3 both; }
.js .speed.is-run .speed__l1, .js .speed.is-run .speed__l2 { animation: speed-ink 3.6s var(--ease) 3 both; }
.js .speed.is-run .speed__btn { animation: speed-btn 3.6s var(--ease) 3 both; }
@keyframes speed-bar { 0% { transform: scaleX(0); opacity: 1; } 25% { transform: scaleX(1); opacity: 1; } 35%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes speed-img { 0%, 18% { background-color: #e9e9ec; } 30%, 100% { background-color: color-mix(in srgb, var(--accent) 38%, #fff); } }
@keyframes speed-ink { 0%, 12% { background-color: #e9e9ec; } 22%, 100% { background-color: var(--ink); } }
@keyframes speed-btn { 0%, 22% { background-color: #e9e9ec; } 34%, 100% { background-color: var(--accent); } }

/* 04 コード */
.code {
  margin-top: auto; padding: 20px 22px; border-radius: 18px; background: #141418; color: #d7d7de;
  overflow-x: auto; font-family: ui-monospace, "SF Mono", Consolas, "Courier New", monospace; font-size: 12.5px; line-height: 1.75; tab-size: 2;
}
.code .c-cm { color: #7c7f8a; }
.code .c-tg { color: #ff8e72; }
.code .c-at { color: #8ec5ff; }
.code .c-st { color: #b7e3a1; }
.code .c-sel { color: #ffd479; }

/* 05 記録 */
.log { margin-top: auto; display: grid; gap: 10px; }
.log li {
  display: grid; grid-template-columns: 26px 3.8em 1fr; align-items: center; gap: 10px;
  padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--ink);
}
.log li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}
.log time { font-family: var(--display); font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.js .log li { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .log li::before { transform: scale(0); transition: transform .5s var(--ease) .25s; }
.js .log.is-run li { opacity: 1; transform: none; }
.js .log.is-run li::before { transform: none; }
.js .log.is-run li:nth-child(2), .js .log.is-run li:nth-child(2)::before { transition-delay: .35s; }
.js .log.is-run li:nth-child(3), .js .log.is-run li:nth-child(3)::before { transition-delay: .7s; }

/* ---------------------------------------------------------------- process */
.flow { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.flow__line { position: absolute; left: calc(var(--gutter) + 19px); top: 20px; bottom: 60px; width: 2px; background: var(--line); }
.flow__line i { position: absolute; inset: 0; background: var(--ink); transform-origin: top; transform: scaleY(var(--p, 0)); }
.flow__list { display: grid; gap: 34px; }
.step { position: relative; padding-left: 64px; }
.step__no {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--ink); background: #fff;
  font-family: var(--display); font-weight: 600; font-size: 14px; color: var(--ink);
  transition: background-color .4s, color .4s, transform .5s var(--ease);
}
.step.on .step__no { background: var(--ink); color: #fff; }
.step__title { padding-top: 5px; font-size: 20px; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); word-break: auto-phrase; }
@media (min-width: 1024px) {
  .flow__line { left: var(--gutter); right: var(--gutter); top: 19px; bottom: auto; width: auto; height: 2px; }
  .flow__line i { transform-origin: left; transform: scaleX(var(--p, 0)); }
  .flow__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
  .step { padding: 64px 0 0; }
}

/* ---------------------------------------------------------------- faq */
.faq__inner { display: grid; gap: 8px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.faq__head { display: grid; gap: 22px; margin-bottom: 40px; }
@media (min-width: 1024px) {
  .faq__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .faq__head { position: sticky; top: calc(var(--hd-h) + 32px); margin-bottom: 0; }
}
.faq__list details { border-top: 1px solid var(--line); }
.faq__list details:last-child { border-bottom: 1px solid var(--line); }
.faq__list summary {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 32px; align-items: center; gap: 12px;
  padding: 26px 0; cursor: pointer; list-style: none;
  font-weight: 900; font-size: clamp(16px, 1.6vw, 20px); color: var(--ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__q { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1; color: var(--accent); transition: color .9s var(--ease-io); }
.faq__icon { position: relative; width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .45s var(--ease), border-color .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ink); transition: transform .45s var(--ease); }
.faq__icon::after { transform: rotate(90deg); }
.faq__list details[open] .faq__icon { transform: rotate(180deg); border-color: var(--ink); }
.faq__list details[open] .faq__icon::after { transform: rotate(0deg); }
.faq__list summary:hover .faq__icon { border-color: var(--ink); }
.faq__a { padding: 0 44px 28px 48px; color: var(--muted); word-break: auto-phrase; }
/* 開閉をなめらかに（対応ブラウザのみ。非対応でも普通に開く） */
.faq__list details::details-content { height: 0; overflow: clip; transition: height .5s var(--ease), content-visibility .5s allow-discrete; }
.faq__list details[open]::details-content { height: auto; }

/* ---------------------------------------------------------------- about */
.about__inner { display: grid; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.about__name {
  margin-top: 20px;
  font-family: var(--display); font-weight: 700; font-size: clamp(76px, 13vw, 200px); line-height: .86; letter-spacing: -.055em;
}
.about__role { margin-top: 22px; font-weight: 700; color: var(--ink); }
.about__body { display: grid; gap: 1.2em; align-content: start; }
.about__body > p:not(.about__fact) { font-size: clamp(15px, 1.25vw, 17px); line-height: 2; word-break: auto-phrase; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: .6em; }
.chips li { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--ink); }
.about__fact { margin-top: .6em; padding: 16px 20px; border-radius: 16px; background: var(--surface); font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) { .about__inner { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 96px; align-items: end; } }

/* ---------------------------------------------------------------- contact */
.contact {
  margin-top: clamp(40px, 6vw, 80px);
  padding: clamp(96px, 12vw, 176px) 0 clamp(72px, 8vw, 112px);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background: var(--ink); color: #fff;
}
.contact__inner { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.contact__title { display: grid; gap: 18px; margin-top: 26px; color: #fff; }
.contact__title [lang="en"] { font-family: var(--display); font-weight: 600; font-size: clamp(56px, 10.5vw, 176px); line-height: .92; letter-spacing: -.05em; }
.contact__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; color: var(--accent); transition: color .9s var(--ease-io); }
.contact__ja { font-size: 15px; font-weight: 700; letter-spacing: .04em; color: rgba(255, 255, 255, .8); }
.contact__lead { margin-top: 34px; max-width: 32em; color: rgba(255, 255, 255, .72); word-break: auto-phrase; }
.contact__row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 44px; }
.contact__mail {
  font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3.6vw, 52px); letter-spacing: -.02em;
  color: #fff; text-decoration: none; word-break: break-all;
  background-image: linear-gradient(var(--accent), var(--accent)); background-repeat: no-repeat; background-position: 0 100%; background-size: 0 3px;
  transition: background-size .6s var(--ease);
}
.contact__mail:hover { background-size: 100% 3px; }
.contact__mail:focus-visible, .contact .copy:focus-visible, .contact__sub a:focus-visible { outline-color: #fff; }
.copy {
  min-height: 48px; padding: 0 20px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .4); background: none; color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; transition: border-color .3s, background-color .3s;
}
.copy:hover { border-color: #fff; }
.copy.is-done { border-color: #fff; background: rgba(255, 255, 255, .12); }
.contact__sub { margin-top: 36px; font-family: var(--display); font-size: 15px; }
.contact__sub a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.contact__sub a:hover { color: #fff; }

/* ---------------------------------------------------------------- footer */
.ft { background: var(--ink); color: rgba(255, 255, 255, .6); font-size: 13px; }
.ft__inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 26px var(--gutter) 34px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.ft a { color: inherit; text-decoration: none; }
.ft a:hover { color: #fff; }

/* ---------------------------------------------------------------- mouse-only decorations */
.bubble, .peek { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; }
.bubble span {
  display: grid; place-items: center; width: 104px; height: 104px; margin: -52px 0 0 -52px;
  border-radius: 50%; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 600; font-size: 15px;
  transform: scale(0); transition: transform .45s var(--ease);
}
.bubble span b { font-weight: 600; }
.bubble.on span { transform: scale(1); }
.peek { z-index: 45; }
.peek img {
  width: 300px; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; margin: -94px 0 0 -150px;
  border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  opacity: 0; visibility: hidden; transform: scale(.7) rotate(-4deg);
  transition: opacity .35s var(--ease), transform .5s var(--ease), visibility 0s .35s;
}
.peek.is-tall img { width: 150px; aspect-ratio: 400 / 866; margin: -162px 0 0 -75px; }
.peek.on img { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
@media (hover: none), (pointer: coarse) { .bubble, .peek { display: none; } }

/* ---------------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .rv, .js .split__inner .ch, .js .log li, .js .rot__word.is-active .ch { opacity: 1; transform: none; }
  .scr.is-scrolling { animation: none; }
  .bubble, .peek { display: none; }
}
