/* --- Roadmapページ専用のスタイル --- */
.roadmap-main {
    padding-top: 120px;
    padding-bottom: 80px;
}
.content-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: left;
}
/* .main-title and .subtitle are now in base.css for consistency */
.roadmap-container {
    position: relative;
}
/* タイムラインの縦線 */
.roadmap-container::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: #e0e0e0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}
.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
}
/* 奇数番目を左側に配置 */
.timeline-item:nth-child(odd) {
    left: 0;
}
/* 偶数番目を右側に配置 */
.timeline-item:nth-child(even) {
    left: 50%;
}
/* タイムライン上の丸い点 */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;  /* ← 変更なし */
    height: 16px; /* ← 変更なし */
    
    /* 色の変更 */
    background: linear-gradient(45deg, #a7d7ff, #ffc4d8); /* ← 水色からピンクへのグラデーション */
    border: none; /* ← 元のborderは不要なので削除 */

    /* 位置の修正 */
    top: 28px; /* ← 位置を微調整 */
    transform: translateY(-50%); /* ← 要素自身の高さの半分だけ上にずらし、垂直中央に配置 */

    border-radius: 50%;
    z-index: 1;
}

/* 日付の位置も丸に合わせて調整 */
.timeline-date {
    font-weight: bold;
    color: #555;
    position: absolute;

    /* 位置の修正 */
    top: 28px; /* ← 丸の位置と合わせる */
    transform: translateY(-50%); /* ← こちらも垂直中央に配置 */

    /* 日付の改行を防止 */
    white-space: nowrap;
}
.timeline-item:nth-child(odd)::after {
    right: 0;
    transform: translate(50%, -50%); /* 自身の幅の半分だけ右に、高さの半分だけ上に移動 */
}
.timeline-item:nth-child(even)::after {
    left: 0;
    transform: translate(-50%, -50%); /* 自身の幅の半分だけ左に、高さの半分だけ上に移動 */
}
/* ステータスバッジ */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
.status-icon {
    font-size: 1.2em;
    line-height: 1;
}
.status-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ステータスごとの色分け */
.status-launched .status-badge {
    background: linear-gradient(135deg, #7ED321, #5CB85C);
    color: white;
}
.status-development .status-badge {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
    color: white;
}
.status-planned .status-badge {
    background: linear-gradient(135deg, #F5A623, #E67E22);
    color: white;
}
.status-future .status-badge {
    background: linear-gradient(135deg, #BD10E0, #9013FE);
    color: white;
}

/* タイムラインの丸もステータスに合わせて色変更 */
.status-launched::after {
    background: linear-gradient(45deg, #7ED321, #5CB85C) !important;
}
.status-development::after {
    background: linear-gradient(45deg, #4A90E2, #357ABD) !important;
}
.status-planned::after {
    background: linear-gradient(45deg, #F5A623, #E67E22) !important;
}
.status-future::after {
    background: linear-gradient(45deg, #BD10E0, #9013FE) !important;
}

.timeline-content {
    padding: 20px;
    position: relative;
    border-radius: 8px;
}
.timeline-title {
    display: block;
    margin-top: 0;
    margin-bottom: 0;
    font-size: 2em;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}
.timeline-content img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    margin-bottom: 10px;
}
.timeline-content p {
    font-size: 1.3em;
    line-height: 2;
    color: #666;
    word-break: keep-all;
    overflow-wrap: break-word;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}
.timeline-date {
    font-weight: bold;
    font-size: 1.2em;
    color: #555;
    position: absolute;
    top: 30px;
}
.timeline-item:nth-child(odd) .timeline-content {
    text-align: left;
}
.timeline-item:nth-child(odd) .timeline-date {
    left: 110%; /* タイムラインを挟んで反対側に配置 */
    margin-left: 20px;
}
.timeline-item:nth-child(even) .timeline-content {
    text-align: left;
}
.timeline-item:nth-child(even) .timeline-date {
    right: 110%; /* タイムラインを挟んで反対側に配置 */
    margin-right: 20px;
}


/* レスポンシブ対応 */
@media (max-width: 768px) {
    .roadmap-main {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .content-wrapper {
        padding: 0 15px;
    }

    .main-title {
        font-size: 2.5em;
    }

    .subtitle {
        font-size: 1.1em;
        margin-bottom: 50px;
    }

    .roadmap-container::after {
        left: 20px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        width: 100%;
        left: 0;
        padding-left: 60px;
        padding-right: 15px;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
        transform: translate(0, -50%);
    }

    .timeline-item:nth-child(odd) .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        text-align: left;
    }

    .timeline-date {
        position: static;
        display: block;
        margin-bottom: 10px;
        text-align: left;
        white-space: nowrap;
        font-size: 1.1em;
    }

    .timeline-title {
        font-size: 1.8em;
    }

    .timeline-content p {
        font-size: 1.2em;
        padding: 20px;
    }

    .status-badge {
        font-size: 1em;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .roadmap-main {
        padding-top: 90px;
        padding-bottom: 50px;
    }

    .main-title {
        font-size: 2em;
    }

    .subtitle {
        font-size: 1em;
        margin-bottom: 40px;
    }

    .roadmap-container::after {
        left: 15px;
    }

    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 10px;
    }

    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 7px;
        width: 14px;
        height: 14px;
    }

    .timeline-title {
        font-size: 1.5em;
        line-height: 1.3;
    }

    .timeline-content p {
        font-size: 1.1em;
        padding: 15px;
        line-height: 1.8;
    }

    .timeline-date {
        font-size: 1em;
    }

    .status-badge {
        font-size: 0.9em;
        padding: 6px 14px;
    }

    .status-icon {
        font-size: 1em;
    }

    .timeline-content img {
        max-height: 300px;
        border-radius: 10px;
    }
}
