/* ==========================================
   AI Team On Demand — ページ固有スタイル
   共通スタイルは /css/site.css を参照
   ========================================== */

/* ==========================================
   カスタムプロパティ
   ========================================== */
:root {
    --primary-color: #3e5e9b;
    --secondary-color: #ff20ca;
    --accent-color: #00b4d8;
    --accent-gradient: linear-gradient(135deg, #3e5e9b, #00b4d8, #ff20ca);
}

/* ==========================================
   ヒーローセクション
   ========================================== */
.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;
}

.hero-sub-text--clarify {
    font-size: clamp(0.85rem, 1.6vw, 1rem);
    color: rgba(255, 255, 255, 0.4);
    margin-top: 0.3rem;
}

.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;
    }
}

/* ==========================================
   課題セクション（Problem）— 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;

    &:nth-child(1) { --card-color: #00b4d8; } /* シアン */
    &:nth-child(2) { --card-color: #3e5e9b; } /* ブルー */
    &: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;
    }
}

/* ==========================================
   ソリューションセクション
   ========================================== */
.solution-section {
    padding: 5rem 2rem;
    background: transparent;
}

/* 外側パネル（policy-panel クラスで glassmorphism 適用済み） */
.support-panel {
    max-width: 900px;
    margin: 2rem auto 0;
}

/* リードテキスト（.policy-content p の上書きが必要） */
.policy-content p.support-lead {
    text-align: center;
    font-size: clamp(1rem, 2.2vw, 1.2rem);
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 2rem;
    line-height: 1.8;
}

/* カード2枚 + 中央×マーク のレイアウト */
.support-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
}

/* 各カード（パネル内パネル — 暗い背景で引き締め） */
.support-card {
    flex: 1;
    max-width: 380px;
    background: rgba(10, 15, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    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;
        }
    }

    &:first-child .support-card-icon {
        background: color-mix(in srgb, var(--primary-color) 20%, transparent);
        color: rgba(111, 163, 239, 0.9);
    }

    &:last-child .support-card-icon {
        background: rgba(0, 180, 216, 0.15);
        color: rgba(72, 202, 228, 0.9);
    }

    &:first-child .support-card-list li::before {
        color: rgba(111, 163, 239, 0.6);
    }

    &:last-child .support-card-list li::before {
        color: rgba(72, 202, 228, 0.6);
    }
}

/* アイコン — 大きく、色付き、背景円あり */
.support-card-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 1.8rem;
}

/* カードタイトル — h3レベル */
.support-card-title {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 1.2rem;
}

/* リスト */
.support-card-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;

    & li {
        padding: 0.5rem 0;
        padding-left: 1.5rem;
        position: relative;
        font-size: clamp(0.88rem, 1.8vw, 0.95rem);
        color: rgba(255, 255, 255, 0.7);
        line-height: 1.7;

        &::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            font-size: 0.75rem;
            top: 0.65rem;
        }
    }
}

/* 中央の × マーク（掛け算 — 大きく主張） */
.support-multiply {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.2rem;
    font-size: 2.4rem;
    color: rgba(255, 255, 255, 0.7);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

/* ソリューション結論テキスト */
.solution-conclusion {
    text-align: center;
    margin-top: 2.5rem;
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 2;

    & strong {
        color: #ffffff;
        font-weight: 600;
    }
}

@media (width <= 767px) {
    .support-cards {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }
    .support-card {
        max-width: 100%;
        width: 100%;
    }
    .support-multiply {
        padding: 1rem 0;
        font-size: 2rem;
    }
}

/* ==========================================
   比較テーブルセクション
   ========================================== */
.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:last-child {
        font-weight: inherit;
    }

    /* セル内テキスト */
    & 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);
    }

    /* 補足テキスト */
    & .comparison-note {
        font-size: 0.8em;
        color: rgba(255, 255, 255, 0.4);
        margin-left: 0.3em;
    }
}

/* ============================================ */
/* Flow Section: ご利用の流れ                    */
/* ============================================ */
.flow-section {
    padding: var(--section-padding);
    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;
    }
}


@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;
        }
    }
}

/* ==========================================
   メリットカード（比較セクション内統合）
   ========================================== */
.comparison-benefits-heading {
    font-family: 'Noto Sans JP', sans-serif;
    font-size: clamp(1.3rem, 3vw, 1.6rem);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 0.5rem;
}

/* メリットセクション — strength-card オーバーライド（--card-color 駆動） */
.comparison-section .strength-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.comparison-section .strength-card {
    min-width: 0;

    &:nth-child(1) { --card-color: #00b4d8; } /* シアン */
    &:nth-child(2) { --card-color: #3e5e9b; } /* ブルー */
    &:nth-child(3) { --card-color: #34d399; } /* グリーン */
}

@media (width <= 1023px) {
    .comparison-section .strength-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (width <= 767px) {
    .comparison-section .strength-grid {
        grid-template-columns: 1fr;
    }
    .comparison-section .strength-card {
        padding: 1.8rem;
    }
}

/* ==========================================
   ツールカードセクション（サービスメニュー）
   ========================================== */
.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;
}

.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(0, 180, 216, 0.3);
        box-shadow: 0 10px 30px rgba(0, 180, 216, 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: #00b4d8; }
#services .tool-card:nth-child(2) .tool-icon { color: #3e5e9b; }
#services .tool-card:nth-child(3) .tool-icon { color: #48cae4; }
#services .tool-card:nth-child(4) .tool-icon { color: #60a5fa; }
#services .tool-card:nth-child(5) .tool-icon { color: #34d399; }
#services .tool-card:nth-child(6) .tool-icon { color: #a78bfa; }

/* per-card ラベルカラー連動 */
#services .tool-card:nth-child(1) .tool-label { background: linear-gradient(135deg, #00b4d8, #48cae4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(2) .tool-label { background: linear-gradient(135deg, #3e5e9b, #6fa3ef); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(3) .tool-label { background: linear-gradient(135deg, #48cae4, #90e0ef); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
#services .tool-card:nth-child(4) .tool-label { background: linear-gradient(135deg, #60a5fa, #93c5fd); -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, #a78bfa, #c4b5fd); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.tool-label {
    font-size: 0.85rem;
    background: linear-gradient(135deg, #00b4d8 0%, #48cae4 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;
}

/* ==========================================
   制作事例セクション（Works）
   ========================================== */
.philosophy-section {
    background: transparent;
    padding: 5rem 2rem;
}

.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-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: #00b4d8; }
.ai-works-wide:nth-child(2) .ai-works-wide__icon { color: #3e5e9b; }
.ai-works-wide:nth-child(3) .ai-works-wide__icon { color: #48cae4; }
.ai-works-wide:nth-child(4) .ai-works-wide__icon { color: #34d399; }

.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;
    }
}

/* ==========================================
   方針パネル
   ========================================== */
.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;
    }
}

/* ハイライトテキスト */
.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%;
    }
}

/* ==========================================
   料金プランセクション
   ========================================== */
.plan-section {
    padding: 5rem 2rem;
    background: transparent;
}

/* 契約枠制限表示 */
.plan-capacity-notice {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;

    & i {
        color: var(--accent-color);
        margin-right: 0.4em;
    }
}

.plan-capacity {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.plan-capacity__slot {
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;

    & i { margin-right: 0.4em; }
}

.plan-capacity__slot--filled {
    background: rgba(255, 32, 202, 0.15);
    border: 1px solid rgba(255, 32, 202, 0.4);
    color: rgba(255, 32, 202, 0.8);
}

.plan-capacity__slot--open {
    background: rgba(52, 211, 153, 0.1);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: rgba(52, 211, 153, 0.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: 'Orbitron', 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__price--sub {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
}

.plan-card__amount--sub {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.85);
}

.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;
}

.plan-card__recommend {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 1.5rem;

    & 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;
    }
}

@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;
    }
}

/* ==========================================
   FAQ セクション
   ========================================== */
.faq-section {
    padding: 5rem 2rem;
    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(--accent-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(--accent-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;
    }
}

/* ==========================================
   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%, #00b4d8 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;
    }

    /* セクション共通 */
    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;
    }
}
