/* 役割: 見た目だけ。9in1動画プロンプト集（白黒基調・太い見出し）に合わせる */
:root{--ink:#171717;--muted:#626262;--line:#dedede;--surface:#f4f4f4;--mark:#fff3a8;--page:1240px}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#fff;color:var(--ink);font:16px/1.7 -apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Yu Gothic",sans-serif}
button,input{font:inherit;color:inherit}
button{cursor:pointer;touch-action:manipulation}
button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #3678cc;outline-offset:3px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:var(--page);margin:auto;padding-inline:32px}

header{padding-top:38px}
.masthead{display:flex;justify-content:space-between;align-items:center;gap:20px}
.wordmark{font-size:14px;font-weight:800;letter-spacing:.16em}
.edition{font-size:14px;color:var(--muted)}
h1{font-family:Arial,Helvetica,sans-serif;font-size:clamp(44px,9vw,120px);line-height:1;letter-spacing:-.055em;margin:38px 0 10px;font-weight:900}
.subtitle{margin:0 0 30px;font-size:clamp(17px,2.2vw,22px);font-weight:800;letter-spacing:.02em}

.toolbar{position:sticky;top:0;z-index:5;background:rgba(255,255,255,.97);border-block:1px solid var(--line);padding:12px 0}
.tools{display:flex;align-items:center;gap:16px;flex-wrap:wrap}
.tools-label{font-size:14px;font-weight:800}

.swatches{display:flex;gap:8px;flex-wrap:wrap}
.swatch{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:6px 14px 6px 8px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:14px;font-weight:700}
.swatch .dot{width:26px;height:26px;border-radius:50%;flex:none}
.swatch[aria-pressed=true]{background:var(--ink);color:#fff;border-color:var(--ink)}
.swatches.small .swatch{min-height:40px;min-width:40px;padding:6px;justify-content:center}
.swatches.small .swatch .label{display:none}
.swatches.small .swatch[aria-pressed=true]{background:#fff;color:var(--ink);box-shadow:0 0 0 2px var(--ink)}

.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:40px 32px;padding:36px 0 64px}
.card{display:flex;flex-direction:column;min-width:0}
.frame{position:relative;aspect-ratio:16/9;background:#000;border-radius:10px;overflow:hidden}
.frame video{width:100%;height:100%;object-fit:cover;display:block}
.loop-badge{position:absolute;left:12px;top:12px;padding:2px 10px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:700;letter-spacing:.06em}
.card-body{display:flex;flex-direction:column;gap:14px;padding-top:16px}
.card-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.card-title{margin:0;font-size:24px;line-height:1.3;font-weight:900;letter-spacing:-.01em}

.tabs{display:flex;border-bottom:1px solid var(--line)}
.tab{min-height:44px;padding:8px 16px;border:0;border-bottom:3px solid transparent;background:none;font-size:15px;font-weight:700;color:var(--muted)}
.tab[aria-selected=true]{color:var(--ink);border-bottom-color:var(--ink)}

.color-inputs{display:flex;align-items:center;gap:8px}
.color-word{width:9em;min-height:44px;padding:6px 12px;border:1px solid #e6d36a;border-radius:6px;background:var(--mark);font-weight:700}
.amp{font-weight:700}

.prompt{margin:0;padding:16px 18px;background:var(--surface);border-radius:8px;font-size:15px;line-height:1.8;white-space:pre-wrap;word-break:break-word}
.prompt mark{background:var(--mark);padding:0 3px;border-radius:3px;font-weight:700;color:inherit}

.action{min-height:52px;border-radius:6px;border:1px solid var(--ink);background:#fff;font-weight:800;font-size:16px}
.action.primary{background:var(--ink);color:#fff}
.action.primary:hover{background:#000}

footer{border-top:1px solid var(--line);padding:28px 0 44px}
.social-icons{display:flex;align-items:center;justify-content:center;gap:8px;flex-wrap:wrap}
.social-icon{display:inline-flex;flex-direction:column;align-items:center;gap:2px;width:56px;min-height:56px;padding:6px 4px 8px;color:var(--muted);border-radius:6px;text-decoration:none}
.social-icon-glyph{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px}
.social-icon-glyph svg{width:26px;height:26px}
.social-label{font-size:10px;line-height:1.2;font-weight:600;white-space:nowrap}
.social-icon:hover{color:var(--ink);background:var(--surface)}

.toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:#fff;padding:12px 22px;border-radius:999px;font-weight:700;transition:.25s}
.toast.show{opacity:1;transform:translate(-50%,0)}

@media (max-width:820px){
  .wrap{padding-inline:16px}
  .gallery{grid-template-columns:1fr;gap:36px}
  .swatch{padding:6px 8px}
  .tools .swatch .label{display:none}
  .color-word{width:100%;min-width:0}
  .color-inputs label{flex:1}
}
