@charset "UTF-8";
/* ============================================================
   ムギワークス合同会社 — 共通スタイル
   ワイヤー   : Mugi Works Renewal Wireframes.dc.html (1a–1k)
   ベンチマーク: mtblanc.jp（MontBlanc Pictures）

   ベンチマークから受け継いだ文法
     ・暖かいライトグレーの地に、黒／スレート／原色のパネルを大きな角丸で置く
     ・見出しは太い丸ゴシック。画面の左端まで振り切って置く
     ・ナビゲーションは画面下に浮かぶ白いピル
     ・日付やカテゴリは完全な丸ピルのチップ
     ・横スクロールの帯は画面の両端まではみ出させる
   ============================================================ */

/* ---------- 1. トークン ---------- */
:root {
  /* 地と文字 */
  --canvas:   #dedcda;   /* 全体の地。暖かいライトグレー */
  --white:    #ffffff;
  --ink:      #101013;   /* 文字の基準色 */
  --black:    #000000;   /* ヒーローなど、締める面 */
  --ink-70:   rgba(16, 16, 19, .70);
  --ink-45:   rgba(16, 16, 19, .45);
  --ink-18:   rgba(16, 16, 19, .18);

  /* パネル色。3事業と各セクションに割り当てる */
  --slate:    #3b404f;   /* 落ち着かせる面 */
  --mint:     #5cbf9f;   /* 01 医療・福祉 */
  --sky:      #82a6b8;   /* 02 IT・DX */
  --sun:      #f7d570;   /* 03 飲食事業 */

  --on-dark:    #f4f2f0;
  --on-dark-60: rgba(244, 242, 240, .64);

  /* 文字 */
  --round: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;
  --body:  "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", Meiryo, system-ui, sans-serif;

  /* 余白・寸法 */
  --gut: clamp(20px, 5vw, 70px);
  --max: 1320px;
  --read: 700px;
  --sec-y: clamp(60px, 9vw, 132px);
  --dock-h: 76px;

  /* 角丸。ベンチマークの要 */
  --r-slab: clamp(26px, 3.4vw, 52px);
  --r-card: clamp(16px, 1.6vw, 22px);
  --r-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- 2. リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--round);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.9;
  font-feature-settings: "palt" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* 下に浮かぶナビと本文が重ならないようにする */
  padding-bottom: calc(var(--dock-h) + 18px);
}

img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease), opacity .2s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.slab--slate :focus-visible, .slab--black :focus-visible, .dark :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--white); padding: 12px 22px; border-radius: var(--r-pill);
}
.skip:focus { left: 12px; top: 12px; }

/* ---------- 3. タイポグラフィ ---------- */

/* 英字の大見出し。太い丸ゴシックで、詰めて置く */
.en-xl, .en-lg, .en-md {
  font-family: var(--round);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .92;
}
.en-xl { font-size: clamp(52px, 13vw, 190px); }
.en-lg { font-size: clamp(38px, 8.5vw, 118px); }
.en-md { font-size: clamp(24px, 3.4vw, 44px); }

/* 見出しを画面の左端まで振り切る。ベンチマークの見せ場 */
/* 親要素の幅に左右されないよう、画面幅と余白トークンだけで引き量を決める。
   min() は「画面が狭いときは余白ぶんだけ」「広いときは中央寄せぶんも」を自動で選ぶ */
.bleed-left {
  margin-left: min(
    calc(var(--gut) * -1 + 6px),
    calc((var(--max) - 100vw) / 2 - var(--gut) + 6px)
  );
}

/* 和文見出し */
.h1 { font-size: clamp(28px, 5vw, 60px);  line-height: 1.3;  font-weight: 900; letter-spacing: -.01em; }
.h2 { font-size: clamp(22px, 3.4vw, 42px); line-height: 1.36; font-weight: 900; letter-spacing: -.01em; }
.h3 { font-size: clamp(17px, 2vw, 23px);   line-height: 1.5;  font-weight: 700; }

.lead { font-size: clamp(15px, 1.45vw, 17px); line-height: 2; color: var(--ink-70); font-weight: 500; }
.small { font-size: 13.5px; line-height: 1.85; color: var(--ink-70); }
.muted { color: var(--ink-70); }
.acc { color: var(--mint); }
.mono { font-family: var(--round); font-weight: 700; letter-spacing: .02em; }

/* 日付。丸ピルのチップとして扱う */
.date {
  display: inline-block;
  font-weight: 700; font-size: 12px; letter-spacing: .02em;
  background: var(--ink); color: var(--white);
  padding: 3px 12px; border-radius: var(--r-pill);
  white-space: nowrap;
}

/* 章タグ。塗り(.tag) と 白ピル(.tago) */
.tag, .tago {
  display: inline-block;
  font-weight: 700; font-size: 12.5px; letter-spacing: .04em;
  padding: 5px 15px; border-radius: var(--r-pill);
  white-space: nowrap;
}
.tag  { background: var(--ink); color: var(--white); }
.tago { background: var(--white); color: var(--ink); }

/* ---------- 4. レイアウト ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
/* 段の幅より狭くなる塊は、段の中で中央に置く。
   写真や地図に高さの上限を付けると、その分だけ横幅が縮みます。
   何もしないと左に寄ったまま右側に大きな余白が残り、
   画面の中心とページの中心がずれて見えていました。
   お知らせの記事は元から中央に置いていたので、そこへ揃えます。 */
.wrap > .media,
.wrap > .form { margin-inline: auto; }

.sec { padding-block: var(--sec-y); }
.sec--tight { padding-block: clamp(38px, 5vw, 70px); }

.sec-head { margin-bottom: clamp(28px, 4vw, 56px); }
.sec-head .h2 { margin-top: 16px; }
.sec-head .lead { margin-top: 16px; max-width: var(--read); }

.grid { display: grid; gap: clamp(14px, 1.8vw, 24px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: clamp(10px, 1.3vw, 18px); flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }

/* ---------- 5. 色パネル（スラブ） ---------- */
/* セクションを大きな角丸の面として置く。ベンチマークの基本単位 */
/* 上下の余白は .sec が持ち、スラブは幅・地色・角丸だけを受け持つ */
.slab, .dark {
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  border-radius: var(--r-slab);
  overflow: hidden;
}
.slab > .wrap, .dark > .wrap { padding-inline: clamp(22px, 4vw, 60px); max-width: none; }

/* 角丸のパネル同士が隣り合うときは、必ず間を空ける */
.slab + .slab,
.slab + .dark,
.dark + .slab { margin-top: clamp(22px, 3vw, 44px); }

/* フッターも直前のパネルから離す */
.site-foot { margin-top: clamp(28px, 4vw, 56px); }

.slab--black { background: var(--black); color: var(--on-dark); }
.slab--slate { background: var(--slate); color: var(--on-dark); }
.slab--white { background: var(--white); }
.slab--mint  { background: var(--mint); }
.slab--sky   { background: var(--sky); }
.slab--sun   { background: var(--sun); }

.slab--black .lead, .slab--slate .lead,
.slab--black .small, .slab--slate .small,
.slab--black .muted, .slab--slate .muted { color: var(--on-dark-60); }
.slab--black .tag, .slab--slate .tag,
.slab--black .date, .slab--slate .date { background: var(--white); color: var(--ink); }

/* 旧クラス名との互換 */
.dark { background: var(--slate); color: var(--on-dark); }
.dark .lead, .dark .small, .dark .muted { color: var(--on-dark-60); }
.dark .tag, .dark .date { background: var(--white); color: var(--ink); }

/* ---------- 6. ヘッダー（上は名乗りだけ） ---------- */
.site-head { padding-block: 22px 4px; }
.site-head__in { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.logo { display: inline-flex; align-items: center; }
/* 会社のワードマーク。黒の絵柄を透過PNGで持ち、暗い面では反転させて白く使う */
.logo__img { height: 30px; width: auto; display: block; }
.logo__mark { width: 34px; height: 34px; display: block; }
.site-head--hero .logo__img,
.site-foot .logo__img,
.sidenav .logo__mark { filter: invert(1); }
@media (max-width: 560px) { .logo__img { height: 25px; } }
.site-meta { font-size: 12.5px; font-weight: 700; color: var(--ink-45); letter-spacing: .02em; }

/* ---------- 7. 下に浮かぶピルのナビ ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 14px; z-index: 100;
  display: flex; justify-content: center; pointer-events: none;
  padding-inline: 12px;
}
.dock__list {
  display: flex; align-items: center; gap: 5px;
  pointer-events: auto;
  max-width: 100%; overflow-x: auto;
  scrollbar-width: none;
}
.dock__list::-webkit-scrollbar { display: none; }
.dock__list a {
  display: block; white-space: nowrap;
  background: var(--white); color: var(--ink);
  font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: var(--r-pill);
  box-shadow: 0 6px 22px rgba(16, 16, 19, .13);
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.dock__list a:hover { transform: translateY(-3px); }
.dock__list a[aria-current="page"] { background: var(--ink); color: var(--white); }
.dock__cta { background: var(--mint); }
.dock__cta[aria-current="page"] { background: var(--ink); color: var(--white); }

/* ---------- 8. 流れる帯 ---------- */
.marquee {
  background: var(--ink); color: var(--on-dark);
  overflow: hidden; white-space: nowrap;
  border-radius: var(--r-pill);
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  /* 前後のセクションから離す */
  margin-block: clamp(34px, 5vw, 72px);
}
.marquee__track { display: inline-flex; animation: slide 40s linear infinite; }
.marquee__track > span { font-weight: 700; font-size: 14px; padding: 13px 0; }
.marquee__track > span::after { content: "●"; padding-inline: 20px; color: var(--mint); font-size: 9px; vertical-align: middle; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* ---------- 9. ボタン ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--white); color: var(--ink);
  border: 0; border-radius: var(--r-pill);
  padding: 14px 28px; font-size: 15px; font-weight: 700;
  box-shadow: 0 3px 14px rgba(16, 16, 19, .08);
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.btn:hover { transform: translateY(-3px); }
.btn--fill { background: var(--ink); color: var(--white); }
.btn--fill:hover { background: var(--mint); color: var(--ink); }
.btn--sm { padding: 9px 18px; font-size: 13.5px; }
.btn--lg { padding: 18px 42px; font-size: 16.5px; }
.btn__arrow { transition: transform .22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.slab--black .btn, .slab--slate .btn, .dark .btn { background: var(--white); color: var(--ink); }
.slab--black .btn:hover, .slab--slate .btn:hover, .dark .btn:hover { background: var(--mint); }

/* 「View More ▸」の丸い矢印 */
.more { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
.more__dot {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center; font-size: 15px;
  transition: transform .22s var(--ease);
}
.more:hover .more__dot { transform: translateX(5px); }

/* ---------- 10. 画像枠 ---------- */
.media {
  position: relative; overflow: hidden;
  border-radius: var(--r-card);
  background: linear-gradient(135deg, #cfccc8 0%, #e6e3df 100%);
  display: grid; place-items: center; text-align: center;
  font-size: 12.5px; font-weight: 700; color: var(--ink-45);
  padding: 12px;
}
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* キャラクターのSVGは切り抜かず全体を見せる */
.media img[src*="chara-"] { object-fit: contain; background: var(--canvas); }
.media--16x9 { aspect-ratio: 16 / 9; }
.media--4x3  { aspect-ratio: 4 / 3; }
.media--1x1  { aspect-ratio: 1 / 1; }
.media--3x4  { aspect-ratio: 3 / 4; }
.slab--black .media, .slab--slate .media, .dark .media {
  background: linear-gradient(135deg, #2a2e39 0%, #454b5c 100%); color: var(--on-dark-60);
}

/* 有機的な形に切り抜く。ベンチマークのサムネの見せ方 */
.media--blob  { border-radius: 46% 54% 52% 48% / 50% 44% 56% 50%; }
.media--blob2 { border-radius: 58% 42% 44% 56% / 42% 56% 44% 58%; }

/* ---------- 11. キャラクター枠 ---------- */
.chara {
  border-radius: 50%;
  background: var(--sun); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font-size: 11px; font-weight: 700; line-height: 1.45;
  aspect-ratio: 1 / 1; flex: none; padding: 10px;
  overflow: hidden;
}
.chara img { border-radius: 50%; width: 100%; height: 100%; object-fit: cover; }
/* むぎの大きさ。小さすぎて目立たなかったので一回り大きくしています。
   幅の指定は clamp(最小, 画面幅に応じた値, 最大) の順です。 */
.chara--sm { width: clamp(96px, 8vw, 112px); }
.chara--md { width: clamp(120px, 13vw, 180px); }
.chara--lg { width: clamp(180px, 24vw, 300px); }

/* 見出しの横にキャラクターを2匹並べる枠。
   狭い画面では2匹で200px近く取ってしまい、本文の列が潰れるので、
   見出しの下へ回します。 */
.chara-pair { display: flex; gap: 10px; flex: none; }
@media (max-width: 860px) {
  .chara-row { flex-wrap: wrap !important; }
  .chara-row > :first-child { flex: 1 1 100% !important; }
}

/* 画面右下に常駐する丸いキャラ */
.chara-dock {
  position: fixed; right: 16px; bottom: calc(var(--dock-h) + 22px); z-index: 95;
  width: 74px; box-shadow: 0 6px 20px rgba(16, 16, 19, .2);
}

/* ---------- 12. カード・タイル ---------- */
.card {
  background: var(--white);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
a.card:hover, .card--link:hover { transform: translateY(-6px); box-shadow: 0 16px 38px rgba(16, 16, 19, .14); }
.card__body { padding: clamp(18px, 2vw, 28px); }
.card .media { border-radius: 0; }

/* 事業カード。01/02/03 で色を変える */
.svc__no { font-size: 13px; font-weight: 900; letter-spacing: .06em; }
.svc__en { font-size: 12.5px; font-weight: 700; color: var(--ink-45); }
.svc .h3 { margin: 8px 0 4px; }
/* 本文の量で高さが変わっても、色がカードの下端まで届くようにする */
.card.svc--01 { background: var(--mint); }
.card.svc--02 { background: var(--sky); }
.card.svc--03 { background: var(--sun); }
.svc--01 .svc__en, .svc--02 .svc__en, .svc--03 .svc__en { color: rgba(16, 16, 19, .55); }
.svc--01 .small, .svc--02 .small, .svc--03 .small { color: rgba(16, 16, 19, .74); }
/* 色地の上でアクセント色を使うと沈むため、文字色を墨に戻す */
.svc--01 .acc, .svc--02 .acc, .svc--03 .acc { color: var(--ink); }

/* タイルボード（案B） */
.board { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(130px, auto); }
.board > * { min-width: 0; }
.tile { position: relative; display: block; border-radius: var(--r-card); overflow: hidden; transition: transform .3s var(--ease); }
.tile:hover { transform: translateY(-5px); }
.tile__label {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: var(--white); color: var(--ink);
  font-size: 13px; font-weight: 700;
  padding: 6px 15px; border-radius: var(--r-pill);
}
.tile--wide { grid-column: span 2; grid-row: span 2; }
.tile--tall { grid-row: span 2; }

/* 横スクロールの帯。画面の両端まではみ出させる */
.rail {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 16px;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { flex: 0 0 min(340px, 78vw); scroll-snap-align: start; }

/* ---------- 13. お知らせ ---------- */
.news-row {
  display: grid; grid-template-columns: 150px 1fr; gap: clamp(16px, 2vw, 30px);
  align-items: center;
  background: var(--white); border-radius: var(--r-card);
  padding: 16px; margin-bottom: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.news-row:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(16, 16, 19, .12); }
.news-row__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.news-row__title { font-size: 16.5px; font-weight: 700; line-height: 1.6; margin-top: 9px; }
.news-row .tago { background: var(--canvas); }

/* トップの簡易リスト */
.news-line {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--white); border-radius: var(--r-pill);
  padding: 15px 26px; margin-bottom: 10px;
  transition: transform .25s var(--ease);
}
.news-line:hover { transform: translateX(6px); }
.news-line__title { flex: 1 1 240px; font-weight: 700; font-size: 15.5px; }
.news-line .tago { background: var(--canvas); }

.filters { display: flex; gap: 8px; flex-wrap: wrap; }

.pager { display: flex; gap: 8px; justify-content: center; align-items: center; }
.pager a, .pager span {
  min-width: 46px; height: 46px; display: grid; place-items: center;
  background: var(--white); border-radius: var(--r-pill);
  font-weight: 700; font-size: 14px; padding-inline: 14px;
}
.pager [aria-current="page"] { background: var(--ink); color: var(--white); }

/* ---------- 14. 記事本文 ---------- */
/* 長文だけは丸ゴシックをやめ、読みやすい書体にする */
.article { max-width: var(--read); margin-inline: auto; font-family: var(--body); }
.article h2 {
  font-family: var(--round); font-weight: 900;
  font-size: clamp(19px, 2.2vw, 26px); line-height: 1.45;
  margin: 56px 0 20px; padding: 9px 24px;
  background: var(--ink); color: var(--white); border-radius: var(--r-pill);
  display: inline-block;
}
.article h3 { font-family: var(--round); font-size: clamp(17px, 2vw, 21px); margin: 38px 0 12px; font-weight: 700; }
.article p { margin: 0 0 1.8em; }
.article figure { margin: 36px 0; }
.article figcaption { font-size: 12.5px; color: var(--ink-70); margin-top: 10px; font-weight: 700; }
.article ul { list-style: none; padding: 0; margin: 0 0 1.8em; }
.article ul li { position: relative; padding-left: 1.5em; margin-bottom: .6em; }
.article ul li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--mint);
}
.article blockquote {
  margin: 36px 0; padding: 24px 28px;
  background: var(--white); border-radius: var(--r-card);
  font-size: 15px;
}
.article a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 15. パンくず ---------- */
.crumb { font-size: 12.5px; font-weight: 700; color: var(--ink-45); padding-block: 10px 0; }
.crumb ol { display: flex; gap: 9px; flex-wrap: wrap; }
.crumb li + li::before { content: "／"; padding-right: 9px; }
.crumb [aria-current="page"] { color: var(--ink-70); }

/* ---------- 16. 下層の見出し帯 ---------- */
.phead { padding-block: clamp(26px, 4vw, 56px) clamp(28px, 4vw, 56px); }
.phead__in { display: flex; gap: clamp(20px, 4vw, 52px); align-items: flex-start; justify-content: space-between; }
.phead .en-lg { display: block; }
.phead .h1 { margin-top: 10px; }
.phead .lead { margin-top: 20px; max-width: var(--read); }

/* ---------- 17. 会社情報テーブル ---------- */
.spec { background: var(--white); border-radius: var(--r-slab); padding: clamp(14px, 2.4vw, 34px); }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 20px 10px; border-top: 2px solid var(--canvas); font-size: 15.5px; }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
/* 見出しは英語の小さい行と日本語の行の2段。値は1行しかないので、
   そのままだと上端が英語の行に揃い、日本語の行から浮いて見えます。
   英語1行ぶん（12.5px × 1.6 = 20px）だけ値を下げて、日本語の行に揃えます。
   行の高さを固定しているのは、この20pxを確実に一致させるためです。 */
.spec th { width: 180px; font-size: 12.5px; font-weight: 700; color: var(--ink-45); line-height: 1.6; }
.spec th .jp { display: block; font-size: 15px; color: var(--ink); font-weight: 700; line-height: 1.6; }
.spec td { font-family: var(--body); font-size: 15px; line-height: 1.6; padding-top: 40px; }

/* ---------- 17.5 Purpose / Mission / Vision ---------- */
/* 3つを横に並べると1行が短くなって読みにくいので、縦に積む */
.pmv { margin: 0; }
.pmv__row {
  display: grid; grid-template-columns: 190px 1fr;
  gap: clamp(14px, 3vw, 40px); align-items: start;
  padding-block: clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(244, 242, 240, .22);
}
.pmv__row:last-child { border-bottom: 1px solid rgba(244, 242, 240, .22); }
.pmv__row dt { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.pmv__jp { font-size: 12.5px; font-weight: 700; color: var(--on-dark-60); }
.pmv__row dd { margin: 0; }
@media (max-width: 720px) {
  .pmv__row { grid-template-columns: 1fr; gap: 12px; }
  .pmv__row dt { flex-direction: row; align-items: center; gap: 12px; }
}

/* ---------- 18. 導入の流れ ---------- */
.flow__item { background: var(--white); border-radius: var(--r-card); padding: clamp(20px, 2.4vw, 30px); }
.flow__no { font-size: 13px; font-weight: 900; letter-spacing: .06em; color: var(--ink-45); }
.flow__item .h3 { margin: 10px 0 8px; }
.flow__item:nth-child(1) { background: var(--mint); }
.flow__item:nth-child(2) { background: var(--sky); }
.flow__item:nth-child(3) { background: var(--sun); }
.flow__item:nth-child(-n+3) .flow__no,
.flow__item:nth-child(-n+3) .small { color: rgba(16, 16, 19, .70); }

/* ---------- 19. フォーム ---------- */
.form { max-width: 820px; background: var(--white); border-radius: var(--r-slab); padding: clamp(22px, 4vw, 56px); }
.field { margin-bottom: 26px; }
.field__label { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.req { font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--ink); color: var(--white); padding: 3px 11px; border-radius: var(--r-pill); }
.opt { font-size: 11px; font-weight: 700; letter-spacing: .04em; background: var(--canvas); color: var(--ink-70); padding: 3px 11px; border-radius: var(--r-pill); }
.input, .textarea, .select {
  width: 100%; font: inherit; font-family: var(--body); font-size: 15.5px;
  padding: 15px 18px; color: var(--ink);
  background: var(--canvas); border: 2px solid transparent; border-radius: var(--r-card);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--ink); background: var(--white); }
.textarea { min-height: 190px; resize: vertical; line-height: 1.9; }
.field__hint { font-size: 12.5px; color: var(--ink-70); margin-top: 8px; }
.field__error { font-size: 13.5px; color: #b3261e; margin-top: 8px; font-weight: 700; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: #b3261e; }

/* 用件の3分岐 */
.purpose { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); }
.purpose input { position: absolute; opacity: 0; pointer-events: none; }
.purpose label {
  display: block; cursor: pointer; text-align: center;
  background: var(--canvas); border: 2px solid transparent; border-radius: var(--r-card);
  padding: 20px 14px; font-weight: 700; font-size: 14.5px;
  transition: background .2s var(--ease), border-color .2s var(--ease);
}
.purpose label .mono { display: block; font-size: 11px; color: var(--ink-45); margin-top: 5px; }
.purpose input:checked + label { background: var(--mint); border-color: var(--ink); }
.purpose input:focus-visible + label { outline: 3px solid var(--ink); outline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; flex: none; accent-color: var(--ink); }

.alert { padding: 18px 24px; border-radius: var(--r-card); margin-bottom: 26px; font-size: 15px; font-weight: 700; }
.alert--err { background: #fdecea; color: #8c1d18; }
.alert--ok  { background: var(--mint); }

/* ---------- 20. 追従目次 ---------- */
.toc-layout { display: grid; grid-template-columns: 240px 1fr; gap: clamp(26px, 4vw, 64px); align-items: start; }
.toc { position: sticky; top: 24px; background: var(--white); border-radius: var(--r-card); padding: 18px 20px; }
.toc a { display: block; font-size: 13.5px; font-weight: 700; color: var(--ink-45); padding: 8px 0; }
.toc a:hover, .toc a.is-active { color: var(--ink); }

/* ---------- 21. CTA ---------- */
.cta { text-align: center; }
.cta .en-lg { margin-bottom: 10px; }
.cta .h2 { margin: 0 0 30px; }

/* 黒い帯のCTAだけ、背景に海の写真を敷く。
   お知らせとプライバシーのCTAは黒い帯ではなく文字も黒なので、
   .slab--black が付いているものだけに絞っています。
   写真の上に黒い膜を重ねて、白い文字が読める明るさに落とします。
   下へ行くほど濃くしているのは、ボタンの周りを確実に沈ませるためです。
   写真を差し替えるときは cta-bg.jpg を同じ名前で上書きしてください。 */
.cta.slab--black {
  background:
    linear-gradient(180deg, rgba(16, 16, 19, .40), rgba(16, 16, 19, .62)),
    url("../img/cta-bg.jpg") center / cover no-repeat,
    var(--black);
}

/* ---------- 22. フッター ---------- */
.site-foot {
  background: var(--black); color: var(--on-dark-60);
  border-radius: var(--r-slab);
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  padding: clamp(44px, 5vw, 80px) clamp(24px, 4vw, 60px) 34px;
}
.site-foot a { color: var(--on-dark-60); }
.site-foot a:hover { color: var(--mint); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: clamp(28px, 4vw, 60px); }
.foot-brand .logo { color: var(--on-dark); }
.foot-brand address { font-style: normal; font-size: 14px; line-height: 2; margin-top: 22px; font-family: var(--body); }
.foot-col h3 { font-size: 13px; font-weight: 900; color: var(--on-dark); margin-bottom: 18px; letter-spacing: .04em; }
.foot-col li { margin-bottom: 12px; font-size: 14.5px; font-weight: 700; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(36px, 5vw, 62px); padding-top: 26px;
  border-top: 1px solid rgba(244, 242, 240, .16);
  font-size: 12.5px; font-weight: 700;
}
.sns { display: flex; gap: 10px; }
.sns a {
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(244, 242, 240, .12);
  display: grid; place-items: center;
  font-size: 12.5px; font-weight: 700;
  transition: background .22s var(--ease), color .22s var(--ease);
}
.sns a:hover { background: var(--white); color: var(--ink); }

/* ---------- 22.5 ヒーロー（黒い面＋輪郭だけの大英字） ---------- */
/* ベンチマークの第一画面。黒く締めた面に、白い輪郭の英字を大きく置く */
.hero {
  position: relative; isolation: isolate;
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  border-radius: var(--r-slab);
  overflow: hidden;
  padding: clamp(30px, 4vw, 64px) clamp(22px, 4vw, 60px) clamp(28px, 4vw, 52px);
}
/* 背景に敷く映像・写真の枠 */
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  /* 差し替え前の説明文は右下に逃がし、見出しと重ならないようにする */
  display: grid; place-items: end end; text-align: right;
  background:
    radial-gradient(120% 100% at 70% 20%, rgba(92, 191, 159, .18) 0%, transparent 60%),
    linear-gradient(160deg, #17181d 0%, #000000 70%);
  font-size: 12px; font-weight: 700; color: rgba(244, 242, 240, .26);
  padding: 18px 22px;
}
.hero__media img, .hero__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* 写真はそのままの明るさで見せ、文字が乗る左側だけを暗く覆う */
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(0, 0, 0, .84) 0%, rgba(0, 0, 0, .62) 42%, rgba(0, 0, 0, .22) 100%);
}
/* 輪郭だけの大英字 */
.hero__en {
  color: transparent;
  -webkit-text-stroke: 1.6px rgba(244, 242, 240, .62);
  text-stroke: 1.6px rgba(244, 242, 240, .62);
  margin-bottom: clamp(18px, 3vw, 40px);
}
@supports not (-webkit-text-stroke: 1px red) {
  .hero__en { color: rgba(244, 242, 240, .3); }
}
.hero__row { display: flex; gap: clamp(20px, 4vw, 56px); align-items: flex-end; justify-content: space-between; }
.hero__copy { flex: 1 1 auto; min-width: 0; }
@media (max-width: 860px) {
  .hero__row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .hero__en { -webkit-text-stroke-width: 1.1px; }
}

/* ---------- 23. トップ 案A ヒーロー ---------- */
.heroA__media { aspect-ratio: 16 / 8; max-height: 56vh; border-radius: var(--r-slab); }
.heroA__body { display: flex; gap: clamp(20px, 4vw, 56px); align-items: flex-end; justify-content: space-between; margin-top: clamp(26px, 4vw, 46px); }
.heroA__copy { flex: 1 1 auto; min-width: 0; }
.scroll-hint { font-size: 12.5px; font-weight: 700; color: var(--ink-45); margin-top: 32px; }
.scroll-hint span { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-hint span { animation: none; } }

/* ---------- 24. トップ 案B ヒーロー ---------- */
.heroB__top { display: flex; gap: clamp(18px, 3vw, 44px); align-items: center; flex-wrap: wrap; margin-bottom: clamp(24px, 3vw, 42px); }
.heroB__mark { border-radius: var(--r-slab); background: var(--ink); color: var(--white); padding: clamp(16px, 2.4vw, 30px) clamp(20px, 3vw, 40px); }
.heroB__copy { flex: 1 1 280px; min-width: 0; }

/* ---------- 25. トップ 案C 左固定ナビ ---------- */
.layoutC { display: grid; grid-template-columns: 108px 1fr; min-height: 100vh; }
.sidenav {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
  padding: 24px 10px; background: var(--ink); color: var(--on-dark); z-index: 90;
  border-radius: 0 var(--r-slab) var(--r-slab) 0;
}
.sidenav__links { display: flex; flex-direction: column; gap: 22px; align-items: center; margin-top: 10px; }
.sidenav__links a { font-size: 13px; font-weight: 700; writing-mode: vertical-rl; letter-spacing: .06em; }
.sidenav__links a:hover { color: var(--mint); }
.sidenav__brand { writing-mode: vertical-rl; font-size: 13px; letter-spacing: .22em; font-weight: 900; }
.layoutC__main { min-width: 0; }

/* ---------- 26. 出現アニメーション ---------- */
/* JSが動いている環境でだけ隠す。JS無効・読み込み失敗時は最初から見える */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- 26.5 代表挨拶の段組み ---------- */
/* もとは about.html に直接書いていました。直接書くとメディアクエリで
   上書きできず、スマホで右の列が21pxまで潰れて、本文が1文字ずつ
   縦に並ぶ状態になっていました。 */
.msg-grid { grid-template-columns: minmax(0, 300px) minmax(0, 1fr); align-items: start; }
@media (max-width: 860px) {
  .msg-grid { grid-template-columns: 1fr; }
  .msg-grid > .media { max-width: 240px; }
}

/* ---------- 27. トップに戻る ---------- */
.totop {
  position: fixed; left: 16px; bottom: calc(var(--dock-h) - 18px); z-index: 95;
  width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--white);
  display: grid; place-items: center;
  box-shadow: 0 6px 20px rgba(16, 16, 19, .2);
  opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), background .22s;
}
.totop.is-on { opacity: 1; pointer-events: auto; }
.totop:hover { background: var(--mint); color: var(--ink); }

/* ---------- 28. レスポンシブ ---------- */
@media (max-width: 1024px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .tile--wide { grid-column: span 2; grid-row: span 1; }
  .toc-layout { grid-template-columns: 1fr; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 4px 22px; }
  .layoutC { grid-template-columns: 84px 1fr; }
}

@media (max-width: 860px) {
  :root { --dock-h: 68px; }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phead__in { flex-direction: column; }
  .heroA__body { flex-direction: column; align-items: flex-start; gap: 26px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .news-row { grid-template-columns: 110px 1fr; }
  .spec th { width: 132px; }
  .dock__list { flex-wrap: wrap; justify-content: center; overflow: visible; row-gap: 6px; }
  .dock__list a { font-size: 13px; padding: 10px 15px; }

  /* 案C はスマホで下部の固定タブに変える */
  .layoutC { grid-template-columns: 1fr; }
  .sidenav {
    position: fixed; inset: auto 0 0; height: auto; flex-direction: row;
    justify-content: space-around; gap: 0; padding: 10px;
    border-radius: var(--r-card) var(--r-card) 0 0;
  }
  .sidenav__brand, .sidenav .chara { display: none; }
  .sidenav__links { flex-direction: row; gap: 4px; margin: 0; width: 100%; justify-content: space-around; }
  .sidenav__links a { writing-mode: horizontal-tb; font-size: 11.5px; }
  .layoutC__main { padding-bottom: 76px; }
}

@media (max-width: 560px) {
  /* ナビは1段に収める。2段だと画面の1割を占め、本文にかぶって読みにくい。
     5項目が375px幅にちょうど収まる寸法にしてあります。
     これより狭い端末では横スクロールになります。 */
  :root { --dock-h: 62px; }
  .dock { padding-inline: 10px; }
  .dock__list { flex-wrap: nowrap; overflow-x: auto; gap: 4px; }
  .dock__list a { font-size: 11px; padding: 10px 8px; }
  /* 「上へ戻る」がナビに重ならないよう、上に逃がす */
  .totop { bottom: calc(var(--dock-h) + 8px); }
  body { font-size: 15px; line-height: 1.85; }
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .board { grid-template-columns: 1fr; }
  .tile--wide, .tile--tall { grid-column: auto; grid-row: auto; }
  .purpose { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .news-row { grid-template-columns: 1fr; gap: 12px; }
  .news-row .media { max-width: 190px; }
  .spec th, .spec td { display: block; width: auto; border: 0; padding: 0; }
  .spec th { padding-top: 20px; border-top: 2px solid var(--canvas); }
  .spec tr:first-child th { border-top: 0; }
  .spec td { padding-bottom: 20px; }
  .article h2 { margin-top: 42px; }
  .chara-dock { width: 48px; }
  .slab, .dark, .marquee, .site-foot { width: calc(100% - 24px); }

}

/* ---------- 29. ユーティリティ ---------- */
.pc-only { display: inline; }
.sp-only { display: none; }
@media (max-width: 860px) {
  .pc-only { display: none; }
  .sp-only { display: inline; }
}
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0 !important; }

/* ---------- 30. 印刷 ---------- */
@media print {
  .site-head, .site-foot, .totop, .marquee, .dock, .chara-dock { display: none !important; }
  body { background: #fff; padding-bottom: 0; }
  .js .reveal { opacity: 1; transform: none; }
  .slab, .dark { margin-inline: 0; }
}

/* ============================================================
   31. ベンチマーク（mtblanc.jp）の構造を再現するための追加
   ・第一画面は全画面の黒。輪郭だけの大英字を中央に置く
   ・その上に、大きな角丸のパネルがせり上がる
   ・作品や記事は有機的な形に切り抜き、画面の端まではみ出す帯で流す
   ・キャラクターは画面の右下に常駐させる
   ============================================================ */

/* ---- 全画面の黒いヒーロー ---- */
.hero-full {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: grid; align-content: center; justify-items: center;
  background: var(--black); color: var(--on-dark);
  text-align: center;
  padding: clamp(96px, 15vh, 160px) var(--gut) clamp(130px, 20vh, 200px);
  overflow: hidden;
}
.hero-full__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* 静止画は動画が始まるまでの下敷き。動画はその上を完全に覆う */
.hero-full__media img,
.hero-full__media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
/* 2枚を重ねて、片方を再生しながらもう片方を用意し、なめらかに入れ替える */
.hero-full__media video { z-index: 1; opacity: 0; transition: opacity .9s ease; }
.hero-full__media video.is-on { opacity: 1; }
/* 暗くするのはこの覆いだけに任せる */
.hero-full__media::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)),
    radial-gradient(76% 60% at 50% 44%, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .84) 100%);
}

/* 輪郭だけの大英字。ネオン管のように光らせる */
.hero-full__en {
  color: transparent;
  -webkit-text-stroke: 1.7px rgba(255, 255, 255, .96);
  text-stroke: 1.7px rgba(255, 255, 255, .96);
  filter:
    drop-shadow(0 0 2px rgba(255, 255, 255, .95))
    drop-shadow(0 0 9px rgba(255, 255, 255, .7))
    drop-shadow(0 0 22px rgba(92, 191, 159, .75))
    drop-shadow(0 0 46px rgba(92, 191, 159, .5))
    drop-shadow(0 0 86px rgba(92, 191, 159, .3));
  animation: neon 4.2s ease-in-out infinite;
}
@keyframes neon {
  0%, 100% {
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, .95))
      drop-shadow(0 0 9px rgba(255, 255, 255, .7))
      drop-shadow(0 0 22px rgba(92, 191, 159, .75))
      drop-shadow(0 0 46px rgba(92, 191, 159, .5))
      drop-shadow(0 0 86px rgba(92, 191, 159, .3));
  }
  50% {
    filter:
      drop-shadow(0 0 2px rgba(255, 255, 255, .8))
      drop-shadow(0 0 7px rgba(255, 255, 255, .5))
      drop-shadow(0 0 16px rgba(92, 191, 159, .5))
      drop-shadow(0 0 34px rgba(92, 191, 159, .32))
      drop-shadow(0 0 64px rgba(92, 191, 159, .18));
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-full__en { animation: none; }
  /* 動きを減らす設定では動画を止め、静止画だけにする */
  .hero-full__media video { display: none; }
}
@supports not (-webkit-text-stroke: 1px red) { .hero-full__en { color: rgba(244,242,240,.4); } }
.hero-full__lead { margin-top: clamp(20px, 3vw, 34px); font-size: clamp(15px, 1.7vw, 19px); font-weight: 700; }
.hero-full__sub { margin-top: 10px; font-size: clamp(13px, 1.3vw, 15px); color: var(--on-dark-60); }
.hero-full__cue {
  position: absolute; left: 50%; bottom: calc(var(--dock-h) + 30px); transform: translateX(-50%);
  font-size: 12px; font-weight: 700; letter-spacing: .18em; color: rgba(244, 242, 240, .62);
}
.hero-full__cue span { display: inline-block; animation: bob 1.8s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) { .hero-full__cue span { animation: none; } }

/* ヒーローに重ねるヘッダー。ロゴを中央に置く */
.site-head--hero {
  position: absolute; top: 0; left: 0; right: 0; z-index: 50;
  color: var(--on-dark);
}
.site-head--hero .site-head__in { justify-content: center; position: relative; }
.site-head--hero .site-meta { position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: rgba(244,242,240,.6); }
@media (max-width: 640px) { .site-head--hero .site-meta { display: none; } }

/* ---- 黒の上にせり上がる大きな角丸パネル ---- */
.panel {
  position: relative; z-index: 2;
  /* ヒーローに重ねると第一画面の下端が隠れるため、重ねずに下に置く */
  margin-top: clamp(28px, 4vw, 56px);
  background: var(--slate); color: var(--on-dark);
  border-radius: clamp(30px, 4vw, 60px);
  width: min(100% - var(--gut) * 2, var(--max));
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 112px) clamp(44px, 7vw, 96px);
  overflow: hidden;
}
.panel .lead, .panel .small, .panel .muted { color: var(--on-dark-60); }
.panel .tag { background: var(--white); color: var(--ink); }
.panel .btn { background: var(--white); color: var(--ink); }
.panel .btn:hover { background: var(--mint); }
.panel .en-lg, .panel .en-md { color: var(--on-dark); }

/* ---- 有機的な形に切り抜いた帯 ---- */
.blob-rail {
  display: flex; gap: clamp(14px, 2vw, 28px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 8px 22px;
  margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut);
  scrollbar-width: none;
}
.blob-rail::-webkit-scrollbar { display: none; }
.blob-rail > * { flex: 0 0 min(290px, 70vw); scroll-snap-align: center; }

.blob { position: relative; display: block; transition: transform .35s var(--ease); }
.blob:hover { transform: translateY(-8px) scale(1.02); }
.blob .media { aspect-ratio: 1 / 1; border-radius: 42% 58% 56% 44% / 54% 40% 60% 46%; }
.blob:nth-child(2n) .media { border-radius: 62% 38% 40% 60% / 38% 60% 40% 62%; }
.blob:nth-child(3n) .media { border-radius: 36% 64% 58% 42% / 60% 44% 56% 40%; }
.blob:nth-child(4n) .media { border-radius: 55% 45% 38% 62% / 45% 58% 42% 55%; }
/* 文字が乗る下側だけ暗くして、白い見出しを読めるようにする */
.blob .media::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,0,.78) 4%, rgba(0,0,0,.34) 40%, transparent 66%);
}
.blob__body { position: absolute; z-index: 2; left: 9%; right: 9%; bottom: 11%; text-align: center; }
.blob__title {
  font-size: 14.5px; font-weight: 700; line-height: 1.5; color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,.75), 0 0 3px rgba(0,0,0,.6);
}
.blob__meta { display: flex; gap: 6px; justify-content: center; margin-top: 8px; flex-wrap: wrap; }
.blob__meta .date, .blob__meta .tago { font-size: 11px; padding: 2px 10px; }

/* ---- 画面の右下に常駐するキャラクター ---- */
.chara-dock {
  position: fixed; right: 14px; bottom: calc(var(--dock-h) + 16px); z-index: 96;
  display: flex; flex-direction: column; gap: 8px;
  pointer-events: none;
}
.chara-dock span {
  width: 76px; height: 76px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 16, 19, .24);
  animation: floaty 4.5s ease-in-out infinite;
}
.chara-dock span:nth-child(1) { background: var(--sun); }
.chara-dock span:nth-child(2) { background: var(--mint); animation-delay: -2.2s; }
.chara-dock img { width: 100%; height: 100%; object-fit: cover; display: block; }
@keyframes floaty { 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .chara-dock span { animation: none; } }
@media (max-width: 560px) {
  .chara-dock { right: 10px; bottom: calc(var(--dock-h) + 10px); }
  .chara-dock span { width: 60px; height: 60px; }
  .chara-dock span:nth-child(2) { display: none; }
}

/* 常駐キャラと「上へ戻る」が重ならないようにする */
.totop { left: 16px; right: auto; }
