/* ==========================================================================
   1. 全体設定
========================================================================== */

/* ページ全体 */
.strength-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px;
}

.section-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

@media (max-width: 768px) {
    .strength-container {
        padding: 20px 15px;
    }
    .section-container {
        font-size: 20px;
        margin-bottom: 15px;
        padding: 15px;
    }
}

/* ==========================================================================
   2. 実績が証明する信頼性セクション
========================================================================== */

.key-metrics {
    display: block;
}

.profit-graph-container {
    width: 100%;
    height: 300px;
    margin: 0 0 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
}

.profit-graph-container canvas {
    width: 100% !important;
    height: 100% !important;
}

.graph-description {
    text-align: right;
    font-size: 0.9em;
    color: #666;
    margin: 0;
}

.metrics-content {
    padding: 0 20px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.metric-card {
    background: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.metric-value {
    font-size: 2.5em;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 10px;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-label {
    font-size: 1.2em;
    color: #4a5568;
    margin-bottom: 10px;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.metric-description {
    font-size: 0.9em;
    color: #718096;
    min-height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 768px) {
    .profit-graph-container {
        height: 250px;
        padding: 0;
    }

    .graph-description {
        font-size: 0.6em;
    }

    .metrics-content {
        padding: 0;
    }

    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        margin-top: 10px;
        padding: 0;
    }

    .metric-card {
        padding: 10px;
    }

    .metric-value {
        font-size: 1.2em;
        min-height: 30px;
        margin-bottom: 0;
    }

    .metric-label {
        font-size: 0.8em;
        min-height: 15px;
        margin-bottom: 0;
    }

    .metric-description {
        font-size: 0.7em;
        min-height: 15px;
        line-height: 1.3;
    }
}

@media (max-width: 480px) {
    .metric-value {
        font-size: 0.7em;
        min-height: 20px;
        margin-bottom: 0;
    }

    .metric-label {
        font-size: 0.45em;
        min-height: 15px;
        margin-bottom: 0;
    }

    .metric-description {
        font-size: 0.45em;
        min-height: 15px;
        line-height: 1.3;
    }
}

@keyframes highlightFeature {
    0% { background-color: #fff; }
    50% { background-color: #f0f9eb; }
    100% { background-color: #fff; }
}

.highlight {
    animation: highlightEffect 1.5s ease-out;
}

/* ハイライトエフェクトアニメーション */
@keyframes highlightEffect {
    0% { background-color: rgba(255, 255, 0, 0.3); }
    100% { background-color: transparent; }
} 

/* アニメーション用のクラス */
.animate-in {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
}

/* パルスエフェクトのスタイル */
.pulse {
    animation: pulseEffect 0.5s ease;
}

/* 行ハイライトのスタイル */
.highlight-row {
    background-color: rgba(184, 233, 134, 0.1);
    transition: background-color 0.3s ease;
}

/* フェードインアップアニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* パルスエフェクトアニメーション */
@keyframes pulseEffect {
    0% { transform: scale(1); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ==========================================================================
   3. EA FARMのこだわりポイントセクション
========================================================================== */

.key-points-overview {
    display: block;
}

.points-content {
    padding: 0 20px;
}

.points-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 20px;
}

.point-card {
    text-align: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
    position: relative;
}

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

.point-card::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: #2c5282;
    opacity: 0.5;
    transition: opacity 0.3s ease;
}

.point-card:hover::after {
    opacity: 1;
}

.point-card h3 {
    color: #2c5282;
    font-size: 1.3em;
    margin-bottom: 15px;
}

.point-card p {
    color: #4a5568;
    font-size: 0.95em;
    line-height: 1.4;
    height: 2.8em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.point-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: #f0f9eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2c5282;
} 

@media (max-width: 768px) {
    /* key-points-overviewを非表示に */
    .key-points-overview {
        display: none;
    }
}

/* ==========================================================================
   3. 詳細な特徴と強みセクション
========================================================================== */

.key-features {
    display: block;
}

:root {
    /* カラー変数の定義 */
    --primary-color: #2c5282;
    --accent-color: #b8e986;
    --text-color: #4a5568;
    --border-color: #e2e8f0;
    --bg-gradient: linear-gradient(145deg, #ffffff, #f8fafc);
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.features-content {
    padding: 0 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    padding: 35px;
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.feature-card.visible,
.feature-card.visible.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.feature-card-title, 
.point-card-title {
    color: var(--primary-color);
    font-size: 1.5em;
    margin-bottom: 15px;
    padding: 8px 15px;
    position: relative;
    border-bottom: 2px solid var(--border-color);
}

.feature-card-title::after, 
.point-card-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--accent-color);
}

.feature-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: start;
    position: relative;
}

.feature-description {
    font-size: 1em;
    color: var(--text-color);
    position: relative;
    padding: 20px;
    background: var(--bg-gradient);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-collapse {
    max-height: 150px;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.content-collapse.expanded {
    max-height: 1000px;
}

.gradient-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* 続きを読むボタンのスタイル */
.read-more-btn {
    display: inline-block;
    padding: 8px 15px;
    background: #2c5282;
    color: white;
    border-radius: 20px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

/* 続きを読むボタンのホバーエフェクト */
.read-more-btn:hover {
    background: #1a365d;
    transform: translateY(-2px);
}

/* 展開時のグラデーションオーバーレイ */
.expanded .gradient-overlay {
    opacity: 0;
} 

/* 画像共通スタイル */
.calendar-image img, 
.chart-image img, 
.backtest-images img {
    width: 100%;
    height: auto;
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

/* 画像ホバーエフェクト */
.calendar-image img:hover, 
.chart-image img:hover, 
.backtest-images img:hover {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .features-content {
        padding: 0;
    }

    .features-grid {
        gap: 20px;
        margin-top: 15px;
    }

    .feature-card {
        padding: 15px;
    }

    .feature-card-title {
        font-size: 0.8em;
        margin-bottom: 15px;
    }

    .feature-content {
        grid-template-columns: 1fr;
        flex-direction: column;
        gap: 0;
    }

    .feature-description {
        font-size: 0.9em;
        padding: 0 20px;
        line-height: 1.5;
    }

    .feature-description ul {
        padding-left: 20px;
    }
    .content-collapse p {
        font-size: 0.6em;
    }
    .content-collapse li {
        font-size: 0.6em;
    }
    .read-more-btn {
        font-size: 0.6em;
        padding: 4px 6px;
        margin: 10px 0 20px 0;
    }
    .chart-image,
    .backtest-images,
    .calendar-image {
        margin-top: 15px;
    }

    .image-caption {
        font-size: 0.6em;
        margin-top: 5px;
    }
}

/* ==========================================================================
   3-1. リアルフォワードデータの提供
========================================================================== */

.trading-details {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.trading-details li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
}

/* ==========================================================================
   3-2. 厳密なバックテスト
========================================================================== */

.backtest-section {
    margin-bottom: 25px;
}

.backtest-section h4 {
    color: #2c5282;
    font-size: 1.2em;
    margin: 0;
    padding-left: 15px;
    border-left: 4px solid #b8e986;
}

.backtest-section p {
    margin: 15px 0;
    line-height: 1.6;
}

.note {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}
@media (max-width: 768px) {
    .backtest-section h4 {
        font-size: 0.7em;
        padding-left: 10px;
    }
}

/* ==========================================================================
   3-3. 毎日の取引機会
========================================================================== */

.trading-schedule {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.trading-schedule li {
    padding: 8px 0;
    border-bottom: 1px solid #edf2f7;
    color: #4a5568;
}

@media (max-width: 768px) {
    .trading-schedule {
        margin: 10px 0;
    }
}