/* A single storybook welcome, followed immediately by the app catalog. */
:root{
  --paper:#eeefe6;--ink:#262b36;--blue:#273e80;--muted:#626870;--line:#262b3621;
  --yellow:#e7bc63;--serif:'Shippori Mincho','Yu Mincho',serif;--serif-en:'Fraunces',Georgia,serif;
  --english:'DM Sans',sans-serif;--sans:'DM Sans','Noto Sans JP',sans-serif;
  --gutter:clamp(24px,5.2vw,100px);--card:#fff;--ink-2:#525b6a;
  --ease:cubic-bezier(.22,1,.36,1);--line-soft:#262b3611;
  --accent:#273e80;--accent-deep:#273e80;--accent-soft:#273e8010;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;scroll-padding-top:24px}
body{margin:0;background:var(--paper);color:var(--ink);font-family:'Noto Sans JP',sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
button{font:inherit}
button,a{-webkit-tap-highlight-color:transparent}
a:focus-visible,button:focus-visible{outline:2px solid var(--blue);outline-offset:6px}
img{display:block;width:100%;height:auto}
figure,p,h1,h2{margin:0}
::selection{background:#e8c77d;color:#242c44}
.skip-link{position:fixed;top:-100px;left:20px;padding:14px 20px;background:var(--blue);color:white;z-index:100}
.skip-link:focus{top:10px}
.header{height:88px;padding:0 var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:24px;position:relative;z-index:20}
.wordmark{font-family:var(--serif-en);font-size:27px;letter-spacing:-1.2px;white-space:nowrap;display:inline-flex;align-items:baseline}
.wordmark>span:not(.brand-dot){font-size:20px;padding:0 3px;color:var(--blue)}
.brand-dot{width:5px;height:5px;background:var(--blue);border-radius:50%;margin-left:9px}
.header-nav{display:flex;gap:34px;align-items:center;font-size:14px;font-weight:500}
.header-nav a{padding:10px 0}
.header-nav a:hover{color:var(--blue)}
.header-nav a>span{margin-left:8px}
.contact-link{border-bottom:1px solid var(--line)}
h1,h2{font-family:var(--serif);font-weight:500;letter-spacing:-.035em;line-height:1.65}
.eyebrow{font-size:14px;letter-spacing:.055em;font-weight:500;color:var(--blue);line-height:1.8}
.title-accent{color:var(--blue)}
.family-hero{
  /* A solid backdrop is required for multiply blending. clip also prevents
     focus/scrollIntoView from scrolling the decorative overflow internally. */
  position:relative;isolation:isolate;overflow:clip;
  min-height:min(560px,calc(85svh - 88px));padding:36px var(--gutter) 50px;
  display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.2fr);gap:24px;align-items:center;
  background:radial-gradient(ellipse at 70% 40%,#fffefb 0%,transparent 65%) var(--paper);
}
.family-copy{position:relative;z-index:2;min-width:0;padding-bottom:12px}
.family-copy h1{font-size:clamp(32px,3.5vw,60px);margin-top:20px;line-height:1.65}
.family-description{font-size:16px;line-height:2;letter-spacing:.025em;color:var(--muted);margin-top:20px}
.apps-link{display:inline-flex;align-items:center;justify-content:space-between;gap:44px;margin-top:28px;min-height:52px;padding:12px 0;color:var(--ink);border-bottom:1px solid #273e8055;font-size:15px;font-weight:500;letter-spacing:.06em;transition:color .2s,border-color .2s}
.apps-link:hover{color:var(--blue);border-color:var(--blue)}
.apps-link svg{flex:none;fill:none;stroke:currentColor;stroke-width:1.2;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s var(--ease)}
.apps-link:hover svg{transform:translate(2px,2px)}
.family-art{position:relative;width:100%;min-width:0}
/* Blend with the hero directly, without an isolated or perspective ancestor. */
.family-world{position:relative;aspect-ratio:3/2;overflow:clip;mix-blend-mode:multiply;pointer-events:none}
/* Scenery is one fixed image. Only the transparent character layer changes. */
.family-world .scene-poster{width:100%;height:auto}
.family-world .scene-background,.family-world .scene-characters{position:absolute;inset:0;width:100%;height:100%;visibility:hidden;transform:none;animation:none;transition:none}
.family-world[data-ready="true"] .scene-background,.family-world[data-ready="true"] .scene-characters{visibility:visible}
.family-world[data-ready="true"] .scene-poster{visibility:hidden}
.family-art-controls{display:flex;justify-content:flex-end;align-items:center;min-height:32px;margin-top:4px}
.hero-orbit{position:absolute;z-index:-1;pointer-events:none;width:95vw;height:45vw;left:26%;top:10%;border:1px solid #273e8012;border-radius:50%;transform:rotate(-25deg)}
.catalog{background:#faf9f6;padding:48px var(--gutter) 80px;position:relative;border-top:1px solid var(--line-soft)}
.catalog-inner{width:100%;max-width:1180px;margin:0 auto}
.catalog-heading{text-align:left;margin-bottom:28px}
.catalog-heading h2{font-size:clamp(28px,2.5vw,40px);line-height:1.6}
.catalog .products-filter-bar{margin-bottom:32px}
.catalog .products-grid{display:flex;flex-direction:column;gap:36px}
.catalog .pcard-name{margin:0}
.catalog .pcard-desc{font-size:16px}
.catalog .pcard-subtitle{margin-top:6px}
.catalog .pcard-features-list{list-style:none;margin:0;padding:0}
.catalog .pcard-gallery-nav{padding:0}
.catalog .pcard-icon{height:100%;object-fit:cover}
.catalog .filter-btn{font-size:14px}
.catalog .pcard-gallery-nav .fas{font-family:'Font Awesome 6 Free';font-weight:900}
.catalog-fallback{padding:30px;font-size:16px;line-height:2}
.catalog-fallback a{text-decoration:underline;color:var(--blue)}
.lightbox-image{width:auto;height:auto}
.lightbox-modal button:focus-visible{outline-color:#e7bc63}
.creator-note{padding:58px var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:32px;border-top:1px solid var(--line)}
.creator-note h2{font-size:clamp(23px,2.2vw,32px);line-height:1.7}
.creator-contact{display:inline-flex;align-items:center;gap:24px;border-bottom:1px solid var(--blue);padding:14px 0;color:var(--blue);font-size:15px;flex-shrink:0}
.creator-contact:hover{border-bottom-width:2px}
.site-footer{padding:30px var(--gutter) 52px;display:flex;align-items:center;gap:20px 30px;justify-content:space-between;flex-wrap:wrap}
.site-footer .wordmark{font-size:24px}
.site-footer>p{font-size:14px;color:var(--muted)}
.site-footer>a:last-child{font-size:14px;color:var(--muted)}
.preview-products-link{font-size:14px;color:var(--blue);border-bottom:1px solid var(--line);padding:8px 0}
.motion-toggle{border:0;padding:8px 4px;display:inline-flex;align-items:center;gap:8px;background:transparent;color:var(--muted);font-size:14px;line-height:1.5;cursor:pointer}
.motion-toggle:hover{color:var(--blue)}
.motion-toggle[hidden]{display:none}
.motion-symbol{font-size:12px;width:10px}
@media(min-width:1600px){.family-hero{padding-inline:max(var(--gutter),calc((100vw - 1440px)/2));gap:40px}}
@media(max-width:960px){
  .family-hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
  .family-copy h1{font-size:clamp(30px,3.7vw,36px)}
  .header-nav{gap:24px}
}
@media(max-width:760px){
  :root{--gutter:24px}
  .header{height:76px;gap:16px}
  .wordmark{font-size:23px}
  .header-nav{font-size:14px}
  .contact-link{display:none}
  .family-hero{min-height:0;padding:28px var(--gutter) 24px;grid-template-columns:1fr;gap:12px}
  .family-copy{padding-bottom:0}
  .family-copy h1{font-size:clamp(29px,7.7vw,46px);margin-top:13px;line-height:1.6}
  .eyebrow{font-size:14px;letter-spacing:.025em}
  .family-description{font-size:16px;line-height:1.9;margin-top:16px}
  .apps-link{margin-top:20px;min-height:48px;padding:10px 0;gap:36px}
  .family-art{width:min(100%,460px);margin-inline:auto}
  .hero-orbit{width:140vw;height:85vw;left:0;top:38%}
  .catalog{padding:32px var(--gutter) 48px}
  .catalog-heading{margin-bottom:22px}
  .catalog-heading h2{font-size:28px}
  .catalog .products-filter-bar{margin-bottom:26px;gap:8px}
  .catalog .filter-btn{padding:8px 12px;font-size:14px}
  .catalog .products-grid{gap:26px}
  .catalog .pcard{padding:23px 18px}
  .catalog .pcard-desc{font-size:16px}
  .creator-note{display:block;padding:36px var(--gutter)}
  .creator-note h2{font-size:25px}
  .creator-contact{margin-top:16px}
  .site-footer{padding:24px var(--gutter) 55px;gap:18px}
  .site-footer .wordmark{font-size:22px}
  .site-footer>p{width:100%}
}
@media(max-width:380px){.family-copy h1{font-size:clamp(26px,7.7vw,29px)}}
html[data-motion="reduced"]{scroll-behavior:auto}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
@media print{
  .header,.motion-toggle,.site-footer,.creator-note{display:none}
  .family-hero{min-height:0;padding:20px;break-inside:avoid}
  .family-art-controls{display:none}
  .family-world .scene-background,.family-world .scene-characters{display:none}
  .family-world .scene-poster{visibility:visible!important}
  .hero-orbit{display:none}
  .catalog{padding:20px}
}
