@charset "UTF-8";

/* ==========================================================================
   新着情報・おしらせページ専用スタイル (news.css)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. メインコンテナ・全体レイアウト
   -------------------------------------------------------------------------- */
.news_page {
    background-color: #f7f9fa;
    padding-bottom: clamp(60px, 8vw, 120px);
}

.news_page .inner_container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* 2カラムレイアウト（左：記事一覧 / 右：サイドバー） */
.news_page .news_layout_row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
}

@media (max-width: 991px) {
    .news_page .news_layout_row {
        flex-direction: column;
        gap: 50px;
    }
}


/* --------------------------------------------------------------------------
   2. ヘッダー見出しエリア (<section class="sub_ttl sub_ttl01 h_rev">)
   -------------------------------------------------------------------------- */
.news_page .sub_ttl.sub_ttl01.h_rev {
    margin-top: 90px !important; /* PC固定ヘッダー(90px)のめり込み防止 */
    padding: clamp(60px, 6.5vw, 100px) 20px !important;
    background: url("../img/common/sub_bg.jpg") no-repeat center center / cover !important;
    background-color: #003366 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column-reverse !important; /* h2(おしらせ)を上、h1を下に反転配置 */
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .news_page .sub_ttl.sub_ttl01.h_rev {
        margin-top: 58px !important; /* スマホ固定ヘッダー(58px) */
        padding: 45px 15px !important;
    }
}

/* 背景画像の上に薄いネイビーのベールをかけて文字の可読性を保持 */
.news_page .sub_ttl.sub_ttl01.h_rev::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 35, 70, 0.45);
    z-index: 1;
}

/* 子要素（h1, h2）の前面表示 */
.news_page .sub_ttl.sub_ttl01.h_rev > * {
    position: relative !important;
    z-index: 2 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* メイン見出し「おしらせ」 (h2) */
.news_page .sub_ttl.sub_ttl01.h_rev h2.f_42 {
    font-size: clamp(30px, 3.2vw, 42px) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    letter-spacing: 0.15em !important;
    line-height: 1.3 !important;
    margin: 0 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

/* サブテキスト「オリンパス特約店として…」 (h1) */
.news_page .sub_ttl.sub_ttl01.h_rev h1.f_16 {
    font-size: clamp(13px, 1.05vw, 16px) !important;
    color: #ffffff !important;
    font-weight: 400 !important;
    letter-spacing: 0.08em !important;
    line-height: 1.6 !important;
    margin: 12px 0 0 0 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}


/* --------------------------------------------------------------------------
   3. パンくずリスト
   -------------------------------------------------------------------------- */
.news_page .breadcrumbs_wrap {
    background-color: #ffffff;
    padding: 12px 0;
    border-bottom: 1px solid #edf2f7;
    margin-bottom: clamp(35px, 4vw, 55px);
}

.news_page .breadcrumbs {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
    color: #707f9a;
}

.news_page .breadcrumbs a {
    color: #003366;
    text-decoration: none;
    transition: color 0.2s ease;
}

.news_page .breadcrumbs a:hover {
    color: #0E7ABC;
}


/* --------------------------------------------------------------------------
   4. 記事一覧（左カラム）＆ カードレイアウト
   -------------------------------------------------------------------------- */
.news_page .news_main_col {
    flex: 1;
    min-width: 0; /* Flexboxのはみ出し崩れ防止 */
}

/* 2列グリッド（PC・タブレット） */
.news_page .news_grid,
.news_page .blog_wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 28px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 680px) {
    .news_page .news_grid,
    .news_page .blog_wrap {
        grid-template-columns: 1fr !important;
        gap: 22px !important;
    }
}

/* カード単体（旧クラス .blog_item / 新クラス .news_card 双方に対応） */
.news_page .news_card,
.news_page .blog_item {
    background: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 51, 102, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.news_page .news_card:hover,
.news_page .blog_item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 51, 102, 0.12);
}

.news_page .news_card a,
.news_page .blog_item a.d-block {
    text-decoration: none !important;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 0 32px 0 !important; /* サムネイルは全幅にし、下部のみ余白を確保 */
    background: #ffffff !important;
}

/* サムネイル画像 */
.news_page .card_thumb,
.news_page .thumnb {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #edf2f7;
    position: relative;
}

.news_page .card_thumb img,
.news_page .thumnb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
    transition: transform 0.4s ease;
}

.news_page .news_card:hover .card_thumb img,
.news_page .blog_item:hover .thumnb img {
    transform: scale(1.05);
}

/* --- カード内テキストエリア（十分な余白設計） --- */

/* 日付とカテゴリメタエリア */
.news_page .meta,
.news_page .info_wrap {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    padding: 24px 26px 0 !important; /* 左右26px、画像下24pxの余白 */
    margin: 0 !important;
}

/* 投稿日付 */
.news_page .meta .date,
.news_page .info_wrap time {
    font-size: 14px !important;
    color: #707f9a !important;
    font-family: 'Bricolage Grotesque', sans-serif !important;
    letter-spacing: 0.05em !important;
    font-weight: 500 !important;
}

/* カテゴリタグ */
.news_page .meta .category,
.news_page .info_wrap .cat {
    display: inline-block !important;
    padding: 3px 12px !important;
    font-size: 12px !important;
    color: #0E7ABC !important;
    background-color: #E6F7FF !important;
    border-radius: 4px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

/* 記事タイトル（余白と行間をゆったり確保） */
.news_page .card_body .title,
.news_page .blog_item h3 {
    padding: 14px 26px 0 !important; /* 日付の下に14px、左右26pxの余白 */
    margin: 0 !important;
    font-size: 17px !important;
    line-height: 1.65 !important;
    letter-spacing: 0.05em !important;
    color: #003366 !important;
    font-weight: 700 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* 2行で収めて省略記号を表示 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.news_page .news_card:hover .title,
.news_page .blog_item a:hover h3 {
    color: #0E7ABC !important;
}

/* スマホ閲覧時のカード内余白調整 */
@media (max-width: 767px) {
    .news_page .news_card a,
    .news_page .blog_item a.d-block {
        padding-bottom: 24px !important;
    }
    .news_page .meta,
    .news_page .info_wrap {
        padding: 18px 20px 0 !important;
    }
    .news_page .card_body .title,
    .news_page .blog_item h3 {
        padding: 12px 20px 0 !important;
        font-size: 15px !important;
    }
}


/* --------------------------------------------------------------------------
   5. サイドバー（右カラム）
   -------------------------------------------------------------------------- */
.news_page .news_side_col,
.news_page .right {
    width: 290px !important;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .news_page .news_side_col,
    .news_page .right {
        width: 100% !important;
    }
}

.news_page .side_block,
.news_page .side_content {
    background: #ffffff;
    border-radius: 8px;
    padding: 22px;
    margin-bottom: 25px;
    box-shadow: 0 4px 16px rgba(0, 51, 102, 0.05);
}

/* サイドバータイトル */
.news_page .side_title,
.news_page .side_content h4 {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background-color: #003366 !important;
    padding: 9px 14px !important;
    border-radius: 4px !important;
    margin: 0 0 16px 0 !important;
    letter-spacing: 0.05em !important;
    text-align: center;
}

/* リスト共通 */
.news_page .side_list,
.news_page .side_popular,
.news_page .cat-list,
.news_page .popular-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.news_page .side_list li,
.news_page .side_popular li,
.news_page .cat-list li,
.news_page .popular-list li {
    border-bottom: 1px dashed #dbe4ec;
    padding: 11px 0;
}

.news_page .side_list li:last-child,
.news_page .side_popular li:last-child,
.news_page .cat-list li:last-child,
.news_page .popular-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.news_page .side_list li a,
.news_page .side_popular li a,
.news_page .cat-list li a,
.news_page .popular-list li a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
    display: block;
    transition: color 0.2s ease;
}

.news_page .side_list li a:hover,
.news_page .side_popular li a:hover,
.news_page .cat-list li a:hover,
.news_page .popular-list li a:hover {
    color: #0E7ABC;
}

/* 人気記事の文字組み */
.news_page .side_popular .popular_title,
.news_page .popular-list p {
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    margin-bottom: 4px !important;
    color: #032437;
}

.news_page .side_popular .popular_date,
.news_page .popular-list time {
    font-size: 12px !important;
    color: #707f9a !important;
}


/* --------------------------------------------------------------------------
   6. ページャー (wp-pagenavi)
   -------------------------------------------------------------------------- */
.news_page .wp-pagenavi {
    margin-top: clamp(40px, 5vw, 60px) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px;
    width: 100% !important;
}

.news_page .no_posts {
    text-align: center;
    font-size: clamp(0.875rem, 0.7821rem + 0.381vw, 1.125rem);
    color: #707f9a;
    padding: 60px 0;
}

/* =========================================================
   【追加CSS用】/information/ 崩れ強制修正
========================================================= */

/* 1. 見出しセクションの固定ヘッダー潜り込み防止＆背景設定 */
.sub_ttl.sub_ttl01.h_rev,
.sub_ttl.sub_ttl01 {
    margin-top: 90px !important;
    padding: 70px 20px !important;
    background: url("/_wp/wp-content/themes/miwainstrument/img/common/sub_bg.jpg") no-repeat center center / cover !important;
    background-color: #003366 !important;
    position: relative !important;
    display: flex !important;
    flex-direction: column-reverse !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

@media (max-width: 767px) {
    .sub_ttl.sub_ttl01.h_rev,
    .sub_ttl.sub_ttl01 {
        margin-top: 58px !important;
        padding: 40px 15px !important;
    }
}

.sub_ttl.sub_ttl01::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 35, 70, 0.45);
    z-index: 1;
}

.sub_ttl.sub_ttl01 > * {
    position: relative !important;
    z-index: 2 !important;
    color: #ffffff !important;
    width: 100% !important;
    text-align: center !important;
}

.sub_ttl.sub_ttl01 h2 {
    font-size: 38px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    letter-spacing: 0.1em !important;
}

.sub_ttl.sub_ttl01 h1 {
    font-size: 15px !important;
    font-weight: 400 !important;
    margin-top: 10px !important;
    letter-spacing: 0.05em !important;
}

/* 2. メインコンテナのレイアウト修正 */
.blog01 {
    background-color: #f7f9fa !important;
    padding-top: 50px !important;
    padding-bottom: 80px !important;
}

/* 記事カードを2列グリッドで綺麗に並べる */
.blog_wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
}

@media (max-width: 767px) {
    .blog_wrap {
        grid-template-columns: 1fr !important;
    }
}

/* カード単体の装飾 */
.blog_wrap article,
.blog_wrap .blog_item {
    background: #ffffff !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.06) !important;
    transition: transform 0.3s ease !important;
    height: 100% !important;
}

.blog_wrap article:hover {
    transform: translateY(-4px) !important;
}

.blog_wrap article a {
    padding: 0 0 25px 0 !important;
    display: block !important;
    text-decoration: none !important;
    color: inherit !important;
}

/* サムネイル画像 */
.blog_wrap .thumnb {
    width: 100% !important;
    aspect-ratio: 16 / 10 !important;
    overflow: hidden !important;
    background-color: #edf2f7 !important;
}

.blog_wrap .thumnb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 日付とカテゴリタグ */
.blog_wrap .info_wrap {
    padding: 20px 24px 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.blog_wrap .info_wrap time {
    font-size: 14px !important;
    color: #707f9a !important;
}

.blog_wrap .info_wrap .cat {
    font-size: 12px !important;
    color: #0E7ABC !important;
    background-color: #E6F7FF !important;
    padding: 3px 10px !important;
    border-radius: 4px !important;
    margin: 0 !important;
}

/* タイトル */
.blog_wrap h3 {
    padding: 12px 24px 0 !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #003366 !important;
    font-weight: 700 !important;
}

/* 3. 右カラム（サイドバー）の崩れ防止 */
.side_content {
    background: #ffffff !important;
    padding: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0 4px 15px rgba(0, 51, 102, 0.05) !important;
    margin-bottom: 25px !important;
}

.side_content h4 {
    background-color: #003366 !important;
    color: #ffffff !important;
    font-size: 15px !important;
    padding: 8px 12px !important;
    border-radius: 4px !important;
    margin-bottom: 15px !important;
}

.side_content ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.side_content ul li {
    border-bottom: 1px dashed #dbe4ec !important;
    padding: 10px 0 !important;
}

.side_content ul li a {
    color: #333333 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

.side_content ul li a:hover {
    color: #0E7ABC !important;
}