/* モダンITウェブサイト スタイル */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: auto; /* JavaScriptで制御するためautoに設定 */
}

:root {
    /* 基本カラー - モノトーン */
    --primary-color: #333333;
    --secondary-color: #666666;
    --accent-color: #999999;
    
    /* 背景カラー - ライトグレー */
    --dark-bg: #e8e8e8;
    --card-bg: linear-gradient(145deg, #f5f5f5, #e0e0e0);
    --card-hover: linear-gradient(145deg, #f8f8f8, #e8e8e8);
    --glass-bg: rgba(245, 245, 245, 0.9);
    
    /* テキストカラー - ダーク */
    --text-light: #2a2a2a;
    --text-gray: #4a4a4a;
    --text-bright: #1a1a1a;
    
    /* グラデーション - ライトテーマ */
    --gradient-primary: linear-gradient(135deg, #555555 0%, #777777 50%, #999999 100%);
    --gradient-bg: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 50%, #f8f8f8 100%);
    
    /* シャドウ - ライトテーマ */
    --shadow-primary: 0 0 40px rgba(0, 0, 0, 0.15);
    --shadow-error: 0 0 40px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.1);
    --shadow-card-hover: 0 16px 64px rgba(0, 0, 0, 0.15);
    
    /* ボーダー - ライトテーマ */
    --border-glass: 1px solid rgba(0, 0, 0, 0.1);
    --border-glow: 1px solid rgba(0, 0, 0, 0.2);
    
    /* アクセント色とエフェクト - 統一したカラーシステム */
    --accent-cyan: #0fbcfc;
    --accent-teal: #00bcd4;
    --accent-green: #66bb6a;
    --accent-light-blue: #4dd0e1;
    
    /* エフェクト用透明度バリエーション */
    --accent-cyan-10: rgba(15, 240, 252, 0.1);
    --accent-cyan-15: rgba(15, 240, 252, 0.15);  
    --accent-cyan-40: rgba(15, 240, 252, 0.4);
    --accent-cyan-50: rgba(15, 240, 252, 0.5);
    --accent-teal-10: rgba(0, 188, 212, 0.1);
    --accent-teal-15: rgba(0, 188, 212, 0.15);
    --accent-teal-40: rgba(0, 188, 212, 0.4);
    --accent-teal-50: rgba(0, 188, 212, 0.5);
    --accent-green-15: rgba(102, 187, 106, 0.15);
    --accent-light-blue-10: rgba(77, 208, 225, 0.1);

    /* ヒーロー背景パターン用 - 共通変数 */
    --hero-radial-1: rgba(0, 0, 0, 0.05);
    --hero-radial-2: rgba(0, 0, 0, 0.05);
    --hero-grid-color: rgba(0, 0, 0, 0.05);
    --hero-conic-color: rgba(0, 0, 0, 0.03);
    --hero-conic-size: 800px;

    /* OSがダークモードでも常にライト表示を使用 */
    color-scheme: light;
}


/* スキップリンク - アクセシビリティ向上 */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #333333;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 6px;
}

/* スクリーンリーダー専用コンテンツ */
.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

body {
    font-family: 'Inter', sans-serif;
    /* フォールバック + CSSカスタムプロパティ */
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 50%, #f8f8f8 100%);
    background: var(--gradient-bg);
    color: #2a2a2a;
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* ヘッダー スタイル */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(245, 245, 245, 0.9);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: var(--border-glass);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.2);
}

.header.scrolled {
    background: rgba(245, 245, 245, 0.98);
    border-bottom: 1px solid rgba(0, 0, 0, 0.2);
    border-bottom: var(--border-glow);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    box-shadow: var(--shadow-primary);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.logo-section img {
    width: 50px;
    height: 50px;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #555555 0%, #777777 50%, #999999 100%);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* フォールバック: グラデーション未対応の場合 */
    color: #555555;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-link {
    color: #2a2a2a;
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #666666;
    color: var(--secondary-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #555555 0%, #777777 50%, #999999 100%);
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #2a2a2a;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ボタン スタイル */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, #555555 0%, #777777 50%, #999999 100%);
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.15);
    box-shadow: var(--shadow-primary);
    border: 1px solid rgba(0, 0, 0, 0.2);
    border: var(--border-glow);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.15);
    box-shadow: var(--shadow-card-hover);
    border-color: #666666;
    border-color: var(--secondary-color);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

/* カード スタイル */
.card {
    background: var(--card-bg);
    border-radius: 24px;
    padding: 3rem;
    border: var(--border-glass);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-card);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    box-shadow: 0 0 20px var(--accent-cyan-50);
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--card-hover);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: -1;
}

.card:hover {
    transform: translateY(-15px) rotateY(5deg);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent-cyan-40);
}

.card:hover::after {
    opacity: 1;
}

.card-icon {
    font-size: 2rem;
    display: inline-block;
    transition: all 0.6s ease;
    -webkit-text-fill-color: initial;
    color: initial;
}

.card:hover .card-icon {
    transform: scale(1.1) rotateY(15deg);
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.3));
}

.card-title {
    font-size: 1.0rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-bright);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.card-description {
    color: var(--text-light);
    line-height: 1.8;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* パーティクル背景システム */
.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--gradient-bg);
    overflow: hidden;
}

.particles-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 80%, var(--accent-teal-15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--accent-green-15) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--accent-light-blue-10) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}


/* フッター拡張スタイル */
.footer {
    background: var(--card-bg);
    border-top: 1px solid var(--accent-teal-10);
    padding: 2rem 2rem 1rem;
    margin-top: 4rem;
    width: 100%;
    box-sizing: border-box;
}

.footer .main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}


@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-bright);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-light);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

.footer-section a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.footer-section a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.footer-section a:hover::after {
    width: 100%;
}

.footer-bottom {
    border-top: 1px solid var(--accent-teal-10);
    padding-top: 1rem;
    text-align: center;
}

.copyright {
    color: var(--text-light);
    font-size: 0.875rem;
    text-align: center;
    margin: 0 auto;
}

/* アニメーション キーフレーム */
@keyframes rotate {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes heroGlow {
    0% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

@keyframes float-around {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.1; }
    25% { transform: translateY(-20px) rotate(90deg); opacity: 0.2; }
    50% { transform: translateY(-10px) rotate(180deg); opacity: 0.1; }
    75% { transform: translateY(-30px) rotate(270deg); opacity: 0.2; }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.fade-in-element {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in-element.animate-in {
    opacity: 1;
    transform: translateY(0);
}



/* レスポンシブ デザイン */

/* タブレット対応 */
@media (max-width: 1024px) {
    .footer {
        padding: 3rem 1.5rem 2rem;
    }
    
    .footer-content {
        gap: 2.5rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
}

/* モバイル対応 */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(245, 245, 245, 0.98);
        flex-direction: column;
        padding: 2rem;
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(10px);
    }

    .nav-menu.active {
        display: flex;
    }
    
    .card {
        padding: 2.5rem 2rem;
    }
    
    .card-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
        gap: 0.75rem;
        line-height: 1.3;
    }
    
    .card-description {
        font-size: 1rem;
        line-height: 1.8;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer .main-content {
        padding: 0 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-links {
        order: 2;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        text-align: left;
    }
    
    .footer-section {
        margin-bottom: 1.5rem;
    }
    
    .footer-section h4 {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    .footer-section ul {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .footer-section li {
        margin-bottom: 0;
    }
}

/* 小さなモバイル対応 */
@media (max-width: 480px) {
    .card {
        padding: 2rem 1.5rem;
    }
    
    .card-title {
        font-size: 1.4rem;
        margin-bottom: 1.25rem;
        gap: 0.6rem;
        line-height: 1.25;
    }
    
    .card-description {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .footer {
        padding: 1.5rem 0.75rem 1rem;
    }
    
    .footer-content {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-links {
        gap: 1.5rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section a {
        font-size: 0.9rem;
    }
    
    .copyright {
        font-size: 0.8rem;
        padding: 0 1rem;
    }
}

/* エラー通知システム - CSP準拠 */
.error-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.3);
    z-index: 10000;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    max-width: 400px;
    animation: slideInError 0.3s ease-out;
    /* アクセシビリティ強化 */
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.error-notification:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.8);
}

.error-notification.warning {
    background: linear-gradient(135deg, #ffa726, #ffb74d);
    box-shadow: 0 4px 20px rgba(255, 167, 38, 0.3);
}

.error-notification .error-title {
    font-weight: 600;
    margin-bottom: 4px;
}

.error-notification .error-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    /* キーボードナビゲーションサポート */
    transition: background-color 0.2s ease;
}

.error-notification .error-close:hover,
.error-notification .error-close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.error-notification .error-close:focus {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.error-notification .error-message {
    margin-right: 30px; /* 閉じるボタンとの重なり防止 */
}

@keyframes slideInError {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@media (max-width: 480px) {
    .error-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}


/* パフォーマンス最適化用 - インラインスタイル置換 */

/* アニメーション・トランスフォーム用クラス */
.fade-in {
    opacity: 1 !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-out {
    opacity: 0 !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up {
    transform: translateY(0) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-down {
    transform: translateY(30px) !important;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-hover {
    transform: scale(1.05) !important;
    transition: transform 0.2s ease;
}

.scale-active {
    transform: scale(0.95) !important;
    transition: transform 0.1s ease;
}

.card-hover-effect {
    transform: translateY(-15px) scale(1.03) !important;
    z-index: 10 !important;
    box-shadow: 
        0 25px 50px var(--accent-teal-40),
        0 0 0 1px var(--accent-teal-10),
        inset 0 0 20px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.text-glow {
    text-shadow: 0 0 10px var(--accent-teal-50) !important;
    transition: text-shadow 0.3s ease;
}

.outline-highlight {
    outline: 2px solid var(--primary-color) !important;
    outline-offset: 4px !important;
}

.progress-bar {
    transition: width 0.3s ease;
    width: var(--progress-width, 0%);
}


/* パーティクルアニメーション */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-150px) translateX(50px) rotate(90deg) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translateY(-100px) translateX(-80px) rotate(180deg) scale(0.8);
        opacity: 1;
    }
    75% {
        transform: translateY(-200px) translateX(30px) rotate(270deg) scale(1.1);
        opacity: 0.6;
    }
}

/* カードハイライト効果 */
.card.highlighted {
    transform: translateY(-20px) scale(1.05) !important;
    box-shadow: 
        0 25px 60px var(--accent-teal-40),
        0 0 0 3px var(--accent-teal-40),
        0 0 40px rgba(0, 188, 212, 0.6) !important;
    border-color: var(--accent-teal) !important;
    z-index: 10 !important;
    animation: cardPulse 2s ease-in-out;
}

@keyframes cardPulse {
    0%, 100% { 
        box-shadow: 
            0 25px 60px var(--accent-teal-40),
            0 0 0 3px var(--accent-teal-40),
            0 0 40px rgba(0, 188, 212, 0.6);
    }
    50% { 
        box-shadow: 
            0 30px 80px var(--accent-teal-50),
            0 0 0 5px rgba(0, 188, 212, 0.6),
            0 0 60px rgba(0, 188, 212, 0.8);
    }
}

/* フローティングパーティクル */
.floating-particle {
    position: absolute;
    background: linear-gradient(135deg, var(--accent-teal-40), rgba(102, 187, 106, 0.4));
    border-radius: 50%;
    pointer-events: none;
    box-shadow: 0 0 30px var(--accent-teal-15);
    z-index: -1;
    /* CSP準拠のカスタムプロパティ */
    width: var(--particle-size, 3px);
    height: var(--particle-size, 3px);
    left: var(--particle-x, 0px);
    top: var(--particle-y, 0px);
    animation: floatParticle var(--particle-duration, 20s) ease-in-out infinite var(--particle-delay, 0s);
}

/* パララックス */
.particles-container {
    transform: translateY(var(--parallax-offset, 0px));
}

/* 共通レスポンシブクラス */
.mobile-break {
    display: none;
}

@media (max-width: 1024px) {
    .mobile-break {
        display: inline;
    }
}

@media (max-width: 768px) {
    .mobile-break {
        display: inline;
    }
}

.responsive-title {
    font-size: clamp(2rem, 6vw, 4rem);
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

.responsive-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    line-height: 1.6;
    text-align: center;
    white-space: nowrap;
}

.responsive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.hero-section-base {
    padding: 140px 0 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 100vh;
    background: transparent;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 共通ヒーロータイトル基底クラス */
.hero-title-base {
    font-family: 'Orbitron', 'Inter', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 800;
    margin-bottom: 2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    letter-spacing: -1px;
    text-shadow: 0 0 60px rgba(0, 0, 0, 0.2);
    position: relative;
    font-feature-settings: 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.hero-title-base::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}

/* 共通ヒーロー背景パターン */
.hero-background-base::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, var(--hero-radial-1, rgba(0, 0, 0, 0.05)) 0%, transparent 60%),
        radial-gradient(circle at 70% 30%, var(--hero-radial-2, rgba(0, 0, 0, 0.05)) 0%, transparent 60%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M 20 0 L 0 0 0 20" fill="none" stroke="var(--hero-grid-color, rgba(0,0,0,0.05))" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.6;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

.hero-background-base::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hero-conic-size, 800px);
    height: var(--hero-conic-size, 800px);
    background: conic-gradient(from 0deg, transparent, var(--hero-conic-color, rgba(0, 0, 0, 0.03)), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    animation: rotate 20s linear infinite;
    z-index: -1;
}


@media (max-width: 768px) {
    .responsive-container { 
        padding: 0 1.5rem; 
    }
    
    .responsive-title {
        font-size: clamp(1.75rem, 7vw, 2.5rem);
    }
    
    .responsive-subtitle {
        font-size: clamp(0.95rem, 3.5vw, 1.2rem);
    }
    
    .hero-section-base {
        padding: clamp(70px, 8vh, 100px) 0 clamp(30px, 5vh, 60px);
        min-height: 75vh;
    }
}

@media (max-width: 480px) {
    .responsive-container { 
        padding: 0 1rem; 
    }
    
    .responsive-title {
        font-size: clamp(1.5rem, 8vw, 2rem);
    }
    
    .responsive-subtitle {
        font-size: clamp(0.85rem, 4vw, 1rem);
    }
    
    .hero-section-base {
        padding: clamp(50px, 6vh, 80px) 0 clamp(20px, 4vh, 40px);
        min-height: 70vh;
    }
}

/* タブレット対応 */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero-section-base {
        padding: clamp(80px, 10vh, 110px) 0 clamp(40px, 6vh, 70px);
        min-height: 80vh;
    }
}

/* モーション低減アクセシビリティ対応 - 前庭障害のあるユーザー向け */
@media (prefers-reduced-motion: reduce) {
    /* アニメーションを無効化またはシンプルに */
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        transform: none !important;
    }
    
    /* スクロール動作をinstantに変更 */
    html {
        scroll-behavior: auto !important;
    }
    
    /* パーティクル背景の回転を無効化 */
    .particles-container::before {
        animation: none !important;
    }
    
    /* カードホバー効果を簡素化 */
    .card:hover {
        transform: none !important;
    }
    
    .card:hover .card-icon {
        transform: scale(1.05) !important;
        filter: none !important;
    }
    
    /* ボタンのホバー効果を簡素化 */
    .btn-primary:hover {
        transform: none !important;
    }
    
    /* グロー効果とフローティングアニメーションを無効化 */
    @keyframes heroGlow {
        0%, 100% { opacity: 0.6; }
    }
    
    @keyframes float {
        0%, 100% { transform: translateY(0px); }
    }
    
    @keyframes float-around {
        0%, 100% { transform: translateY(0px); opacity: 0.1; }
    }
    
    @keyframes rotate {
        to { transform: translate(-50%, -50%) rotate(0deg); }
    }
    
    @keyframes bounce {
        0%, 100% { transform: translateY(0); }
    }
    
    /* フェードインエフェクトを即座に表示 */
    .fade-in-element {
        opacity: 1 !important;
        transform: translateY(0) !important;
    }
    
    .fade-in-element.animate-in {
        transition: none !important;
    }
}

/* ダークモード対応 */


/* Force light appearance even when OS is dark */

