@charset "UTF-8";

/* =========================================
   デモアプリ連動用 最新UI/UX CSS
========================================= */

/* --- トップページ用 デモショーケース --- */
.demo_top_section {
    background: linear-gradient(135deg, #171c61 0%, #0d103b 100%);
    padding: 80px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.demo_top_section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(164, 89, 146, 0.15) 0%, transparent 50%);
    animation: rotateBg 20s linear infinite;
    z-index: 1;
}

@keyframes rotateBg {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.demo_top_section .main_container {
    position: relative;
    z-index: 2;
}

.demo_top_section h3 {
    color: #fff;
    font-family: 'Comfortaa', cursive;
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 5px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.demo_top_section h4 {
    color: #a45992;
    text-align: center;
    font-size: 1.2em;
    margin-bottom: 50px;
    font-weight: bold;
    letter-spacing: 0.1em;
}

.demo-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media screen and (min-width: 768px) {
    .demo-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.demo-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 30px;
    transition: all .4s ease;
    transform-style: preserve-3d;
    cursor: pointer;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.demo-card:hover {
    transform: translateY(-15px) scale(1.03);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(164, 89, 146, 0.5);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.demo-card-tag {
    display: inline-block;
    background: linear-gradient(90deg, #a45992, #171c61);
    color: #fff;
    font-size: 0.8em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 15px;
    font-weight: bold;
    align-self: flex-start;
}

.demo-card h5 {
    color: #fff;
    font-size: 1.4em;
    margin-bottom: 10px;
    font-family: "Sawarabi Gothic", sans-serif;
}

.demo-card p {
    color: #ccc;
    font-size: 0.9em;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.demo-card-btn {
    text-align: center;
    background: #fff;
    color: #171c61;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    transition: all 0.3s;
}

.demo-card:hover .demo-card-btn {
    background: #a45992;
    color: #fff;
}

/* --- サービスページ用 デモ埋め込み（iframeモックアップ） --- */
.interactive-demo-area {
    padding: 60px 0 0 0;
}

.demo-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-bottom: 50px;
    padding: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
}

@media screen and (min-width: 1000px) {
    .demo-row {
        flex-direction: row;
        justify-content: space-between;
    }

    .demo-row:nth-child(even) {
        flex-direction: row-reverse;
    }

    /* 左右交互に配置 */
}

.demo-text-box {
    flex: 1;
    text-align: left;
}

.demo-text-box h5 {
    font-size: 1.8em;
    color: #171c61;
    margin-bottom: 15px;
    border-bottom: 3px solid #a45992;
    padding-bottom: 10px;
    display: inline-block;
}

.demo-text-box p {
    font-size: 1.05em;
    line-height: 1.8;
    color: #444;
    margin-bottom: 20px;
}

.demo-text-box ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.demo-text-box ul li {
    position: relative;
    padding-left: 1.5em;
    margin-bottom: 8px;
    color: #555;
}

.demo-text-box ul li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: #a45992;
    font-weight: bold;
}

.demo-mockup-box {
    flex: 1;
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Macブラウザ風フレーム (PC用デモ) */
.mac-window {
    width: 100%;
    max-width: 800px;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border: 1px solid #ddd;
}

.mac-header {
    background: #f1f1f1;
    height: 30px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    border-bottom: 1px solid #ddd;
}

.mac-btns {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
    position: relative;
    box-shadow: 20px 0 0 #ffbd2e, 40px 0 0 #27c93f;
}

.mac-body {
    height: 450px;
    width: 100%;
    background: #fafafa;
}

.mac-body iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* スマホ風フレーム (モバイル用デモ) */
.sp-window {
    width: 400px;
    height: 650px;
    background: #fff;
    border: 12px solid #111;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), inset 0 0 0 2px #333;
    position: relative;
}

.sp-window::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #111;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.sp-window iframe {
    width: 100%;
    height: 100%;
    border: none;
    background: #fafafa;
}

/* トライボタン */
.try-btn {
    display: inline-block;
    background: #171c61;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 5px 15px rgba(23, 28, 97, 0.3);
    transition: all 0.3s;
}

.try-btn:hover {
    background: #a45992;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(164, 89, 146, 0.4);
}

/* ===== HERO UPGRADE ===== */

.hero-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 2;
}

.hero-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    background:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
    transform: rotateX(60deg) translateY(-20%);
}

@keyframes gridMove {
    from {
        transform: rotateX(60deg) translateY(0);
    }

    to {
        transform: rotateX(60deg) translateY(200px);
    }
}

.hero-glow {
    position: absolute;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.25), transparent 60%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseGlow 6s ease-in-out infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.9;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

@charset "UTF-8";

/* =========================================
   BtoB/高単価案件向け リニューアル用追加CSS
========================================= */

/* ダークテーマ・シックな背景 */
.back_dark {
    width: 100%;
    background: #1f1f2e;
    /* 高級感のあるダークネイビー/グレー */
    text-align: left;
    color: #ffffff;
}

.back_dark h3,
.back_dark h4,
.back_dark p {
    color: #ffffff;
    text-shadow: none !important;
}

/* トップページ ファーストビューテキスト調整 */
.btob-mcopy {
    border: none !important;
    background: rgba(255, 255, 255, 0.9) !important;
    padding: 40px !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.btob-copy-title {
    font-size: 2.2em !important;
    color: #171c61 !important;
    /* 濃紺で信頼感 */
    margin-bottom: 20px !important;
    font-weight: 700 !important;
}

.btob-copy-sub {
    font-size: 1.1em !important;
    color: #333 !important;
    font-weight: 500;
}

.btob-copy-list ul {
    border: none !important;
    border-left: 4px solid #a45992 !important;
    background: #f9f9fc;
    border-radius: 0 8px 8px 0;
}

.btob-copy-list li {
    color: #171c61 !important;
    font-weight: bold;
}

/* ボタンデザインの高級化 */
.btn_btob_primary {
    display: inline-block;
    background: linear-gradient(135deg, #a45992, #7c2275);
    color: #fff;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(164, 89, 146, 0.3);
}

.btn_btob_primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(164, 89, 146, 0.5);
    color: #fff;
}

.btn_btob_secondary {
    display: inline-block;
    background: #fff;
    color: #171c61;
    border: 2px solid #171c61;
    padding: 13px 40px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
}

.btn_btob_secondary:hover {
    background: #171c61;
    color: #fff;
}

/* CTA用 ゴールド/アクセントボタン */
.btn_btob_gold {
    display: inline-block;
    background: linear-gradient(135deg, #d4af37, #aa8623);
    color: #fff;
    padding: 15px 50px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
}

.btn_btob_gold:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.6);
}

.btn_btob_gold_large {
    display: block;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #d4af37, #aa8623);
    color: #fff;
    padding: 20px 30px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.3s;
    text-decoration: none;
}

.btn_btob_gold_large:hover {
    transform: translateY(-3px);
    color: #fff;
}

/* セクションの余白とレイアウト調整 */
.btob-section {
    padding: 80px 0 !important;
}

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

.text-left-pc p {
    text-shadow: none !important;
    color: #333 !important;
}

.text-left-pc h3 {
    color: #171c61 !important;
}

.text-left-pc h4 {
    color: #555 !important;
}

/* CTAコンテナ */
.cta-section {
    background: #171c61 !important;
    /* 紫から信頼の紺へ */
    padding: 80px 0 !important;
    text-align: center;
}

.cta-box {
    background: #ffffff;
    padding: 50px 30px;
    border-radius: 12px;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-text {
    color: #333 !important;
    font-size: 16px !important;
    margin-bottom: 30px !important;
    text-shadow: none !important;
}

.cta-box-lp {
    background: #1f1f2e;
    padding: 50px 30px;
    border-radius: 12px;
    text-align: center;
    color: #fff;
}

.cta-box-lp h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #fff;
}

.cta-box-lp p {
    font-size: 16px;
    margin-bottom: 30px;
}

/* LP用コンテンツスタイル */
.btob-lp-body {
    margin-top: 30px;
}

.btob-waku {
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.lp-catch {
    font-size: 28px;
    color: #171c61;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.4;
    border-bottom: 2px solid #a45992;
    padding-bottom: 10px;
    display: inline-block;
}

.lp-desc {
    font-size: 16px;
    color: #444;
    line-height: 1.8;
    margin-bottom: 40px;
}

.btob-tech-list li {
    font-size: 15px;
    line-height: 2;
    border-bottom: 1px dashed #ddd;
    padding: 8px 0;
}

.btob-cases {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

@media screen and (min-width: 768px) {
    .btob-cases {
        grid-template-columns: 1fr 1fr;
    }
}

.btob-case-item {
    background: #f9f9f9;
    border-left: 5px solid #171c61;
    padding: 20px;
    border-radius: 4px;
}

.btob-case-item h5 {
    font-size: 16px;
    color: #171c61;
    margin: 0 0 10px 0;
}

.btob-case-item p {
    font-size: 14px;
    color: #555;
    margin: 0;
}

/* =========================================
   Enhanced acquisition-first UI (2026-02)
========================================= */

:root {
    --btob-navy: #0b1220;
    --btob-ink: #0a0f1a;
    --btob-gold: #c9a227;
    --btob-gold2: #f2d37a;
    --btob-slate: #55637a;
    --btob-card: #0f1a2d;
    --btob-line: rgba(255, 255, 255, .14);
}

/* Hero panel overlay on animated canvas */
.btob-hero {
    position: relative;
    z-index: 2;
    padding: 6.5rem 0 2.5rem;
}

.btob-mcopy {
    max-width: 980px;
    margin: 0 auto;
    padding: 1.75rem 1.75rem 1.25rem;
    background: rgba(255, 255, 255, .86);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(10, 15, 26, .08);
    border-radius: 18px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .16);
}

.btob-eyebrow {
    margin: 0 0 .6rem;
    font-weight: 700;
    letter-spacing: .08em;
    color: #24314a;
    font-size: .9rem;
}

.btob-title {
    margin: 0 0 .8rem;
    font-size: 2.1rem;
    line-height: 1.2;
    color: #0a0f1a;
}

.btob-sub {
    margin: 0 0 1.1rem;
    color: #1a2740;
    line-height: 1.85;
    font-size: 1.02rem;
}

.btob-cta {
    display: flex;
    gap: .8rem;
    flex-wrap: wrap;
    margin: 1rem 0 1rem;
}

.btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .95rem 1.15rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--btob-gold), var(--btob-gold2));
    color: #0a0f1a;
    font-weight: 800;
    border: 0;
    box-shadow: 0 10px 22px rgba(201, 162, 39, .25);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
    text-decoration: none;
}

.btn-gold:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
    box-shadow: 0 14px 28px rgba(201, 162, 39, .30);
}

.btn-gold--sm {
    padding: .75rem 1rem;
    font-size: .95rem;
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .95rem 1.15rem;
    border-radius: 999px;
    background: rgba(10, 15, 26, .06);
    border: 1px solid rgba(10, 15, 26, .10);
    color: #0a0f1a;
    font-weight: 800;
    text-decoration: none;
    transition: transform .18s ease, background .18s ease;
}

.btn-ghost:hover {
    transform: translateY(-1px);
    background: rgba(10, 15, 26, .08);
}

.btob-proof {
    list-style: none;
    padding: 0;
    margin: .8rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: .6rem .8rem;
}

.btob-proof li {
    display: flex;
    gap: .5rem;
    align-items: center;
    font-size: .92rem;
    color: #1a2740;
    background: rgba(255, 255, 255, .55);
    border: 1px solid rgba(10, 15, 26, .08);
    padding: .55rem .7rem;
    border-radius: 999px;
}

.btob-proof li span {
    font-weight: 900;
    color: #0a0f1a;
}

.btob-mini {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px dashed rgba(10, 15, 26, .18);
}

.btob-mini-title {
    margin: 0 0 .25rem;
    font-weight: 900;
    color: #0a0f1a;
}

.btob-mini-text {
    margin: 0;
    color: #1a2740;
    line-height: 1.75;
}

/* Offers section */
.back_navy {
    background: var(--btob-navy);
    color: #fff;
}

.btob-offers h3,
.btob-offers h4 {
    color: #fff;
}

.btob-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.1rem;
    margin-top: 1.2rem;
}

.btob-card {
    display: block;
    border-radius: 18px;
    padding: 1.25rem 1.2rem;
    background: rgba(255, 255, 255, .06);
    border: 1px solid var(--btob-line);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 14px 40px rgba(0, 0, 0, .18);
    transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btob-card:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, .08);
    border-color: rgba(242, 211, 122, .35);
}

.btob-card--plain {
    background: rgba(255, 255, 255, .04);
}

.btob-card-eyebrow {
    margin: 0 0 .35rem;
    color: rgba(255, 255, 255, .78);
    font-weight: 800;
    letter-spacing: .06em;
    font-size: .82rem;
}

.btob-card h5 {
    margin: 0 0 .55rem;
    font-size: 1.25rem;
    line-height: 1.35;
}

.btob-card p {
    margin: 0 0 .8rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.75;
}

.btob-card ul {
    margin: 0 0 .8rem;
    padding-left: 1.1rem;
    color: rgba(255, 255, 255, .86);
}

.btob-card-cta {
    display: inline-block;
    font-weight: 900;
    color: var(--btob-gold2);
}

/* AI-friendly section */
.btob-ai-lead {
    margin-top: .6rem;
    line-height: 1.9;
    color: #1a2740;
}

.btob-ai-box {
    margin-top: 1.1rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.btob-ai-col {
    border: 1px solid rgba(10, 15, 26, .10);
    border-radius: 18px;
    padding: 1.1rem 1.1rem .9rem;
    background: rgba(255, 255, 255, .65);
}

.btob-ai-col h5 {
    margin: 0 0 .5rem;
    color: #0a0f1a;
}

.btob-ai-col ul {
    margin: 0;
    padding-left: 1.1rem;
    color: #1a2740;
    line-height: 1.85;
}

/* Responsive */
@media (max-width: 980px) {
    .btob-grid {
        grid-template-columns: 1fr;
    }

    .btob-title {
        font-size: 1.75rem;
    }

    .btob-hero {
        padding: 5.2rem 0 2.2rem;
    }

    .btob-ai-box {
        grid-template-columns: 1fr;
    }
}


/* Sticky CTA */
.sticky-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 14px;
    z-index: 9999;
    pointer-events: none;
}

.sticky-cta__inner {
    pointer-events: auto;
    max-width: 1060px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: .9rem 1rem;
    border-radius: 16px;
    background: rgba(11, 18, 32, .92);
    border: 1px solid rgba(242, 211, 122, .22);
    box-shadow: 0 18px 50px rgba(0, 0, 0, .28);
    backdrop-filter: blur(10px);
}

.sticky-cta__title {
    margin: 0;
    color: #fff;
    font-weight: 900;
}

.sticky-cta__desc {
    margin: .2rem 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: .92rem;
    line-height: 1.4;
}

.sticky-cta__btns {
    display: flex;
    gap: .6rem;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 780px) {
    .sticky-cta__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .sticky-cta__btns a {
        width: 100%;
    }
}

/* === Acquisition Booster UI === */
/* Scroll progress */
.ai-scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transform: translateZ(0);
}

.ai-scroll-progress__fill {
    height: 100%;
    width: 100%;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, rgba(255, 215, 130, 0.0), rgba(255, 215, 130, 0.9), rgba(190, 120, 255, 0.9), rgba(90, 200, 255, 0.9));
}

/* Hero tilt + spotlight */
.ai-tilt {
    position: relative;
    transform-style: preserve-3d;
    transition: transform 500ms ease;
}

@media (hover:hover) {
    .ai-tilt {
        transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    }

    .ai-tilt::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: inherit;
        pointer-events: none;
        background:
            radial-gradient(400px 260px at var(--mx, 50%) var(--my, 50%),
                rgba(255, 255, 255, 0.22),
                rgba(255, 255, 255, 0.08) 40%,
                rgba(0, 0, 0, 0.0) 70%);
        mix-blend-mode: screen;
        filter: blur(0.2px);
    }

    .ai-tilt::after {
        content: "";
        position: absolute;
        inset: -1px;
        border-radius: inherit;
        pointer-events: none;
        box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
        opacity: 0.9;
    }
}

/* Floating CTA */
.ai-float-cta {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(18, 18, 28, 0.82), rgba(18, 18, 28, 0.55));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transform: translateZ(0);
    overflow: hidden;
}

.ai-float-cta__icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: radial-gradient(circle at 30% 30%, rgba(255, 215, 130, 0.95), rgba(190, 120, 255, 0.75));
    color: #111;
    font-weight: 800;
}

.ai-float-cta__text {
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    font-size: 14px;
}

.ai-float-cta::before {
    content: "";
    position: absolute;
    inset: -60% -30%;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.0), rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.0));
    transform: rotate(12deg) translateX(-30%);
    animation: aiShimmer 3.2s infinite;
}

@keyframes aiShimmer {
    0% {
        transform: rotate(12deg) translateX(-45%);
    }

    60% {
        transform: rotate(12deg) translateX(45%);
    }

    100% {
        transform: rotate(12deg) translateX(45%);
    }
}

.ai-float-cta:hover {
    transform: translateY(-2px);
}

.ai-float-cta.is-attention {
    animation: aiPulse 1.2s ease;
}

@keyframes aiPulse {
    0% {
        transform: translateY(0) scale(1);
    }

    35% {
        transform: translateY(-2px) scale(1.03);
    }

    100% {
        transform: translateY(0) scale(1);
    }
}

/* Modal */
.ai-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.ai-modal.is-open {
    display: block;
}

.ai-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.62);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-modal__panel {
    position: relative;
    width: min(720px, calc(100% - 28px));
    margin: 10vh auto 0;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: linear-gradient(180deg, rgba(18, 18, 28, 0.92), rgba(10, 10, 16, 0.86));
    box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.ai-modal__panel::before {
    content: "";
    position: absolute;
    inset: -2px;
    background: radial-gradient(800px 380px at 30% 0%, rgba(255, 215, 130, 0.24), rgba(190, 120, 255, 0.20), rgba(90, 200, 255, 0.12), rgba(0, 0, 0, 0));
    pointer-events: none;
}

.ai-modal__x {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.ai-modal__x:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ai-brief {
    position: relative;
    padding: 22px 20px 18px;
    z-index: 1;
}

.ai-brief__title {
    margin: 4px 0 6px;
    font-size: 18px;
    letter-spacing: 0.02em;
    color: #fff;
}

.ai-brief__sub {
    margin: 0 0 14px;
    opacity: 0.82;
    font-size: 13px;
    line-height: 1.55;
    color: #fff;
}

.ai-brief__row {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 10px;
    align-items: start;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-brief__row:first-of-type {
    border-top: none;
}

.ai-brief__label {
    font-size: 13px;
    opacity: 0.85;
    padding-top: 9px;
    color: #fff;
}

.ai-brief__input,
.ai-brief__textarea {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    padding: 10px 12px;
    outline: none;
}

.ai-brief__textarea {
    resize: vertical;
    min-height: 88px;
}

.ai-brief__input:focus,
.ai-brief__textarea:focus {
    border-color: rgba(255, 215, 130, 0.55);
    box-shadow: 0 0 0 3px rgba(255, 215, 130, 0.14);
}

.ai-brief__actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
}

.ai-btn {
    border-radius: 999px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

.ai-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.ai-btn--primary {
    border-color: rgba(255, 215, 130, 0.42);
    background: linear-gradient(135deg, rgba(255, 215, 130, 0.92), rgba(190, 120, 255, 0.78));
    color: #111;
}

.ai-btn--ghost {
    opacity: 0.9;
}

.ai-brief__output {
    margin-top: 12px;
    padding: 12px 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
}

.ai-brief__outputTitle {
    margin: 0 0 8px;
    font-size: 13px;
    opacity: 0.88;
}

.ai-brief__pre {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 12px;
    line-height: 1.55;
    opacity: 0.92;
}

.ai-brief__outActions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 10px;
}

.ai-btn--copy,
.ai-btn--mail {
    min-width: 110px;
    text-align: center;
}

/* Mobile */
@media (max-width: 640px) {
    .ai-brief__row {
        grid-template-columns: 1fr;
    }

    .ai-brief__label {
        padding-top: 0;
    }

    .ai-modal__panel {
        margin-top: 6vh;
    }

    .ai-float-cta {
        right: 12px;
        bottom: 12px;
        padding: 12px 14px;
    }
}

/* Motion reduction */
@media (prefers-reduced-motion: reduce) {
    .ai-float-cta::before {
        animation: none;
    }

    .ai-float-cta.is-attention {
        animation: none;
    }

    .ai-tilt {
        transition: none;
    }
}

/* ===== AI Brief Input Fix ===== */

.ai-brief__input,
.ai-brief__input select,
.ai-brief__input option {
    background-color: #ffffff !important;
    color: #111111 !important;
    border: 1px solid #171c61;
}

/* プレースホルダー */
.ai-brief__input::placeholder {
    color: #888888 !important;
}

/* フォーカス時 */
.ai-brief__input:focus,
.ai-brief__input select:focus {
    background-color: #ffffff !important;
    color: #111111 !important;
    border-color: #171c61 !important;
    box-shadow: 0 0 0 3px rgba(23, 28, 97, 0.15);
}

/* optionの文字色強制 */
.ai-brief__input option {
    background: #ffffff !important;
    color: #111111 !important;
}

/* =========================================
   Mobile Delight Enhancements (add-on)
   Paste at the END of custom-demo.css
========================================= */

/* JSが有効な時だけアニメ強化（既存を壊さない） */
html.js-enabled .animation {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.995);
    filter: saturate(0.95);
    transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .7s ease;
    will-change: opacity, transform, filter;
}

html.js-enabled .animation.is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
}

/* スマホで“気持ちいい”微振動系（やりすぎない） */
@media (max-width: 768px) {

    /* デモカード：ふわっと浮遊 */
    .demo-card {
        position: relative;
        overflow: hidden;
        transform: translateZ(0);
    }

    .demo-card::after {
        content: "";
        position: absolute;
        inset: -40%;
        background: radial-gradient(circle, rgba(242, 211, 122, .22) 0%, transparent 55%);
        transform: translate3d(-20%, -20%, 0);
        opacity: 0;
        transition: opacity .35s ease;
        pointer-events: none;
    }

    .demo-card.is-pressed::after {
        opacity: 1;
    }

    /* “光のスイープ” */
    .demo-card::before {
        content: "";
        position: absolute;
        top: -30%;
        left: -60%;
        width: 60%;
        height: 160%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
        transform: rotate(18deg);
        opacity: 0;
        pointer-events: none;
    }

    .demo-card.is-inview::before {
        animation: cardSweep 1.2s ease .15s 1;
    }

    @keyframes cardSweep {
        0% {
            transform: translateX(0) rotate(18deg);
            opacity: 0;
        }

        15% {
            opacity: .85;
        }

        100% {
            transform: translateX(320%) rotate(18deg);
            opacity: 0;
        }
    }

    /* CTAボタン：押した感＋軽い発光 */
    .btn_navy_sizeM,
    .btn_navy_sizeM--white,
    .btn_btob_primary,
    .btn_btob_gold,
    .btn_btob_gold_large {
        position: relative;
        transform: translateZ(0);
        transition: transform .18s ease, filter .18s ease;
        will-change: transform, filter;
    }

    .btn_navy_sizeM.is-tap,
    .btn_navy_sizeM--white.is-tap,
    .btn_btob_primary.is-tap,
    .btn_btob_gold.is-tap,
    .btn_btob_gold_large.is-tap {
        transform: scale(0.98);
        filter: brightness(1.08);
    }

    /* ヒーローoverlayをスマホで少しだけ強化（既存canvasの上） */
    .hero-overlay .hero-glow {
        filter: blur(0px);
        opacity: .55;
    }
}

/* 画面が動きすぎるのが嫌な人向け */
@media (prefers-reduced-motion: reduce) {
    html.js-enabled .animation {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }

    .demo-card::before,
    .demo-card::after {
        animation: none !important;
        transition: none !important;
    }
}

/* 既存サイトは .animation.active を使っているため、両方OKにする */
html.js-enabled .animation.active,
html.js-enabled .animation.is-inview {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: saturate(1);
}

/* ===== Modal scroll fix (mobile) ===== */

/* モーダル背景(オーバーレイ)自体をスクロール可能に */
.ai-brief-modal,
.ai-brief-overlay,
.ai-brief__modal,
.modal-overlay {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    /* iOSで気持ちよく */
}

/* モーダルのパネル(中身)の高さ制限＋中身スクロール */
.ai-brief-modal__panel,
.ai-brief__panel,
.ai-brief-modal .panel,
.modal-panel {
    max-height: calc(100dvh - 32px);
    overflow: hidden;
    /* 外側は固定 */
}

/* 文章が長いエリア（要件メモ）をスクロール可能に */
.ai-brief__output,
.ai-brief__memo,
.ai-brief__result,
textarea.ai-brief__output {
    max-height: 45dvh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    word-break: break-word;
}

/* スマホ時は余白を少し詰めて、表示領域を増やす */
@media (max-width: 768px) {

    .ai-brief-modal__panel,
    .ai-brief__panel,
    .ai-brief-modal .panel,
    .modal-panel {
        max-height: calc(100dvh - 16px);
    }

    .ai-brief__output,
    .ai-brief__memo,
    .ai-brief__result {
        max-height: 55dvh;
    }
}

/* ===== Modal: closed state must NOT block scroll ===== */
.ai-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    /* ←閉じてる時は存在しない */
    pointer-events: none;
}

.ai-modal.is-open {
    display: block;
    pointer-events: auto;
}

.ai-modal__backdrop {
    position: absolute;
    inset: 0;
}

.ai-modal__panel {
    position: relative;
    width: min(920px, 92vw);
    margin: 6vh auto;
    max-height: 88vh;
    /* ←モーダル自体をスクロール可能に */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

/* 背景スクロールロック（開いてる時だけ） */
html.ai-modal-open,
html.ai-modal-open body {
    overflow: hidden;
}

.ai-brief__input,
.ai-brief__textarea {
    color: #171c61;
    /* 文字色 */
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(164, 89, 146, .55);
}

.ai-brief__input:focus,
.ai-brief__textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(164, 89, 146, .25);
    border-color: rgba(164, 89, 146, .9);
}