/* =========================================
   Tokens
   ========================================= */
:root {
    --primary-color: #0a0e17;
    --accent-color: #002b5c;
    --highlight-color: #00afcc;

    --text-color: #333;
    --white: #fff;

    --border-default: #ddd;
    --muted-bg: #f0f4f8;

    --header-height: 84px;
    --container-width: 1100px;

    --shadow-header: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.4);
    --card-hover-border: rgba(56, 189, 248, 0.75);
    --card-hover-glow: rgba(56, 189, 248, 0.28);
}

/* =========================================
   Reset & Base
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================
   Utilities / Common Layout
   ========================================= */
.container {
    width: 90%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 40px 0;
}

.section-title {
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 15px;
    font-size: 1.8rem;
    font-weight: 700;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 60px;
    height: 3px;
    background-color: var(--highlight-color);
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.text-white {
    color: var(--white);
}

.logo-image {
    height: 40px;
    vertical-align: middle;
}

.page-main {
    padding-top: var(--header-height);
}

.page-title-section {
    padding-bottom: 0;
}

/* =========================================
   Icons
   ========================================= */
.icon {
    width: 40px;
    height: 40px;
}

.icon-sm {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: text-bottom;
}

.icon-lg {
    width: 50px;
    height: 50px;
}

.icon-xl {
    width: 60px;
    height: 60px;
}

/* =========================================
   Header / Navigation
   ========================================= */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--white);
    box-shadow: var(--shadow-header);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo img {
    display: block;
}

.logo a {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.logo-text {
    color: var(--primary-color);
    font-family: "Rajdhani", sans-serif;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1;
}

.logo-centered a {
    align-items: center;
}

.logo-centered .logo-text {
    text-align: center;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 600px;
}

.nav-list li {
    flex: 1 1 0;
}

.nav-list a {
    display: flex;
    width: 100%;
    justify-content: center;
    position: relative;
    padding-bottom: 5px;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 500;
    transition: 0.3s;
}

.nav-list a:hover {
    color: inherit;
}

.nav-list a::before {
    content: "";
    position: absolute;
    left: 6px;
    bottom: -2px;
    width: 14px;
    height: 3px;
    background-color: #94a3b8;
    opacity: 0;
    transition: opacity 0s;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 20px;
    bottom: -1px;
    width: max(0px, calc(100% - 26px));
    height: 1px;
    background-color: #94a3b8;
    transform: scaleX(0);
    transform-origin: left center;
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.1s ease;
}

.nav-list a:hover::before {
    opacity: 1;
}

.nav-list a:hover::after {
    transform: scaleX(1);
    opacity: 1;
}

.nav-btn {
    background: var(--primary-color);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 4px;
}

.nav-list a.current {
    color: var(--primary-color);
}

.nav-list a.current::before {
    background-color: var(--highlight-color);
    opacity: 1;
}

.nav-list a.current::after {
    background-color: var(--highlight-color);
    transform: scaleX(1);
    opacity: 1;
}

.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a.active::before,
.nav-list a.active::after {
    transform: scaleX(1);
    opacity: 1;
}

.hamburger {
    display: none;
    width: 30px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    margin-bottom: 6px;
    background: var(--primary-color);
    transition: 0.3s;
}

/* =========================================
   Concept / Scale
   ========================================= */
.concept {
    min-height: 480px;
    aspect-ratio: auto;
    background: linear-gradient(180deg, #0a0e17 0%, #0a0e17 50%, #0a0e17 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: #dbeafe;
}

.concept-desc {
    max-width: 800px;
    font-size: 1.1rem;
}

.fusion-wrapper {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    margin-bottom: 60px;
}

.fusion-item {
    width: 100%;
    max-width: 600px;
    display: block;
    padding: 30px;
    border: 2px solid var(--highlight-color);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(0, 43, 92, 0.6) 0%, rgba(10, 14, 23, 0.9) 100%);
    box-shadow: 0 0 30px rgba(0, 209, 255, 0.2);
}

.fusion-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fusion-header h4 {
    margin-bottom: 0;
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--highlight-color);
}

.fusion-lead {
    display: inline-block;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: 1.1rem;
    font-weight: bold;
}

.text-center-list {
    list-style: none;
    text-align: center;
    padding-left: 0;
}

.text-center-list li::before {
    content: "✔";
    margin-right: 10px;
    color: var(--highlight-color);
    font-weight: bold;
}

.scale-visual {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.scale-item {
    width: 45%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px;
    border: 1px solid rgba(0, 209, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.scale-visual .scale-item h4 {
    margin-bottom: 15px;
    color: var(--white);
    font-size: 1.2rem;
    font-weight: bold;
}

.scale-visual .scale-item .sub-text {
    display: block;
    margin-top: 5px;
    opacity: 0.9;
    color: #ccc;
    font-size: 0.9rem;
    font-weight: normal;
}

.scale-visual .scale-item .icon-xl {
    margin-bottom: 15px;
    color: var(--highlight-color);
}

.concept-list {
    margin-top: 10px;
    padding-left: 20px;
    list-style: disc;
    text-align: left;
    line-height: 1.8;
    font-size: 0.95rem;
}

.scale-center {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-center::before {
    content: "";
    position: absolute;
    width: 2px;
    height: 100%;
    opacity: 0.5;
    z-index: 0;
    background: linear-gradient(to bottom, transparent, var(--highlight-color), transparent);
}

.scale-center .icon-xl {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    padding: 5px;
    border-radius: 50%;
    opacity: 0.8;
    color: var(--white);
    background: var(--primary-color);
}

/* =========================================
   Comparison / Footer
   ========================================= */

/* Comparison tables: add vertical guides for easier horizontal scanning */
.comparison .compare-grid th,
.comparison .compare-grid td {
    border-right: 1px solid rgba(56, 189, 248, 0.18);
}

.comparison .compare-grid th:last-child,
.comparison .compare-grid td:last-child {
    border-right: none;
}

/* Security comparison: hide horizontal dividers only in "our service" column */
.comparison .security-compare tbody td {
    border-bottom: 1px solid rgba(30, 58, 138, 0.28);
}

.comparison .security-compare tbody tr:last-child td {
    border-bottom: none;
}

.comparison .security-compare tbody td.our-service-col {
    border-bottom: none;
}

/* Develop comparison: subtle horizontal dividers */
.comparison .develop-compare tbody td {
    border-bottom: 1px solid rgba(30, 58, 138, 0.24);
}

.comparison .develop-compare tbody tr:last-child td {
    border-bottom: none;
}

.footer {
    padding: 20px 0 20px;
    background: #fff;
    color: #0a0e17;
    border-top: 1px solid rgba(10, 14, 23, 0.18);
    text-align: center;
}

.copyright {
    color: #0a0e17;
    font-size: 0.8rem;
}

.footer-copyright-block {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    width: 100%;
}

.footer-divider {
    width: 100%;
    border-top: 1px solid rgba(10, 14, 23, 0.18);
    margin: 30px auto;
}

.footer-copyright-block .copyright {
    margin: 10px 0;
}

.footer .footer-copyright-block .riss-inline-badge-logo {
    width: 64px;
    height: 64px;
    margin: 20px 0;
}

/* =========================================
   Company Page
   ========================================= */
.page-title {
    margin-bottom: 20px;
    padding-left: 0;
    border-left: none;
    font-size: 1.6rem;
    font-weight: bold;
}

.company-logo-section {
    margin-bottom: 20px;
    text-align: center;
}

.center-logo {
    margin: 0 auto;
    max-width: 200px;
}

.riss-inline-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.riss-inline-badge-logo {
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.riss-inline-badge-text {
    margin: 0;
    color: inherit;
    line-height: 1.4;
}

.riss-inline-badge-concept {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    row-gap: 0.35rem;
    column-gap: 0.65rem;
    /* margin: 0 auto 40px; */
}


.company-info {
    margin-bottom: 0;
}

.map-link {
    display: inline-block;
    margin-left: 10px;
    color: #666;
    font-size: 0.8rem;
    text-decoration: underline;
}

/* =========================================
   DevSecOps Hero / Effects
   ========================================= */
.hero-devsecops {
    margin-top: 0;
    min-height: 400px;
    display: flex;
    justify-content: center;
    padding: 40px 20px;
    color: #fff;
    background-image: linear-gradient(rgb(0 0 0 / 20%), rgb(0 0 0 / 20%)), url(../images/cyber_bg.png);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.neon-panel {
    background: rgba(10, 14, 23, 0.8);
    border: 1px solid rgba(14, 165, 233, 0.3);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.panel-like-features {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(14, 165, 233, 0.3);
    backdrop-filter: blur(4px);
}

.neon-panel:hover {
    transform: translateY(-5px);
    border-color: var(--card-hover-border) !important;
    box-shadow: 0 0 0 1px var(--card-hover-border), 0 0 28px var(--card-hover-glow) !important;
}

.panel-header {
    border-bottom: 2px solid #1a5f8a;
}

.glow-text {
    text-shadow: 0 0 6px rgba(56, 189, 248, 0.6), 0 0 12px rgba(56, 189, 248, 0.25);
}

.alert-box {
    border: 1px solid #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
    background: rgba(60, 10, 10, 0.6);
}

.circuit-line {
    position: absolute;
    z-index: 0;
    opacity: 0.4;
    background: #0ea5e9;
    box-shadow: 0 0 8px #0ea5e9;
}

.terminal {
    overflow: hidden;
}

.terminal .line {
    display: block;
    width: 0;
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid #22c55e;
    animation: typing 2s steps(20, end) forwards, blink 0.8s step-end infinite;
}

.terminal .line2 {
    animation-delay: 2.2s;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

@keyframes blink {
    50% {
        border-color: transparent;
    }
}

.graph .bar {
    transform-origin: bottom;
    animation: growLoop 2.5s ease-in-out infinite;
}

.graph .bar:nth-child(1) {
    animation-delay: 0.1s;
}

.graph .bar:nth-child(2) {
    animation-delay: 0.3s;
}

.graph .bar:nth-child(3) {
    animation-delay: 0.5s;
}

.graph .bar:nth-child(4) {
    animation-delay: 0.7s;
}

.graph .bar:nth-child(5) {
    animation-delay: 0.9s;
}

@keyframes growLoop {
    0% {
        transform: scaleY(0);
    }

    40% {
        transform: scaleY(1);
    }

    70% {
        transform: scaleY(1);
    }

    100% {
        transform: scaleY(0);
    }
}

/* =========================================
   DevSecOps Diagram
   ========================================= */
.concept-diagram {
    /* margin-top: 30px; */
    padding: 28px 28px;
    border-radius: 18px;
    backdrop-filter: blur(8px);
}

.concept-diagram .grid-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.3;
    background-image: linear-gradient(rgba(64, 196, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(64, 196, 255, 0.1) 1px, transparent 1px);
    background-size: 40px 40px;
}

.neon-box {
    background: rgba(13, 22, 40, 0.7);
    border: 1px solid rgb(64 196 255 / 70%);
    box-shadow: 0 0 15px rgba(64, 196, 255, 0.1), inset 0 0 20px rgba(64, 196, 255, 0.05);
    backdrop-filter: blur(5px);
}

.neon-box-pink {
    background: rgba(40, 13, 30, 0.7);
    border: 1px solid rgb(255 64 129 / 70%);
    box-shadow: 0 0 15px rgba(255, 64, 129, 0.1), inset 0 0 20px rgba(255, 64, 129, 0.05);
}

.problems-thread {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.persona-comment {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 860px;
}

.persona-comment--right {
    margin-left: auto;
    flex-direction: row-reverse;
}

.persona-profile {
    width: 132px;
    flex-shrink: 0;
    text-align: center;
}

.persona-avatar {
    width: 72px;
    height: 72px;
    margin: 0 auto 8px;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #7dd3fc;
    background: rgba(2, 132, 199, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    transition: border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1), transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.persona-role {
    font-size: 0.72rem;
    line-height: 1.35;
    color: #cbd5e1;
}

.comment-bubble {
    position: relative;
    flex: 0 1 auto;
    width: fit-content;
    max-width: min(72%, 640px);
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(56, 189, 248, 0.35);
    background: linear-gradient(160deg, rgba(7, 19, 40, 0.9) 0%, rgba(2, 6, 23, 0.78) 100%);
    box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
    backdrop-filter: blur(3px);
    will-change: transform;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.comment-bubble::before {
    content: "";
    position: absolute;
    top: 24px;
    left: -10px;
    width: 16px;
    height: 16px;
    background: linear-gradient(160deg, rgba(7, 19, 40, 0.9) 0%, rgba(2, 6, 23, 0.78) 100%);
    border-left: 1px solid rgba(56, 189, 248, 0.35);
    border-bottom: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 4px 0 4px 0;
    transform: rotate(45deg);
    transition: border-color 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.38s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.persona-comment--right .comment-bubble::before {
    left: auto;
    right: -10px;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid rgba(56, 189, 248, 0.35);
    border-top: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 0 4px 0 4px;
}

.comment-text {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.7;
    color: #e2e8f0;
}

.persona-comment:hover .comment-bubble {
    transform: translateY(-4px);
    border-color: var(--card-hover-border);
    background: linear-gradient(160deg, rgba(7, 19, 40, 0.96) 0%, rgba(2, 6, 23, 0.9) 100%);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.58), 0 0 24px var(--card-hover-glow);
}

.persona-comment:hover .comment-bubble::before {
    background: linear-gradient(160deg, rgba(7, 19, 40, 0.96) 0%, rgba(2, 6, 23, 0.9) 100%);
    left: -10px;
    border-left: 1px solid var(--card-hover-border);
    border-bottom: 1px solid var(--card-hover-border);
}

.persona-comment--right:hover .comment-bubble::before {
    left: auto;
    right: -10px;
    border-left: 0;
    border-bottom: 0;
    border-right: 1px solid var(--card-hover-border);
    border-top: 1px solid var(--card-hover-border);
}

.persona-comment:hover .persona-avatar {
    transform: translateY(-2px);
    border-color: var(--card-hover-border);
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.55), 0 0 16px rgba(56, 189, 248, 0.35);
}

.diagnosis,
.risks {
    background-color: #0a0e17;
}

/* =========================================
   Responsive
   ========================================= */
@media (max-width: 768px) {
    .header-container {
        padding: 0 20px;
    }

    .nav {
        position: absolute;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        display: flex;
        flex-direction: column;
        padding: 20px;
        background: var(--white);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        transition: 0.3s;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        width: 100%;
        flex-direction: column;
        min-width: 0;
    }

    .nav-list li {
        width: 100%;
    }

    .hamburger {
        display: block;
    }

    .concept {
        padding: 60px 15px;
    }

    .scale-visual {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .scale-item {
        width: 100%;
        max-width: 100%;
    }

    .scale-center {
        margin: 10px 0;
        transform: rotate(90deg);
    }

    .scale-center::before {
        width: 100%;
        height: 2px;
        background: linear-gradient(to right, transparent, var(--highlight-color), transparent);
    }

    .fusion-header {
        flex-direction: column;
        gap: 5px;
    }

    .page-title {
        margin-bottom: 40px;
        font-size: 1.35rem;
    }

    /* Security comparison table: keep the first column fixed on mobile */
    .comparison .compare-sticky-col {
        position: sticky;
        left: 0;
        z-index: 2;
        box-shadow: 8px 0 14px rgba(10, 14, 23, 0.35);
    }

    .comparison thead .compare-sticky-col {
        z-index: 3;
    }

    .persona-comment,
    .persona-comment--right {
        max-width: 100%;
        margin-left: 0;
        flex-direction: row;
        gap: 10px;
    }

    .persona-profile {
        width: 92px;
    }

    .persona-avatar {
        width: 56px;
        height: 56px;
    }

    .comment-bubble {
        max-width: calc(100% - 104px);
        padding: 13px 14px;
    }

    .comment-bubble::before,
    .persona-comment--right .comment-bubble::before {
        left: -8px;
        right: auto;
        top: 18px;
        width: 12px;
        height: 12px;
        border-right: 0;
        border-top: 0;
        border-left: 1px solid rgba(56, 189, 248, 0.35);
        border-bottom: 1px solid rgba(56, 189, 248, 0.35);
    }
}

.footer .footer-copyright-block .riss-inline-badge-logo {
    margin: 16px 0 8px;
}

.footer-riss-label {
    margin: 0 0 14px;
    color: #0a0e17;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.footer-riss-box {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 16px;
    border: 1px solid #0a0e17;
    border-radius: 16px;
}
