/* Readable controls and a single theme shared by the site and dialogs. */
:root{--ui-text:#343d51;--ui-muted:#657087;--ui-soft:#626e83;--ui-panel:#f5f6fa;--ui-input:#e9edf4;--ui-border:#8794a8;--ui-accent:#776891;--ui-selected:#e1dced;--ui-modal:#f4f5f9;--ui-shadow:#3744601a;--ui-header:#f4f5fae8}
:root[data-theme="dark"]{--paper:#171b25;--ink:#e7eaf3;--muted:#a4aec2;--line:#414a5d;--blue:#b9aedc;--ui-text:#e2e7f1;--ui-muted:#b2bdd0;--ui-soft:#9ca9bf;--ui-panel:#212735;--ui-input:#171e2c;--ui-border:#687a97;--ui-accent:#c8b5e3;--ui-selected:#3f3b55;--ui-modal:#232a39;--ui-shadow:#00000038;--ui-header:#171b25ec}
body{color:var(--ink);background:radial-gradient(ellipse at 4% 28%,#e8d7ed60,transparent 35%),radial-gradient(ellipse at 100% 52%,#d6e4f47a,transparent 35%),#f4f5fa}
:root[data-theme="dark"] body{background:radial-gradient(ellipse at 4% 28%,#4c375529,transparent 38%),radial-gradient(ellipse at 100% 52%,#31496b30,transparent 40%),#171b25}
.header{background:var(--ui-header);border-bottom:1px solid color-mix(in srgb,var(--ui-border),transparent 80%)}
.color-mode-toggle{width:42px;height:42px;flex-shrink:0;padding:10px;border:1px solid var(--ui-border);border-radius:50%;background:transparent;color:var(--ui-text);cursor:pointer;display:grid;place-items:center}
.color-mode-toggle svg{width:20px;height:20px}.color-mode-toggle .icon-sun{display:none}
:root[data-theme="dark"] .color-mode-toggle .icon-sun{display:block}:root[data-theme="dark"] .color-mode-toggle .icon-moon{display:none}
.orbit-toggle{background:transparent;border-color:var(--ui-border);box-shadow:none}.orbit-toggle span{background:var(--ui-text)}
.header-contact{background:#30384c;color:#f5f6fb}.hero h1 .hero-plus{font-style:normal;color:#a678ac;font-weight:400;display:inline;letter-spacing:-.09em}
:root[data-theme="dark"] .hero h1 .hero-plus{color:#d4aedc}.hero-copy p{font-size:clamp(15px,1.4vw,20px);letter-spacing:.07em;color:var(--ui-muted);margin-top:31px}
#contact-form{color:var(--ui-text);background:var(--ui-panel);border:1px solid var(--ui-border);box-shadow:0 12px 36px var(--ui-shadow);backdrop-filter:none;-webkit-backdrop-filter:none}
#contact-form [hidden]{display:none!important}
#contact-form label,#contact-form legend{color:var(--ui-text);font-size:14px}#contact-form label>span:not(.field-surface){color:var(--ui-muted)}
#contact-form .field-surface{margin-top:10px}
#contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),#contact-form textarea{background:var(--ui-input);color:var(--ui-text);border:1px solid var(--ui-border);border-bottom-color:var(--ui-border);border-radius:8px;padding:15px 12px;box-shadow:none}
#contact-form input:not([type="checkbox"]):not([type="radio"]):focus,#contact-form textarea:focus{background:var(--ui-input);outline:none;border-color:var(--ui-border);box-shadow:none}
#contact-form .field-line{bottom:0;height:3px;border-radius:0 0 8px 8px;box-shadow:none}
#contact-form input::placeholder,#contact-form textarea::placeholder{color:var(--ui-soft);font-size:14px}
#contact-form label:focus-within{color:var(--ui-accent)}#contact-form .form-privacy,#contact-form legend small{color:var(--ui-muted);font-size:12px}
#contact-form .context-options label>span{border:1px solid var(--ui-border);background:var(--ui-input);color:var(--ui-muted);font-size:12px;padding:10px 13px}
#contact-form .context-options label:has(input:checked)>span{background:var(--ui-selected);border-color:var(--ui-accent);color:var(--ui-text);box-shadow:inset 0 0 0 1px var(--ui-accent)}
#contact-form .other-detail{margin-top:18px;margin-bottom:0;font-size:13px}.other-detail .field-surface{margin-top:8px}
#contact-form .choose-themes{width:100%;border:1px solid var(--ui-border);background:var(--ui-input);border-radius:8px;padding:15px 14px;text-align:left;display:flex;align-items:center;justify-content:space-between;color:var(--ui-text);font-size:14px;cursor:pointer;transition:border-color .3s,background .3s}
#contact-form .choose-themes>span{font-size:21px;line-height:1;color:var(--ui-accent)}#contact-form .choose-themes:hover{border-color:var(--ui-accent)}
.selected-themes{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.selected-themes:empty{margin:0}
.selected-theme{display:inline-flex;align-items:center;gap:10px;padding:8px 12px;border:1px solid var(--ui-border);border-radius:22px;background:var(--ui-selected);color:var(--ui-text);font-size:12px;cursor:pointer}.selected-theme>span:last-child{font-size:17px;color:var(--ui-accent);line-height:1}
#contact-form .selection-hint{font-size:12px;color:var(--ui-muted);margin:10px 0 0;line-height:1.7}
.theme-picker{width:min(720px,calc(100vw - 40px));max-height:calc(100dvh - 60px);margin:auto;padding:30px;border:1px solid var(--ui-border);border-radius:22px;background:var(--ui-modal);color:var(--ui-text);box-shadow:0 35px 100px #00000022;opacity:0;transition:opacity .25s ease;overscroll-behavior:contain}
.theme-picker.is-visible{opacity:1}.theme-picker::backdrop{background:#151c2b75;backdrop-filter:blur(6px)}
.picker-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:25px}.picker-eyebrow{font:italic 16px Georgia,serif;color:var(--ui-accent)}.picker-heading h3{font-size:26px;font-weight:500;line-height:1.55;letter-spacing:-.035em;margin-top:12px}
.picker-close{display:grid;place-items:center;width:38px;height:38px;flex-shrink:0;border:1px solid var(--ui-border);border-radius:50%;background:transparent;font-size:26px;font-weight:300;color:var(--ui-muted);cursor:pointer}
#theme-picker-description{font-size:13px;color:var(--ui-muted);line-height:1.8;margin:17px 0 23px}
#contact-form .theme-picker .theme-option{background:var(--ui-input);border:1px solid var(--ui-border);border-radius:10px;padding:15px 12px;min-height:83px;gap:12px}
#contact-form .theme-picker .theme-option b{color:var(--ui-text);font-size:14px;font-weight:500}#contact-form .theme-picker .theme-option small{color:var(--ui-muted);font-size:12px;line-height:1.6}
#contact-form .theme-picker .theme-option:hover{border-color:var(--ui-accent);background:var(--ui-input)}
#contact-form .theme-picker .theme-option:has(input:checked){background:var(--ui-selected);border-color:var(--ui-accent);box-shadow:inset 0 0 0 1px var(--ui-accent)}
#contact-form .theme-picker .theme-option i{width:17px;height:17px;border-color:var(--ui-border)}
#contact-form .theme-picker .theme-option:has(input:checked) i{background:var(--ui-accent);border-color:var(--ui-accent)}
#contact-form .theme-picker .theme-option:has(input:checked) i:after{color:var(--ui-modal);font-weight:600}
.picker-footer{position:sticky;bottom:-30px;display:flex;justify-content:space-between;align-items:center;gap:20px;background:var(--ui-modal);padding:20px 0 5px;margin-top:10px;border-top:1px solid var(--ui-border)}
#picker-count{font-size:13px;color:var(--ui-muted)}.picker-done{border:0;border-radius:8px;background:#41475f;color:white;display:flex;gap:25px;padding:14px 18px;font-size:14px;cursor:pointer}
:root[data-theme="dark"] .picker-done{background:#b9b0d2;color:#191f2b}.form-submit{background:#414a64;border-color:#414a64;box-shadow:none;color:#fff}:root[data-theme="dark"] .form-submit{background:#b9b0d2;border-color:#b9b0d2;color:#191f2b}
#form-status{color:var(--ui-muted)}
/* Dark surfaces keep the original demo artwork in its own light workspace. */
:root[data-theme="dark"] .mock-screen{color:#343b50;color-scheme:light}
:root[data-theme="dark"] .hero-eyebrow,:root[data-theme="dark"] .hero-topline,:root[data-theme="dark"] .world-caption,:root[data-theme="dark"] .hero-bottom{color:var(--ui-muted)}
:root[data-theme="dark"] .hero-explore{background:#222c3b80;border-color:#6a7487}:root[data-theme="dark"] .hero-explore span{color:#cfbddf}
:root[data-theme="dark"] .section-label,:root[data-theme="dark"] .section-label span,:root[data-theme="dark"] .services-heading>p,:root[data-theme="dark"] .service-body p,:root[data-theme="dark"] .step p,:root[data-theme="dark"] .approach-title p,:root[data-theme="dark"] .company-info dt,:root[data-theme="dark"] .contact p{color:var(--ui-muted)}
:root[data-theme="dark"] .service-category,:root[data-theme="dark"] .service-mark,:root[data-theme="dark"] .step-number{color:#baacd2}
:root[data-theme="dark"] .service,:root[data-theme="dark"] .service-list,:root[data-theme="dark"] .company-info>div{border-color:#3b4558}
:root[data-theme="dark"] .tags li{background:#242c3d;border-color:#505b70;color:#bfc8da}
:root[data-theme="dark"] .signature-first{color:#c5cbdc}:root[data-theme="dark"] .signature-last{color:#a5acc2}:root[data-theme="dark"] .mission-signature p{color:#a3adc1}
:root[data-theme="dark"] .signature-plus{background:#342d4140;border-color:#675775;box-shadow:none;color:#cbb1dd}
:root[data-theme="dark"] .design-heading>p,:root[data-theme="dark"] .design-caption p,:root[data-theme="dark"] .design-caption small{color:var(--ui-muted)}
:root[data-theme="dark"] .device-tabs button span{background:#526078}:root[data-theme="dark"] .device-tabs button[aria-pressed=true] span{background:var(--spectrum)}
:root[data-theme="dark"] .orbit-menu{background:#1c2331;color:#e7eaf3}
:root[data-theme="dark"] .orbit-links a{color:#a1adc4}:root[data-theme="dark"] .orbit-links small{color:#aab4c8}:root[data-theme="dark"] .orbit-links a:hover,:root[data-theme="dark"] .orbit-links a:focus-visible,:root[data-theme="dark"] .orbit-links a[aria-current]{color:#e5ddf5}
:root[data-theme="dark"] .orbit-close,:root[data-theme="dark"] .orbit-note{color:#b5c0d5}:root[data-theme="dark"] .orbit-line{border-color:#55607880}
:root[data-theme="dark"] .intro{background:#171b25;color:#e7eaf3}:root[data-theme="dark"] .intro-caption p,:root[data-theme="dark"] .intro-caption>span,:root[data-theme="dark"] .intro-skip{color:#b1bad0}
:root[data-theme="dark"] .footer>span,:root[data-theme="dark"] .back-top{color:var(--ui-muted)}
@media(max-width:760px){.color-mode-toggle{width:38px;height:38px;padding:8px}.header{gap:12px}.theme-picker{padding:22px 18px;width:calc(100vw - 26px);max-height:calc(100dvh - 30px);border-radius:18px}.picker-heading h3{font-size:23px}.picker-eyebrow{font-size:14px}#contact-form .theme-picker .theme-option{padding:13px 11px;min-height:78px}.theme-picker .theme-options{grid-template-columns:1fr}.picker-footer{bottom:-22px;padding:17px 0 4px}.picker-done{font-size:13px;gap:16px;padding:13px 15px}.hero h1{font-size:clamp(38px,8.8vw,65px)}}
@media(max-width:440px){.header-contact{display:none}.color-mode-toggle{margin-left:auto}.hero-copy p{font-size:14px;letter-spacing:.04em}}
@media(prefers-reduced-motion:reduce){.theme-picker{transition:none}}

/* Free text appears only for the current-status Other selection. */
#contact-form #stage-other-field{display:none}
#contact-form .consultation-context:has(input[name="stage"][value="その他"]:checked) #stage-other-field:not([hidden]){display:block}
/* A lighter form surface; the writing area carries the visual cue. */
#contact-form{--form-glass:#ffffff3d;--form-edge:#ffffff90;--control-fill:#e9edf580;--control-active:#e7ecf5bb;--control-rule:#9ba8bd;--choice-edge:#c8cfdd;--choice-fill:#ffffff25;background:var(--form-glass);border:1px solid var(--form-edge);box-shadow:0 12px 36px #626f8805;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px)}
:root[data-theme="dark"] #contact-form{--form-glass:#252d3c35;--form-edge:#66768e25;--control-fill:#10172475;--control-active:#101724b0;--control-rule:#63738f;--choice-edge:#546078;--choice-fill:#26314420;box-shadow:none}
#contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),#contact-form textarea{background:var(--control-fill);border:0;border-bottom:1px solid var(--control-rule);border-radius:5px 5px 0 0;padding:15px 12px;transition:background .6s ease;color:var(--ui-text)}
#contact-form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,#contact-form textarea:focus{background:var(--control-active);border:0;border-bottom:1px solid var(--control-rule);outline:none;box-shadow:none}
#contact-form .field-line{height:2px;border-radius:0;box-shadow:none}
#contact-form .choose-themes{background:var(--control-fill);border:0;border-bottom:1px solid var(--control-rule);border-radius:5px 5px 0 0;padding:15px 12px}
#contact-form .choose-themes:hover{background:var(--control-active)}
#contact-form .context-options label>span{background:var(--choice-fill);border-color:var(--choice-edge);box-shadow:none;padding:10px 13px}
#contact-form .context-options label:has(input:checked)>span{background:var(--ui-selected);border-color:var(--ui-accent);box-shadow:none}
.selected-theme{border-color:var(--choice-edge);background:var(--ui-selected);box-shadow:none}
#contact-form .theme-picker .theme-option{background:var(--choice-fill);border-color:var(--choice-edge);box-shadow:none}
#contact-form .theme-picker .theme-option:hover{background:var(--control-fill)}
#contact-form .theme-picker .theme-option:has(input:checked){background:var(--ui-selected);border-color:var(--ui-accent);box-shadow:none}
/* Keep the mission signature together, with restrained surrounding space. */
.mission-signature{margin-top:40px;padding:10px 0 0;display:grid;grid-template-columns:max-content auto;column-gap:24px;row-gap:13px;align-items:center;max-width:100%}
.signature-phrase{white-space:nowrap;line-height:1.12;letter-spacing:-.045em;font-size:clamp(25px,6.2vw,84px)}
.signature-first,.signature-last{display:inline;font-size:inherit;line-height:inherit;letter-spacing:inherit}
.signature-plus{grid-column:2;grid-row:1;justify-self:start;margin:0;width:clamp(28px,3.8vw,48px);height:clamp(28px,3.8vw,48px);font-size:clamp(21px,2.5vw,32px)}
.mission-signature p{grid-column:1 / -1;grid-row:2;margin:0;font-size:12px}
@media(max-width:760px){.mission-signature{margin-top:24px;column-gap:12px;row-gap:10px;padding-top:0}.signature-last{justify-self:auto}.mission-signature p{margin:0}}
/* Mission and services share a quiet, deliberate typographic rhythm. */
#mission{padding-bottom:clamp(48px,5vw,80px)}
#services{padding-top:clamp(34px,4vw,60px)}
.services-opening{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;margin-bottom:clamp(35px,4.6vw,66px)}
.services-index{display:flex;flex-direction:column;gap:9px;align-items:flex-start;color:var(--ui-text)}
.services-index>span:first-child{font-size:16px;font-weight:500;letter-spacing:-.025em}.services-index>span:last-child{font-size:12px;color:var(--ui-muted);letter-spacing:.07em}
.services-signature{position:relative;padding-left:20px}
.services-signature:before{content:"";position:absolute;left:0;top:5px;bottom:5px;width:2px;border-radius:2px;background:var(--spectrum);opacity:.85}
.services-signature .services-signature-en{font-family:Georgia,"Times New Roman",serif;font-size:clamp(28px,3.1vw,44px);font-weight:400;font-style:italic;line-height:1.15;letter-spacing:-.045em;color:var(--ui-text);white-space:nowrap}
.services-signature .services-signature-ja{font-size:12px;line-height:1.8;margin-top:12px;color:var(--ui-muted);letter-spacing:.06em}
#services .services-heading{display:grid;grid-template-columns:1fr 1fr;gap:8%;align-items:center;margin-bottom:clamp(45px,6vw,88px)}
#services .services-heading h2{font-size:clamp(44px,5.4vw,78px);line-height:1.38;letter-spacing:-.05em;font-weight:500;min-width:0}
#services .services-heading h2>span{display:block}
.services-introduction{padding-top:12px;max-width:440px}
.services-introduction .services-lead{font-size:clamp(18px,1.6vw,23px);font-weight:500;line-height:1.85;letter-spacing:-.025em;color:var(--ui-text)}
.services-introduction .services-description{font-size:16px;line-height:2.05;margin-top:18px;color:var(--ui-muted);overflow-wrap:anywhere}
.services-scope{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:32px;color:var(--ui-soft);font-size:12px;letter-spacing:.005em}
.services-scope i{display:block;width:20px;height:1px;background:var(--spectrum);opacity:.8}
#services .service-list{border:0}
#services .service{grid-template-columns:27% minmax(0,1fr);gap:35px;padding:38px 0;border-top:1px solid color-mix(in srgb,var(--ui-border),transparent 70%);border-bottom:0}
#services .service-category{padding-top:6px;font-size:15px;font-weight:400;color:var(--ui-accent)}
#services .service-body h3{font-weight:500;font-size:clamp(23px,2.2vw,30px);margin-bottom:17px;line-height:1.6}
#services .service-body p{font-size:16px;line-height:1.95;color:var(--ui-muted)}
#services .service-mark{display:none}
#services .tags{gap:10px;margin-top:23px}
#services .tags li{background:transparent;border:0;border-radius:0;padding:0 0 0 11px;border-left:1px solid color-mix(in srgb,var(--ui-border),transparent 30%);font-size:12px;line-height:1.4;color:var(--ui-soft)}
.picker-close{width:40px;height:40px;min-width:40px;min-height:40px;padding:0;display:grid;place-items:center;line-height:0;font-size:0;box-sizing:border-box}
.picker-close svg{display:block;width:20px;height:20px;margin:0;flex-shrink:0}
.orbit-close{display:grid;place-items:center;padding:0;font-size:0;line-height:0}.orbit-close svg{display:block;width:27px;height:27px;margin:0}
@media(max-width:760px){
 #mission{padding-bottom:44px}#services{padding-top:24px}
 .services-opening{grid-template-columns:1fr;gap:24px;margin-bottom:30px}
 .services-index{flex-direction:row;align-items:center;gap:18px}.services-index>span:first-child{font-size:14px}.services-index>span:last-child{font-size:12px}
 .services-signature{padding-left:15px}.services-signature .services-signature-en{font-size:clamp(29px,7.5vw,40px)}.services-signature .services-signature-ja{font-size:12px;margin-top:8px}
 #services .services-heading{grid-template-columns:1fr;gap:23px;margin-bottom:35px}#services .services-heading h2{font-size:clamp(40px,10vw,58px);line-height:1.36}
 .services-introduction{padding:0;max-width:none}.services-introduction .services-lead{font-size:18px}.services-introduction .services-description{font-size:15px;margin-top:11px;line-height:1.95}
 .services-scope{margin-top:22px;gap:11px;font-size:12px}.services-scope i{width:16px}
 #services .service{grid-template-columns:minmax(0,1fr);gap:13px;padding:28px 0}#services .service-category{font-size:13px;padding:0}#services .service-body{grid-column:1;grid-row:auto}#services .service-body h3{font-size:23px;margin-bottom:14px}#services .service-body p{font-size:15px}
}
