@import url("./unified-preparation.css");
/* Scoped additions; legacy stylesheet bytes are unchanged. */
.home-layout-entry .home-layout-candidates{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:20px;padding:0;list-style:none}
.home-layout-entry .home-layout-candidates>li{border:1px solid var(--line,#d9e2e3);border-radius:12px;padding:20px;min-width:0;overflow-wrap:anywhere}
.home-layout-entry .home-layout-candidates .primary{white-space:normal;text-align:center;max-width:100%;box-sizing:border-box}
.home-adopted-scene .home-scene-detail-link{display:block;margin-top:10px;overflow-wrap:anywhere}
.preparation-session-library .aquarium-plan-card{overflow-wrap:anywhere}

/* One reading and action hierarchy for Home layout selection and preparation. */
.home-flow-progress{display:block;width:100%;margin:0 0 28px;color:#52685f;font-size:13px;line-height:1.6}
.home-flow-progress ol{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));list-style:none;margin:0;padding:0;gap:8px}
.home-flow-progress li{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border-bottom:2px solid #dce5df;overflow-wrap:anywhere}
.home-flow-progress li[aria-current="step"]{color:#245d53;font-weight:700;border-color:#245d53;background:#edf4ef;border-radius:10px 10px 0 0}
.home-flow-step-number{display:grid;place-items:center;flex:0 0 26px;width:26px;height:26px;border-radius:50%;background:#e6ede8;font-size:12px;font-weight:700}
.home-flow-progress [aria-current="step"] .home-flow-step-number{background:#245d53;color:#fff}
.home-layout-entry .home-flow-heading{margin-block:0 28px}
.home-layout-entry .home-flow-heading h1{font-size:clamp(26px,3vw,36px);line-height:1.5;margin-top:16px}
.home-flow-context{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:16px 0 0;padding:12px 16px;border:1px solid #dce5df;border-radius:10px;background:#f5f8f5;font-size:14px;line-height:1.7}
.home-flow-context>span{color:#52685f;font-size:12px}.home-flow-context>strong{font-weight:650;color:#245d53}
.home-adopted-scenes{padding:24px;margin-block:28px 40px;scroll-margin-top:24px}
.home-adopted-scenes-heading h2,.home-layout-entry .section h2{font-size:22px;line-height:1.5;letter-spacing:0;color:#183e40}
#home-adopted-scenes-title{scroll-margin-top:24px}
.home-adopted-scene-grid{gap:20px}
.home-adopted-scene{border-color:#dce5df;border-radius:14px}
.home-adopted-scene figcaption{padding:16px;gap:10px;font-size:13px;line-height:1.7}
.home-adopted-scene figcaption strong{font-size:17px;color:#183e40}
.home-adopted-scene .home-scene-detail-link,.home-layout-entry .primary{display:flex;align-items:center;justify-content:center;min-height:44px;padding:12px 16px;background:#245d53;border:1px solid #245d53;border-radius:10px;color:#fff;font-size:14px;font-weight:650;line-height:1.6;text-decoration:none;white-space:normal;text-align:center}
.home-adopted-scene .home-scene-detail-link{margin-top:0}
.home-adopted-scene .text-button,.home-adopted-scenes .home-scene-details>summary,.home-layout-entry :is(summary,.text-button,.secondary){min-height:44px;line-height:1.7;padding-block:10px;max-width:100%;overflow-wrap:anywhere}
.home-layout-entry .section>p{font-size:14px;line-height:1.8;margin-block:12px 20px;color:#52685f}
.home-layout-entry .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-block:20px}
.home-layout-entry .choice{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:108px;padding:18px;border:1px solid #cbd9d1;border-radius:12px;background:#fff;color:#183e40;text-decoration:none;text-align:left;position:relative}
.home-layout-entry .choice-title{font-size:16px;line-height:1.6;padding-right:0}.home-layout-entry .choice-desc{font-size:13px;line-height:1.7;color:#52685f}
.home-layout-entry .choice.selected{border:2px solid #245d53;padding:17px;background:#edf4ef;box-shadow:none}
.home-layout-entry .choice.selected::after{content:none}
.home-layout-entry .home-flow-selected{display:inline-block;align-self:flex-start;padding:2px 9px;border-radius:20px;background:#245d53;color:#fff;font-size:12px;font-weight:650;line-height:1.6}
.home-layout-entry .home-layout-candidates{gap:20px;margin-block:24px}
.home-layout-entry .home-layout-candidates>li{display:flex;flex-direction:column;align-items:stretch;gap:16px;padding:24px;border:1px solid #dce5df;border-radius:14px;background:#fff}
.home-layout-entry .home-layout-candidates h3{font-size:19px;line-height:1.6;letter-spacing:0;margin:0}
.home-layout-entry .home-layout-candidates p,.home-layout-entry .home-layout-candidates li{font-size:14px;line-height:1.8}
.home-layout-entry .home-layout-candidates p{margin:0}
.home-layout-entry .home-layout-candidates details{border-top:1px solid #dce5df;padding-top:4px}
.home-layout-entry .home-layout-candidates .primary{margin-top:auto;width:100%;box-sizing:border-box}
.home-layout-entry .home-layout-status{align-self:flex-start;padding:3px 10px;border-radius:20px;background:#edf1f4;color:#355565;font-size:12px!important;line-height:1.7!important}
.home-layout-entry [data-home-layout-status="conditional"]{background:#fff5df;color:#755723}
.home-layout-entry [data-home-layout-status="unsupported"]{background:#f0f2f0;color:#53645c}
.home-layout-entry [data-home-layout-reasons]{margin:0;padding-left:20px;color:#52685f}
.up-original>.home-flow-progress{margin-bottom:24px}
.up-original .preparation-stages{gap:8px;padding:8px;background:#edf2ee;border:1px solid #dce5df;border-radius:12px}
.up-original .preparation-stages a{min-height:44px;padding:10px 12px;border-radius:8px;line-height:1.6;font-size:14px;text-align:center}
.up-original .preparation-stages a[aria-current="step"]{background:#245d53;color:#fff}
.home-adopted-scenes :focus-visible,.home-layout-entry :focus-visible{outline:3px solid #bf8127;outline-offset:4px}
@media(hover:hover){.home-adopted-scene .home-scene-detail-link:hover,.home-layout-entry .primary:hover{background:#1b4b43;border-color:#1b4b43}.home-layout-entry .choice:hover{border-color:#245d53}}
@media(max-width:600px){
 .home-flow-progress{margin-bottom:22px;font-size:12px}.home-flow-progress ol{gap:4px}.home-flow-progress li{flex-direction:column;align-items:flex-start;gap:8px;padding:10px 8px}.home-flow-step-number{flex-basis:auto;width:24px;height:24px}
 .home-adopted-scenes{padding:16px;margin-block:24px 32px}.home-adopted-scene-grid{grid-template-columns:minmax(0,1fr);gap:20px}
 .home-layout-entry .choices{grid-template-columns:minmax(0,1fr)}.home-layout-entry .choice{min-height:88px}
 .home-layout-entry .home-layout-candidates>li{padding:20px}.home-layout-entry .home-flow-context{padding:12px}
 .up-original .preparation-stages{gap:4px;padding:6px}.up-original .preparation-stages a{font-size:12px;padding:10px 8px}
}

@media(max-width:600px){.home-flow-progress li>span:last-child{text-wrap:balance}}

/* Ffern: quiet type and thin rules. KINTO owner image: large photographs and a visible next tile. */
.home-adopted-scenes,.home-layout-entry,.up-original{--flow-paper:#f8faf7;--flow-photo:#e8eeea;--flow-ink:#233e35;--flow-muted:#52645b;--flow-line:#cbd6ce;--flow-accent:#245d53;--flow-heading:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif}
.home-adopted-scenes,.home-layout-entry{font-family:"Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif;color:var(--flow-ink)}
.home .home-copy h1,.home-adopted-scenes-heading h2,.home-layout-entry .home-flow-heading h1,.up-original .prep-heading h1{font-family:"Yu Mincho","Hiragino Mincho ProN","Noto Serif CJK JP",serif;font-weight:500;letter-spacing:.035em;line-height:1.65}
.home-adopted-scenes{padding:32px 0 24px;background:transparent;border:0;border-radius:0;margin-block:40px 56px}
.home-adopted-scenes .home-flow-progress{margin-bottom:40px}
.home-gallery-heading-row{display:flex;justify-content:space-between;align-items:baseline;gap:16px;border-bottom:1px solid var(--flow-line);padding-bottom:14px}
.home-adopted-scenes-heading h2{font-size:26px;margin:0;color:var(--flow-ink)}
.home-gallery-all{display:inline-flex;align-items:center;gap:12px;flex-shrink:0;min-height:44px;font-size:13px;line-height:1.7;letter-spacing:.04em;color:var(--flow-muted);text-decoration:none}
.home-gallery-all:hover{text-decoration:underline}.home-adopted-scenes-heading>p{font-size:13px;line-height:1.9;margin:16px 0 8px;color:var(--flow-muted)}
.home-adopted-scenes .home-scene-details{font-size:12px;margin:0 0 22px}
.home-adopted-scene-grid{display:flex;gap:24px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#a6b6aa transparent;padding-bottom:12px;min-width:0;max-width:100%}
.home-adopted-scene-grid>.home-adopted-scene{flex:0 0 30.5%;min-width:0;border:0;border-radius:0;background:transparent;overflow:visible;scroll-snap-align:start}
.home-adopted-scene-grid .home-adopted-scene-frame{position:relative;aspect-ratio:4/3!important;background:var(--flow-photo);border:1px solid var(--flow-line);border-radius:0;overflow:hidden}
.home-adopted-scene-grid .home-adopted-scene-frame img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;display:block}
.home-adopted-scene-grid .home-adopted-scene-frame img[hidden]{display:none}
.home-adopted-scene figcaption{padding:18px 0 0;gap:8px;font-size:12px;color:var(--flow-muted);line-height:1.8}
.home-adopted-scene figcaption strong{font-size:18px;font-weight:500;letter-spacing:.04em;color:var(--flow-ink)}
.home-adopted-scene .home-scene-detail-link{justify-content:flex-start;background:none!important;border:0;border-bottom:1px solid var(--flow-line);border-radius:0;box-shadow:none;padding:10px 0;color:var(--flow-accent)!important;font-size:14px;font-weight:600;text-align:left;min-height:44px}
.home-adopted-scene .text-button{align-self:flex-start;padding:8px 0;color:var(--flow-muted);font-size:12px;line-height:1.8}
.home-gallery-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:20px}.home-gallery-controls[hidden]{display:none}
.home-gallery-controls>div{display:flex}.home-gallery-controls button{display:grid;place-items:center;min-width:48px;min-height:48px;padding:8px 14px;background:transparent;color:var(--flow-ink);border:1px solid #718878;border-radius:0;font:inherit;font-size:20px;line-height:1;cursor:pointer}
.home-gallery-controls button+button{border-left:0}.home-gallery-controls button:disabled{color:#758279;opacity:.45;cursor:default}
.home-gallery-controls p{font-size:12px;letter-spacing:.03em;color:var(--flow-muted);margin:0}
.home-layout-entry .home-flow-heading h1{font-size:clamp(28px,3vw,36px)}.home-layout-entry .home-flow-context{background:var(--flow-paper);border-color:var(--flow-line);border-radius:3px}
.home-layout-entry .choice{border-radius:4px}.home-layout-entry .home-layout-candidates>li{border-radius:4px;border-color:var(--flow-line);background:var(--flow-paper);box-shadow:none}
.up-original .preparation-stages{border-radius:4px;background:#edf2ee}.up-original .preparation-stages a{border-radius:3px}
@media(max-width:1100px) and (min-width:701px){.home-adopted-scene-grid>.home-adopted-scene{flex-basis:46%}}
@media(max-width:700px){.home-adopted-scene-grid>.home-adopted-scene{flex-basis:84%}.home-adopted-scene-grid{gap:18px}.home-adopted-scenes{padding-block:24px 16px;margin-block:28px 40px}.home-adopted-scenes .home-flow-progress{margin-bottom:30px}.home-gallery-heading-row{align-items:flex-start;flex-direction:column;gap:4px;padding-bottom:10px}.home-adopted-scenes-heading h2{font-size:23px}.home-gallery-all{min-height:44px;font-size:12px}.home-adopted-scene figcaption{padding-top:14px}.home-gallery-controls{margin-top:16px}}
@media(prefers-reduced-motion:no-preference){
 .home-adopted-scenes a,.home-gallery-controls button,.home-layout-entry :is(.primary,.choice),.up-original :is(.up-primary,.up-secondary){transition:background-color 140ms ease,border-color 140ms ease,color 140ms ease,transform 120ms ease}
 .home-gallery-controls button:not(:disabled):active,.home-layout-entry .primary:active,.up-original :is(.up-primary,.up-secondary):not(:disabled):active{transform:translateY(1px)}
}
@media(prefers-reduced-motion:reduce){.home-adopted-scene-grid{scroll-behavior:auto;scroll-snap-type:none}.home-adopted-scenes *,.home-layout-entry :is(.primary,.choice),.up-original :is(.up-primary,.up-secondary){transition:none!important;animation:none!important}}

.home .home-start .primary{background:#245d53;border:1px solid #245d53;color:#fff;border-radius:4px;font-weight:600;box-shadow:none}
@media(hover:hover){.home .home-start .primary:hover{background:#1b4b43;border-color:#1b4b43}}
