:root {
    --primary-color: #4361ee;
    --primary-color-rgb: 67, 97, 238;
    --secondary-color: #3a86ff;
    --secondary-color-rgb: 58, 134, 255;
    --accent-color: #7209b7;
    --accent-color-rgb: 114, 9, 183;
    --accent-light: #9d4edd;
    --accent-light-rgb: 157, 78, 221;
    --text-color: #1f2937;
    --light-text-color: #6b7280;
    --background-color: #f0f4ff;
    --card-background: rgba(255, 255, 255, 0.8);
    --card-hover-background: rgba(255, 255, 255, 0.95);
    --glass-background: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(31, 38, 135, 0.15);
    --light-background: #f3f4f6;
    --border-color: #e5e7eb;
    --spacing-unit: 1rem;
    --blur-amount: 10px;
    --grid-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23203354' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

/* パーティクルエフェクト */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0;
    animation: float-particle infinite linear;
}

@keyframes float-particle {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100vh) translateX(20vw) scale(0.5);
        opacity: 0;
    }
}

/* 波紋効果 */
@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: 0.5;
    }
    100% {
        transform: scale(100);
        opacity: 0;
    }
}

.ripple {
    position: fixed;
    border-radius: 50%;
    transform: scale(0);
    background-color: rgba(255, 255, 255, 0.4);
    width: 2px;
    height: 2px;
    pointer-events: none;
    z-index: 9999;
    animation: ripple 1s ease-out forwards;
}

/* スピン アニメーション */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ページローディングエフェクト */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(67, 97, 238, 0.2);
    border-radius: 50%;
    border-top-color: rgb(67, 97, 238);
    animation: spin 1s ease-in-out infinite;
}

/* ローディング効果 */
body {
    opacity: 0;
    transition: opacity 1s ease;
}

body.page-loaded {
    opacity: 1;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    background-image: var(--grid-pattern), linear-gradient(125deg, #f0f4ff, #e6f0ff);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
    scroll-behavior: smooth;
    position: relative;
    z-index: 0;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 20%, rgba(var(--secondary-color-rgb), 0.05) 0%, transparent 50%), 
                radial-gradient(circle at 70% 60%, rgba(var(--accent-color-rgb), 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Header & Navigation */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    color: white;
    padding: 2rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    /* clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%); */
    /* min-height: 400px; */
    /* display: flex;
    align-items: center; */
    z-index: 1;
}

/* 利用規約とプライバシーポリシーページ用の狭いヘッダー */
.legal-pages .header {
    padding: 1rem 0;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    z-index: 0;
    pointer-events: none;
    animation: shimmer 8s infinite alternate;
}

@keyframes shimmer {
    0% {
        opacity: 0.2;
        transform: translateX(-30%) scale(1);
    }
    100% {
        opacity: 0.4;
        transform: translateX(30%) scale(1.2);
    }
}

.header::after {
    content: '';
    position: absolute;
    height: 200px;
    width: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 100%;
    z-index: 0;
    pointer-events: none;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    position: relative;
    z-index: 10;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(90deg, #ffffff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    position: relative;
    letter-spacing: 0.03em;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 100;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav-links {
    display: flex;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-left: 1.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
    position: relative;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    overflow: hidden;
}

.nav-links a.hover-effect {
    animation: pulse 0.5s ease-in-out;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(255, 255, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.5s ease;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    background-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.4);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: white;
    transition: all 0.3s;
    transform: translateX(-50%);
    opacity: 0;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 70%;
    opacity: 1;
}

.hero {
    text-align: center;
    padding: 3rem 0;
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(90deg, #fff, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    line-height: 1.3;
    animation: fadeInUp 1s ease-out forwards;
    letter-spacing: -0.02em;
    position: relative;
}

.accent-text {
    position: relative;
    display: inline-block;
    color: var(--accent-light);
    font-weight: 800;
    padding: 0 5px;
    z-index: 1;
}

.accent-text::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 40%;
    background-color: rgba(var(--accent-color-rgb), 0.15);
    z-index: -1;
    transform: rotate(-2deg) translateY(0);
    transition: all 0.3s ease;
}

.hero:hover .accent-text::before {
    height: 50%;
    transform: rotate(-1deg) translateY(-2px);
    background-color: rgba(var(--accent-color-rgb), 0.25);
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, rgba(255,255,255,0.3), rgba(255,255,255,0));
    animation: lineExpand 1.5s ease-out 0.5s forwards;
}

@keyframes lineExpand {
    0% { width: 0; left: 50%; }
    100% { width: 100%; left: 0; }
}

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

.hero .subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
    font-weight: 400;
    line-height: 1.5;
    position: relative;
}

.cta-buttons {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInUp 1s ease-out 0.6s forwards;
    opacity: 0;
}

.header-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.shape-1 {
    top: 15%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    animation: float 20s ease-in-out infinite alternate;
}

.shape-2 {
    top: 60%;
    right: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 60%);
    animation: float 25s ease-in-out infinite alternate-reverse;
}

.shape-3 {
    bottom: 10%;
    left: 20%;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, rgba(255,255,255,0) 70%);
    animation: float 15s ease-in-out infinite;
}

/* Features Section */
.features {
    padding: 5rem 0;
    position: relative;
}

.features.animate-in {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.feature-card {
    opacity: 0;
    transform: translateY(20px);
}

.feature-card:nth-child(1) {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
}

.feature-card:nth-child(2) {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.feature-card:nth-child(3) {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
}

.feature-card:nth-child(4) {
    animation: fadeInUp 0.6s ease-out 0.4s forwards;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
    color: var(--text-color);
    position: relative;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(var(--primary-color-rgb), 0.3);
}

/* スクロールアニメーションのスタイル */
.fade-element {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.section-hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 1s ease, transform 1s ease;
}

.section-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 強調表示アニメーション */
.highlight-active {
    transform: scale(1.03);
    box-shadow: 0 15px 30px rgba(31, 38, 135, 0.25);
    border-color: rgba(var(--accent-color-rgb), 0.3);
    z-index: 2;
}

:root {
    --primary-color-rgb: 67, 97, 238;
    --secondary-color-rgb: 58, 134, 255;
    --accent-color-rgb: 114, 9, 183;
}

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

.feature-card {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    z-index: 1;
    transition: all 0.3s;
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    background: var(--card-hover-background);
    z-index: 2;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    text-shadow: 0 0 15px rgba(var(--primary-color-rgb), 0.5);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: -1;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(var(--accent-color-rgb), 0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: overlay;
    backdrop-filter: blur(5px);
}

.feature-card:hover .card-overlay {
    opacity: 1;
}

.section-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.shape-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-color-rgb), 0.05) 0%, rgba(var(--primary-color-rgb), 0) 70%);
    bottom: -200px;
    right: -200px;
    animation: pulse 15s infinite alternate;
}

.shape-dots {
    position: absolute;
    width: 300px;
    height: 300px;
    background-image: radial-gradient(rgba(var(--secondary-color-rgb), 0.2) 1px, transparent 1px);
    background-size: 20px 20px;
    top: 10%;
    left: -100px;
    opacity: 0.2;
}

.section-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: -1;
    line-height: 0;
    transform: translateY(1px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    transition: all 0.3s ease;
    position: relative;
}

.feature-icon::after {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    top: -20%;
    left: -20%;
    background: radial-gradient(circle, rgba(var(--accent-color-rgb), 0.1) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover .feature-icon::after {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.feature-card p {
    color: var(--light-text-color);
    line-height: 1.7;
}

/* Highlights Section */
.highlights {
    padding: 5rem 0;
    position: relative;
}

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

.highlight-item {
    padding: 2rem;
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    transition: all 0.3s;
    background: var(--card-background);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    box-shadow: var(--glass-shadow);
}

.highlight-item:hover {
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(31, 38, 135, 0.2);
}

.highlight-item h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.highlight-item p {
    color: var(--light-text-color);
}

/* Calculation Model Section */
.calculation-model {
    padding: 5rem 0;
    position: relative;
}

.model-explanation {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.model-section {
    background: var(--card-background);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    transition: all 0.5s ease;
}

.model-section::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 40%;
    right: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0;
    transition: all 0.5s ease;
}

.model-section:hover::after,
.model-section.highlight-active::after {
    opacity: 1;
    left: 20%;
    right: 20%;
}

.model-section h3 {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.25rem;
    margin-bottom: 1.2rem;
    color: var(--primary-color);
    position: relative;
    padding-left: 0.5rem;
}

.section-number {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(var(--primary-color-rgb), 0.06);
    line-height: 1;
    pointer-events: none;
    transition: all 0.3s ease;
}

.model-section:hover .section-number {
    color: rgba(var(--primary-color-rgb), 0.1);
    transform: scale(1.1);
}

.card-accent {
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    opacity: 0.7;
    border-radius: 4px 0 0 4px;
    transition: all 0.3s ease;
}

.model-section:hover .card-accent {
    opacity: 1;
    width: 6px;
}

.promo-banner {
    margin-top: 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 1rem;
    padding: 2.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    overflow: hidden;
}

.promo-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    animation: shimmer 5s infinite linear;
}

.promo-content {
    flex: 1;
    min-width: 250px;
    color: white;
}

.promo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.promo-content p {
    margin-bottom: 1.5rem;
    line-height: 1.6;
    opacity: 0.9;
}

.app-download-btn {
    display: inline-block;
    background: white;
    color: var(--primary-color);
    padding: 0.8rem 1.5rem;
    border-radius: 2rem;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.app-download-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    background: var(--accent-color);
    color: white;
}

.promo-image {
    flex: 0 0 40%;
    min-width: 250px;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 0.8rem;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.promo-banner:hover .app-screenshot {
    transform: perspective(1000px) rotateY(-5deg) rotateX(3deg) translateZ(10px);
}

.bg-accent-circle {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(var(--accent-color-rgb), 0.05);
    bottom: -200px;
    right: -200px;
    z-index: -1;
}

.model-section p {
    color: var(--light-text-color);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.model-section p:last-child {
    margin-bottom: 0;
}

.model-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
    transform: rotate(-30deg);
    z-index: 0;
    pointer-events: none;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    padding: 3rem 0;
    margin-top: 5rem;
    position: relative;
    overflow: hidden;
}

.footer-wave {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    transform: translateY(-99%);
    line-height: 0;
    pointer-events: none;
}

.footer-content {
    color: white;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.footer-logo {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(90deg, white, #e0e7ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.03em;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.footer-links h4, 
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.footer-links h4::after, 
.footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

.footer-links:hover h4::after, 
.footer-contact:hover h4::after {
    width: 50px;
}

.footer-links {
    display: flex;
    flex-direction: column;
}

.footer-links a {
    margin-bottom: 0.8rem;
    display: inline-block;
    padding: 0.3rem 0;
    transition: all 0.3s ease;
    opacity: 0.8;
    position: relative;
}

.footer-links a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
}

.footer-links a:hover::before {
    opacity: 1;
    left: -20px;
}

.footer-links a:hover {
    transform: translateX(5px);
    opacity: 1;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-icon:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.footer a,
.footer a:link,
.footer a:visited {
    color: white !important;
    text-decoration: none;
    transition: all 0.3s;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.footer p {
    color: white;
    opacity: 0.9;
}

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

.footer a:hover {
    color: var(--secondary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        min-height: 350px;
    }
    
    .legal-pages .header {
        min-height: auto;
        padding: 0.8rem 0;
    }
    
    .nav {
        margin-bottom: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.3rem;
    }
    
    .promo-banner {
        padding: 1.5rem;
    }
    
    .promo-content,
    .promo-image {
        flex: 0 0 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-links h4::after, 
    .footer-contact h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .shape-1,
    .shape-2,
    .shape-3 {
        transform: scale(0.7);
    }

    .hamburger {
        display: block;
        z-index: 9999;
        position: relative;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        height: 100vh;
        background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        transition: all 0.3s ease-in-out;
        z-index: 9998;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.1);
        pointer-events: auto !important;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        margin: 0.7rem 0;
        width: 100%;
        padding: 0.7rem 1rem;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }

    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle,
    .hero .description {
        font-size: 1rem;
    }

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

    .feature-grid,
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .container {
        padding: 0 1.5rem;
    }
    
    .feature-card,
    .highlight-item,
    .model-section {
        padding: 1.5rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .legal-pages .header {
        padding: 0.6rem 0;
    }
    
    .hero h1 {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        width: 85%;
    }
}

.download-button {
    display: inline-block;
    transition: transform 0.3s ease;
    margin-top: 2rem;
    position: relative;
}

.download-button:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.2));
}

.download-button img {
    height: 44px;
}

/* アニメーション効果 */
.fade-element {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in {
    opacity: 1;
    transform: translateY(0);
}

/* タッチデバイス用ホバー効果 */
.touch-hover {
    transform: translateY(-10px) scale(1.03) !important;
    box-shadow: 0 20px 40px rgba(31, 38, 135, 0.2) !important;
    z-index: 10 !important;
    transition: transform 0.5s ease, box-shadow 0.5s ease !important;
}

/* グラス要素の共通スタイル */
.glass-card {
    background: var(--card-background);
    backdrop-filter: blur(var(--blur-amount));
    -webkit-backdrop-filter: blur(var(--blur-amount));
    border: 1px solid var(--glass-border);
    border-radius: 1rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    transform: rotate(30deg);
    z-index: 0;
    pointer-events: none;
}

/* スクロールバーのスタイリング */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(to bottom, var(--secondary-color), var(--accent-color));
}

/* 波動効果付きセクション区切り */
.section-wave {
    position: relative;
    width: 100%;
    height: 80px;
    overflow: hidden;
    margin-top: -1px;
}

.section-wave svg {
    position: absolute;
    width: 100%;
    height: 100%;
}

.section-wave path {
    fill: var(--background-color);
    transition: d 1.5s ease-in-out;
}

/* ダウンロードボタン強調効果 */
.download-button, .app-download-btn {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.download-button::after, .app-download-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
}

/* メニューオープン時のオーバーレイ */
body.menu-open {
    overflow: hidden;
}

body.menu-open::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9990;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    opacity: 1;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.download-button:hover::after, .app-download-btn:hover::after {
    opacity: 1;
    transform: scale(1);
}
