/* PanMarie Studio 公式サイト
   どの作品にも寄らない下地にする（社長確定2026-07-19）。
   占いの星空でも、ゲームの夕暮れでもない。夜 → 朝 → 夜 の、温かくて中立な地。
   4作品のアイコンは世界観がばらばらなので、本文は生成りに置いてどれも等しく映えるようにする。 */

:root {
  /* 夜＝黒ではなく、茶みのある温かい闇 */
  --night: #14100c;
  --night-2: #1d1811;
  /* 朝＝紙・生成り */
  --paper: #faf6ee;
  --paper-2: #f3ece0;
  /* 墨 */
  --ink: #241f19;
  --ink-soft: #5d5449;
  /* 金＝ロゴと同じ系統。強すぎない */
  --gold: #b08a2e;
  --gold-lite: #e8c266;
  --line: rgba(36, 31, 25, .13);
  --line-night: rgba(255, 250, 240, .14);

  --serif: "Hiragino Mincho ProN", "Yu Mincho", "YuMincho", serif;
  --sans: "Hiragino Sans", "Hiragino Kaku Gothic ProN", system-ui, sans-serif;
}

* { box-sizing: border-box; }

/* コピー・選択・ドラッグの禁止（元サイトからの仕様・社長指示）。入力欄だけは選択できる */
body { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
input, textarea { -webkit-user-select: text; user-select: text; }
img { -webkit-user-drag: none; user-drag: none; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 2.15;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
  /* 日本語の折り返し。行末に一文字だけ落ちるのを防ぐ（文節で折る・禁則を守る） */
  word-break: normal;
  line-break: strict;
  overflow-wrap: break-word;
}
p, h1, h2, h3, li, dd, figcaption, address {
  word-break: auto-phrase;   /* 文節の切れ目で折る（日本語） */
  text-wrap: pretty;         /* 最後の行に1〜2文字だけ残さない */
}
h1, h2, h3 { text-wrap: balance; }   /* 見出しは行の長さを揃える */

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

.skip {
  position: absolute; top: -100px; left: 12px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.inner { max-width: 1080px; margin: 0 auto; padding: 0 28px; }
.inner.narrow { max-width: 760px; }

/* ── ヘッダー ───────────────────────────────── */
.site {
  position: fixed; inset: 0 0 auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 18px 28px;
  transition: background .35s ease, backdrop-filter .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site.solid, .site.scrolled {
  background: rgba(250, 246, 238, .92);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom-color: var(--line);
}
.site-name { text-decoration: none; line-height: 1.35;
             display: inline-flex; flex-direction: column; justify-content: center; min-height: 44px; }
.sn-main {
  display: block; font-family: var(--serif); font-size: 17px;
  letter-spacing: .08em; color: var(--paper); transition: color .35s ease;
}
.sn-sub {
  display: block; font-size: 10px; letter-spacing: .18em;
  color: rgba(255, 250, 240, .55); transition: color .35s ease;
}
.site.solid .sn-main, .site.scrolled .sn-main { color: var(--ink); }
.site.solid .sn-sub, .site.scrolled .sn-sub { color: var(--ink-soft); }

.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a {
  color: rgba(255, 250, 240, .85); text-decoration: none; font-size: 13.5px;
  letter-spacing: .06em; transition: color .35s ease, opacity .2s ease;
  display: inline-flex; align-items: center; min-height: 44px;
}
.site.solid .site-nav a, .site.scrolled .site-nav a { color: var(--ink-soft); }
.site-nav a:hover { opacity: .65; }
.site-nav a.nav-cta {
  border: 1px solid rgba(255, 250, 240, .4); border-radius: 999px; padding: 8px 18px;
}
.site.solid .site-nav a.nav-cta, .site.scrolled .site-nav a.nav-cta { border-color: var(--line); }

/* ── ヒーロー＝夜 ───────────────────────────── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 130px 28px 90px; overflow: hidden;
  background: var(--night);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto; height: 90%;
  background:
    radial-gradient(58% 50% at 50% 34%, rgba(232, 194, 102, .17), transparent 68%),
    radial-gradient(42% 38% at 22% 18%, rgba(176, 138, 46, .10), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; text-align: center; max-width: 760px; }
.hero-logo { width: min(340px, 62vw); margin: 0 auto 30px; }
.hero-tagline {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(25px, 4.6vw, 46px); line-height: 1.55; letter-spacing: .05em;
  color: #fdf8ee; margin: 0 0 34px;
}
.hero-lede {
  color: rgba(253, 248, 238, .82); font-size: clamp(14.5px, 1.6vw, 17px);
  line-height: 2.3; margin: 0 0 26px;
}
.hero-last {
  color: var(--gold-lite); font-size: clamp(15px, 1.75vw, 18.5px);
  font-family: var(--serif); letter-spacing: .04em; margin: 0;
}
.scrollcue {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  color: rgba(253, 248, 238, .5); font-size: 11px; letter-spacing: .3em; margin: 0;
}
.scrollcue::after {
  content: ""; display: block; width: 1px; height: 34px; margin: 12px auto 0;
  background: linear-gradient(rgba(253, 248, 238, .5), transparent);
}

/* ── 帯の共通 ───────────────────────────────── */
.band { padding: clamp(84px, 11vw, 140px) 0; }
.band-about { background: var(--paper); }
.band-make { background: var(--paper-2); }
.band-works { background: var(--paper); }
.band-family { background: var(--paper-2); }
.band-contact { background: var(--paper); }

.kicker {
  font-size: 11.5px; letter-spacing: .28em; color: var(--gold);
  margin: 0 0 16px; font-weight: 600;
  display: flex; align-items: center; gap: 14px;
}
.k-no {
  font-family: var(--serif); font-size: 12.5px; letter-spacing: .18em;
  color: rgba(176, 138, 46, .62); font-weight: 400;
  padding-right: 14px; border-right: 1px solid rgba(176, 138, 46, .3);
}
.band h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3.1vw, 34px); line-height: 1.6; letter-spacing: .04em;
  margin: 0 0 22px;
}
.band .sub { color: var(--ink-soft); margin: 0 0 46px; max-width: 42em; font-size: 15px; }

.prose p { margin: 0 0 1.6em; max-width: 40em; }
.prose p:last-child { margin-bottom: 0; }

/* ── 共通点はひとつだけ ─────────────────────── */
.make p { margin: 0 0 1.6em; }
.make .make-core {
  font-family: var(--serif); font-size: clamp(21px, 3vw, 31px);
  line-height: 1.7; letter-spacing: .05em; color: var(--ink);
  margin: 1.1em 0 1.5em; padding-left: 0;
}
.make .make-last { color: var(--gold); font-family: var(--serif); font-size: clamp(15px, 1.9vw, 18px); }

/* ── スタジオの情景 ─────────────────────────── */
.studio-shot {
  margin: 64px auto 0; max-width: 1180px; padding: 0 28px;
}
.studio-shot img {
  width: 100%; border-radius: 20px;
  box-shadow: 0 20px 60px rgba(36, 31, 25, .12);
}

/* ── 制作の姿勢 ─────────────────────────────── */
.policies { list-style: none; margin: 44px 0 0; padding: 0; display: grid; gap: 4px; }
.policy {
  display: grid; grid-template-columns: 76px 1fr; gap: 8px 20px; align-items: start;
  padding: 30px 0; border-top: 1px solid var(--line);
}
.policy:last-child { border-bottom: 1px solid var(--line); }
.policy-n {
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  letter-spacing: .04em; line-height: 1.2; padding-top: 4px;
}
.policy h3 {
  font-family: var(--serif); font-size: clamp(17px, 2vw, 21px); font-weight: 600;
  margin: 0 0 10px; letter-spacing: .04em;
}
.policy p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ── 作品 ───────────────────────────────────── */
.works { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)); }
.work {
  display: grid; grid-template-columns: 96px 1fr; gap: 22px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 32px;
  transition: transform .35s cubic-bezier(.2, .7, .3, 1), box-shadow .35s ease;
}
.work:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(36, 31, 25, .09); }
.work-icon img { width: 96px; height: 96px; border-radius: 21px; box-shadow: 0 4px 16px rgba(36, 31, 25, .14); }
.work-genre {
  font-size: 11.5px; letter-spacing: .16em; color: var(--ink-soft);
  margin: 2px 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.work-soon {
  background: rgba(176, 138, 46, .12); color: var(--gold);
  border-radius: 999px; padding: 3px 11px; font-size: 10.5px; letter-spacing: .12em;
}
.work-name {
  font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 12px;
  letter-spacing: .03em; line-height: 1.5; word-break: keep-all;
}
.work-ja { display: block; font-size: 12.5px; color: var(--ink-soft); letter-spacing: .1em; font-family: var(--sans); }
.work-p { margin: 0 0 14px; font-size: 14.5px; color: var(--ink-soft); }
.work-link {
  color: var(--gold); text-decoration: none; font-size: 13.5px; letter-spacing: .05em;
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px;                       /* 指で押せる大きさを確保する */
}
.work-link:hover { text-decoration: underline; }
.work-link span { transition: transform .25s ease; }
.work-link:hover span { transform: translateX(3px); }

.more {
  margin-top: 46px; padding: 36px 36px 38px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(176, 138, 46, .07), rgba(176, 138, 46, .02));
  border: 1px solid rgba(176, 138, 46, .22);
}
.more h3 { font-family: var(--serif); font-size: 19px; margin: 0 0 16px; letter-spacing: .04em; }
.more p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ── 二匹 ───────────────────────────────────── */
.cats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  overflow: hidden; display: flex; flex-direction: column;
}
.cat-photo { margin: 0; aspect-ratio: 16/11; overflow: hidden; }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; }
.cat-body { padding: 34px 36px 38px; }
.cat h3 {
  font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0 0 22px;
  letter-spacing: .06em; color: var(--gold);
}
.cat-lines { margin: 0 0 26px; font-size: 15px; line-height: 2.15; color: var(--ink-soft); }
.cat-close {
  margin: 0; font-family: var(--serif); font-size: 16.5px; letter-spacing: .03em;
  padding-top: 24px; border-top: 1px solid var(--line);
}

/* ── 締め＝ふたたび夜 ───────────────────────── */
.band-closing {
  background: var(--night); color: #fdf8ee; text-align: center;
  padding: clamp(100px, 13vw, 170px) 0;
  position: relative; overflow: hidden;
}
.band-closing::before {
  content: ""; position: absolute; inset: auto 0 -30% 0; height: 80%;
  background: radial-gradient(50% 60% at 50% 100%, rgba(232, 194, 102, .13), transparent 70%);
  pointer-events: none;
}
.band-closing .inner { position: relative; }
.band-closing h2 { color: #fdf8ee; margin-bottom: 34px; }
.closing-body p {
  margin: 0 0 1.35em; color: rgba(253, 248, 238, .84);
  font-size: clamp(15px, 1.8vw, 18px); line-height: 2.35;
}
.closing-body p:last-child {
  margin-bottom: 0; color: var(--gold-lite); font-family: var(--serif);
  font-size: clamp(16px, 2vw, 20px);
}

.closing-cta { margin: 46px 0 0; }
.closing-cta a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 40px; border-radius: 999px;
  border: 1px solid rgba(232, 194, 102, .5); color: var(--gold-lite);
  text-decoration: none; font-size: 15px; letter-spacing: .1em;
  transition: background .3s ease;
}
.closing-cta a:hover { background: rgba(232, 194, 102, .1); }

/* ── お問い合わせページ ─────────────────────── */
.page-sub { padding-top: 74px; }
.page-sub h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 3.1vw, 34px); line-height: 1.6; letter-spacing: .04em; margin: 0 0 22px;
}
.form-hint { margin: -4px 0 4px; font-size: 13px; color: var(--ink-soft); line-height: 1.9; }
.company { margin-top: 84px; padding-top: 40px; border-top: 1px solid var(--line); }
.company h2 { font-family: var(--serif); font-size: 18px; margin: 0 0 22px; letter-spacing: .06em; }
.company dl { display: grid; grid-template-columns: 110px 1fr; gap: 14px 20px; margin: 0; }
.company dt { color: var(--ink-soft); font-size: 13px; letter-spacing: .08em; }
.company dd { margin: 0; font-size: 14.5px; line-height: 1.95; }
.back { margin: 60px 0 0; }
.back a { color: var(--gold); text-decoration: none; font-size: 14px; letter-spacing: .06em;
          display: inline-flex; align-items: center; min-height: 44px; }
.back a:hover { text-decoration: underline; }
.f-nav { margin: 0 0 18px; }
.f-nav a { color: rgba(253, 248, 238, .72); text-decoration: none; font-size: 12.5px; letter-spacing: .1em;
           display: inline-flex; align-items: center; min-height: 44px; }
.f-nav a:hover { color: var(--gold-lite); }

/* ── お問い合わせフォーム ───────────────────── */
.form { display: grid; gap: 20px; margin-top: 12px; }
.form label { display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-soft); letter-spacing: .04em; }
.form input, .form textarea {
  font: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px; width: 100%; line-height: 1.85;
}
.form textarea { resize: vertical; min-height: 150px; }
.form input:focus, .form textarea:focus { border-color: var(--gold); outline: none; }
.hp { position: absolute; top: -9999px; left: 0; }
.btn {
  font: inherit; font-size: 15px; letter-spacing: .08em;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 999px;
  padding: 15px 40px; cursor: pointer; justify-self: start;
  transition: opacity .2s ease, transform .2s ease;
  min-height: 48px;
}
.btn:hover { opacity: .86; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: default; }
.form-msg { margin: 0; font-size: 14px; color: var(--ink-soft); min-height: 1.6em; }
.form-msg.ok { color: #2f7a52; }
.form-msg.ng { color: #a5442f; }

/* ── フッター ───────────────────────────────── */
.site-footer {
  background: var(--night-2); color: rgba(253, 248, 238, .6);
  padding: 54px 0; text-align: center;
}
.f-studio {
  font-family: var(--serif); font-size: 17px; letter-spacing: .1em;
  color: rgba(253, 248, 238, .9); margin: 0 0 8px;
}
.f-company { font-size: 11.5px; letter-spacing: .16em; margin: 0 0 14px; }
.f-address {
  font-style: normal; font-size: 11.5px; line-height: 2.1;
  color: rgba(253, 248, 238, .48); margin: 0 0 20px; letter-spacing: .04em;
}
.f-fine { font-size: 11.5px; margin: 0; letter-spacing: .06em; }

/* ── 出てくる動き ───────────────────────────── */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .85s ease, transform .85s cubic-bezier(.2, .7, .3, 1); }
.reveal.d1.in { transition-delay: .1s; }
.reveal.d2.in { transition-delay: .2s; }
.reveal.d3.in { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .work { transition: none; }
}

/* ── スマホ ─────────────────────────────────── */
@media (max-width: 820px) {
  body { font-size: 15.5px; line-height: 2.1; }
  .inner { padding: 0 20px; }
  .site { padding: 14px 20px; }
  .site-nav { gap: 14px; }
  .site-nav a { font-size: 12.5px; white-space: nowrap; }
  .site-nav a.hide-sp, .site-nav a[href="#policy"] { display: none; }  /* 狭い画面では項目を絞る */
  .site-nav a.nav-cta { padding: 8px 14px; }
  .sn-sub { display: none; }
  .sn-main { font-size: 15px; white-space: nowrap; }
  .hero { padding: 110px 20px 80px; }
  .hero-logo { width: min(258px, 66vw); margin-bottom: 24px; }
  .policy { grid-template-columns: 54px 1fr; gap: 6px 14px; padding: 24px 0; }
  .policy-n { font-size: 21px; }
  .works { grid-template-columns: 1fr; }
  .cats { grid-template-columns: 1fr; }
  .work { grid-template-columns: 72px 1fr; gap: 16px; padding: 22px; }
  .work-icon img { width: 72px; height: 72px; border-radius: 16px; }
  .cat { padding: 28px 24px; }
  .more { padding: 28px 24px; }
  .btn { width: 100%; justify-self: stretch; text-align: center; }
}

/* ═══════════════════════════════════════════════════════════
   作り込み（2026-07-19）
   このサイトの記名＝「ずっと、そばにいる」。
   読んでいるあいだ、画面の端に猫がいて、いっしょに下りてくる。
   キャッチコピー「そばにいてくれる、ということ。」を、
   言葉ではなく体験にするための仕掛け。
   ═══════════════════════════════════════════════════════════ */

/* ── 開幕＝黒からロゴが浮かび、光が一度だけ回って本編へ ── */
.opening {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--night);
  animation: opening-out .9s cubic-bezier(.4, 0, .2, 1) 1.5s forwards;
}
.opening img {
  width: min(240px, 44vw);
  animation: opening-logo 1.5s cubic-bezier(.2, .7, .3, 1) both;
}
.opening::before {
  content: ""; position: absolute; width: 150vmax; height: 150vmax;
  background: conic-gradient(from 0deg, transparent 0turn, rgba(232, 194, 102, .10) .5turn, transparent 1turn);
  animation: opening-sweep 1.9s linear both;
}
@keyframes opening-logo {
  0%   { opacity: 0; transform: scale(.94); filter: blur(6px); }
  55%  { opacity: 1; transform: scale(1);   filter: blur(0); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes opening-sweep { from { transform: rotate(0); } to { transform: rotate(1turn); } }
@keyframes opening-out {
  to { opacity: 0; visibility: hidden; }
}
.no-opening .opening { display: none; }

/* ── 上端のスクロール進捗（金の細い線） ── */
.progress {
  position: fixed; inset: 0 auto auto 0; z-index: 60;
  height: 2px; width: 0;
  background: linear-gradient(90deg, rgba(176, 138, 46, .3), var(--gold-lite));
  transition: width .12s linear;
}

/* ── ヒーローの光が、ゆっくり呼吸する ── */
.hero-glow { animation: breathe 11s ease-in-out infinite; }
@keyframes breathe {
  0%, 100% { opacity: .85; transform: translate3d(0, 0, 0) scale(1); }
  50%      { opacity: 1;   transform: translate3d(0, -1.5%, 0) scale(1.04); }
}

/* ── 帯の通し番号 ── */
.band[data-no] { position: relative; }
.band[data-no]::before {
  content: attr(data-no);
  position: absolute; left: 50%; top: clamp(34px, 5vw, 62px);
  transform: translateX(-50%);
  font-family: var(--serif); font-size: 12px; letter-spacing: .34em;
  color: rgba(176, 138, 46, .5);
}
@media (min-width: 1180px) {
  .band[data-no]::before { left: auto; right: calc(50% + 560px); transform: none; }
}

/* ── 見出しが、下からマスクを解かれて立ち上がる ── */
.band h2, .page-sub h1 { overflow: hidden; }
.band h2 > span, .page-sub h1 > span { display: inline-block; }
.reveal-line { display: block; overflow: hidden; }
.reveal-line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .9s cubic-bezier(.2, .7, .2, 1);
}
.in .reveal-line > span, .reveal-line.in > span { transform: none; }
.reveal-line:nth-child(2) > span { transition-delay: .08s; }
.reveal-line:nth-child(3) > span { transition-delay: .16s; }

/* ── 視差＝絵がスクロールとずれて動く ── */
.studio-shot img, .cat-photo img { will-change: transform; }

/* ── 「共通点はひとつだけ」＝4つの語が、中央の一行に集まる ── */
.converge {
  position: relative; height: 92px; margin: 8px 0 20px;
  pointer-events: none;
  transition: height .8s cubic-bezier(.3, .8, .3, 1) .5s, margin .8s ease .5s;
}
.converge.gathered { height: 8px; margin: 0; }
.converge span {
  position: absolute; top: 50%; left: 50%;
  font-family: var(--serif); font-size: clamp(13px, 1.6vw, 16px);
  letter-spacing: .1em; color: var(--ink-soft); white-space: nowrap;
  opacity: 0;
  transition: transform 1.15s cubic-bezier(.25, .8, .25, 1), opacity .7s ease;
}
.converge span:nth-child(1) { transform: translate(-190%, -190%); }
.converge span:nth-child(2) { transform: translate(85%, -160%); }
.converge span:nth-child(3) { transform: translate(-215%, 95%); }
.converge span:nth-child(4) { transform: translate(110%, 120%); }
.converge.spread span { opacity: .85; }
.converge.gathered span {
  transform: translate(-50%, -50%) scale(.92);
  opacity: 0;
  transition-duration: 1.05s;
}
.converge.gathered span:nth-child(2) { transition-delay: .05s; }
.converge.gathered span:nth-child(3) { transition-delay: .1s; }
.converge.gathered span:nth-child(4) { transition-delay: .15s; }

.make .make-core {
  opacity: 0; transform: translateY(10px);
  transition: opacity 1s ease .35s, transform 1s cubic-bezier(.2, .7, .3, 1) .35s;
}
.make.core-in .make-core { opacity: 1; transform: none; }

/* ── 作品カード＝マウスの位置で少し傾く ── */
.work {
  transform-style: preserve-3d;
  will-change: transform;
}
.work-icon img { transition: transform .4s cubic-bezier(.2, .7, .3, 1); }
.work:hover .work-icon img { transform: translateZ(30px) scale(1.05); }

/* ── 記名の猫＝ずっと、そばにいる ── */
.buddy {
  position: fixed; z-index: 55;
  right: clamp(18px, 2.4vw, 40px);
  top: 50%;
  width: clamp(58px, 6vw, 82px); height: clamp(58px, 6vw, 82px);
  padding: 0; border: 0; background: none; cursor: pointer;
  border-radius: 50%;
  opacity: 0; visibility: hidden;
  transform: translateY(-50%) scale(.7);
  transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .3, 1), visibility .7s;
}
.buddy.is-on { opacity: 1; visibility: visible; transform: translateY(-50%) scale(1); }
.buddy-ring {
  position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid rgba(176, 138, 46, .38);
  animation: buddy-pulse 3.6s ease-in-out infinite;
}
@keyframes buddy-pulse {
  0%, 100% { transform: scale(1);    opacity: .55; }
  50%      { transform: scale(1.07); opacity: .22; }
}
.buddy-face {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border-radius: 50%; object-fit: cover;
  box-shadow: 0 6px 22px rgba(36, 31, 25, .22);
  opacity: 0; transform: scale(.9);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2, .7, .3, 1);
}
.buddy-face.is-on { opacity: 1; transform: none; }
/* まばたき＝上まぶたが一瞬だけ下りる */
.buddy-blink {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  pointer-events: none;
}
.buddy-blink::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 52%;
  background: linear-gradient(180deg, #d9c9b2, #c9b79c);
  transform: translateY(-101%);
}
.buddy.blink .buddy-blink::before { animation: buddy-blink .22s ease-in-out; }
@keyframes buddy-blink {
  0%, 100% { transform: translateY(-101%); }
  50%      { transform: translateY(0); }
}
.buddy:hover { transform: translateY(-50%) scale(1.06); }
.buddy:active { transform: translateY(-50%) scale(.97); }

/* ── リンクの上でだけ、金の輪が広がる（PC） ── */
.cursor-ring {
  position: fixed; z-index: 190; top: 0; left: 0;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid rgba(176, 138, 46, .55); border-radius: 50%;
  pointer-events: none; opacity: 0;
  transition: opacity .25s ease, width .25s ease, height .25s ease, margin .25s ease;
}
.cursor-ring.on { opacity: 1; width: 52px; height: 52px; margin: -26px 0 0 -26px; }
@media (hover: none) { .cursor-ring { display: none; } }

/* ── 数の可視化 ── */
.count { font-variant-numeric: tabular-nums; }

/* ── 動きを控える設定の人には、全部止める ── */
@media (prefers-reduced-motion: reduce) {
  .opening { display: none; }
  .hero-glow { animation: none; }
  .buddy-ring { animation: none; }
  .converge span { display: none; }
  .make .make-core { opacity: 1; transform: none; }
  .reveal-line > span { transform: none; }
  .work { transform: none !important; }
}

/* ── スマホ ── */
@media (max-width: 820px) {
  .buddy { right: 14px; top: auto; bottom: 22px; transform: translateY(0) scale(.7); }
  .buddy.is-on { transform: translateY(0) scale(1); }
  .buddy:hover, .buddy:active { transform: translateY(0) scale(1); }
  .converge { height: 76px; }
  .band[data-no]::before { top: 26px; }
}
