:root {
  --paper: #fbf7f0;
  --paper2: #f3ede0;
  --card: #fffdf8;
  --ink: #1b1712;
  --ink2: #4a4238;
  --muted: #7d7366;
  --shu: #e4472f;
  --ai: #1f3668;
  --mint: #bfe3c8;
  --line: #e7dfd0;
  --radius: 20px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", "Hiragino Sans", "Noto Sans JP", sans-serif;
  font-size: 16px; line-height: 1.75; -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(circle at 12% 8%, rgba(228, 71, 47, 0.07), transparent 40%), radial-gradient(circle at 90% 30%, rgba(31, 54, 104, 0.06), transparent 45%);
}
main { max-width: 980px; margin: 0 auto; padding: 0 16px 48px; }
h2 { font-size: 1.45rem; margin: 0 0 4px; font-weight: 900; }
b { font-weight: 700; }
.muted { color: var(--muted); }

/* ---------- hero ---------- */
.hero { max-width: 980px; margin: 0 auto; padding: 40px 16px 20px; text-align: center; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 3.6rem); margin: 6px 0 8px; font-weight: 900; letter-spacing: 0.04em; }
.hero h1 .t { display: inline-block; animation: pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.hero h1 .t:nth-child(1) { animation-delay: 0.05s; } .hero h1 .t:nth-child(2) { animation-delay: 0.1s; }
.hero h1 .t:nth-child(3) { animation-delay: 0.15s; } .hero h1 .t:nth-child(4) { animation-delay: 0.2s; }
.hero h1 .t:nth-child(5) { animation-delay: 0.25s; } .hero h1 .t:nth-child(6) { animation-delay: 0.3s; color: var(--shu); }
.hero h1 .t:nth-child(7) { animation-delay: 0.35s; color: var(--shu); } .hero h1 .t:nth-child(8) { animation-delay: 0.4s; color: var(--shu); }
@keyframes pop { 0% { transform: translateY(40px) scale(0.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.lead { font-size: 1.08rem; color: var(--ink2); margin: 0; }
.drop-logo { position: relative; width: 90px; height: 80px; margin: 0 auto; }
.drop-logo .drop { position: absolute; left: 50%; top: 0; width: 18px; height: 26px; margin-left: -9px; background: var(--ink); border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; transform-origin: 50% 100%; animation: drip 2.8s cubic-bezier(0.55, 0, 0.9, 0.5) infinite; }
.drop-logo .drop::after { content: ""; position: absolute; left: 4px; top: 9px; width: 4px; height: 7px; background: rgba(255, 255, 255, 0.6); border-radius: 50%; transform: rotate(-25deg); }
.drop-logo .ring { position: absolute; left: 50%; top: 66px; width: 12px; height: 4px; margin-left: -6px; border: 2px solid var(--shu); border-radius: 50%; opacity: 0; animation: ring 2.8s ease-out infinite; }
.drop-logo .r2 { border-color: var(--ai); animation-delay: 0.18s; }
@keyframes drip { 0% { transform: translateY(0) scaleY(0.6); opacity: 0; } 12% { opacity: 1; transform: translateY(0) scaleY(1); } 40% { transform: translateY(44px) scaleY(1.25); opacity: 1; } 44% { transform: translateY(48px) scale(1.6, 0.3); opacity: 0; } 100% { opacity: 0; transform: translateY(48px) scale(1.6, 0.3); } }
@keyframes ring { 0%, 42% { opacity: 0; transform: scale(0.5); } 46% { opacity: 1; } 90% { opacity: 0; transform: scale(6, 5); } 100% { opacity: 0; } }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin: 18px 0; box-shadow: 0 10px 30px rgba(60, 42, 20, 0.07), 0 1px 3px rgba(60, 42, 20, 0.06); }
.q { display: block; font-size: 1.3rem; font-weight: 900; margin-bottom: 8px; }
textarea, input[type="text"] { width: 100%; font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
textarea:focus, input[type="text"]:focus { border-color: var(--shu); box-shadow: 0 0 0 4px rgba(228, 71, 47, 0.12); }
textarea { resize: vertical; min-height: 92px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.chip { font: inherit; font-size: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink2); padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: transform 0.15s, background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover { transform: translateY(-1px); border-color: #d6cbb6; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.ideas .chip { background: var(--paper2); border-color: transparent; }
.ideas .chip::before { content: "＋ "; color: var(--shu); font-weight: 700; }

.more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.more summary { cursor: pointer; font-weight: 700; color: var(--ink2); list-style: none; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "▸ "; color: var(--shu); }
.more[open] summary::before { content: "▾ "; }
.field { margin: 12px 0; }
.fl { display: block; font-size: 14px; color: var(--muted); font-weight: 700; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 12px 22px; border: 2px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s, background 0.2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(27, 23, 18, 0.14); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.primary { background: var(--shu); border-color: var(--shu); color: #fff; }
.btn.ghost { background: transparent; }
.btn.small { padding: 7px 16px; font-size: 14px; }
.btn.link { border: none; background: none; padding: 6px 0; color: var(--ai); text-decoration: underline; text-underline-offset: 4px; }
.btn.link:hover { box-shadow: none; }
.chip-btn { padding: 8px 14px; font-size: 14px; border-width: 1.5px; }

/* ---------- recipe ---------- */
.recipe { border: 2px solid var(--ink); animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.kicker { margin: 0; font-weight: 900; color: var(--shu); letter-spacing: 0.08em; }
.direction { font-size: clamp(1.15rem, 3.4vw, 1.45rem); font-weight: 700; line-height: 1.7; margin: 6px 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: 13px; background: var(--paper2); border-radius: 8px; padding: 3px 10px; color: var(--ink2); }
.palette { display: flex; gap: 6px; margin: 12px 0 4px; }
.palette span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); animation: swatch 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.palette span:nth-child(2) { animation-delay: 0.05s; } .palette span:nth-child(3) { animation-delay: 0.1s; } .palette span:nth-child(4) { animation-delay: 0.15s; } .palette span:nth-child(5) { animation-delay: 0.2s; }
@keyframes swatch { from { transform: scale(0); } to { transform: scale(1); } }
.adjust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.adjust-note { font-size: 13px; color: var(--muted); min-height: 1.2em; margin: 6px 0 0; }
.sub { font-weight: 900; margin: 18px 0 6px; }
.tech-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.tech-chip { font-size: 14px; border: 1.5px solid var(--ai); color: var(--ai); border-radius: 999px; padding: 3px 12px; background: #fff; }
.tech-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin-top: 10px; }
.prompt-wrap { margin-top: 18px; }
.prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prompt { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 14.5px; line-height: 1.8; background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; max-height: 340px; overflow: auto; margin: 8px 0 0; color: var(--ink2); }
.steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; background: var(--paper2); border-radius: 14px; padding: 12px; font-size: 14px; line-height: 1.6; }
.num { flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 900; }
.tips { margin: 14px 0 0; padding-left: 1.2em; color: var(--ink2); font-size: 14px; }

/* ---------- gallery ---------- */
.sec-lead { color: var(--ink2); margin: 0 0 12px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.g-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; cursor: pointer; text-align: left; font: inherit; color: inherit; padding: 0; transition: transform 0.2s, box-shadow 0.2s; }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(60, 42, 20, 0.12); }
.g-thumb { position: relative; aspect-ratio: 16 / 9; background: var(--paper2) center / cover no-repeat; }
.g-thumb.fit { background-size: contain; } /* 正方形・縦長の作品は切らずに全体を見せる（2026-09-27 評価役：正方形のポスターが16:9で切れていた） */
.g-thumb::after { content: "▶"; position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 50%; background: rgba(27, 23, 18, 0.75); color: #fff; display: grid; place-items: center; font-size: 14px; }
.g-text { padding: 10px 12px 12px; }
.g-title { font-weight: 900; margin: 0; }
.g-desc { font-size: 13.5px; color: var(--ink2); margin: 2px 0 6px; line-height: 1.6; }
.g-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.g-tags span { font-size: 12px; background: var(--paper2); border-radius: 6px; padding: 1px 8px; color: var(--ink2); }

.modal { position: fixed; inset: 0; background: rgba(15, 12, 9, 0.72); display: grid; place-items: center; padding: 16px; z-index: 50; }
.modal[hidden] { display: none; }
.modal-body { position: relative; width: min(960px, 100%); background: #111; border-radius: 16px; overflow: hidden; }
.modal-body video { display: block; width: 100%; max-height: 78vh; background: #000; }
.modal-text { padding: 10px 14px 14px; color: #f3ede0; font-size: 14px; }
.modal-close { position: absolute; right: 8px; top: 8px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(255, 255, 255, 0.9); font-size: 20px; cursor: pointer; }

/* ---------- 図鑑 ---------- */
.zukan { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.z-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.z-card .stage { position: relative; height: 112px; background: var(--paper2); overflow: hidden; }
.z-card .z-text { padding: 8px 12px 12px; }
.z-name { font-weight: 900; margin: 0; font-size: 15px; }
.z-en { font-size: 12px; color: var(--muted); margin: 0; }
.z-plain { font-size: 13px; color: var(--ink2); margin: 4px 0 0; line-height: 1.6; }
.z-card.chosen { border: 2px solid var(--ai); }
.paused .stage * , .paused .stage *::before, .paused .stage *::after { animation-play-state: paused !important; }

.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 10px 16px 40px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--ink); color: #fff; border-radius: 16px; padding: 10px 18px; width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center; line-height: 1.5; font-weight: 700; opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 60; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ====================== 小さな動く見本（図鑑） ====================== */
.stage .c { position: absolute; border-radius: 50%; }
.stage .mid { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.w { font-weight: 900; }

/* 文字が主役 */
.d-kinetic .mid { display: flex; gap: 4px; font-size: 34px; font-weight: 900; }
.d-kinetic .mid span { display: inline-block; animation: kin 2.4s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.d-kinetic .mid span:nth-child(2) { animation-delay: 0.12s; color: var(--shu); } .d-kinetic .mid span:nth-child(3) { animation-delay: 0.24s; }
@keyframes kin { 0% { transform: translateY(46px) rotate(-12deg) scale(0.4); opacity: 0; } 22% { transform: none; opacity: 1; } 78% { transform: none; opacity: 1; } 100% { transform: translateY(-40px) scale(1.2); opacity: 0; } }
/* 意味どおりに動く */
.d-semantic .row { position: absolute; left: 0; font-weight: 900; white-space: nowrap; }
.d-semantic .r1 { top: 20px; font-size: 20px; animation: slowgo 3.2s ease-in-out infinite; }
.d-semantic .r2 { top: 62px; font-size: 22px; color: var(--shu); animation: fastgo 3.2s cubic-bezier(0.9, 0, 0.1, 1) infinite; }
@keyframes slowgo { 0% { transform: translateX(-110%); } 100% { transform: translateX(230px); } }
@keyframes fastgo { 0%, 62% { transform: translateX(-110%); } 70%, 100% { transform: translateX(230px); } }
/* 変身 */
.d-morph .mid { width: 58px; height: 58px; background: var(--ai); animation: morph 3.6s ease-in-out infinite; }
@keyframes morph { 0% { border-radius: 50%; transform: translate(-50%, -50%) rotate(0); background: var(--ai); } 33% { border-radius: 10%; transform: translate(-50%, -50%) rotate(90deg); background: var(--shu); } 66% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; transform: translate(-50%, -50%) rotate(180deg) scale(1.1); background: #3bb58a; } 100% { border-radius: 50%; transform: translate(-50%, -50%) rotate(360deg); background: var(--ai); } }
/* 線 */
.d-line svg, .d-brush svg, .d-matchcut svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.d-line path { fill: none; stroke: var(--ai); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 420; animation: draw 3s ease-in-out infinite; }
@keyframes draw { 0% { stroke-dashoffset: 420; } 55%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -420; } }
/* 筆 */
.d-brush path { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-dasharray: 200; }
.d-brush .s1 { stroke-width: 11; animation: br1 3.4s ease-in-out infinite; }
.d-brush .s2 { stroke-width: 12; animation: br2 3.4s ease-in-out infinite; }
.d-brush .s3 { stroke-width: 9; animation: br3 3.4s ease-in-out infinite; }
@keyframes br1 { 0% { stroke-dashoffset: 200; } 18%, 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes br2 { 0%, 18% { stroke-dashoffset: 200; } 36%, 88% { stroke-dashoffset: 0; } 100% { opacity: 0; } }
@keyframes br3 { 0%, 36% { stroke-dashoffset: 200; } 58%, 88% { stroke-dashoffset: 0; } 100% { opacity: 0; } }
/* 粒 */
.d-particles .p { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--shu); animation: burst 2.4s ease-out infinite; }
@keyframes burst { 0% { transform: translate(0, 0) scale(0.2); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(var(--x), var(--y)) scale(1); opacity: 0; } }
/* 模様 */
.d-pattern .pat { position: absolute; inset: -40px; background: radial-gradient(circle at 50% 100%, transparent 8px, var(--ai) 9px, var(--ai) 12px, transparent 13px, transparent 17px, var(--ai) 18px, var(--ai) 21px, transparent 22px) 0 0 / 40px 20px, radial-gradient(circle at 50% 100%, transparent 8px, #6cc0e8 9px, #6cc0e8 12px, transparent 13px, transparent 17px, #6cc0e8 18px, #6cc0e8 21px, transparent 22px) 20px 10px / 40px 20px; animation: waves 4s linear infinite; }
@keyframes waves { to { transform: translateX(40px); } }
/* 3D */
.d-camera3d .scene { position: absolute; inset: 0; perspective: 220px; perspective-origin: 50% 50%; background: #1a0b08; }
.d-camera3d .gate { position: absolute; left: 50%; top: 50%; width: 70px; height: 70px; margin: -35px; border: 5px solid var(--shu); border-bottom: none; animation: fly 2.4s linear infinite; }
.d-camera3d .gate:nth-child(2) { animation-delay: -0.6s; } .d-camera3d .gate:nth-child(3) { animation-delay: -1.2s; } .d-camera3d .gate:nth-child(4) { animation-delay: -1.8s; }
@keyframes fly { 0% { transform: translateZ(-500px); opacity: 0; } 20% { opacity: 1; } 100% { transform: translateZ(210px); opacity: 1; } }
/* 数字とグラフ */
@property --n { syntax: "<integer>"; inherits: false; initial-value: 0; }
.d-infographic .bars { position: absolute; left: 24px; bottom: 16px; display: flex; gap: 8px; align-items: flex-end; height: 76px; }
.d-infographic .bars i { width: 16px; background: var(--ai); transform-origin: bottom; animation: bar 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.d-infographic .bars i:nth-child(2) { animation-delay: 0.1s; background: #6cc0e8; } .d-infographic .bars i:nth-child(3) { animation-delay: 0.2s; } .d-infographic .bars i:nth-child(4) { animation-delay: 0.3s; background: var(--shu); }
@keyframes bar { 0% { transform: scaleY(0); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.d-infographic .num { position: absolute; right: 18px; top: 26px; font-weight: 900; font-size: 34px; color: var(--shu); counter-reset: n var(--n); animation: count 2.8s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.d-infographic .num::after { content: counter(n) "%"; }
@keyframes count { 0% { --n: 0; } 40%, 85% { --n: 87; } 100% { --n: 87; } }
/* 画面 */
.d-ui .phone { position: absolute; left: 50%; top: 10px; width: 64px; height: 118px; margin-left: -32px; border: 3px solid var(--ink); border-radius: 12px; background: #fff; overflow: hidden; }
.d-ui .phone i { position: absolute; left: 6px; right: 6px; height: 14px; border-radius: 4px; background: var(--paper2); }
.d-ui .phone i:nth-child(1) { top: 10px; animation: slidein 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.d-ui .phone i:nth-child(2) { top: 30px; animation: slidein 3s 0.12s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.d-ui .phone b { position: absolute; left: 14px; right: 14px; top: 58px; height: 18px; border-radius: 999px; background: var(--shu); animation: press 3s infinite; }
@keyframes slidein { 0% { transform: translateX(80px); } 25%, 100% { transform: none; } }
@keyframes press { 0%, 40% { transform: scale(1); } 46% { transform: scale(0.85); } 54%, 100% { transform: scale(1); } }
/* 切り抜いた紙 */
.d-collage .pp { position: absolute; width: 58px; height: 42px; border-radius: 4px; box-shadow: 2px 3px 0 rgba(0, 0, 0, 0.12); animation: paste 3s cubic-bezier(0.34, 1.56, 0.64, 1) infinite; }
.d-collage .pp:nth-child(1) { left: 28px; top: 30px; background: #ff8fa3; --r: -8deg; }
.d-collage .pp:nth-child(2) { left: 74px; top: 40px; background: #ffc75f; --r: 6deg; animation-delay: 0.15s; }
.d-collage .pp:nth-child(3) { left: 120px; top: 28px; background: #7fd8be; --r: -4deg; animation-delay: 0.3s; }
@keyframes paste { 0% { transform: translateY(-90px) rotate(20deg); } 30%, 85% { transform: rotate(var(--r)); } 100% { transform: rotate(var(--r)) translateY(120px); } }
/* にじむ */
.d-liquid .goo { position: absolute; inset: 0; filter: url(#goo); }
.d-liquid .goo i { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: var(--ai); }
.d-liquid .goo i:nth-child(1) { left: 40%; animation: gooa 3s ease-in-out infinite; }
.d-liquid .goo i:nth-child(2) { left: 48%; background: var(--ai); animation: goob 3s ease-in-out infinite; }
@keyframes gooa { 0%, 100% { transform: translateX(-40px); } 50% { transform: translateX(10px) scale(1.2); } }
@keyframes goob { 0%, 100% { transform: translateX(40px) scale(0.8); } 50% { transform: translateX(-6px) scale(1.1); } }
/* 図形のリズム */
.d-geometric .sh { position: absolute; top: 40px; width: 30px; height: 30px; animation: geo 2.4s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite; }
.d-geometric .sh:nth-child(1) { left: 30%; margin-left: -15px; border-radius: 50%; background: var(--shu); }
.d-geometric .sh:nth-child(2) { left: 50%; margin-left: -15px; background: var(--ai); animation-delay: 0.15s; }
.d-geometric .sh:nth-child(3) { left: 70%; margin-left: -15px; width: 0; height: 0; border-left: 17px solid transparent; border-right: 17px solid transparent; border-bottom: 30px solid #3bb58a; animation-delay: 0.3s; }
@keyframes geo { 0%, 100% { transform: translateY(0) rotate(0); } 40% { transform: translateY(-22px) rotate(180deg); } 60% { transform: translateY(0) rotate(180deg); } }
/* 前の形が次の形へ */
.d-matchcut .fill { position: absolute; left: 50%; top: 50%; width: 30px; height: 30px; margin: -15px; border-radius: 50%; background: var(--shu); animation: mc 3.2s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
@keyframes mc { 0% { transform: scale(1); border-radius: 50%; } 35% { transform: scale(9); border-radius: 50%; background: var(--shu); } 36% { background: var(--ai); } 70% { transform: scale(1); border-radius: 50%; background: var(--ai); } 85%, 100% { transform: scale(1.3) rotate(45deg); border-radius: 6%; background: var(--ai); } }
/* スッと現れる */
.d-maskreveal .mid { font-size: 28px; font-weight: 900; letter-spacing: 0.1em; animation: reveal 3s cubic-bezier(0.77, 0, 0.18, 1) infinite; }
@keyframes reveal { 0% { clip-path: inset(0 100% 0 0); } 35%, 80% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
/* 色の面 */
.d-colorwipe .pn { position: absolute; inset: 0; transform: translateX(-100%); animation: wipe 3s cubic-bezier(0.77, 0, 0.18, 1) infinite; }
.d-colorwipe .pn:nth-child(1) { background: var(--shu); } .d-colorwipe .pn:nth-child(2) { background: #ffd23f; animation-delay: 0.12s; } .d-colorwipe .pn:nth-child(3) { background: var(--ai); animation-delay: 0.24s; }
@keyframes wipe { 0% { transform: translateX(-100%); } 40%, 60% { transform: translateX(0); } 100% { transform: translateX(100%); } }
/* 手前と奥 */
.d-parallax .ly { position: absolute; left: 0; width: 200%; height: 60px; bottom: 0; background-repeat: repeat-x; }
.d-parallax .l1 { bottom: 0; height: 90px; background-image: radial-gradient(circle at 50px 110px, #a8c5b5 70px, transparent 71px); background-size: 100px 90px; animation: px 12s linear infinite; }
.d-parallax .l2 { bottom: 0; height: 60px; background-image: radial-gradient(circle at 40px 70px, #6e9fb5 44px, transparent 45px); background-size: 80px 60px; animation: px 6s linear infinite; }
.d-parallax .l3 { bottom: 0; height: 30px; background-image: radial-gradient(circle at 25px 40px, #3e4a46 26px, transparent 27px); background-size: 50px 30px; animation: px 3s linear infinite; }
@keyframes px { to { transform: translateX(-50%); } }
/* ゆっくり寄る */
.d-slowzoom .ph { position: absolute; inset: 0; background: radial-gradient(circle at 70% 35%, #fff3c4 0 12%, transparent 13%), linear-gradient(#f2e3c4, #d9c29a 60%, #8c7a5b); animation: zoom 6s ease-in-out infinite alternate; }
@keyframes zoom { from { transform: scale(1); } to { transform: scale(1.35) translate(-6%, 4%); } }
/* つぶれて伸びる */
.d-squash .ball { position: absolute; left: 50%; bottom: 14px; width: 34px; height: 34px; margin-left: -17px; border-radius: 50%; background: var(--shu); transform-origin: 50% 100%; animation: sq 1.1s infinite; }
.d-squash .floor { position: absolute; left: 20%; right: 20%; bottom: 13px; height: 2px; background: var(--ink); }
@keyframes sq { 0% { transform: translateY(0) scale(1.35, 0.65); animation-timing-function: cubic-bezier(0.2, 0.7, 0.4, 1); } 10% { transform: translateY(-10px) scale(0.85, 1.2); } 50% { transform: translateY(-62px) scale(1, 1); animation-timing-function: cubic-bezier(0.6, 0, 0.8, 0.3); } 92% { transform: translateY(-4px) scale(0.85, 1.2); } 100% { transform: translateY(0) scale(1.35, 0.65); } }
/* バネ */
.d-spring .box { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 12px; background: var(--ai); animation: spr 2.4s cubic-bezier(0.34, 1.9, 0.64, 1) infinite; }
@keyframes spr { 0% { transform: translateX(-120px); } 45%, 100% { transform: translateX(0); } }
/* 時間差 */
.d-stagger .bs { position: absolute; left: 50%; bottom: 20px; display: flex; gap: 6px; transform: translateX(-50%); }
.d-stagger .bs i { width: 12px; height: 56px; border-radius: 6px; background: var(--ai); transform-origin: bottom; animation: stg 2.4s cubic-bezier(0.22, 1, 0.36, 1) infinite; }
.d-stagger .bs i:nth-child(2) { animation-delay: 0.08s; } .d-stagger .bs i:nth-child(3) { animation-delay: 0.16s; } .d-stagger .bs i:nth-child(4) { animation-delay: 0.24s; } .d-stagger .bs i:nth-child(5) { animation-delay: 0.32s; } .d-stagger .bs i:nth-child(6) { animation-delay: 0.4s; }
@keyframes stg { 0% { transform: scaleY(0); } 35%, 80% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
/* ためる */
.d-anticipation .ball { position: absolute; left: 22%; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--shu); animation: ant 2.4s infinite; }
@keyframes ant { 0% { transform: translateX(0); } 30% { transform: translateX(-16px) scale(0.85, 1.12); animation-timing-function: cubic-bezier(0.9, 0, 0.2, 1); } 48%, 82% { transform: translateX(130px); } 100% { transform: translateX(0); } }
/* ピタッと止める */
.d-hold .dot { position: absolute; left: 12%; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: var(--ink); animation: hold 3s infinite; }
@keyframes hold { 0% { transform: translateX(0); animation-timing-function: cubic-bezier(0.6, 0, 1, 1); } 22% { transform: translateX(120px); } 80% { transform: translateX(120px); } 100% { transform: translateX(0); } }
/* 呼吸 */
.d-breathing .c { left: 50%; top: 50%; width: 54px; height: 54px; margin: -27px; background: #a8c5b5; box-shadow: 0 0 0 0 rgba(168, 197, 181, 0.6); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(0.8); box-shadow: 0 0 0 0 rgba(168, 197, 181, 0.6); } 50% { transform: scale(1.12); box-shadow: 0 0 0 18px rgba(168, 197, 181, 0); } }
/* 光が走る */
.d-lightsweep .plate { position: absolute; left: 50%; top: 50%; width: 130px; height: 58px; margin: -29px -65px; border-radius: 10px; background: linear-gradient(135deg, #1f1d1a, #3b3630); overflow: hidden; color: #d9b96f; display: grid; place-items: center; font-weight: 900; letter-spacing: 0.2em; }
.d-lightsweep .plate::after { content: ""; position: absolute; inset: -20px; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, 0.55) 50%, transparent 60%); animation: sweep 2.6s ease-in-out infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(120%); } }
/* ノイズ */
.d-glitch .mid { font-size: 30px; font-weight: 900; color: var(--ink); }
.d-glitch .mid::before, .d-glitch .mid::after { content: attr(data-t); position: absolute; left: 0; top: 0; }
.d-glitch .mid::before { color: #ff2d55; animation: gl1 2.2s steps(1) infinite; mix-blend-mode: multiply; }
.d-glitch .mid::after { color: #00c7d6; animation: gl2 2.2s steps(1) infinite; mix-blend-mode: multiply; }
@keyframes gl1 { 0%, 70%, 100% { transform: none; clip-path: inset(0); } 72% { transform: translate(-4px, 1px); clip-path: inset(10% 0 55% 0); } 76% { transform: translate(3px, -1px); clip-path: inset(55% 0 10% 0); } 80% { transform: none; } }
@keyframes gl2 { 0%, 70%, 100% { transform: none; clip-path: inset(0); } 73% { transform: translate(4px, -1px); clip-path: inset(40% 0 30% 0); } 77% { transform: translate(-3px, 2px); clip-path: inset(0 0 70% 0); } 80% { transform: none; } }
/* 手ざわり */
.d-texture .tx { position: absolute; inset: -20px; background: repeating-radial-gradient(circle at 30% 40%, rgba(120, 100, 70, 0.13) 0 1px, transparent 1px 4px), repeating-linear-gradient(35deg, rgba(120, 100, 70, 0.08) 0 1px, transparent 1px 9px), #f3ede0; animation: grain 1s steps(4) infinite; }
.d-texture .mid { font-size: 30px; font-weight: 900; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3px, 2px); } 50% { transform: translate(2px, -3px); } 75% { transform: translate(-2px, -1px); } }
/* 音に合わせる */
.d-beatsync .eq { position: absolute; left: 50%; bottom: 18px; display: flex; gap: 6px; align-items: flex-end; transform: translateX(-50%); height: 70px; }
.d-beatsync .eq i { width: 12px; height: 70px; border-radius: 4px; background: var(--shu); transform-origin: bottom; animation: beat 0.47s ease-out infinite; }
.d-beatsync .eq i:nth-child(2) { animation-delay: 0.12s; background: #ffc75f; } .d-beatsync .eq i:nth-child(3) { animation-delay: 0.24s; background: var(--ai); } .d-beatsync .eq i:nth-child(4) { animation-delay: 0.06s; background: #3bb58a; } .d-beatsync .eq i:nth-child(5) { animation-delay: 0.18s; }
@keyframes beat { 0% { transform: scaleY(1); } 60% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }

@media (prefers-reduced-motion: reduce) { .stage *, .stage *::before, .stage *::after, .hero * { animation: none !important; } }
@media (max-width: 560px) {
  .card { padding: 18px 14px; }
  .actions .btn { flex: 1 1 auto; }
  .prompt { max-height: 280px; font-size: 14px; }
}

[hidden] { display: none !important; }

code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; background: var(--paper2); border-radius: 6px; padding: 1px 6px; }
.effort { margin-top: 16px; }
.effort-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.effort-box { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.effort-box.max { border-color: var(--shu); background: #fff7f4; }
.eb-title { margin: 0; font-weight: 700; }
.eb-text { margin: 2px 0 8px; font-size: 14px; color: var(--ink2); line-height: 1.6; }
.fine { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.cmd code { background: transparent; padding: 0; }

@media (max-width: 560px) {
  .ideas .chip { font-size: 13px; padding: 5px 10px; }
  .ideas .chip:nth-child(n + 5) { display: none; }
  .hero { padding-top: 26px; }
}

.quick { border: 2px solid var(--shu); }
.quick-lead { font-size: 1.12rem; font-weight: 700; margin: 4px 0 8px; }
.prompt.basic { max-height: none; font-size: 15.5px; color: var(--ink); }

/* ---------- 2026-09-26 19:4x 初見レビューを受けて ---------- */
body { word-break: auto-phrase; }
.chip, .direction, .lead, .hint, .steps li, .tips li, .fine, .sec-lead, .z-plain { text-wrap: pretty; }
.btn { white-space: nowrap; }
.hint { margin: -4px 0 8px; font-size: 14px; color: var(--muted); }
#make .kicker { margin-bottom: 2px; }
.howto { margin-top: 18px; }
.howto .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 8px; }
.howto .steps a { color: var(--ai); }
.howto .steps .chip-btn { margin-top: 6px; }
.z-card.pick { cursor: pointer; transition: transform 0.15s, box-shadow 0.2s; }
.z-card.pick:hover, .z-card.pick:focus-visible { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(60, 42, 20, 0.12); outline: none; }
.z-hint { font-size: 12px; color: var(--shu); margin: 6px 0 0; font-weight: 700; }
.zukan-more { display: none; }
/* 静かな音で寄り添う */
.d-softsound .eq { position: absolute; left: 50%; bottom: 18px; display: flex; gap: 6px; align-items: flex-end; transform: translateX(-50%); height: 70px; }
.d-softsound .eq i { width: 12px; height: 70px; border-radius: 6px; background: #a8c5b5; transform-origin: bottom; animation: softbeat 2.6s ease-in-out infinite; }
.d-softsound .eq i:nth-child(2) { animation-delay: 0.35s; background: #6e9fb5; } .d-softsound .eq i:nth-child(3) { animation-delay: 0.7s; background: #f2e3c4; } .d-softsound .eq i:nth-child(4) { animation-delay: 1.05s; background: #a8c5b5; } .d-softsound .eq i:nth-child(5) { animation-delay: 1.4s; background: #6e9fb5; }
@keyframes softbeat { 0%, 100% { transform: scaleY(0.3); } 50% { transform: scaleY(0.75); } }
@media (max-width: 700px) {
  .howto .steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .btn { min-height: 44px; }
  .chip { min-height: 40px; }
  .zukan.collapsed .z-card:nth-child(n + 9) { display: none; }
  .zukan-more { display: inline-flex; margin-top: 12px; }
  .prompt-head { flex-wrap: wrap; }
}

/* ---------- 2026-09-27 作品集：おけもんが作った／世界のお手本 ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 14px; }
.tab { font: inherit; font-weight: 900; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 999px; padding: 8px 18px; cursor: pointer; min-height: 44px; }
.tab[aria-selected="true"] { background: var(--ink); color: #fff; }
.g-card { display: flex; flex-direction: column; cursor: default; }
.g-card:hover { transform: none; }
button.g-thumb { display: block; width: 100%; border: 0; padding: 0; cursor: pointer; }
button.g-thumb:hover { filter: brightness(1.05); }
.g-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.ref-btn { border-color: var(--shu); color: var(--shu); }
.ref-btn:hover { background: #fff7f4; }
.g-prompt { margin-top: 8px; width: 100%; }
.g-prompt pre { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: 13px; line-height: 1.7; background: var(--paper2); border-radius: 10px; padding: 10px 12px; margin: 0; }
.world-tip { background: #fff7f4; border: 1.5px solid var(--shu); border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 0 0 6px; }
.world-tip a, .world-more a { color: var(--ai); }
.w-group { font-weight: 900; margin: 16px 0 8px; }
.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.w-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; }
.w-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.w-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.w-badge.ai { background: #e8eefc; color: var(--ai); }
.w-badge.pro { background: #fdece8; color: var(--shu); }
.w-meta { font-size: 12px; color: var(--muted); }
.w-title { font-weight: 900; font-size: 1.05rem; margin: 8px 0 2px; line-height: 1.5; }
.w-by { font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.w-desc { font-size: 13.5px; color: var(--ink2); margin: 0 0 8px; line-height: 1.6; }
.w-card .g-actions { margin-top: auto; padding-top: 10px; }
.world-more { margin: 14px 0 0; font-weight: 700; }
.ref-pill { display: inline-flex; align-items: center; gap: 8px; background: #fff7f4; border: 1.5px solid var(--shu); border-radius: 999px; padding: 4px 6px 4px 14px; margin: 0 0 8px; font-size: 14px; max-width: 100%; }
.ref-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-pill button { flex: none; border: 0; background: var(--shu); color: #fff; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 16px; line-height: 1; }
.w-stage-cap { font-size: 11.5px; color: var(--muted); margin: 0 0 4px; font-weight: 700; }
.w-stages { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.w-stage span { display: block; font-size: 11.5px; color: var(--ink2); margin-top: 3px; text-align: center; }
.w-stage .stage { position: relative; height: 84px; background: var(--paper2); border-radius: 10px; overflow: hidden; }
.paused .w-stage .stage *, .paused .w-stage .stage *::before, .paused .w-stage .stage *::after { animation-play-state: paused !important; }

/* ---------- 2026-09-27 技法集（教科書）と作品集のページを分けた ---------- */
.sub-note { font-weight: 500; font-size: 12.5px; color: var(--muted); }
a.tech-chip { text-decoration: none; }
.tech-chip small { display: block; font-size: 11.5px; line-height: 1.3; opacity: .8; }
a.tech-chip:hover { background: #eef2fb; }
.textbook-link h2 { margin-bottom: 4px; }
.tb-hero { max-width: 980px; margin: 0 auto; padding: 28px 16px 8px; }
.tb-back { color: var(--ai); font-weight: 700; font-size: 14px; }
.tb-hero h1 { font-size: clamp(1.9rem, 6vw, 2.8rem); margin: 4px 0 6px; font-weight: 900; }
.tb-hero h1 span { display: block; font-size: 0.5em; color: var(--ink2); font-weight: 700; margin-top: 2px; }
.tb-how { margin: 10px 0 12px; padding-left: 1.3em; color: var(--ink2); font-size: 14.5px; line-height: 1.8; }
.tb-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.tb-toc .chip { text-decoration: none; }
.tb-chapter h2 { display: flex; align-items: baseline; gap: 10px; }
.tb-count { font-size: 14px; color: #fff; background: var(--ink); border-radius: 999px; padding: 1px 10px; font-weight: 700; }
.tb-entry { display: grid; grid-template-columns: 240px 1fr; gap: 18px; padding: 18px 0; border-top: 1px dashed var(--line); scroll-margin-top: 16px; }
.tb-entry.focus { background: #fff7f4; border-radius: 14px; padding: 18px 12px; }
.tb-stage { position: relative; height: 140px; background: var(--paper2); border-radius: 14px; overflow: hidden; }
.tb-num { margin: 0; font-size: 12px; color: var(--muted); font-weight: 700; }
.tb-name { margin: 0 0 8px; font-size: 1.2rem; font-weight: 900; }
.tb-name span { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.tb-formal .tb-formal-ja { font-size: 1.05rem; font-weight: 900; color: var(--ink); }
.tb-formal .tb-formal-en { font-size: 14px; font-weight: 600; color: var(--ai); margin-left: 8px; letter-spacing: .01em; }
.tb-formal .tb-aka { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.tb-row { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; margin: 6px 0; font-size: 14.5px; line-height: 1.7; }
.tb-row p { margin: 0; }
.tb-k { font-size: 12.5px; font-weight: 700; color: var(--shu); padding-top: 3px; }
.tb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-tags .tag.p { background: #e8eefc; color: var(--ai); }
.tb-word { font-weight: 900; }
.tb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.tb-row blockquote { margin: 0; background: #fff; border: 1.5px solid var(--line); border-left: 4px solid var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 13.5px; color: var(--ink2); }
@media (max-width: 700px) {
  .tb-entry { grid-template-columns: 1fr; gap: 10px; }
  .tb-row { grid-template-columns: 1fr; gap: 2px; }
}

.hero-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; margin: 10px 0 0; font-size: 14.5px; font-weight: 700; }
.hero-jump a { color: var(--shu); text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
