.top_page_container {
    container-type: inline-size;
    max-width: 100%;
    margin: 0 auto;
    font-family: "Outfit", "Inter", "Roboto", sans-serif;
    color: #000;
    background: #f0f0f0;
}

/* =========================================
   Hover Effects Consistency
   ========================================= */

/* 基本のリンクホバー（テキスト系はこちら） */
a {
    transition: opacity 0.3s ease;
}

a:hover {
    opacity: 0.7; /* 少し透明度を強めて変化をわかりやすく */
}

/* 画像を含むリンクのホバー（画像のみ透明度を下げる） */
a:hover img {
    opacity: 0.9;
}

/* ボタン・カード・バナー画像等の浮き上がりエフェクト */
.youtube_card,
.youtube_more_btn,
.blog_header_recruit_btn,
.top_post_card,
.top_hero_card,
.cmn_btn,
.special_item,
.recommend_item,
.news_item,
.top_hero_slide,
.sidebar_recruitment_btn,
.sidebar_topic_item,
.search-submit,
.recommended-item,
.post_card,
.sidebar_banner img,
.blog_footer_cta_btn,
button {
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease,
        background-color 0.3s ease;
}

.youtube_card:hover,
.youtube_more_btn:hover,
.blog_header_recruit_btn:hover,
.top_post_card:hover,
.top_hero_card:hover,
.cmn_btn:hover,
.recommend_item:hover,
.news_item:hover,
.search-submit:hover,
.recommended-item:hover,
.post_card:hover,
.sidebar_banner img:hover,
.blog_footer_cta_btn:hover,
button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12) !important;
    opacity: 1 !important; /* ボタン・カード系は浮き上がりを強調するため透明度は変えない */
}
.special_item:hover,
.top_hero_slide:hover,
.sidebar_topic_item:hover,
.sidebar_recruitment_btn:hover {
    opacity: 0.7 !important; /* ボタン・カード系は浮き上がりを強調するため透明度は変えない */
}
/* テキストのみのナビゲーション等は透明度だけで表現 */
.blog_header_nav_item a:hover,
.blog_footer_nav_item a:hover {
    transform: none;
    box-shadow: none;
}

.top_main_row {
    display: flex;
    gap: 4cqw;
}

.top_main_content {
    width: 65%;
}

.top_sidebar {
    width: 23%;
    margin-top: 5cqw;
}

.top_section {
    padding: 0 10cqw;
    margin-bottom: 5cqw;
}

.top_section_header {
    display: flex;
    align-items: center;
    gap: 4cqw;
    margin-top: 1cqw;
}

.top_section_title {
    font-size: var(--font-2xl);
    font-weight: bold;
    white-space: nowrap;
    letter-spacing: 0.05em;
    margin: 1cqw 0;
}

.top_section_desc {
    font-size: var(--font-xs);
    font-weight: 500;
    line-height: 1.4;
}

/* タグ共通スタイル */
.top_page_container .top_hero_tag,
.top_page_container .top_post_tag,
.top_page_container .topic_tag,
.sv-hero-section-info .sv-tag,
.recommended-info .sv-tag {
    display: inline-flex;
    font-size: var(--font-xs);
    color: #000;
    border: 1px solid #000; /* これが確実に効くようになります */
    padding: 0.3em 0.8em;
    border-radius: 6px;
    margin-right: 5px;
    margin-top: 5px;
    align-items: flex-end;
    background: #fff;
}
.top_page_container .top_hero_tag {
    height: auto;
}

@media (max-width: 767px) {
    .cmn_spacer {
        margin-top: 2.8rem;
    }

    .top_page_container {
        padding-bottom: 0;
    }

    .top_section,
    .top_section.top_recommend_section,
    .top_section.top_news_section {
        padding: 0 4cqw !important;
    }

    .top_section_header {
        flex-direction: column;
        align-items: flex-start;
        margin-bottom: 3cqw;
    }

    .top_section_title {
        margin: 0;
    }

    .top_section_desc {
        margin-top: 0;
    }

    .top_main_row {
        flex-direction: column;
    }

    .top_main_content,
    .top_sidebar {
        width: 100%;
    }
}
