/* EXCEE トップページ最適化CSS */
/* カラーテーマの定義 */
:root {
    --primary-color: #66BB6A;
    --primary-hover: #4CAF50;
    --secondary-color: #81C784;
    --accent-color: #C8E6C9;
    --background-light: #F1F8E9;
    --background-white: #ffffff;
    --text-color: #2E7D32;
    --shadow-color: rgba(102, 187, 106, 0.15);
}

/* 基本スタイル */
body {
    font-family: 'Zen Maru Gothic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--background-light);
}

/* ヒーローセクション */
.hero-section {
    min-height: 400px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(102, 187, 106, 0.9), rgba(129, 199, 132, 0.8));
    padding: 20px 0;
    border-radius: 0 0 30px 30px;
    will-change: transform;
}

/* コンポーネントスタイル */
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.hero-image, .hero-text {
    flex: 1;
}

.hero-logo {
    max-width: 100%;
    height: auto;
    will-change: transform;
}

.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--background-white);
    margin-bottom: 1rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--background-white);
    margin-bottom: 1.5rem;
}

/* ボタンスタイル */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.25rem;
    width: 100%;
    max-width: 300px;
}

.cta-button, .secondary-button {
    display: inline-block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    background-color: var(--primary-color);
    color: var(--background-white);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    will-change: transform, box-shadow;
}

.cta-button:hover, .secondary-button:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px var(--shadow-color);
}

/* セクションスタイル */
.feature-section, .detail-section {
    padding: 5rem 0;
    background-color: var(--background-white);
}

/* カードスタイル */
.feature-card, .detail-card {
    background-color: var(--background-white);
    border-radius: 20px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 8px 20px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 2px solid var(--accent-color);
    will-change: transform, box-shadow;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px var(--shadow-color);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    transition: transform 0.2s ease;
    will-change: transform;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
}

/* リストスタイル */
.feature-card ol {
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    counter-reset: feature-list;
}

.feature-card ol li {
    list-style-type: none;
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-card ol li::before {
    counter-increment: feature-list;
    content: counter(feature-list);
    position: absolute;
    left: -1rem;
    width: 1.8rem;
    height: 1.8rem;
    background-color: var(--accent-color);
    color: var(--text-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: bold;
}

/* Forced Colors Mode対応 */
@media (forced-colors: active) {
    .hero-section {
        background: Canvas;
        border: 1px solid ButtonBorder;
    }

    .hero-title, .hero-subtitle {
        color: CanvasText;
    }

    .cta-button, .secondary-button {
        background-color: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonBorder;
        box-shadow: none;
    }

    .feature-card, .detail-card {
        background-color: Canvas;
        border: 1px solid ButtonBorder;
        box-shadow: none;
    }

    .feature-icon {
        color: ButtonText;
    }

    .feature-card ol li::before {
        background-color: ButtonFace;
        color: ButtonText;
        border: 1px solid ButtonBorder;
    }
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        height: auto;
        padding: 2.5rem 0;
    }

    .hero-text {
        align-items: center;
    }

    .button-group {
        align-items: center;
        margin: 1.25rem auto;
    }
}

/* アニメーション最適化 */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* パフォーマンス最適化 */
* {
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

/* GPU加速の適用 */
.hero-section,
.feature-card,
.hero-logo {
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}