/*
Theme Name: orijinal
Author: Kensuke Kimori
Description: WordPressのオリジナルテーマ
Version: 1.0
*/













/* 使用フォント */
body {
    font-family: Meiryo, メイリオ, Helvetica, ArialMT, "Hiragino Kaku Gothic Pro", "ヒラギノ角ゴ Pro W3", Osaka, Verdana, "ＭＳ Ｐゴシック";
}

/* TOPと個別のヘッダー付近の空白を統一する */
.site-logo h1 {
    margin: 0;
    padding: 0; /* パディングもリセット */
    line-height: 1; /* 行の高さを最小限に */
    font-size: 0; /* h1自体のフォントサイズを0にして影響をなくす（ロゴ画像なので文字は不要なはず） */
    display: block; /* ブロック要素として扱う */
}

/* H1内のリンクも行の高さを詰める */
.site-logo h1 a {
    display: block; /* 画像に合わせてブロック要素に */
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* 個別ページ側のリンクも表示方法を揃える */
.site-logo > a:not(h1 a) { /* H1の外にあるロゴリンク */
    display: block; /* TOPページと合わせる */
    margin: 0;
    padding: 0;
    line-height: 1;
}

/* ロゴ画像自体の表示方法を明確にする */
.site-logo img.header-icon {
    display: block; /* display:block; にすると上下の予期せぬスペースが消えることが多い */
    /* または vertical-align で調整する場合 */
    /* vertical-align: top; */
    /* vertical-align: middle; */
    /* vertical-align: bottom; */
    height: 60px; /* 元々のCSSで指定されている高さを維持 */
    width: auto;
}



/* Table of Contents Plusの目次を中央寄せ */
#toc_container {
        margin: auto;
}





/* フッター コピーライト */
.footer-copyright {
    max-width: 1200px; /* .container と合わせる */
    margin: 0 auto;    /* 中央揃え */
    padding: 20px 35px !important; /* 左右のpaddingを .container と合わせる */
    text-align: right; /* テキスト自体は右寄せを維持 */
    /* margin-bottom: 0; */ /* ← margin: 0 auto で上書きされるので不要かも */
    font-size: 16px;
    line-height: 1.5;
    box-sizing: border-box; /* paddingを含めて幅を計算 */
}



/* サイドバーのアーカイブページ */
/* 月別アーカイブ全体のボックス */
.year-archive-box {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

/* 月別アーカイブタイトル (h2) */
.year-archive-box .category-side-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin: 0 0 15px 0;
  padding: 0 0 10px 0;
  border-bottom: 1px solid #eee;
  text-align: left;
  line-height: 1.4;
  flex: 100%;
}

/* 月別アーカイブの各リンク */
.year-link {
  display: inline-block;
/*   padding: 10px 16px; */
  padding-top: 7px !important; 
  padding-bottom: 7px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
  text-decoration: none;
  font-size: 16px; /* カテゴリリンクと同じ16px */
  font-weight: 500; /* カテゴリリンクと同じ */
  color: #0066cc; /* 通常時の文字色 */
  transition: all 0.2s ease-in-out;
}

.year-link:hover {
  background-color: #f5f5f5; /* hover時の背景色 */
  color: #004a99; /* hover時の文字色 */
}







/* ヘッダー */
.site-header {
    background-color: #ffffff;
    width: 100%;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px; /* .container と合わせる */
    margin: 0 auto;
    padding: 15px 35px; /* .container と合わせるか、ヘッダー専用のpaddingを設定 */
    display: flex;
    align-items: center;
    /* gap: 30px; */ /* ← コメントアウトされている */
    box-sizing: border-box; /* paddingを含めて幅を計算するため推奨 */
}

/* ハンバーガーメニュー関連の要素を通常は非表示 */
.menu-toggle {
    display: none;
}

.hamburger {
    display: none;
}

.site-logo {
    display: flex;
    align-items: center;
}

.header-icon {
    height: 40px;
    width: auto;
}

.header-nav {
    flex-grow: 1;
}

.nav-menu {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
}

.nav-menu li {
    display: flex;
    align-items: center;
}

.nav-menu a {
    color: #333333;
    text-decoration: none;
    font-size: 16px;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0 10px;
}

.nav-menu .separator {
    color: #cccccc;
    font-size: 16px;
}

.nav-menu a:hover {
    color: #007bff;
}





/* ランキング用のスペース */
.ranking-spacer {
    height: 20px;
}





/* 2カラム */
.container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    /* width: 100%; */ /* ← width: 100% は削除またはコメントアウトしても良い */
    max-width: 1200px; /* 最大幅を設定 (この値は希望に応じて調整) */
    margin: 0 auto; /* 上下マージン0、左右マージンautoで中央揃え */
    padding: 0 35px; /* 左右に内側の余白を追加 (ウィンドウ幅が狭い時用、値は調整可) */
    box-sizing: border-box; /* paddingを含めて幅を計算 */
    /* overflow-x: hidden; */ /* ← コンテンツがはみ出る場合を除き、必須ではないかも */
}
.main {
    flex: 2;
    background-color: #fff;
    padding: 0;
    overflow-x: hidden;
    min-width: 0; 
}
.sidebar {
    flex: 1;
    background-color: #fff;
    padding: 0;
}









/* TOP3記事 スマホスライダー */
.slider-container {
    width: 100%;
    padding: 0 35px; /* ←ここで左右に25pxの余白を付ける */
    margin-top: 0px;
    margin-bottom: 20px;
    box-sizing: border-box; /* ←必ず追加！padding込みでwidth100%に収める */
}

.slider-wrapper {
    display: grid;
    grid-template-columns: 6fr 4fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 20px;
    height: 400px;
    width: 100%;
}

.slide-item.large {
    grid-row: span 2;
    height: 100%;
    width: 100%;
}

.slide-item:not(.large) {
    height: 100%;
    width: 100%;
}

/* デスクトップでの画像サイズ制御 */
.slide-item.large img,
.slide-item:not(.large) img {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
}

.slide-item {
    position: relative;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
    aspect-ratio: 16/9;
    height: 100%;
    transition: opacity 0.3s;
}

.slide-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-item:hover img {
    opacity: 0.7;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        transparent,
        rgba(0,0,0,0.7) 20%,
        rgba(0,0,0,0.9) 80%
    );
    padding: 20px;
}

.overlay p {
    color: white;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.grid-container {
    margin-top: 20px;
}






/* メインコンテンツ */
.special-section {
  background: white;
  padding-top: 1px;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  margin-top: 5px;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  border-radius: 8px;
}

.special-section-header {
    margin-bottom: 15px;
}

.special-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 0 0;
    padding: 0 0 2px 0;
    border-bottom: 1px solid #eee;
}

.special-article-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.special-article-item {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.special-article-item:last-child {
    border-bottom: none;
}

.special-article-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.special-article-image {
    flex-shrink: 0;
    width: 100px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.special-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.special-article-link {
    font-size: 18px;
    line-height: 1.4;
    text-decoration: none;
}

.special-article-link:hover {
    text-decoration: underline;
}

.special-article-date {
    color: #666;
    font-size: 16px;
    display: inline-block;
    margin-left: 4px;
    margin-top: 4px;
}

.special-date-container {
    margin: 0;
}

.special-createat-date {
    display: inline-block;
}

.special-circle-divider {
    margin: 0;
    color: #666;
    font-size: 16px;
}







/* 矢印付きリンク */
.arrow-link {
    display: block;
    text-align: right;
    text-decoration: none;
    font-size: 18px;
    line-height: 1.6;
    margin: 10px 0 0 0;
}

.arrow-link:hover {
    text-decoration: underline;
}








/* サイドバーのカテゴリ一覧 */
.category-side-container {
  background: #fff;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  margin-top: 15px;
  margin-right: 0;
  margin-bottom: 20px;
  margin-left: 0;
  border: none;
  border-radius: 8px;
}

.category-side-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    line-height: 1.4;
}

.category-side-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-side-list li {
    border-bottom: 1px solid #eee;
}

.category-side-list li:last-child {
    border-bottom: 1px solid #eee;
}

.category-side-list a {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    color: #0066cc; /* 他リンクと同様に青に統一 */
    text-decoration: none;
    font-size: 16px;
    font-weight: 500; /* optional: 他リンクに合わせて強調 */
}

.category-side-list a:hover {
    background-color: #f5f5f5;
    color: #004a99; /* hover時も統一 */
}

.category-side-arrow {
    color: #999;
}







/* 個別記事のアイキャッチ画像 */
.top-image-container {
   position: relative;
   width: 100%; 
   padding-bottom: 15px;
   margin: 0 auto; /* 中央寄せを追加 */
}

.top-image-main {
   width: 100%;
   height: auto;
   display: block;
}

.top-image-source {
   position: absolute;
   bottom: 10px;
   left: 10px;
   font-size: 12px;
   color: #333;
   background-color: rgba(255, 255, 255, 0.7);
   padding: 2px 5px;
   border-radius: 3px;
}






/* 個別記事の参考サイト */  
.article-reference-block {
   background-color: #f5f5f5;
   padding-top: 1px;
   padding-right: 20px;
   padding-bottom: 1px;
   padding-left: 0px;
   margin-top: 30px;
   margin-right: 0px;
   margin-bottom: 20px;
   margin-left: 0px;
   border-radius: 8px;
   word-break: break-all;
   word-wrap: break-word;
}




/* 個別記事のテーブル下のボタン */
.btn {
  display: block;
  margin-top: 8px;
  margin-right: auto;
  margin-bottom: 5px;
  margin-left: auto;
  width: fit-content;
  max-width: 100px;
  white-space: normal;
  word-wrap: break-word;
  align-items: center;
  padding-top: 12px;
  padding-right: 24px;
  padding-bottom: 12px;
  padding-left: 24px;
  background-color: #f5f5f5;
  border: none;
  border-radius: 4px;
  color: #000;
  text-decoration: none;
  font-size: 16px;
}



/* Pタグ */
.p-font {
    font-size: 18px;
}




/* リストタグ */
.list-font {
    font-size: 18px;
}




/* 個別記事のH見出し */
.article-h1 {
  font-size: 32px;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-right: 5px;
  margin-bottom: 5px;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 10px;
  padding-left: 0;
  line-height: 1.5;
}

.article-h2 {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 2px;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 5px;
  padding-left: 0;
  border-bottom: 1px solid #eee;
}

.article-h3 {
  font-size: 22px;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 2px;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 5px;
  padding-left: 0;
  border-bottom: 1px solid #eee;
}

.article-h4 {
  font-size: 20px;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 2px;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 5px;
  padding-left: 0;
  border-bottom: 1px solid #eee;
}






/* テーブル */
.article-table-wrapper {
  margin: 0 0 2px 0;
  padding: 10px 5px;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto; /* 横スクロールを追加 */
  display: block; /* ブロック要素として表示 */
  -webkit-overflow-scrolling: touch; /* iOSでのスムーズなスクロールのため */
}

.article-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto; /* 自動レイアウトに変更 */
}

/* すべてのthとtdのテキストサイズ */
.article-table th,
.article-table td {
  font-size: 16px; /* フォントサイズを少し小さく */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  word-break: keep-all; /* 単語の途中での改行を防止 */
  vertical-align: top; /* 上揃え */
}

/* 1列目の設定 */
.article-table th:first-child {
  width: 15%;
  min-width: 100px;
  white-space: nowrap; /* テキストを折り返さない */
}

/* 2-4列目の設定 */
.article-table th:not(:first-child),
.article-table td:not(:first-child) {
  width: 28%;
  min-width: 120px;
}

.article-table th {
  background-color: #f2f2f2;
  padding: 8px;
  text-align: left;
}

.article-table td {
  padding: 8px;
  background-color: #fff;
}

.article-table th,
.article-table td {
  border: 1px solid #ccc;
}

/* スマホ向けの調整 */
@media (max-width: 767px) {
  .article-table {
    min-width: 600px; /* スマホでも最小幅を保証 */
  }
  
  .article-table th,
  .article-table td {
    font-size: 14px; /* さらに小さく */
    padding: 6px;
  }
}







/* 個別記事の生成日と編集者関連 */
/* 共通のコンテナ */
.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

/* 日付コンテナ */
.date-container {
    display: flex;
    flex-direction: column;
    gap: 4px;
}




/* 生成日と更新日の共通スタイル */
.createat-date,
.updateat-date {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 15px;
}

.a_c_ymd {
    color: #333;
    font-size: 15px; /* 追加 */
}

.caption-with-letter-spacing {
    margin: 0;
    letter-spacing: 0.5px;
    font-size: 15px; /* 追加 */
}

/* 編集者のスタイル */
.editor-info {
    display: inline-block;
    background-color: #f5f5f5;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 15px;
    margin-left: auto;
}

.editor-name {
    color: #333;
}






/* パンくず */
.breadcrumbs {
  padding-top: 5px;
  padding-right: 0;
  padding-bottom: 15px;
  padding-left: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.breadcrumbs-wrapper {
  min-width: max-content;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 8px;
}

.breadcrumbs-list {
  list-style: none;
  margin-top: 0;
  margin-right: 0;
  margin-bottom: 0;
  margin-left: 0;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  padding-left: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumbs-item {
  display: flex;
  align-items: center;
}

.breadcrumbs-item:not(:last-child)::after {
  content: ">";
  margin-top: 0;
  margin-right: 8px;
  margin-bottom: 0;
  margin-left: 8px;
  color: #999;
}

.breadcrumbs-link {
  color: #333;
  text-decoration: none;
  font-size: 15px;
}

.breadcrumbs-link:hover {
  text-decoration: underline;
}

.breadcrumbs::-webkit-scrollbar {
  display: none;
}







/* 共通のアンカーリンクスタイル */
a {
    color: #0066cc;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}







/* 記事下の関連タグ */
.kiji-under-tag-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.kiji-under-tag-item {
  padding-top: 4px;
  padding-right: 8px;
  padding-bottom: 4px;
  padding-left: 8px;
  margin-top: 8px;
  margin-right: 0;
  margin-bottom: 4px;
  margin-left: 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
  color: #333;
}










/* archive-pagination 名前空間 */
.archive-pagination {
  text-align: center;
  margin: 2em 0;
}

.archive-pagination ul {
  display: inline-flex;
  list-style: none;
  padding: 0;
  margin: 0;
}

.archive-pagination li {
  margin: 0 4px;
}

.archive-pagination a,
.archive-pagination span {
  display: block;
  padding: 8px 12px;
  font-size: 0.9em;
  color: #333;
  background: #f5f5f5;
  border-radius: 4px;
  text-decoration: none;
  transition: background .2s, color .2s;
}

.archive-pagination .current {
  background: #333;
  color: #fff;
}

.archive-pagination a:hover {
  background: #e0e0e0;
}

/* archive-pagination 内の screen-reader-text（見出し）を完全非表示 */
.archive-pagination .screen-reader-text {
  display: none !important;
}



/* アクセスランキング（WPがアクセス集計） */
/* アクセスランキングボックス */
.ranking-box {
    background-color: #fff;
    /* border: 1px solid #ccc; */ /* タイトル下の線で区切るため不要なら削除 */
    border: none; /* ボックス自体の枠線は削除 */
    font-size: 16px;
    margin-bottom: 20px;
    padding-top: 10px; /* タイトルとの間に少しスペースを設ける */
}

/* タイトルバー (Hタグを想定) */
.ranking-title,
h2.ranking-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 0 0 15px 0;
    padding: 0 0 10px 0;
    border-bottom: 1px solid #eee;
    text-align: left;
    line-height: 1.4;
}


/* リスト全体 */
.ranking-list {
    list-style: none;
    margin: 0;
    padding: 0; /* 左右のパディングをボックスに合わせる */
}

/* 各アイテム */
.rank-item {
    display: flex;
    align-items: center;
    /* padding: 10px 16px; */ /* リストのパディングで左右調整するため変更 */
    padding: 10px 0; /* 上下のパディングのみ */
    border-bottom: 1px solid #eee; /* 区切り線は維持 */
    font-size: 16px;
    color: #333;
}

/* 最後のアイテムのボーダー消す */
.rank-item:last-child {
    border-bottom: none;
}

/* ランキング番号 */
.rank-num {
    display: inline-flex; /* ★数字を中央揃えにしやすくするため flex に変更 */
    align-items: center;   /* ★垂直中央揃え */
    justify-content: center; /* ★水平中央揃え */
    min-width: 24px;       /* 最小幅 */
    height: 24px;          /* 高さ */
    /* line-height: 24px; */ /* flexにしたので不要 */
    font-size: 14px;
    font-weight: bold;
    /* color: #fff; */     /* ★デフォルトの色指定を変更 */
    color: #333;           /* ★デフォルトの文字色を黒系に */
    text-align: center;    /*念のため残す*/
    margin-right: 10px;
    border-radius: 4px;    /* 角丸は維持 */
    box-sizing: border-box;/* borderを含めてサイズ計算 */
}

/* === 順位ごとの色分け (変更箇所) === */
/* 1位から3位 */
.rank-1 .rank-num,
.rank-2 .rank-num,
.rank-3 .rank-num {
    background-color: #b8860b; /* ★金色 (例: DarkGoldenrod) に変更 */
    color: #fff;               /* ★文字色は白 */
    border: none;               /* 枠線は不要 */
}

/* 4位以降 (元の rank-4, rank-5, not(...) の指定を削除またはコメントアウトし、以下で上書き) */
.rank-item:not(.rank-1):not(.rank-2):not(.rank-3) .rank-num {
    background-color: #fff;     /* ★背景色を白に */
    color: #333;               /* ★文字色を黒系に */
    border: 1px solid #ccc;     /* ★薄いグレーの枠線を追加 */
}
/* ===================================== */

/* リンク部分 (変更なし) */
.ranking-link {
    text-decoration: none;
    /* color: #333333; */ /* 下で青系に指定される */
    font-weight: 500;
    flex: 1;
    transition: color 0.3s ease;
}

.ranking-link:hover {
    /* color: #007bff; */ /* 下で青系に指定される */
    text-decoration: underline;
}

/* ランキング記事リンクの色を青に統一 (変更なし) */
.rank-item a,
.ranking-link {
    color: #0066cc;
    text-decoration: none;
    font-weight: 500;
}

.rank-item a:hover,
.ranking-link:hover {
    color: #004a99;
    text-decoration: underline;
}







/* スマホ表示 */
@media (max-width: 768px) {
    .header-inner {
        /* padding: 10px 15px; */ /* ← 既存の左右paddingを削除 */
        width: 95%;             /* ★幅を95%に */
        padding-top: 10px;      /* 上下paddingは維持または調整 */
        padding-bottom: 10px;   /* 上下paddingは維持または調整 */
        padding-left: 0;        /* ★左右paddingは0に */
        padding-right: 0;       /* ★左右paddingは0に */
        margin-left: auto;      /* ★中央寄せ */
        margin-right: auto;     /* ★中央寄せ */
        justify-content: space-between; /* ロゴとハンバーガーを両端に */
        /* box-sizing: border-box; はPCで設定済みなので継承される */
    }

    .header-icon {
        height: 30px;
    }

    .nav-menu a {
        font-size: 16px;
        padding: 0 5px;
    }

    .nav-menu .separator {
        font-size: 16px;
    }

    .container {
        flex-direction: column;
        width: 100%;
        overflow-x: hidden; /* 追加 */
    }
	
	    /* スライダーコンテナの左右paddingは不要になる可能性 */
    .year-archive-box {
        padding-top: 20px;  /* ★左右paddingを0に */
        padding-bottom: 20px; /* ★左右paddingを0に */
        margin-top: 0px;
        margin-bottom: 20px;
    }

    /* スライダー関連の調整 */
    /* スライダーコンテナの左右paddingは不要になる可能性 */
    .slider-container {
        width: 100%; /* 親(.main)の幅いっぱいに */
        padding-left: 0;  /* ★左右paddingを0に */
        padding-right: 0; /* ★左右paddingを0に */
        margin-top: 0px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }

    /* スライダーラッパー: コンテナの端からスライドを開始させる */
    .slider-wrapper {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        padding-left: 0;  /* ★左右paddingを0に (コンテナ端から開始) */
        padding-right: 0; /* ★左右paddingを0に (コンテナ端まで表示) */
        /* もし左右の端にもアイテム間のgapと同じ程度の余白が欲しい場合 */
        /* padding-left: 10px; */
        /* padding-right: 10px; */
        height: 200px;
        box-sizing: border-box;
    }

    /* スライドアイテムのマージン調整 */
    .slide-item {
        flex: 0 0 80%;
        scroll-snap-align: start;
        /* margin-right: 10px; */ /* gap で指定しているため不要 */
    }

    .slide-item:last-child {
        /* margin-right: 20px; */ /* 右端の余白は wrapper の padding で調整 */
        margin-right: 0;
    }

    .slide-item img {
        width: 100%;
        height: auto;
    }

    .overlay {
        background: linear-gradient(
            transparent,
            rgba(0, 0, 0, 0.7) 30%,
            rgba(0, 0, 0, 0.9)
        );
        padding: 10px 20px;
        display: flex;
        align-items: flex-end;
        height: auto;
        min-height: 70px;
    }

    .overlay p {
        font-size: 16px;
        line-height: 1.5;
    }

    .grid-container {
        margin-top: 15px;
    }

    .special-section {
        padding: 0px;
    }

    .special-article-wrapper {
        flex-direction: row;
        gap: 10px;
    }

    .special-article-image {
        width: 60px;
        height: 60px;
    }

    .special-article-image img {
        max-width: 100%;
        max-height: none;
    　　object-fit: cover;
    　　max-width: 100%; /* 追加 */
    }

    .arrow-link {
        font-size: 16px;
    }

    .ranking-box {
/*         padding: 10px; */
        padding: 0px;
    }

    .special-section-title,
    .ranking-title,
    .tag-ranking-title,
    .column-h2-title {
        font-size: 18px;
    }

    .ranking-item {
        font-size: 16px;
        padding-left: 20px;
    }

    .ranking-item::before {
        width: 18px;
        height: 18px;
        font-size: 14px;
    }

    .category-side-container {
        /* width: 95%; */ /* ← .sidebar に対して95%になる */
        width: 95%;    /* ★ .sidebar と同じ幅にする */
        padding: 0px;  /* 内側の余白は維持 */
        box-sizing: border-box; /* 念のため */
    }

    .category-side-title {
        font-size: 18px;
    }

    .category-side-list a {
        font-size: 16px;
    }

    .article-h1 {
        font-size: 20px;
    }

    .article-h2 {
        font-size: 18px;
    }

    .article-h3 {
        font-size: 16px;
    }

    .article-h4 {
        font-size: 14px;
    }

    .article-table th:first-child,
    .article-table td:first-child {
        width: 130px;
        min-width: 130px;
        max-width: 130px;
    }

    /* スマホでの文字サイズ指定を追加 */
    .article-table th,
    .article-table td {
        font-size: 14px;
    }

    .p-font {
        font-size: 16px;
    }

    .list-font {
        font-size: 16px;
    }
	
    /* 2カラムコンテナ */
    .container {
        flex-direction: column;
        /* width: 100%; */       /* ← 100%指定を削除 */
        width: 95%;              /* ★幅を95%に */
        /* padding: 0 15px; */  /* ← 既存の左右paddingを削除 */
        padding-top: 0;          /* 上下paddingは0のまま */
        padding-bottom: 0;       /* 上下paddingは0のまま */
        padding-left: 0;         /* ★左右paddingは0に */
        padding-right: 0;        /* ★左右paddingは0に */
        margin-left: auto;       /* ★中央寄せ */
        margin-right: auto;      /* ★中央寄せ */
        /* box-sizing: border-box; はPCで設定済みなので継承される */
        overflow-x: hidden;      /* 既存 */
    }
	
    .main,
    .sidebar {
        width: 100%;             /* 親(.container)の幅(95%)に対して100% */
        min-width: 0;            /* 既存 */
        /* padding: 0 15px; */  /* ← このpaddingは不要になる */
        padding-left: 0;
        padding-right: 0;
        /* box-sizing: border-box; を念のため追加 */
        box-sizing: border-box;
    }

    .header-inner {
        justify-content: space-between; /* ロゴとハンバーガーメニューを両端に配置 */
    }

    .hamburger {
        display: block;
        width: 25px;
        height: 25px;
        padding: 0;
        position: relative;
        cursor: pointer;
        z-index: 1001;
    }

    .hamburger span {
        display: block;
        position: absolute;
        width: 25px;
        height: 2px;
        background-color: #333;
        transition: 0.3s;
    }

    .hamburger span:nth-child(1) { top: 5px; }
    .hamburger span:nth-child(2) { top: 12px; }
    .hamburger span:nth-child(3) { top: 19px; }

    /* メニューパネルのスタイル */
    .header-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background-color: #ffffff; /* 背景を白に */
        transition: 0.3s;
        padding-top: 60px;
        z-index: 1000;
    }

    /* メニュー展開時のスタイル */
    .menu-toggle:checked ~ .header-nav {
        right: 0;
    }

    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
        background-color: #ffffff; /* メニューリストの背景を白に */
    }

    /* オーバーレイ */
    .header-nav::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.5); /* オーバーレイの色を半透明に */
        opacity: 0;
        visibility: hidden;
        transition: 0.3s;
        z-index: -1;
    }

    .menu-toggle:checked ~ .header-nav::before {
        opacity: 1;
        visibility: visible;
    }

    /* メニュー項目のスタイル */
    .nav-menu a {
        color: #333;
        text-decoration: none;
        padding: 10px 20px;
        display: block;
        width: 100%;
    }

    .separator {
        display: none !important;
    }
	
	    /* フッター */
    .footer-copyright {
        width: 95%;             /* ★幅を95%に */
        padding-top: 20px !important;    /* 上下paddingは維持 */
        padding-bottom: 20px !important; /* 上下paddingは維持 */
        padding-left: 0 !important;      /* ★左右paddingは0に */
        padding-right: 0 !important;     /* ★左右paddingは0に */
        margin-left: auto;      /* ★中央寄せ */
        margin-right: auto;     /* ★中央寄せ */
        text-align: center;     /* スマホでは中央寄せが一般的 */
        /* box-sizing: border-box; はPCで設定済みなので継承される */
    }
}