/* ==========================================
   AI Mix Division — ページ固有スタイル
   共通スタイルは /css/site.css を参照
   ========================================== */

/* ==========================================
   カスタムプロパティ（AI Team比較用に追加）
   ========================================== */
:root {
    --accent-color: #00b4d8;
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.hero {
    min-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 2rem;
    padding-top: 80px;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-logo {
    margin-bottom: 3rem;
}

.hero-service-ruby {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 1rem;
    margin-top: 3rem;
    letter-spacing: 0.08em;
}

.division-name {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 900;
    letter-spacing: 0.15em;
    margin-bottom: 0;
    line-height: 1.2;
}

.division-label {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.hero-subtitle {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: var(--text-primary);
    letter-spacing: 0.05em;
    margin-bottom: 8rem;

    & p {
        margin: 0.5rem 0;
    }
}

.hero-tagline {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.05rem, 2.2vw, 1.55rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}

.hero-sub-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 1.9vw, 1.2rem);
    color: rgba(255, 255, 255, 0.55);
    margin: 1rem 0;
    font-weight: 400;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    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: translateX(-50%) 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;
    }
}

/* ==========================================
   課題セクション（こんな悩みありませんか？）
   ========================================== */
/* ==========================================
   課題セクション — strength-card オーバーライド
   ベース定義は site.css（--card-color 駆動）
   ========================================== */
.problem-section {
    padding: 5rem 2rem;
    background: transparent;
}

.problem-section .strength-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.problem-section .strength-card { min-width: 0; }
.problem-section .strength-card:nth-child(1) { --card-color: #00b4d8; }
.problem-section .strength-card:nth-child(2) { --card-color: #3e5e9b; }
.problem-section .strength-card:nth-child(3) { --card-color: #34d399; }

@media (width <= 1023px) {
    .problem-section .strength-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 767px) {
    .problem-section .strength-grid {
        grid-template-columns: 1fr;
    }
    .problem-section .strength-card {
        padding: 1.8rem;
    }
}

/* ==========================================
   比較セクション
   ========================================== */
.comparison-section {
    padding: 5rem 2rem;
    background: transparent;
}

.comparison-table-wrapper {
    margin-top: 2rem;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 2px;
}

.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    border-radius: 14px;
    overflow: hidden;

    & th,
    & td {
        padding: 1rem 1.2rem;
        text-align: center;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    & th {
        font-family: 'Noto Sans JP', sans-serif;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        background: rgba(20, 25, 45, 0.8);
        font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    }

    & th:first-child,
    & td:first-child {
        text-align: left;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.85);
        white-space: normal;
        min-width: 160px;
    }

    & tbody tr {
        background: rgba(15, 20, 40, 0.85);
        transition: background 0.3s ease;

        &:nth-child(even) {
            background: rgba(20, 25, 50, 0.9);
        }

        &:hover {
            background: rgba(40, 50, 80, 0.95);
        }
    }

    & th:last-child {
        color: var(--secondary-color);
        font-weight: 700;
    }

    & td {
        color: rgba(255, 255, 255, 0.6);
    }

    & .comparison-best {
        color: #34d399;
        font-size: 1.1em;
    }

    & .comparison-ok {
        color: rgba(255, 255, 255, 0.5);
    }

    & .comparison-mid {
        color: rgba(255, 255, 255, 0.4);
        font-size: 0.9em;
    }

    & .comparison-ng {
        color: rgba(255, 255, 255, 0.2);
    }
}

@media (width <= 767px) {
    .comparison-table-wrapper {
        padding: 1.5rem 1rem;
        border-radius: 12px;
    }

    .comparison-table {
        font-size: 0.8rem;

        & th,
        & td {
            padding: 0.7rem 0.8rem;
        }

        & th:first-child,
        & td:first-child {
            min-width: 120px;
        }
    }
}

/* ==========================================
   フローセクション
   ========================================== */
.flow-section {
    padding: 5rem 2rem;
    background: transparent;
}

.flow-steps {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    margin: 0 auto;
}

.flow-panel {
    max-width: 1100px;
    margin: 2rem auto 0;
    background: rgba(10, 12, 25, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

.flow-step {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    flex: 1;
    background: rgba(5, 8, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
}

.flow-step__number {
    position: absolute;
    top: -0.8rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--accent-color);
    color: #fff;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    display: grid;
    place-items: center;
}

.flow-step__icon {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--accent-color);
    opacity: 0.8;
}

.flow-step__title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.5rem;
}

.flow-step__text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
}

.flow-step__arrow {
    color: rgba(255, 255, 255, 0.15);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    padding: 0 0.8rem;
}

@media (width <= 767px) {
    .flow-steps {
        flex-direction: column;
    }

    .flow-step__arrow {
        padding: 0.6rem 0;
        justify-content: center;
    }

    .flow-step__arrow i {
        transform: rotate(90deg);
    }

    .flow-panel {
        max-width: 600px;
    }
}

/* ==========================================
   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-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;
}

@media (width <= 1023px) {
    .ai-works-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@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;
    }
}

/* ==========================================
   料金プランセクション
   ========================================== */
.plan-section {
    padding: 5rem 2rem;
    background: transparent;
}

.plan-lead {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 1rem;
    line-height: 1.8;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 2rem auto 0;
    align-items: stretch;
}

.plan-card {
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 2rem 1.5rem;
    text-align: center;
    position: relative;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;

    &:hover {
        transform: translateY(-4px);
        border-color: rgba(255, 255, 255, 0.35);
    }
}

.plan-card__capacity {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    margin-bottom: 1rem;
    align-self: center;
}

.plan-card__capacity--open {
    color: #34d399;
    border: 1px solid rgba(52, 211, 153, 0.4);
    background: rgba(52, 211, 153, 0.1);
}

.plan-card__capacity--few {
    color: var(--accent-color);
    border: 1px solid rgba(0, 180, 216, 0.4);
    background: rgba(0, 180, 216, 0.1);
}

.plan-card__capacity--limited {
    color: rgba(250, 204, 21, 0.8);
    border: 1px solid rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.08);
}

.plan-card--recommended {
    border-color: rgba(0, 180, 216, 0.6);
    background: rgba(0, 180, 216, 0.15);

    &:hover {
        border-color: rgba(0, 180, 216, 0.8);
    }
}

.plan-card__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary-color);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
}

.plan-card__header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.plan-card__name {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.plan-card__price {
    font-size: 0.9rem;
    color: #ffffff;
    margin: 0;
}

.plan-card__amount {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
}

.plan-card__unit {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.plan-card__ai-cost {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0.4rem 0 0;
    line-height: 1.4;

    & i {
        margin-right: 0.2rem;
        font-size: 0.7rem;
    }
}

.plan-card__desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
    min-height: 2.6rem; /* 2行分確保 */
}

.plan-card__recommend {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;
    min-height: 2.3rem; /* 2行分確保 */

    & i {
        margin-right: 0.3rem;
    }
}

.plan-card__features {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    text-align: left;
    flex: 1;

    & li {
        font-size: 0.85rem;
        color: #ffffff;
        padding: 0.4rem 0;
        line-height: 1.5;
    }

    & i {
        color: #34d399;
        margin-right: 0.5rem;
        font-size: 0.75rem;
    }
}

.plan-card__btn {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;

    &:hover {
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.4);
    }
}

.plan-card__btn--primary {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #ffffff;

    &:hover {
        background: color-mix(in srgb, var(--secondary-color) 80%, #000);
        border-color: color-mix(in srgb, var(--secondary-color) 80%, #000);
    }
}

.plan-notice {
    margin-top: 2rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    text-align: center;

    & p {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.6;
        margin: 0;

        & + p {
            margin-top: 0.5rem;
        }
    }
}

@media (width <= 1023px) {
    .plan-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (width <= 767px) {
    .plan-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
        gap: 1.2rem;
    }
}

/* ==========================================
   方針パネル
   ========================================== */
.policy-panel {
    background: rgba(255, 255, 255, 0.04);
    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;
}

.policy-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 1rem;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-align: center;
}

.policy-content {
    & p {
        font-size: clamp(1rem, 2vw, 1.1rem);
        color: rgba(255, 255, 255, 0.8);
        line-height: 2;
        margin: 1.5rem 0;
        text-align: center;
    }

    & strong {
        color: #ffffff;
        font-weight: 600;
    }

    & .evidence-card {
        background: rgba(10, 15, 30, 0.7);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 12px;
        padding: 1.2rem 1rem;
        text-align: center;
    }

    & .evidence-card-title {
        font-family: 'Noto Sans JP', sans-serif;
        font-size: 0.85rem;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.5);
        margin-bottom: 0.4rem;
    }

    & .evidence-card-result {
        font-size: clamp(0.95rem, 1.8vw, 1.05rem);
        font-weight: 600;
        color: #ffffff;
        line-height: 1.5;
        margin: 0;
    }

    /* Evidence セクション内テキスト — 行間・マージンを詰める */
    & p.evidence-intro {
        font-size: 0.9rem;
        line-height: 1.7;
        margin: 1rem 0 0.2rem;
    }

    /* 実証環境ノート（脚注） */
    & p.evidence-note {
        font-size: 0.75rem;
        color: rgba(255, 255, 255, 0.35);
        line-height: 1.5;
        margin: 0.2rem 0 0.8rem;
    }

    & .evidence-note i {
        color: rgba(255, 255, 255, 0.25);
        margin-right: 0.15rem;
    }

    /* 結論ボックス内 highlight 下線色 */
    & .evidence-conclusion .highlight-text::after {
        background: #818cf8;
    }

    /* 機密データ注記 */
    & p.evidence-privacy {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.45);
        line-height: 1.6;
        margin: 0;
    }

    & .evidence-privacy i {
        color: rgba(76, 175, 80, 0.6);
        margin-right: 0.3rem;
    }

    & .evidence-conclusion-text {
        display: block;
        font-family: 'Noto Sans JP', sans-serif;
        font-size: clamp(1.2rem, 3vw, 1.7rem);
        font-weight: 800;
        color: rgba(230, 240, 255, 1);
        line-height: 1.8;
        letter-spacing: 0.03em;
        position: relative;
        text-shadow: 0 0 30px rgba(100, 150, 255, 0.2);
    }
}

/* ハイライトテキスト */
.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: 2px;
        background: rgba(255, 255, 255, 0.4);
        transition: width 1.8s cubic-bezier(0.4, 0, 0.2, 1);
    }

    &.active::after {
        width: 100%;
    }
}

/* ==========================================
   ツールカードセクション
   ========================================== */
.tools-section {
    padding: 6rem 2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

/* Tech Stack: 5枚構成 — 上段3+下段2センタリング */
@media (width >= 600px) {
    #tech .tools-grid {
        grid-template-columns: repeat(6, 1fr);
    }
    #tech .tools-grid .tool-card:nth-child(1) { grid-column: 1 / 3; }
    #tech .tools-grid .tool-card:nth-child(2) { grid-column: 3 / 5; }
    #tech .tools-grid .tool-card:nth-child(3) { grid-column: 5 / 7; }
    #tech .tools-grid .tool-card:nth-child(4) { grid-column: 2 / 4; }
    #tech .tools-grid .tool-card:nth-child(5) { grid-column: 4 / 6; }
}

/* Tech Stack: モバイル — 1列 */
@media (width <= 599px) {
    #tech .tools-grid {
        grid-template-columns: 1fr;
    }
}

.tool-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;

    &:hover {
        background: rgba(255, 255, 255, 0.05);
        transform: translateY(-5px);
        border-color: rgba(100, 150, 255, 0.3);
        box-shadow: 0 10px 30px rgba(100, 150, 255, 0.2);

        & .tool-icon {
            color: var(--secondary-color);
            transform: scale(1.1);
        }
    }

    & h3 {
        font-family: 'Orbitron', sans-serif;
        font-size: 1.3rem;
        margin-bottom: 0.5rem;
        color: var(--text-primary);
    }

    & p:not(.tool-label) {
        color: rgba(255, 255, 255, 0.7);
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

.tool-icon {
    font-size: 3rem;
    color: #5080c0;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

/* per-card アイコンカラー: #services（6色ローテーション） */
#services .tool-card:nth-child(1) .tool-icon { color: #a78bfa; }
#services .tool-card:nth-child(2) .tool-icon { color: #22d3ee; }
#services .tool-card:nth-child(3) .tool-icon { color: #f472b6; }
#services .tool-card:nth-child(4) .tool-icon { color: #f59e0b; }
#services .tool-card:nth-child(5) .tool-icon { color: #34d399; }
#services .tool-card:nth-child(6) .tool-icon { color: #60a5fa; }

/* Tech Stack セクション アイコンカラー（5枚構成） */
#tech .tool-card:nth-child(1) .tool-icon { color: #10b981; }  /* ChatGPT=緑 */
#tech .tool-card:nth-child(2) .tool-icon { color: #3b82f6; }  /* Gemini=青 */
#tech .tool-card:nth-child(3) .tool-icon { color: #f97316; }  /* Claude=オレンジ */
#tech .tool-card:nth-child(4) .tool-icon { color: #a78bfa; }  /* 画像生成AI=紫 */
#tech .tool-card:nth-child(5) .tool-icon { color: #22d3ee; }  /* 自律型AI=シアン */

/* per-card ラベルカラー連動 */
#services .tool-card:nth-child(1) .tool-label { background: linear-gradient(135deg, #a78bfa, #c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(2) .tool-label { background: linear-gradient(135deg, #22d3ee, #67e8f9); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(3) .tool-label { background: linear-gradient(135deg, #f472b6, #f9a8d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(4) .tool-label { background: linear-gradient(135deg, #f59e0b, #fde68a); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(5) .tool-label { background: linear-gradient(135deg, #34d399, #6ee7b7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(6) .tool-label { background: linear-gradient(135deg, #60a5fa, #93c5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.tool-label {
    font-size: 0.85rem;
    background: linear-gradient(135deg, #5080c0 0%, #70a0ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.8rem;
}

.section-lead {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.03em;
}

/* ==========================================
   About / Philosophy セクション
   ========================================== */
.about-section {
    background: transparent;
    padding: 5rem 2rem;
}

.philosophy-section {
    background: transparent;
    padding: 5rem 2rem;
}

/* 理念カードグリッド（TOPページと同一パターン） */
.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;
    }

    /* カード別タイトルカラー: パープル / ピンク / シアン */
    &:nth-child(1) .philosophy-card-title { color: #a78bfa; }
    &:nth-child(3) .philosophy-card-title { color: #f472b6; }
    &:nth-child(5) .philosophy-card-title { color: #22d3ee; }
}

.philosophy-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 1.6rem;
    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;
}

/* ==========================================
   CTA セクション
   ========================================== */
.cta-section {
    padding: 8rem 2rem 12rem;
    background: transparent;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1.5rem;
}

.cta-text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.7);
    line-height: 2;
    margin-bottom: 3rem;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.2rem, 2.5vw, 1.5rem);
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #3e5e9b 0%, #ff20ca 100%);
    border: none;
    border-radius: 60px;
    padding: 1.2rem 3.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 25px color-mix(in srgb, var(--secondary-color) 30%, transparent);

    &:hover {
        transform: translateY(-3px) scale(1.03);
        box-shadow: 0 8px 40px color-mix(in srgb, var(--secondary-color) 50%, transparent);
    }

    & i {
        font-size: 1.2em;
    }
}

@media (width <= 767px) {
    .cta-section {
        padding: 5rem 1.5rem;
    }

    .cta-button {
        padding: 1rem 2.5rem;
        font-size: 1.1rem;
    }

    .cta-text br {
        display: none;
    }
}

/* ==========================================
   アニメーション（ページ固有）
   fadeInUp / .fade-in-up は site.css で定義済み
   ========================================== */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ==========================================
   レスポンシブデザイン（ページ固有）
   ナビ・フッター・scroll-top-btn・View Transitions は site.css で定義済み
   ========================================== */
@media (width <= 767px) {
    /* ヒーロー */
    .hero {
        min-height: 80vh;
        padding: 1.5rem;
        padding-top: 80px;
    }

    .hero-service-ruby {
        font-size: clamp(0.95rem, 4.2vw, 1.4rem);
        letter-spacing: 0.03em;
    }

    .division-name {
        font-size: clamp(2.2rem, 8vw, 3.5rem);
    }

    .hero-subtitle {
        margin-bottom: 4rem;
    }

    .hero-tagline {
        font-size: clamp(0.9rem, 4vw, 1.3rem);
    }

    .hero-sub-text {
        font-size: clamp(0.88rem, 3.8vw, 1.1rem);
    }

    /* カードタイトル */
    .tool-card h3 {
        font-size: 1.1rem;
    }

    .tool-card p:not(.tool-label) {
        font-size: 0.88rem;
    }

    .strength-card h3 {
        font-size: 1.15rem;
    }

    /* サポートセクション */
    .policy-content p.support-lead {
        font-size: clamp(0.9rem, 3.8vw, 1.1rem);
    }

    .support-card {
        padding: 1.8rem 1.5rem;
    }

    /* Evidence */
    .evidence-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }

    .policy-content .evidence-card {
        padding: 1rem 0.8rem;
    }

    .policy-content .evidence-conclusion-text {
        font-size: clamp(1.1rem, 4.5vw, 1.5rem);
    }

    /* 理念カード */
    .philosophy-grid-with-connectors {
        flex-direction: column;
        gap: 0;
    }

    .philosophy-connector {
        padding: 1rem 0;
    }

    .philosophy-connector i {
        font-size: 1.8rem;
    }

    .philosophy-card-title {
        font-size: 1.15rem;
    }

    .philosophy-card-desc {
        font-size: 0.9rem;
    }

    /* セクション共通 */
    section {
        padding: 2.5rem 1rem;
    }

    .tools-section {
        padding: 3rem 1rem;
    }

    /* CTA */
    .cta-section {
        padding: 4rem 1.5rem 6rem;
    }

    .cta-heading {
        font-size: clamp(1.4rem, 5.5vw, 2rem);
    }

    .cta-button {
        font-size: clamp(1rem, 4vw, 1.3rem);
        padding: 1rem 2.5rem;
    }
}

@media (width <= 480px) {
    .nav-container {
        padding: 0 1rem;
    }

    .policy-panel {
        padding: 2rem 1.5rem;
    }
}

/* ==========================================
   AI Mix Renewal: 追加スタイル
   （Challenges Section は detail.css に移動）
   ========================================== */

/* Evidence Grid（3パネル復活・テキスト大きめ） */
.evidence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0 0 2rem;
}

@media (width <= 767px) {
    .evidence-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .policy-content .evidence-card {
        padding: 1rem 1.2rem;
    }
}

.evidence-card-icon {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.evidence-card {
    &:nth-child(1) .evidence-card-icon { color: #60a5fa; }
    &:nth-child(2) .evidence-card-icon { color: #34d399; }
    &:nth-child(3) .evidence-card-icon { color: #fb923c; }
}

/* 結論テキスト（主役 — ページ内で最も目立つ要素） */
.evidence-conclusion {
    margin: 2.5rem 0 1.5rem;
    text-align: center;
    padding: 3rem 2.5rem;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    /* 外枠 — ::after の光sweepで描画するため border は消す */
    border: none;
    background: rgba(15, 20, 40, 0.6);

    /* 呼吸するグロー背景 */
    &::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 100%;
        background: radial-gradient(ellipse at center, rgba(100, 140, 220, 0.15), transparent 65%);
        pointer-events: none;
        animation: conclusionBreathe 4s ease-in-out infinite;
    }

    /* 光が枠を走るボーダー（conic-gradient） */
    &::after {
        content: '';
        position: absolute;
        inset: 0;
        border-radius: 16px;
        padding: 1px;
        background: conic-gradient(
            from var(--sweep-angle, 0deg),
            transparent 0%,
            transparent 35%,
            rgba(160, 190, 255, 0.6) 42%,
            rgba(200, 220, 255, 0.9) 45%,
            rgba(160, 190, 255, 0.6) 48%,
            transparent 55%,
            transparent 85%,
            rgba(160, 190, 255, 0.6) 92%,
            rgba(200, 220, 255, 0.9) 95%,
            rgba(160, 190, 255, 0.6) 98%,
            transparent 100%
        );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        mask-composite: exclude;
        pointer-events: none;
        animation: borderSweep 6s linear infinite;
    }
}

@keyframes borderSweep {
    to { --sweep-angle: 360deg; }
}

@property --sweep-angle {
    syntax: '<angle>';
    initial-value: 0deg;
    inherits: false;
}

@keyframes conclusionBreathe {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50%      { opacity: 1;   transform: translate(-50%, -50%) scale(1.05); }
}

/* ==========================================
   FAQ セクション
   ========================================== */
.faq-section {
    background: transparent;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 2rem;
    transition: all 0.3s ease;
    min-width: 0;
    overflow: hidden;

    &:hover {
        border-color: rgba(255, 255, 255, 0.3);
        box-shadow: 0 8px 30px color-mix(in srgb, var(--secondary-color) 10%, transparent);
        transform: translateY(-5px);
    }
}

.faq-question {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: auto-phrase;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    line-height: 1.6;

    & i {
        color: var(--secondary-color);
        font-size: 1.1rem;
        margin-top: 0.2rem;
        flex-shrink: 0;
    }
}

.faq-answer {
    padding-left: 2rem;

    & p {
        font-size: clamp(0.9rem, 1.8vw, 1rem);
        color: rgba(255, 255, 255, 0.8);
        line-height: 1.8;
    }
}

@media (width <= 767px) {
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .faq-answer {
        padding-left: 0;
    }
}

/* 詳細モード切り替え（data-mode）は detail.css に移動 */


/* 技術スタック・導入フローセクション は detail.css に移動 */
