/* ニュース一覧のスタイル */
.ec-newsRole {
    margin-bottom: 30px;
    background: #fff;
    padding: 10px 30px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* セクションの見出し */
.ec-secHeading {
    margin-bottom: 30px;
}

.ec-newsRole__news{
    border-radius: 20px;
    border: 5px solid #F8F8F8!important;
    max-height: 350px; /* 3つのニュース項目の高さに制限 */
    overflow-y: auto; /* 縦スクロールを有効にする */
}

.ec-secHeading__en {
    display: block;
    font-size: 24px;
    font-weight: bold;
    color: #555;
    letter-spacing: 1px;
    font-family: 'Montserrat', sans-serif;
}

.ec-secHeading__line {
    display: block;
    margin: 15px auto;
    width: 50px;
    height: 3px;
    background: #3c7dbd;
}

.ec-secHeading__ja {
    display: block;
    font-size: 28px;
    color: #777;
    margin-top: 10px;
}
.ec-secHeading__ja.border{
    position: relative;
    border: none !important;
    font-size: 28px;
}

.ec-secHeading__ja.border::before{
    position: absolute;
    background-color: #333;
    border-radius: 1em;
    content: "";
    left: -2%;
    width: 5px;
    height: 36px;
    top: 50%;
    transform: translateY(-50%);
}

/* ニュース項目 */
.ec-newsRole__newsItem {
    margin-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.3s;
}

.ec-newsRole__newsItem:last-child {
    border-bottom: none;
}

.ec-newsRole__newsItem.is_active {
    background: #fff;
    /* box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); */
    border-radius: 5px;
    border-bottom: none;
}

/* ニュースの見出し */
.ec-newsRole__newsHeading {
    display: flex;
    align-items: center;
    padding: 15px 30px;
    cursor: pointer;
    transition: all 0.3s;
}

.ec-newsRole__newsHeading:hover {
    background: #f8f8f8;
}

/* ニュースの日付 */
.ec-newsRole__newsDate {
    flex: 0 0 120px;
    font-size: 14px;
    color: #3c7dbd;
    font-weight: bold;
}

/* ニュースのカラム */
.ec-newsRole__newsColumn {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ニュースのタイトル */
.ec-newsRole__newsTitle {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    transition: color 0.3s;
}

.ec-newsRole__newsHeading:hover .ec-newsRole__newsTitle {
    color: #333;
}

/* ニュースを閉じるボタン */
.ec-newsRole__newsClose {
    margin-left: 15px;
}

.ec-newsRole__newsCloseBtn {
    display: inline-block;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    color: #777;
    transition: all 0.3s;
}

.is_active .ec-newsRole__newsCloseBtn i {
    transform: rotate(180deg);
}

/* ニュースの詳細 */
.ec-newsRole__newsDescription {
    display: none;
    padding: 0 0 15px 120px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
}

.ec-newsRole__newsDescription a {
    color: #3c7dbd;
    text-decoration: none;
    font-weight: bold;
}

.ec-newsRole__newsDescription a:hover {
    text-decoration: underline;
}

/* もっと読むボタン */
.ec-inlineBtn--top {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 10px 0;
    background: #3c7dbd;
    color: #fff;
    text-align: center;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.ec-inlineBtn--top:hover {
    background: #f8f8f8;
}
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .ec-newsRole {
        padding: 15px 20px 20px 20px;
        margin-bottom: 20px;
    }
    .ec-secHeading__ja {
        font-size: 20px;
    }
    .ec-secHeading__ja.border{
        font-size: 20px !important;
    }
    .ec-secHeading__ja.border::before{
      left: -4%;
    }
}
/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .ec-newsRole {
        padding: 15px 20px 20px 20px;
        margin-bottom: 20px;
    }
    
    .ec-secHeading {
        margin-bottom: 20px;
    }
    
    .ec-secHeading__en {
        font-size: 20px;
    }
    
    .ec-secHeading__ja {
        font-size: 22px;
    }
    
    .ec-newsRole__news {
        border-width: 3px !important;
        max-height: 200px; /* モバイルでも2つ分の高さに設定 */
        overflow-y: auto;
    }
    
    .ec-newsRole__newsItem {
        margin-bottom: 10px;
    }
    
    .ec-newsRole__newsHeading {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 15px;
    }
    
    .ec-newsRole__newsDate {
        flex: none;
        margin-bottom: 8px;
        font-size: 13px;
    }
    
    .ec-newsRole__newsColumn {
        width: 100%;
    }
    
    .ec-newsRole__newsTitle {
        font-size: 15px;
        line-height: 1.4;
        width: calc(100% - 30px);
    }
    
    .ec-newsRole__newsDescription {
        padding: 0 15px 15px;
        font-size: 13px;
        line-height: 1.5;
    }
    
    .ec-inlineBtn--top {
        width: 80%;
        max-width: 200px;
        margin: 15px auto 0;
        padding: 8px 0;
        font-size: 13px;
    }
    .ec-secHeading__ja.border::before{
      left: -4%;
    }
}