@import "./import.css";
/*---------------------------
表絵の限定的なデザイン
----------------------------*/

/*---------------------------
カスタムセレクトボックスのスタイル
----------------------------*/
.display_select {
    margin-bottom: 1rem;
    text-align: left;
    position: relative;
    width: fit-content;
}

.custom-select {
    appearance: none; /* デフォルトのスタイルを無効にする */
    background-color: rgba(var(--kyushu-main-rgb), 0.1); /* 背景色を変更 */
    border: 1px solid var(--kyushu-main); /* ボーダーを変更 */
    border-radius: 3px; /* 角を丸くする */
    padding: 12px 36px 12px 16px; /* 内側の余白 */
    font-size: 0.9rem; /* フォントサイズ */
    cursor: pointer; /* カーソルをポインターに */
    color: var(--kyushu-main) !important;
}

.custom-select:focus {
    outline: none; /* フォーカス時のアウトラインを無効に */
}

/* セレクトボックスの矢印アイコン */
.display_select::after {
    position: absolute;
    display: inline-block;
    content: '▼';
    font-size: 10px;
    top: 23%;
    right: 12px;
    user-select: none;
    color: var(--kyushu-main);
}

.ranking_wrapper.none {
    display: none;
}

.ranking_wrapper .news {
    display: none;
}

.ranking_wrapper ul {
    list-style: none;
}

.ranking_block {
    display: none;
}

.ranking_block.selected {
    display: block;
}

@media screen and (max-width: 640px) {
    .display_select {
        width: 100%;
    }
    .custom-select {
        width: 100%;
        padding: 12px 0;
        text-align-last: center;
    }
}

/*---------------------------
ニュースセクションのスタイル
----------------------------*/
.top_news_wrapper {
    margin-bottom: 0.5rem;
}

.top_news_section {
    padding: 1.5rem 1rem 0;
}

.top_news_title {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
    font-weight: bold;
}

.top_news_item {
    display: block;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.top_news_item:hover {
    opacity: 0.8;
}

.top_news_content {
    display: flex;
    gap: 1rem;
    align-items: center;
    background-color: #fff;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}

.top_news_item:hover .top_news_content {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.top_news_thumbnail {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 2px;
    flex-shrink: 0;
}

.top_news_info {
    flex: 1;
    text-align: left;
}

.top_news_date {
    font-size: 0.85rem;
    line-height: 1.2;
    color: var(--gray-text-color);
    margin-bottom: 0.35rem;
}

.top_news_headline {
    font-size: 1rem;
    color: #333;
    line-height: 1.4;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    text-overflow: ellipsis;
}

.top_news_more {
    text-align: right;
}

.top_news_more img {
    width: 14px;
    height: 14px;
    margin-left: 0.25rem;
}

.top_news_link {
    display: inline-flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--gray-text-color) !important;
    text-decoration: none;
    padding: 0.5rem 0.5rem;
}

/* エリア別カラー対応 */
/* .top_news_link.kyushu {
    border-color: var(--kyushu-main);
    color: var(--kyushu-main);
}

.top_news_link.tochigi {
    border-color: var(--tochigi-main);
    color: var(--tochigi-main);
}

.top_news_link.gunma {
    border-color: var(--gunma-main);
    color: var(--gunma-main);
} */

/* レスポンシブ対応 */
@media screen and (max-width: 768px) {
    .top_news_section {
        padding: 1rem;
    }

    .top_news_title {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }

    .top_news_content {
        /* flex-direction: column; を削除して横並びを維持 */
        gap: 0.8rem;
        padding: 0.8rem;
    }

    .top_news_thumbnail {
        /* サイズを固定、拡大しない */
        width: 80px;
        height: 60px;
    }

    .top_news_headline {
        font-size: 0.95rem;
    }

    .top_news_link {
        font-size: 0.75rem;
        padding: 0.4rem 0.5rem;
    }
}

@media screen and (max-width: 480px) {
    .top_news_wrapper {
        margin-bottom: 0;
    }

    .top_news_section {
        padding: 0.8rem 0.8rem 0;
    }

    .top_news_title {
        font-size: 1rem;
    }

    .top_news_content {
        gap: 0.6rem;
        padding: 0.6rem;
        border-radius: 0;
        border: none;
    }

    .top_news_thumbnail {
        /* さらに小さい画面でもサイズを保持 */
        width: 25%;
        height: 64px;
    }

    .top_news_date {
        font-size: 0.7rem;
    }

    .top_news_headline {
        font-size: 0.7rem;
    }
}