/* ==========================================
   TOP — ページ固有スタイル
   共通スタイルは /css/site.css を参照
   ========================================== */

/* TOP固有: position: relative が必要 */
body {
    position: relative;

    &::after {
        content: '';
        position: fixed;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: transparent;
        transform: translate(-50%, -50%);
        pointer-events: none;
        z-index: 9998;
    }
}

/* ==========================================
   Loading Screen
   ========================================== */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #f8fbff 0%, #f2f6fd 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;

    &.fade-out {
        opacity: 1;

        & .loading-spinner {
            animation: punchExpand 1.2s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
        }

        & .loading-content > *:not(.loading-spinner-wrapper) {
            opacity: 0;
            transition: opacity 0.3s ease;
        }
    }
}

#reveal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #f4f7fc;
    z-index: 9997;
    pointer-events: none;
}

.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.loading-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    opacity: 0;
    scale: 1.8;
}

.loading-text {
    color: #203a66;
}

.loading-spinner-wrapper {
    position: relative;
    width: 150px;
    height: 150px;
    opacity: 0;
    animation: fadeInScale 0.3s 0.1s ease forwards;
}

.loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    transform-origin: center center;
    animation: spinnerGrow 1.5s ease forwards;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-top-color: #3e5e9b;
    border-right-color: #3e5e9b;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;

    &:nth-child(2) {
        width: 72%;
        height: 72%;
        top: 14%;
        left: 14%;
        border-top-color: #6d77b8;
        border-right-color: #6d77b8;
        animation-duration: 2s;
        animation-direction: reverse;
    }

    &:nth-child(3) {
        width: 46%;
        height: 46%;
        top: 27%;
        left: 27%;
        border-top-color: #9c5fd5;
        border-right-color: #9c5fd5;
        animation-duration: 1.2s;
    }

    &:nth-child(4) {
        width: 30%;
        height: 30%;
        top: 35%;
        left: 35%;
        border-top-color: #ca47e2;
        border-right-color: #ca47e2;
        animation-duration: 1.8s;
        animation-direction: reverse;
    }

    &:nth-child(5) {
        width: 15%;
        height: 15%;
        top: 42.5%;
        left: 42.5%;
        border-top-color: #ff20ca;
        border-right-color: #ff20ca;
        animation-duration: 1s;
    }
}


.loading-status {
    position: absolute;
    top: calc(50% + 75px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: rgba(68, 91, 129, 0.64);
    text-transform: lowercase;
    opacity: 1;
    transition: opacity 0.4s ease, color 0.3s ease;
    animation: blink 0.2s linear infinite;

    &.complete {
        color: #315086;
        animation: none;
    }
}

@keyframes blink {
    0%, 49% {
        color: rgba(70, 94, 134, 0.6);
    }
    50%, 100% {
        color: rgba(56, 80, 120, 0.92);
    }
}

.loading-progress {
    position: absolute;
    top: calc(50% + 100px);
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: rgba(76, 100, 140, 0.2);
    border-radius: 10px;
    overflow: visible;
    opacity: 1;

    &.complete {
        opacity: 0;
    }
}

.progress-bar {
    height: 100%;
    background: var(--accent-gradient);
    width: 0%;
    border-radius: 10px;
    box-shadow: 0 0 10px color-mix(in srgb, var(--secondary-color) 60%, transparent);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes spinnerGrow {
    0% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes punchExpand {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    30% {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(50);
        opacity: 0;
    }
}


/* TOP固有: background-animation に pointer-events: none を追加 */
#background-animation {
    pointer-events: none;
}

#main-content {
    position: relative;
    z-index: 1;

    /* ローディング中: navbar以外の子要素をblur+透明で隠す
       ※ #main-content自体のopacityは使わない（backdrop-filterが壊れるため） */
    & > *:not(#background-animation):not(.site-header) {
        opacity: 0;
        filter: blur(20px);
        transition: opacity 1.2s ease, filter 1.2s ease;
    }

    &.show > *:not(#background-animation):not(.site-header) {
        opacity: 1;
        filter: blur(0px);
    }

    /* site-header: backdrop-filterを保持するためfilterは使わずopacityのみ */
    & > .site-header {
        opacity: 0;
        transition: opacity 0.6s ease;
    }

    &.show > .site-header {
        opacity: 1;
    }

    /* 再訪問時（ローディングスキップ）: 全トランジションを即座に解除 */
    &.skip-transition > * {
        opacity: 1 !important;
        filter: none !important;
        transition: none !important;
    }
}

/* ==========================================
   ナビゲーション
   ========================================== */
/* TOP固有: site.css ベーススタイルの上書き（clamp流体サイズ） */
.logo-main {
    font-size: clamp(1.1rem, 1.8vw, 1.5rem);
}

.logo-subtitle {
    font-size: clamp(0.55rem, 0.9vw, 0.75rem);
}

.nav-menu {
    gap: clamp(1rem, 2vw, 2rem);

    & a, & .nav-dropdown-toggle {
        font-size: clamp(0.82rem, 1.1vw, 1rem);
        white-space: nowrap;
    }
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 80px 2rem 2rem;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 3rem;
}

.company-name-jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.2em;
    font-weight: 400;
    margin-bottom: 0.5rem;
}

.company-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.2rem, 8vw, 6rem);
    font-weight: 900;
    letter-spacing: 0.05em;
    margin-bottom: 0;
    white-space: nowrap;
}

.name-main {
    color: var(--text-primary);
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: -0.3rem;
    margin-bottom: 0;
}

.tagline-item {
    font-size: clamp(1.5rem, 4vw, 3rem);
    font-weight: 700;
    margin: 1rem 0;

    &:nth-child(2) {
        background: var(--accent-gradient);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 2rem;

    & p {
        margin: 0.5rem 0;
    }
}

.hero-sub-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #ffffff;
    margin: 1rem 0;
    font-weight: 500;
}

.hero-sub-text-mini {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(0.85rem, 1.5vw, 1rem);
    color: #a0a0a0;
    margin-top: 1.5rem;
    font-weight: 400;
}

.scroll-indicator {
    position: relative;
    margin-top: 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    animation: bounce 2s infinite;
    cursor: pointer;
    transition: opacity 0.5s ease, transform 0.3s ease;

    &:hover {
        color: var(--secondary-color);
        transform: scale(1.1);
    }

    & span {
        text-transform: uppercase;
        font-family: 'Orbitron', sans-serif;
    }
}

.scroll-line {
    width: 2px;
    height: 60px;
    background: linear-gradient(to bottom, var(--secondary-color), transparent);
    position: relative;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 8px;
        height: 8px;
        background: var(--secondary-color);
        border-radius: 50%;
        box-shadow: 0 0 10px var(--secondary-color);
        animation: scrollDot 2s infinite;
    }
}

/* ドットが上から下に動くアニメーション */
@keyframes scrollDot {
    0%, 100% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: 50px;
        opacity: 0.3;
    }
}

/* バウンスアニメーション */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

/* ==========================================
   開発体制セクション
   ========================================== */
/* ==========================================
   Strength カード — TOP per-card カラーオーバーライド
   ベース定義は site.css
   ========================================== */
.strength-section {
    padding: 6rem 2rem;
}

.strength-card {
    &:nth-child(1) { --card-color: #f97316; } /* オレンジ */
    &:nth-child(2) { --card-color: #10b981; } /* グリーン */
    &:nth-child(3) { --card-color: #3b82f6; } /* ブルー */
}

.policy-panel {
    background: rgba(10, 15, 30, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
    text-align: center;
}

.policy-title {
    font-family: 'Noto Sans JP', sans-serif;
    /* font-size: 共通定義で clamp() 済み */
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.03em;
}

.policy-title--main {
    margin-bottom: 0.42rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.policy-title-sub {
    margin: 0 0 1.35rem;
    font-size: clamp(0.95rem, 1.9vw, 1.13rem);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.76);
    font-weight: 500;
    letter-spacing: 0.03em;
}

.policy-subtitle {
    font-size: clamp(0.95rem, 2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    font-weight: 400;
}

.policy-content {
    & p {
        font-size: clamp(1rem, 2vw, 1.1rem);
        color: rgba(255, 255, 255, 0.8);
        line-height: 2;
        margin: 1.5rem 0;
    }

    & strong {
        color: #ffffff;
        font-weight: 600;
    }
}

.ai-human-panel {
    margin-top: 2rem;
    padding: 2.3rem 2rem 2rem;
    border-radius: 24px;
    background: rgba(10, 15, 30, 0.42);
    border: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 24px;
        padding: 1px;
        background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 48%, transparent), rgba(139, 92, 246, 0.28), color-mix(in srgb, var(--secondary-color) 48%, transparent));
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        pointer-events: none;
    }

    &::after {
        content: '';
        position: absolute;
        top: -150px;
        right: -130px;
        width: 340px;
        height: 340px;
        border-radius: 50%;
        background: radial-gradient(
            circle at center,
            rgba(146, 177, 228, 0.24) 0%,
            rgba(181, 153, 233, 0.14) 42%,
            rgba(137, 202, 198, 0.08) 62%,
            rgba(137, 202, 198, 0) 78%
        );
        filter: blur(16px);
        opacity: 0.85;
        pointer-events: none;
    }
}

.ai-human-panel__title {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.15rem, 2.4vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.8rem;
    letter-spacing: 0.015em;
    position: relative;
    z-index: 1;

    & i {
        color: #8ca8da;
        font-size: 0.95em;
    }
}

.ai-human-panel__lead {
    margin: 0 auto 1.45rem;
    max-width: 64ch;
    font-size: clamp(0.98rem, 1.8vw, 1.08rem);
    line-height: 1.85;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    z-index: 1;
}

.ai-human-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.ai-human-card {
    text-align: left;
    background: rgba(8, 12, 22, 0.62);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 1.15rem 1.05rem 1.1rem;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        inset: 0;
        opacity: 0;
        background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
        transition: opacity 0.28s ease;
        pointer-events: none;
    }

    &:hover {
        transform: translateY(-2px);
        box-shadow: 0 14px 26px rgba(0, 0, 0, 0.24);
        border-color: rgba(255, 255, 255, 0.2);
    }

    &:hover::before {
        opacity: 1;
    }
}

.ai-human-card__head {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
}

.ai-human-card__title-group {
    min-width: 0;
}

.ai-human-card__icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 0;
    flex-shrink: 0;
}

.ai-human-card:nth-child(1) .ai-human-card__icon {
    background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 100%);
}

.ai-human-card:nth-child(2) .ai-human-card__icon {
    background: linear-gradient(135deg, #a78bfa 0%, #c4b5fd 100%);
}

.ai-human-card:nth-child(3) .ai-human-card__icon {
    background: linear-gradient(135deg, #34d399 0%, #6ee7b7 100%);
}

.ai-human-card__title {
    margin: 0;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
}

.ai-human-card__title-en {
    margin: 0.2rem 0 0;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.3;
    color: rgba(255, 255, 255, 0.5);
}

.ai-human-card__desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.74);
}

.collaboration-section {
    background: transparent;
    padding: 5rem 2rem 2.5rem;
    position: relative;
}

.collaboration-section .ai-human-panel {
    margin-top: 1.6rem;
}

/* ==========================================
   技術理念セクション
   ========================================== */
.philosophy-section {
    background: transparent;
    padding: 6rem 2rem 8rem;
    position: relative;

    /* 技術理念パネル — 開発体制の policy-panel と差別化 */
    & .policy-panel {
        background: rgba(10, 15, 30, 0.4);
        border: none;
        border-radius: 24px;
        padding: 3.5rem 3rem;
        position: relative;
        overflow: hidden;

        /* グラデーションボーダー（疑似要素で実現） */
        &::before {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: 24px;
            padding: 1px;
            background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 50%, transparent), rgba(139, 92, 246, 0.3), color-mix(in srgb, var(--secondary-color) 50%, transparent));
            -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
            -webkit-mask-composite: xor;
            mask-composite: exclude;
            pointer-events: none;
        }
    }

    & .policy-title {
        font-size: clamp(1.2rem, 2.8vw, 1.7rem);
        font-weight: 700;
        letter-spacing: 0.04em;
    }
}

/* AI Worksセクション */
#ndocs {
    padding-bottom: 4rem;

    & .policy-panel {
        padding: 2rem 2.5rem;
    }
}

/* AI Works リード文 */
.works-lead {
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 2rem;
    line-height: 1.8;
}

/* AI Works グリッド */
.ai-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: center;
}

.ai-works-card {
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
}

/* アイコン共通 */
.ai-works-card__icon {
    font-size: 2rem;
    color: #818cf8;
    margin-bottom: 1rem;
}

/* SHCアイコン: ファイル+南京錠2層 */
.shc-icon {
    position: relative;

    & i:last-child {
        position: absolute;
        bottom: -2px;
        right: -10px;
        font-size: 0.55em;
        color: #f59e0b;
    }
}

/* テキスト */
.ai-works-card__lead {
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.ai-works-card__sub {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1.2rem;
}

/* タブレット: 2列に */
@media (width <= 1023px) {
    .ai-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* モバイル: 1列 */
@media (width <= 767px) {
    .ai-works-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* AI Works — 横長リストレイアウト */
.ai-works-list {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ai-works-wide {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 1.8rem 2rem;
    transition: border-color 0.3s;

    &:hover {
        border-color: rgba(255, 255, 255, 0.2);
    }
}

.ai-works-wide__icon {
    font-size: 1.8rem;
    flex-shrink: 0;
    width: 3rem;
    text-align: center;
}

/* per-item アイコンカラー */
.ai-works-wide:nth-child(1) .ai-works-wide__icon { color: #60a5fa; }
.ai-works-wide:nth-child(2) .ai-works-wide__icon { color: #34d399; }
.ai-works-wide:nth-child(3) .ai-works-wide__icon { color: #f59e0b; }
.ai-works-wide:nth-child(4) .ai-works-wide__icon { color: #a78bfa; }

.ai-works-wide__text {
    flex: 1;
    min-width: 0;
}

.ai-works-wide__lead {
    font-size: 1.15rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.4rem;
}

.ai-works-wide__sub {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.ai-works-wide .ndocs-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (width <= 767px) {
    .ai-works-wide {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.5rem;
    }

    .ai-works-wide__icon {
        width: auto;
    }
}

/* ==========================================
   AI Works 2x2 グリッドカード
   ========================================== */
.works-lead {
    text-align: center;
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.ai-works-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.ai-works-card-2x2 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    transition: all 0.3s ease;

    &:hover {
        border-color: rgba(255, 255, 255, 0.25);
        transform: translateY(-3px);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    }
}

.ai-works-card-2x2__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.ai-works-card-2x2:nth-child(1) .ai-works-card-2x2__icon { color: #60a5fa; }
.ai-works-card-2x2:nth-child(2) .ai-works-card-2x2__icon { color: #34d399; }
.ai-works-card-2x2:nth-child(3) .ai-works-card-2x2__icon { color: #f59e0b; }
.ai-works-card-2x2:nth-child(4) .ai-works-card-2x2__icon { color: #a78bfa; }

.ai-works-card-2x2__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.6rem;
}

.ai-works-card-2x2__desc {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.7;
}

@media (width <= 599px) {
    .ai-works-grid-2x2 {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

/* 技術理念カード間の「×」記号グリッド（policy-panel内） */
.philosophy-grid-with-connectors {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    margin-top: 2.5rem;
}

.philosophy-connector {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    flex-shrink: 0;

    & i {
        font-size: 2.4rem;
        color: rgba(255, 255, 255, 0.45);
        line-height: 1;
    }
}

/* 技術理念カード — アイコン/バッジなし、日本語タイトルにカラー */
.philosophy-card {
    flex: 1;
    min-width: 0;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 15%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 15%, transparent) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
        border-radius: 16px;
    }

    &:hover {
        border-color: rgba(255, 255, 255, 0.3);
        transform: translateY(-2px);

        &::before {
            opacity: 1;
        }
    }

    & > * {
        position: relative;
        z-index: 1;
    }

    /* Universal - パープル */
    &:nth-child(1) .philosophy-card-title {
        color: #a78bfa;
    }

    /* AI-Ready - ピンク */
    &:nth-child(3) .philosophy-card-title {
        color: #f472b6;
    }

    /* Flexible - シアン */
    &:nth-child(5) .philosophy-card-title {
        color: #22d3ee;
    }
}

.philosophy-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    /* font-size: 共通定義で clamp() 済み */
    font-weight: 700;
    margin-bottom: 0.4rem;
    line-height: 1.3;
}

.philosophy-card-en {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.philosophy-card-desc {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
}

/* モバイル: 縦並び時の × */
@media (width <= 767px) {
    .ai-human-panel {
        padding: 1.5rem 1.15rem 1.25rem;
        border-radius: 18px;
    }

    .ai-human-panel__lead {
        margin-bottom: 1rem;
    }

    .ai-human-grid {
        grid-template-columns: 1fr;
    }

    .ai-human-card {
        padding: 0.95rem 0.9rem;
    }

    .philosophy-grid-with-connectors {
        flex-direction: column;
        gap: 0;
    }

    .philosophy-connector {
        padding: 1rem 0;

        & i {
            font-size: 1.8rem;
        }
    }
}

@media (768px <= width <= 1100px) {
    /* タイトル系は clamp() でスムーズスケールするため font-size 上書き不要 */

    .division-card,
    .strength-card {
        padding: 1.8rem;
    }

    .division-icon,
    .strength-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
    }

    .philosophy-card {
        padding: 1.5rem;
    }
}

/* ハイライトテキスト - スクロールで下線が伸びる + 一文字ずつ浮かび上がり */
.highlight-text {
    position: relative;
    display: inline;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
    padding-bottom: 2px;
    transform-origin: center;
    will-change: transform;

    & .char {
        display: inline-block;
        transition: opacity 0.05s ease;
    }

    &::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: 0;
        width: 0%;
        height: 3px;
        background: linear-gradient(90deg, #3e5e9b 0%, #6a9dff 50%, #ff20ca 100%);
        transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 0 8px rgba(100, 150, 255, 0.5);
    }

    &.active::after {
        width: 100%;
    }
}

/* ==========================================
   会社概要セクション
   ========================================== */
.company-section {
    background: transparent;
    padding-top: 4rem;
    position: relative;
}

.info-panel {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
}

.panel-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

.info-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 0.3rem;

    & th {
        text-align: left;
        padding: 0.8rem 1rem;
        font-weight: 500;
        color: rgba(255, 255, 255, 0.6);
        width: 200px;
        vertical-align: top;
        font-size: 0.95rem;
    }

    & td {
        padding: 0.8rem 1rem;
        color: rgba(255, 255, 255, 0.9);
        line-height: 1.8;
    }

    & tr {
        background: rgba(255, 255, 255, 0.02);
    }
}

/* ==========================================
   レスポンシブデザイン
   ========================================== */
@media (width <= 767px) {
    /* Divisions Section */
    .divisions-section {
        padding: 4rem 1rem;
    }

    .divisions-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .division-card {
        padding: 2rem 1.5rem;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(10, 10, 10, 0.98);
        padding: 1rem 1.5rem;
        gap: 0;
        clip-path: inset(0 0 100% 0);
        transition: clip-path 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        pointer-events: none;

        &.active {
            clip-path: inset(0);
            pointer-events: auto;
        }

        /* メインナビリンクのタップ領域拡大 */
        & > li > a {
            display: block;
            width: 100%;
            padding: 0.65rem 0.5rem;
        }
    }

    .menu-toggle {
        display: flex;

        &.active span:nth-child(1) {
            transform: rotate(45deg) translate(8px, 8px);
        }

        &.active span:nth-child(2) {
            opacity: 0;
        }

        &.active span:nth-child(3) {
            transform: rotate(-45deg) translate(7px, -7px);
        }
    }

    /* モバイル用ドロップダウン */
    .nav-dropdown-menu {
        position: static;
        transform: none;
        min-width: auto;
        background: rgba(255, 255, 255, 0.03);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        border-left: 2px solid color-mix(in srgb, var(--primary-color) 40%, transparent);
        border-radius: 0;
        padding: 0.3rem 0 0.3rem 1rem;
        margin-top: 0.3rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;

        & a {
            display: flex;
            width: 100%;
            padding: 0.55rem 1rem;
            font-size: 0.95rem;
            border-radius: 6px;
        }
    }

    .nav-dropdown:hover .nav-dropdown-menu {
        transform: none;
    }

    .info-table {
        display: block;

        & tr {
            display: flex;
            flex-direction: column;
            margin-bottom: 1rem;
            padding: 0.8rem;
            border-radius: 8px;
        }

        & th,
        & td {
            width: 100%;
            padding: 0.4rem 0;
        }

        & th {
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 0.4rem;
            margin-bottom: 0.4rem;
            font-size: 0.85rem;
        }
    }

    .info-panel {
        padding: 2rem 1.5rem;
    }

    .strength-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .strength-card {
        padding: 2rem 1.5rem;
    }

}

/* 横画面（スマホ・小型タブレット）: ヘッダー縮小のみ（ハンバーガー化しない） */
@media (orientation: landscape) and (height <= 500px) and (width >= 768px) {
    .navbar {
        padding: 0.3rem 0;
    }

    .logo {
        gap: 0;
    }

    .logo-main {
        font-size: 1rem;
    }

    .logo-subtitle {
        font-size: 0.5rem;
    }

    .nav-menu {
        gap: 0.8rem;

        & a, & .nav-dropdown-toggle {
            font-size: 0.78rem;
        }
    }

    .hero {
        padding-top: 50px;
    }
}

@media (width <= 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    /* .company-name, .tagline-item, .section-title の font-size は
       clamp() がスムーズにスケールするため固定値上書き不要 */

    .info-panel {
        padding: 1.5rem 1rem;
    }

    .policy-panel {
        padding: 2rem 1.5rem;
    }

}

/* ==========================================
   Divisions Section
   ========================================== */
.divisions-section {
    padding: 6rem 2rem;
    position: relative;
}

.divisions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.division-card {
    background: rgba(10, 15, 30, 0.82);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6),
                0 8px 16px rgba(0, 0, 0, 0.4);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));

    &::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.02);
        z-index: -1;
        border-radius: 20px;
    }

    &::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, color-mix(in srgb, var(--primary-color) 20%, transparent) 0%, color-mix(in srgb, var(--secondary-color) 20%, transparent) 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
        z-index: -1;
        border-radius: 20px;
    }

    &:hover {
        border-color: rgba(255, 255, 255, 0.8);
        box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
        transform: scale(1.02);

        &::before {
            opacity: 1;
        }

        & .feature-tag {
            background: rgba(255, 255, 255, 0.08);
            border-color: color-mix(in srgb, var(--secondary-color) 30%, transparent);
        }
    }

    & > * {
        position: relative;
        z-index: 1;
    }
}

.division-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.division-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 10px 30px color-mix(in srgb, var(--secondary-color) 40%, transparent);
}

/* カード全体リンク化 */
.division-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;

    & .division-card {
        cursor: pointer;
        width: 100%;
        min-height: 100%;
    }

    /* AI Mix - ピンク（最注力） */
    &:nth-child(1) .division-icon {
        background: linear-gradient(135deg, #ec4899 0%, #f9a8d4 100%);
        box-shadow: 0 10px 30px rgba(236, 72, 153, 0.5);
    }

    &:nth-child(1) .division-badge {
        background: rgba(236, 72, 153, 0.2);
        border: 1px solid #ec4899;
        color: #f9a8d4;
    }

    /* PHP Rescue Division - 紫 */
    &:nth-child(2) .division-icon {
        background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
        box-shadow: 0 10px 30px rgba(139, 92, 246, 0.5);
    }

    &:nth-child(2) .division-badge {
        background: rgba(139, 92, 246, 0.2);
        border: 1px solid #8b5cf6;
        color: #a78bfa;
    }

    /* WEBシステム開発 - 水色 */
    &:nth-child(3) .division-icon {
        background: linear-gradient(135deg, #06b6d4 0%, #67e8f9 100%);
        box-shadow: 0 10px 30px rgba(6, 182, 212, 0.5);
    }

    &:nth-child(3) .division-badge {
        background: rgba(6, 182, 212, 0.2);
        border: 1px solid #06b6d4;
        color: #67e8f9;
    }

    /* WEB Systems - ブルー */
    &:nth-child(4) .division-icon {
        background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
        box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
    }

    &:nth-child(4) .division-badge {
        background: rgba(59, 130, 246, 0.2);
        border: 1px solid #3b82f6;
        color: #60a5fa;
    }

    &:hover .division-title::after {
        width: 100%;
    }

    &:hover .division-link-button {
        gap: 1rem;
        background: color-mix(in srgb, var(--secondary-color) 45%, transparent);
        border-color: color-mix(in srgb, var(--secondary-color) 80%, transparent);
        box-shadow: 0 0 20px color-mix(in srgb, var(--secondary-color) 60%, transparent), 0 0 40px color-mix(in srgb, var(--secondary-color) 30%, transparent);
        transform: translateX(5px);
    }

    &:hover .division-link-button i {
        transform: translateX(5px);
    }
}

.division-badge {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.division-title {
    font-family: 'Noto Sans JP', sans-serif;
    /* font-size: 共通定義で clamp() 済み */
    margin-bottom: 0.3rem;
    color: var(--text-primary);
    font-weight: 700;
    cursor: pointer;
    position: relative;
    display: block;
    transition: color 0.3s ease;
    line-height: 1.3;

    &::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #3e5e9b 0%, #ff20ca 100%);
        transition: width 0.4s ease;
    }
}

.division-name-jp {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    position: relative;
    display: inline-block;
    transition: color 0.3s ease;
    line-height: 1.3;
    white-space: nowrap;

    &::after {
        content: '';
        position: absolute;
        bottom: -3px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(135deg, #3e5e9b 0%, #ff20ca 100%);
        transition: width 0.4s ease;
    }
}

.division-title-link {
    text-decoration: none;
    display: block;
    line-height: 1.3;

    &:hover .division-title {
        color: var(--text-primary);
    }

    &:hover .division-title::after {
        width: 100%;
    }

    &:hover .division-name-jp {
        color: var(--text-primary);
    }

    &:hover .division-name-jp::after {
        width: 100%;
    }
}

.division-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.division-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.feature-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;

    & i {
        color: var(--secondary-color);
        font-size: 0.75rem;
    }
}

.division-link-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-primary);
    background: color-mix(in srgb, var(--secondary-color) 15%, transparent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--secondary-color) 20%, transparent);
    border: 2px solid color-mix(in srgb, var(--secondary-color) 30%, transparent);
    margin-top: auto;
    align-self: flex-end;
    position: relative;

    &::before {
        display: none;
    }

    &::after {
        display: none;
    }

    & > * {
        position: relative;
        z-index: 1;
    }

    & i {
        transition: transform 0.3s ease;
    }
}

@keyframes glowingBorder {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 200% 0%;
    }
}

/* ==========================================
   v2 Direction Layer
   白基調 + 黒ヒーロー + 先進演出の共存
   ========================================== */
.top-v2 {
    --font-en-corporate: futura-pt, "Futura PT", "Avenir Next", "Avenir", "Helvetica Neue", Arial, sans-serif;
    background: #f4f7fc;
    color: #1f2430;
}

.top-v2 #main-content {
    background: #f4f7fc;
}

.top-v2 #background-animation {
    background: #06090f;
}

.top-v2 .navbar-global {
    background: linear-gradient(180deg, rgba(8, 12, 21, 0.58) 0%, rgba(8, 12, 21, 0.24) 100%);
    border-bottom: 1px solid rgba(228, 236, 255, 0.12);
    box-shadow: none;
    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
    padding: 0.88rem 0;
    transition: padding 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.top-v2 .navbar-global .logo-text,
.top-v2 .navbar-global .nav-menu a,
.top-v2 .navbar-global .nav-menu .nav-dropdown-toggle {
    color: rgba(241, 247, 255, 0.9);
    transition: color 0.25s ease, opacity 0.35s ease, transform 0.35s ease;
}

.top-v2 .navbar-global .logo-text {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-7px) scale(0.98);
}

.top-v2 .navbar-global .logo-main {
    font-size: 1.72rem;
    transition: font-size 0.25s ease;
}

.top-v2 .navbar-global .nav-menu {
    gap: 2.15rem;
    transition: gap 0.25s ease;
}

.top-v2 .navbar-global .nav-menu a:hover,
.top-v2 .navbar-global .nav-menu .nav-dropdown-toggle:hover {
    color: #ffffff;
}

.top-v2 .navbar-global .nav-dropdown > .nav-dropdown-toggle i {
    color: rgba(234, 242, 255, 0.72);
}

.top-v2 .navbar-global.scrolled {
    padding: 0.56rem 0;
    background: rgba(248, 251, 255, 0.96);
    border-bottom: 1px solid rgba(25, 35, 60, 0.14);
    box-shadow: 0 10px 20px rgba(12, 20, 45, 0.1);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.top-v2 .navbar-global.scrolled .logo-text,
.top-v2 .navbar-global.scrolled .nav-menu a,
.top-v2 .navbar-global.scrolled .nav-menu .nav-dropdown-toggle {
    color: #111a2c;
}

.top-v2 .navbar-global.scrolled .logo-text {
    opacity: 1;
    visibility: visible;
    transform: none;
}

.top-v2 .navbar-global.scrolled .logo-main {
    font-size: 1.5rem;
}

.top-v2 .navbar-global.scrolled .nav-menu {
    gap: 1.65rem;
}

.top-v2 .navbar-global.scrolled .nav-menu a:hover,
.top-v2 .navbar-global.scrolled .nav-menu .nav-dropdown-toggle:hover {
    color: #315ca2;
}

.top-v2 .navbar-global.scrolled .nav-dropdown > .nav-dropdown-toggle i {
    color: rgba(17, 26, 44, 0.6);
}

.top-v2 .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(32, 52, 90, 0.16);
    box-shadow: 0 16px 32px rgba(16, 28, 54, 0.14);
}

.top-v2 .nav-dropdown-menu li a {
    color: #1b2d4b !important;
}

.top-v2 .nav-dropdown-menu li a i {
    color: #4c6187;
}

.top-v2 .nav-dropdown-menu li a:hover {
    background: rgba(49, 92, 162, 0.08);
    color: #17335f !important;
}

.top-v2 .nav-dropdown-menu li a:hover i {
    color: #315ca2;
}

.top-v2 .nav-dropdown-sub {
    color: rgba(27, 45, 75, 0.65);
}

.top-v2 .hero {
    min-height: 41vh;
    padding-top: 110px;
    padding-bottom: 2.4rem;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 14%, rgba(88, 128, 202, 0.14), transparent 42%),
        radial-gradient(circle at 84% 28%, rgba(255, 32, 202, 0.11), transparent 48%),
        linear-gradient(160deg, rgba(8, 12, 22, 0.44) 0%, rgba(8, 12, 22, 0.26) 48%, rgba(8, 12, 22, 0.46) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-v2 .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(92% 120% at 50% 52%, rgba(0, 0, 0, 0) 38%, rgba(4, 7, 14, 0.32) 100%),
        linear-gradient(180deg, rgba(4, 8, 14, 0.12) 0%, rgba(4, 8, 14, 0.02) 45%, rgba(4, 8, 14, 0.1) 100%);
    z-index: 0;
}

.top-v2 .hero::after {
    content: none;
}

.top-v2 .hero-content {
    max-width: 1120px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.top-v2 #background-animation canvas {
    filter: contrast(1.12) saturate(1.14) brightness(1.05);
}

.top-v2 .hero-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    align-items: center;
    text-align: center;
}

.top-v2 .hero-brand,
.top-v2 .hero-copy {
    width: 100%;
    max-width: 520px;
    min-height: 232px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.top-v2 .hero-brand {
    transition: opacity 0.36s ease, transform 0.36s ease, filter 0.36s ease;
}

.top-v2.hero-logo-dim .hero-brand {
    opacity: 0.14;
    transform: translateY(-12px) scale(0.95);
    filter: blur(0.3px);
}

.logo-morph {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1102;
    pointer-events: none;
    opacity: 0;
    transform-origin: left top;
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1;
    color: #f6f9ff;
    text-shadow: 0 4px 14px rgba(7, 12, 24, 0.22);
    will-change: transform, opacity;
}

.top-v2 .hero-brand-jp {
    color: rgba(226, 235, 255, 0.9);
    font-size: clamp(1.32rem, 2.35vw, 2rem);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.25;
    margin-bottom: 0.32rem;
    text-shadow: 0 6px 18px rgba(7, 12, 24, 0.36);
}

.top-v2 .hero-brand-en {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.7rem, 6.2vw, 4.8rem);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.top-v2 .hero-tagline {
    width: 100%;
    margin-top: 0;
    margin-bottom: 0.62rem;
    font-size: clamp(0.86rem, 1.22vw, 1.02rem);
    color: #9a6eff;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.top-v2 .hero-catch {
    font-size: clamp(1.28rem, 2.46vw, 2.08rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.42;
    color: #f7f9ff;
    margin: 0 auto;
}

.top-v2 .trust-band {
    position: relative;
    margin-top: 0;
    padding: 2rem 2rem 1.35rem;
    background: #f4f7fc;
    z-index: 3;
}

.top-v2 .trust-band__inner {
    max-width: 960px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 100%);
    border: 1px solid rgba(30, 55, 95, 0.13);
    border-radius: 16px;
    box-shadow: 0 14px 32px rgba(20, 33, 61, 0.1);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.top-v2 .trust-chip {
    padding: 1.3rem 1rem;
    text-align: center;
}

.top-v2 .trust-chip + .trust-chip {
    border-left: 1px solid rgba(24, 41, 74, 0.1);
}

.top-v2 .trust-chip__value {
    font-family: var(--font-en-corporate);
    font-size: clamp(1rem, 1.8vw, 1.34rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #213d6d;
    margin-bottom: 0.14rem;
}

.top-v2 .trust-chip__value--metric {
    font-size: clamp(1.22rem, 2.2vw, 1.74rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.top-v2 .trust-chip__value--wide {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    font-size: clamp(1.16rem, 2vw, 1.58rem);
    letter-spacing: 0.015em;
}

.top-v2 .trust-chip__cross {
    color: #7786a1;
    font-size: 0.78em;
}

.top-v2 .trust-chip__value--jp {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.14rem, 1.9vw, 1.52rem);
    font-weight: 800;
    letter-spacing: 0.03em;
}

.top-v2 .trust-chip__label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #53678c;
}

.top-v2 .divisions-section,
.top-v2 .collaboration-section,
.top-v2 .philosophy-section,
.top-v2 .strength-section,
.top-v2 .company-section {
    background: #f4f7fc;
}

.home-content-group {
    position: relative;
}

.top-v2 .home-content-group {
    background: #f4f7fc;
}

.top-v2 .home-content-group--services {
    margin-bottom: 0;
    padding-bottom: clamp(2.8rem, 5vw, 4.8rem);
}

.top-v2 .home-content-group--ai {
    padding-top: clamp(0.7rem, 1.6vw, 1.4rem);
}

.top-v2 .divisions-section {
    padding-top: 6rem;
}

.top-v2 .collaboration-section {
    padding-top: 5.8rem;
    padding-bottom: 5.6rem;
}

.top-v2 .philosophy-section {
    padding-top: 5.4rem;
}

.top-v2 .divisions-section .section-title {
    margin-bottom: 1.25rem;
}

.top-v2 #divisions .divisions-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: none;
}

.top-v2 #divisions .division-card {
    padding: 1.9rem 1.35rem;
    border-radius: 16px;
}

.top-v2 #divisions .division-card::before {
    background: linear-gradient(
        140deg,
        rgba(var(--division-accent-rgb), 0.05) 0%,
        rgba(var(--division-accent-rgb), 0.12) 100%
    );
}

.top-v2 #divisions .division-card-link {
    --division-accent: #4d648f;
    --division-accent-rgb: 77, 100, 143;
}

.top-v2 #divisions .division-card-link:nth-child(1) {
    --division-accent: #ec4899;
    --division-accent-rgb: 236, 72, 153;
}

.top-v2 #divisions .division-card-link:nth-child(2) {
    --division-accent: #8b5cf6;
    --division-accent-rgb: 139, 92, 246;
}

.top-v2 #divisions .division-card-link:nth-child(3) {
    --division-accent: #06b6d4;
    --division-accent-rgb: 6, 182, 212;
}

.top-v2 #divisions .division-card-link:nth-child(4) {
    --division-accent: #3b82f6;
    --division-accent-rgb: 59, 130, 246;
}

.top-v2 #divisions .division-header {
    margin-bottom: 1rem;
}

.top-v2 #divisions .division-icon {
    width: 58px;
    height: 58px;
    border-radius: 12px;
    font-size: 1.52rem;
    box-shadow: 0 5px 14px rgba(var(--division-accent-rgb), 0.29);
}

.top-v2 #divisions .division-badge {
    padding: 0.28rem 0.68rem;
    border-radius: 14px;
    font-size: 0.64rem;
    letter-spacing: 0.045em;
}

.top-v2 #divisions .division-title {
    margin-bottom: 0.2rem;
}

.top-v2 #divisions .division-card-link:nth-child(3) .division-title {
    font-size: clamp(1rem, 0.72vw + 0.56rem, 1.1rem);
    line-height: 1.34;
    letter-spacing: 0.01em;
    text-wrap: balance;
}

.top-v2 #divisions .division-name-jp {
    font-size: 0.98rem;
    margin-bottom: 0.88rem;
}

.top-v2 #divisions .division-description {
    font-size: 0.93rem;
    line-height: 1.72;
}

.top-v2 #divisions .section-title .title-jp {
    font-size: clamp(1.45rem, 3.1vw, 2.15rem);
    line-height: 1.35;
    letter-spacing: 0.03em;
}

.top-v2 #divisions .service-caption {
    margin: 0 auto 2.35rem;
    max-width: 56ch;
    text-align: center;
    font-size: clamp(0.9rem, 1.1vw, 0.98rem);
    line-height: 1.75;
    color: rgba(49, 68, 99, 0.72);
}

.top-v2 #ndocs {
    background: linear-gradient(180deg, #f4f7fc 0%, #edf3fb 100%);
    padding-bottom: 6.5rem;
}

.top-v2 .section-title {
    font-family: var(--font-en-corporate);
    color: #4d648f;
}

.top-v2 .section-title .title-jp {
    color: #0f1f39;
}

.top-v2 .section-title::after {
    height: 3px;
    box-shadow: 0 5px 14px rgba(73, 112, 189, 0.25);
}

.top-v2 .division-card,
.top-v2 .strength-card,
.top-v2 .policy-panel,
.top-v2 .philosophy-card,
.top-v2 .ai-works-card-2x2,
.top-v2 .info-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(32, 52, 90, 0.13);
    box-shadow: 0 16px 36px rgba(16, 28, 54, 0.1);
    filter: none;
}

.top-v2 .division-card:hover,
.top-v2 .strength-card:hover,
.top-v2 .philosophy-card:hover,
.top-v2 .ai-works-card-2x2:hover {
    transform: translateY(-4px);
    border-color: rgba(33, 69, 130, 0.3);
    box-shadow: 0 20px 44px rgba(18, 31, 61, 0.16);
}

.top-v2 #divisions .division-card:hover {
    border-color: rgba(var(--division-accent-rgb), 0.24);
    box-shadow: 0 18px 34px rgba(var(--division-accent-rgb), 0.11);
}

.top-v2 .division-card::after,
.top-v2 .strength-card::after,
.top-v2 .philosophy-card::after,
.top-v2 .policy-panel::before {
    display: none;
}

.top-v2 .division-title,
.top-v2 .strength-title,
.top-v2 .philosophy-card-title,
.top-v2 .policy-title {
    color: #11203a;
}

.top-v2 .division-name-jp {
    font-family: 'Orbitron', sans-serif;
    color: #35598f;
}

.top-v2 .division-badge,
.top-v2 .strength-name-en,
.top-v2 .philosophy-card-en {
    font-family: 'Orbitron', sans-serif;
    color: #617495;
}

.top-v2 .division-link-button {
    color: var(--division-accent);
    border-color: rgba(var(--division-accent-rgb), 0.34);
    background: rgba(var(--division-accent-rgb), 0.1);
}

.top-v2 .division-link-button i {
    color: inherit;
}

.top-v2 #divisions .division-card-link:hover .division-link-button {
    color: var(--division-accent);
    background: rgba(var(--division-accent-rgb), 0.16);
    border-color: rgba(var(--division-accent-rgb), 0.46);
    box-shadow: 0 8px 18px rgba(var(--division-accent-rgb), 0.2);
    transform: translateX(3px);
}

.top-v2 #divisions .division-card-link:hover .division-link-button i {
    transform: translateX(4px);
}

.top-v2 .division-description,
.top-v2 .strength-description,
.top-v2 .philosophy-card-desc,
.top-v2 .policy-content p,
.top-v2 .ai-works-card-2x2__desc,
.top-v2 .info-table td {
    color: #314463;
}

.top-v2 .policy-content strong {
    color: #1f3a66;
}

.top-v2 .policy-title--main {
    font-size: clamp(1.34rem, 2.28vw, 1.86rem);
}

.top-v2 .policy-title-sub {
    color: #5b6f90;
}

.top-v2 .ai-human-panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(32, 52, 90, 0.14);
    box-shadow: 0 16px 32px rgba(16, 28, 54, 0.1);
    text-align: center;
    max-width: 1260px;
    margin-left: auto;
    margin-right: auto;
    padding: 2.9rem 2.4rem 2.7rem;
}

.top-v2 .ai-human-panel::before {
    display: none;
}

.top-v2 .ai-human-panel::after {
    display: none;
}

.top-v2 .ai-human-panel__title {
    color: #12233f;
    justify-content: center;
    font-size: clamp(1.24rem, 2.3vw, 1.65rem);
    margin-bottom: 1rem;
}

.top-v2 .ai-human-panel__title i {
    color: #4b76b4;
}

.top-v2 .ai-human-panel__lead {
    color: #3d557b;
    max-width: 78ch;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.7rem;
    line-height: 1.9;
    text-wrap: pretty;
}

.top-v2 .ai-human-grid {
    gap: 1.35rem;
}

.top-v2 .ai-human-card {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(124, 149, 189, 0.24);
    box-shadow: 0 10px 20px rgba(43, 63, 101, 0.08);
    padding: 1.35rem 1.2rem 1.25rem;
}

.top-v2 .ai-human-card:nth-child(1) {
    border-top: 2px solid rgba(95, 156, 246, 0.36);
}

.top-v2 .ai-human-card:nth-child(2) {
    border-top: 2px solid rgba(155, 127, 240, 0.34);
}

.top-v2 .ai-human-card:nth-child(3) {
    border-top: 2px solid rgba(79, 199, 157, 0.34);
}

.top-v2 .ai-human-card__icon {
    width: 3rem;
    height: 3rem;
    border-radius: 14px;
    margin-bottom: 0;
    box-shadow: 0 8px 16px rgba(43, 63, 101, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.top-v2 .ai-human-card__icon i {
    font-size: 1.2rem;
}

.top-v2 .ai-human-card:nth-child(1) .ai-human-card__icon {
    background: linear-gradient(135deg, #5f9cf6 0%, #7eaff8 100%);
}

.top-v2 .ai-human-card:nth-child(2) .ai-human-card__icon {
    background: linear-gradient(135deg, #9b7ff0 0%, #b095f4 100%);
}

.top-v2 .ai-human-card:nth-child(3) .ai-human-card__icon {
    background: linear-gradient(135deg, #4fc79d 0%, #71d6b2 100%);
}

.top-v2 .ai-human-card:hover {
    border-color: rgba(83, 120, 183, 0.3);
    box-shadow: 0 14px 26px rgba(35, 55, 93, 0.14);
    transform: translateY(-3px);
}

.top-v2 .ai-human-card__title {
    color: #142949;
    font-size: 1.06rem;
}

.top-v2 .ai-human-card__title-en {
    color: rgba(84, 105, 142, 0.72);
}

.top-v2 .ai-human-card__desc {
    color: #3f557d;
    font-size: 0.95rem;
}

.top-v2 .highlight-text {
    color: #1f3a66;
}

.top-v2 .highlight-text .char {
    color: inherit;
}

.top-v2 .philosophy-connector i {
    color: rgba(45, 64, 102, 0.38);
}

.top-v2 .works-lead {
    color: #5f7397;
}

.top-v2 .ai-works-card-2x2__title {
    color: #152846;
}

.top-v2 .info-table tr {
    background: rgba(238, 244, 253, 0.76);
}

.top-v2 .info-table th {
    color: #4d6387;
}

.top-v2 .footer {
    background: linear-gradient(180deg, #0e1627 0%, #0a111f 100%);
}

@media (width <= 1200px) {
    .top-v2 #divisions .divisions-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.1rem;
    }
}

@media (width <= 900px) {
    .top-v2 .trust-band {
        padding: 1.35rem 1.4rem 1rem;
    }

    .top-v2 .divisions-section .section-title {
        margin-bottom: 1.15rem;
    }

    .top-v2 #divisions .service-caption {
        margin-bottom: 2.1rem;
    }

    .top-v2 .trust-band__inner {
        grid-template-columns: repeat(2, 1fr);
    }

    .top-v2 .trust-chip:nth-child(3),
    .top-v2 .trust-chip:nth-child(4) {
        border-top: 1px solid rgba(24, 41, 74, 0.1);
    }

    .top-v2 .trust-chip:nth-child(3) {
        border-left: none;
    }
}

@media (width <= 767px) {
    .top-v2 .hero {
        min-height: 37vh;
        padding-top: 98px;
        padding-bottom: 1.9rem;
    }

    .top-v2 .navbar-global {
        padding: 0.64rem 0;
        background: rgba(248, 251, 255, 0.96);
        border-bottom: 1px solid rgba(25, 35, 60, 0.14);
        box-shadow: 0 8px 22px rgba(12, 20, 45, 0.08);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
    }

    .top-v2 .navbar-global .logo-text,
    .top-v2 .navbar-global .nav-menu a,
    .top-v2 .navbar-global .nav-menu .nav-dropdown-toggle {
        color: #111a2c;
    }

    .top-v2 .navbar-global .logo-text {
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .top-v2 .navbar-global .menu-toggle span {
        background: #111a2c;
    }

    .top-v2 .navbar-global .logo-main,
    .top-v2 .navbar-global.scrolled .logo-main {
        font-size: 1.34rem;
    }

    .top-v2 .navbar-global .nav-menu {
        background: rgba(248, 251, 255, 0.98) !important;
        border-top: 1px solid rgba(25, 35, 60, 0.1);
    }

    .top-v2 .navbar-global .nav-menu > li > a,
    .top-v2 .navbar-global .nav-menu > li > .nav-dropdown-toggle {
        color: #142543 !important;
    }

    .top-v2 .hero-split {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }

    .top-v2 .hero-brand,
    .top-v2 .hero-copy {
        min-height: auto;
        max-width: 100%;
    }

    .top-v2 .hero-brand-jp {
        font-size: clamp(1.05rem, 5.2vw, 1.45rem);
        margin-bottom: 0.18rem;
    }

    .top-v2 .hero-brand-en {
        font-size: clamp(2.2rem, 12vw, 3.1rem);
    }

    .top-v2 .hero-catch {
        font-size: clamp(1.16rem, 6.2vw, 1.62rem);
        line-height: 1.42;
    }

    .top-v2 .divisions-section .section-title {
        margin-bottom: 0.95rem;
    }

    .top-v2 #divisions .service-caption {
        margin-bottom: 1.8rem;
        font-size: 0.88rem;
        line-height: 1.7;
        max-width: 34ch;
    }

    .top-v2 .trust-band {
        margin-top: 0;
        padding: 1.15rem 1rem 0.95rem;
    }

    .top-v2 .trust-chip {
        padding: 1rem 0.65rem;
    }

    .top-v2 .trust-chip__label {
        font-size: 0.84rem;
    }

    .top-v2 #divisions .section-title .title-jp {
        font-size: clamp(1.18rem, 5.2vw, 1.5rem);
    }

    .top-v2 .collaboration-section {
        padding: 3.8rem 1rem 3.2rem;
    }

    .top-v2 .philosophy-section {
        padding-top: 3.4rem;
    }

    .top-v2 #ndocs {
        padding-bottom: 4.8rem;
    }

    .top-v2 .home-content-group--services {
        margin-bottom: 0;
        padding-bottom: 2rem;
    }

    .top-v2 .home-content-group--ai {
        padding-top: 0.7rem;
    }

    .top-v2 #divisions .divisions-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .top-v2 #divisions .division-card {
        padding: 1.5rem 1.2rem;
    }
}
