/*
  site/assets/demo.css — 押して進むデモ（site/demo/）だけが読む CSS。tools/site_media.py が書く（手で直さない）。
  デモの言葉は tools/site_media.py の DEMOS を直して python3 tools/site_media.py --only pages。写し直すときは --only demo。

  形: div.dm > input.dm-r（radio。同じ name・1 つに checked・aria-label）× 手順の数 ＋ div.dm-bar（ol.dm-dots > li > label[for]・p.dm-kbd）
       ＋ div.dm-steps > div.dm-step.dm-<デモ>-<手順> × 手順の数（figure.dm-shot > picture ＋ label.dm-hot ／ div.dm-text > p.dm-num・h3・p・.dm-nav）
  押して進む: label の for で次の radio を選び、:checked ~ で手順を出す（JavaScript なし）。キーボードは radio を矢印キーで動かす
  （選んでいる点に枠）。「ここを押す」の波は手順を出すたびに 3 回だけ（5 秒まで。動き続けない）。動きを減らす設定では、手順を出す動きと波を出さない。
  印刷では全部の手順を出す。
  「ここを押す」の場所（.dm-<デモ>-<手順> .dm-hot）は、写したときの要素の場所（getBoundingClientRect）を写しの大きさの % にしたもの。
  デモの一覧のカード: ul.dm-cards（.three）> li > a.dm-card > picture ＋ div.dm-card-b（span.dm-card-k・h3・p・span.more）
*/
/* site-media: {"demos":{"reply":[{"n":1,"w":1192,"h":900,"hot":[2.6,58.74,22.99,10.86]},{"n":2,"w":1192,"h":900,"hot":[41.86,87.27,4.53,4.89]},{"n":3,"w":1192,"h":900,"hot":[45.05,58.45,11.5,5.78]},{"n":4,"w":1192,"h":900,"hot":[54.01,91.49,16.54,5.78]},{"n":5,"w":1192,"h":900,"hot":[45.03,78.76,16.54,5.78]},{"n":6,"w":1192,"h":900}],"broadcast":[{"n":1,"w":1192,"h":900,"hot":[85.3,6.67,12.52,5.78]},{"n":2,"w":1192,"h":900,"hot":[2.18,67.35,16.31,5.78]},{"n":3,"w":1192,"h":900,"hot":[43.61,72.67,17.97,5.78]},{"n":4,"w":1192,"h":900,"hot":[75.49,80.59,16.28,5.78]},{"n":5,"w":1192,"h":900,"hot":[76.84,91.78,14.94,5.78]},{"n":6,"w":1192,"h":900,"hot":[76.78,67.03,15.0,5.78]},{"n":7,"w":1192,"h":900,"hot":[66.53,66.99,29.7,6.67]},{"n":8,"w":1192,"h":900,"hot":[50.44,66.76,11.13,5.78]},{"n":9,"w":1192,"h":900}],"friends":[{"n":1,"w":1192,"h":900,"hot":[10.07,75.21,5.05,3.75]},{"n":2,"w":1192,"h":900,"hot":[86.44,44.27,12.39,4.89]},{"n":3,"w":1192,"h":900,"hot":[50.02,79.92,11.56,5.78]},{"n":4,"w":1192,"h":900,"hot":[95.13,1.33,3.69,4.89]},{"n":5,"w":1192,"h":900,"hot":[18.79,12.49,12.27,6.22]},{"n":6,"w":1192,"h":900,"hot":[7.05,49.72,31.73,3.75]},{"n":7,"w":1192,"h":900}],"workflow":[{"n":1,"w":1192,"h":900,"hot":[80.28,6.67,17.54,5.78]},{"n":2,"w":1192,"h":900,"hot":[29.42,20.55,20.36,15.86]},{"n":3,"w":1192,"h":900,"hot":[49.82,81.05,20.15,5.78]},{"n":4,"w":1192,"h":900,"hot":[23.33,46.4,18.39,10.41]},{"n":5,"w":1192,"h":900,"hot":[18.73,27.44,7.55,4.89]},{"n":6,"w":1192,"h":900,"hot":[82.04,6.67,12.42,5.78]},{"n":7,"w":1192,"h":900,"hot":[49.16,70.13,12.42,5.78]},{"n":8,"w":1192,"h":900}],"richmenu":[{"n":1,"w":1192,"h":900,"hot":[75.35,6.67,19.11,5.78]},{"n":2,"w":1192,"h":900,"hot":[3.94,26.43,11.78,14.29]},{"n":3,"w":1192,"h":900,"hot":[16.0,19.67,18.77,5.78]},{"n":4,"w":1192,"h":900,"hot":[50.05,81.85,11.53,5.78]},{"n":5,"w":1192,"h":900,"hot":[73.01,91.8,18.77,5.78]},{"n":6,"w":1192,"h":900,"hot":[47.9,59.7,13.68,5.78]},{"n":7,"w":1192,"h":900}]},"videos":{"reply":{"w":1192,"h":900,"secs":19},"broadcast":{"w":1192,"h":900,"secs":29},"workflow":{"w":1192,"h":900,"secs":20},"richmenu":{"w":1192,"h":900,"secs":29},"analytics":{"w":1192,"h":900,"secs":21}}} */

.dm { position: relative; }
.dm-r { position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.dm-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 18px; }
.dm-dots { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dm-dots label { position: relative; display: block; width: 30px; height: 26px; border-radius: 8px; cursor: pointer; }
.dm-dots label::before {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--line);
}
.dm-dots label:hover::before { background: var(--ink-3); }
.dm-kbd { margin: 0; color: var(--ink-3); font-size: 13px; line-height: 1.7; }
kbd {
  display: inline-block;
  min-width: 1.8em;
  padding: 0 5px;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--ink-2);
  font-family: inherit;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}
.dm-step { display: none; gap: 22px; }
@media (min-width: 1068px) {
  .dm-step { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
}
.dm-shot {
  position: relative;
  margin: 0;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-l);
}
.sec-soft .dm-shot { box-shadow: var(--shadow-m); }
.dm-shot picture, .dm-shot img { display: block; width: 100%; height: auto; border-radius: 13px; }
.dm-hot {
  position: absolute;
  z-index: 2;
  display: block;
  min-width: 16px;
  min-height: 16px;
  border-radius: 9px;
  box-shadow: 0 0 0 3px var(--gold), 0 0 0 7px color-mix(in srgb, var(--gold) 30%, transparent);
  cursor: pointer;
}
.dm-hot:hover { box-shadow: 0 0 0 3px var(--gold-ink), 0 0 0 8px color-mix(in srgb, var(--gold) 45%, transparent); }
.dm-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 11px);
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #1d1d1f;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.6;
  white-space: nowrap;
  box-shadow: var(--shadow-m);
}
.dm-hot.dm-tip-b .dm-tip { top: calc(100% + 11px); bottom: auto; }
.dm-hot.dm-tip-l .dm-tip { left: 0; transform: none; }
.dm-hot.dm-tip-r .dm-tip { left: auto; right: 0; transform: none; }
@media (max-width: 733px) {
  .dm-tip { font-size: 11px; padding: 1px 8px; }
}
.dm-text { min-width: 0; }
.dm-num { margin: 0; color: var(--brand-ink); font-size: 14px; font-weight: 800; letter-spacing: 0.04em; }
.dm-text h3 { margin-top: 6px; font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.7rem); line-height: 1.35; }
.dm-text > p:not(.dm-num) { margin-top: 12px; color: var(--ink-2); font-size: 16px; line-height: 1.8; }
.dm-do {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}
.dm-do svg { width: 16px; height: 16px; flex: none; }
.dm-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.dm-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
}
.dm-btn:hover { border-color: var(--ink-3); }
.dm-btn.dm-prev svg { transform: scaleX(-1); }
.dm-btn.dm-next { border-color: var(--brand); background: var(--brand); color: var(--on-brand); }
.dm-btn svg { width: 16px; height: 16px; }
.dm-links { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.dm-links .btn { width: fit-content; }
.dm-note { margin-top: 20px; color: var(--ink-3); font-size: 13px; line-height: 1.7; text-align: center; }
.dm-cards { display: grid; gap: 22px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 734px) { .dm-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1068px) { .dm-cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dm-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-l);
  background: var(--bg-elev);
  box-shadow: var(--shadow-m);
  color: inherit;
}
.dm-card:hover { text-decoration: none; border-color: var(--line); }
.sec-soft .dm-card { box-shadow: none; }
.dm-card picture { display: block; border-bottom: 1px solid var(--line-soft); }
.dm-card img { display: block; width: 100%; height: auto; }
.dm-card-b { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 18px 20px 20px; }
.dm-card-k { color: var(--brand-ink); font-size: 13px; font-weight: 800; letter-spacing: 0.04em; }
.dm-card h3 { font-size: 19px; line-height: 1.4; }
.dm-card p { margin: 0; color: var(--ink-3); font-size: 14.5px; line-height: 1.7; }
.dm-card .more { margin-top: auto; padding-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .dm-step { animation: dm-in 0.35s ease both; }
  .dm-hot::after {
    content: "";
    position: absolute;
    inset: -3px;
    border: 3px solid var(--gold);
    border-radius: 11px;
    animation: dm-pulse 1.6s ease-out 3;
    pointer-events: none;
  }
}
@keyframes dm-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dm-pulse { 0% { opacity: 0.9; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.3); } }
@media print {
  .dm-step { display: grid !important; margin-bottom: 32px; break-inside: avoid; }
  .dm-bar, .dm-hot, .dm-nav { display: none !important; }
}

/* 手順を出す（:checked）・済んだ点の色・いまの点・キーボードで選んでいる点 */
.dm-r:nth-of-type(1):checked ~ .dm-steps > .dm-step:nth-of-type(1),
.dm-r:nth-of-type(2):checked ~ .dm-steps > .dm-step:nth-of-type(2),
.dm-r:nth-of-type(3):checked ~ .dm-steps > .dm-step:nth-of-type(3),
.dm-r:nth-of-type(4):checked ~ .dm-steps > .dm-step:nth-of-type(4),
.dm-r:nth-of-type(5):checked ~ .dm-steps > .dm-step:nth-of-type(5),
.dm-r:nth-of-type(6):checked ~ .dm-steps > .dm-step:nth-of-type(6),
.dm-r:nth-of-type(7):checked ~ .dm-steps > .dm-step:nth-of-type(7),
.dm-r:nth-of-type(8):checked ~ .dm-steps > .dm-step:nth-of-type(8),
.dm-r:nth-of-type(9):checked ~ .dm-steps > .dm-step:nth-of-type(9) { display: grid; }
.dm-r:nth-of-type(1):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+1) label::before,
.dm-r:nth-of-type(2):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+2) label::before,
.dm-r:nth-of-type(3):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+3) label::before,
.dm-r:nth-of-type(4):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+4) label::before,
.dm-r:nth-of-type(5):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+5) label::before,
.dm-r:nth-of-type(6):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+6) label::before,
.dm-r:nth-of-type(7):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+7) label::before,
.dm-r:nth-of-type(8):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+8) label::before,
.dm-r:nth-of-type(9):checked ~ .dm-bar .dm-dots > li:nth-of-type(-n+9) label::before { background: var(--brand); }
.dm-r:nth-of-type(1):checked ~ .dm-bar .dm-dots > li:nth-of-type(1) label::before,
.dm-r:nth-of-type(2):checked ~ .dm-bar .dm-dots > li:nth-of-type(2) label::before,
.dm-r:nth-of-type(3):checked ~ .dm-bar .dm-dots > li:nth-of-type(3) label::before,
.dm-r:nth-of-type(4):checked ~ .dm-bar .dm-dots > li:nth-of-type(4) label::before,
.dm-r:nth-of-type(5):checked ~ .dm-bar .dm-dots > li:nth-of-type(5) label::before,
.dm-r:nth-of-type(6):checked ~ .dm-bar .dm-dots > li:nth-of-type(6) label::before,
.dm-r:nth-of-type(7):checked ~ .dm-bar .dm-dots > li:nth-of-type(7) label::before,
.dm-r:nth-of-type(8):checked ~ .dm-bar .dm-dots > li:nth-of-type(8) label::before,
.dm-r:nth-of-type(9):checked ~ .dm-bar .dm-dots > li:nth-of-type(9) label::before { left: 0; right: 0; background: var(--gold); }
.dm-r:nth-of-type(1):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(1) label,
.dm-r:nth-of-type(2):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(2) label,
.dm-r:nth-of-type(3):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(3) label,
.dm-r:nth-of-type(4):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(4) label,
.dm-r:nth-of-type(5):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(5) label,
.dm-r:nth-of-type(6):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(6) label,
.dm-r:nth-of-type(7):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(7) label,
.dm-r:nth-of-type(8):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(8) label,
.dm-r:nth-of-type(9):focus-visible ~ .dm-bar .dm-dots > li:nth-of-type(9) label { outline: 3px solid var(--brand); outline-offset: 2px; }

/* 「ここを押す」の場所（写しの大きさの %） */
.dm-reply-1 .dm-hot { left: 2.6%; top: 58.74%; width: 22.99%; height: 10.86%; }
.dm-reply-2 .dm-hot { left: 41.86%; top: 87.27%; width: 4.53%; height: 4.89%; }
.dm-reply-3 .dm-hot { left: 45.05%; top: 58.45%; width: 11.5%; height: 5.78%; }
.dm-reply-4 .dm-hot { left: 54.01%; top: 91.49%; width: 16.54%; height: 5.78%; }
.dm-reply-5 .dm-hot { left: 45.03%; top: 78.76%; width: 16.54%; height: 5.78%; }
.dm-broadcast-1 .dm-hot { left: 85.3%; top: 6.67%; width: 12.52%; height: 5.78%; }
.dm-broadcast-2 .dm-hot { left: 2.18%; top: 67.35%; width: 16.31%; height: 5.78%; }
.dm-broadcast-3 .dm-hot { left: 43.61%; top: 72.67%; width: 17.97%; height: 5.78%; }
.dm-broadcast-4 .dm-hot { left: 75.49%; top: 80.59%; width: 16.28%; height: 5.78%; }
.dm-broadcast-5 .dm-hot { left: 76.84%; top: 91.78%; width: 14.94%; height: 5.78%; }
.dm-broadcast-6 .dm-hot { left: 76.78%; top: 67.03%; width: 15.0%; height: 5.78%; }
.dm-broadcast-7 .dm-hot { left: 66.53%; top: 66.99%; width: 29.7%; height: 6.67%; }
.dm-broadcast-8 .dm-hot { left: 50.44%; top: 66.76%; width: 11.13%; height: 5.78%; }
.dm-friends-1 .dm-hot { left: 10.07%; top: 75.21%; width: 5.05%; height: 3.75%; }
.dm-friends-2 .dm-hot { left: 86.44%; top: 44.27%; width: 12.39%; height: 4.89%; }
.dm-friends-3 .dm-hot { left: 50.02%; top: 79.92%; width: 11.56%; height: 5.78%; }
.dm-friends-4 .dm-hot { left: 95.13%; top: 1.33%; width: 3.69%; height: 4.89%; }
.dm-friends-5 .dm-hot { left: 18.79%; top: 12.49%; width: 12.27%; height: 6.22%; }
.dm-friends-6 .dm-hot { left: 7.05%; top: 49.72%; width: 31.73%; height: 3.75%; }
.dm-workflow-1 .dm-hot { left: 80.28%; top: 6.67%; width: 17.54%; height: 5.78%; }
.dm-workflow-2 .dm-hot { left: 29.42%; top: 20.55%; width: 20.36%; height: 15.86%; }
.dm-workflow-3 .dm-hot { left: 49.82%; top: 81.05%; width: 20.15%; height: 5.78%; }
.dm-workflow-4 .dm-hot { left: 23.33%; top: 46.4%; width: 18.39%; height: 10.41%; }
.dm-workflow-5 .dm-hot { left: 18.73%; top: 27.44%; width: 7.55%; height: 4.89%; }
.dm-workflow-6 .dm-hot { left: 82.04%; top: 6.67%; width: 12.42%; height: 5.78%; }
.dm-workflow-7 .dm-hot { left: 49.16%; top: 70.13%; width: 12.42%; height: 5.78%; }
.dm-richmenu-1 .dm-hot { left: 75.35%; top: 6.67%; width: 19.11%; height: 5.78%; }
.dm-richmenu-2 .dm-hot { left: 3.94%; top: 26.43%; width: 11.78%; height: 14.29%; }
.dm-richmenu-3 .dm-hot { left: 16.0%; top: 19.67%; width: 18.77%; height: 5.78%; }
.dm-richmenu-4 .dm-hot { left: 50.05%; top: 81.85%; width: 11.53%; height: 5.78%; }
.dm-richmenu-5 .dm-hot { left: 73.01%; top: 91.8%; width: 18.77%; height: 5.78%; }
.dm-richmenu-6 .dm-hot { left: 47.9%; top: 59.7%; width: 13.68%; height: 5.78%; }
