/**
 * 経営理念セクションのスクロールアニメーションとページネーション
 * 
 * @package Ask-M
 */

/* 経営理念コンテナ */
#management-philosophy-container {
    display: none;
    /* display: flex; */
    flex-direction: row;
    align-items: flex-start;
    position: relative;
    margin: 0 auto;
}

/* 経営理念アイテムコンテナ */
.philosophy-items-container {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ページネーション */
.philosophy-pagination {
    position: fixed;
    right: 30px;
    /* 事業内容のページネーションと重ならないよう右側に移動 */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 40px;
    z-index: 999;
    /* 事業内容のページネーションより少し低く設定 */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

/* ページネーションが表示される時の状態 */
.philosophy-pagination.visible {
    opacity: 1;
    visibility: visible;
}

/* ページネーション縦中央線 */
.philosophy-pagination::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -100px;
    bottom: -100px;
    width: 2px;
    background: var(--main-color);
    transform: translateX(-50%);
    z-index: -1;
    /* ページネーションドットの後ろに配置 */
}

.philosophy-pagination .pagination-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    border: 2px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.philosophy-pagination .pagination-dot:hover {
    background: rgba(255, 255, 255, 1);
    border-color: var(--main-color);
    transform: scale(1.1);
}

.philosophy-pagination .pagination-dot.active {
    background: var(--main-color);
    border-color: var(--main-color);
    transform: scale(1.15);
}

.philosophy-pagination .pagination-dot .dot-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.philosophy-pagination .pagination-dot.active .dot-number {
    color: white;
}

/* アニメーション用のクラス */
.animate-philosophy-item {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
}

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

@media (min-width:1350px) {
    .philosophy-section {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        min-height: 45vh !important;
    }
}

.our-thoughts.philosophy-section {
    display: none;
    padding: var(--back-padding) !important;
    align-items: flex-start;
    flex-direction: column;
    position: relative;
    box-sizing: border-box;
    background-size: 7px 7px;
    background-color: #ae7154 !important;
    background-image: linear-gradient(-45deg, #9f3c3c 25%, transparent 25%, transparent 50%, #993636 50%, #c15050 75%, transparent 75%, transparent);
}

.our-thoughts.philosophy-section .news_header .section-title,
.our-thoughts.philosophy-section .news_header .section-title-en {
    color: #ffffff;
}

.our-thoughts.philosophy-section .news_header .view-more {
    margin-right: 0;
}

/* 経営理念セクションの基本スタイル調整 */
.philosophy-section {
    padding: var(--back-padding);
    position: relative;
    min-height: 65vh;
    display: flex;
    align-items: center;
}

/* 奇数番目のセクション（1番目、3番目）- デフォルトの背景色 */
.philosophy-section:nth-child(odd) {
    background-color: #b3e5fc60;
}

/* 偶数番目のセクション（2番目、4番目）- 異なる背景色 */
.philosophy-section:nth-child(even) {
    background-color: #e1f5fe63;
}

/* パララックス効果用のスタイル */
.philosophy-content {
    position: relative;
    z-index: 2;
}

.philosophy-image {
    transition: transform 0.3s ease;
}

.animate-philosophy-item.fade-in .philosophy-image {
    transform: scale(1.05);
}

/* レスポンシブ対応 */
@media (max-width: 1024px) {

    /* タブレット用のページネーション調整 */
    .philosophy-pagination {
        right: 80px;
        /* タブレットでも適切な間隔を保持 */
    }

    .philosophy-pagination .pagination-dot {
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 768px) {
    #management-philosophy-container {
        flex-direction: column;
    }

    .philosophy-items-container {
        width: 100%;
    }

    /* モバイルでのページネーション */
    .philosophy-pagination {
        display: none;
    }

    .philosophy-pagination .pagination-dot {
        width: 40px;
        height: 40px;
    }

    .philosophy-pagination .pagination-dot .dot-number {
        font-size: 12px;
    }

    .philosophy-section {
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .philosophy-pagination .pagination-dot {
        width: 35px;
        height: 35px;
    }

    .philosophy-pagination .pagination-dot .dot-number {
        font-size: 10px;
    }
}