/* =========================================================
   SKOFFICE Web制作サイト — web.css
   共通の style.css の後に読む。Web制作サイトだけで使う部品。
   色は style.css の変数（白黒＋青）だけを使う。
   ========================================================= */

/* 「デザインサンプル」の札 */
.sample-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); line-height: 1.6; }
.sample-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }

/* 注意書きの枠 */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--cobalt); background: var(--white); border-radius: 10px; padding: 16px 20px; font-size: 14px; color: #3b3934; line-height: 1.8; }
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }

/* 見本（画像） */
.samples { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.smp { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.smp__img { position: relative; background: var(--paper-2); overflow: hidden; aspect-ratio: 1200 / 628; }
.smp__img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.smp__img--tall { aspect-ratio: 4 / 5; }
.smp__img--phone { aspect-ratio: 4 / 5; display: grid; place-items: start center; padding: 18px 0 0; background: var(--ink); }
.smp__img--phone img { width: auto; max-width: 62%; height: auto; object-fit: initial; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 6px var(--ink-3); }
.smp__img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(180deg, rgba(17,17,19,0), rgba(17,17,19,.18)); pointer-events: none; }
.smp__img .sample-badge { position: absolute; left: 12px; top: 12px; z-index: 1; }
.smp__body { padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 8px; }
.smp__kind { margin: 0; font-family: var(--font-en); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.smp h3 { margin: 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: 900; line-height: 1.5; }
.smp__note { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.75; }
.smp__open { justify-self: start; margin-top: 4px; font-size: 13.5px; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }

/* 見本（ショート動画） */
.shorts { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.6vw, 22px); }
.short { display: grid; gap: 10px; align-content: start; }
.short__frame { position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden; background: var(--ink); }
.short__frame video { width: 100%; height: 100%; object-fit: cover; }
.short__frame .sample-badge { position: absolute; left: 10px; bottom: 10px; z-index: 1; pointer-events: none; }
.short h3 { margin: 0; font-size: 16px; font-weight: 900; line-height: 1.5; }
.short p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.7; }

/* サービスの各章 */
.svc-detail .split { align-items: start; }
.svc-detail .sec__title { margin-bottom: 0; }
.svc-points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.svc-points li { padding: 12px 0 12px 26px; border-bottom: 1px solid var(--line); position: relative; font-size: 15px; }
.svc-points li::before { content: ""; position: absolute; left: 4px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: inset 0 0 0 2px var(--ink); }
.svc-for { margin-top: 22px; font-size: 14px; color: #3b3934; }
.svc-for b { display: block; font-size: 12px; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.svc-tags { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-tags li { font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--ice); }
.split__media--img { aspect-ratio: auto; background: var(--paper-2); }
.split__media--img img { width: 100%; height: auto; }
.split__media--frame { aspect-ratio: 4 / 5; background: var(--paper-2); }
.split__media--frame img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.split__media--video { aspect-ratio: auto; background: transparent; display: flex; justify-content: center; }
.split__media--video .short__frame { width: min(300px, 70%); }
.split__cap { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

/* ページ内の目次 */
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { font-size: 13.5px; font-weight: 700; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line-inv); color: var(--paper); background: rgba(247,245,241,.06); }
.toc a:hover { background: var(--blue); color: var(--ink); border-color: var(--blue); }

/* カードをリンクにしたとき */
a.cap { display: block; }
.cap__more { display: inline-block; margin-top: 8px; font-size: 12.5px; font-weight: 700; border-bottom: 1px solid currentColor; }

/* 進め方（縦の詳しい版） */
.flow { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.flow__item { display: grid; grid-template-columns: 120px 1fr 1fr; gap: clamp(16px, 3vw, 48px); padding: clamp(26px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); align-items: start; }
.flow__no { font-family: var(--font-en); font-weight: 800; font-size: 13px; letter-spacing: .1em; }
.flow__no b { display: block; font-size: 40px; line-height: 1; letter-spacing: -.02em; margin-top: 6px; }
.flow__item h3 { margin: 0 0 8px; font-size: clamp(20px, 2vw, 24px); font-weight: 900; line-height: 1.45; }
.flow__item p { margin: 0; color: #3b3934; }
.flow__side { display: grid; gap: 10px; }
.flow__box { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.7; }
.flow__box b { display: block; font-size: 11.5px; letter-spacing: .1em; color: var(--muted); }

/* 下のメニューの項目が多いとき */
@media (max-width: 1100px) and (min-width: 861px) { .gnav__links { gap: 14px; font-size: 12.5px; } }

@media (max-width: 1024px) {
  .shorts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .samples { grid-template-columns: 1fr; }
  .flow__item { grid-template-columns: 1fr; gap: 10px; }
  .svc-detail .split__media { order: -1; }
}
@media (max-width: 600px) {
  .shorts { gap: 12px; }
  .short h3 { font-size: 14.5px; }
  .short p { font-size: 12px; }
  .toc a { font-size: 12.5px; padding: 7px 12px; }
}

/* 制作実績：3件を横並びに（2026-11-22） */
@media (min-width: 1001px) { .works { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 1000px) and (min-width: 701px) { .works { grid-template-columns: 1fr 1fr; } }

/* スクール集客一式（YORUCUT）の概要（2026-11-22） */
.case-facts dl { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.case-facts dl > div { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.case-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.case-facts dd { margin: 0; font-weight: 700; line-height: 1.7; }
.split__cap a { margin-left: .5em; border-bottom: 1px solid currentColor; }
@media (max-width: 800px) { .case-facts dl { grid-template-columns: 1fr; } }

/* 制作事例を実際に動かして見せる枠（2026-11-22） */
.smp__live { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: #11142A; }
.smp__live iframe { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; border: 0; transform-origin: 0 0; transform: scale(var(--s, .4)); pointer-events: none; }
.smp__live::after { display: none; }
.smp__img--phone .phone-live { width: 40%; aspect-ratio: 375 / 720; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 6px var(--ink-3); }
.phone-live iframe { width: 375px; height: 720px; }
.live-badge { position: absolute; left: 12px; top: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: rgba(17,17,19,.78); color: #fff; }
.live-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #FF5E6C; animation: liveDot 1.2s infinite; }
@keyframes liveDot { 50% { opacity: .3; } }
.smp:has(.smp__live) .smp__img--phone { aspect-ratio: 16 / 10; padding-top: 14px; }
