:is(#akiya-app, #korekara-guide) {
&{
  --brown:#6b5238;--text:#3d3227;--soft:#6b5d50;--orange:#e89b5b;--deep-orange:#a45b27;--ivory:#fbf7f0;--line:#e8ddc8;--sage:#eef2e5;--heading:'Zen Maru Gothic','Hiragino Maru Gothic ProN','Noto Sans JP',sans-serif;
  font-family:'Noto Sans JP','Hiragino Kaku Gothic ProN','Yu Gothic',Meiryo,sans-serif;color:var(--text);font-size:16px;background:var(--ivory)
}
*{box-sizing:border-box}&{margin:0;line-height:1.85;letter-spacing:.02em;-webkit-text-size-adjust:100%}
button,select,input,textarea{font:inherit;color:inherit}button,a{touch-action:manipulation}button,summary{cursor:pointer}
:focus-visible{outline:3px solid #955322;outline-offset:3px}
header,footer{background:#fff}.shell{width:min(1180px,calc(100% - 64px));margin:auto;display:flex;align-items:center}
.mast{gap:20px;min-height:90px}.brand{display:block;width:auto;height:65px}.service,.demo,.foot{color:var(--soft);font-size:.88rem}
.service{border-left:1px solid var(--line);padding-left:20px}.demo{margin-left:auto;border-radius:999px;padding:2px 13px;border:1px solid var(--line)}
main{min-height:65vh}main:focus{outline:none}footer{border-top:1px solid var(--line)}.foot{justify-content:space-between;padding:20px 0}.foot .brand{height:45px}
h1,h2,legend{color:var(--brown)}h1,h2{font-family:var(--heading);font-weight:500;line-height:1.5;letter-spacing:.04em}
[hidden]{display:none!important}
#akiya-view:focus,.result-heading h1:focus{outline:none}
.result-pending{min-height:65vh}
.hero{position:relative;isolation:isolate;overflow:hidden;background:linear-gradient(135deg,#fff6e9,#f5e8d0 50%,#eef2e5);display:grid;align-items:start;min-height:65vh}
.hero-inner{position:relative;z-index:1;width:min(1120px,calc(100% - 64px));margin:0 auto;padding:clamp(40px,6vw,80px) 0;display:grid;grid-template-columns:1fr 1fr;align-items:center;column-gap:clamp(30px,6vw,84px);align-content:start}
.hero-disclosure{grid-column:1/-1;width:100%;max-width:44rem;align-self:start}.hero-copy{min-width:0;container-type:inline-size}
.hero h1{
  font-size:clamp(30px,4.5vw,46px);
  font-size:min(clamp(1.875rem,4.5vw,2.875rem),max(1.5rem,9.35cqi));
  line-height:1.28;
  margin:.3em 0;
}
.hero h1 > :is(span,em){display:inline-block;white-space:nowrap}.hero h1 em{font-style:normal;color:var(--deep-orange)}
.hero p{font-size:1.08rem;color:var(--soft);line-height:1.95;margin:.8em 0}.hero p.small{font-size:.88rem;max-width:34em}.hero .picture{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;border-radius:28px;box-shadow:0 20px 50px rgba(122,144,104,.18)}
.hero .flyer-note {
  padding: .5em .9em;
  background: #fff2df;
  border-inline-start: 3px solid #c48a58;
  border-radius: 0 6px 6px 0;
}
.hero .flyer-note strong { color: #854a25; }
.tag,.eyebrow{font-size:.9rem;color:var(--brown);font-weight:700;letter-spacing:.1em}
.actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center;margin:20px 0 12px}
.btn{display:inline-flex;justify-content:center;align-items:center;text-align:center;text-decoration:none;line-height:1.5;min-height:46px;border:1px solid #c8b79d;border-radius:999px;padding:11px 24px;background:#fff;color:var(--brown);font-weight:700}
.btn.primary{background:var(--orange);border-color:var(--orange);color:#3b2919;box-shadow:0 4px 14px #e89b5b3b}.btn:hover{box-shadow:0 4px 14px #8b6f4e24}.btn:disabled{opacity:.6;cursor:wait}
.wrap{max-width:860px;margin:auto;padding:clamp(32px,5vw,64px) 24px}.wrap h1{font-size:clamp(1.8rem,4vw,2.6rem);margin:4px 0 16px}
.steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;list-style:none;padding:0}.steps li{font-size:.88rem;border-top:5px solid var(--line);padding-top:7px;color:var(--soft)}.steps .active{border-top-color:var(--orange);color:var(--brown)}.steps [aria-current]{font-weight:700}
.small,.notice{font-size:.9rem;color:var(--soft);line-height:1.8}.card,.report{background:white;border:1px solid var(--line);border-radius:24px;padding:clamp(20px,4vw,42px);margin:18px 0;box-shadow:0 6px 24px rgba(139,111,78,.08)}
.field{min-width:0;border:0;padding:0 0 24px;margin:0 0 24px;border-bottom:1px solid var(--line)}.field:last-child{border:0;padding:0;margin:0}.field legend{font-weight:700;line-height:1.7;padding:0;margin-bottom:12px}.field legend .small{font-weight:400;margin-left:3px}.field p.small{margin:0 0 10px}
.choices{display:flex;gap:8px;flex-wrap:wrap}.choice{display:flex;align-items:center;gap:8px;cursor:pointer;padding:9px 14px;border:1px solid var(--line);border-radius:14px;background:var(--ivory);font-size:1rem;line-height:1.55;min-height:44px}
.choice:hover,.choice:focus-within{border-color:#c48a58}.choice:has(input:checked){background:#fff0dd;border-color:var(--deep-orange)}.choice input{accent-color:#975623;margin:0;flex:none}
.input{width:min(100%,480px);display:block;border:1px solid #b7a892;border-radius:12px;background:#fff;padding:10px 12px;line-height:1.6;margin:4px 0 10px}
textarea.input{width:min(100%,600px);resize:vertical}.input::placeholder{color:#71675d;opacity:1}
.report h2{font-size:1.45rem;margin:1.35em 0 .45em}.report h2:first-child{margin-top:0}.report p{margin:.45em 0;line-height:1.95}.report ul{padding-inline-start:1.35em}.report li{margin-bottom:.35em}.report li::marker{color:#89603d}.lead{padding-left:15px;border-left:4px solid var(--orange)}
#opinion.report{border-top:4px solid var(--orange)}.contact{background:#f4f7ef;border-color:#d4dfc8}.notice{background:#fffaf1}
details summary{font-weight:700;padding:12px 0;color:var(--brown)}.sumrow{display:grid;grid-template-columns:1fr 1.5fr;gap:12px;border-bottom:1px solid var(--line);padding:9px 0;font-size:.95rem;overflow-wrap:anywhere}.sumrow dt{font-weight:600}.sumrow dd{margin:0}
.err{color:#963f22;font-weight:700}.print-summary{display:none}
/* The report shares the type, photograph and seasonal colors of the service pages. */
.result-intro{background:linear-gradient(115deg,#fff6e9,#fbf0dc 60%,#eef2e5)}
.result-heading{width:min(1060px,calc(100% - 64px));margin:auto;display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);align-items:center;gap:clamp(24px,5vw,72px);padding:clamp(30px,4vw,56px) 0}
.result-heading .eyebrow{margin:0;color:#795535}
.result-heading h1{font-size:clamp(1.8rem,3.6vw,2.85rem);line-height:1.48;margin:.45em 0;color:#543d28;font-weight:500;text-wrap:pretty;overflow-wrap:anywhere}
.result-property{margin:.75rem 0 0;font-size:.96rem;color:var(--soft)}
.result-photo{display:block;width:100%;height:clamp(165px,18vw,235px);object-fit:cover;object-position:50% 56%;border-radius:60px 14px 60px 14px}
.result-&{max-width:840px;padding-top:1.2rem;overflow-wrap:anywhere}
.result-meta{display:flex;align-items:baseline;justify-content:space-between;gap:.4rem 1.5rem;flex-wrap:wrap;color:var(--soft);font-size:.9rem}
.result-body a:not(.btn){color:#715033;text-underline-offset:.22em}
.result-reading{padding:1.2rem 0 .6rem}
.result-reading section{padding:1.5rem 0;border-bottom:1px solid var(--line)}
.result-reading h2,.result-body .report h2{margin:0 0 .65em;font-size:clamp(1.25rem,2.6vw,1.55rem)}
.result-reading .result-opening{padding:1.4rem 0 1.65rem}
.result-opening h2::before{content:"";display:inline-block;width:1.3em;height:3px;background:var(--orange);margin:0 .5em .28em 0;border-radius:3px}
.result-reading p,.result-reading li{line-height:1.95}
.result-reading p{margin:.45em 0}.result-reading ul{margin:.6em 0;padding-left:1.3em}.result-reading li+li{margin-top:.4em}.result-reading li::marker{color:#9a7653}
.result-reading #opinion{border:0;font-size:.9rem;color:var(--soft);padding:1rem 0}
.result-body .report{box-shadow:none}
.result-body .notice{background:transparent;border:0;padding:.8rem 0;margin:1.1rem 0 1.6rem}
.result-body .notice h2{font-size:1.1rem}
.result-body .contact{background:linear-gradient(120deg,#eef2e5,#f7f9f2);border:0}
.result-answers{border-bottom:1px solid var(--line);margin:1.4rem 0}
@media(max-width:720px){
 .result-heading{width:calc(100% - 40px);grid-template-columns:1fr;gap:1rem;padding:1.65rem 0}
 .result-photo{height:clamp(90px,23vw,140px);border-radius:26px 8px 26px 8px}
 .result-reading section{padding:1.2rem 0}
}
@media print{
 .result-intro,.result-body .contact{background:white}.result-heading{display:block;width:100%;padding:0}.result-heading h1{font-size:20pt}
 .result-reading section,.result-reading .result-opening,.result-reading #opinion{padding:4pt 0;border:0}.result-reading h2{break-after:avoid}
}
@media(max-width:720px){
 .shell,.hero-inner{width:calc(100% - 40px)}.mast{min-height:70px;gap:10px}.brand{height:48px}.service{font-size:.8rem;padding-left:10px}.demo{padding:1px 8px}
 .hero-inner{display:flex;flex-direction:column;padding:34px 0;gap:22px}.hero-copy{width:100%}.hero .picture{aspect-ratio:16/9;border-radius:20px}.hero p{font-size:1rem}
 .wrap{padding:28px 16px}.steps{gap:5px}.steps li{font-size:.82rem;line-height:1.55}.card,.report{padding:20px 16px;border-radius:20px}.choice{padding:8px 10px}.sumrow{grid-template-columns:1fr;gap:2px}.foot{gap:12px;font-size:.8rem}
}
@media(max-width:400px){.service{display:none}.btn{max-width:100%}.foot .brand{height:36px}}
@media print{
 @page{size:A4;margin:16mm}&{background:white;color:#302a24;font-size:10pt}main{min-height:0}.wrap,.shell{width:100%;max-width:none;padding:0}.mast{min-height:0}.brand{height:40px}.demo,.no-print,.actions,details{display:none!important}.print-summary{display:block}.card,.report{background:white;box-shadow:none;border:0;padding:0;margin:12px 0}.wrap h1{font-size:20pt}.report h2{font-size:14pt;break-after:avoid}.report li,.sumrow{break-inside:avoid}.small,.notice{font-size:9pt}footer{margin-top:16px}
}

#reportAccess{scroll-margin-top:calc(var(--header-height, 80px) + 1rem)}
#reportAccess [hidden]{display:none!important}
#pdfStatus h3.pdf-state{font-size:1.2rem;line-height:1.5;margin:1rem 0 .5rem}
#pdfShortcut{text-decoration:underline;text-underline-offset:.18em}
.pdf-state,.pdf-ready-example{background:#fff4df;color:#64461f;border-left:5px solid #af783e;padding:.7em 1em;border-radius:6px}
#pdfStatus[data-state=ready] .pdf-state,.pdf-ready-example{background:#eaf5ec;border-color:#397448;color:#245433}
.pdf-example{margin-top:.8em}.pdf-example li{margin-bottom:.5em}
#reportAccess .actions:empty,#reportAccess [role=status]:empty{display:none}

.btn.pdf-save{background:#316641;border-color:#316641;color:white;margin-top:.8rem}
.btn.pdf-save:disabled{background:#e5e3df;border-color:#c9c7c2;color:#575550;box-shadow:none;opacity:1;cursor:not-allowed}

.choice:has(input:disabled){background:#f2f0ec;border-color:#dad6ce;color:#68655f;cursor:not-allowed}

.clear-choice{background:none;border:0;padding:7px 2px;color:var(--brown);text-decoration:underline;font:inherit;font-size:.9rem;cursor:pointer}
.input option:disabled{color:#68655f;background:#f2f0ec}
.clear-choice:disabled{color:#77736f;text-decoration:none;cursor:default}

}
#akiya-app { display:block; min-height:65vh; }

/* Keep conditional questions from moving the scrollbar or triggering a second
   scroll correction while the form preserves the active control position. */
html:has([data-diagnosis-form]) { scrollbar-gutter: stable; overflow-anchor: none; }

/* Questionnaire panels contain controls and must stay still as the pointer enters or leaves. */
#akiya-app [data-diagnosis-form] .card { transform: none; transition: none; }
#akiya-app .pdf-friend-confirmed { color: #245433; font-weight: 700; }

#resultPending .pending-orbits {
  display: block;
  margin: 2.5rem auto 0;
}
.pending-orbits circle {
  transform-origin: 50% 50%;
  transform-box: view-box;
  transform: rotate(var(--start));
}
.pending-orbits circle:nth-child(1) { --start: 207deg; --period: 5s; }
.pending-orbits circle:nth-child(2) { --start: 35deg; --period: 4s; }
.pending-orbits circle:nth-child(3) { --start: 115deg; --period: 3.333333s; }
@media (prefers-reduced-motion: no-preference) {
  .pending-orbits circle { animation: akiya-pending-turn var(--period) linear infinite; }
}
@keyframes akiya-pending-turn {
  to { transform: rotate(calc(var(--start) + 1turn)); }
}
