/* activities.css - ソニーミュージック財団 */

/*******************************
 * 私たちの活動セクション
 *******************************/

/* セクション全体 */
.activities {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.activities_{
    width: 97.22%;
    background-color: var(--color-dark-blue);
    border-bottom-left-radius: 20px;
    padding-bottom: 120px;
    color: #ffffff;
}

/* コンテナ */
.activities__container {
    display: flex;
    overflow: hidden;
    align-items: center;
}

/* 左側：テキストエリア */
.activities__text {
    width: 35%; /* 約280pxになるように調整（1200pxコンテナ基準） */
    padding: 60px 40px 60px 120px; /* 右側の余白を少し調整 */
}


/* オレンジドット */
.activities__dot {
    display: block;
    width: 8px;
    height: 8px;
    background-color: #FF6600;
    border-radius: 50%;
    margin-bottom: 16px;
}

/* 英語タイトル */
.activities__subtitle {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
}

/* 日本語タイトル */
.activities__title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 40px;
}

/* 活動メニューリスト */
.activities__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

/* 活動項目 */
.activities__item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    background-color:  #002458;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* アクティブな活動項目 */
.activities__item--active {
    background-color: rgba(51, 91, 143, 0.8); /* 明るめの青 */
}

/* 活動項目の番号 */
.activities__item-number {
    font-size: 20px;
    font-weight: 700;
    margin-right: 16px;
    min-width: 30px;
    opacity: 0.5;
}

/* 活動項目のテキスト */
.activities__item-text {
    font-size: 16px;
    flex-grow: 1;
    opacity: 0.5; /* 非アクティブ時は50%の透明度 */
    transition: opacity 0.3s; /* 滑らかな切り替え */
    padding-right: 15px;
}
/* ホバー時のスタイル - アクティブと同じに */
.activities__item:hover {
    background-color: rgba(51, 91, 143, 0.8); /* アクティブ時と同じ背景色 */
}

/* ホバー時のテキスト - 不透明に */
.activities__item:hover .activities__item-text {
    opacity: 1;
}

.activities__item:hover .activities__item-number {
    opacity: 1;
}

/* アクティブな活動項目 */
.activities__item--active {
    background-color: rgba(51, 91, 143, 0.8); /* 明るめの青 */
}

/* アクティブな活動項目のテキスト - 不透明に */
.activities__item--active .activities__item-text {
    opacity: 1;
}

.activities__item--active .activities__item-number {
    opacity: 1;
}

/* 活動項目のドット */
.activities__item-dot {
    min-width: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5); /* 薄い白色 */
    flex-shrink: 0;
    transition: background-color 0.3s; 
}

/* アクティブな項目のドット */
.activities__item--active .activities__item-dot {
    background-color: #FF6600; /* オレンジ色 */
}

.activities__item:hover .activities__item-dot {
    background-color: #FF6600; /* オレンジ色 */
}

/* 詳しく見るボタン */
.activities__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.activities__button:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
}

/* ボタン内の矢印 */
.activities__button-arrow {
    margin-left: 10px;
    font-weight: normal;
}

/* 右側：画像エリア */
.activities__content {
    width: 50%;
    overflow: hidden;
}

.activities__content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* その他の活動を見るボタン */
.activities__more-button-container {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.activities__more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 16px 60px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
    background-color: #002458;
}

.activities__more-button:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
}

/* ボタン内の矢印 */
.activities__more-button-arrow {
    margin-left: 10px;
}


/* 右側：コンテンツ表示エリア */
.activities__content {
    width: 60%; /* 左側に合わせて調整 */
    background-color: rgba(51, 91, 143, 0.8);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* コンテンツヘッダー - 矢印位置調整 */
.activities__content-header {
    padding: 20px 40px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
}

.activities__content-title-header {
    margin-left: 8px;
    margin-right: 8px; /* 矢印との間隔を追加 */
    white-space: nowrap; /* タイトルが長い場合も改行せずに表示 */
}

/* コンテンツ番号 */
.activities__content-number {
    margin-right: 8px;
}

/* 矢印アイコン */
.activities__content-arrow {
    margin-left: 0; /* autoを削除して隣接させる */
}

/* コンテンツ本体 */
.activities__content-body {
    display: flex;
    padding: 30px;
    align-items: flex-start; /* 上部揃え */
}

/* コンテンツ画像 */
.activities__content-image {
    width: 100%;
    max-width: 360px; 
    aspect-ratio: 1 / 1;
    flex-shrink: 0; /* サイズ固定 */
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2); /* 薄い白枠を追加 */
}

.activities__content-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* コンテンツテキスト */
.activities__content-text {
    flex: 1; /* 残りの幅を全て使用 */
    padding-left: 30px;
    display: flex;
    flex-direction: column;
}
/* コンテンツタイトル */
.activities__content-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.4;
}

/* コンテンツ説明 */
.activities__content-description {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 30px;
    font-weight: 500;
}

/* 詳しく見るボタン */
.activities__content-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary);
    color: var(--secondary);
    padding: 14px 40px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    align-self: flex-start;
    margin-top: auto;
    transition: background-color 0.3s, transform 0.3s;
}

.activities__content-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
}

/* ボタン内の矢印 */
.activities__content-button-arrow {
    margin-left: 10px;
}

/* 区切り線 */
.activities__divider {
    width: 90%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 auto ;
}

/* その他の活動を見るボタン */
.activities__more-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.activities__more-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--secondary);
    color: var(--primary);
    padding: 16px 60px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.3s, transform 0.3s;
}

.activities__more-button:hover {
    background-color: #eaeaea;
    transform: translateY(-2px);
}

/* ボタン内の矢印 */
.activities__more-button-arrow {
    margin-left: 10px;
}

@media (max-width: 1100px) {
    .activities__item-text {
        font-size: 12px;
    }

    .activities__content-image {
        max-width: 240px; 
    }
}

@media (max-width: 900px) {
    .activities__content-image {
        max-width: 170px; 
    }
}


/* デスクトップ表示設定 */
@media screen and (min-width: 769px) {
    /* リスト内のモバイル用コンテンツを非表示 */
    .activities__list .activities__content {
        display: none !important;
    }
    
    /* デスクトップ用コンテンツを表示 */
    .activities__content.desktop-only {
        display: block;
    }
}




/* レスポンシブ対応 - 768px以下 */
@media screen and (max-width: 768px) {

    /* デスクトップ用コンテンツを非表示 */
    .activities__content.desktop-only {
        display: none !important;
    }
    
    /* リスト内のモバイル用コンテンツを表示（アコーディオンで制御） */
    .activities__list .activities__content {
        display: block;
    }

    .activities_{
        padding-bottom: 40px;
    }

    /* コンテナの調整 */
    .activities__container {
      flex-direction: column;
      align-items: stretch;
    }

    .activities__title{
        font-size: 28px;
    }
  
    /* 左側テキストエリアの調整 */
    .activities__text {
      width: 100%;
      padding: 40px 20px 0;
    }
  
    /* 活動リストの調整 */
    .activities__item {
      width: 100%;
      margin-bottom: 5px;
    }
  
    /* コンテンツエリアの基本スタイル */
    .activities__content {
        width: 100%;
        height: 0;
        overflow: hidden;
        transition: height 0.4s ease-in-out, opacity 0.3s ease;
        opacity: 0;
        margin-top: 0;
        background-color: rgba(51, 91, 143, 0.8);
        will-change: height, opacity;
    }
  
    /* アコーディオン表示用のクラス */
    .activities__content--visible {
        height: auto; /* CSSが高さを自動計算 */
        opacity: 1;
        border-radius: 5px;
        overflow: visible;
        padding-bottom: 20px; /* 内容に余裕を持たせる */
    }

    .activities__item {
        -webkit-tap-highlight-color: transparent;
        transform: translateZ(0);
    }

    /* アニメーション中のガタつき防止 */
    .activities__content-body {
        opacity: 0;
        transition: opacity 0.2s ease;
    }
    
    /* アコーディオン開閉時の視覚的フィードバック強化 */
    .activities__content-image {
        transition: transform 0.3s ease;
    }
    
    .activities__content--visible .activities__content-image {
        transform: translateY(0);
    }

    .activities__content--visible .activities__content-body {
        opacity: 1;
        transition-delay: 0.2s; /* 開いた後に内容を表示 */
    }
  
    /* アクティブ項目の下の角を丸くしない */
    .activities__item--active {
      border-bottom-left-radius: 0;
      border-bottom-right-radius: 0;
    }
  
    /* コンテンツヘッダーは不要なので非表示 */
    .activities__content-header {
      display: none;
    }
  
    /* コンテンツ本体のレイアウト調整 */
    .activities__content-body {
      flex-direction: column;
      padding: 20px;
      border-radius: 5px;
    }
  
    /* 画像エリアのサイズ調整 */
    .activities__content-image {
      width: 100%;
      height: auto;
      max-width: none;
      margin-bottom: 20px;
    }
  
    /* テキストエリアの余白調整 */
    .activities__content-text {
      padding-left: 0;
    }
  
    /* ドットの位置を右側に移動 */
    .activities__item {
      justify-content: space-between;
      border-bottom-left-radius: 5px;
      border-bottom-right-radius: 5px;
    }
    
    .activities__item-number {
      order: 1;
      font-size: 15px;
    }
    
    .activities__item-text {
      order: 2;
      font-size: 15px;
    }
    
    .activities__item-dot {
      order: 3;
    }

    .activities__list {
        gap: 0;
    }
  }






