/* pages/contact.css — extracted from the prototype in original order; "Lnnn" = prototype line */
/* L387 · contact */
.contact-panel{padding:clamp(70px,9vw,120px) 6%}
.cgrid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:40px 6%;align-items:start}
@media (max-width:960px){
.cgrid{grid-template-columns:1fr}
}
.cform{padding:30px 30px 34px;border-radius:30px}
.cform label{display:block;font-size:13px;letter-spacing:.06em;color:var(--mut);margin:18px 0 7px}
.cform label:first-of-type{margin-top:0}
.cform input,.cform select,.cform textarea{width:100%;padding:13px 15px;border-radius:14px;border:1px solid var(--line);background:rgba(255,255,255,.7);color:#0E2236;font:inherit;font-size:16px;transition:border-color .25s,box-shadow .25s}
body[data-world=cosmic] .cform input,body[data-world=cosmic] .cform select,body[data-world=cosmic] .cform textarea{background:rgba(255,255,255,.07);color:#EAF0F7}
.cform input:focus,.cform select:focus,.cform textarea:focus{outline:none;border-color:var(--acc);box-shadow:0 0 0 3px rgba(51,102,153,.18)}
.cform textarea{min-height:140px;resize:vertical}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}
@media (max-width:560px){
.row2{grid-template-columns:1fr}
}
.cform .priv{font-size:12.5px;line-height:1.7;color:var(--mut);margin-top:16px}
.cform .priv a{color:var(--acc);border-bottom:1px solid currentColor}
.cform .btn{margin-top:22px}
.cform .done{display:none;text-align:center;padding:50px 10px}
.cform.sent form{display:none}
.cform.sent .done{display:block}
.done b{display:block;font-size:30px;font-weight:500;margin-bottom:10px;letter-spacing:-.03em}
.ctxt .lead{max-width:420px}
.ctxt .dm{display:inline-flex;margin-top:22px}
/* L588 · ===== v6: multi-page structure ===== */
.page-top{padding-top:clamp(140px,15vw,190px)!important}
/* L658 · hero sits below the header */
.page-top{padding-top:clamp(64px,8vw,96px)!important}
/* L706 · Cosmic: crops of the same Milky Way photograph, varied per page */
.contact-panel .gxbg::after{background:linear-gradient(180deg,rgba(3,6,16,.72),rgba(3,6,16,.8))}
/* L709 · Contact: same heading position and left edge as the other pages */
.contact-panel{padding-left:6%!important;padding-right:6%!important}
.contact-panel .wrap{max-width:1320px;margin:0 auto}
.contact-panel.page-top{padding-top:calc(var(--ph-pt) - 42px)!important}
body[data-world=cosmic] .contact-panel{background:#02060f!important}
body[data-world=cosmic] .contact-panel .wsh,body[data-world=cosmic] .contact-panel .mtn{display:none}
/* L854 · ===== v21: phone fixes (roadmap, Three Webs, Contact) ===== */
.cform{min-width:0;max-width:100%;box-sizing:border-box}
.cform .row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px}
.cform .row2>*{min-width:0}
.cform input,.cform select,.cform textarea{min-width:0;max-width:100%;box-sizing:border-box}
@media (max-width:900px){
.cgrid{grid-template-columns:minmax(0,1fr)!important}
.contact-panel .wrap{width:100%;min-width:0}
}
@media (max-width:520px){
.cform .row2{grid-template-columns:minmax(0,1fr)}
.cform{padding:24px 20px 28px}
}
/* L882 · ===== v22: Japanese Contact button + larger, dot-following phone roadmap ===== */
.contact-panel .btn{white-space:normal;max-width:100%;text-align:center;line-height:1.5;box-sizing:border-box}
/* L1067 · ===== v26: mobile QA fixes ===== */
.priv a{display:inline;padding:0;margin:0}
/* L1135 · ===== v34: Internet Web page headers get a watercolour Mount Fuji on the right (same pictu */
body:not([data-world=cosmic]) .contact-panel>.wsh.lt,body:not([data-world=cosmic]) .contact-panel>.mtn{opacity:0}
.contact-panel .cbn{bottom:auto;height:min(560px,100%);background-size:cover;background-position:80% 62%;-webkit-mask-image:linear-gradient(180deg,#000 52%,transparent 96%);mask-image:linear-gradient(180deg,#000 52%,transparent 96%)}
@media (max-width:760px){
.contact-panel .cbn{height:360px;background-position:84% 74%;opacity:.7}
}
/* L1552 · Contact: the picture fills the page, no blue frame around it */
body:not([data-world=cosmic])[data-page=contact]::before{background:#F4EFEA!important}
body:not([data-world=cosmic]) .contact-panel{margin-left:0;margin-right:0;margin-top:0;border-radius:0}
/* L1674 · v64: Contact page = the misty-hills painting from menu bar to footer, with drifting clouds */
body:not([data-world=cosmic])[data-page=contact]::before{background:url("/image/site/contact/hills-sakura.webp") center 70%/cover no-repeat fixed!important;position:fixed!important;inset:0!important}
body:not([data-world=cosmic])[data-page=contact]{background:#F3EEEC}
body:not([data-world=cosmic]) .contact-panel{background:transparent!important;min-height:calc(100vh - var(--navh,72px) - 120px)}
body:not([data-world=cosmic]) .contact-panel>.cbn,body:not([data-world=cosmic]) .contact-panel>.wsh,body:not([data-world=cosmic]) .contact-panel>.mtn,body:not([data-world=cosmic]) .contact-panel>.dc{display:none!important}
body:not([data-world=cosmic]) .contact-panel.grain::after{display:none}
body:not([data-world=cosmic])[data-page=contact] footer.ft{background:rgba(238,243,248,.72)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
.ccl{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;display:none}
body:not([data-world=cosmic])[data-page=contact] .ccl{display:block}
.ccl i{position:absolute;left:0;top:var(--y);width:var(--w);height:var(--h);
 background:radial-gradient(closest-side at 30% 62%,rgba(255,255,255,var(--o)),rgba(255,255,255,0)),radial-gradient(closest-side at 52% 44%,rgba(255,255,255,var(--o)),rgba(255,255,255,0)),radial-gradient(closest-side at 72% 60%,rgba(255,253,252,var(--o)),rgba(255,255,255,0)),radial-gradient(60% 34% at 50% 82%,rgba(214,200,226,calc(var(--o)*.45)),rgba(214,200,226,0));
 filter:blur(3px);opacity:0;animation:hclDrift var(--t) linear var(--dl) infinite;will-change:transform}
.ccl i:nth-child(1){--y:14%;--w:26%;--h:22%;--o:1;--t:40s;--dl:-16s;filter:blur(1.5px)}
.ccl i:nth-child(2){--y:6%;--w:30%;--h:24%;--o:.85;--t:75s;--dl:-45s}
.ccl i:nth-child(3){--y:26%;--w:20%;--h:16%;--o:1;--t:32s;--dl:-5s;filter:blur(1.5px)}
.ccl i:nth-child(4){--y:2%;--w:36%;--h:26%;--o:.7;--t:95s;--dl:-70s}
.ccl i:nth-child(5){--y:62%;--w:60%;--h:20%;--o:.6;--t:110s;--dl:-30s}
.contact-panel>.wrap{position:relative;z-index:2}
@keyframes ctLine{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
body[data-page=contact] .ctxt>*{animation:ctLine 1.1s cubic-bezier(.16,.84,.24,1) both}
body[data-page=contact] .ctxt>:nth-child(1){animation-delay:.15s}
body[data-page=contact] .ctxt>:nth-child(2){animation-delay:.45s}
body[data-page=contact] .ctxt>:nth-child(3){animation-delay:.75s}
body[data-page=contact] .ctxt>:nth-child(4){animation-delay:1.05s}
body[data-page=contact] .ctxt .h2.rv{opacity:1;transform:none}
@media (max-width:760px){
.ccl i:nth-child(n){--w:55%}
.ccl i:nth-child(5){--w:100%}
}
@media (prefers-reduced-motion:reduce){
.ccl{display:none!important}
body[data-page=contact] .ctxt>*{animation:none}
}
/* L1722 · v67/v68: Cosmic Contact page = plain starfield (spiral removed) from menu bar to footer */
body[data-world=cosmic][data-page=contact]::before{background:#1d2048 url("/image/site/contact/starfield-cosmic.webp") center bottom/cover no-repeat fixed!important;position:fixed!important;inset:0!important;z-index:-1}
body[data-world=cosmic][data-page=contact]::after{display:none!important}
body[data-world=cosmic][data-page=contact]{background:#03050d}
body[data-world=cosmic] .contact-panel{background:transparent!important;min-height:calc(100vh - var(--navh,72px) - 120px);margin:0!important;border-radius:0!important}
body[data-world=cosmic] .contact-panel>.gxbg,body[data-world=cosmic] .contact-panel>.cbn,body[data-world=cosmic] .contact-panel>.dc{display:none!important}
body[data-world=cosmic] .contact-panel.grain::after{display:none}
body[data-world=cosmic][data-page=contact] footer.ft{background:rgba(4,8,20,.6)!important;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
@media (min-width:961px){
/* L1731 · v68: Contact fits one screen on desktop/laptop (form compacted); scrolling only reveals th */
.contact-panel.page-top{min-height:calc(100vh - var(--navh,72px))!important;min-height:calc(100svh - var(--navh,72px))!important;display:flex!important;align-items:center;padding-top:20px!important;padding-bottom:20px!important;box-sizing:border-box}
.contact-panel .cgrid{align-items:center}
.cform{padding:20px 26px 22px!important}
.cform label{margin:9px 0 4px!important;font-size:12.5px}
.cform label:first-of-type{margin-top:0!important}
.cform input,.cform select,.cform textarea{padding:9px 13px!important;font-size:15px!important;border-radius:12px!important}
.cform textarea{min-height:76px!important;height:76px}
.cform .priv{margin-top:8px!important;font-size:11.5px!important;line-height:1.5!important}
.cform .btn{margin-top:10px!important;padding:11px 26px!important}
.ctxt .h2{margin-bottom:0}
.ctxt .lead{margin-top:14px!important}
.ctxt .dm{margin-top:16px!important}
}
@media (min-width:961px) and (max-height:700px){
.cform textarea{min-height:56px!important;height:56px}
.cform label{margin-top:6px!important}
}
/* L1752 · Cosmic Contact: a shooting star now and then */
.cshoot{position:fixed;inset:0;z-index:0;pointer-events:none;overflow:hidden;display:none}
body[data-world=cosmic][data-page=contact] .cshoot{display:block}
.cshoot i{position:absolute;left:var(--x);top:var(--y);width:160px;height:1.6px;border-radius:2px;background:linear-gradient(90deg,rgba(220,232,255,0),rgba(235,242,255,.95));box-shadow:0 0 6px rgba(190,210,255,.7);opacity:0;transform:rotate(155deg);transform-origin:right center;animation:cShoot var(--t) ease-in var(--dl) infinite}
.cshoot i:nth-child(1){--x:78%;--y:10%;--t:7s;--dl:1s}
.cshoot i:nth-child(2){--x:42%;--y:6%;--t:9s;--dl:4.5s}
.cshoot i:nth-child(3){--x:92%;--y:34%;--t:11s;--dl:7.5s}
@keyframes cShoot{0%{opacity:0;transform:rotate(155deg) translateX(0)}2%{opacity:1}10%{opacity:0;transform:rotate(155deg) translateX(-520px)}100%{opacity:0;transform:rotate(155deg) translateX(-520px)}}
@media (prefers-reduced-motion:reduce){
.cshoot{display:none!important}
}
/* L1766 · v71: no decorative patterns (wavy lines, petal dots, sparkle stars, constellations) anywhe */
.cshoot{z-index:0}
body[data-page=contact] .contact-panel{position:relative;z-index:1}
.cshoot i{width:240px;height:2.4px;transform-origin:left center!important;background:linear-gradient(270deg,rgba(220,232,255,0),rgba(200,220,255,.5) 60%,#fff);box-shadow:0 0 10px 1px rgba(200,220,255,.9),0 0 22px rgba(160,190,255,.5);animation-timing-function:cubic-bezier(.3,.1,.6,1)}
.cshoot i::after{content:"";position:absolute;left:-3px;top:50%;width:7px;height:7px;margin-top:-3.5px;border-radius:50%;background:#fff;box-shadow:0 0 12px 3px rgba(210,225,255,.95)}
.cshoot i:nth-child(1){--x:70%;--y:12%;--t:5s;--dl:.6s}
.cshoot i:nth-child(2){--x:38%;--y:8%;--t:6s;--dl:2.6s}
.cshoot i:nth-child(3){--x:90%;--y:30%;--t:7s;--dl:4.4s}
.cshoot i:nth-child(4){--x:58%;--y:22%;--t:8s;--dl:6.2s}
@keyframes cShoot{0%{opacity:0;transform:rotate(-28deg) translateX(0)}3%{opacity:1}22%{opacity:1}30%{opacity:0;transform:rotate(-28deg) translateX(-620px)}100%{opacity:0;transform:rotate(-28deg) translateX(-620px)}}
/* L1777 · Cosmic Contact: one small, slim shooting star every 7 s, each time somewhere new */
.cshoot i{width:110px!important;height:1.3px!important;box-shadow:0 0 4px rgba(200,220,255,.8)!important;--t:7s!important;--dl:1s!important}
.cshoot i::after{width:3.5px!important;height:3.5px!important;margin-top:-1.75px!important;left:-1.5px!important;box-shadow:0 0 6px 2px rgba(210,225,255,.9)!important}
@keyframes cShoot{0%{opacity:0;transform:rotate(-28deg) translateX(0)}2%{opacity:1}11%{opacity:1}15%{opacity:0;transform:rotate(-28deg) translateX(-420px)}100%{opacity:0;transform:rotate(-28deg) translateX(-420px)}}

/* ===== port: the real contact form inside the prototype's form box =====
   The form itself (fields, honeypot, CSRF token, reCAPTCHA) is unchanged from main, so its markup differs from the
   prototype's demo form: each field sits in a .corp-form-group, phone + company have no .row2 wrapper, and the
   button / privacy note use their own classes. These rules give it the prototype's look without touching it. */

/* honeypot: must stay invisible to people (the rule main had in corporate.css, which this page no longer loads) */
.corp-hp{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* layout: one column, phone + company side by side like the prototype's .row2 */
#contact-form{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:14px;row-gap:0}
#contact-form>*{grid-column:1/-1;min-width:0}
#contact-form>.corp-form-group:has(#contact-phone),#contact-form>.corp-form-group:has(#contact-company){grid-column:auto}
@media (max-width:520px){
#contact-form>.corp-form-group:has(#contact-phone),#contact-form>.corp-form-group:has(#contact-company){grid-column:1/-1}
#contact-form>.corp-form-group:has(#contact-company){margin-top:14px}
}

/* label spacing as in the prototype (there, only the first label and the two in .row2 have no space above) */
#contact-form .corp-form-group .corp-label{margin:18px 0 7px}
#contact-form .corp-form-group:has(#contact-name) .corp-label,
#contact-form .corp-form-group:has(#contact-phone) .corp-label,
#contact-form .corp-form-group:has(#contact-company) .corp-label{margin-top:0}
@media (min-width:961px){
#contact-form .corp-form-group .corp-label{margin:9px 0 4px!important}
#contact-form .corp-form-group:has(#contact-name) .corp-label,
#contact-form .corp-form-group:has(#contact-phone) .corp-label,
#contact-form .corp-form-group:has(#contact-company) .corp-label{margin-top:0!important}
}
@media (min-width:961px) and (max-height:700px){
#contact-form .corp-form-group:has(#contact-email) .corp-label,
#contact-form .corp-form-group:has(#contact-type) .corp-label,
#contact-form .corp-form-group:has(#contact-message) .corp-label{margin-top:6px!important}
}
.corp-req{color:inherit}

/* the message box: the prototype's height, whatever its rows attribute says (laptop sizes come from the rules above) */
@media (max-width:960px){
.cform textarea.corp-textarea{height:140px}
}
.cform input::placeholder,.cform textarea::placeholder{color:var(--mut);opacity:.6}

/* privacy note = the prototype's .priv */
.cform .corp-form-privacy{font-size:12.5px;line-height:1.7;color:var(--mut);margin-top:16px}
.cform .corp-form-privacy a{color:var(--acc);border-bottom:1px solid currentColor;display:inline;padding:0;margin:0}
@media (min-width:961px){
.cform .corp-form-privacy{margin-top:8px!important;font-size:11.5px!important;line-height:1.5!important}
}

/* send button = the prototype's .btn in the form */
.cform .corp-btn--contact{justify-self:start;display:inline-flex;align-items:center;gap:10px;padding:16px 32px;border-radius:999px;border:1px solid transparent;font-size:16px;font-weight:500;background:var(--acc);color:var(--on-acc);transition:transform .25s,filter .25s,background .25s,color .25s;white-space:normal;max-width:100%;text-align:center;line-height:1.5;box-sizing:border-box;margin-top:22px;cursor:pointer}
.cform .corp-btn--contact:hover{transform:translateY(-2px);filter:brightness(1.1)}
@media (min-width:961px){
.cform .corp-btn--contact{margin-top:10px!important;padding:11px 26px!important}
}

/* sent / error messages (green / red as on main) */
.cform .corp-alert{padding:14px 16px;border-radius:14px;margin:0 0 16px;font-size:14px;line-height:1.7;border:1px solid}
.cform .corp-alert--success{background:#e8f4ea;color:#1e4620;border-color:#c3e6cb}
.cform .corp-alert--error{background:#fce8e8;color:#6b1c1c;border-color:#f5c6cb}
body[data-world=cosmic] .cform .corp-alert--success{background:rgba(120,200,140,.14);color:#CDEFD6;border-color:rgba(140,210,160,.35)}
body[data-world=cosmic] .cform .corp-alert--error{background:rgba(230,110,110,.14);color:#F6D2D2;border-color:rgba(240,140,140,.4)}

/* the up-right arrow every prototype button has (the same declarations as css/site/world-switch.css, "v89") */
.cform .corp-btn--contact::after{content:""!important;display:inline-block!important;flex:none;width:1em!important;height:1em!important;border-radius:0!important;box-shadow:none!important;background:currentColor!important;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 18.5 18.5 5.5M8 5.5h10.5V16'/%3E%3C/svg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 18.5 18.5 5.5M8 5.5h10.5V16'/%3E%3C/svg%3E") center/contain no-repeat;vertical-align:-.1em;margin-left:.5em;position:static!important;inset:auto!important;transform:none;opacity:1;z-index:auto!important;transition:transform .35s cubic-bezier(.2,.8,.2,1)!important;order:9!important}
.cform .corp-btn--contact:hover::after{transform:translate(2px,-2px)!important;background:currentColor!important;box-shadow:none!important}
