/* ===== Shared styles for IST solution detail pages ===== */
html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans JP', sans-serif; -webkit-font-smoothing: antialiased; background: #fff; }
.display-jp { font-family: 'Noto Serif JP', serif; font-weight: 900; }
.eyebrow {
    font-family: 'Inter', sans-serif; font-weight: 600;
    font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase;
}
.mono { font-family: 'Inter', sans-serif; }
.sol-number { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.16em; }

.hero-grid {
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
}

/* ghost number in hero */
.ghost-num {
    font-family: 'Noto Serif JP', serif; font-weight: 900;
    color: rgba(255,255,255,0.06); line-height: 1;
    font-size: clamp(9rem, 22vw, 20rem);
    user-select: none; pointer-events: none;
}

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* cards */
.lift { transition: transform .35s, box-shadow .35s, border-color .35s; }
.lift:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -24px rgba(30,58,138,0.28); border-color: rgba(37,99,235,0.4); }

.chip { font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 600; border-radius: 999px; padding: .3rem .7rem; }

.back-btn { transition: gap .25s, color .25s; }
.back-btn:hover { gap: .85rem; }

/* case study blocks */
.case-block { border-left: 2px solid #e2e8f0; padding-left: 1rem; }
.case-label { font-weight: 700; font-size: .82rem; color: #0B1530; margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.case-text { font-size: .9rem; line-height: 1.75; color: #475569; }
.case-quote { margin-top: 1.6rem; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 16px; padding: 1.25rem 1.4rem; }
.case-quote-text { font-size: .9rem; line-height: 1.8; color: #1e293b; }
.case-quote-by { margin-top: .7rem; font-family: 'Inter', sans-serif; font-size: .8rem; font-weight: 600; color: #475569; display: flex; align-items: center; gap: .5rem; }

.flow-arrow { color: #38BDF8; }
@media (max-width: 767px) { .flow-arrow.v { transform: rotate(90deg); } }

/* big stat number */
.stat { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* matrix table */
.matrix { width: 100%; border-collapse: separate; border-spacing: 8px; }
.matrix th, .matrix td { vertical-align: middle; }
.matrix thead th {
    background: linear-gradient(135deg, #1E3A8A, #142a63); color: #fff;
    font-weight: 700; font-size: .8rem; padding: .9rem .7rem; border-radius: 12px; text-align: center;
}
.matrix tbody th {
    background: #f1f5f9; color: #0B1530; font-weight: 700; font-size: .85rem;
    padding: .9rem 1rem; border-radius: 12px; text-align: left; white-space: nowrap;
}
.matrix td { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 12px; padding: .85rem .7rem; text-align: center; font-size: .8rem; color: #334155; line-height: 1.4; }
.matrix td.fill { background: #eff4ff; border-color: #dbe5ff; color: #1E3A8A; font-weight: 600; }
.matrix td.empty { background: #fff; border-style: dashed; }

/* role-spectrum bars */
.matrix td.bar-main { background: linear-gradient(135deg, #1E3A8A, #2563EB); border-color: transparent; }
.matrix td.bar-sub { background: #dbe7ff; border-color: #cdddff; }
.matrix td.bar-none { background: #fff; border-style: dashed; border-color: #e5eaf2; }

/* proof stat card */
.proof-stat { font-family: 'Inter', sans-serif; font-weight: 800; letter-spacing: -0.02em; line-height: 1; }

/* demo video cards */
.demo-card { transition: transform .35s, border-color .35s, box-shadow .35s; }
.demo-card:hover { transform: translateY(-5px); border-color: rgba(56,189,248,0.45); box-shadow: 0 26px 50px -28px rgba(0,0,0,0.6); }
.demo-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #142a63, #0B1530); overflow: hidden; }
.demo-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0B1530; }
.demo-play {
    position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .9rem;
    background: radial-gradient(120% 120% at 50% 40%, rgba(37,99,235,0.18), rgba(11,21,48,0.55));
    border: 0; transition: background .3s;
}
.demo-play:hover { background: radial-gradient(120% 120% at 50% 40%, rgba(37,99,235,0.32), rgba(11,21,48,0.45)); }
.demo-play-icon {
    width: 58px; height: 58px; border-radius: 999px; background: rgba(255,255,255,0.95); color: #1E3A8A;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem; padding-left: .2rem;
    box-shadow: 0 12px 30px -8px rgba(0,0,0,0.5); transition: transform .25s;
}
.demo-play:hover .demo-play-icon { transform: scale(1.08); }
.demo-play-label { font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .15em; color: rgba(255,255,255,0.85); }
.demo-media.playing .demo-play { display: none; }
.demo-soon { cursor: default; background: radial-gradient(120% 120% at 50% 40%, rgba(148,163,184,0.12), rgba(11,21,48,0.6)); }
.demo-soon-icon {
    width: 54px; height: 54px; border-radius: 999px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
    color: rgba(255,255,255,0.7); display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
}
@media (max-width: 860px) {
    .matrix-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .matrix { min-width: 760px; }
}
