.mg-list-container {
/*
    max-width: 800px;
    */
    margin: 0 auto;
    padding: 20px;
}

.mg-sort-options {
    margin-bottom: 20px;
}

.mg-sort-select {
    padding: 5px;
}

.mg-item {
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
}

.mg-item-title a {
    text-decoration: none;
    color: #0073aa;
}

.mg-item-meta {
    font-size: 0.9em;
    color: #666;
}

.mg-item-likes {
    margin-left: 10px;
}

.mg-icon-heart {
    color: #e25555;
}

.mg-pagination {
    margin-top: 20px;
    text-align: center;
}

.mg-page-prev, .mg-page-next {
    padding: 5px 10px;
    margin: 0 5px;
}

.mg-loading {
    text-align: center;
    padding: 20px;
}

.mg-viewer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.mg-viewer-iframe-wrap {
    margin-bottom: 20px;
}

.mg-viewer-iframe {
    border: none;
}

.mg-like-button {
    padding: 5px 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    cursor: pointer;
}

.mg-like-button.mg-liked {
    background: #e25555;
    color: #fff;
}

.mg-like-button .mg-icon-heart {
    margin-right: 5px;
}
/*
マイページ＞サイドバー　mguide関連
お気に入り/お知らせのサイドバー調整
*/
.mguide a::before {
  content:none !important;
}
.mguide h4{
    font-size: 19px;
}
.single #primary{
    margin-top: 50px;
}
.category-news #primary,
.single #primary,
.page-wishlist #primary,
.page-mguide #primary{
    float: left;
    width: 77%;
    margin-top: 50px;
}
.woocommerce-dashboard .wcv-dashboard-sidebar.mguide{
    margin-top: 10px;
}
.wishlist-title-container h2{
    display: none;
}
.page-wishlist .woocommerce .wishlist-title {
    margin-bottom: 0;
}
/*----------------*/
.single-post .wcv-dashboard-sidebar.mguide,
.page-wishlist .wcv-dashboard-sidebar.mguide,
.category-news .wcv-dashboard-sidebar.mguide{
    margin-top: 50px;
}
.mguide-template-default .wcv-dashboard-sidebar.mguide,
.page-mguide .wcv-dashboard-sidebar.mguide{
    margin-top: 50px;
}
.mguide-template-default .wcv-dashboard-sidebar.mguide h4,
.page-mguide .wcv-dashboard-sidebar.mguide h4{
    border-bottom: 1px solid #ccc;
    padding-bottom: 5px
}
.wcv-dashboard-sidebar.mguide ul li{
    margin-top: 6px;
    border-bottom: 1px solid #ccc !important;
}
.wcv-dashboard-sidebar.mguide ul li a{
    color: #666;
    font-weight: normal;
    text-decoration: none;
    font-size: 16px;
}
.wcv-dashboard-sidebar.mguide ul li a:hover{
    font-weight:bold;
}
/*
マルチサイト用：マイページ＞閲覧履歴、マイページ＞おすすめガイド。
*/

#mguide-mypage{
  max-width: 700px;
}
#mguide-mypage h4{
     margin-top: 50px;
    border-bottom: 1px solid #333;
    padding-bottom: 7px;
    margin-bottom: 19px;
}
#mguide-mypage .wcv-dashboard-sidebar.mguide ul{
    padding-left: 0
    ;
}
#mguide-mypage .wcv-dashboard-sidebar.mguide ul li a{
    font-size: 14px;
}

/* ここから追加 */

/* 全体コンテナ */
.mg-list-container {
  background-color: #f9f9f9; /* 背景色を少し柔らかく */
  padding: 1.5em;
  margin: 2em 0;
  border-radius: 8px; /* 角を丸くする */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 影を追加して立体感を出す */
  font-family: sans-serif;
}

/* ソート（並び替え）機能 */
.mg-sort-options {
  margin-bottom: 1.5em;
  text-align: right;
}

.mg-sort-select {
  padding: 0.5em 1em;
  font-size: 0.95em;
  border: 1px solid #ddd;
  border-radius: 6px; /* 角丸を調整 */
  background-color: #fff;
  cursor: pointer;
  -webkit-appearance: none; /* デフォルトの矢印を消す */
  -moz-appearance: none;
  appearance: none;
  /* カスタム矢印 */
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20width%3D%2220%22%20height%3D%2220%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath%20d%3D%22M5%208l5%205%205-5z%22%20fill%3D%22%23555%22/%3E%3C/svg%3E');
  background-repeat: no-repeat;
  background-position: right 0.5em center;
  background-size: 1.2em;
  padding-right: 2.5em; /* 矢印のスペース確保 */
}

/* 記事リスト */
.mg-list-items {
  display: grid;
  gap: 1em; /* 各記事の行間を調整 */
  min-height: auto; /* 高さを自動調整に */
}

/* 各記事アイテム */
.mg-item {
  background-color: #fff;
  border: 1px solid #e9e9e9;
  border-radius: 8px; /* 角を丸くする */
  padding: 1.2em 1.5em;
  transition: box-shadow 0.3s ease, transform 0.3s ease; /* ホバー時のアニメーション */
}

.mg-item:hover {
  transform: translateY(-3px); /* 少し浮き上がる効果 */
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}

/* 記事タイトル */
.mg-item-title {
  font-size: 1.3em; /* フォントサイズを大きく */
  font-weight: 600; /* 少し太く */
  margin: 0 0 0.5em;
}

.mg-item-title a {
  text-decoration: none;
  color: #222; /* タイトル色を濃く */
  transition: color 0.3s ease;
}

.mg-item-title a:hover {
  color: #0073aa; /* ホバー時の色 */
}

/* 日付といいね！のメタ情報エリア */
.mg-item-meta {
  font-size: 0.9em;
  color: #666;
  display: flex;
  justify-content: space-between; /* 日付といいね！を両端に配置 */
  align-items: center;
  border-top: 1px solid #f0f0f0; /* タイトルとの間に区切り線 */
  padding-top: 0.8em;
  margin-top: 0.8em;
}

/* いいね！部分 */
.mg-item-likes {
  display: flex;
  align-items: center;
  gap: 6px; /* アイコンとテキストの間隔 */
  background-color: #f5f5f5; /* 背景色を追加 */
  padding: 4px 10px;
  border-radius: 12px; /* 丸みのあるデザインに */
  font-size: 0.9em;
}

.mg-icon-heart {
  color: #e23;
  margin-right: 0;
}

.mg-like-count {
  color: #555;
  font-weight: 500;
}

/* ページネーション */
.mg-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.5rem; /* 上の要素とのマージンを広げる */
}

.mg-pagination button {
  background-color: #fff;
  border: 1px solid #ccc;
  padding: 0.6em 1.2em;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.mg-pagination button:hover:not(:disabled) {
  background-color: #0073aa;
  color: white;
  border-color: #0073aa;
  transform: translateY(-2px); /* ホバー時に少し浮き上がる */
}
.mg-pagination {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 2.5rem;
  align-items: baseline; /* ★変更点: center から baseline に変更 */
}
.mg-pagination .mg-page-info {
  font-weight: 500;
  color: #555;
  /* 上下のpaddingを0.5emから0.6emに変更してボタンと高さを合わせる */
  padding: 0.6em 1em; 
  border-radius: 6px;
  background: #e9ecef;
}

/* --- 詳細ページ 最終調整版 --- */

/* 1. PowerPoint表示エリアの調整 */
.mg-viewer-container {
  background-color: #ffffff;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin: 2em 0;
}

/* 以前のアスペクト比を維持するスタイルを削除 */
.mg-viewer-iframe-wrap {
  /* style intentionally left blank */
}

/* iframe本体に直接高さを指定して全体が表示されるように */
.mg-viewer-iframe {
  width: 100%;
  height: 700px; /* ★PowerPointの高さ。必要に応じて調整してください */
  border: none;
}


/* 2. いいねボタンの調整 */
.mg-like-section {
  text-align: center;
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid #f0f0f0;
}

.mg-like-button {
  display: inline-flex !important;
  align-items: center;
  gap: 0.6em;
  width: auto !important;
  max-width: 240px;
  font-size: 1rem !important;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #f17b53;
  background-color: #fff;
  border: 2px solid #f17b53;

  /* ★さらに余白を狭く */
  padding: 0.4em 1.2em !important;
  
  /* ★角丸を調整 */
  border-radius: 8px !important;
}

/* ★ボタン内の数字のスタイル */
.mg-like-button .mg-like-count {
  color: #333;          /* 色をニュートラルな黒に */
  margin-right: 0.15em;  /* 「件」との間に少し余白を追加 */
}