/* ═══════════════════════════════════════════════════════════
   UPHASH × XGRIDS — Shared Design System
   爽やか × 近未来 / Azure-Cyan Gradient System
   ═══════════════════════════════════════════════════════════ */

:root {
    /* ── Backgrounds ── */
    --bg:           #ffffff;
    --bg-cool:      #f6f9fd;
    --bg-mist:      #eaf2fc;
    --bg-deep:      #0a1628;
    --bg-deep-soft: #142340;

    /* ── Ink ── */
    --ink:          #0f172a;
    --ink-soft:     #334155;
    --ink-mute:     #64748b;
    --ink-faint:    #94a3b8;

    /* ── Lines ── */
    --line:         #e2e8f0;
    --line-soft:    #f1f5f9;
    --line-strong:  #cbd5e1;
    --line-deep:    rgba(255,255,255,0.10);

    /* ── Brand: Azure → Cyan ── */
    --brand:        #2563eb;
    --brand-deep:   #1d4ed8;
    --brand-soft:   #dbeafe;

    --cyan:         #06b6d4;
    --cyan-deep:    #0891b2;
    --cyan-soft:    #cffafe;

    --mint:         #10b981;

    /* ── Gradients (signature) ── */
    --grad-brand:   linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
    --grad-soft:    linear-gradient(135deg, #dbeafe 0%, #cffafe 100%);
    --grad-deep:    linear-gradient(135deg, #0a1628 0%, #1e3a8a 60%, #0891b2 100%);
    --grad-glow:    radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.18) 0%, transparent 60%);

    /* ── Channel ── */
    --line-green:   #06c755;
    --line-green-deep: #04a844;

    /* ── Type ── */
    --font-serif:   'Shippori Mincho B1', 'Noto Serif JP', 'Hiragino Mincho ProN', serif;
    --font-display: 'Plus Jakarta Sans', 'Helvetica Neue', sans-serif;
    --font-sans:    'Plus Jakarta Sans', 'IBM Plex Sans JP', 'Hiragino Sans', sans-serif;
    --font-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

    --max-w:        1320px;
    --pad-x:        clamp(20px, 5vw, 80px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
    font-feature-settings: "palt";
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--brand); color: white; }

/* ─── Eyebrow ─── */
.eyebrow {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: var(--brand); font-weight: 500;
}
.eyebrow.dark { color: var(--ink-mute); }
.eyebrow-line { display: inline-flex; align-items: center; gap: 14px; }
.eyebrow-line::before { content: ''; width: 28px; height: 1px; background: currentColor; }

/* ─── Top Bar ─── */
.topbar {
    background: var(--bg-deep); color: white;
    padding: 9px var(--pad-x);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.06em;
    display: flex; justify-content: space-between; align-items: center;
    position: relative; z-index: 101;
}
.topbar-left { display: flex; gap: 24px; align-items: center; }
.topbar-left .live {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}
.topbar-left .live::before {
    content: ''; width: 6px; height: 6px;
    background: var(--cyan); border-radius: 50%;
    animation: pulse 2.4s ease-in-out infinite;
    -webkit-text-fill-color: initial;
}
.topbar-right { display: flex; gap: 18px; align-items: center; }
.topbar-right a {
    color: rgba(255,255,255,0.7);
    transition: color 0.2s;
    display: inline-flex; align-items: center; gap: 6px;
}
.topbar-right a:hover { color: white; }
.topbar-right .line-link:hover { color: var(--line-green); }
@media (max-width: 720px) {
    .topbar-left span:not(.live) { display: none; }
    .topbar-right { gap: 12px; }
}

/* ─── Nav ─── */
.nav {
    position: sticky; top: 0; z-index: 100;
    padding: 18px var(--pad-x);
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(255,255,255,0.85);
    backdrop-filter: saturate(150%) blur(20px);
    -webkit-backdrop-filter: saturate(150%) blur(20px);
    border-bottom: 1px solid var(--line);
    transition: padding 0.25s ease;
}
.nav-logo { display: flex; align-items: center; gap: 14px; }
.nav-logo .mark {
    width: 30px; height: 30px;
    background: var(--grad-brand);
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700; font-size: 13px;
    border-radius: 6px;
    letter-spacing: -0.02em;
}
.nav-logo .text {
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: -0.01em;
    color: var(--ink); font-weight: 600;
}
.nav-logo .text .partner {
    display: block;
    font-size: 9.5px; letter-spacing: 0.16em;
    color: var(--ink-mute);
    text-transform: uppercase;
    margin-top: 2px; font-weight: 500;
}
.nav-links {
    display: flex; gap: 30px;
    font-size: 13.5px; font-weight: 500;
}
.nav-links a {
    color: var(--ink-soft);
    transition: color 0.2s; padding: 4px 0;
}
.nav-links a:hover { color: var(--brand); }
.nav-cta {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 22px;
    background: var(--ink); color: white;
    font-weight: 600; font-size: 13px;
    transition: all 0.25s;
    border: 1px solid var(--ink);
    border-radius: 999px;
    letter-spacing: -0.005em;
}
.nav-cta:hover {
    background: var(--brand);
    border-color: var(--brand);
}
.nav-cta svg { width: 12px; height: 12px; }

.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.mobile-toggle span { display: block; width: 22px; height: 1.5px; background: var(--ink); }
@media (max-width: 980px) {
    .nav-links { display: none; }
    .nav-cta { padding: 9px 16px; font-size: 12px; }
    .mobile-toggle { display: flex; }
}

/* ─── Buttons ─── */
.btn-primary {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 30px;
    background: var(--ink); color: white;
    font-weight: 600; font-size: 14px;
    letter-spacing: -0.005em;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--ink);
    border-radius: 999px;
    position: relative; overflow: hidden;
}
.btn-primary::before {
    content: ''; position: absolute; inset: 0;
    background: var(--grad-brand);
    transform: translateY(101%);
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: -1;
}
.btn-primary:hover { border-color: transparent; }
.btn-primary:hover::before { transform: translateY(0); }
.btn-primary svg { width: 14px; height: 14px; transition: transform 0.3s; }
.btn-primary:hover svg { transform: translateX(4px); }

.btn-secondary {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 16px 30px;
    background: transparent; color: var(--ink);
    font-weight: 600; font-size: 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: all 0.3s;
}
.btn-secondary:hover {
    border-color: var(--brand); color: var(--brand);
    background: var(--brand-soft);
}
.btn-secondary svg { width: 14px; height: 14px; }

.btn-line {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 26px;
    background: var(--line-green); color: white;
    font-weight: 600; font-size: 14px;
    border: 1px solid var(--line-green);
    border-radius: 999px;
    transition: all 0.25s;
}
.btn-line:hover { background: var(--line-green-deep); border-color: var(--line-green-deep); }
.btn-line svg { width: 16px; height: 16px; }

.btn-pdf {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 13px 22px;
    background: white; color: var(--ink);
    font-weight: 500; font-size: 13px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    transition: all 0.25s;
}
.btn-pdf:hover {
    border-color: var(--brand); color: var(--brand);
    background: var(--brand-soft);
}
.btn-pdf svg { width: 15px; height: 15px; }

/* ─── Section base ─── */
section { position: relative; padding: clamp(72px, 11vh, 130px) var(--pad-x); }
.section-inner { max-width: var(--max-w); margin: 0 auto; width: 100%; }
.section-head {
    display: grid; grid-template-columns: 200px 1fr;
    gap: 60px; margin-bottom: 72px; align-items: end;
}
.section-head-meta { padding-top: 6px; }
.section-head-meta .num {
    font-family: var(--font-mono); font-size: 12px;
    color: var(--brand); font-weight: 500;
    margin-bottom: 10px; letter-spacing: 0.06em;
}
.section-head-meta .div {
    width: 32px; height: 1px;
    background: var(--grad-brand);
    margin-bottom: 12px;
}
.section-head-meta .tag {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.14em; color: var(--ink-soft);
    text-transform: uppercase;
}
.section-head h2 {
    font-family: var(--font-serif); font-weight: 700;
    font-size: clamp(32px, 4.4vw, 60px);
    line-height: 1.1; letter-spacing: -0.025em;
    color: var(--ink);
}
.section-head h2 .grad {
    background: var(--grad-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-head h2 em {
    font-style: italic; font-weight: 500;
    color: var(--cyan-deep);
    font-family: var(--font-display);
}
.section-head .lede {
    font-size: 15.5px; color: var(--ink-soft);
    max-width: 580px; margin-top: 22px;
    line-height: 1.9;
}
.section-head .lede strong { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
    .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
}

/* ─── Breadcrumb ─── */
.breadcrumb {
    padding: 16px var(--pad-x);
    background: var(--bg-cool);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: 0.08em; color: var(--ink-mute);
}
.breadcrumb-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; gap: 12px; align-items: center;
}
.breadcrumb a { color: var(--ink-soft); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--ink-faint); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }

/* ─── Reveal ─── */
.reveal {
    opacity: 0; transform: translateY(20px);
    transition: opacity 0.9s cubic-bezier(0.2, 0.8, 0.2, 1),
                transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@keyframes fadeUp { from { opacity:0; transform:translateY(24px);} to { opacity:1; transform:translateY(0);} }
@keyframes pulse { 0%,100% { opacity:1; transform:scale(1);} 50% { opacity:0.5; transform:scale(0.8);} }
@keyframes drift { 0%,100% { transform:translate(0,0);} 50% { transform:translate(8px,-12px);} }
@keyframes scanV { 0% { transform:translateY(-15%); opacity:0;} 20% { opacity:0.8;} 80% { opacity:0.8;} 100% { transform:translateY(115%); opacity:0;} }
@keyframes shimmer { 0% { background-position:-200% 0;} 100% { background-position:200% 0;} }

.point { animation: drift 8s ease-in-out infinite; }
.point:nth-child(2n) { animation-duration: 11s; animation-delay: -1s; }
.point:nth-child(3n) { animation-duration: 13s; animation-delay: -3s; }
.scan-line { animation: scanV 5s ease-in-out infinite; }

/* ─── Footer ─── */
footer {
    background: var(--bg-deep);
    color: white;
    padding: 80px var(--pad-x) 32px;
    position: relative;
    overflow: hidden;
}
footer::before {
    content: ''; position: absolute;
    inset: 0; background: var(--grad-glow);
    pointer-events: none;
}
.footer-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }

.sister-block {
    border: 1px solid var(--line-deep);
    padding: 44px 52px;
    margin-bottom: 56px;
    display: grid; grid-template-columns: 1fr auto;
    gap: 40px; align-items: center;
    background: rgba(255,255,255,0.03);
    transition: all 0.3s;
    position: relative; overflow: hidden;
    border-radius: 12px;
}
.sister-block::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent 40%, rgba(6,182,212,0.12) 70%, transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}
.sister-block:hover { border-color: var(--cyan); }
.sister-block:hover::before { transform: translateX(100%); }
.sister-tag {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--cyan); letter-spacing: 0.14em;
    text-transform: uppercase; margin-bottom: 16px;
}
.sister-block h3 {
    font-family: var(--font-serif); font-weight: 700;
    font-size: 28px; line-height: 1.2;
    color: white; margin-bottom: 12px;
    letter-spacing: -0.015em;
}
.sister-block h3 em {
    font-family: var(--font-display); font-style: italic;
    font-weight: 500; color: var(--cyan);
}
.sister-block p {
    color: rgba(255,255,255,0.7);
    font-size: 14px; line-height: 1.85;
    max-width: 580px;
}
.sister-link-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 26px;
    border: 1px solid white; color: white;
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.12em; text-transform: uppercase;
    transition: all 0.3s;
    white-space: nowrap;
    background: transparent; z-index: 1;
    border-radius: 999px;
}
.sister-link-btn:hover {
    background: var(--cyan); border-color: var(--cyan);
}
.sister-link-btn svg { width: 12px; height: 12px; }

.footer-cols {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--line-deep);
}
.footer-brand .logo { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.footer-brand .logo .mark {
    width: 30px; height: 30px;
    background: var(--grad-brand); color: white;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display);
    font-weight: 700; font-size: 13px;
    border-radius: 6px;
}
.footer-brand .logo .text {
    font-family: var(--font-display);
    font-size: 14px; letter-spacing: -0.01em;
    color: white; font-weight: 600;
}
.footer-brand p {
    font-size: 13px; color: rgba(255,255,255,0.65);
    line-height: 1.85; margin-bottom: 24px; max-width: 380px;
}
.footer-brand .addr {
    font-family: var(--font-mono); font-size: 11px;
    color: rgba(255,255,255,0.45);
    line-height: 1.85; letter-spacing: 0.04em;
}
.footer-col h4 {
    font-family: var(--font-mono); font-size: 11px;
    color: var(--cyan); letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 18px; font-weight: 600;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer-col a {
    font-size: 13px; color: rgba(255,255,255,0.7);
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--cyan); }
.line-color { color: var(--line-green) !important; }

.footer-bottom {
    padding-top: 28px;
    display: flex; justify-content: space-between;
    align-items: center; flex-wrap: wrap; gap: 20px;
    font-family: var(--font-mono); font-size: 11px;
    color: rgba(255,255,255,0.4);
    letter-spacing: 0.06em;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: white; }

@media (max-width: 980px) {
    .sister-block { grid-template-columns: 1fr; padding: 32px; gap: 24px; }
    .sister-link-btn { width: 100%; justify-content: center; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-cols { grid-template-columns: 1fr; } }
