:root{font-family:-apple-system,BlinkMacSystemFont,"Hiragino Mincho ProN","Yu Mincho","Noto Serif JP",serif;color:#42352b;background:#f7f2e7}*{box-sizing:border-box}body{margin:0;background:repeating-linear-gradient(0deg,transparent 0 27px,#c9bca510 28px),radial-gradient(ellipse at 50% 0%,#f4e5d0,#faf7f0 70%);min-height:100vh}.shell{max-width:480px;margin:auto;padding:16px 15px 36px}.topbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 0 10px;font-family:system-ui,sans-serif;font-size:12px;font-weight:700;color:#7c2925}.brand{display:flex;align-items:center;gap:6px}.crest{font-size:19px}.demo{border:1px solid #bfa97e;border-radius:30px;background:#fffaf0;padding:7px 10px;font-size:11px;color:#7e6a4e}.torii{height:51px;position:relative;width:140px;margin:0 auto -5px;z-index:2}.torii-top{height:9px;background:#ad302b;position:absolute;top:3px;left:0;right:0;border-radius:5px 5px 1px 1px;transform:perspective(80px) rotateX(8deg)}.torii-beam{height:7px;background:#bf4537;position:absolute;top:19px;left:10px;right:10px}.torii-post{width:9px;height:39px;background:#b63a32;position:absolute;top:12px}.torii-post.left{left:26px}.torii-post.right{right:26px}.hero{position:relative;background:#fffdf6;border:1px solid #dfcdb2;outline:3px solid #fffdf6;box-shadow:0 8px 26px #70502d1a;text-align:center;padding:22px 16px 23px;margin:9px 3px 28px}.hero:before,.hero:after{content:' ';position:absolute;width:22px;height:22px;border-color:#b3342d;border-style:solid}.hero:before{top:8px;left:8px;border-width:2px 0 0 2px}.hero:after{bottom:8px;right:8px;border-width:0 2px 2px 0}.shide{color:#b4322d;letter-spacing:7px;font-size:13px;margin-bottom:10px}.eyebrow{font-family:system-ui,sans-serif;letter-spacing:.17em;font-size:9px;font-weight:700;color:#9d8060;margin:0 0 12px}.seal{display:inline-block;color:#a72d28;border:1px solid #a72d28;padding:3px 12px;font-size:12px;letter-spacing:.3em;margin-bottom:9px}h1{font-size:30px;line-height:1.45;color:#822e29;letter-spacing:.05em;margin:0;font-weight:800}h1 em{font-style:normal;font-size:25px}.intro{font-size:13px;line-height:2;margin:13px 0 12px}.cat-frame{background:#e8d9bd;padding:5px;border:1px solid #c7b08a;position:relative;max-width:340px;margin:0 auto 18px}.cat{display:block;width:100%;height:auto}.fortune-card{position:relative;background:linear-gradient(135deg,#fffefb,#f7efe0);border:2px solid #b63a32;padding:22px 12px 25px;box-shadow:inset 0 0 0 5px #fffaf2,0 4px 13px #6b3e2d12;min-height:192px}.fortune-heading{display:block;letter-spacing:.6em;color:#a8352d;font-size:12px;font-weight:800;margin-bottom:7px}.small{font-size:12px;color:#7f6750}.fortune{font-size:66px;line-height:1.25;color:#b02e29;font-weight:900;letter-spacing:.12em;margin:5px 0 8px}.line{font-size:13px;line-height:1.7;color:#665240;padding:0 38px}.fortune-stamp{position:absolute;right:10px;bottom:11px;border:2px solid #bd5b4b;color:#bd5b4b;transform:rotate(-12deg);font-size:9px;line-height:1.4;padding:3px;opacity:.65}.voice{background:#fffefa;border:1px solid #dfcdb2;padding:22px 17px 23px;margin:0 3px;box-shadow:0 5px 20px #70502d12}.section-heading{display:flex;align-items:center;justify-content:center;gap:10px}.section-symbol{color:#b73b33}.voice h2{font-size:19px;color:#7f2d29;margin:0 0 16px}.message{background:#f8f2e7;border-left:4px solid #b83b32;padding:19px 15px;line-height:2;font-size:14px;margin:0 0 18px}button{width:100%;border:0;background:#aa322d;color:white;border-radius:4px;padding:16px 12px;font-weight:800;font-size:17px;box-shadow:0 4px 0 #772521;cursor:pointer}button:active{transform:translateY(2px);box-shadow:0 2px 0 #772521}button[hidden]{display:none}#status{text-align:center;font-size:12px;color:#806b57;margin:15px 0}.note{border-top:1px solid #e8dccc;padding-top:15px;margin-top:15px;color:#776a5b;font-size:11px;line-height:1.9}.note span{color:#a3312a;font-weight:700}.note p{margin:3px 0 0}footer{text-align:center;color:#887b6b;font-size:12px;line-height:2;margin:27px 0 0}.footer-mark{font-size:22px;color:#a72d28}footer small{font-family:system-ui,sans-serif;font-size:9px;letter-spacing:.04em}@media(max-width:380px){h1{font-size:26px}h1 em{font-size:23px}.fortune{font-size:58px}.shell{padding-left:12px;padding-right:12px}}

/* 四言語切替 */
.language-switch{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;margin:7px 3px 13px;font-family:system-ui,-apple-system,sans-serif}.language-switch .lang-btn{font-size:12px;font-weight:700;padding:10px 2px;border:1px solid #d6bda2;border-radius:5px;color:#7e352d;background:#fffaf1;box-shadow:none;min-width:0;white-space:nowrap}.language-switch .lang-btn.active{background:#a72d28;color:white;border-color:#a72d28}.language-switch .lang-btn:focus-visible{outline:3px solid #dfab4e;outline-offset:2px}.language-switch .lang-btn:active{transform:none;box-shadow:none}.fortune{overflow-wrap:anywhere}.fortune.is-latin{font-size:45px;letter-spacing:.015em}.fortune.is-hangul{font-size:53px;letter-spacing:0}html[lang="en"] h1{letter-spacing:0}html[lang="en"] h1 em{font-size:23px}html[lang="en"] .seal{letter-spacing:.06em}html[lang="en"] .fortune-heading{letter-spacing:.15em}html[lang="zh"] .fortune-heading,html[lang="ko"] .fortune-heading{letter-spacing:.1em}@media(max-width:380px){.language-switch .lang-btn{font-size:11px;padding:9px 1px}.fortune.is-latin{font-size:38px}}
