/* リセット・基本設定 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 8pxベースのスペーシングシステム */
:root {
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    --space-3xl: 80px;
    
    /* レスポンシブスペーシング */
    --space-responsive-sm: clamp(12px, 3vw, 24px);
    --space-responsive-md: clamp(24px, 5vw, 48px);
    --space-responsive-lg: clamp(32px, 8vw, 80px);
    
    /* タイポグラフィシステム */
    --font-size-xs: 12px;
    --font-size-sm: 14px;
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 20px;
    --font-size-2xl: 24px;
    --font-size-3xl: 32px;
    --font-size-4xl: 40px;
    
    /* レスポンシブフォントサイズ */
    --font-size-hero: clamp(32px, 6vw, 48px);
    --font-size-section: clamp(24px, 4vw, 32px);
    --font-size-card: clamp(18px, 3vw, 20px);
    
    /* 行間 */
    --line-height-tight: 1.2;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.7;
    
    /* アニメーション最適化 */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* パフォーマンス最適化とアニメーション */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.5s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* GPU加速のためのwill-changeを適用 */
.animated-element {
    will-change: transform, opacity;
}

/* スクロール時のパフォーマンス最適化: 要素単位で適用するため全体適用は撤回 */

/* 低スペックデバイス向けのアニメーション削減 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    color: #2D3748;
    background-color: #FFFFFF;
    letter-spacing: 0.01em;
    overflow-x: hidden; /* 横スクロール防止 */
    max-width: 100vw; /* ビューポート幅制限 */
    font-feature-settings: "palt"; /* 文字詰め最適化 */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-responsive-sm);
    width: 100%;
    box-sizing: border-box;
}

/* ヘッダー */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-responsive-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    width: 100%;
    box-sizing: border-box;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 6px;
}

.logo-text {
    font-size: 24px;
    font-weight: 900;
    color: #2D3748;
}

.logo-accent {
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 32px); /* レスポンシブギャップ */
}

.nav-link {
    text-decoration: none;
    color: #4A5568;
    font-weight: 500;
    transition: all var(--transition-fast);
    padding: 8px 12px; /* タッチターゲット拡張 */
    border-radius: 6px;
    min-height: 44px; /* 最小タッチターゲット確保 */
    display: flex;
    align-items: center;
    will-change: color, background-color; /* GPU最適化 */
}

.nav-link:hover {
    color: #096fcaff;
    background-color: rgba(9, 111, 202, 0.1);
}

.btn-trial {
    padding: 12px 24px; /* タッチターゲット拡張 */
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 15px rgba(9, 111, 202, 0.3);
    min-height: 48px; /* 最小タッチターゲット確保 */
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform, box-shadow; /* GPU最適化 */
}

.btn-trial:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 111, 202, 0.4);
}

/* ログインボタン - ヘッダー用 */
.btn-login-header {
    padding: 12px 20px; /* タッチターゲット拡張 */
    background: transparent;
    border: 1px solid rgba(9, 111, 202, 0.5);
    color: #096fcaff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    margin-right: 12px;
    min-height: 48px; /* 最小タッチターゲット確保 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-login-header:hover {
    background: rgba(9, 111, 202, 0.1);
    border-color: #096fcaff;
    transform: translateY(-1px);
}

/* モバイルハンバーガーメニュー */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 28px;
    height: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.hamburger-line {
    width: 100%;
    height: 2px;
    background-color: #096fcaff;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* モバイルメニューオーバーレイ */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
    backdrop-filter: blur(20px);
    padding: 24px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(9, 111, 202, 0.2);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #2D3748;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.mobile-menu-close:hover {
    background-color: rgba(9, 111, 202, 0.1);
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-link {
    font-size: 18px;
    font-weight: 500;
    color: #2D3748;
    text-decoration: none;
    padding: 12px 0;
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: #096fcaff;
}

.mobile-nav-actions {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-btn {
    display: inline-block;
    text-align: center;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-btn-login {
    background: transparent;
    border: 2px solid #096fcaff;
    color: #096fcaff;
}

.mobile-btn-login:hover {
    background: rgba(9, 111, 202, 0.1);
}

.mobile-btn-primary {
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(9, 111, 202, 0.3);
}

.mobile-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(9, 111, 202, 0.4);
}

/* セクション共通スタイル */
section {
    padding: var(--space-responsive-lg) 0;
}

/* ヒーローセクション */
.hero {
    min-height: 100vh;
    background: linear-gradient(135deg, 
        #002147 0%, 
        #003366 50%, 
        #002147 100%);
    display: flex;
    align-items: center;
    padding-top: 70px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-responsive-sm);
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: var(--space-responsive-lg);
    align-items: center;
    position: relative;
    z-index: 1;
    min-height: calc(100vh - 70px);
    width: 100%;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid rgba(255, 215, 0, 0.5);
    color: #FFD700;
    padding: 8px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 900;
    color: white;
    margin-bottom: var(--space-md);
    line-height: var(--line-height-tight);
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* 可読性向上 */
}

.highlight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.5);
    font-weight: 900;
}

.hero-subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height-relaxed);
    max-width: 600px; /* 読みやすい行長 */
}

.cost-highlight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    font-size: 24px;
}

.hero-buttons {
    display: flex;
    gap: clamp(16px, 4vw, 24px); /* レスポンシブギャップ */
    margin-bottom: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

/* ログインボタン - ヒーロー用 */
.btn-login-secondary {
    padding: 16px 32px;
    background: white;
    border: 2px solid #096fcaff;
    color: #096fcaff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.btn-login-secondary:hover {
    background: #096fcaff;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(9, 111, 202, 0.3);
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px; /* タッチターゲット拡張 */
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    min-height: 56px; /* ヒーローボタンは大きめ */
    min-width: 200px; /* 最小幅確保 */
}

.btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.btn-arrow {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
}

.hero-guarantee {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 50px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.guarantee-icon {
    color: #48BB78;
    font-weight: bold;
}

.hero-stats {
    display: flex;
    gap: 50px;
    justify-content: flex-start;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.stat-free-text {
    font-size: 36px;
    font-weight: 900;
    color: white;
    margin-bottom: 5px;
}

/* ヒーローモックアップ */
.hero-mockup {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-15deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.hero-mockup:hover {
    transform: perspective(1000px) rotateY(-10deg) rotateX(2deg);
}

.mockup-image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}
/* モバイル向け段階表示アニメーション */
@media (max-width: 768px) {
  .hero-mockup {
    /* 初期状態で可視のまま。アニメ付与時のみ遷移 */
  }
  .hero-mockup.animate-in {
    animation: mockupReveal 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  .hero-mockup.animate-in .mockup-image {
    animation: mockupScale 600ms ease-out 150ms both;
  }
  @keyframes mockupReveal {
    0% { opacity: 0; transform: translateY(24px); }
    60% { opacity: 1; transform: translateY(0); }
    100% { opacity: 1; transform: translateY(0); }
  }
  @keyframes mockupScale {
    0% { transform: scale(0.98); }
    100% { transform: scale(1); }
  }
}

.mockup-image:hover {
    transform: scale(1.02);
}

/* CSS製のダッシュボードモックアップ（画像がない場合のフォールバック） */
.dashboard-mockup-fallback {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 25%, #cbd5e1 50%, #94a3b8 100%);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
    display: none; /* 初期は非表示 */
}

.dashboard-mockup-fallback:hover {
    transform: scale(1.02);
}

/* 背景装飾 */
.dashboard-mockup-fallback::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(600px circle at 20% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(800px circle at 80% 70%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
        radial-gradient(400px circle at 40% 80%, rgba(139, 92, 246, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

/* モックアップ内の要素 */
.dashboard-content {
    position: relative;
    z-index: 1;
    padding: 24px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* ヘッダー部分 */
.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dashboard-title {
    font-size: 16px;
    font-weight: 600;
    color: #096fcaff;
    letter-spacing: -0.025em;
}

.dashboard-status {
    padding: 4px 12px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* 統計カード */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 8px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #096fcaff;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
}

/* データテーブル */
.dashboard-table {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 16px;
    flex: 1;
    overflow: hidden;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.table-title {
    font-size: 14px;
    font-weight: 600;
    color: #2D3748;
}

.table-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(248, 250, 252, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(226, 232, 240, 0.5);
}

.table-cell {
    font-size: 12px;
    color: #4A5568;
}

.table-cell.primary {
    color: #096fcaff;
    font-weight: 500;
}

.table-cell.success {
    color: #10b981;
    font-weight: 500;
}

/* IP表示要素 */
.ip-display {
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    padding: 4px 8px;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 500;
    display: inline-block;
}

/* CPU使用率バー */
.cpu-bar {
    width: 40px;
    height: 6px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}

.cpu-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 65%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    border-radius: 3px;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    /* ヒーロー構成を縦並びにし、プレビューをタイトルの上へ */
    .hero-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding-top: 80px; /* 固定ヘッダーとの余白を少し広げる */
    }
    .hero-visual {
        order: -1;
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 8px;
    }
    .hero-title {
        margin-top: 8px;
        text-align: center;
    }
    .dashboard-mockup-fallback {
        height: 350px;
    }
    
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .dashboard-content {
        padding: 16px;
        gap: 12px;
    }
}

.mockup-screen {
    padding: 0;
}

.mockup-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.mockup-content {
    padding: 20px;
}

.data-row {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.data-row:last-child {
    border-bottom: none;
}

.data-icon {
    font-size: 20px;
}

.data-info {
    flex: 1;
}

.data-name {
    color: white;
    font-weight: 600;
    margin-bottom: 2px;
}

.data-detail {
    color: rgba(255, 255, 255, 0.7);
    font-size: 12px;
}

.data-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

.data-status.online {
    background: rgba(39, 202, 63, 0.2);
    color: #27ca3f;
    border: 1px solid rgba(39, 202, 63, 0.3);
}

.data-status.offline {
    background: rgba(255, 95, 86, 0.2);
    color: #ff5f56;
    border: 1px solid rgba(255, 95, 86, 0.3);
}

/* セクション共通スタイル */
.section-title {
    font-size: var(--font-size-section);
    font-weight: 900;
    text-align: center;
    margin-bottom: var(--space-md);
    color: #2D3748;
    letter-spacing: -0.01em;
    line-height: var(--line-height-tight);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    text-align: center;
    color: #718096;
    margin-bottom: var(--space-3xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-normal);
}

/* 3ステップセクション */
.steps {
    padding: 120px 0;
    background: #F7FAFC;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    max-width: 280px;
    transition: transform 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    margin: 0 auto 20px;
}

.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2D3748;
}

.step-description {
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
}

.step-visual {
    font-size: 40px;
    opacity: 0.5;
}

.step-arrow {
    font-size: 24px;
    color: #096fcaff;
    font-weight: bold;
}

/* 課題解決セクション */
.problems {
    padding: 120px 0;
    background: white;
}

.highlight-red {
    color: #E53E3E;
    background: linear-gradient(135deg, #E53E3E 0%, #FC8181 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.problem-card {
    background: #F7FAFC;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.problem-card:hover {
    transform: translateY(-5px);
    border-color: #E2E8F0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.problem-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.problem-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2D3748;
}

.problem-text {
    color: #718096;
    line-height: 1.6;
}

.solution-banner {
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    color: white;
    margin-top: 40px;
}

.solution-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

.solution-text {
    font-size: 16px;
    opacity: 0.9;
}

/* 機能紹介セクション */
.features {
    padding: 120px 0;
    background: #F7FAFC;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    font-size: 50px;
    margin-bottom: 20px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2D3748;
}

.feature-list {
    list-style: none;
    text-align: left;
}

.feature-list li {
    color: #718096;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #48BB78;
    font-weight: bold;
}

/* 料金セクション */
.pricing {
    padding: 120px 0;
    background: white;
}

.pricing-single {
    display: flex;
    justify-content: center;
    margin-bottom: 80px;
}

.pricing-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 800px;
    margin: 0 auto 60px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card.recommended {
    border: 3px solid #096fcaff;
    transform: scale(1.05);
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.recommended:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-card.free-plan {
    border: 3px solid #48BB78;
    max-width: 450px;
    background: linear-gradient(135deg, #F7FAFC 0%, #EDF2F7 100%);
    transform: none;
}

.pricing-header {
    margin-bottom: 20px;
}

.pricing-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    color: #2D3748;
}

.pricing-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.pricing-badge.expensive {
    background: #FED7D7;
    color: #E53E3E;
}

.pricing-badge.recommended-badge {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #2D3748;
    font-weight: 900;
    animation: pulse 2s infinite;
}

.pricing-badge.free {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    font-weight: 900;
    animation: pulse 2s infinite;
}

.pricing-price {
    margin-bottom: 20px;
    position: relative;
}

.price-free {
    font-size: 48px;
    font-weight: 900;
    color: #48BB78;
}

.price-amount {
    font-size: 48px;
    font-weight: 900;
    color: #2D3748;
}

.price-period {
    font-size: 16px;
    color: #718096;
}

.price-after {
    margin-top: 10px;
    font-size: 14px;
    color: #718096;
}

.price-after .price-amount {
    font-size: 20px;
    color: #4A5568;
}

.cost-saving {
    background: linear-gradient(135deg, #48BB78 0%, #38A169 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 30px;
    display: inline-block;
}

.pricing-features {
    text-align: left;
    margin-bottom: 30px;
}

.feature-item {
    margin-bottom: 12px;
    padding: 8px 0;
    color: #4A5568;
}

.btn-pricing {
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 111, 202, 0.3);
}

.btn-pricing:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 111, 202, 0.4);
}

/* ログインリンク - 料金セクション用 */
.login-link-wrapper {
    margin-top: 20px;
    font-size: 14px;
    color: #718096;
    text-align: center;
}

.login-link {
    color: #096fcaff;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s ease;
}

.login-link:hover {
    color: #2563eb;
    text-decoration: none;
}

.calculation-example {
    background: #F7FAFC;
    border-radius: 20px;
    padding: 40px;
    text-align: center;
}

.calculation-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #2D3748;
}

.calculation-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-bottom: 20px;
}

.calculation-item {
    text-align: center;
}

.calc-label {
    font-size: 16px;
    color: #718096;
    margin-bottom: 10px;
}

.calc-amount {
    font-size: 32px;
    font-weight: 900;
}

.calc-amount.expensive {
    color: #E53E3E;
}

.calc-amount.saving {
    color: #48BB78;
}

.calc-vs {
    font-size: 24px;
    font-weight: 900;
    color: #A0AEC0;
}

.total-saving {
    font-size: 20px;
    font-weight: 700;
    color: #48BB78;
}

.saving-amount {
    font-size: 28px;
    font-weight: 900;
}

.price-free-start-msg {
    font-size: 16px;
    color: #4A5568;
    line-height: 1.6;
    margin-top: 20px;
    padding: 20px;
    background: #EDF2F7;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #096fcaff;
}

.free-plan-benefits {
    margin-top: 60px;
}

.benefits-title {
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    margin-bottom: 40px;
    color: #2D3748;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-card {
    background: #F7FAFC;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease;
    border: 2px solid transparent;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: #096fcaff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    font-size: 40px;
    margin-bottom: 20px;
}

.benefit-card h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #2D3748;
}

.benefit-card p {
    color: #718096;
    line-height: 1.6;
}

.future-plan-note {
    margin-top: 40px;
    padding: 20px;
    background: #F7FAFC;
    border-radius: 12px;
    border-left: 4px solid #718096;
    font-size: 14px;
    color: #4A5568;
    line-height: 1.6;
}

.future-plan-note p {
    margin-bottom: 8px;
}

.future-plan-note p:last-child {
    margin-bottom: 0;
}

.future-plan-note strong {
    color: #2D3748;
    font-weight: 700;
}

/* 無料トライアルセクション */
.trial {
    padding: 120px 0;
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
}

.trial-header {
    text-align: center;
    margin-bottom: 60px;
}

.trial-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
}

.trial-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.trial-steps {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.trial-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.trial-step.active {
    opacity: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.trial-step.active .step-circle {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
}

.trial-form-container {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    align-items: start;
}

.trial-benefits {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.benefits-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
}

.benefits-list {
    margin-bottom: 30px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.benefit-icon {
    color: #48BB78;
    font-size: 18px;
}

.benefit-text strong {
    display: block;
    font-weight: 700;
    margin-bottom: 2px;
}

.benefit-text small {
    opacity: 0.8;
    font-size: 12px;
}

.google-form-wrapper {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.form-header {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 30px;
    text-align: center;
}

.form-title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
}

.form-subtitle {
    font-size: 16px;
    opacity: 0.9;
}

.form-container {
    padding: 0;
    background: white;
}

.form-container iframe {
    border: none;
    width: 100%;
    min-height: 600px;
}

/* お問い合わせセクション */
.contact {
    padding: 120px 0;
    background: #F7FAFC;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-top: 40px;
}

.contact-main {
    width: 100%;
}

.contact-item-large {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.contact-icon-large {
    font-size: 48px;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(9, 111, 202, 0.3);
}

.contact-details-large h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2D3748;
}

.email-address {
    font-size: 22px;
    font-weight: 600;
    color: #096fcaff;
    margin-bottom: 30px;
    padding: 15px 25px;
    background: #F7FAFC;
    border-radius: 10px;
    border: 2px solid #E2E8F0;
}

.contact-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    width: 100%;
}

.contact-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: #F7FAFC;
    border-radius: 8px;
    color: #4A5568;
}

.contact-feature .feature-icon {
    font-size: 16px;
}

.btn-contact-email {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 111, 202, 0.3);
}

.btn-contact-email:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 111, 202, 0.4);
}

.quick-contact {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.quick-contact-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #2D3748;
}

.faq-list {
    margin-bottom: 30px;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #E2E8F0;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-question {
    font-weight: 600;
    color: #2D3748;
    margin-bottom: 8px;
}

.faq-answer {
    color: #718096;
    font-size: 14px;
    line-height: 1.6;
}

.contact-cta {
    text-align: center;
    padding: 20px;
    background: #F7FAFC;
    border-radius: 16px;
    margin-bottom: 30px;
}

.contact-cta-text {
    color: #4A5568;
    margin-bottom: 15px;
    font-weight: 500;
}

.btn-quick-contact {
    background: linear-gradient(135deg, #096fcaff 0%, #4299e1 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(9, 111, 202, 0.3);
    width: 100%;
    text-align: center;
}

.btn-quick-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(9, 111, 202, 0.4);
}

/* フッター */
.footer {
    background: #2D3748;
    color: white;
    padding: 60px 0 20px;
}

.footer .logo-text {
    color: white;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-description {
    color: #A0AEC0;
    margin-top: 15px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #A0AEC0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-column ul li a:hover {
    color: #096fcaff;
}

.footer-bottom {
    border-top: 1px solid #4A5568;
    padding-top: 20px;
    text-align: center;
    color: #A0AEC0;
}

/* レスポンシブデザイン */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: clamp(40px, 8vw, 60px);
        padding: 0 clamp(16px, 5vw, 32px);
    }
    
    .hero-title {
        font-size: clamp(28px, 6vw, 36px);
        line-height: 1.2;
    }
    
    .section-title {
        font-size: clamp(24px, 5vw, 32px);
    }
    
    .pricing-card.free-plan {
        max-width: 100%;
        margin: 0 auto;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: clamp(20px, 4vw, 30px);
    }
    
    .trial-form-container {
        grid-template-columns: 1fr;
        gap: clamp(24px, 5vw, 40px);
    }
    
    /* グリッドレイアウトの全般的改善 */
    .steps-container,
    .problems-grid,
    .features-grid {
        gap: clamp(16px, 4vw, 24px);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px; /* モバイルでのボタン間隔 */
    }
    
    .hero-guarantee {
        align-items: center;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
        flex-wrap: wrap;
    }
    
    /* ヒーローモックアップの見切れ/位置調整（モバイル） */
    .hero-container {
        align-items: flex-start;
        gap: 24px;
        min-height: auto;
    }
    .hero-visual {
        display: flex;
        justify-content: center;
        width: 100%;
    }
    .hero-mockup {
        transform: none; /* 3D変形を無効化して見切れ防止 */
        max-width: 100%;
    }
    .mockup-image {
        max-height: 38vh; /* 画面内に収まるよう制限（短く） */
        object-fit: contain;
    }
    .dashboard-mockup-fallback {
        height: auto; /* 見切れ防止のため自動高さに */
        min-height: 220px;
        max-height: 40vh;
        overflow: visible; /* 下部が切れないように */
    }
    .dashboard-content {
        padding: 12px; /* 余白をさらに圧縮 */
        gap: 10px;
    }
    .dashboard-header {
        padding: 8px 12px;
    }
    .dashboard-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .dashboard-mockup-fallback .stat-value {
        font-size: 18px;
    }
    .dashboard-mockup-fallback .stat-label {
        font-size: 10px;
    }
    .dashboard-table {
        overflow: visible; /* テーブル内の見切れ防止 */
    }
    .dashboard-mockup-fallback .table-rows {
        gap: 6px;
    }
    .dashboard-mockup-fallback .table-row {
        padding: 6px 8px;
    }
    .dashboard-mockup-fallback .table-rows .table-row:nth-child(n+3) {
        display: none; /* 高さを抑えるため2行まで表示 */
    }
    .dashboard-mockup-fallback .ip-display {
        font-size: 9px;
        padding: 3px 6px;
    }
    .dashboard-mockup-fallback .cpu-bar { display: none; }

    /* 画像が取得できない環境でも確実にフォールバックを表示するためのデフォルト */
    .hero-mockup .mockup-image { display: none; }
    .hero-mockup .dashboard-mockup-fallback { display: block; }
    /* 画像読み込み成功時のみ、画像を優先表示 */
    .hero-mockup.image-ready .mockup-image { display: block; }
    .hero-mockup.image-ready .dashboard-mockup-fallback { display: none; }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 50px;
    }
    
    .steps-container {
        flex-direction: column;
    }
    
    .step-arrow {
        transform: rotate(90deg);
    }
    
    .pricing-comparison {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.recommended {
        transform: none;
    }
    
    .calculation-grid {
        flex-direction: column;
        gap: 20px;
    }
    
    .trial-steps {
        gap: 20px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-container {
        padding: 0 16px;
        gap: 40px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 40px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .problems-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .trial-steps {
        flex-direction: column;
        gap: 15px;
    }
    
    .steps, .problems, .features, .pricing, .contact {
        padding: 80px 0;
    }
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step:hover .step-visual,
.feature-card:hover .feature-icon {
    animation: fadeInUp 0.3s ease;
}

/* スクロールアニメーション用のクラス */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

.modal-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  width: 90%;
  max-width: 600px;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  max-height: 80vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-close {
  font-size: 24px;
  background: none;
  border: none;
  cursor: pointer;
}

.modal-body {
  margin-top: 10px;
  line-height: 1.6;
}

.modal-footer {
  text-align: right;
  margin-top: 20px;
}

/* レスポンシブ対応 - モバイル向けログインボタン調整 */
@media (max-width: 768px) {
  /* ヘッダーナビ調整 */
  .nav-menu {
    flex-direction: column;
    gap: 16px;
  }
  
  .btn-login-header {
    margin-right: 0;
    margin-bottom: 8px;
    order: -1;
  }
  
  /* ヒーローボタン調整 */
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
  
  .btn-primary,
  .btn-login-secondary {
    width: 100%;
    max-width: 320px; /* モバイルでやや大きく */
    text-align: center;
    justify-content: center;
    min-height: 56px; /* タッチフレンドリー */
    font-size: 16px; /* 読みやすいサイズ */
  }
  
  /* 料金セクションログインリンク調整 */
  .login-link-wrapper {
    margin-top: 16px;
    font-size: 13px;
  }

  .hero {
    background: linear-gradient(135deg, #002147 0%, #003366 50%, #002147 100%) !important;
  }






}