*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 50% 0,#18345b,#071327 68%);color:#f7ecd7;font-family:Georgia,"Noto Serif JP",serif;min-height:100vh}.wrap{max-width:1000px;margin:auto;padding:18px}header{display:flex;justify-content:space-between;align-items:center;gap:15px;flex-wrap:wrap;padding:16px 0;border-bottom:1px solid #bda36b66}a{color:#f4d394;text-decoration:none}nav{display:flex;align-items:center;gap:15px}select,input,button{font:inherit;padding:12px;border-radius:9px;border:1px solid #a88a50;background:#0e2440;color:#fff;max-width:100%}button{cursor:pointer;background:linear-gradient(125deg,#c99a45,#f7df9d);color:#14243d;font-weight:bold;margin-top:12px}button:hover{filter:brightness(1.1)}.hero{text-align:center;padding:52px 15px 24px}.eyebrow{letter-spacing:4px;color:#d7b873;font-size:12px}.hero h1{font-size:clamp(34px,6vw,62px);margin:16px 0;color:#ffe4a2}.hero p{line-height:1.8;color:#d5ddeb}.sigil{font-size:34px;color:#d4b36c;padding:18px}.sigil span{display:inline-flex;width:100px;height:100px;border:2px solid #d4b36c;border-radius:50%;align-items:center;justify-content:center;margin:0 20px;box-shadow:0 0 35px #d4b36c55}.panel{background:#102643cc;border:1px solid #c5a56b77;border-radius:18px;padding:clamp(18px,4vw,34px);margin:22px 0;box-shadow:0 12px 36px #0005}label{display:flex;flex-direction:column;gap:10px;color:#f1d49b}form{display:flex;align-items:end;gap:18px;flex-wrap:wrap}.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:18px}.stars{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:15px;margin:20px 0}.star,.sub{background:#07192f;border:1px solid #c5a56b55;border-radius:12px;padding:18px}.star strong{font-size:24px;color:#ffe1a0;display:block;margin-top:12px}.star small{color:#b6c6d9}h2,h3{color:#f7d899}.sub{line-height:1.8;margin:14px 0}.palace{display:grid;grid-template-columns:repeat(3,1fr);max-width:480px;margin:18px auto;gap:6px}.palace div{background:#081b35;border:1px solid #aa8c57;padding:12px;text-align:center;min-height:76px}.palace b{display:block;color:#ffe4a6;font-size:22px}.pill{display:inline-block;border:1px solid #bba16d;border-radius:30px;padding:5px 10px;margin:4px}.fine,footer{color:#a9b6cb;font-size:12px;line-height:1.8;text-align:center}#direction{margin-top:18px}#reading{margin-top:22px}@media print{body{background:white;color:black}.panel,.star,.sub,.palace div{color:black;background:white}header,button,form,.fine{display:none}}
.yakulabel{display:block;margin-top:12px;font-size:.9rem}#yakusex{display:block;max-width:360px;margin:8px 0 0;padding:10px;background:#101c31;color:#f3e8c6;border:1px solid #a88b55;border-radius:8px}#exportPanel button{margin-top:10px}
@media print{body{background:white!important;color:#151515!important;font-size:11pt!important}.wrap{max-width:none!important}header,footer,.hero,.panel:has(#birthForm),.panel:has(#checkBtn),#exportPanel,.fine#disclaimer{display:none!important}#reading{display:block!important}#reading,.sub,.star,.palace,.palace div{color:#111!important;background:#fff!important;border-color:#bbb!important;box-shadow:none!important}#reading .sub{break-inside:avoid;page-break-inside:avoid}.panel:has(#reading){display:block!important;padding:0!important;border:0!important}#direction:not(:empty){display:block!important}h3,strong,b{color:#111!important}}
