:root {
    --primary-color: #ffb6b9; /* パステルピンク */
    --secondary-color: #b5ead7; /* パステルミント */
    --accent-color: #c7ceea; /* パステルラベンダー */
    --neutral-color: #f7f7fa; /* 明るいグレー */
    --text-main: #fff;
    --text-sub: #aaa;
    --card-bg: #fff;
    --card-shadow: 0 4px 24px 0 rgba(200, 200, 220, 0.18);
    --border-radius: 5px;
}

/* HubSpotフォームのカスタマイズ */
.hs-form {
    background-color: rgba(255, 255, 255, 0.25) !important;
    padding: 2rem !important;
    border-radius: 15px !important;
    max-width: 600px !important;
    margin: 0 auto !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2) !important;
}

.hs-form label {
    color: #000 !important;
    font-weight: 600 !important;
    margin-bottom: 0.5rem !important;
    font-size: 1rem !important;
}

.hs-form input, .hs-form select, .hs-form textarea {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border: none !important;
    border-radius: 5px !important;
    color: #000 !important;
    padding: 1rem !important;
    width: 100% !important;
    margin-bottom: 1.5rem !important;
    font-weight: 500 !important;
}

.hs-form input::placeholder, .hs-form textarea::placeholder {
    color: rgba(0, 0, 0, 0.6) !important;
    font-weight: 400 !important;
}

.hs-form .hs-button {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color)) !important;
    padding: 0.8rem 2rem !important;
    border-radius: 30px !important;
    color: white !important;
    font-weight: 600 !important;
    border: none !important;
    cursor: pointer !important;
    transition: 0.3s !important;
    width: 100% !important;
}

.hs-form .hs-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2) !important;
}

.hs-form .hs-error-msg {
    color: #ff6b6b !important;
    margin-top: 0.5rem !important;
}

.hs-form .legal-consent-container {
    color: #000 !important;
    font-size: 0.9rem !important;
}

.hs-form .legal-consent-container a {
    color: var(--secondary-color) !important;
}

/* ベータバッジ */
.beta-badge {
    display: inline-block;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 0.2rem 0.6rem;
    border-radius: 15px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.5rem;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

/* Mobile-specific optimizations and animations */
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(0); opacity: 1; }
    to { transform: translateY(-100%); opacity: 0; }
}

@keyframes shake {
    0%, 100% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(-2deg); }
    75% { transform: translate(-50%, -50%) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

/* Enhanced mobile optimizations */
@media (max-width: 768px) {
    /* Reduce GPU acceleration usage on mobile */
    .demo-slide, .slide-item {
        transform: none !important;
        will-change: auto !important;
    }
    
    /* Optimize iframe rendering */
    .demo-iframe {
        image-rendering: optimizeSpeed !important;
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: optimize-contrast !important;
        transform: translateZ(0); /* Force hardware acceleration only when needed */
    }
    
    /* Battery-friendly animations */
    .demo-iframe.loading::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 50px;
        height: 50px;
        margin: -25px 0 0 -25px;
        border: 3px solid rgba(255, 255, 255, 0.3);
        border-top: 3px solid var(--secondary-color);
        border-radius: 50%;
        animation: spin 1s linear infinite;
    }
    
    @keyframes spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }
    
    /* Reduce shadow complexity on mobile */
    .demo-slider-container {
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
    }
    
    /* Simplified borders */
    .feature-card, .card {
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Touch-friendly controls */
    .slide-indicator {
        width: 16px !important;
        height: 16px !important;
        margin: 0 5px !important;
    }
    
    /* Mobile swipe hint */
    .demo-slider-container::before {
        content: 'スワイプで切替';
        position: absolute;
        bottom: 100px;
        left: 50%;
        transform: translateX(-50%);
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        font-size: 0.8rem;
        z-index: 5;
        opacity: 0;
        animation: fadeInOut 3s ease-in-out 2s;
    }
    
    @keyframes fadeInOut {
        0%, 100% { opacity: 0; }
        50% { opacity: 1; }
    }
}

/* Low-memory device optimizations */
@media (max-width: 768px) and (max-device-memory: 2GB) {
    /* Further reduce visual complexity */
    .demo-slider-container {
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    }
    
    /* Disable non-essential animations */
    * {
        animation-duration: 0.1s !important;
        transition-duration: 0.1s !important;
    }
    
    /* Reduce background complexity */
    body {
        background: #1e2130 !important;
    }
}

/* Accessibility enhancements */
.sr-only {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Reduced motion preferences */
.reduced-motion * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
}

.reduced-motion .demo-iframe.loading::after {
    animation: none !important;
}

/* Screen reader optimizations */
.screen-reader-active .demo-slider-container {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

.screen-reader-active .slide-indicator:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .demo-slider-container {
        border: 2px solid currentColor;
    }
    
    .slide-indicator {
        border: 2px solid currentColor !important;
    }
    
    .demo-title {
        background: black !important;
        color: white !important;
        border: 1px solid white !important;
    }
}

/* Very small screens (phones in portrait) */
@media (max-width: 480px) {
    #demo-slider-container {
        height: 65vh !important;
        margin: 0 auto !important;
        width: 100% !important;
        border-radius: 0 !important;
    }
    
    .demo-title {
        font-size: 0.9rem !important;
        padding: 8px 16px !important;
    }
    
    .slide-indicator {
        width: 12px !important;
        height: 12px !important;
    }
}

/* 言語切り替えボタン */
.lang-switch-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ニュースバナー */
.news-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 5%;
    text-align: center;
    color: white;
    font-weight: 600;
    animation: slideDown 0.5s ease;
    margin-top: 60px; /* ヘッダーの高さ分 */
}

@keyframes slideDown {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.news-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.news-cta {
    background: white;
    color: var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.news-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ヘッダーアクション */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* CTAボタンスタイル */
.cta-button.primary {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 182, 185, 0.3);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 182, 185, 0.4);
}

.cta-button.large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    border-radius: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Quicksand', 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--neutral-color);
    color: var(--text-main);
    overflow-x: hidden;
    font-family: 'Quicksand', 'Montserrat', sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

header {
    top: 0;
    left: 0;
    right: 0;
    padding: 0.7rem 5% 0.7rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    z-index: 1000;
    background: linear-gradient(90deg, #fff 80%, #ffe0ec 100%);
    box-shadow: 0 2px 16px rgba(200,200,220,0.10);
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.3s, padding 0.3s;
}

.logo {
    display: inline-block;
    position: relative;
}

.logo img {
    height: 60px;
    vertical-align: middle;
    margin-right: 0.5em;
}

.service-tagline {
    display: inline-block;
    margin-left: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    vertical-align: middle;
    letter-spacing: 0.05em;
}

.beta-badge {
    position: absolute;
    top: 5px;
    right: -35px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    letter-spacing: 0.05em;
    transform: rotate(-5deg);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lang-switch-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid var(--primary-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    color: #333;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lang-switch-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.news-banner-top {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: relative;
    z-index: 10;
    margin-top: 0;
    margin-bottom: 0;
}

.news-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}

.news-text {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.news-cta {
    background: white;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.news-cta:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button.primary {
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    color: white;
    font-weight: bold;
}

.cta-button.large {
    padding: 1rem 3rem;
    font-size: 1.2rem;
}

nav ul {
    display: flex;
    list-style: none;
}

nav ul li {
    margin: 0 1.2rem;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 3px;
    transition: color 0.3s;
}

nav ul li a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transition: width 0.4s;
    position: absolute;
    left: 0; bottom: 0;
}

nav ul li a:hover {
    color: var(--primary-color);
}
nav ul li a:hover::after {
    width: 100%;
}

.cta-button {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 2.2rem;
    border-radius: 30px;
    color: #333;
    text-decoration: none;
    font-weight: 700;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    font-size: 1.08rem;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 18px #b5ead755;
    border: none;
    cursor: pointer;
    transition: background 0.3s, color 0.3s, transform 0.2s;
}
.cta-button:hover {
    background: linear-gradient(90deg, var(--accent-color), var(--primary-color));
    color: #fff;
    transform: translateY(-2px) scale(1.04);
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #fff 60%, var(--accent-color) 100%);
}

.hero-content {
    width: 50%;
    z-index: 2;
}

.hero h1 {
    font-size: 3.2rem;
    margin-bottom: 1.5rem;
    line-height: 1.15;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    letter-spacing: 0.04em;
}

.hero p {
    font-size: 1.18rem;
    margin-bottom: 2.2rem;
    line-height: 1.7;
    color: var(--text-sub);
    font-weight: 400;
}

.hero-image {
    position: absolute;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('../img/we2.jpg') center/cover;
    clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
    opacity: 0.92;
    filter: brightness(1.05) blur(0.5px);
}

.features {
    padding: 8rem 5%;
    background-color: var(--neutral-color);
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #eee;
    background: none;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-title p {
    color: var(--text-sub);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.section-title2 {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title2 h2 {
    font-size: 2.3rem;
    margin-bottom: 1rem;
    color: #444;
    background: none;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.section-title2 p {
    color: var(--text-sub);
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.08rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    border: 1.5px solid #f0f0f0;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    text-align: left;
    position: relative;
}
.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px #b5ead755;
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 2.3rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    color: #ff6f91;
    font-family: 'Montserrat', 'Quicksand', sans-serif;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-sub);
    line-height: 1.7;
    font-size: 1.01rem;
}

footer {
    background: #fff;
    padding: 3rem 5%;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content .logo img {
    height: 50px;
    opacity: 0.9;
}

.footer-content p a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}
.footer-content p a:hover {
    color: var(--accent-color);
}

.copyright {
    color: var(--text-sub);
    font-size: 0.92rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .features {
        padding: 5rem 5%;
    }
    
    header {
        padding: 1rem 5%;
    }
    
    nav ul {
        display: none;
    }
    
    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    /* Header specific mobile adjustments */
    .header-actions {
        gap: 0.5rem;
    }
    
    .header-actions .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        max-width: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.8rem 3%;
    }
    
    .logo img {
        height: 45px;
    }
    
    .cta-button {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* More aggressive mobile optimizations for very small screens */
    .header-actions {
        gap: 0.3rem;
        flex-shrink: 0;
    }
    
    .header-actions .cta-button {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
        border-radius: 20px;
        min-width: auto;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }
    
    /* Large CTA buttons in content sections */
    .cta-button.large {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
        white-space: nowrap;
        max-width: 280px;
        margin: 0 auto;
        display: block;
        text-align: center;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .lang-switch-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
    
    .lang-switch-btn span {
        display: none; /* Hide the "English" text, show only the globe icon */
    }
}

/* Extra small mobile screens */
@media (max-width: 375px) {
    header {
        padding: 0.6rem 2%;
    }
    
    .header-actions .cta-button {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
        max-width: 100px;
    }
    
    .lang-switch-btn {
        padding: 0.3rem 0.6rem;
        min-width: 40px;
    }
    
    /* Extra small adjustments for large buttons */
    .cta-button.large {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
        max-width: 250px;
    }
}

/* モーダルスタイル */
.modal {
    display: none;
    position: fixed;
    z-index: 20000; /* 非常に高いz-indexを設定 */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #232840;
    padding: 2rem;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--primary-color);
}

.modal-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light-color);
}

.modal-content p {
    color: #aaa;
    margin-bottom: 1.5rem;
}

.close-modal {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 0.8rem 2rem;
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* スライダー関連のスタイル */
.slider-control {
    opacity: 0.9;
    animation: pulse 2s infinite;
}

/* ガイド矢印ボタンのスタイル */
#guide-prev-slide:hover i, #guide-next-slide:hover i {
    color: var(--primary-color) !important;
    transform: scale(1.3);
    text-shadow: 0 0 10px rgba(255, 182, 185, 0.8);
}

#guide-prev-slide:active i, #guide-next-slide:active i {
    transform: scale(1.1);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(181, 234, 215, 0.5);
    }
    50% {
        box-shadow: 0 0 40px rgba(181, 234, 215, 0.8);
    }
    100% {
        box-shadow: 0 0 20px rgba(181, 234, 215, 0.5);
    }
}

.slider-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.15);
    background: rgba(0, 0, 0, 1) !important;
    box-shadow: 0 0 50px rgba(181, 234, 215, 1) !important;
    border-color: var(--primary-color) !important;
}

.slide-indicator {
    opacity: 0.8;
    transition: all 0.3s ease;
}

.slide-indicator:hover {
    opacity: 1;
    transform: scale(1.2);
}

.slide-indicator.active {
    background: white !important;
    opacity: 1;
}

.demo-title {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* スライド切り替え時のローディング表示 */
.demo-iframe {
    position: relative;
}

.demo-iframe::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: var(--secondary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: none;
    z-index: 1;
}

.demo-iframe.loading::before {
    display: block;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .slider-control {
        font-size: 1rem;
        padding: 10px 15px;
    }
    
    .demo-title {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
    
    #slide-indicators {
        bottom: 40px;
    }
    
    /* 新しいコントロールパネルをモバイルで最適化 */
    #demo-control-panel {
        padding: 4px 8px !important;
        gap: 4px !important;
        margin-top: 4px !important;
    }
    
    /* タイトル部分のモバイル対応 */
    #demo-title {
        font-size: 0.7rem !important;
        padding: 4px 10px !important;
        min-width: 120px !important;
    }
    
    /* 上段マージンを小さく */
    #demo-control-panel > div:first-child {
        margin-bottom: 4px !important;
    }
    
    /* 下段コントロール部分 */
    #demo-control-panel > div:last-child {
        flex-direction: column !important;
        gap: 4px !important;
        align-items: center !important;
    }
    
    /* デモ切り替えガイドのテキスト */
    #demo-control-panel > div:last-child > div:first-child span {
        font-size: 0.65rem !important;
        display: none;
    }
    
    #demo-control-panel > div:last-child > div:first-child::after {
        content: "スワイプで切替";
        font-size: 0.65rem;
        color: white;
        white-space: nowrap;
    }
    
    /* モバイルではインジケーターを非表示 */
    #slide-indicators {
        display: none !important;
    }
    
    #demo-control-panel button i {
        font-size: 0.85rem !important;
    }
    
    #fullscreen-button span,
    #invite-button span {
        font-size: 0.65rem !important;
    }
    
    #fullscreen-button,
    #invite-button {
        padding: 5px 10px !important;
    }
}

/* 新しいコントロールパネルのスタイル */
#demo-control-panel {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 6px;
}

/* タイトル部分 */
#demo-control-panel > div:first-child {
    width: 100%;
    text-align: center;
}

/* コントロール部分 */
#demo-control-panel > div:last-child {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

#demo-control-panel button:hover i {
    color: #fff !important;
    transform: scale(1.2);
}

#fullscreen-button:hover,
#invite-button:hover {
    background: rgba(60, 60, 60, 0.9) !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

/* ガイドテキストのデフォルト表示設定（PC用） */
.guide-text-desktop {
    display: inline;
}

.guide-text-mobile {
    display: none;
}

/* インジケーターのスタイル改善 */
#slide-indicators {
    display: flex;
    gap: 10px;
    align-items: center;
}

/* iframeコンテナの中央配置 */
#demo-slider-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

#slides-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slide-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

/* iframe上でのスクロールを制御するためのスタイル */
.iframe-container {
    position: relative;
    width: 100%;
    height: 80vh;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(123, 104, 238, 0.3), 0 0 20px rgba(72, 209, 204, 0.3);
    background: linear-gradient(145deg, rgba(30, 33, 48, 0.8), rgba(30, 33, 48, 0.4));
}

/* マウスがiframe上にある時にbodyのスクロールを無効化するスタイル */
body.mouse-over-iframe {
    overflow: hidden !important;
}

/* 固定タブバナー */
.fixed-tab-banner {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    transition: all 0.3s ease;
    animation: slideInRight 0.5s ease;
}

@keyframes slideInRight {
    from {
        right: -100px;
        opacity: 0;
    }
    to {
        right: 0;
        opacity: 1;
    }
}

.tab-banner-link {
    display: block;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 1.5rem 0.8rem;
    text-decoration: none;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    border-radius: 10px 0 0 10px;
    box-shadow: -3px 3px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1.1rem;
    letter-spacing: 0.1em;
}

.tab-banner-link:hover {
    padding-right: 1.2rem;
    box-shadow: -5px 5px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
}

.tab-text {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.tab-arrow {
    display: inline-block;
    font-size: 1.5rem;
    transform: rotate(-90deg);
    transition: transform 0.3s ease;
}

.tab-banner-link:hover .tab-arrow {
    transform: rotate(-90deg) translateX(5px);
}

/* タブレット用の固定タブバナー調整 */
@media (max-width: 768px) {
    .fixed-tab-banner {
        right: 0;
        top: 60%;
    }
    
    .tab-banner-link {
        padding: 1.2rem 0.6rem;
        font-size: 1rem;
    }
}

/* スマホ用の固定タブバナー - 下部に横長バナーとして表示 */
@media (max-width: 480px) {
    .fixed-tab-banner {
        position: fixed;
        bottom: 0;
        right: 0;
        left: 0;
        top: auto;
        transform: none;
        animation: slideInUp 0.5s ease;
    }
    
    @keyframes slideInUp {
        from {
            bottom: -100px;
            opacity: 0;
        }
        to {
            bottom: 0;
            opacity: 1;
        }
    }
    
    .tab-banner-link {
        writing-mode: horizontal-tb;
        text-orientation: initial;
        padding: 0.8rem 1.5rem;
        border-radius: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        font-size: 0.95rem;
    }
    
    .tab-text {
        margin-bottom: 0;
        margin-right: 0.5rem;
    }
    
    .tab-arrow {
        transform: rotate(0deg);
        font-size: 1.2rem;
    }
    
    .tab-banner-link:hover .tab-arrow {
        transform: translateX(5px);
    }
    
    .tab-banner-link:hover {
        padding-right: 1.5rem;
    }
}

/* モバイル最適化：メモリ警告アニメーション */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

/* モバイル端末でのパフォーマンス最適化 */
@media (max-width: 768px) {
    /* GPU加速を有効にして滑らかな表示 */
    .demo-iframe {
        transform: translateZ(0);
        -webkit-transform: translateZ(0);
        will-change: transform;
    }
    
    /* モバイルでのタッチ操作最適化 */
    .slide-indicator {
        min-width: 44px !important;
        min-height: 44px !important;
        padding: 8px !important;
    }
    
    /* モバイルでのメモリ使用量を抑制 */
    .demo-slide {
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* 低メモリデバイス向けの追加最適化 */
@media (max-width: 480px) {
    /* アニメーションを簡素化してメモリ使用量を削減 */
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
    
    /* 影やぼかし効果を軽減 */
    .hero-image {
        filter: none !important;
    }
    
    .card-shadow {
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* 不要な背景グラデーションを簡素化 */
    .immersive-demo {
        background: #1e2130 !important;
    }
    
    /* モバイルでインジケーターを非表示 */
    #slide-indicators {
        display: none !important;
    }
    
    /* デモスライダーコンテナーの中央寄せ */
    #demo-slider-container {
        display: flex;
        justify-content: center;
        align-items: center;
    }
    
    #slides-wrapper {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    
    .demo-slide {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }
    
    /* 全画面ボタンとコントロールパネルの表示を確保 */
    #demo-control-panel > div:last-child {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        width: 100% !important;
    }
    
    /* 全画面ボタンを必ず表示 */
    #fullscreen-button {
        display: flex !important;
        visibility: visible !important;
    }
    
    /* モバイルでコントロールパネルの下段を左右配置に */
    #demo-control-panel > div:last-child {
        display: flex !important;
        flex-direction: row !important;  /* 横並びを明示的に指定 */
        justify-content: space-between !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
        width: 100% !important;
        padding: 0 4px !important;
    }
    
    /* モバイルで全ての直下の子要素を横並びに配置 */
    #demo-control-panel > div:nth-child(2) {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
        gap: 12px !important;
    }
    
    /* 下段のコントロール要素を強制的に横並びに */
    #demo-control-panel > div:nth-child(2) {
        flex-wrap: nowrap !important;  /* 折り返しを禁止 */
    }
    
    /* 各要素のサイズを調整してコンパクトに */
    #demo-control-panel > div:nth-child(2) > div {
        flex-shrink: 0 !important;  /* 縮小を防ぐ */
    }
    
    /* インジケーターをモバイルで非表示 */
    #slide-indicators {
        display: none !important;
    }
    
    /* 左側：ガイドテキストをコンパクトに */
    #demo-control-panel > div:last-child > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }
    
    /* デスクトップ用テキストを非表示、モバイル用を表示 */
    .guide-text-desktop {
        display: none !important;
    }
    
    .guide-text-mobile {
        display: inline !important;
        font-size: 0.7rem !important;
        white-space: nowrap !important;
    }
    
    #demo-control-panel > div:last-child > div:first-child button {
        padding: 2px !important;
    }
    
    #demo-control-panel > div:last-child > div:first-child button i {
        font-size: 0.75rem !important;
    }
    
    /* 右側：全画面ボタンをコンパクトに */
    #demo-control-panel > div:last-child > div:last-child {
        flex: 0 0 auto !important;
    }
    
    #fullscreen-button {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
    }
    
    #fullscreen-button i {
        font-size: 0.8rem !important;
        margin-right: 4px !important;
    }
    
    /* 重複するテキストノードを隠す */
    #demo-control-panel > div:last-child > div:first-child {
        font-size: 0 !important; /* テキストノードを非表示 */
    }
    
    #demo-control-panel > div:last-child > div:first-child * {
        font-size: 0.7rem !important; /* 子要素のフォントサイズを復元 */
    }
    
    /* ::after擬似要素の「スワイプで切替」を非表示 */
    #demo-control-panel > div:last-child > div:first-child::after {
        content: none !important;
        display: none !important;
    }
}

/* 複数AI活用例セクションのスタイル */
.multi-ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15) !important;
}

/* モバイル対応 - 複数AI活用例セクション */
@media (max-width: 768px) {
    #multi-ai-examples {
        padding: 4rem 3% !important;
    }

    .section-title2 h2 {
        font-size: 2rem !important;
    }

    .section-title2 p {
        font-size: 1rem !important;
    }

    .multi-ai-card {
        padding: 1.5rem !important;
    }

    .multi-ai-card h3 {
        font-size: 1.3rem !important;
    }

    /* フロー図を縦に並べる（モバイル） */
    .multi-ai-card > div:nth-child(3) {
        flex-direction: column !important;
    }

    .multi-ai-card > div:nth-child(3) i {
        transform: rotate(90deg);
        margin: 0.5rem 0;
    }
}

@media (max-width: 480px) {
    #multi-ai-examples {
        padding: 3rem 2% !important;
    }

    .multi-ai-card h3 {
        font-size: 1.1rem !important;
    }

    .multi-ai-card p {
        font-size: 0.85rem !important;
    }
}