/* Shared SOTIA identity. Loaded only by the main site, never by demo pages. */
:root {
    --paper: #f6f8fc;
    --bg: #f6f8fc;
    --ink: #162b48;
    --muted: #50617b;
    --line: #d5deec;
    --brand: #235cce;
    --logo-blue: #0879a8;
    --brand-strong: #184ba9;
    --surface: #fff;
    --surface-solid: #fff;
    --accent: #235cce;
    --header-height: 82px;
    --radius-lg: 6px;
    --radius-xl: 6px;
    --radius-md: 4px;
    --shadow: none;
    --shadow-md: none;
    --shadow-lg: none;
    --font-main: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
}
.brand-page { background: var(--paper); color: var(--ink); font-family: var(--font-main); line-height: 1.8; }
.brand-page * { box-sizing: border-box; }
.brand-page a { color: inherit; text-decoration: none; }
.brand-page a:focus-visible, .brand-page button:focus-visible, .brand-page input:focus-visible, .brand-page select:focus-visible, .brand-page textarea:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.brand-page h1, .brand-page h2, .brand-page h3 { overflow-wrap: anywhere; }
.brand-page .container { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.brand-page .header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.brand-page .header-inner { height: 82px; padding: 0; display: flex; align-items: center; gap: 36px; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; }
.brand-page .logo { margin-right: auto; font: 800 27px/1 Arial, sans-serif; letter-spacing: .07em; color: var(--logo-blue); }
.brand-page .nav ul { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.brand-page .nav a { display: inline-flex; min-height: 44px; align-items: center; font-size: .82rem; gap: 10px; color: var(--ink); }
.brand-page .nav a:hover, .brand-page .nav a.is-current { color: var(--brand); }
.brand-page .nav-contact { border-bottom: 1px solid var(--ink); }
.brand-page .header-actions { display: flex; align-items: center; gap: 16px; }
.brand-page .header .lang-switch { font-size: .75rem; display: inline-flex; align-items: center; min-height: 44px; min-width: 0; padding: 0 6px; background: none; border: 0; border-radius: 0; letter-spacing: 0; }
.brand-page .menu-toggle { display: none; width: 44px; height: 44px; background: none; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; }
.brand-page .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; }
.brand-page .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.brand-page .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.brand-page .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.brand-page .btn, .brand-page .mini-cta { min-height: 48px; border-radius: 3px; box-shadow: none; padding: 12px 24px; display: inline-flex; justify-content: center; align-items: center; font-size: .87rem; }
.brand-page .btn-primary, .brand-page .mini-cta { background: var(--brand); color: white; border: 1px solid var(--brand); }
.brand-page .btn-primary:hover, .brand-page .mini-cta:hover { background: var(--brand-strong); }
.brand-page .btn:hover { transform: none; box-shadow: none; }
.brand-page .btn-secondary, .brand-page .btn-ghost { background: white; color: var(--brand); border: 1px solid var(--line); }
.brand-page .text-link, .brand-page .contact-email a { color: var(--brand); }
.brand-page .contact-email { margin-top: 16px; font-size: .88rem; overflow-wrap: anywhere; }
.brand-page .contact-email a, .brand-page .policy-card a, .brand-legal main a:not(.lang-switch) { text-decoration: underline; text-underline-offset: 4px; }
.brand-page .footer { padding: 28px 0; background: var(--paper); color: var(--muted); border-top: 1px solid var(--line); font-size: .7rem; }
.brand-page .footer .container { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.brand-page .footer p { margin: 0; white-space: nowrap; }
.brand-page .footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.brand-page .footer a { color: var(--muted); border: 0; }
.brand-page .footer a:hover { text-decoration: underline; }
/* Homepage: retain the reviewed layout, shift the remaining green tints to blue. */
.brand-home .featured-demo, .brand-home .demo-image, .brand-home .product-image, .brand-home .contact { background: #eaf0fa; }
.brand-home .services { background: #eef3fb; }
.brand-home .service-row, .brand-home .consulting-note { border-color: var(--line); }
.brand-home .form-group input, .brand-home .form-group textarea, .brand-home .form-group select { border-color: #b8c7df; }
/* App pages share the same typography and restrained surfaces. */
.brand-apps .app-hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.brand-apps .app-hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.45; }
.brand-apps .app-lead { margin-top: 22px; font-size: .98rem; }
.brand-apps .section { padding: 56px 0; }
.brand-apps .section-title { margin-bottom: 28px; }
.brand-apps .app-list-grid { grid-template-columns: minmax(0, 760px); }
.brand-apps .app-list-card, .brand-apps .feature-card, .brand-apps .policy-card { border-radius: 6px; box-shadow: none; background: white; }
.brand-apps .app-icon, .brand-apps .app-list-card img, .brand-apps .phone-shot, .brand-apps .feature-graphic, .brand-apps .screenshot-grid img { box-shadow: none; }
.brand-apps .app-meta span, .brand-apps .policy-updated { border-radius: 3px; background: #eaf0fa; }
.brand-apps .policy-layout { max-width: 900px; }
.brand-apps .policy-card { padding: 28px; }
.brand-apps .policy-card h2 { font-size: 1.2rem; }
/* Sales and download pages preserve all functional controls and data hooks. */
.brand-themes .hero { padding: 64px 0 40px; }
.brand-themes .hero-grid { gap: 40px; }
.brand-themes h1 { line-height: 1.5; }
.brand-themes .hero-panel { background: #eaf0fa; border-radius: 6px; box-shadow: none; }
.brand-themes .card, .brand-themes .theme-card, .brand-themes .download-card { border-radius: 6px; box-shadow: none; }
.brand-themes .section { padding: 40px 0 56px; }
.brand-themes .section-alt { background: #eef3fb; border-color: var(--line); }
.brand-themes .theme-card-active { border-color: var(--brand); background: white; }
.brand-themes .badge, .brand-themes .badge-soon, .brand-themes .tag-row span { border-radius: 3px; background: #eaf0fa; color: var(--brand-strong); border: 1px solid var(--line); }
.brand-themes .theme-shot-placeholder { background: #eaf0fa; color: var(--muted); }
.brand-themes .HeroSlider__navArrow { border-radius: 3px; box-shadow: none; }
.brand-themes .business-details { border-radius: 6px; }
/* Legal text stays intact; only its frame and contact details change. */
.brand-legal .wrap { width: min(860px, calc(100% - 80px)); margin: 48px auto 64px; padding: 40px; border-radius: 6px; border-color: var(--line); }
.brand-legal h1 { margin-top: 24px; margin-bottom: 12px; line-height: 1.5; }
.brand-legal .updated { margin-bottom: 32px; }
.brand-legal section { margin-bottom: 28px; }
.brand-legal h2 { margin-bottom: 10px; }
.brand-legal .page-tools .lang-switch { border-radius: 3px; background: #eaf0fa; }
@media (max-width: 1100px) {
    .brand-page .container { width: calc(100% - 48px); }
    .brand-page .nav ul { gap: 18px; }
    .brand-page .header-inner { gap: 20px; }
}
@media (max-width: 820px) {
    .brand-page .container { width: calc(100% - 40px); }
    .brand-page .header-inner { height: 68px; }
    .brand-page .logo { font-size: 25px; }
    .brand-page .menu-toggle { display: block; }
    .brand-page .nav { display: none; position: absolute; top: 68px; left: 0; width: 100%; padding: 16px 20px 24px; background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: none; }
    .brand-page .nav.active { display: block; }
    .brand-page .nav ul { align-items: stretch; flex-direction: column; gap: 4px; }
    .brand-page .nav a { display: flex; padding: 6px 12px; min-height: 44px; }
    .brand-page .nav-contact { border: 0; }
    .brand-page .footer .container { flex-direction: column; }
    .brand-page .footer-links { margin-left: 0; justify-content: start; }
    .brand-apps .app-hero, .brand-themes .hero { padding: 36px 0; }
    .brand-apps .app-hero h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); }
    .brand-apps .app-lead { font-size: .91rem; }
    .brand-apps .app-hero-grid, .brand-themes .hero-grid { grid-template-columns: 1fr; gap: 28px; }
    .brand-apps .section, .brand-themes .section { padding: 36px 0; }
    .brand-apps .policy-card { padding: 20px; }
    .brand-legal .wrap { width: calc(100% - 40px); padding: 24px 20px; margin: 28px auto 40px; }
    .brand-legal .page-tools { gap: 12px; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .brand-page *, .brand-page *::before, .brand-page *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
