/* Shared fixed-page design. Artwork is decorative; source copy and charts stay intact. */
body.renewal-site .tone-document{font:500 18px/1.9 var(--sans);color:var(--text)}
body.renewal-site .tone-document :is(.page-header,.sg-hero,.kg-hero,.hg-hero){position:relative;isolation:isolate;background:transparent!important;color:var(--ink)!important;padding:36px 0!important;text-align:left;border:0;overflow:hidden}
body.renewal-site .tone-document :is(.page-header,.sg-hero,.kg-hero,.hg-hero)::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--page-art) right center/cover no-repeat;opacity:.18;mask-image:linear-gradient(90deg,transparent,#000 70%);-webkit-mask-image:linear-gradient(90deg,transparent,#000 70%)}
body.renewal-site .tone-document :is(.page-header,.sg-hero,.kg-hero,.hg-hero) h1{color:var(--ink)!important;font:400 36px/1.5 var(--serif);margin:0 0 20px;max-width:25em}
body.renewal-site .tone-document :is(.page-header,.sg-hero,.kg-hero,.hg-hero) :is(p,.desc,.sg-hero__lead){color:var(--text)!important;font-size:18px!important;line-height:1.9;max-width:42em;margin:0}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-hero__inner{display:block}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-title-name{display:block;font:400 52px/1.35 var(--serif);letter-spacing:.04em;margin:0 0 12px}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-title-sub{display:block;font:400 22px/1.6 var(--serif);max-width:none}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-hero__lead{padding-top:0;margin-top:24px}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-meta{display:flex;flex-wrap:wrap;gap:12px 28px;border-top:1px solid var(--rule);border-bottom:0;padding:16px 0 0;margin:24px 0 0;color:var(--warm);font-size:16px}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-meta>span{padding:0;border:0;font-size:16px}
body.renewal-site .tone-document .sg-meta>br{display:none}
body.renewal-site .tone-document :is(.toc,.sg-jump,.kg-toc,.hg-toc){background:transparent;border:0;border-bottom:1px solid var(--rule);padding:16px 0;margin:0 0 36px}
body.renewal-site .tone-document :is(.toc,.sg-jump,.kg-toc,.hg-toc) a{background:transparent;border:0;padding:8px 16px 8px 0;min-height:44px;font-size:16px}
body.renewal-site .tone-document :is(h2,.section-title){font-weight:400;border-color:var(--rule)}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-summary-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 36px;max-width:none;margin:32px 0 44px}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-summary{grid-row:auto;background:none;border:0;border-top:1px solid var(--rule);padding:20px 0}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-summary .sg-summary__title{font:400 24px/1.5 var(--serif);max-width:none;margin:8px 0}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-profile{display:block;max-width:none;border-top:1px solid var(--rule)}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-profile__item{display:grid;grid-template-columns:140px 1fr;gap:24px;background:none;border:0;border-bottom:1px solid var(--rule);padding:16px 0;align-items:baseline}
body.renewal-site .tone-document .sg-profile__value{font-size:20px}
body.renewal-site .tone-document :is(.sg-note,.kg-note,.hg-wrap p,.sg-summary__body,.sg-combo__body p){font-size:18px;line-height:1.9}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-choices{background:none;padding:0;gap:12px}
body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card){position:relative;isolation:isolate;background:#fff;border:1px solid var(--rule);box-shadow:none;transform:none;padding:22px;overflow:hidden;transition:border-color 1s ease}
body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card)::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--card-art,var(--page-art)) right center/cover no-repeat;opacity:0;transition:opacity 1s ease;pointer-events:none}
@media(hover:hover) and (pointer:fine){body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card):hover::before{opacity:.14}body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card):hover{border-color:#b9aa94;text-decoration:none!important;transform:none;box-shadow:none}}
body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card):focus-within::before{opacity:.14}
body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card):is(:hover,:focus-within) *{text-decoration:none!important}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-articles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px;max-width:none}
body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-article{display:block;position:relative;isolation:isolate;background:none;border:0;border-bottom:1px solid var(--rule);padding:24px 0;transform:none;box-shadow:none;min-height:80px}
body.renewal-site .tone-document .sg-article>span:first-child{display:none}
body.renewal-site .tone-document .sg-article strong{font:400 22px/1.6 var(--serif)}
body.renewal-site .tone-document .sg-article::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--page-art) right center/cover;opacity:0;transition:opacity 1s ease;pointer-events:none}
@media(hover:hover) and (pointer:fine){body.renewal-site .tone-document .sg-article:hover::before{opacity:.14}body.renewal-site .tone-document .sg-article:hover,body.renewal-site .tone-document .sg-article:hover *{text-decoration:none!important}}
body.renewal-site .tone-document .sg-combo summary>br{display:none}
body.renewal-site .tone-document .sg-combo__body{background:transparent;padding:20px 0}
body.renewal-site .tone-document :is(.sg-cta,.houi-entry){background:transparent;border:0;border-top:1px solid var(--rule);padding:24px 0}
body.renewal-site .tone-document :is(input,select,textarea){font-size:16px;min-height:48px;border:1px solid var(--rule);background:#fff;color:var(--ink);max-width:100%;padding:10px 12px}
body.renewal-site .tone-document input[type=checkbox]{min-height:24px;width:24px;vertical-align:middle}
body.renewal-site .tone-document input[type=submit]{background:var(--ink);color:#fff;border:0;min-height:48px;padding:12px 24px}
body.renewal-site .tone-document .step-head{position:relative;isolation:isolate;padding:24px 0}
body.renewal-site .tone-document .step-head::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:var(--page-art) right center/cover;opacity:.15;mask-image:linear-gradient(90deg,transparent,#000)}
body.renewal-site .tone-document .step-num{display:none}
/* 入力ページは外枠の余白を使い、見出しをセクション上端へ寄せる。 */
body.renewal-site .tone-document #self.step{padding-top:0}
body.renewal-site .tone-document #self>.step-head{padding:0;margin-bottom:24px}
body.renewal-site .tone-document #self>.formcard{margin-top:24px}
@media(max-width:850px){
 body.renewal-site .tone-document :is(.page-header,.sg-hero,.kg-hero,.hg-hero){padding:28px 0!important}
 body.renewal-site .tone-document :is(.page-header,.sg-hero,.kg-hero,.hg-hero) h1{font-size:28px}
 body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-title-name{font-size:40px}
 body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-title-sub{font-size:20px}
 body.renewal-site .tone-document :is(.star-guide,#star-guide-2) :is(.sg-summary-grid,.sg-articles){grid-template-columns:1fr}
 body.renewal-site .tone-document :is(.star-guide,#star-guide-2) .sg-profile__item{grid-template-columns:90px minmax(0,1fr);gap:16px}
 body.renewal-site .tone-document .sg-choices{grid-template-columns:repeat(2,minmax(0,1fr))}
 body.renewal-site .tone-document :is(.sg-choice,.star-card,.cta-card){padding:18px}
}
@media(prefers-reduced-motion:reduce){body.renewal-site .tone-document *,body.renewal-site .tone-document *::before{transition:none!important}}

body.renewal-site .tone-document .sg-summary__label{font-size:16px}
.tone-document .star-card:has(a[href*="/ippaku-suisei/"]),.tone-document .sg-choice[href$="#combo-1"]{--card-art:url("article-heroes/01-ippaku.png")}
.tone-document .star-card:has(a[href*="/jikoku-dosei/"]),.tone-document .sg-choice[href$="#combo-2"]{--card-art:url("article-heroes/02-jikoku.png")}
.tone-document .star-card:has(a[href*="/sanpeki-mokusei/"]),.tone-document .sg-choice[href$="#combo-3"]{--card-art:url("article-heroes/03-sanpeki.png")}
.tone-document .star-card:has(a[href*="/shiroku-mokusei/"]),.tone-document .sg-choice[href$="#combo-4"]{--card-art:url("article-heroes/04-shiroku.png")}
.tone-document .star-card:has(a[href*="/goou-dosei/"]),.tone-document .sg-choice[href$="#combo-5"]{--card-art:url("article-heroes/05-goou.png")}
.tone-document .star-card:has(a[href*="/roppaku-kinsei/"]),.tone-document .sg-choice[href$="#combo-6"]{--card-art:url("article-heroes/06-roppaku.png")}
.tone-document .star-card:has(a[href*="/shichiseki-kinsei/"]),.tone-document .sg-choice[href$="#combo-7"]{--card-art:url("article-heroes/07-shichiseki.png")}
.tone-document .star-card:has(a[href*="/happaku-dosei/"]),.tone-document .sg-choice[href$="#combo-8"]{--card-art:url("article-heroes/08-happaku.png")}
.tone-document .star-card:has(a[href*="/kyushi-kasei/"]),.tone-document .sg-choice[href$="#combo-9"]{--card-art:url("article-heroes/09-kyushi.png")}

/* Calculator uses the same quiet surfaces as the entry and forecast pages. */
body.renewal-site .tone-document .formcard{border:1px solid var(--rule);box-shadow:none}
body.renewal-site .tone-document #result .main-star{background:var(--paper);color:var(--ink);isolation:isolate}
body.renewal-site .tone-document #result .main-star::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--star-art,var(--page-art)) right center/cover;opacity:.12;pointer-events:none}
body.renewal-site .tone-document #result .main-star .star-title{color:var(--ink);font-weight:400}
body.renewal-site .tone-document #result .main-star :is(p,.star-kind,.result-reading,.kigaku-result-stars__hint){color:var(--text)}
body.renewal-site .tone-document #matters .card{position:relative;isolation:isolate;background:#fff;border:1px solid var(--rule);box-shadow:none;transform:none}
body.renewal-site .tone-document #matters .card::before{content:"";position:absolute;inset:0;z-index:-1;background:var(--card-art,var(--page-art)) right center/cover;opacity:0;pointer-events:none;transition:opacity .35s ease}
/* Content-specific artwork; keep copy clear on the left while the scene appears at right. */
body.renewal-site .tone-document #matters #compat{--card-art:url("compatibility-fabrics-v2.png");--card-art-opacity:.28}
body.renewal-site .tone-document #matters #direction{--card-art:url("houi-direction-flow.png");--card-art-opacity:.76}
body.renewal-site .tone-document #matters :is(#compat,#direction)::before{background-image:linear-gradient(90deg,rgba(255,255,255,.78),rgba(255,255,255,.24) 58%,transparent),var(--card-art)}
body.renewal-site .tone-document #matters #compat::before{background-image:linear-gradient(90deg,rgba(255,255,255,.9),rgba(255,255,255,.5) 65%,rgba(255,255,255,.1)),var(--card-art)}
@media(hover:hover) and (pointer:fine){body.renewal-site .tone-document #matters .card:hover::before{opacity:var(--card-art-opacity,.14)}}
body.renewal-site .tone-document #matters .card:focus-within::before{opacity:var(--card-art-opacity,.14)}
@media(prefers-reduced-motion:reduce){body.renewal-site .tone-document #matters .card::before{transition:none}}

/* Nine-star introduction cards show their own artwork at rest. */
body.renewal-site .tone-document #stars .star-card,
body.renewal-site .tone-document #stars .star-card:is(:hover,:focus-within){border:1px solid var(--rule);background:#fff;box-shadow:none;transform:none;transition:none}
body.renewal-site .tone-document #stars .star-card::before,
body.renewal-site .tone-document #stars .star-card:is(:hover,:focus-within)::before{opacity:.14;transition:none}

/* 本命星には九星紹介と同じ象意背景を使う。 */
.main-star[data-star="1"]{--star-art:url("article-heroes/01-ippaku.png")}
.main-star[data-star="2"]{--star-art:url("article-heroes/02-jikoku.png")}
.main-star[data-star="3"]{--star-art:url("article-heroes/03-sanpeki.png")}
.main-star[data-star="4"]{--star-art:url("article-heroes/04-shiroku.png")}
.main-star[data-star="5"]{--star-art:url("article-heroes/05-goou.png")}
.main-star[data-star="6"]{--star-art:url("article-heroes/06-roppaku.png")}
.main-star[data-star="7"]{--star-art:url("article-heroes/07-shichiseki.png")}
.main-star[data-star="8"]{--star-art:url("article-heroes/08-happaku.png")}
.main-star[data-star="9"]{--star-art:url("article-heroes/09-kyushi.png")}

/* 標準OSポップアップではなく、装飾可能なselectメニューに色を適用。 */
@supports (appearance:base-select){
 body.renewal-site #birthForm select,
 body.renewal-site #birthForm select::picker(select){appearance:base-select}
 body.renewal-site #birthForm select{display:flex;align-items:center;justify-content:space-between;height:48px}
 body.renewal-site #birthForm select::picker(select){
  background:#fff;color:var(--ink);border:1px solid var(--rule);
  font:16px/1.6 var(--sans);max-height:320px;overflow-y:auto;
  scrollbar-color:var(--rule) var(--paper);scrollbar-width:thin;
 }
 body.renewal-site #birthForm select option{padding:10px 12px;min-height:44px}
 body.renewal-site #birthForm select option:checked,
 body.renewal-site #birthForm select option:hover,
 body.renewal-site #birthForm select option:focus{background:var(--surface-header);color:var(--text)}
}

/* 方位入門: 地図と盤を比較し、手順を文章で追える配置。 */
body.renewal-site .houi-guide .hg-learning-pair{display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:start;margin:32px 0}
body.renewal-site .houi-guide .hg-learning-pair figure{margin:0;min-width:0;max-width:100%;background:none;border:0;padding:0}
body.renewal-site .houi-guide .hg-learning-pair h3{font:400 22px/1.5 var(--serif);margin:0 0 16px}
body.renewal-site .houi-guide .hg-learning-pair svg{width:100%;height:auto;display:block}
body.renewal-site .houi-guide .hg-learning-pair figcaption{font:18px/1.8 var(--sans)!important;color:var(--text);margin-top:16px}
body.renewal-site .houi-guide .hg-learning-board svg>rect:nth-of-type(-n+2){fill:transparent;stroke:none}
body.renewal-site .houi-guide .hg-learning-board svg>text:first-of-type{fill:var(--warm);font-family:var(--serif);font-weight:400}
body.renewal-site .houi-guide .hg-orientation-note{border-left:2px solid var(--gold);padding:0 0 0 20px}
body.renewal-site .houi-guide .hg-reading-order{padding-left:28px;margin:24px 0}
body.renewal-site .houi-guide .hg-reading-order li{padding-left:8px;margin:24px 0}
body.renewal-site .houi-guide .hg-reading-order h3{margin:0 0 10px}
@media(max-width:760px){body.renewal-site .houi-guide .hg-learning-pair{grid-template-columns:1fr;gap:32px}body.renewal-site .houi-guide .hg-learning-pair figure{width:100%}}

/* 歴史から日常の移転へつなぐ方位ガイド。 */
body.renewal-site .tone-document:has(#houi-guide){--page-art:url('houi-direction-flow.png')}
body.renewal-site #houi-guide .hg-hero{padding:48px 0!important;min-height:310px}
body.renewal-site #houi-guide .hg-hero::after{opacity:.65;mask-image:linear-gradient(90deg,transparent,#000 65%);background-position:right center}
body.renewal-site #houi-guide .hg-hero h1{font:400 40px/1.5 var(--serif);max-width:22em;margin:14px 0 20px}
body.renewal-site #houi-guide .hg-hero .hg-hero-kicker{font-size:16px!important;color:var(--warm)!important;letter-spacing:.06em}
body.renewal-site #houi-guide .hg-opening{max-width:42em;margin:32px 0 44px}
body.renewal-site #houi-guide .hg-relocation-examples{display:grid;grid-template-columns:1fr 1fr;gap:32px;margin:24px 0}
body.renewal-site #houi-guide .hg-relocation-examples>div{border-top:1px solid var(--rule);padding-top:20px}
body.renewal-site #houi-guide .hg-relocation-examples h3{margin:0 0 12px}
@media(max-width:760px){body.renewal-site #houi-guide .hg-hero{padding:28px 0!important;min-height:0}body.renewal-site #houi-guide .hg-hero h1{font-size:28px}body.renewal-site #houi-guide .hg-hero::after{opacity:.35;background-position:70% center}body.renewal-site #houi-guide .hg-relocation-examples{grid-template-columns:1fr;gap:16px}}
body.renewal-site #houi-guide .hg-hero::after{background-image:url('houi-direction-flow.png')}
body.renewal-site #houi-guide .hg-toc[role=tablist]{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 0 20px;margin-top:24px}
body.renewal-site #houi-guide .hg-toc button{font:400 16px/1.5 var(--sans);min-height:48px;padding:12px 14px;border:1px solid var(--rule);background:transparent;color:var(--warm);text-align:left}
body.renewal-site #houi-guide .hg-toc button[aria-selected=true]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
body.renewal-site #houi-guide .hg-reading-panel>section:first-child{margin-top:24px}
body.renewal-site #houi-guide .hg-reading-panel:focus-visible{outline:2px dotted var(--warm);outline-offset:5px}
@media(max-width:760px){body.renewal-site #houi-guide .hg-toc[role=tablist]{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Calculator headings keep the plain paper ground. */
body.renewal-site .tone-document :is(#self,#matters)>.step-head::after{content:none;background:none}

/* Beginner destinations are links, not bordered CTA sections. */
body.renewal-site .tone-document #about-kigaku a.houi-entry{display:inline-flex;align-items:center;min-height:44px;padding:8px 0;border:0;font:500 16px/1.5 var(--sans)}
