/*
Theme Name:my-custom-theme
*/

/* .header {
    background: #fff;
    padding: 10px 0;
} */

.header {
    background-color: #fff; /* ヘッダーの背景色 */
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1); /* 下側にグレーの影を追加 */
    position: relative;
    z-index: 100; /* 他の要素の上に表示 */
	padding: 10px 0;
	width: 100%;
}


.header__wrapper {
    /* max-width: 1200px; */
    /* width: 100%; */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    height: 40px;
    width: auto;
}

.header__item {
    /* flex: 0 0 auto;      追加 */
/*     max-width: 40px; */
	width: auto;
	height: 20px;
}

.header__menu {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-direction: row;  /* 追加 */
    flex-wrap: nowrap;    /* 追加 */
}

.header__item a {
    display: flex;
    align-items: center;
	height: 100%;
    text-decoration: none;
}

.header__item_img {
    display: flex;
    align-items: center;
    height: 100%;
/*     width: 100%; */
/*     max-height: 30px; */
}

.header_category{
    color: #0E2262;
    margin: 5px;
    font-weight: bold;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .header__menu {
        gap: 15px;
    }
    
    .header__item_a {
        max-height: 25px;
    }
}
/* フッター全体のスタイル */
.footer {
    background-color: #0B2265; /* ダークブルー */
    color: white;
    padding: 30px 50px;
    font-family: Arial, sans-serif;
}

.footer__wrapper {
    display: flex;
    flex-direction: column; /* ← 追加する！ */
    gap: 30px;               /* 上下の間に余白を作る（任意） */
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 20px;
}

/* セクションごとのスタイル */
.footer__contact {
    flex: 1;
    padding: 0 20px;
    text-align: left;
}

/* ロゴ */
.footer__logo {
    width: 100px;
    margin-bottom: 10px;
}

.footer__promo {
    font-size: 14px;
    line-height: 1.5;
}

.footer__links-contact{
    display: flex;
    justify-content: space-between;
}

/* リンクスタイル */
/* LINKS セクションに左右の罫線を追加 */
.footer__links {
    border-left: 2px solid white; /* 左側の罫線 */
    border-right: 2px solid white; /* 右側の罫線 */
    padding: 0 30px; /* 罫線とコンテンツの余白 */
}

.footer__links h3, .footer__contact h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer__links-container {
    display: flex;
    gap: 20px;
}

.footer__links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer__links ul li {
    margin-bottom: 5px;
}

.footer__links ul li a {
    color: white;
    text-decoration: none;
    font-size: 16px;
}

.footer__links ul li a:hover {
    text-decoration: underline;
}

/* コンタクト情報 */
.footer__contact p {
    font-size: 14px;
    margin: 5px 0;
}

.footer__contact a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer__contact a:hover {
    text-decoration: underline;
}




.footer__top,
.footer__bottom {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.footer__bottom{
    border-top: 2px solid white; /* 上側の罫線 */
    padding-top: 20px; /* 罫線とコンテンツの余白 */
}

.footer__copyright {
    font-size: 14px;
	padding-left: 20px;
}

.footer__others {
    text-align: right;
	border-left: 2px solid white; /* 左側の罫線 */
	padding: 0 40px; /* 罫線とコンテンツの余白 */
}

.footer__others h3 {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 5px;
}

.footer__social-icons {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.footer__social-icons img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s;
}

.footer__social-icons img:hover {
    transform: scale(1.1);
}

main{
    background-color: #F5F7FA; /* 背景色 */
}

/* Trends コンテナ */
.trends-container {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
/*     box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); */
    /* margin-bottom: 20px; 下に余白を追加 */
}

/* "Trends |" のスタイル */
.trends-title {
    font-size: 18px;
    font-weight: bold;
    color: #1E3A8A; /* 濃い青 */
	border-right: 3px solid #1E3A8A;
	padding-right: 20px;
}

/* トレンドリスト（横並び） */
.trends-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
}

/* 各ボタン風リンク */
.trends-list li {
    display: inline-block;
}

.trends-list li a {
    display: inline-block;
    padding: 8px 15px;
    border: 2px solid #1E3A8A; /* 枠線 */
    border-radius: 20px;
    color: #1E3A8A; /* テキスト色 */
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    background-color: white;
    transition: all 0.3s ease;
}

/* ホバー時のエフェクト */
.trends-list li a:hover {
    background-color: #1E3A8A;
    color: white;
}

/* メインコンテンツとサイドバーの全体レイアウト */
.main-content-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    /* max-width: 1200px; */
    margin: 0 auto;
    width: 100%;
    gap: 20px;
}

/* Special News の幅調整 */
.main-content {
    width: 68%;
}

/* 最新コンテンツの全体枠 */
.latest-content {
    width: 100%; /* 画面幅の70%に調整 */
    /* max-width: 900px; 最大幅を設定 */
    margin-bottom: 20px;
    position: relative;
}

/* ラッパーのスタイル（画像全体をカバーする） */
.latest-content-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
/*     border-radius: 10px; */
}

/* 画像部分 */
.latest-content-image img {
    width: 100%; /* 枠内で画像をフィット */
    display: block;
/*     border-radius: 10px; */
}

/* テキスト部分を画像の上に配置 */
.latest-content-text {
    position: absolute;
	bottom:0px;
	left:0px;
    width:60%;
    text-align: left;
	background-color: rgba(255, 255, 255, 0.3);
    padding: 15px;
/* 	transform: translate(0%, -100%); */
}

/* カテゴリーラベル */
.latest-category {
    font-size: 14px;
    font-weight: bold;
    color: #0E2262; /* ゴールド */
    display: block;
    margin-bottom: 10px;
}

/* タイトル */
.latest-title {
    font-size: 24px;
    font-weight: bold;
    margin: 10px 0;
	color: black;
	border-bottom: 3px solid red;
	padding-bottom: 10px;
}

/* メタ情報 */
.latest-meta {
    font-size: 14px;
    opacity: 0.8;
	color: black;
}

.users-count{
	color:#002291;
}

/* Special News の全体デザイン */
.special-news {
    width: 90%;
    /* max-width: 1200px; */
    margin: 10px 0px;
    background-color: #0B2265; /* ダークブルーの背景 */
    padding: 5%;
    /* border-radius: 5px; */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
    position: relative;
}

/* Special News のタイトル */
.special-news-title {
    font-size: 20px;
    font-weight: bold;
    margin: 10px 0px;
    text-align: left;
}

/* スライダーの枠 */
.special-news-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    justify-content: center;
}

/* 各ニュースアイテム */
.special-news-item {
    flex: 0 0 25%; /* 4つのアイテムを横並びにする */
    background-color: white;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.special-news-item img {
    width: 100%;
    border-radius: 5px;
}

/* ニュースカテゴリ */
.special-news-category {
    font-size: 14px;
    color: black;
    margin-top: 10px;
    font-weight: bold;
}

/* スライダーのコントロールボタン */
.special-news-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* スライダーのドット */
.special-news-dots {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: white;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background-color: #FFD700;
}

/* サイドバーを複数配置するためのコンテナ */
.sidebar-container {
    width: 30%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* サイドバーの個別設定 */
.sidebar {
    background-color: white;
    padding: 15px;
    /* border-radius: 10px; */
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* サイドバーのタイトル */
.sidebar-title {
    font-size: 14px;
    font-weight: bold;
    margin: 10px;
    border-bottom: 1px solid red;
    padding-bottom: 5px;
}

/* 記事リスト */
.sidebar-articles {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* 各記事のボックス */
.sidebar-article {
    display: flex;
    gap: 10px;
    align-items: center;
    transition: transform 0.3s ease;
}

.sidebar-article:hover {
    transform: scale(1.02);
}

/* 記事の画像 */
.sidebar-article img {
    width: 80px;
    height: 60px;
    border-radius: 5px;
    object-fit: cover;
}

/* 記事テキスト */
.sidebar-article-text {
    flex: 1;
}

/* 記事タイトル */
.sidebar-article-text h3 {
    font-size: 14px;
    color: #1E3A8A;
    margin: 0;
}

/* 記事の説明 */
.sidebar-article-text p {
    font-size: 12px;
    color: #333;
    margin: 5px 0 0;
}

/* カテゴリごとの記事リスト全体 */
.category-articles {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 各カテゴリのブロック */
.category-block {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 5px;
    background-color: #FFFFFF;
    border-radius: 5px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}

/* 左側のメイン記事 */
.main-article {
    width: 50%;
    position: relative;
    border-radius: 5px;
}

.main-article img {
    width: 100%;
}

.main-article-text {
    padding: 15px;
    background: #F0F1F7;
    position: relative;
}

/* メイン記事のカテゴリラベル */
.category-label {
    font-size: 14px;
    font-weight: bold;
    color: #1E3A8A;
}

/* 記事タイトル */
.article-title {
    font-size: 22px;
    font-weight: bold;
    margin: 5px 0;
}

/* 記事の説明 */
.article-description {
    font-size: 14px;
    margin-bottom: 5px;
}

/* 記事のメタ情報 */
.article-meta {
    font-size: 14px;
    opacity: 0.8;
    color: #555;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px; /* アイコンとの間隔を調整 */
    border-top: 2px solid red;
    padding-top: 10px;
}

/* コピー & 共有アイコンのスタイル */
.article-icons {
    display: flex;
    gap: 5px; /* アイコン同士の間隔 */
    align-items: center;
}

.icon {
    width: 18px;
    height: 18px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.icon:hover {
    transform: scale(1.1);
}

/* 右側のサブ記事 */
.sub-articles {
    width: 47%;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.sub-article {
    display: flex;
    gap: 10px;
    align-items: center;
    background: white;
    border-radius: 5px;
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.sub-article:hover {
    transform: scale(1.02);
}

.sub-article img {
    height: 80px;
    border-radius: 4px;
    object-fit: cover;
}

.sub-article a {
    font-size: 14px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
}

.sub-article a:hover {
    color: #1E3A8A;
}

/* Viral News セクション全体 */
.viral-news {
    width: calc(100% - 40px);
    /* max-width: 1200px; */
    margin: 20px auto;
    background-color: #0B2265; /* ダークブルー背景 */
    padding: 20px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-align: center;
    position: relative;
}

/* セクションタイトル */
.viral-news-title {
    font-size: 20px;
    font-weight: bold;
    margin: 20px 0px;
    text-align: left;
}

/* スライダーの枠 */
.viral-news-slider {
    display: flex;
    gap: 20px;
    overflow: hidden;
    justify-content: center;
}

/* 各ニュースアイテム */
.viral-news-item {
    flex: 0 0 25%;
    background-color: white;
    border-radius: 10px;
    padding: 10px;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}

.viral-news-item img {
    width: 100%;
    border-radius: 10px;
}

/* テキスト部分 */
.viral-news-text {
    padding: 10px;
}

.category-label {
    font-size: 14px;
    font-weight: bold;
    color: #1E3A8A;
}

.viral-news-category {
    font-size: 16px;
    color: black;
    font-weight: bold;
    margin: 5px 0;
    border-bottom: 2px solid red;
    padding-bottom: 10px;
}

.viral-news-text p {
    font-size: 14px;
    color: #555;
}

/* スライダーのナビゲーションボタン */
.viral-news-controls {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 50%;
    transition: 0.3s;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* サイドバーのコンテンツ種別一覧 */
.sidebar-content-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 各コンテンツ項目 */
.sidebar-content-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: transform 0.2s ease-in-out;
}

.sidebar-content-item:hover {
    transform: scale(1.02);
}

/* アイコン画像 */
.sidebar-content-item img {
    /* width: 24px; */
    height: 16px;
    object-fit: contain;
    margin-right: 10px;
}

/* 記事数 */
.content-count {
    font-size: 8px;
    color: #555;
}

/* 人気タグのセクション */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px;
}

/* タグのデザイン */
.tag {
    display: inline-block;
    padding: 5px 12px;
    background: #E1E8EE; /* 淡い青 */
    color: black;
    font-size: 14px;
    text-decoration: none;
    border-radius: 5px;
    transition: all 0.3s ease-in-out;
}

.tag:hover {
    background: #1E3A8A;
    color: white;
}

/* トップビューセクション */
.top-views-list {
    display: flex;
    flex-direction: column;
}

/* 各記事アイテム */
.top-views-item {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    transition: transform 0.2s ease-in-out;
}

.top-views-item:hover {
    transform: scale(1.02);
}

/* 画像のスタイル */
.top-views-item img {
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    margin-right: 10px;
}

/* 記事のテキスト */
.top-views-text {
    flex: 1;
}

/* 記事タイトル */
.top-views-text h3 {
    font-size: 16px;
    color: #1E3A8A;
    margin: 0;
}

/* 記事の説明 */
.top-views-text p {
    font-size: 14px;
    color: #333;
    margin: 5px 0 0;
}

/* 特別ニュースセクション */
.exclusive-news-list {
    display: flex;
    flex-direction: column;
}

/* 各ニュースアイテム */
.exclusive-news-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px;
    transition: transform 0.2s ease-in-out;
}

.exclusive-news-item:hover {
    transform: scale(1.02);
}

/* 画像のスタイル */
.exclusive-news-item img {
    width: 100%;
    object-fit: cover;
    background-color: black;
}

/* 説明文 */
.exclusive-news-item p {
    font-size: 14px;
    color: #333;
    margin-top: 5px;
    text-align: left;
}

/* モバイルナビゲーションのスタイル */
@media screen and (max-width: 480px) {
    body {
        overflow-x: hidden; /* 横スクロールを禁止 */
    }    
    
    .header_category{
        display: none;
    }

    .trends-list {
        flex-wrap: nowrap;  /* 折り返しを禁止 */
        overflow-x: auto;    /* 横スクロールを許可 */
        -webkit-overflow-scrolling: touch; /* iOSでなめらかスクロール */
    }

    .trends-list li {
        flex: 0 0 auto; /* 子要素の幅を自動にする（収縮禁止） */
    }

    .main-content-wrapper {
        flex-direction: column; /* 横並びを縦並びに変更 */
    }

    .main-content {
        width: 100%; /* メインコンテンツを全幅に */
    }

    .sidebar-container {
        width: 100%; /* サイドバーも全幅に */
    }

    .latest-content-wrapper {
        aspect-ratio: 4/3; /* アスペクト比を16:9に設定 */
    }

    .latest-content-image{
        height: 100%;
        width: auto;
    }

    .latest-content-image img{
        height: 100%;
        width: auto;
    }

    .latest-content-text{
        width: 100%;
        padding: 0px 10px;
    }

    .category-block {
        flex-direction: column; /* 子要素を縦並びに変更 */
        gap: 10px; /* 上下の間に余白を作る（お好みで調整可） */
    }

    .main-article {
        width: 100%; /* メイン記事を全幅に */
    }

    .sub-articles {
        width: 100%; /* サブ記事群も全幅に */
    }

    .viral-news-item{
        flex: 0 0 50%;
    }

    .viral-news-text h3{
        border-bottom: none;
    }

    .viral-news-text p{
        display: none;
    }

    .footer{
        padding: 30px 20px;
    }

    /* まず、全体のfooter__wrapperは縦並びにする */
    .footer__wrapper:first-child {
        flex-direction: column;
        gap: 20px;
    }

    /* ロゴとプロモ */
    .footer__logo-promo {
        order: 1;
        text-align: left;
        margin-bottom: 20px;
    }

    .footer__links-contact{
        order: 2;
        display: flex;
        gap: 10px;
    }

    /* LINKS */
    .footer__links {
        width: 100%;
        text-align: left;
        padding: 0 15px;
        border-left: none;
    }

    /* CONTACT */
    .footer__contact {
        width: 100%;
        text-align: right;
        margin-bottom: 20px;
        padding: 0px 0px !important;
    }

    .footer__contact h2 {
        font-size: 1rem;
    }

    .footer__contact p {
        font-size: 0.8rem;
    }

    .footer__contact a {
        font-size: 0.8rem;
    }

    /* OTHERS */
    .footer__others {
        order: 3;
        text-align: right;
        margin-bottom: 20px;
        padding-top: 20px;
        /* border-top: 2px solid white; */
        /* width: 100%; */
        border-left: none;
    }

    .footer__social-icons{
        justify-content: flex-end;
    }

    /* SP版Copyright */
    .footer__copyright-sp {
        order: 4;
        text-align: center;
        font-size: 12px;
        margin-top: 10px;
        display: block !important;
    }

    /* PC版Copyrightは非表示 */
    .footer__copyright-pc {
        display: none;
    }

    .footer__wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 20px;
        width: 100%;
    }

    .footer__top {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    .footer__bottom {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 20px;
    }

    /* .footer__copyright {
        text-align: center;
        font-size: 12px;
        margin-top: 20px;
    } */
}

.footer__copyright-sp {
    display: none;
}

/* 投稿リスト */
.post-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .post-item {
    width: 13%;
    box-sizing: border-box;
    text-align: center;
    padding: 10px 10px;
  }
  
  .post-thumbnail-block {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .post-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* height: 100%; */
    text-align: center;
  }
  
  .post-thumbnail-block img {
    /* height: 60%; */
    width: 100%;
    display: block;
    object-fit: contain;
    margin-bottom: 8px;
  }
  
  .post-title {
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
    word-break: break-word;
  }
  
  .post-data-block{
    margin-bottom: 5px;
  }

  .page-slug-title {
    font-size: 36px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 24px;
  }
  