/* ============================================================
   Square Golf — main.css
   Design tokens from Figma analysis
   ============================================================ */

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
    /* Colors */
    --color-bg:       #0a0c0a;
    --color-bg-light: #ffffff;
    --color-surface:  #030a0c;
    --color-card:     #1a2a1a;
    --color-primary:  #0c813f;
    --color-accent:   #6beca4;
    --color-text:     #ffffff;
    --color-muted:    #b0b0b0;
    --color-border:   #2a3a2a;
    --color-required: #e53e3e;

    /* Typography */
    --font-main:        'Noto Sans JP', system-ui, sans-serif;
    --font-Hind:        'Hind Vadodara', sans-serif;
    --font-corporate:   'corporate-logo-ver2', 'Arial Black', sans-serif;
    --font-size-hero:   clamp(32px, 5vw, 52px);
    --font-size-h2:     clamp(24px, 3vw, 36px);
    --font-size-h3:     clamp(18px, 2vw, 22px);
    --font-size-body:   14px;
    --font-size-small:  12px;

    /* Spacing */
    --space-section:  96px;
    --container-px:   60px;
    --container-small-px:   30px;
    --container-max:  1280px;
    --gap-grid:       24px;

    /* Components */
    --radius-card:   16px;
    --radius-btn:    4px;
    --radius-input:  4px;
    --nav-height:    68px;
}

/* ── Bootstrap overrides — loaded after Bootstrap CSS ───────── */
/* Reset Bootstrap's link color to match our design */
a { --bs-link-color: inherit; --bs-link-hover-color: var(--color-primary); }
/* Prevent Bootstrap from overriding our body font */
body { --bs-body-font-family: var(--font-main); --bs-body-font-size: var(--font-size-body); --bs-body-color: var(--color-text); }
/* Our container overrides Bootstrap's container */
.container { max-width: var(--container-max); padding-left: var(--container-px); padding-right: var(--container-px); }

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-main);
    font-size: var(--font-size-body);
    background: var(--color-bg-light);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    min-width: 300px;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; padding: 0;}
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-px);
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    /* left half: deeper shade slides in on hover; right half: normal accent */
    background: linear-gradient(to right, #fff 50%, var(--color-accent) 50%);
    background-size: 200% 100%;
    background-position: right center;
    color: var(--color-surface);
    font-weight: 700;
    font-size: 14px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    transition: background-position .38s cubic-bezier(.4,0,.2,1),
                box-shadow .28s ease,
                transform .28s ease;
    min-width: 180px;
}
.btn-primary:hover {
    background-position: left center;
    transform: translateY(-2px);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid #fff;
    color: #111;
    font-weight: 600;
    font-size: 14px;
    padding: 11px 27px;
    border-radius: var(--radius-btn);
    /* gradient: left half = accent, right half = white — slide on hover */
    background: linear-gradient(to right, var(--color-accent, #6beca4) 50%, #fff 50%);
    background-size: 200% 100%;
    background-position: right center;
    transition: background-position .38s cubic-bezier(.4,0,.2,1),
                border-color .28s ease,
                box-shadow .28s ease;
    min-width: 180px;
}
.btn-outline:hover {
    background-position: left center;
    border-color: var(--color-accent, #6beca4);
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(107,236,164,.45), 0 0 0 2px rgba(107,236,164,.18);
}

.btn-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
    padding: 12px 28px;
    border-radius: var(--radius-btn);
    transition: opacity .2s;
}
.btn-dark:hover { opacity: .85; }

/* ── Navbar ─────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #fff;
    height: var(--nav-height);
}

.navbar-inner {
    width: 100%;
    padding: 0 var(--container-px);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.navbar-logo img {
    height: 36px;
    width: auto;
}

/* Desktop menu */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.nav-item > a,
.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    letter-spacing: .5px;
    transition: color .2s;
}
.nav-item > a:hover,
.nav-dropdown-trigger:hover { color: var(--color-primary); }
.nav-item.active > a { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }

.nav-plus { font-size: 11px; color: var(--color-primary); }

/* Dropdown */
.nav-item.has-dropdown { position: relative; }

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    padding-top: 8px;
    min-width: 200px;
    transform-origin: top left;
    z-index: 200;
}
.nav-dropdown::before {
    /* invisible bridge that fills the 8px gap so :hover never drops */
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 8px;
}
/* .nav-item.has-dropdown hover is handled by GSAP in main.js */
.nav-dropdown > li {
    background: #fff;
}
.nav-dropdown > li:first-child { border-radius: 6px 6px 0 0; }
.nav-dropdown > li:last-child  { border-radius: 0 0 6px 6px; }
.nav-dropdown {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    padding: 14px 0 6px; /* 14 = 8 gap + 6 top padding */
}
.nav-dropdown li a {
    display: block;
    padding: 10px 18px;
    font-size: 13px;
    color: #333;
    transition: background .15s, color .15s;
}
.nav-dropdown li a:hover  { background: #f5faf7; color: var(--color-primary); }
.nav-dropdown li a.active {
    color: var(--color-primary);
    font-weight: 700;
    background: #f0faf5;
}

/* Navbar actions */
.navbar-actions { display: flex; align-items: center; gap: 12px; }

/* Lang switcher */
.lang-switcher { position: relative; }
.lang-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: #fff;
}
.lang-arrow { font-size: 10px; }
.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 0px);
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    min-width: 120px;
    padding: 4px 0;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.lang-switcher:hover .lang-dropdown { display: block; }
.lang-opt {
    display: block;
    padding: 8px 14px;
    font-size: 12px;
    color: #333;
    transition: background .15s;
}
.lang-opt:hover { background: #f5f5f5; }
.lang-opt.active { color: var(--color-primary); font-weight: 700; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: transform .25s, opacity .25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Mobile Menu ─────────────────────────────────────────────── */
.mobile-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: #fff;
    z-index: 999;
    flex-direction: column;  /* active when display:flex set by media query */
    transform: translateX(100%);
    transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-inner {
    padding: 24px 24px 24px;
    flex: 1;
    overflow-y: auto;
}

.mobile-nav li { border-bottom: 1px solid #f0f0f0; }
.mobile-nav li a,
.mobile-sub-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 4px;
    font-size: 14px;
    font-weight: 600;
    color: #222;
    width: 100%;
    text-align: left;
}

.mobile-sub { display: none; padding-left: 16px; overflow: hidden; }
/* .mobile-sub open/close handled by GSAP in main.js */
.mobile-sub li a { font-size: 13px; font-weight: 400; color: #555; }

.mobile-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.4);
    z-index: 998;
}
.mobile-overlay.show { display: block; }

.mobile-menu-cta { margin-top: 24px; }
.mobile-menu-cta .btn-primary { width: 100%; justify-content: center; }

/* ── Main content offset ─────────────────────────────────────── */
.main-content { padding-top: var(--nav-height); background: #fff; }

/* ── Section common ─────────────────────────────────────────── */
.section { padding: var(--space-section) 0; }
.section-light { background: #fff; color: #111; }
.section-dark  { background: var(--color-bg); }
.section-surface { background: var(--color-surface); }

/* Section header pattern: icon + EN title + JP subtitle */
.section-header { text-align: center; margin-bottom: 56px; }
.section-icon {
    display: inline-block;
    width: 36px; height: 36px;
    border: 2px solid var(--color-accent);
    margin-bottom: 16px;
}
.section-title {
    font-size: var(--font-size-h2);
    font-weight: 900;
    letter-spacing: .05em;
    line-height: 1.2;
}
.section-subtitle {
    margin-top: 8px;
    font-size: 14px;
    color: var(--color-muted);
    font-weight: 900;
}
.section-light .section-title  { color: #111; }
.section-light .section-subtitle { color: #111; }

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--color-bg);
}
.hero-bg {
    position: absolute;
    inset: 0;
    object-fit: cover;
    width: 100%; height: 100%;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,.7) 100%);
}
.hero-content {
    position: relative;
    z-index: 1;
}
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}
.hero-subtitle {
    margin-top: 12px;
    font-size: 16px;
    color: #ccc;
}
.hero-actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ── Ticker / Marquee ─────────────────────────────────────────── */
.ticker-strip {
    background: var(--color-primary);
    padding: 14px 0;
    overflow: hidden;
    white-space: nowrap;
}
.ticker-inner {
    display: inline-flex;
    gap: 40px;
    animation: ticker 20s linear infinite;
}
.ticker-item {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    letter-spacing: .1em;
}
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── Dark card ─────────────────────────────────────────────── */
.card-dark {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 32px;
}

/* ── Grid utilities ─────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-grid); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-grid); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-grid); }

/* ── FAQ Accordion ──────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid var(--color-border);
}
.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    color: var(--color-text);
    transition: color .2s;
}
.faq-question:hover { color: var(--color-accent); }
.faq-icon {
    font-size: 18px;
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform .25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease, padding .3s ease;
}
.faq-answer-inner {
    padding-bottom: 20px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* Light theme FAQ */
.section-light .faq-question { color: #111; }
.section-light .faq-item     { border-color: #e8e8e8; }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
    background: var(--color-surface);
    padding-top: 56px;
}

.footer-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* Left half */
.footer-half--left {
    display: flex;
    align-items: end;
    gap: 16px;
    flex: 1;
}
.footer-logo img { height: 140px; width: auto; }
.footer-company { display: flex; flex-direction: column; gap: 4px; }
.footer-company-name { font-size: 1.2rem; font-weight: 700; color: var(--color-text); margin-bottom: 0 !important;}
.footer-company-sub  { font-size: 1rem; color: var(--color-text); margin-bottom: 0 !important;}

/* Right half */
.footer-half--right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}
.footer-cols {
    display: flex;
    gap: 40px;
}

.footer-col-title {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--color-accent);
    margin-bottom: 14px;
}
.footer-links li { margin-bottom: 10px; }
.footer-links a {
    position: relative;
    display: inline-block;
    font-size: 1rem;
    color: var(--color-text);
    padding-left: 0;
    transition: color .22s ease, transform .22s ease, padding-left .22s ease;
}
.footer-links a::before {
    content: '';
    position: absolute;
    left: -14px; top: 50%;
    transform: translateY(-50%) scale(0);
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 6px var(--color-accent);
    transition: transform .22s cubic-bezier(.4, 0, .2, 1), opacity .22s;
    opacity: 0;
}
.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -2px; left: 0;
    width: 100%; height: 1px;
    background: var(--color-accent);
    transform-origin: left center;
    transform: scaleX(0);
    transition: transform .28s cubic-bezier(.4, 0, .2, 1);
}
.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(14px);
    padding-left: 0;
}
.footer-links a:hover::before {
    transform: translateY(-50%) scale(1);
    opacity: 1;
}
.footer-links a:hover::after { transform: scaleX(1); }

.footer-cta-wrap { display: flex; justify-content: end;}
.footer-cta-btn {
    white-space: nowrap;
    box-shadow: 0 15px 40px rgba(98, 245, 167, .55), 0 15px 48px rgba(98, 245, 167, .4), 0 45px 100px rgba(98, 245, 167, .52);
    border-radius: 50px;
    padding: 6px 20px;
    width: 50%;
    justify-content: space-around;
}

.footer-bottom {
    max-width: 800px;
    margin: 40px auto 0;
    padding: 20px 24px;
    font-size: 12px;
    color: var(--color-muted);
    text-align: center;
}

/* ── Back to top ─────────────────────────────────────────────── */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 44px; height: 44px;
    background: var(--color-accent);
    color: #111;
    font-size: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
    z-index: 900;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }

/* ── Forms (Contact page — light theme) ─────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 6px;
}
.required-badge {
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: var(--color-required);
    padding: 1px 5px;
    border-radius: 2px;
}
.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-main);
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: var(--radius-input);
    background: #fff;
    color: #111;
    transition: border-color .2s;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-primary);
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.form-checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #333; cursor: pointer; }
.form-checkbox input { accent-color: var(--color-primary); }

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-card {
    background: var(--color-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-card);
    padding: 36px 28px;
    text-align: center;
}
.pricing-card.featured { border-color: var(--color-accent); }
.pricing-plan { font-size: 13px; font-weight: 700; color: var(--color-accent); margin-bottom: 12px; }
.pricing-price { font-size: 32px; font-weight: 700; color: #fff; }
.pricing-features { margin-top: 20px; text-align: left; }
.pricing-feature {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    font-size: 13px;
    color: var(--color-muted);
    border-bottom: 1px solid var(--color-border);
}
.pricing-feature-check { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }

/* ── Comparison table ───────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th,
.compare-table td {
    padding: 12px 16px;
    font-size: 13px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.compare-table th { font-weight: 700; color: var(--color-muted); font-size: 12px; text-transform: uppercase; }
.compare-table td:first-child { text-align: left; color: var(--color-muted); }
.compare-check { color: var(--color-accent); font-weight: 700; font-size: 16px; }

/* ══════════════════════════════════════════════════════════════
   HOME PAGE SPECIFIC
   ══════════════════════════════════════════════════════════════ */

/* ── Home Hero ──────────────────────────────────────────────── */
.home-hero {
    position: relative;
    z-index: 0;
    height: 100vh;
    min-height: 560px;
    max-height: 1000px;
    background: #060b06;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    margin: 0 var(--container-px);
    border-radius: 20px 20px 0 0;
}

@media (max-width: 768px) {
    .home-hero {
        margin: 0;
        border-radius: 0;
    }
    .home-hero--full .home-hero__text { width: 100% !important; }
}

.home-hero--full {
    margin: 0;
    border-radius: 0;
}
.home-hero--full .home-hero__inner {
    justify-content: center;
    padding-bottom: 64px;
}
.home-hero--full .home-hero__text {
    width: 55%;
}

/* Background image layer (used on software page hero) */
.home-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    pointer-events: none;
    filter: brightness(0.6);
}
.home-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,11,6,.88) 0%, rgba(6,11,6,.2) 35%, transparent 60%);
}

/* Radial green glow at bottom-center */
.home-hero__bg-grad {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 50% at 50% 110%, rgba(26,107,58,.55) 0%, transparent 70%),
        #060b06;
}

.home-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-evenly;
    flex-direction: column;
    align-items: center;
    padding-top: 52px;
    padding-bottom: 0;
    width: 100%;
    height: 100%;
}

/* Text block */
.home-hero__text {
    text-align: center;
    padding-bottom: 32px;
}
.home-hero__title {
    font-family: var(--font-Hind);
    font-size: clamp(26px, 4.2vw, 52px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .05em;
    color: #fff;
    text-transform: uppercase;
}
.home-hero__sub {
    margin-top: 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-text);
    letter-spacing: .07em;
}
.home-hero__actions {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Products image row */
.home-hero__products {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0;
    width: 100%;
    max-width: 680px;
    flex: 1;
    min-height: 0;       /* prevent flex blowout */
    overflow: visible;   /* allow Y float to show above container */
}
.home-hero__prod-img {
    flex: 1;
    min-width: 0;
    min-height: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 100%;
}
.home-hero__prod-img img {
    /* height + width 100% forces img to fill the container exactly;
       object-fit: contain then scales the photo within — no overflow */
    height: 100%;
    width: 100%;
    display: block;
    object-fit: contain;
    object-position: bottom center;
}
.home-hero__prod-img--omni {
    position: relative;
    z-index: 1;
}

/* Bottom green glow line */
.home-hero__glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 180px;
    /* thin bright line at bottom + radial halo spreading upward */
    background:
        linear-gradient(to right, transparent 8%, var(--color-accent) 50%, transparent 92%)
            bottom / 100% 4px no-repeat,
        radial-gradient(ellipse 72% 100% at 50% 100%,
            rgba(107,236,164,.48)  0%,
            rgba(107,236,164,.18) 45%,
            transparent           72%);
    z-index: 1;          /* behind .home-hero__inner (z-index: 2) */
    pointer-events: none;
}

/* ── Section icon (logo image) ──────────────────────────────── */
.section-icon-img {
    display: inline-block;
    width: 36px;
    height: 36px;
    object-fit: contain;
    margin-bottom: 16px;
    /*filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);*/
}

/* ── Product Cards (Which SQG) ──────────────────────────────── */
.which-section {
    padding-top: 72px;
    padding-bottom: 80px;
    background: #fff;
    overflow: hidden;
}
.which-section .section-title  { color: #111; font-family: var(--font-Hind);}
.which-section .section-subtitle { color: #111; font-family: var(--font-Hind); }

/* Product cards — Bootstrap row handles columns; keep padding wrapper */
.product-cards {
    padding: 0 40px;
}
.product-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    min-height: 440px;
    height: 100%;          /* fill Bootstrap col height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    border: 1px solid #e0e0e0;
}
.product-card__bg {
    position: absolute;
    inset: 0;
}
.product-card__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
}
/* No overlay — image shows naturally, gradient only at bottom for text readability */
.product-card__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    /*background: linear-gradient(
        to bottom,
        transparent 40%,
        rgba(0,8,0,.82) 100%
    );*/
}
.product-card__body {
    position: relative;
    z-index: 2;
    padding: 28px 28px 72px;
}
.product-card__name {
    font-family: var(--font-corporate);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}
.product-card__tagline {
    font-size: 1rem;
    color: var(--color-text);
    margin-bottom: 16px;
}
.product-card__features {
    margin-bottom: 20px;
}
.product-card__features li {
    font-size: 1rem;
    color: var(--color-text);
    padding: 3px 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}
.check { color: var(--color-accent); font-weight: 700; flex-shrink: 0; }

.product-card__btn {
    font-size: 1rem;
    padding: 10px 22px;
    width: 40%;
    justify-content: center;
}

.product-card__arrow {
    position: absolute;
    bottom: 40px;
    right: 50px;
    width: 55px;
    height: 55px;
    border: 1.5px solid var(--color-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    font-size: 35px;
    z-index: 2;
    transition: background .2s, color .2s;
    background: radial-gradient(#00000042, transparent);
}
.product-card__arrow:hover { background: var(--color-accent); color: #111; }

/* ── Software Block ──────────────────────────────────────────── */
.software-block { padding: 0 0 0; padding-bottom: 80px; }

.software-card {
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
        "title title"
        "left  right";
    align-items: start;
    gap: 0;
    position: relative;
    min-height: 500px;
}

/* Background image layer — brightness only affects this element */
.software-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    filter: brightness(1.5);
    z-index: 0;
}

/* Dark overlay — above bg image, below content */
.software-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(5,15,5,.55) 0%,
        rgba(5,15,5,.35) 45%,
        rgba(5,15,5,.1) 100%
    );
    z-index: 1;
}
/* Animatable custom property for conic-gradient `from` angle */
@property --sw-from {
    syntax: '<angle>';
    inherits: false;
    initial-value: -45deg;
}

/* Spotlight — cone sweeps from 0° (straight up) to 90° (straight right) */
.software-card::after {
    content: '';
    position: absolute;
    inset: 0;
    --sw-from: -45deg; /* beam center starts at 0° (north) */
    background: conic-gradient(
        from var(--sw-from) at 0% 100%,
        transparent            0deg,
        rgba(107,236,164,.04) 20deg,
        rgba(107,236,164,.38) 38deg,
        rgba(107,236,164,.58) 45deg,
        rgba(107,236,164,.38) 52deg,
        rgba(107,236,164,.04) 68deg,
        transparent           85deg,
        transparent          360deg
    );
    filter: blur(28px);
    mix-blend-mode: screen;
    pointer-events: none;
    z-index: 2;
    animation: spotlightSweep 12s ease-in-out infinite;
}
@keyframes spotlightSweep {
    0%   { --sw-from: -45deg; } /* beam at 0°  — pointing straight up   */
    50%  { --sw-from:  45deg; } /* beam at 90° — pointing straight right */
    100% { --sw-from: -45deg; }
}

/* Title row spans both columns */
.software-card__title-row {
    grid-area: title;
    position: relative;
    z-index: 2;
    padding: 52px 52px 20px 52px;
}

.software-card__left {
    grid-area: left;
    position: relative;
    z-index: 2;
    padding: 4px 40px 52px 52px;
}
.software-card__right {
    grid-area: right;
    position: relative;
    z-index: 1;
    display: none;
}

.software-card__title {
    font-family: var(--font-corporate);
    font-size: clamp(28px, 4vw, 66px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}
.software-card__list {
    margin-bottom: 28px;
}
.software-card__list li {
    font-size: clamp(12px, 2vw, 14px);
    font-weight: 600;
    color: var(--color-text);
    padding: 5px 0;
    padding-left: 14px;
    position: relative;
    line-height: 1.65;
}
.software-card__list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-accent);
    transition: color .25s ease, text-shadow .25s ease;
}
.software-card__list li:hover::before {
    color: #fff;
    text-shadow:
        0 0 6px var(--color-accent),
        0 0 14px var(--color-accent),
        0 0 28px rgba(107,236,164,.6);
}
.muted-sm { font-size: 11.5px; color: #888; }
.software-card__btns { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-outline-white {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #fff;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: var(--radius-btn);
    background: transparent;
    transition: background .2s, color .2s;
}
.btn-outline-white:hover { background: #fff; color: #111; }

/* ── Ticker ─────────────────────────────────────────────────── */
.ticker-wrap {
    overflow: hidden;
    padding: 0;
    line-height: 0;
}
.ticker-track {
    display: inline-flex;
    gap: 0;
    animation: tickerMove 22s linear infinite;
    white-space: nowrap;
}
.ticker-word {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 38px;
    font-weight: 900;
    letter-spacing: .06em;
    padding: 18px 36px;
    border-right: 2px solid #222;
    line-height: 1;
    border-bottom: 3px solid var(--color-accent);
}
.ticker-word:nth-child(odd)  { background: var(--color-surface); color: var(--color-text); border-left: 1px solid var(--color-accent);border-right: 1px solid var(--color-accent);}
.ticker-word:nth-child(even) { background: var(--color-surface); color: var(--color-accent); border-left: 1px solid var(--color-accent);border-right: 1px solid var(--color-accent);}
.ticker-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.ticker-word:nth-child(odd)  .ticker-logo { filter: invert(0) brightness(3); }
.ticker-word:nth-child(even) .ticker-logo { filter: none; }
@keyframes tickerMove {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ── FAQ Section ─────────────────────────────────────────────── */
.faq-section {
    position: relative;
    padding: 80px 0 96px;
    overflow: hidden;
}
.faq-section__bg {
    position: absolute;
    inset: 0;
}
.faq-section__bg img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center;
}
.faq-section__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
}
.faq-section__body { position: relative; z-index: 2; }
.faq-section__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 900;
    color: #fff;
    margin-bottom: 4px;
}
.faq-section__sub {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .12em;
    margin-bottom: 40px;
}
.faq-section .section-header { margin-bottom: 0; }

/* FAQ cards style (home) */
.home-faq { max-width: 800px; margin: 0 auto; }

.faq-card {
    background: #fff;
    border-radius: 8px;
    margin-bottom: 10px;
    overflow: hidden;
    /* background color animated by GSAP — no CSS transition needed */
}
.faq-card.open {
    background: var(--color-accent); /* fallback if JS disabled */
}

.faq-card__q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    font-family: var(--font-main);
    font-size: 13.5px;
    font-weight: 600;
    color: #111;
    text-align: left;
    cursor: pointer;
    transition: color .2s;
}
.faq-card.open .faq-card__q { color: #111; }
.faq-card__q:hover { color: var(--color-primary); }

.faq-q-icon {
    flex-shrink: 0;
    width: 26px; height: 26px;
    background: var(--color-accent);
    color: #111;
    font-size: 12px;
    font-weight: 900;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* color animated by GSAP */
}
.faq-card.open .faq-q-icon {
    background: #fff; /* fallback if JS disabled */
    color: #111;
}

.faq-q-text { flex: 1; }
.faq-q-toggle {
    flex-shrink: 0;
    font-size: 20px;
    color: var(--color-primary);
    line-height: 1;
    font-weight: 300;
    /* rotation + color animated by GSAP */
}
.faq-card.open .faq-q-toggle {
    transform: rotate(45deg); /* fallback if JS disabled */
    color: #111;
}
.faq-card__a {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}
.faq-card.open .faq-card__a { max-height: 300px; }
.faq-card__a-inner {
    padding: 0 20px 18px 58px;
    font-size: 13px;
    color: #111;
    line-height: 1.85;
}

/* その他の質問はこちら button */
.faq-more-wrap {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}
.btn-faq-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--color-accent);
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 30px;
    background: transparent;
    cursor: pointer;
    text-decoration: none;
    position: relative;
    transition: color .2s, border-color .2s, box-shadow .2s;
    box-shadow: 0 0 0 0 rgba(74,222,128,0);
}
.btn-faq-more:hover {
    color: var(--color-accent);
    border-color: var(--color-accent);
    box-shadow: 0 0 16px 4px rgba(74,222,128,.25);
}

/* ── Shared accent ──────────────────────────────────────────── */
.accent { color: var(--color-accent); }

/* ── Animations (GSAP targets) ──────────────────────────────── */
.fade-up { opacity: 0; transform: translateY(30px); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    :root {
        --container-px: 40px;
        --space-section: 72px;
    }
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --container-px: 20px;
        --space-section: 56px;
        --gap-grid: 16px;
    }
    .navbar-menu { display: none; }
    .hamburger   { display: flex; }
    .mobile-menu { display: flex; flex-direction: column; }
    .navbar-actions .lang-switcher { display: none; }

    .product-card__btn { font-size: 12px; }

    /* Arrow nhỏ hơn trên tablet */
    .product-card__arrow {
        width: 44px;
        height: 44px;
        font-size: 26px;
        bottom: 30px;
        right: 30px;
    }

    .grid-2,
    .grid-3,
    .grid-4 { grid-template-columns: 1fr; }

    /* Footer — tablet/mobile */
    .footer-inner { flex-direction: column; gap: 32px; }
    .footer-cols { gap: 24px; }
    .footer-col-title { font-size: 1rem; }
    .footer-links a   { font-size: .875rem; }
    .footer-company-name { font-size: 1.1rem; }
    .footer-company-sub  { font-size: 0.88rem; }
    .form-checkbox-grid { grid-template-columns: repeat(2, 1fr); }

    /* Home specific */
    .product-cards { padding: 0; } /* Bootstrap col handles stacking */
    .software-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        grid-template-areas: "title" "left";
        padding: 0;
        gap: 0;
    }
    .software-card__title-row { padding: 32px 24px 16px; }
    .software-card__left { padding: 0 24px 32px; }
    .ticker-word { font-size: 22px; padding: 0 20px; }
    .home-hero { min-height: 420px; }

    .home-hero__products {
        max-height: 280px;
        max-width: 100%;
    }
    .home-hero__prod-img img {
        max-height: 260px;
    }
}

/* Tablet: footer CTA centered */
@media (max-width: 768px) and (min-width: 481px) {
    .footer-cta-wrap { justify-content: center; }
}

/* Mobile: footer CTA full width */
@media (max-width: 480px) {
    .footer-cta-wrap { justify-content: stretch; }
    .footer-cta-btn  { width: 100%; text-align: center; justify-content: center; }
}

@media (max-width: 480px) {
    /* Arrow rất nhỏ trên mobile */
    .product-card__arrow {
        width: 36px;
        height: 36px;
        font-size: 20px;
        bottom: 30px;
        right: 30px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRODUCT DETAIL PAGES (sqg-home / sqg-omni)
   ══════════════════════════════════════════════════════════════ */

/* ── Product Hero ───────────────────────────────────────────── */
.prod-hero {
    background: linear-gradient(to bottom, #2a2e2c 0%, #285144 42%, #ffffff 100%);
    padding-bottom: 64px;
}

/* Logo strip centered at top */
.prod-hero__logo-strip {
    text-align: center;
    padding: 36px 0 44px;
}
.prod-hero__logo-strip img {
    height: 56px;
    width: auto;
    filter: brightness(0) invert(1);
    display: inline-block;
}

/* Two-column grid */
.prod-hero__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
    background: #fff;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 24px 64px rgba(0,0,0,.22);
}

/* ── Gallery (left col) ── */
.prod-hero__main-wrap {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 4/3;
    background: rgba(255,255,255,.06);
    cursor: zoom-in !important;
}
.prod-hero__main-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.prod-hero__thumb-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.prod-hero__thumb-item {
    aspect-ratio: 1;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,.18);
    transition: border-color .2s;
    cursor: pointer;
}
.prod-hero__thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.prod-hero__thumb-item:hover  { border-color: var(--color-accent); }
.prod-hero__thumb-item.active { border-color: var(--color-accent); }

/* ── Info card (right col) ── */
.prod-hero__info {
    padding: 0;
}
.prod-hero__category {
    font-size: 12px;
    font-weight: 600;
    color: #999;
    margin-bottom: 10px;
    letter-spacing: .04em;
}
.prod-hero__name {
    font-family: var(--font-Hind);
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    color: #0a0c0a;
    text-transform: uppercase;
    letter-spacing: .04em;
    line-height: 1.15;
}
.prod-hero__name-jp {
    font-size: clamp(20px, 2.2vw, 28px);
    font-weight: 900;
    color: #0a0c0a;
    margin-top: 4px;
}
.prod-hero__price {
    font-family: var(--font-Hind);
    font-size: 30px;
    font-weight: 700;
    color: var(--color-primary);
    margin: 16px 0 18px;
    letter-spacing: .02em;
}
.prod-hero__price small {
    font-size: 13px;
    font-weight: 700;
    color: #111;
    margin-left: 4px;
}
.prod-hero__features {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}
.prod-hero__features li {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: #111;
    font-weight: 600;
    padding: 8px 0;
    line-height: 1.55;
}
.prod-hero__features li::before {
    content: '・';
    color: var(--color-primary);
    flex-shrink: 0;
    font-weight: 700;
}

/* Accessory cross-sell box */
.prod-hero__accessory {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #e4e8e4;
    border-radius: 10px;
    padding: 20px 15px;
    margin-bottom: 18px;
}
.prod-hero__accessory-img {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #eee;
}
.prod-hero__accessory-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.prod-hero__accessory-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    color: var(--color-primary);
    text-transform: uppercase;
    margin-bottom: 3px;
}
.prod-hero__accessory-name {
    font-size: 12px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
}
.prod-hero__accessory-desc {
    font-size: 11px;
    color: #888;
    margin-top: 3px;
    line-height: 1.5;
}

/* Button in accessory box */
.btn-black {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 50px;
    white-space: nowrap;
    transition: opacity .2s;
    flex-shrink: 0;
}
.btn-black:hover { opacity: .78; }

.prod-hero__actions { display: flex; gap: 10px; align-items: center; }
.prod-hero__actions .btn-primary { width: 50%; justify-content: center; }

.prod-hero__divider {
    opacity: 1;
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 18px 0 0;
}

/* Collapse — デバイスの設定 */
.prod-collapse { margin-top: 14px; }
.prod-collapse__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 0;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
    background: none;
    border: none;
    border-bottom: 1px solid #e8e8e8;
    text-align: left;
    font-family: inherit;
}
.prod-collapse__icon {
    font-size: 18px;
    line-height: 1;
    color: #999;
    transition: transform .25s ease;
}
.prod-collapse.open .prod-collapse__icon { transform: rotate(45deg); }
.prod-collapse__body {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.prod-collapse.open .prod-collapse__body { max-height: 600px; }
.prod-collapse__content {
    padding: 14px 0 4px;
    font-size: 12px;
    color: #555;
    line-height: 1.85;
    white-space: pre-wrap;
}

.prod-hero__note {
    font-size: 11px;
    color: #aaa;
    margin-top: 10px;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 900px) {
    .prod-hero__inner { grid-template-columns: 1fr; gap: 32px; }
    .prod-hero__logo-strip { padding: 24px 0 28px; }
}
@media (max-width: 768px) {
    .prod-hero { padding-bottom: 40px; }
    .prod-hero__inner { padding: 20px; }
}

/* ── Brand Banner ───────────────────────────────────────────── */
.prod-banner img {
    width: 100%;
    height: auto;
    display: block;
    padding: 0 var(--container-px);
}
@media (max-width: 768px) {
    .prod-banner img {padding: 0;}
}
/* ── Features Section (sticky scroll pin) ──────────────────── */
/* .prod-features height is extended by JS to create scroll space for the slider */
.prod-feat-pin {
    position: sticky;
    top: 0;
    padding: var(--space-section) 0 60px;
    overflow: hidden;
}
.prod-features__header {
    text-align: center;
    margin-bottom: 35px;
    padding: 0 var(--container-px);
}
.prod-features__label {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .2em;
    color: #111;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.prod-features__title {
    font-family: var(--font-Hind);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 700;
    color: #111;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.prod-features__sub {
    margin-top: 6px;
    font-size: 14px;
    color: #111;
    letter-spacing: .05em;
}

/* Slider */
.prod-feat-slider {
    position: relative;
    overflow: hidden;
    cursor: none;
    user-select: none;
    -webkit-user-select: none;
}
.prod-feat-track {
    display: flex;
    gap: 16px;
    padding: 0 var(--container-px);
    will-change: transform;
}

/* Card — ~1.8 visible at once */
.prod-feat-card {
    position: relative;
    flex: 0 0 calc((100vw - var(--container-px) - 24px) / 1.8);
    height: 420px;
    border-radius: 12px;
    overflow: hidden;
}
.prod-feat-card__bg {
    position: absolute;
    inset: 0;
}
.prod-feat-card__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .55s ease;
}
.prod-feat-card:hover .prod-feat-card__bg img { transform: scale(1.06); }

/* Overlay only on text area — gradient top → transparent */
.prod-feat-card__body {
    position: relative;
    z-index: 2;
    padding: 22px 20px 36px;
    background: linear-gradient(to bottom, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 100%);
    transition: background .35s ease;
}
.prod-feat-card:hover .prod-feat-card__body,
.prod-feat-card.feat-card--active .prod-feat-card__body {
    background: linear-gradient(to bottom, rgba(12,129,63,.92) 0%, rgba(12,129,63,0) 100%);
}
.prod-feat-card.feat-card--active .prod-feat-card__bg img {
    transform: scale(1.06);
}
.prod-feat-card__title {
    display: block;
    font-family: var(--font-corporate);
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--color-accent);
    margin-bottom: 10px;
    line-height: 1.4;
}
.prod-feat-card__desc {
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.8;
}

/* Custom drag cursor */
.prod-feat-drag-cursor {
    position: absolute;
    top: 0; left: 0;
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(.8);
    z-index: 20;
    opacity: 0;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 4px 24px rgba(107,236,164,.4);
}
.prod-feat-drag-cursor.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
.prod-feat-drag-cursor svg { width: 28px; height: 28px; color: #0a0c0a; }

/* Hide base custom cursor while drag cursor is active */
body.feat-drag-active .sqg-cursor,
body.feat-drag-active .sqg-cursor-ring { opacity: 0 !important; transition: none !important; }

/* Progress bar */
.prod-feat-progress-wrap {
    padding: 24px var(--container-px) 0;
}
.prod-feat-progress {
    height: 2px;
    background: rgba(255,255,255,.12);
    border-radius: 2px;
}
.prod-feat-progress__fill {
    height: 100%;
    background: var(--color-accent);
    border-radius: 2px;
    width: 25%;
    transition: width .08s linear;
}

/* ── Specs Section ──────────────────────────────────────────── */
.prod-specs {
    font-family: var(--font-Hind);
    background: #0a0c0a;
    padding: var(--space-section) 0;
    position: relative;
}
.prod-specs::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 100px;
    background: linear-gradient(to top, rgba(12,129,63,.92) 0%, rgba(12,129,63,0) 100%);
    pointer-events: none;
}
.prod-specs__header {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-bottom: 52px;
}
.prod-specs__heading {
    flex: 0 0 50%;
}
.prod-specs__label {
    font-size: .88rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.prod-specs__title {
    font-family: var(--font-Hind);
    font-size: clamp(24px, 3vw, 38px);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
}
.prod-specs__sub {
    flex: 1;
    font-size: .88rem;
    font-weight: 600;
    line-height: 1.8;
    text-align: start;
}
.prod-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    overflow: hidden;
}
.prod-spec-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    background: rgb(27 27 27);
    border: 1px solid rgb(96 96 96);
    border-radius: 10px;
    transition: background .2s;
}
.prod-spec-item:hover { background: rgba(0, 255, 115, 0.15); }
.prod-spec-item__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    opacity: .85;
}
.prod-spec-item__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(1);
}
.prod-spec-item__label {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}
.prod-spec-item__val {
    font-size: .9rem;
    font-weight: 500;
    line-height: 1.65;
}

/* ── Software Cross-sell ────────────────────────────────────── */
.prod-software {
    padding: var(--space-section) 0;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
    .prod-hero__inner { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 768px) {
    .prod-hero { padding: 20px 0 48px; }
    .prod-spec-grid { grid-template-columns: 1fr; }
    .prod-feat-card { flex: 0 0 76vw; height: 340px; }
    .prod-feat-pin { padding: 80px 0 60px; }
    .prod-specs__header { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ══════════════════════════════════════════════════════════════
   PRICING PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Hero ───────────────────────────────────────────────────── */
.pricing-hero {
    position: relative;
    height: 100vh;
    min-height: 560px;
    max-height: 1000px;
    background: #060b06;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    margin: 0 var(--container-px);
    border-radius: 20px 20px 0 0;
}
.pricing-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center center;
    opacity: 1;
    pointer-events: none;
}
.pricing-hero__bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,11,6,.88) 0%, rgba(6,11,6,.2) 35%, transparent 60%);
}
.pricing-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: start;
    flex-direction: column;
    align-items: flex-start;
    padding-top: 52px;
    padding-bottom: 48px;
    width: 100%;
    text-align: left;
}
.pricing-hero__text {
    width: 50%;
}
.pricing-hero__label {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: .22em;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 18px;
}
.pricing-hero__title {
    font-family: var(--font-Hind);
    font-size: clamp(28px, 2.8vw, 56px);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    letter-spacing: .04em;
    margin-bottom: 16px;
}
.pricing-hero__sub {
    font-size: .88rem;
    line-height: 1.8;
    max-width: 70%;
}
.pricing-hero__glow {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 180px;
    background:
        linear-gradient(to right, transparent 8%, var(--color-accent) 50%, transparent 92%)
            bottom / 100% 4px no-repeat,
        radial-gradient(ellipse 72% 100% at 50% 100%,
            rgba(107,236,164,.48)  0%,
            rgba(107,236,164,.18) 45%,
            transparent           72%);
    z-index: 1;
}

/* ── Pricing section ────────────────────────────────────────── */
.pricing-section {
    background: #fff;
    padding: var(--space-section) 0;
    margin: 0 var(--container-px);
    color: #111;
}

/* ── Main explanation card ──────────────────────────────────── */
.pricing-main-card {
    position: relative;
    display: grid;
    overflow: hidden;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    background: #111;
    border-radius: 20px;
    padding: 35px 20px;
    margin-bottom: 48px;
    color: #fff;
}

.pricing-main-card__stripe {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--color-accent);
    border-radius: 4px;
    transform-origin: center center;
    clip-path: inset(0 0 100% 0);
}
.pricing-main-card__title {
    font-size: clamp(20px, 2.4vw, 28px);
    font-weight: 700;
    color: #fff;
    margin-bottom: 18px;
}
.pricing-main-card__desc {
    font-size: 1rem;
    line-height: 1.9;
    margin-bottom: 24px;
}

/* Credits display */
.credits-display {
    border-radius: 16px;
    overflow: hidden;
}
.credits-display img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
    cursor: zoom-in;
}
.credits-pkg__btn {
    display: block;
    margin-top: 8px;
    font-size: 9px;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(107,236,164,.15);
    border-radius: 4px;
    padding: 3px 4px;
    letter-spacing: .05em;
}

/* ── Plan cards ─────────────────────────────────────────────── */
.pricing-plans {
    font-family: var(--font-Hind) !important;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.plan-card {
    border-radius: 16px;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    gap: 0;
    box-shadow: 0 4px 24px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.06);
}
.plan-card--free     { background: #f5f6f2; color: #111; }
.plan-card--included { background: #0e1a12; color: #fff; border: 1px solid rgba(107,236,164,.25); box-shadow: 0 4px 32px rgba(0,0,0,.28), 0 0 40px rgba(107,236,164,.12); }
.plan-card--purchase { background: #111; color: #fff; box-shadow: 0 4px 32px rgba(0,0,0,.32), 0 1px 4px rgba(0,0,0,.18); }

.plan-card__title {
    display: block;
    width: 100%;
    background: var(--color-accent);
    color: #0a0c0a;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .02em;
    text-align: center;
    margin-bottom: 24px;
    line-height: 1.4;
}

.plan-card__subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 12px;
}

.plan-card__list { list-style: none; padding: 0; flex: 1; font-weight: 600
    ;}
.plan-card__list li {
    font-size: 1rem;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
    line-height: 1.5;
    color: #444;
}
.plan-card--included .plan-card__list li,
.plan-card--purchase .plan-card__list li { border-bottom-color: rgba(255,255,255,.07); color: rgba(255,255,255,.8); }
.plan-card__list li:last-child { border-bottom: none; }

.plan-card__price-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 6px;
    width: 100%;
}
.plan-card__price-yen {
    font-size: 13px;
    color: rgba(255,255,255,.9);
    white-space: nowrap;
}
.plan-card__price-cr {
    font-family: var(--font-Hind);
    font-size: 15px;
    font-weight: 700;
    color: var(--color-accent);
    white-space: nowrap;
}
.plan-card__price-rounds {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    white-space: nowrap;
}

/* ── Pricing responsive ─────────────────────────────────────── */
@media (max-width: 900px) {
    .pricing-main-card   { grid-template-columns: 1fr; }
    .pricing-plans       { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .pricing-hero { margin: 0; border-radius: 0; }
    .pricing-hero__text { width: 100%; }
    .pricing-main-card { padding: 32px 24px; }
    .plan-card { padding: 24px 20px; }
    .credits-pkgs { flex-wrap: wrap; }
    .credits-pkg { flex: 0 0 calc(50% - 4px); }
}

/* ══════════════════════════════════════════════════════════════
   SUPPORT PAGE
   ══════════════════════════════════════════════════════════════ */

/* ── Support Setup ────────────────────────────────────────────── */
.supp-setup {
    padding: var(--space-section) 0;
    background: #f4f5f0;
}
.supp-setup-card {
    font-family: var(--font-Hind);
    background: #111;
    border-radius: 20px;
    padding: 48px 52px;
    color: #fff;
}
.supp-setup-row {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 44px;
    align-items: stretch;
}
.supp-setup-row__img {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.supp-setup-row__img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.supp-setup-row__title {
    font-size: 1.2rem;
    font-weight: 900;
    letter-spacing: .1em;
    color: var(--color-accent);
    margin-bottom: 20px;
    text-transform: uppercase;
}
.supp-setup-row__steps {
    list-style: none;
    counter-reset: supp-step;
    padding: 0;
    margin: 0 0 28px;
}
.supp-setup-row__steps li {
    counter-increment: supp-step;
    display: flex;
    align-items: baseline;
    gap: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255,255,255,.82);
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,.07);
    line-height: 1.6;
}
.supp-setup-row__steps li:last-child { border-bottom: none; }
.supp-setup-row__steps li::before {
    content: counter(supp-step);
    font-family: var(--font-Hind);
    font-weight: 700;
    font-size: 12px;
    color: var(--color-accent);
    background: rgba(107,236,164,.12);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    line-height: 1;
}
.supp-manual-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--color-accent);
    color: #111;
    font-size: 13px;
    font-weight: 700;
    padding: 11px 24px;
    border-radius: 6px;
    transition: opacity .2s, transform .2s;
    letter-spacing: .03em;
}
.supp-manual-btn:hover { opacity: .86; transform: translateY(-2px); color: #fff; }
.supp-setup-divider {
    height: 1px;
    background: rgba(255,255,255,.1);
    margin: 44px 0;
}

/* ── Support FAQ section ──────────────────────────────────────── */
.supp-faq-section {
    padding: var(--space-section) 0;
    background: #fff;
}
.supp-section-header .section-title   { color: #111; }
.supp-section-header .section-subtitle { color: #666; }

.sfaq-category { margin-bottom: 52px; }
.sfaq-category__label {
    display: inline-block;
    background: var(--color-accent);
    color: #0a0c0a;
    border-radius: 50px;
    padding: 10px 26px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.sfaq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}
.sfaq-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.09);
    box-shadow: 0 2px 10px rgba(0,0,0,.04);
    overflow: hidden;
    transition: box-shadow .22s, border-color .22s;
}
.sfaq-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.sfaq-card.open  { border-color: transparent; box-shadow: 0 4px 24px rgba(107,236,164,.25); }
.sfaq-card__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-main);
}
.sfaq-card__q-text {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    line-height: 1.55;
    flex: 1;
    transition: color .22s;
}
.sfaq-card.open .sfaq-card__q-text { color: #0a0c0a; }
.sfaq-card__toggle {
    font-size: 22px;
    font-weight: 300;
    color: var(--color-primary);
    flex-shrink: 0;
    width: 26px;
    text-align: center;
    line-height: 1;
    transition: color .22s;
}
.sfaq-card__a {
    overflow: hidden;
    height: 0;
}
.sfaq-card__a-inner {
    padding: 0 18px 18px;
    font-size: 13px;
    color: #1a1a1a;
    line-height: 1.85;
}

/* ── Support responsive ───────────────────────────────────────── */
@media (max-width: 960px) {
    .supp-setup-row { grid-template-columns: 200px 1fr; gap: 28px; }
    .sfaq-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .supp-setup-card { padding: 28px 24px; }
    .supp-setup-row { grid-template-columns: 1fr; }
    .supp-setup-row__img { aspect-ratio: 16/9; }
}

/* ══════════════════════════════════════════════════════════════
   PRIVACY PAGE
   ══════════════════════════════════════════════════════════════ */
.priv-section {
    background: #fff;
    padding: calc(var(--nav-height) + 72px) 0 112px;
    min-height: 100vh;
}
.priv-inner {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--container-px);
    font-weight: 600;
}
.priv-header {
    text-align: center;
    margin-bottom: 56px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}
.priv-title {
    font-family: var(--font-Hind);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 900;
    color: #111;
    letter-spacing: .01em;
    margin-bottom: 10px;
}
.priv-sub {
    font-size: 1rem;
    font-weight: 800;
    color: #999;
    letter-spacing: .1em;
}
.priv-lead {
    font-size: 13px;
    color: #444;
    line-height: 2;
    margin-bottom: 48px;
}
.priv-article {
    margin-bottom: 40px;
}
.priv-article__h {
    font-size: 14px;
    font-weight: 700;
    color: #111;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.priv-article__h::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    min-width: 10px;
    background: var(--color-primary);
    border-radius: 1px;
}
.priv-body {
    font-size: 13px;
    color: #444;
    line-height: 2;
    margin-bottom: 10px;
}
.priv-list {
    list-style: none;
    padding: 0;
    margin: 6px 0 10px 4px;
}
.priv-list li {
    font-size: 13px;
    color: #444;
    line-height: 2;
    padding-left: 1em;
    text-indent: -1em;
}
.priv-list li::before { content: '・'; }
.priv-list--sub {
    margin-left: 20px;
}
.priv-contact {
    font-size: 13px;
    color: #444;
    line-height: 2.4;
}
.priv-contact a { color: var(--color-primary); }
@media (max-width: 768px) {
    .priv-inner { padding: 0 var(--container-small-px); }
    .priv-section { padding-top: calc(var(--nav-height) + 48px); }
}

/* ════════════════════════════
   CONTACT PAGE
════════════════════════════ */
.contact-section { background: var(--color-bg-light); min-height: 100vh; padding: 80px 0; }
.contact-wrap { max-width: 880px; margin: 0 auto; padding: 64px 32px; display: grid; grid-template-columns: 1fr; gap: 80px; align-items: start; box-shadow: 0 4px 32px rgba(0,0,0,0.10); }

.contact-left { position: static; top: 100px; }

.contact-form { display: flex; flex-direction: column; gap: 24px; }
.cf-group { display: flex; flex-direction: column; gap: 8px; }
.cf-label { font-size: 0.85rem; font-weight: 600; color: #333; display: flex; align-items: center; gap: 8px; }
.cf-required { font-family: monospace; font-size: 0.6rem; letter-spacing: 0.08em; background: var(--color-primary); color: #fff; padding: 2px 8px; border-radius: 3px; font-weight: 700; }

.cf-input, .cf-select, .cf-textarea { width: 100%; padding: 12px 16px; border: 1px solid #ddd; border-radius: var(--radius-input); font-family: var(--font-main); font-size: 0.9rem; color: #111; background: #fff; transition: border-color 0.25s ease, box-shadow 0.25s ease; outline: none; appearance: none; }
.cf-input:focus, .cf-select:focus, .cf-textarea:focus { border-color: var(--color-primary); }
.cf-textarea { resize: vertical; min-height: 120px; }
.cf-select-wrap { position: relative; }
.cf-select { padding-right: 40px; cursor: pointer; }
.cf-select-icon { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 0.75rem; color: #888; pointer-events: none; }
.cf-error { display: none; font-size: 0.78rem; color: #e74c3c; margin-top: 4px; }
.cf-addr-wrap { display: grid; grid-template-columns: 4fr 8fr; gap: 10px; align-items: center; }
@media (max-width: 576px) { .cf-addr-wrap { grid-template-columns: 1fr; } }
.cf-check-group { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; margin-top: 4px; }
.cf-check-item { display: flex; align-items: center; gap: 6px; font-size: 0.88rem; color: #333; cursor: pointer; user-select: none; }
.cf-check-item input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--color-primary); cursor: pointer; flex-shrink: 0; }

.cf-submit-wrap { display: flex; justify-content: center; align-items: center; margin-top: 8px; }
.cf-submit { display: inline-flex; align-items: center; gap: 12px; padding: 14px 32px; background: var(--color-primary); color: #fff; border: none; border-radius: 50px; font-family: var(--font-main); font-size: 1rem; font-weight: 700; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.cf-submit:hover { transform: scale(1.04); box-shadow: 0 0 20px rgba(12,129,63,0.45); }
.cf-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.cf-submit-icon { width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,0.15); display: flex; align-items: center; justify-content: center; }

.cf-success { display: none; flex-direction: column; align-items: center; text-align: center; padding: 60px 20px; gap: 20px; }
.cf-success-icon { width: 80px; height: 80px; border-radius: 50%; border: 2px solid rgba(12,129,63,0.25); display: flex; align-items: center; justify-content: center; }
.cf-success-title { font-family: var(--font-Hind); font-size: 1.4rem; font-weight: 700; color: #111; }
.cf-success-msg { font-size: 0.88rem; color: #666; line-height: 1.8; }

.cf-error-banner { display: none; padding: 14px 20px; background: rgba(231,76,60,0.08); border: 1px solid rgba(231,76,60,0.3); border-radius: 8px; font-size: 0.88rem; color: #e74c3c; margin-bottom: 16px; }

@media (max-width: 768px) {
  .contact-wrap { gap: 40px; padding: 40px 20px; }
  .contact-left { position: static; }
  .contact-section { padding: 40px 0; }
}

/* reCAPTCHA v3 badge — hidden; required disclosure text added next to the submit button instead */
.grecaptcha-badge { display: none !important; }
.cf-recaptcha-notice { margin-top: 14px; font-size: 0.74rem; line-height: 1.6; color: #999; text-align: center; }
.cf-recaptcha-notice a { color: #999; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════
   SOFTWARE PAGE — square-golf.php
   ══════════════════════════════════════════════════════════════ */

/* dark body on all-dark pages */
body.page-dark { background: var(--color-bg); }

/* ── Hero overrides (software variant) ─────────────────────── */
.home-hero__products:has(.home-hero__prod-img--sw) {
    max-width: 100%;
    align-items: flex-end;
}

.home-hero__prod-img--sw {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    /* escape container padding to fill full hero width */
    margin-left: calc(-1 * var(--container-px));
    margin-right: calc(-1 * var(--container-px));
    width: calc(100% + 2 * var(--container-px));
    max-width: none;
    opacity: .88;
}
.home-hero__prod-img--sw img {
    width: 100%;
    max-height: 50vh;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
    border-radius: 12px 12px 0 0;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
}

/* ── Intro section ──────────────────────────────────────────── */
.sw-intro-section {
    background: var(--color-bg);
    padding: 72px 0 40px;
}
.sw-intro-header {
    text-align: center;
}
.sw-intro-title {
    font-family: var(--font-Hind);
    font-size: clamp(24px, 3.2vw, 38px);
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
    margin-bottom: 18px;
}
.sw-intro-desc {
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.9;
    max-width: 660px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   4-SLIDE PINNED MODES SECTION
   ══════════════════════════════════════════════════════════════ */
.sw-modes-wrap {
    background: var(--color-bg);
    padding: var(--nav-height) 0 0;
    height: 100vh;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}
.sw-modes-container {
    position: relative;
    width: 100%;
}

/* Right-side navigation dots */
.sw-modes-dots {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 10;
}
.sw-dot {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(107,236,164,.22);
    border: 1.5px solid rgba(107,236,164,.35);
    cursor: pointer;
    transition: background .25s;
}
.sw-dot:hover {
    background: rgba(107,236,164,.45);
}
/* Sliding indicator — moves over the active dot position */
.sw-dot-indicator {
    position: absolute;
    top: 0;
    left: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px;
    margin-top: -1px;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 8px rgba(107,236,164,.7);
    pointer-events: none;
    z-index: 1;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* The outer card — height must fit within 1 viewport */
.sw-modes-card {
    background: #111a11;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 22px 36px 18px;
    max-height: calc(100vh - var(--nav-height) - 24px);
    position: relative;
}
.sw-modes-card::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 10%;
    bottom: 60%;
    width: 5px;
    background: var(--color-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(107,236,164,.6);
    pointer-events: none;
}

/* Grid that stacks all slides on top of each other; clips GSAP-displaced images */
.sw-slides-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    overflow: hidden;
}
.sw-slide {
    grid-row: 1;
    grid-column: 1;
    /* GSAP controls opacity/visibility */
}

/* Two-column slide layout */
.sw-slide__inner {
    display: grid;
    grid-template-columns: 52% 1fr;
    gap: 24px;
    align-items: start;
    margin-bottom: 14px;
}
.sw-slide__img-col { width: 100%; overflow: hidden; }
/* Main video player container */
.sw-slide__img-main {
    position: relative;
    overflow: hidden;
    margin-bottom: 10px;
    box-shadow: 0 8px 32px rgba(0,0,0,.45);
    cursor: pointer;
    width: 100%;
    aspect-ratio: 16 / 9;
}
/* Bottom gradient vignette */
/*.sw-slide__img-main::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,.45) 100%);
    z-index: 1;
    pointer-events: none;
}*/
/* Play button overlay */
.sw-slide__img-main::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(10,12,10,.58);
    border: 1.5px solid rgba(107,236,164,.6);
    box-shadow: 0 0 20px rgba(107,236,164,.2);
    color: var(--color-accent);
    font-size: 17px;
    line-height: 52px;
    text-align: center;
    text-indent: 3px;
    z-index: 2;
    pointer-events: none;
    transition: transform .22s ease, border-color .22s, box-shadow .22s, background .22s;
}
.sw-slide__img-main:hover::after {
    transform: translate(-50%, -50%) scale(1.14);
    border-color: var(--color-accent);
    box-shadow: 0 0 28px rgba(107,236,164,.45);
    background: rgba(107,236,164,.18);
}
.sw-slide__img-main img,
.sw-slide__img-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(1.15);
}
/* 2×2 thumbnail grid below main video */
.sw-slide__thumbs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 30px;
    row-gap: clamp(30px, 4vh, 40px);
    padding-top: 30px;
}
.sw-thumb {
    position: relative;
    border: 1px solid var(--color-border);
    overflow: visible;
    background: #0c130c;
    cursor: pointer;
    aspect-ratio: 16 / 9;
    transition: border-color .25s, box-shadow .25s;
}
.sw-thumb:hover {
    border-color: rgba(107,236,164,.45);
    box-shadow: 0 0 0 1px rgba(107,236,164,.12);
}
.sw-thumb--active {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 1px var(--color-accent);
}
.sw-thumb img,
.sw-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: .85;
    filter: brightness(1.1);
}
.sw-thumb__label {
    position: absolute;
    top: 0;
    left: 0;
    transform: translateY(-100%);
    font-size: 10px;
    font-weight: 700;
    color: #0a0f0a;
    background: var(--color-accent);
    padding: 3px 18px 3px 10px;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
    z-index: 2;
    white-space: nowrap;
    letter-spacing: .06em;
    transition: opacity .25s;
}
.sw-thumb:hover .sw-thumb__label {
    opacity: .8;
}
.sw-thumb--active .sw-thumb__label {
    opacity: 1;
}
.sw-slide__body { padding-top: 4px; }
/* Slides 1-3 hidden by default; GSAP sets inline opacity/visibility */
.sw-slides-grid .sw-slide ~ .sw-slide {
    opacity: 0;
    visibility: hidden;
}
.sw-slide__title {
    font-family: var(--font-Hind);
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: .02em;
    margin-bottom: 12px;
}
.sw-slide__text {
    font-size: 13px;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 10px;
}
.sw-slide__list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.sw-slide__list li {
    font-size: 13px;
    color: var(--color-muted);
    padding-left: 16px;
    position: relative;
}
.sw-slide__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
}

/* Comparison table */
.sw-compare {
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
    overflow-x: auto;
}
.sw-compare-table {
    width: 100%;
    min-width: 420px;
}
.sw-compare-table thead tr th {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    padding: 7px 12px;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}
.sw-compare-table thead tr th.sw-compare-col { text-align: left; }
.sw-compare-table tbody tr td {
    font-size: 11px;
    color: #fff;
    padding: 6px 12px;
    border-bottom: 1px solid rgba(42,58,42,.5);
    text-align: center;
    vertical-align: middle;
}
.sw-compare-table tbody tr td:first-child { text-align: left; }
.sw-compare-table tbody tr:last-child td { border-bottom: none; }

/* ══════════════════════════════════════════════════════════════
   FEATURE SECTIONS (マイページ・設定項目)
   ══════════════════════════════════════════════════════════════ */
.sw-feature-section {
    background: var(--color-bg);
    padding: var(--space-section) 0;
}
.sw-feature-wrap {
    background: #111a11;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    padding: 52px 48px 44px;
    position: relative;
    overflow: visible;
}
.sw-feature-wrap::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 10%;
    bottom: 60%;
    width: 5px;
    background: var(--color-accent);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(107,236,164,.6);
}
.sw-feature-header {
    text-align: center;
    margin-bottom: 44px;
}
.sw-feature-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: .14em;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.sw-feature-title {
    font-family: var(--font-Hind);
    font-size: clamp(26px, 3.2vw, 38px);
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: .02em;
    margin-bottom: 16px;
}
.sw-feature-desc {
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.9;
}
.sw-fcard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.sw-fcard {
    background: #0c130c;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 22px 20px 20px;
    position: relative;
    transition: border-color .25s, transform .25s;
}
.sw-fcard:hover {
    border-color: rgba(107,236,164,.4);
    transform: translateY(-3px);
}
.sw-fcard--wide {
    grid-column: 2;
}
.sw-fcard__dot {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 12px;
    height: 12px;
    background: var(--color-accent);
    border-radius: 50%;
    flex-shrink: 0;
}
.sw-fcard__title {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    margin-bottom: 8px;
}
.sw-fcard__desc {
    font-size: 12.5px;
    color: var(--color-text);
    line-height: 1.8;
}

/* ══════════════════════════════════════════════════════════════
   DOWNLOAD SECTION
   ══════════════════════════════════════════════════════════════ */
.sw-download {
    position: relative;
    padding: 108px 0 96px;
    text-align: center;
    overflow: hidden;
}
.sw-download__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.sw-download__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.sw-download__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
        rgba(4,6,4,.72) 0%,
        rgba(4,6,4,.88) 100%);
}
.sw-download__inner {
    position: relative;
    z-index: 1;
}
.sw-download__brand {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: .12em;
    margin-bottom: 12px;
}
.sw-download__title {
    font-family: var(--font-Hind);
    font-size: clamp(28px, 4.5vw, 52px);
    font-weight: 800;
    color: #fff;
    letter-spacing: .02em;
    margin-bottom: 20px;
    line-height: 1.1;
}
.sw-download__sub {
    font-size: 13.5px;
    color: var(--color-text);
    line-height: 1.85;
    margin-bottom: 44px;
}

/* Platform download buttons */
.sw-download__btns {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}
.sw-store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px 14px 16px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 10px;
    color: #fff;
    text-align: left;
    min-width: 172px;
    transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
.sw-store-btn:hover {
    background: rgba(107,236,164,.14);
    border-color: var(--color-accent);
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(107,236,164,.2);
    color: #fff;
}
.sw-store-btn svg { flex-shrink: 0; }
.sw-store-btn__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.sw-store-btn__text small {
    font-size: 10px;
    color: #aaa;
    letter-spacing: .05em;
    font-weight: 500;
}
.sw-store-btn__text strong {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.1;
}
.sw-store-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}
.sw-store-btn__ver {
    font-size: 10px;
    color: rgba(255,255,255,.4);
    letter-spacing: .05em;
    font-weight: 400;
}

/* Setup steps */
.sw-download__steps {
    display: flex;
    flex-direction: column;
    gap: 14px;
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: left;
}
.sw-step {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: 13px;
    color: var(--color-muted);
    line-height: 1.7;
}
.sw-step__num {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: .1em;
    border: 1px solid rgba(107,236,164,.5);
    border-radius: 4px;
    padding: 3px 9px;
    margin-top: 2px;
    white-space: nowrap;
}
.sw-step__text{color: var(--color-text);}
.sw-download__e6 {
    max-width: 640px;
    margin: 0 auto 44px;
    text-align: start;
}

/* ── Short-screen laptops: 1366×768, 1280×800, etc. ─────────── */
@media (min-width: 1025px) and (max-height: 800px) {
    .sw-modes-card { padding: 14px 28px 12px; }
    .sw-slide__thumbs {
        column-gap: 20px;
        row-gap: 35px;
        padding-top: 30px;
    }
    .sw-thumb{width: 100%;
    max-height: 100px;}
}

/* ── Software page responsive ───────────────────────────────── */
@media (max-width: 1024px) {
    /* Keep 2-column layout but tighten proportions */
    .sw-modes-card { padding: 20px 22px 18px; }
    .sw-slide__inner { grid-template-columns: 46% 1fr; gap: 18px; }

    /* Body column: scroll internally so compare table rows are never clipped */
    .sw-slide__body {
        overflow-y: auto;
        max-height: calc(100vh - var(--nav-height) - 76px);
        padding-right: 2px;
        scrollbar-width: thin;
        scrollbar-color: rgba(107,236,164,.3) transparent;
    }
    .sw-slide__body::-webkit-scrollbar { width: 3px; }
    .sw-slide__body::-webkit-scrollbar-track { background: transparent; }
    .sw-slide__body::-webkit-scrollbar-thumb {
        background: rgba(107,236,164,.35);
        border-radius: 2px;
    }

    .sw-feature-wrap { padding: 40px 32px 36px; }
    .sw-fcard-grid { grid-template-columns: repeat(2, 1fr); }
    .sw-fcard--wide { grid-column: 2; }
}

/* ── Mobile: static list layout, no GSAP pin ─────────────────── */
@media (max-width: 768px) {
    .sw-intro-section { padding: 56px 0 32px; }

    /* Remove viewport-height constraint — section flows naturally */
    .sw-modes-wrap {
        height: auto;
        overflow: visible;
        padding: 32px 0 48px;
    }
    .sw-modes-dots { display: none; }

    /* Card: no max-height clip */
    .sw-modes-card {
        padding: 20px 16px 20px;
        border-radius: 14px;
        max-height: none;
        overflow: visible;
    }

    /* Slides grid → vertical list */
    .sw-slides-grid {
        display: flex;
        flex-direction: column;
        gap: 36px;
    }
    /* Reset CSS-grid stacking so each slide takes its own row */
    .sw-slide,
    .sw-slides-grid .sw-slide ~ .sw-slide {
        grid-row: auto;
        grid-column: auto;
        opacity: 1;
        visibility: visible;
    }

    /* Single-column layout: image above, text below */
    .sw-slide__inner {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Images: remove fixed max-height, use natural 16:9 */
    .sw-slide__img-main img,
    .sw-slide__img-main video {
        max-height: none;
    }

    /* Thumbs: 2 columns still fine on mobile */
    .sw-slide__thumbs { gap: 25px; }

    /* Compare table: allow horizontal scroll */
    .sw-compare { overflow-x: auto; }
    .sw-compare-table { min-width: 320px; }

    .sw-fcard-grid { grid-template-columns: 1fr; }
    .sw-fcard--wide { grid-column: span 1; }
    .sw-feature-wrap { padding: 28px 20px 24px; border-radius: 14px; }
    .sw-download { padding: 72px 0 64px; }
    .sw-download__btns { gap: 12px; }
    .sw-store-btn { min-width: 148px; }
}
.cf-recaptcha-notice a:hover { color: var(--color-primary); }
