/* ========================================
   IXUI Corporate Site
   Modern Design System (Based on DX Page)
   ======================================== */

/* カスタムプロパティ */
:root {
    /* カラー */
    --color-primary: #0D9488;
    --color-primary-light: #10B981;
    --color-accent: #F97316;
    --color-accent-light: #FB923C;
    --color-bg: #FAFAF9;
    --color-bg-warm: #F5F5F4;
    --color-text: #292524;
    --color-text-muted: #4a4540;
    --color-text-light: #78716C;
    --color-white: #FFFFFF;
    --color-border: #E7E5E4;

    /* グラデーション */
    --gradient-primary: linear-gradient(135deg, #0D9488 0%, #10B981 100%);
    --gradient-accent: linear-gradient(135deg, #F97316 0%, #FB923C 100%);
    --gradient-bg: linear-gradient(180deg, #FAFAF9 0%, #F5F5F4 100%);

    /* シャドウ */
    --shadow-sm: 0 1px 2px rgba(41, 37, 36, 0.05);
    --shadow-md: 0 4px 6px rgba(41, 37, 36, 0.07), 0 2px 4px rgba(41, 37, 36, 0.05);
    --shadow-lg: 0 10px 15px rgba(41, 37, 36, 0.1), 0 4px 6px rgba(41, 37, 36, 0.05);
    --shadow-xl: 0 20px 25px rgba(41, 37, 36, 0.1), 0 10px 10px rgba(41, 37, 36, 0.04);

    /* ボーダー */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* スペーシング */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* トランジション */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* リセット */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* コンテナ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* レスポンシブヘルパー */
.sp-only {
    display: none;
}

.pc-only {
    display: inline;
}

@media (max-width: 768px) {
    .sp-only {
        display: inline;
    }
    .pc-only {
        display: none;
    }
}

/* ========================================
   ナビゲーション
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(41, 37, 36, 0.95);
    backdrop-filter: blur(10px);
    padding: var(--space-sm) 0;
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    height: 30px;
    width: auto;
    display: block;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.navbar-menu li a {
    display: block;
    padding: var(--space-sm) var(--space-md);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.875rem;
    font-weight: 400;
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
}

.navbar-menu li a:hover {
    background: var(--color-primary);
    color: white;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.navbar-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all var(--transition-base);
}

/* ========================================
   ボタン
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn svg {
    width: 20px;
    height: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.btn-white {
    background: var(--color-white);
    color: var(--color-primary);
    box-shadow: var(--shadow-md);
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.1rem;
}

/* ボタンエフェクト */
.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::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.5s ease;
}

.btn-shine:hover::before {
    left: 100%;
}

.btn-primary.btn-shine {
    box-shadow:
        var(--shadow-md),
        0 0 20px rgba(13, 148, 136, 0);
    transition: all var(--transition-base), box-shadow 0.4s ease;
}

.btn-primary.btn-shine:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 30px rgba(13, 148, 136, 0.4);
}

.btn-magnetic {
    transition: all var(--transition-base), transform 0.2s ease-out;
}

/* ========================================
   セクションヘッダー
   ======================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.section-label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: var(--color-white);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-md);
}

.section-label-white {
    background: rgba(255, 255, 255, 0.2);
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.section-title-white {
    color: var(--color-white);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section-description-white {
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   ヒーローセクション
   ======================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: var(--space-4xl) 0;
    overflow: hidden;
    background: var(--color-bg);
}

/* 背景レイヤー */
.hero-bg-layers {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.hero-paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-size: 150px 150px;
    mix-blend-mode: overlay;
}

.hero-grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(13, 148, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 148, 136, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
}

.hero-orbs {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    will-change: transform;
}

.hero-orb.orb-teal {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.25) 0%, transparent 70%);
    top: -10%;
    left: -10%;
    animation: floatOrb1 20s ease-in-out infinite;
}

.hero-orb.orb-green {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, transparent 70%);
    top: 50%;
    right: -5%;
    animation: floatOrb2 25s ease-in-out infinite;
}

.hero-orb.orb-orange {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.12) 0%, transparent 70%);
    bottom: 10%;
    left: 30%;
    animation: floatOrb3 18s ease-in-out infinite;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, 30px) scale(1.1); }
    50% { transform: translate(20px, -20px) scale(0.95); }
    75% { transform: translate(-30px, 40px) scale(1.05); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.08); }
    66% { transform: translate(30px, 20px) scale(0.92); }
}

@keyframes floatOrb3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-60px, -40px) scale(1.15); }
}

.hero-spotlight {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 60%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    will-change: left, top;
}

.hero:hover .hero-spotlight {
    opacity: 1;
}

/* 装飾シェイプ */
.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.gradient-blob {
    position: absolute;
    opacity: 0.15;
    filter: blur(2px);
    will-change: transform;
}

.blob-1 {
    width: 350px;
    height: 350px;
    top: -5%;
    right: 5%;
    animation: floatBlob1 20s ease-in-out infinite;
}

.blob-2 {
    width: 280px;
    height: 280px;
    bottom: 10%;
    left: 3%;
    animation: floatBlob2 25s ease-in-out infinite;
}

.blob-3 {
    width: 200px;
    height: 200px;
    bottom: 25%;
    right: 15%;
    animation: floatBlob3 18s ease-in-out infinite;
}

@keyframes floatBlob1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, 30px) rotate(10deg); }
    50% { transform: translate(15px, -15px) rotate(-5deg); }
    75% { transform: translate(-10px, 20px) rotate(5deg); }
}

@keyframes floatBlob2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(25px, -20px) rotate(-15deg); }
    66% { transform: translate(-15px, 15px) rotate(10deg); }
}

@keyframes floatBlob3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -25px) scale(1.1); }
}

/* パーティクル */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 50%;
    opacity: 0.4;
    will-change: transform, opacity;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(0) translateX(0);
        opacity: 0.4;
    }
    25% {
        opacity: 0.7;
    }
    50% {
        transform: translateY(-30px) translateX(10px);
        opacity: 0.5;
    }
    75% {
        opacity: 0.3;
    }
}

/* ヒーローコンテンツ */
.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-logo {
    margin-bottom: var(--space-xl);
}

.hero-logo img {
    filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.1));
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.hero-title .highlight {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-xl);
    letter-spacing: 2px;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* スタッガードアニメーション */
.stagger-item {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* スクロールインジケーター */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator span {
    display: block;
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-primary);
    border-radius: var(--radius-full);
    position: relative;
}

.scroll-indicator span::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0.3;
    }
}

/* ========================================
   サービス概要セクション
   ======================================== */
.services-overview {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-warm);
    border-bottom: 1px solid var(--color-border);
}

.services-overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.overview-card {
    text-align: center;
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition-base);
}

.overview-card:hover {
    box-shadow: var(--shadow-md);
}

.overview-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
}

.overview-icon svg {
    width: 100%;
    height: 100%;
}

.overview-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.overview-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

/* ========================================
   経営理念セクション
   ======================================== */
.vision {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

.vision-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.vision-statement {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--color-primary);
    margin-bottom: var(--space-2xl);
}

.vision-description p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 2;
}

.vision-description p:last-child {
    margin-bottom: 0;
}

/* ========================================
   セクション区切り
   ======================================== */
.section-divider {
    position: relative;
    padding: var(--space-4xl) 0;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
}

.section-divider .container {
    position: relative;
    z-index: 1;
}

.divider-dream {
    background-image: url('../img/bg/divider1.jpg');
}

.divider-change {
    background-image: url('../img/bg/divider2.jpg');
}

.divider-title {
    font-size: 2.25rem;
    font-weight: 400;
    color: var(--color-white);
    margin-bottom: var(--space-lg);
    letter-spacing: 2px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.divider-description {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 1px;
}

/* ========================================
   事業内容セクション
   ======================================== */
.about {
    padding: var(--space-4xl) 0;
    background: var(--gradient-bg);
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3xl);
}

.about-services {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}

.about-item {
    background: var(--color-white);
    padding: var(--space-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border-left: 4px solid var(--color-primary);
}

.about-item-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
}

.about-item-description {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.about-message {
    background: var(--color-white);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.about-message-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid var(--color-border);
}

.about-message-content p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.9;
    margin-bottom: var(--space-md);
}

.about-message-content p:last-child {
    margin-bottom: 0;
}

.message-signature {
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border);
    font-weight: 500;
    color: var(--color-text);
}

/* ========================================
   AI・DXセクション
   ======================================== */
.dx-section {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(180deg, #0F766E 0%, #0D9488 50%, #10B981 100%);
    overflow: hidden;
}

.dx-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.dx-bg-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
    background: white;
}

.dx-bg-shape.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    animation: floatShape 20s ease-in-out infinite;
}

.dx-bg-shape.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -50px;
    left: -100px;
    animation: floatShape 15s ease-in-out infinite reverse;
}

.dx-bg-shape.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: floatShape 25s ease-in-out infinite;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

.dx-section .container {
    position: relative;
    z-index: 2;
}

.dx-lead {
    text-align: center;
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--space-3xl);
    line-height: 1.8;
}

.dx-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    margin-bottom: var(--space-3xl);
}

.dx-feature-card {
    text-align: center;
    padding: var(--space-xl);
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: all var(--transition-base);
}

.dx-feature-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.dx-feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
}

.dx-feature-icon svg {
    width: 100%;
    height: 100%;
}

.dx-feature-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    line-height: 1.5;
}

.dx-feature-description {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.7;
}

.dx-cta {
    text-align: center;
}

/* ========================================
   グループセクション
   ======================================== */
.groups {
    padding: var(--space-4xl) 0;
    background: var(--color-white);
}

.groups-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

.group-card {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    background: var(--color-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.group-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.group-card img {
    max-height: 80px;
    width: auto;
    object-fit: contain;
}

/* ========================================
   フッター
   ======================================== */
.footer {
    background: var(--color-text);
    color: var(--color-white);
    padding: var(--space-4xl) 0 var(--space-2xl);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-3xl);
    margin-bottom: var(--space-2xl);
}

.footer-brand {
    display: flex;
    align-items: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

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

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: rgba(255, 255, 255, 0.8);
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.footer-column a {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    transition: color var(--transition-fast);
}

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

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.4);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color var(--transition-fast);
}

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

/* ========================================
   アニメーション
   ======================================== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ========================================
   レスポンシブ
   ======================================== */
@media screen and (max-width: 1050px) {
    .section-divider {
        background-attachment: scroll;
    }
}

@media (max-width: 1024px) {
    .services-overview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-lg);
    }

    .dx-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --space-4xl: 64px;
    }

    body {
        font-size: 16px;
    }

    /* ナビゲーション */
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(41, 37, 36, 0.98);
        flex-direction: column;
        padding: var(--space-md);
        gap: 0;
        display: none;
    }

    .navbar-menu.active {
        display: flex;
    }

    .navbar-menu li {
        width: 100%;
    }

    .navbar-menu li a {
        display: block;
        padding: var(--space-md);
        text-align: center;
    }

    /* ヒーロー */
    .hero {
        min-height: auto;
        padding: calc(var(--space-4xl) + 60px) 0 var(--space-4xl);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .scroll-indicator {
        display: none;
    }

    /* ブロブ簡略化 */
    .gradient-blob {
        opacity: 0.1;
        filter: blur(4px);
    }

    .blob-1 {
        width: 200px;
        height: 200px;
    }

    .blob-2 {
        width: 150px;
        height: 150px;
    }

    .blob-3 {
        display: none;
    }

    .hero-orb {
        filter: blur(100px);
        opacity: 0.5;
    }

    .hero-orb.orb-teal {
        width: 300px;
        height: 300px;
    }

    .hero-orb.orb-green {
        width: 250px;
        height: 250px;
    }

    .hero-orb.orb-orange {
        width: 200px;
        height: 200px;
    }

    /* サービス概要 */
    .services-overview-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .overview-card {
        padding: var(--space-lg);
    }

    /* セクション */
    .section-title {
        font-size: 1.75rem;
    }

    .vision-statement {
        font-size: 1.5rem;
    }

    .divider-title {
        font-size: 1.6rem;
    }

    /* DXセクション */
    .dx-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-md);
    }

    .dx-feature-card {
        padding: var(--space-lg);
    }

    /* グループ */
    .groups-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* フッター */
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .dx-features-grid {
        grid-template-columns: 1fr;
    }

    .btn-large {
        padding: var(--space-md) var(--space-xl);
        font-size: 1rem;
    }
}

/* ========================================
   アクセシビリティ対応
   ======================================== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .hero-orb,
    .gradient-blob,
    .particle,
    .dx-bg-shape {
        animation: none !important;
    }

    .gradient-blob path {
        animation: none !important;
    }

    .hero-spotlight {
        display: none;
    }

    .stagger-item,
    .fade-in {
        opacity: 1;
        transform: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* フォーカス状態の強化 */
.btn:focus-visible {
    outline: 3px solid var(--color-primary);
    outline-offset: 3px;
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* ハイコントラストモード対応 */
@media (prefers-contrast: high) {
    .hero-paper-texture,
    .hero-grid-pattern {
        display: none;
    }

    .hero-orb {
        opacity: 0.3;
    }

    .btn-primary {
        border: 2px solid var(--color-white);
    }
}
