/* =========================================================
   SKOFFICE Web制作サイト — トップページだけの見た目（2026-11-29 作り直し）
   動きそのものは /assets/css/motion.css。ここは並べ方と、16の見本の中身。
   ========================================================= */

/* ---------- 数字の帯（04） ---------- */
.nband { background: var(--ink); color: var(--paper); padding: clamp(56px, 7vw, 96px) 0; position: relative; overflow: hidden; }
.nband::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 85% 0%, rgba(47, 91, 255, .22), transparent 60%), radial-gradient(50% 100% at 0% 100%, rgba(188, 211, 255, .12), transparent 60%); pointer-events: none; }
.nband__grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-inv); border: 1px solid var(--line-inv); border-radius: var(--radius); overflow: hidden; }
.nb { background: var(--ink); padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; align-content: start; }
.nb p { margin: 0; }
.nb__v { white-space: nowrap; font-weight: 800; font-size: clamp(48px, 5.4vw, 88px); line-height: .9; letter-spacing: -.03em; }
.nb__v small { font-family: var(--font-jp); font-size: .24em; font-weight: 700; letter-spacing: .04em; margin-left: 6px; color: var(--blue); }
.nb__l { font-weight: 700; font-size: 15px; margin-top: 6px !important; }
.nb__f { font-size: 12.5px; color: rgba(247, 245, 241, .6); line-height: 1.7; }
@media (max-width: 900px) { .nband__grid { grid-template-columns: 1fr 1fr; } }

/* ---------- 04 制作事例（12 ＋ 08 ＋ 02） ---------- */
.cases { min-width: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 1.8vw, 24px); }
.case { min-width: 0; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.case__img { position: relative; aspect-ratio: 16 / 10; background: var(--ink); display: block; }
.case__img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.case__img::after { content: "LIVE"; position: absolute; right: 12px; top: 12px; font-family: var(--font-en); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; padding: 3px 9px; border-radius: 999px; background: rgba(17,17,19,.78); color: #fff; }
.case__body { display: grid; gap: 4px; padding: 18px 20px 22px; }
.case__kind { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.case__body b { font-size: 18px; font-weight: 900; }
.case__body > span:last-child { font-size: 13.5px; color: #3b3934; line-height: 1.7; }
.case__body::after { content: "動くページを開く ↗"; margin-top: 8px; font-size: 12.5px; font-weight: 700; justify-self: start; border-bottom: 1.5px solid currentColor; }
@media (max-width: 1000px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cases { grid-template-columns: 1fr; } }

/* ---------- 05 動きのメニュー（16の見本） ---------- */
.mms { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 18px); }
.mm { min-width: 0; display: flex; flex-direction: column; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; cursor: pointer; font: inherit; color: inherit; }
.mm:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.mm__stage { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; background: var(--paper); overflow: hidden; }
.mm__cap { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: center; padding: 14px 6px 8px; }
.mm__no { font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 2px 9px; border-radius: 999px; background: var(--cobalt); color: #fff; }
.mm__name { font-weight: 900; font-size: 16px; line-height: 1.4; }
.mm__ask { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); line-height: 1.7; }
.mm-note { margin-top: 22px; font-size: 13px; color: var(--muted); max-width: 52em; }
.mm:not(.is-in) .mm__stage *, .mm:not(.is-in) .mm__stage { animation-play-state: paused !important; }
@media (max-width: 1100px) { .mms { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .mms { grid-template-columns: 1fr 1fr; } .mm__name { font-size: 14.5px; } .mm__ask { font-size: 11.5px; } }

/* 見本の部品（色は青の濃淡だけ） */
.mm__stage i, .mm__stage u { display: block; position: absolute; text-decoration: none; }

/* 01 フェードアップ */
.d-fade .l1 { left: 18%; right: 18%; top: 22%; height: 7%; border-radius: 6px; background: var(--steel); }
.d-fade .b1 { left: 18%; right: 18%; top: 38%; height: 26%; border-radius: 10px; background: var(--cobalt); opacity: 0; }
.d-fade .b2 { left: 26%; right: 26%; top: 70%; height: 7%; border-radius: 6px; background: var(--blue); opacity: 0; }
.mm.is-play .d-fade .b1 { animation: dFade 3.4s var(--ease) infinite; }
.mm.is-play .d-fade .b2 { animation: dFade 3.4s var(--ease) .18s infinite; }
@keyframes dFade { 0% { opacity: 0; transform: translateY(22px); } 28%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* 02 スタッガー */
.d-stag { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8%; padding: 14% 16%; }
.d-stag i { position: static !important; border-radius: 10px; background: var(--cobalt); opacity: 0; }
.d-stag i:nth-child(n+4) { background: var(--powder); }
.mm.is-play .d-stag i { animation: dStag 3.6s var(--ease) infinite; animation-delay: calc(var(--i) * .14s); }
@keyframes dStag { 0% { opacity: 0; transform: translateY(16px) scale(.85); } 18%, 78% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: none; } }

/* 03 パララックス */
.d-para { background: var(--ice); }
.d-para .bg { left: -10%; right: -10%; top: 10%; bottom: -30%; background: linear-gradient(160deg, transparent 52%, var(--powder) 52.4%) , linear-gradient(200deg, transparent 58%, var(--blue) 58.4%); }
.d-para .bg u { width: 18%; aspect-ratio: 1; border-radius: 50%; background: var(--cobalt); left: 62%; top: 4%; opacity: .85; }
.d-para .fg { left: 22%; right: 22%; top: 46%; height: 30%; border-radius: 10px; background: var(--white); box-shadow: 0 10px 24px -12px rgba(17,17,19,.35); }
.mm.is-play .d-para .bg { animation: dParaBg 4s ease-in-out infinite alternate; }
.mm.is-play .d-para .fg { animation: dParaFg 4s ease-in-out infinite alternate; }
@keyframes dParaBg { from { transform: translateY(6%); } to { transform: translateY(-6%); } }
@keyframes dParaFg { from { transform: translateY(70%); } to { transform: translateY(-110%); } }

/* 04 カウントアップ */
.d-count { display: grid !important; place-content: center; text-align: center; gap: 2px; }
.d-count small { font-family: var(--font-en); font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.d-count b { font-size: clamp(38px, 4.2vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--cobalt); }
.d-count em { font-style: normal; font-size: .5em; margin-left: 2px; }

/* 05 マーキー */
.d-mq { display: flex !important; align-items: center; }
.dmq { display: flex; gap: 10px; width: max-content; }
.dmq i { position: static !important; font-style: normal; font-family: var(--font-en); font-weight: 800; font-size: 12px; letter-spacing: .08em; padding: 8px 14px; border-radius: 8px; background: var(--white); color: var(--muted); border: 1px solid var(--line); }
.dmq i.on { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.mm.is-play .dmq { animation: dMq 6s linear infinite; }
@keyframes dMq { to { transform: translateX(-50%); } }

/* 06 スプリットテキスト */
.d-split { display: grid !important; place-items: center; }
.d-split b { font-size: clamp(17px, 1.75vw, 24px); font-weight: 900; color: var(--ink); white-space: nowrap; }
.d-split b i { position: static !important; display: inline-block !important; font-style: normal; opacity: 0; }
.mm.is-play .d-split b i { animation: dSplit 3.6s var(--ease) infinite; animation-delay: calc(var(--i) * .07s); }
@keyframes dSplit { 0% { opacity: 0; transform: translateY(.7em) rotate(8deg); } 16%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }

/* 07 タイプライター */
.d-type { display: grid !important; place-items: center; }
.d-type b { font-size: clamp(17px, 1.7vw, 21px); font-weight: 900; color: var(--ink); }
.d-type .type__caret { background: var(--cobalt); }

/* 08 ホバーで浮く */
.d-lift { display: flex !important; justify-content: center; align-items: center; gap: 7%; }
.d-lift i { position: relative !important; width: 22%; aspect-ratio: 3 / 4; border-radius: 8px; background: var(--white); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.d-lift i::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 40%; border-radius: 8px 8px 0 0; background: var(--ice); }
.d-lift i.on { border-color: var(--cobalt); }
.d-lift u { width: 9px; height: 9px; border-radius: 50%; background: var(--ink); left: 62%; top: 72%; }
.mm.is-play .d-lift i.on { animation: dLift 3s var(--ease) infinite; }
.mm.is-play .d-lift u { animation: dLiftCur 3s var(--ease) infinite; }
@keyframes dLift { 0%, 25% { transform: none; box-shadow: none; } 40%, 80% { transform: translateY(-12%); box-shadow: 0 16px 22px -12px rgba(17,17,19,.45); } 95%, 100% { transform: none; box-shadow: none; } }
@keyframes dLiftCur { 0% { left: 80%; top: 86%; } 30%, 82% { left: 52%; top: 60%; } 100% { left: 80%; top: 86%; } }
@media (hover: hover) { .mm:hover .d-lift i:not(.on) { transform: translateY(-6%); } }

/* 09 シャイン */
.d-shine { display: grid !important; place-items: center; }
.d-shine b { font-size: 14px; font-weight: 900; letter-spacing: .08em; padding: 14px 26px; border-radius: 999px; background: var(--cobalt); color: #fff; box-shadow: 0 10px 20px -10px rgba(47, 91, 255, .7); }
.d-shine b.shine::after { animation-duration: 2.2s; }
.mm:not(.is-in) .d-shine b.shine::after { animation-play-state: paused; }

/* 10 スティッキーヘッダー */
.d-head .pg { position: absolute; inset: 0; display: grid; gap: 8px; align-content: start; padding: 30% 14% 0; }
.d-head .pg i { position: static !important; height: 12px; border-radius: 4px; background: var(--steel); }
.d-head .pg i:nth-child(3n) { width: 70%; }
.d-head .pg i:nth-child(4) { height: 34px; background: var(--blue); }
.d-head .hd { left: 0; right: 0; top: 0; height: 20%; background: var(--ink); border-radius: 0; z-index: 1; }
.d-head .hd u { left: 8%; top: 50%; width: 18%; height: 18%; margin-top: -2%; border-radius: 3px; background: var(--paper); translate: 0 -50%; }
.mm.is-play .d-head .pg { animation: dHeadPg 4s ease-in-out infinite; }
.mm.is-play .d-head .hd { animation: dHead 4s ease-in-out infinite; }
@keyframes dHeadPg { 0%, 12% { transform: none; } 55%, 85% { transform: translateY(-34%); } 100% { transform: none; } }
@keyframes dHead { 0%, 18% { left: 0; right: 0; top: 0; height: 20%; border-radius: 0; } 45%, 82% { left: 10%; right: 10%; top: 5%; height: 13%; border-radius: 99px; } 100% { left: 0; right: 0; top: 0; height: 20%; border-radius: 0; } }

/* 11 読了バー */
.d-read .bar { left: 0; right: 0; top: 0; height: 5px; background: var(--cobalt); transform-origin: 0 50%; transform: scaleX(0); z-index: 1; }
.d-read .pg { position: absolute; inset: 0; display: grid; gap: 9px; align-content: start; padding: 14% 14% 0; }
.d-read .pg i { position: static !important; height: 9px; border-radius: 4px; background: var(--steel); }
.d-read .pg i:nth-child(4n) { width: 62%; }
.mm.is-play .d-read .bar { animation: dRead 4s linear infinite; }
.mm.is-play .d-read .pg { animation: dReadPg 4s linear infinite; }
@keyframes dRead { 0% { transform: scaleX(0); } 85%, 100% { transform: scaleX(1); } }
@keyframes dReadPg { 0% { transform: none; } 85%, 100% { transform: translateY(-46%); } }

/* 12 ケンバーンズ */
.d-kb img { width: 100%; height: 100%; object-fit: cover; }

/* 13 アコーディオン */
.d-acc { display: grid !important; gap: 7px; align-content: center; padding: 0 9%; }
.d-acc .r { position: relative; display: grid; grid-template-rows: auto 0fr; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 7px 12px; }
.d-acc .r b { font-family: var(--font-en); font-size: 11.5px; font-weight: 800; }
.d-acc .r > i { right: 10px; top: 9px; width: 10px; height: 10px; }
.d-acc .r > i::before, .d-acc .r > i::after { content: ""; position: absolute; left: 0; right: 0; top: 4.25px; height: 1.5px; background: var(--cobalt); }
.d-acc .r > i::after { transform: rotate(90deg); transition: transform .4s; }
.d-acc .a { overflow: hidden; display: grid; gap: 5px; align-content: start; }
.d-acc .a u { position: static !important; height: 6px; border-radius: 3px; background: var(--steel); margin-top: 5px; }
.d-acc .a u + u { width: 70%; margin-top: 0; }
.mm.is-play .d-acc .r1 { animation: dAcc 3.6s var(--ease) infinite; }
.mm.is-play .d-acc .r1 > i::after { animation: dAccI 3.6s var(--ease) infinite; }
@keyframes dAcc { 0%, 15% { grid-template-rows: auto 0fr; } 35%, 80% { grid-template-rows: auto 1fr; padding-bottom: 10px; } 100% { grid-template-rows: auto 0fr; } }
@keyframes dAccI { 0%, 15% { transform: rotate(90deg); } 35%, 80% { transform: rotate(0deg); } 100% { transform: rotate(90deg); } }

/* 14 スライダー */
.d-sl { display: grid !important; align-content: center; gap: 10px; padding: 0 12%; }
.d-sl .vw { overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 8; }
.d-sl .tr { display: flex; height: 100%; }
.d-sl .tr i { position: static !important; flex: 0 0 100%; height: 100%; }
.d-sl .tr i:nth-child(1) { background: var(--cobalt); }
.d-sl .tr i:nth-child(2) { background: var(--powder); }
.d-sl .tr i:nth-child(3) { background: var(--peri); }
.d-sl .dots { display: flex; justify-content: center; gap: 6px; }
.d-sl .dots i { position: static !important; width: 6px; height: 6px; border-radius: 50%; background: var(--steel); }
.mm.is-play .d-sl .tr { animation: dSl 6s var(--ease) infinite; }
.mm.is-play .d-sl .dots i:nth-child(1) { animation: dSlD1 6s infinite; }
.mm.is-play .d-sl .dots i:nth-child(2) { animation: dSlD2 6s infinite; }
.mm.is-play .d-sl .dots i:nth-child(3) { animation: dSlD3 6s infinite; }
@keyframes dSl { 0%, 25% { transform: none; } 33%, 58% { transform: translateX(-100%); } 66%, 91% { transform: translateX(-200%); } 100% { transform: none; } }
@keyframes dSlD1 { 0%, 29%, 96%, 100% { background: var(--ink); width: 16px; border-radius: 3px; } 30%, 95% { background: var(--steel); } }
@keyframes dSlD2 { 0%, 29% { background: var(--steel); } 30%, 62% { background: var(--ink); width: 16px; border-radius: 3px; } 63%, 100% { background: var(--steel); } }
@keyframes dSlD3 { 0%, 62% { background: var(--steel); } 63%, 95% { background: var(--ink); width: 16px; border-radius: 3px; } 96%, 100% { background: var(--steel); } }

/* 15 ページ遷移 */
.d-pt .pa, .d-pt .pb { position: absolute; inset: 0; display: grid; gap: 8px; align-content: start; padding: 16% 14% 0; }
.d-pt .pa { background: var(--paper); }
.d-pt .pb { background: var(--white); opacity: 0; }
.d-pt .pa u, .d-pt .pb u { position: static !important; height: 10px; border-radius: 4px; background: var(--steel); }
.d-pt .pa u:first-child { height: 26px; background: var(--blue); }
.d-pt .pb u:first-child { height: 34px; width: 60%; background: var(--peri); }
.d-pt .b1, .d-pt .b2 { inset: 0; transform: translateY(101%); }
.d-pt .b1 { background: var(--blue); }
.d-pt .b2 { background: var(--cobalt); }
.mm.is-play .d-pt .b1 { animation: dPt 3.6s cubic-bezier(.7, 0, .25, 1) infinite; }
.mm.is-play .d-pt .b2 { animation: dPt 3.6s cubic-bezier(.7, 0, .25, 1) .08s infinite; }
.mm.is-play .d-pt .pb { animation: dPtB 3.6s steps(1) infinite; }
@keyframes dPt { 0%, 20% { transform: translateY(101%); } 38%, 46% { transform: none; } 64%, 100% { transform: translateY(-101%); } }
@keyframes dPtB { 0%, 41% { opacity: 0; } 42%, 96% { opacity: 1; } 97%, 100% { opacity: 0; } }

/* 16 ラインアニメーション */
.d-line svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-line path { stroke: var(--cobalt); stroke-width: 4; }
.d-line .ln { stroke-dasharray: 1; stroke-dashoffset: 1; }
.d-line .hd { opacity: 0; }
.mm.is-play .d-line .ln { animation: dLine 3.6s var(--ease) infinite; }
.mm.is-play .d-line .hd { animation: dLineH 3.6s infinite; }
@keyframes dLine { 0% { stroke-dashoffset: 1; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes dLineH { 0%, 40% { opacity: 0; } 46%, 85% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- スマホでの見本の文字（2026-11-29 確認後の手直し） ---------- */
@media (max-width: 760px) {
  .mm { padding: 8px; }
  .mm__cap { grid-template-columns: 1fr; gap: 4px; padding: 10px 4px 6px; }
  .mm__no { justify-self: start; }
  .mm__name { font-size: 13.5px; }
  .d-split b { font-size: 15px; }
  .d-type b { font-size: 14px; }
  .d-acc { gap: 5px; padding: 0 7%; }
  .d-acc .r { padding: 5px 9px; }
  .d-acc .r b { font-size: 10px; }
  .d-acc .r:nth-child(3) { display: none; }
  .d-shine b { font-size: 12px; padding: 11px 18px; }
  .d-count b { font-size: 34px; }
}
