:root{color-scheme:light;--ink:#27231f;--red:#c93a22;--paper:#fbf9f4;--line:#dedad1}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,"Hiragino Kaku Gothic ProN","Noto Sans JP",Meiryo,sans-serif}.shell{width:min(100% - 40px,760px);margin:auto}.header{height:74px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}.brand{font-weight:800;font-size:13px;letter-spacing:.03em}.brand span{font-size:10px;letter-spacing:.15em;margin-left:6px;color:var(--red)}.header-mark{font-size:22px;color:var(--red)}.intro{padding:55px 0 30px}.eyebrow,.machine-top{font-size:10px;font-weight:800;letter-spacing:.17em}.eyebrow{color:var(--red);margin:0 0 16px}.eyebrow span{color:#c5bdb3}h1{font-size:clamp(32px,5vw,48px);line-height:1.28;letter-spacing:-.04em;margin:0;font-weight:900}.dot{color:var(--red)}.lead{font-size:14px;line-height:1.9;color:#6d665e;margin:18px 0 0}.mobile-break{display:none}.machine{background:white;border:1px solid #ded9cf;border-radius:18px;padding:24px 28px 18px;box-shadow:0 10px 28px #4035260b}.machine-top{display:flex;justify-content:space-between;color:#a59b90;border-bottom:1px solid #edeae5;padding-bottom:18px}.machine-top span:last-child{color:var(--red);letter-spacing:.15em}.mode-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 0 17px}.mode-label{font-size:12px;font-weight:700;color:#7d756d}.modes{display:flex;gap:6px;flex-wrap:wrap}.modes button{min-height:44px;border:1px solid #e7e2da;background:#fff;border-radius:999px;padding:9px 15px;font:inherit;font-size:12px;font-weight:700;color:#71695f;cursor:pointer}.modes button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:white}.result{min-height:218px;background:#f7f4ee;border-radius:12px;display:flex;align-items:center;padding:25px 32px}.teaser{display:flex;align-items:center;gap:25px;color:#a9a096}.teaser-symbol{width:65px;height:65px;border:1px solid #d4ccc1;border-radius:50%;display:grid;place-items:center;font:italic 34px Georgia,serif}.teaser p{font-weight:700;line-height:1.7;font-size:16px}.phrases{width:100%}.phrases span{display:block;font-size:clamp(21px,3.2vw,27px);font-weight:800;line-height:1.6;letter-spacing:.015em}.phrases span:last-child{color:var(--red)}.result-footer{min-height:48px;display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#9a9187}.copy{min-height:44px;min-width:64px;border:0;background:none;color:#6b625b;text-decoration:underline;text-underline-offset:3px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;padding:10px}.draw{width:100%;min-height:68px;border:0;border-radius:10px;background:var(--red);color:white;font:inherit;font-size:17px;font-weight:800;letter-spacing:.08em;cursor:pointer;position:relative;box-shadow:0 4px 0 #b73a26}.draw:hover{background:#c9412b}.draw:active{transform:translateY(3px);box-shadow:0 1px 0 #b73a26}.arrow{position:absolute;right:22px;font-size:22px;top:19px}.status{margin:0;min-height:12px;font-size:12px;color:#776e65;text-align:center}button:focus-visible{outline:3px solid #346ec5;outline-offset:3px}footer{display:flex;justify-content:space-between;padding:30px 0 45px;color:#aaa097;font-size:11px}footer span{color:var(--red)}[hidden]{display:none!important}@media(max-width:480px){.shell{width:calc(100% - 32px)}.header{height:62px}.intro{padding:38px 0 24px}.mobile-break{display:block}.lead{font-size:13px}.machine{padding:20px 16px 15px}.mode-row{display:block}.mode-label{display:block;margin-bottom:10px}.modes button{min-height:44px;padding:8px 13px}.result{min-height:207px;padding:22px}.phrases span{font-size:21px}.draw{min-height:64px}footer{padding:24px 0 35px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}.draw:active{transform:none}}

.copy-fallback { display:block; width:100%; min-height:5em; }
button, select { min-height:44px; }
.result-actions{display:flex;flex-wrap:wrap;justify-content:flex-end}.copy:disabled{opacity:.55;cursor:wait}

.logo-option{display:flex;align-items:center;gap:6px;margin:0 0 14px;font-size:12px;color:#71695f;cursor:pointer}.logo-option input{width:18px;height:18px;accent-color:var(--red)}
.intro{padding:14px 0 18px}.intro>p:first-child{margin:0 0 12px}.intro h1{font-size:clamp(26px,6vw,38px)}.intro .lead{margin:10px 0 0}.machine{padding:16px}.mode-row{padding:0 0 12px}.result{margin-top:16px;min-height:0;padding:18px}.teaser{color:#51483f}.teaser p{margin:0;font-size:17px}.teaser small{font-size:12px;color:#6d665e;font-weight:400}.draw{min-height:52px}.result-footer{gap:8px;flex-wrap:wrap;color:#6d665e}.result-actions .result-copy{background:#b93622;color:white;border-radius:8px;text-decoration:none;font-size:14px;padding:10px 14px}.tags{font-size:12px;line-height:1.7;color:#5e554b}.share{display:flex;gap:6px;flex-wrap:wrap}.ep-tool-back{font-size:13px;color:#615249}.ep-tool-back:visited{color:#615249}.tool-help{font-size:14px;line-height:1.8}.tool-help h2{font-size:18px}.tool-help summary{display:flex;align-items:center;gap:8px;min-height:44px;cursor:pointer;font-weight:700;list-style:none}.tool-help summary::-webkit-details-marker{display:none}.tool-help summary::after{content:"";flex:none;margin-left:auto;width:8px;height:8px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);opacity:.6}.tool-help details[open]>summary::after{transform:rotate(45deg)}.tool-help:not([open])>summary::after{transform:rotate(-45deg)}.tool-help[open]>summary::after{transform:rotate(45deg)}.tool-help{margin-top:16px;padding:0 14px;border:1px solid var(--d-line,#d8cfca);border-radius:12px}.tool-help>p{margin:0 0 12px}.tool-help details{border-top:1px solid var(--d-line,#e5ddd7)}.tool-help details p{margin:0 0 12px}@media(max-width:480px){.intro{padding:12px 0 16px}.mode-row{display:block}.mode-label{margin:0 0 6px}.modes{gap:4px}.modes button{padding:8px 10px}.machine{padding:14px}.result{padding:16px}.intro .lead{font-size:13px}}



.result-actions{align-items:center;gap:6px}.result-actions .copy,.result-actions .result-copy{display:grid;place-items:center;min-width:44px;width:44px;height:44px;padding:8px;border:1px solid #ded9cf;border-radius:8px;background:#fff;color:#51483f;text-decoration:none}.tags{margin:4px 0;color:#7c736a;font-size:12px}.logo-option{font-size:12px;color:#6d665e}
body[data-ep-shell] #copy.ep-icon-button,body[data-ep-shell] #save.ep-icon-button{background:#fff;border-color:#ded6ce}

.short-title{margin:12px 0 0;padding:10px 12px;border-left:3px solid var(--red);background:#fff;border-radius:0 8px 8px 0}.short-title small{display:block;font-size:12px;color:#6d665e;font-weight:700}.short-title span{display:block;margin-top:2px;font-size:16px;font-weight:800;line-height:1.5;overflow-wrap:anywhere}
/* 短いタイトル案は本文の下に全幅で置く（横並びだとスマホで1行数文字になる） */
.result{flex-wrap:wrap;align-content:center}.short-title{flex:1 0 100%}

/* QA修正：リード文の折り返し、ジャンルの選択状態（ダーク含む）、タップ領域と間隔 */
.nb{display:inline-block}
.modes{gap:10px}.modes button{min-width:44px}
.modes button[aria-pressed=true]::before{content:"✓ ";font-weight:800}
/* ai-dark.css は button の色を !important で固定し、:is() 内の ID で詳細度が高い。選択状態だけを上回る。 */
html[data-theme="dark"] body .modes button:not(#_){background:var(--d-surface,#221f27)!important;border-color:var(--d-line,#3a3541)!important;color:var(--d-text,#f3efe9)!important}
html[data-theme="dark"] body .modes button[aria-pressed="true"]:not(#_){background:var(--d-text,#f3efe9)!important;border-color:var(--d-accent,#f0846c)!important;color:var(--d-bg,#16141a)!important}
.result-actions{gap:10px}.share,.share .ep-result-share{gap:10px}
.logo-option{min-height:44px;gap:10px;margin:0 0 6px}.logo-option input{width:22px;height:22px;flex:none}

.tok{white-space:nowrap}.phrases span{text-wrap:balance}.short-title span{text-wrap:balance}
.phrases span,.short-title span{word-break:auto-phrase}

/* 3行目（出来事）は画像と同じ朱にする（2026-11-04）。ダーク表示は ai-dark.css の一律の文字色より強く指定し、読みやすい明るい朱にする */
.teaser .hl{color:var(--red)}
html[data-theme="dark"] body .phrases span:last-child:not(#_),html[data-theme="dark"] body .teaser .hl:not(#_){color:var(--d-accent)!important}
.tool-guide{margin-top:24px;font-size:14px;line-height:1.8}.tool-guide h2{font-size:18px;margin:0 0 8px}.tool-guide p{margin:0 0 12px}.guide-examples{margin:0 0 14px;padding-left:1.3em}.guide-examples li+li{margin-top:6px}.guide-links{margin-top:14px;font-size:13px;color:#5e554b}
