/* AMATSUMUGI | 和紙・墨・朱印 ブランド共通テーマ */
:root{color-scheme:light!important;--am-paper:#F3EFE6;--am-paper-light:#FAF8F3;--am-ink:#252126;--am-muted:#655E57;--am-red:#B83B32;--am-gold:#B89B65;--am-line:#D8CCBA}
html,body{background:var(--am-paper)!important;background-image:none!important;color:var(--am-ink)!important}
body::before,body::after{background-image:none!important;box-shadow:none!important}
.stars{display:none!important}
body{font-family:-apple-system,BlinkMacSystemFont,'Hiragino Kaku Gothic ProN','Yu Gothic',sans-serif}
body :is(h1,h2,h3,h4),body .hero h1,body header h1{color:var(--am-ink)!important;text-shadow:none!important}
body :is(p,li,label,small),body .muted,body .hero p,body .eyebrow,body .brand,body .nav a,body nav a{color:var(--am-muted)}
body :is(a){color:var(--am-red)}
body :is(.panel,.result,.results,.reading,.section,.box,.summary,.interpretation,.detail,.result-card,.info-card,.fortune-card,.compatibility-card){background:var(--am-paper-light)!important;background-image:none!important;color:var(--am-ink)!important;border-color:var(--am-line)!important;box-shadow:0 5px 22px #2521260a!important}
body :is(.panel,.result,.results,.reading,.result-card) :is(p,span,li,div){text-shadow:none}
body :is(input,select,textarea){background:#FFFDF9!important;background-image:none!important;color:var(--am-ink)!important;border:1px solid #C9BDAA!important;box-shadow:none!important}
body :is(input,select,textarea):focus{outline:2px solid #B83B3255;outline-offset:1px}
body button:not(.kagura-chat-toggle):not(.kagura-chat-close),body .gold,body .outline{background:var(--am-red)!important;background-image:none!important;color:#FFF9F1!important;border:1px solid var(--am-red)!important;box-shadow:none!important;text-shadow:none!important}
body button:not(.kagura-chat-toggle):not(.kagura-chat-close):hover,body .gold:hover{filter:brightness(.94)}
body :is(.nav,header nav,.foot,footer){border-color:var(--am-line)!important}
body :is(.card,.tarot-card,.animal-card,.kin-card){border-color:var(--am-gold)!important;box-shadow:0 4px 14px #25212616}
body :is(.sigil,.spark,.moon){color:var(--am-red)!important;text-shadow:none!important}
body .amatsumugi-global-footer{color:var(--am-ink)!important;border-top:1px solid var(--am-line)!important;margin-top:64px}
body .amatsumugi-global-footer .am-footer-title{color:var(--am-ink)!important}
body .amatsumugi-global-footer .am-footer-grid a{background:var(--am-paper-light)!important;color:var(--am-ink)!important;border:1px solid var(--am-line)!important;border-radius:8px!important}
body .amatsumugi-global-footer .am-footer-grid a:hover{background:#EDE3D4!important;border-color:var(--am-gold)!important}
body .amatsumugi-global-footer .am-footer-brand{color:var(--am-ink)!important}
body .amatsumugi-global-footer .am-footer-copy{color:var(--am-muted)!important}
.amatsumugi-footer-menu{display:none!important}
/* 神楽のお出迎えは変更しない。全画面オーバーレイとチャットの配色を保護 */
#kagura-screen,#kagura-screen :is(h1,h2,h3,h4,p,span,div,a,button,label){color:inherit}
#kagura-screen{background:#131017!important;color:white!important}
#kagura-screen button{background:revert-layer!important;background-image:revert-layer!important;color:inherit!important;border-color:inherit!important}
#kagura-root :is(.kagura-chat-panel,.kagura-chat-box){color:inherit}
@media(max-width:600px){body :is(.panel,.result,.results){box-shadow:none!important}.amatsumugi-global-footer{padding-left:12px;padding-right:12px}}
@media print{body{background:white!important}.amatsumugi-global-footer{display:none!important}}

/* 2026-11-18: 漆黒の単一フッター。元のフッターを再利用し、二重表示しない */
body footer.amatsumugi-dark-footer{
 box-sizing:border-box!important;position:relative!important;
 width:100vw!important;max-width:none!important;
 left:50%!important;margin-left:-50vw!important;margin-right:0!important;
 margin-top:64px!important;padding:46px max(24px,calc((100vw - 1080px)/2)) 42px!important;
 background:#111111!important;background-image:none!important;
 border:0!important;border-top:1px solid #37302b!important;
 border-radius:0!important;color:#F3EFE6!important;
 box-shadow:none!important;text-align:center!important;
}
body footer.amatsumugi-dark-footer :is(strong,p,span,small){color:#F3EFE6!important;text-shadow:none!important}
body footer.amatsumugi-dark-footer p{opacity:.76!important}
body footer.amatsumugi-dark-footer .amatsumugi-unified-menu{max-width:900px;margin:0 auto 34px;padding:0 0 30px;border-bottom:1px solid #403b37}
body footer.amatsumugi-dark-footer .am-unified-title{font-weight:700;font-size:1.1rem;letter-spacing:.08em;margin:0 0 18px;color:#F3EFE6!important}
body footer.amatsumugi-dark-footer .am-unified-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
body footer.amatsumugi-dark-footer .am-unified-grid a{display:flex;align-items:center;justify-content:center;min-height:52px;padding:10px 12px;box-sizing:border-box;border:1px solid #665d53;border-radius:8px;background:#242222!important;color:#F3EFE6!important;text-decoration:none!important;font-size:clamp(13px,3vw,16px);font-weight:600;line-height:1.5}
body footer.amatsumugi-dark-footer .am-unified-grid a:hover,body footer.amatsumugi-dark-footer .am-unified-grid a:focus-visible{background:#3B2926!important;border-color:#B83B32!important}
body footer.amatsumugi-dark-footer .amatsumugi-footer-menu{display:none!important}
@media(min-width:740px){body footer.amatsumugi-dark-footer .am-unified-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){body footer.amatsumugi-dark-footer{padding:34px 18px 38px!important;margin-top:40px!important}}
@media print{body footer.amatsumugi-dark-footer{display:none!important}}

/* Opening screen: readable, brand-consistent greeting buttons. */
body #kagura-screen #kagura-start-panel #kagura-start{
  background:#B83B32!important;background-image:none!important;
  color:#FFFFFF!important;border:1px solid #B83B32!important;
  text-shadow:none!important;opacity:1!important;
}
body #kagura-screen #kagura-start-panel #kagura-skip{
  background:#F3EFE6!important;background-image:none!important;
  color:#252126!important;border:1px solid #D7CBBC!important;
  text-shadow:none!important;opacity:1!important;
}
body #kagura-screen #kagura-start-panel button:hover{filter:brightness(.95)}

/* Force the shared fortune menu into a vertical heading + grid on mobile.
   Some individual page styles set nav {display:flex}, causing the title to sit left. */
body footer.amatsumugi-dark-footer nav.amatsumugi-unified-menu {
  display:block!important;
  width:100%!important;
  box-sizing:border-box!important;
  text-align:center!important;
}
body footer.amatsumugi-dark-footer .am-unified-title {
  display:block!important;
  width:100%!important;
  text-align:center!important;
  margin:0 auto 20px!important;
}
body footer.amatsumugi-dark-footer .am-unified-grid {
  display:grid!important;
  width:100%!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
}
@media(min-width:740px) {
 body footer.amatsumugi-dark-footer .am-unified-grid {
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
 }
}
