/* ===== Qwe global design system (child theme) — 2026 CSS-only ===== */
.qwe{
  --paper:#f3f1e8; --ink:#191a12; --stone:#7c7a6b; --line:#d7d3c4;
  --lime:#a9c908; --scrim:rgba(12,13,8,.42);
  --serif:"Hiragino Mincho ProN","Yu Mincho","YuMincho","Noto Serif JP",serif;
  --sans:"Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",system-ui,-apple-system,sans-serif;
}
@media (prefers-color-scheme:dark){
  .qwe{ --paper:#13140d; --ink:#eceadd; --stone:#9a978a; --line:#2c2d22; --lime:#c6e70b; --scrim:rgba(6,7,4,.5); }
}
/* neutralize theme chrome ONLY on pages that contain the .qwe design */
body:has(.qwe) #gnav-container,
body:has(.qwe) #gnav-container-sp,
body:has(.qwe) #footer-content-area,
body:has(.qwe) #footer-gnav-container,
body:has(.qwe) #breadcrumb,
body:has(.qwe) .breadcrumb,
body:has(.qwe) .post-header,
body:has(.qwe) .post-share{display:none!important}
body:has(.qwe) #content{margin:0!important;padding:0!important;background:var(--paper,#f3f1e8)}
body:has(.qwe) .wrap.clearfix{max-width:none!important;width:100%!important;margin:0!important;padding:0!important}
body:has(.qwe) #main{width:100%!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;left:0!important}
body:has(.qwe) .main-inner{margin:0!important;padding:0!important}
body:has(.qwe) #main>article,body:has(.qwe) .hentry,body:has(.qwe) .post-content{margin:0!important;padding:0!important;border:0!important}

/* View Transitions */
@view-transition{navigation:auto}
::view-transition-old(root){animation:qwe-vt-out .38s cubic-bezier(.2,.7,.2,1) both}
::view-transition-new(root){animation:qwe-vt-in .48s cubic-bezier(.2,.7,.2,1) both}
@keyframes qwe-vt-out{to{opacity:0;transform:translateY(-8px)}}
@keyframes qwe-vt-in{from{opacity:0;transform:translateY(10px)}}
.qwe .site-h{view-transition-name:qwe-header}
.qwe .vt-kaku{view-transition-name:kaku-hero}
@media (prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation:none}}

.qwe *{box-sizing:border-box}
.qwe{background:var(--paper);color:var(--ink);font-family:var(--sans);line-height:1.85;font-size:16.5px;-webkit-font-smoothing:antialiased;letter-spacing:.01em}
.qwe img{max-width:100%;display:block;height:auto}
.qwe a{color:inherit}
.qwe ::selection{background:var(--lime);color:#12130a}
.qwe .wrap{max-width:1180px;margin:0 auto;padding:0 clamp(20px,5vw,64px)}
.qwe .eyebrow{font-size:.72rem;letter-spacing:.34em;text-transform:uppercase;color:var(--stone);font-weight:600;margin:0}
.qwe .serif{font-family:var(--serif)}
.qwe .fb{width:100vw;position:relative;left:50%;margin-left:-50vw}

/* scroll progress */
.qwe-progress{position:fixed;top:0;left:0;height:2px;width:100%;background:var(--lime,#a9c908);transform:scaleX(0);transform-origin:0 50%;z-index:60}
@media (prefers-reduced-motion:no-preference){@supports (animation-timeline:scroll()){
  .qwe-progress{animation:qwe-prog linear both;animation-timeline:scroll(root)}
  @keyframes qwe-prog{to{transform:scaleX(1)}}
}}

/* header */
.qwe .site-h{position:sticky;top:0;z-index:30;background:color-mix(in srgb,var(--paper) 86%,transparent);backdrop-filter:saturate(120%) blur(9px);border-bottom:1px solid var(--line)}
.qwe .bar{display:flex;align-items:center;justify-content:space-between;height:66px}
.qwe .brand{font-family:var(--serif);font-style:italic;font-size:1.5rem;text-decoration:none;display:flex;align-items:baseline}
.qwe .brand b{font-weight:600}
.qwe .brand .dot{width:.42em;height:.42em;border-radius:50%;background:var(--lime);display:inline-block;margin-left:.14em}
.qwe nav.top{display:flex;gap:clamp(14px,2.4vw,34px);font-size:.82rem;letter-spacing:.06em}
.qwe nav.top a{color:var(--stone);text-decoration:none;padding:6px 0;position:relative;transition:color .3s}
.qwe nav.top a::after{content:"";position:absolute;left:0;right:100%;bottom:0;height:1px;background:var(--lime);transition:right .35s ease}
.qwe nav.top a:hover,.qwe nav.top a:focus-visible{color:var(--ink)}
.qwe nav.top a:hover::after,.qwe nav.top a:focus-visible::after{right:0}
.qwe nav.top a.qwe-lang{border:1px solid var(--line);border-radius:100px;padding:5px 13px;letter-spacing:.1em;color:var(--ink)}
.qwe nav.top a.qwe-lang::after{display:none}
.qwe nav.top a.qwe-lang:hover,.qwe nav.top a.qwe-lang:focus-visible{border-color:var(--lime);color:var(--lime)}
@media(max-width:640px){.qwe nav.top{display:none}.qwe nav.top a.qwe-lang{display:inline-block}.qwe nav.top{display:flex;gap:0}.qwe nav.top a:not(.qwe-lang){display:none}}

/* hero */
.qwe .hero{position:relative;min-height:92vh;display:flex;align-items:flex-end;overflow:hidden}
.qwe .hero .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:scale(1.12);filter:saturate(1.02) contrast(1.02)}
@media (prefers-reduced-motion:no-preference){@supports (animation-timeline:scroll()){
  .qwe .hero .bg{animation:qwe-par linear both;animation-timeline:scroll(root);animation-range:0 100vh}
  @keyframes qwe-par{from{transform:scale(1.12) translateY(0)}to{transform:scale(1.12) translateY(9%)}}
}}
.qwe .hero .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,9,5,.34) 0%,rgba(8,9,5,.08) 34%,var(--scrim) 100%)}
.qwe .hero .inner{position:relative;z-index:2;color:#f6f4ea;padding-bottom:clamp(40px,8vh,96px);width:100%}
.qwe .hero .eyebrow{color:#dcd9c8}
.qwe .hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(2.2rem,5.6vw,4.4rem);line-height:1.18;margin:.5em 0 .5em;text-wrap:balance;max-width:20ch;text-shadow:0 2px 30px rgba(0,0,0,.35)}
.qwe .hero p.sub{max-width:38rem;color:#eeeadd;font-size:1.04rem;line-height:1.9;text-shadow:0 1px 18px rgba(0,0,0,.4);margin:0}
.qwe .hero .rule{width:56px;height:2px;background:var(--lime);margin-bottom:26px}
.qwe .scrollcue{position:absolute;right:clamp(20px,5vw,64px);bottom:32px;z-index:2;color:#e9e6d8;font-size:.66rem;letter-spacing:.28em;text-transform:uppercase;writing-mode:vertical-rl;display:flex;align-items:center;gap:12px}
.qwe .scrollcue i{width:1px;height:48px;background:linear-gradient(var(--lime),transparent)}
@media(max-width:640px){.qwe .scrollcue{display:none}}

/* reveal */
@keyframes qwe-rise{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:no-preference){@supports (animation-timeline:view()){
  .qwe .reveal{opacity:0;animation:qwe-rise linear both;animation-timeline:view();animation-range:entry 2% cover 20%}
}}

/* thesis */
.qwe .thesis{padding:clamp(72px,12vh,150px) 0 clamp(20px,4vh,44px)}
.qwe .thesis .lead{font-family:var(--serif);font-size:clamp(1.6rem,3.6vw,2.5rem);line-height:1.55;max-width:24ch;text-wrap:balance;margin:.4em 0 1.1em}
.qwe .thesis p{max-width:38rem;color:color-mix(in srgb,var(--ink) 82%,var(--stone));font-size:1.02rem;margin:0}

/* breadth — what we build (できること) */
.qwe .breadth{padding:clamp(60px,10vh,130px) 0;border-top:1px solid var(--line)}
.qwe .breadth .head{margin-bottom:clamp(28px,5vh,52px)}
.qwe .breadth h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.6rem,3.6vw,2.5rem);margin:.3em 0 .5em;text-wrap:balance}
.qwe .breadth .head p{color:var(--stone);max-width:36rem;margin:0}
.qwe .bgrid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.qwe .bgrid .cell{background:var(--paper);padding:clamp(24px,3vw,38px);transition:background .4s}
.qwe .bgrid .cell:hover{background:color-mix(in srgb,var(--paper) 88%,var(--lime))}
.qwe .bgrid .k{font-size:.7rem;letter-spacing:.22em;text-transform:uppercase;color:var(--lime);font-weight:600}
.qwe .bgrid h3{font-family:var(--serif);font-weight:600;font-size:1.25rem;margin:.6em 0 .5em;text-wrap:balance}
.qwe .bgrid p{color:var(--stone);font-size:.9rem;line-height:1.8;margin:0}
@media(max-width:820px){.qwe .bgrid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:520px){.qwe .bgrid{grid-template-columns:1fr}}

/* AI concierge demo */
.qwe .concierge{padding:clamp(60px,10vh,130px) 0;border-top:1px solid var(--line)}
.qwe .concierge .head{margin-bottom:clamp(26px,4vh,44px)}
.qwe .concierge h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.6rem,3.6vw,2.4rem);margin:.3em 0 .4em;text-wrap:balance}
.qwe .concierge .head p{color:var(--stone);max-width:38rem;margin:0}
.qwe .chat{max-width:560px;border:1px solid var(--line);border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--paper) 60%,#fff)}
@media (prefers-color-scheme:dark){.qwe .chat{background:color-mix(in srgb,var(--paper) 70%,#000)}}
.qwe .chat .top{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line);font-size:.82rem;color:var(--stone)}
.qwe .chat .dotlive{width:8px;height:8px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 0 var(--lime);animation:qwe-pulse 2s infinite}
@keyframes qwe-pulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,var(--lime) 60%,transparent)}70%{box-shadow:0 0 0 7px transparent}100%{box-shadow:0 0 0 0 transparent}}
.qwe .chat .log{padding:20px 18px;display:flex;flex-direction:column;gap:12px;min-height:180px}
.qwe .msg{max-width:80%;padding:11px 15px;border-radius:14px;font-size:.92rem;line-height:1.7;animation:qwe-rise .5s cubic-bezier(.2,.7,.2,1) both}
.qwe .msg.user{align-self:flex-end;background:var(--ink);color:var(--paper);border-bottom-right-radius:4px}
.qwe .msg.bot{align-self:flex-start;background:color-mix(in srgb,var(--paper) 40%,var(--line));color:var(--ink);border-bottom-left-radius:4px}
.qwe .msg.typing{color:var(--stone);font-style:italic}
.qwe .chips{display:flex;flex-wrap:wrap;gap:8px;padding:14px 18px;border-top:1px solid var(--line)}
.qwe .chip{font-size:.82rem;padding:8px 14px;border:1px solid var(--line);border-radius:100px;background:transparent;color:var(--ink);cursor:pointer;transition:.3s;font-family:inherit}
.qwe .chip:hover:not(:disabled){border-color:var(--lime);color:var(--lime)}
.qwe .chip:disabled{opacity:.4;cursor:default}
.qwe .concierge .note{color:var(--stone);font-size:.78rem;margin-top:14px}

/* teaser */
.qwe .teaser{position:relative;min-height:82vh;display:flex;align-items:flex-end;overflow:hidden;border-top:1px solid var(--line)}
.qwe .teaser .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.qwe .teaser .veil{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,9,5,.12),var(--scrim))}
.qwe .teaser .inner{position:relative;z-index:2;color:#f6f4ea;padding-bottom:clamp(40px,7vh,84px)}
.qwe .teaser h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.8rem,4.2vw,2.9rem);line-height:1.26;margin:.35em 0 .5em;max-width:20ch;text-wrap:balance;text-shadow:0 2px 24px rgba(0,0,0,.4)}
.qwe .teaser p{max-width:32rem;color:#eeeadd;text-shadow:0 1px 14px rgba(0,0,0,.4);margin:0 0 26px}
.qwe .arrow{display:inline-flex;align-items:center;gap:12px;color:#f6f4ea;text-decoration:none;font-size:.9rem;letter-spacing:.08em;border-bottom:1px solid rgba(246,244,234,.4);padding-bottom:6px;transition:.35s}
.qwe .arrow:hover,.qwe .arrow:focus-visible{gap:20px;border-color:var(--lime);color:var(--lime)}

/* rows */
.qwe .rows{padding:clamp(40px,7vh,90px) 0}
.qwe .row{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);align-items:center;padding:clamp(34px,6vh,72px) 0;border-top:1px solid var(--line)}
.qwe .row:nth-child(even) .media{order:2}
.qwe .row .media{position:relative;overflow:hidden;border-radius:2px}
.qwe .row .media img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform 1.4s cubic-bezier(.2,.7,.2,1)}
.qwe .row .media:hover img{transform:scale(1.04)}
.qwe .row .idx{display:flex;align-items:center;gap:14px;margin-bottom:20px}
.qwe .row .idx .n{font-family:var(--serif);font-style:italic;font-size:1.05rem;color:var(--lime)}
.qwe .row .idx .k{font-size:.72rem;letter-spacing:.3em;text-transform:uppercase;color:var(--stone)}
.qwe .row .idx i{flex:1;height:1px;background:var(--line)}
.qwe .row h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.5rem,3.2vw,2.2rem);line-height:1.4;margin:0 0 .6em;text-wrap:balance}
.qwe .row p{color:color-mix(in srgb,var(--ink) 80%,var(--stone));max-width:34rem;margin:0}
@media(max-width:780px){.qwe .row{grid-template-columns:1fr;gap:26px}.qwe .row:nth-child(even) .media{order:0}}

/* steps grid4 */
.qwe .steps{padding:clamp(50px,8vh,110px) 0;border-top:1px solid var(--line)}
.qwe .steps .head{margin-bottom:clamp(28px,5vh,52px)}
.qwe .steps h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.5rem,3.4vw,2.3rem);margin:.3em 0 0;text-wrap:balance}
.qwe .grid4{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line)}
.qwe .grid4 .cell{background:var(--paper);padding:clamp(22px,3vw,34px)}
.qwe .grid4 .n{font-family:var(--serif);font-style:italic;color:var(--lime);font-size:1.1rem}
.qwe .grid4 h3{font-family:var(--serif);font-weight:600;font-size:1.15rem;margin:.5em 0 .5em}
.qwe .grid4 p{color:var(--stone);font-size:.9rem;line-height:1.8;margin:0}
@media(max-width:820px){.qwe .grid4{grid-template-columns:repeat(2,1fr)}}
@media(max-width:480px){.qwe .grid4{grid-template-columns:1fr}}

/* about */
.qwe .about{padding:clamp(60px,10vh,130px) 0;border-top:1px solid var(--line)}
.qwe .about .lead{font-family:var(--serif);font-size:clamp(1.4rem,3vw,2.1rem);line-height:1.6;max-width:26ch;text-wrap:balance;margin:.4em 0 1em}
.qwe .about p{max-width:38rem;color:color-mix(in srgb,var(--ink) 82%,var(--stone));margin:0 0 1em}

/* cta */
.qwe .cta{padding:clamp(80px,14vh,180px) 0;text-align:center;border-top:1px solid var(--line)}
.qwe .cta h2{font-family:var(--serif);font-weight:600;font-size:clamp(1.9rem,4.8vw,3.2rem);line-height:1.32;text-wrap:balance;max-width:24ch;margin:0 auto .9em}
.qwe .cta .btn{display:inline-flex;align-items:center;gap:12px;font-size:.92rem;letter-spacing:.08em;text-decoration:none;padding:16px 32px;border:1px solid var(--ink);border-radius:2px;color:var(--ink);background:transparent;transition:.4s ease;position:relative;overflow:hidden}
.qwe .cta .btn span{position:relative;z-index:2;transition:color .4s}
.qwe .cta .btn .fill{position:absolute;inset:0;background:var(--lime);transform:translateY(101%);transition:transform .45s cubic-bezier(.2,.7,.2,1);z-index:1}
.qwe .cta .btn:hover .fill,.qwe .cta .btn:focus-visible .fill{transform:translateY(0)}
.qwe .cta .btn:hover span,.qwe .cta .btn:focus-visible span{color:#12130a}
.qwe .cta .note{color:var(--stone);font-size:.86rem;margin-top:22px}

/* brand band */
.qwe .brandband{background:#f3f1e8;color:#191a12;padding:clamp(54px,9vh,96px) 0;text-align:center}
.qwe .brandband img{height:clamp(72px,10vw,104px);width:auto;margin:0 auto 20px}
.qwe .brandband .tag{font-family:var(--serif);font-size:clamp(1.05rem,2.4vw,1.4rem);line-height:1.6;margin:0}
.qwe .brandband .meta{color:#7c7a6b;font-size:.8rem;letter-spacing:.16em;text-transform:uppercase;margin:12px 0 0}

/* footer */
.qwe .site-f{border-top:1px solid var(--line);padding:30px 0;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;font-size:.78rem;color:var(--stone);letter-spacing:.04em}
.qwe :focus-visible{outline:2px solid var(--lime);outline-offset:3px;border-radius:2px}
