/* ===== TailwindCSS完全保護版 article.css ===== */

/* 
このファイルはarticle要素内のみに適用され、
TailwindCSSのユーティリティクラスには一切影響しません
*/

/* ===== CSS変数定義（article内のみ） ===== */
article {
  --blog-pink-primary: #be185d;
  --blog-pink-light: #fdf2f8;
  --blog-pink-medium: #ff6b9d;
  --blog-pink-gradient-start: #ff6b9d;
  --blog-pink-gradient-end: #ffa8cc;
  --blog-text-dark: #1f2937;
  --blog-border-radius-sm: 8px;
  --blog-border-radius-md: 12px;
  --blog-border-radius-lg: 20px;
  --blog-shadow-light: 0 2px 8px rgba(255, 107, 157, 0.15);
  --blog-shadow-medium: 0 4px 15px rgba(255, 107, 157, 0.3);
}

/* ===== 記事基本スタイル（TailwindCSS競合回避） ===== */
article {
  font-family: "Noto Sans JP", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.75;
  color: var(--blog-text-dark);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ===== 段落スタイル（article内のみ） ===== */
article p:not([class*="text-"]):not([class*="font-"]) {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5em;
}

/* ===== 見出しスタイル（TailwindCSS非依存） ===== */
article h1:not([class*="text-"]):not([class*="font-"]),
article h2:not([class*="text-"]):not([class*="font-"]),
article h3:not([class*="text-"]):not([class*="font-"]),
article h4:not([class*="text-"]):not([class*="font-"]),
article h5:not([class*="text-"]):not([class*="font-"]),
article h6:not([class*="text-"]):not([class*="font-"]) {
  font-family: "fot-tsukuardgothic-std", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-feature-settings: "palt";
  font-weight: bold;
  margin-bottom: 0.5em;
  margin-top: 2em;
  line-height: 1.3;
  word-wrap: break-word;
}

article h1:not([class*="text-"]) {
  font-size: 2rem;
}

article h2:not([class*="text-"]) {
  font-size: 1.75rem;
  margin-top: 3em;
}

article h3:not([class*="text-"]) {
  font-size: 1.5rem;
  margin-top: 2.5em;
}

article h4:not([class*="text-"]) {
  font-size: 1.25rem;
  margin-top: 2em;
}

article h5:not([class*="text-"]) {
  font-size: 1.125rem;
  margin-top: 1.5em;
}

article h6:not([class*="text-"]) {
  font-size: 1rem;
  margin-top: 1.5em;
}

/* 最初の見出しの上余白を削除（TailwindCSSクラスがない場合のみ） */
article h1:first-child:not([class*="mt-"]),
article h2:first-child:not([class*="mt-"]),
article h3:first-child:not([class*="mt-"]),
article h4:first-child:not([class*="mt-"]),
article h5:first-child:not([class*="mt-"]),
article h6:first-child:not([class*="mt-"]) {
  margin-top: 0;
}

/* ===== リンクスタイル（TailwindCSS非依存） ===== */
article a:not([class*="text-"]):not([class*="bg-"]) {
  text-decoration: none;
  color: var(--blog-pink-primary);
  transition: color 0.2s ease;
}

article a:not([class*="text-"]):not([class*="bg-"]):hover {
  text-decoration: underline;
  color: var(--blog-pink-medium);
}

/* ===== 画像スタイル（TailwindCSSクラスがない場合のみ） ===== */
article img:not([class*="w-"]):not([class*="h-"]):not([class*="rounded-"]) {
  max-width: 100%;
  height: auto;
  border: none;
  border-radius: var(--blog-border-radius-lg);
  margin: 2em auto;
  display: block;
}

/* WordPress画像ブロック（TailwindCSS非依存） */
article .wp-caption:not([class*="w-"]),
article [class*='wp-image']:not([class*="w-"]) {
  display: block;
  max-width: 100%;
  margin: 2em auto;
  text-align: center;
}

article .wp-caption-text {
  margin-top: 0.5em;
  font-size: 0.9rem;
  color: #666;
  font-style: italic;
}

article .aligncenter:not([class*="mx-"]) {
  display: block;
  margin: 2em auto;
}

article .alignright:not([class*="float-"]) {
  float: right;
  margin: 0 0 1em 1em;
}

article .alignleft:not([class*="float-"]) {
  float: left;
  margin: 0 1em 1em 0;
}

/* ===== リストスタイル（TailwindCSS非依存） ===== */
article ul:not([class*="list-"]):not(.is-style-list-check):not(.is-style-list-number) {
  list-style-type: disc;
  margin: 1.5em 0;
  padding-left: 2em;
}

article ol:not([class*="list-"]):not(.is-style-list-check):not(.is-style-list-number) {
  list-style-type: decimal;
  margin: 1.5em 0;
  padding-left: 2em;
}

article li:not([class*="mb-"]):not([class*="my-"]) {
  margin-bottom: 0.5em;
  line-height: 1.6;
}

/* ===== テーブルスタイル（TailwindCSS非依存） ===== */
article table:not([class*="border-"]):not([class*="w-"]) {
  border-collapse: collapse;
  width: 100%;
  margin: 2em 0;
  border-radius: var(--blog-border-radius-sm);
  overflow: hidden;
  box-shadow: var(--blog-shadow-light);
}

article th:not([class*="border-"]):not([class*="p-"]),
article td:not([class*="border-"]):not([class*="p-"]) {
  border: 1px solid #ddd;
  padding: 12px 8px;
  text-align: left;
}

article th:not([class*="bg-"]) {
  background-color: #f8f9fa;
  font-weight: bold;
  color: var(--blog-text-dark);
}

article tr:nth-child(even):not([class*="bg-"]) {
  background-color: #f9f9f9;
}

article tr:hover:not([class*="hover:"]) {
  background-color: #f5f5f5;
}

/* ===== 引用スタイル（TailwindCSS非依存） ===== */
article blockquote:not([class*="border-"]):not([class*="bg-"]):not([class*="p-"]) {
  border-left: 4px solid var(--blog-pink-medium);
  margin: 2em 0;
  padding: 1em 2em;
  background-color: #f9f9f9;
  font-style: italic;
  position: relative;
}

article blockquote p:not([class*="m-"]) {
  margin: 0;
}

article blockquote footer {
  display: block;
  margin-top: 1em;
  font-size: 0.9rem;
  color: #777;
}

article blockquote footer cite {
  font-style: normal;
}

/* ===== ブログ装飾スタイル（TailwindCSS完全回避） ===== */

/* 見出し装飾（article内かつTailwindCSSクラスなしの場合のみ） */
article .is-style-heading-style-1:not([class*="bg-"]):not([class*="text-"]) {
  all: revert;
  display: block !important;
  background: linear-gradient(135deg, var(--blog-pink-gradient-start), var(--blog-pink-gradient-end)) !important;
  color: white !important;
  padding: 20px 30px !important;
  margin: 2em 0 1.5em !important;
  border-radius: var(--blog-border-radius-md) !important;
  font-size: 1.8rem !important;
  font-weight: bold !important;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3) !important;
  box-shadow: var(--blog-shadow-medium) !important;
  position: relative !important;
  line-height: 1.3 !important;
  border: none !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

article .is-style-heading-style-1:not([class*="bg-"]):not([class*="text-"])::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 6px;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  border-radius: var(--blog-border-radius-md) 0 0 var(--blog-border-radius-md);
}

article .is-style-heading-style-2:not([class*="bg-"]):not([class*="border-"]) {
  all: revert;
  display: block !important;
  background: linear-gradient(90deg, #ffe6f0 0%, #ffffff 100%) !important;
  border-left: 6px solid var(--blog-pink-medium) !important;
  padding: 15px 25px !important;
  margin: 2em 0 1em !important;
  font-size: 1.5rem !important;
  font-weight: bold !important;
  color: #d63384 !important;
  border-radius: 0 var(--blog-border-radius-sm) var(--blog-border-radius-sm) 0 !important;
  box-shadow: var(--blog-shadow-light) !important;
  line-height: 1.4 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

article .is-style-heading-style-3:not([class*="border-"]):not([class*="text-"]) {
  all: revert;
  display: block !important;
  font-size: 1.3rem !important;
  font-weight: bold !important;
  color: #e91e63 !important;
  margin: 2em 0 1em !important;
  padding-bottom: 8px !important;
  border-bottom: 3px solid var(--blog-pink-medium) !important;
  position: relative !important;
  line-height: 1.4 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

article .is-style-heading-style-3:not([class*="border-"]):not([class*="text-"])::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 30px;
  height: 3px;
  background: var(--blog-pink-gradient-end);
}

article .is-style-heading-style-4:not([class*="bg-"]):not([class*="border-"]) {
  all: revert;
  display: inline-block !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  color: #e91e63 !important;
  margin: 2em 0 0.5em !important;
  padding: 8px 15px !important;
  background: var(--blog-pink-light) !important;
  border-radius: var(--blog-border-radius-lg) !important;
  border: 2px solid #ffb3d1 !important;
}

/* ボックス装飾（TailwindCSS完全回避） */
article .is-style-box-point:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: white !important;
  border: 2px dashed var(--blog-pink-medium) !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-point:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::before {
  content: 'POINT';
  position: absolute;
  top: -12px;
  left: 15px;
  background: var(--blog-pink-medium);
  color: white;
  padding: 4px 12px;
  border-radius: var(--blog-border-radius-lg);
  font-size: 0.8rem;
  font-weight: bold;
}

article .is-style-box-attention:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: linear-gradient(135deg, #fff8f0, #ffe6d4) !important;
  border-left: 6px solid #ff8c42 !important;
  border-radius: 0 var(--blog-border-radius-sm) var(--blog-border-radius-sm) 0 !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-attention:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::before {
  content: '⚠️';
  position: absolute;
  top: 15px;
  left: -3px;
  font-size: 1.2rem;
}

article .is-style-box-important:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: #fff0f0 !important;
  border: 2px solid #ff4757 !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-important:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::before {
  content: '❗';
  position: absolute;
  top: -10px;
  right: 15px;
  background: #ff4757;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

article .is-style-box-heart:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: linear-gradient(135deg, var(--blog-pink-light), #ffe6f0) !important;
  border: 2px solid #ff69b4 !important;
  border-radius: var(--blog-border-radius-lg) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-heart:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::before {
  content: '💖';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2rem;
}

/* 基本ボックス（TailwindCSS回避） */
article .is-style-box-basic:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: #fff5f8 !important;
  border: 2px solid var(--blog-pink-medium) !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-basic-blue:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: #f0f8ff !important;
  border: 2px solid #4a9eff !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-basic-yellow:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: #fffbf0 !important;
  border: 2px solid #ffc107 !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

/* 新しいボックス装飾（TailwindCSS回避） */
article .is-style-box-gradient:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: linear-gradient(135deg, var(--blog-pink-light), #ffe6f0) !important;
  border: 2px solid var(--blog-pink-medium) !important;
  border-radius: var(--blog-border-radius-md) !important;
  box-shadow: 0 4px 12px rgba(255, 107, 157, 0.15) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-shadow:not([class*="bg-"]):not([class*="shadow-"]):not([class*="p-"]) {
  display: block !important;
  background: white !important;
  border-radius: var(--blog-border-radius-sm) !important;
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.2) !important;
  border-top: 4px solid var(--blog-pink-medium) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-memo:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: #f8f9ff !important;
  border: 1px solid #b8c5ff !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-memo:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::before {
  content: '📝';
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 1.2rem;
}

article .is-style-box-question:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
  display: block !important;
  background: linear-gradient(135deg, #f0fff4, #e6ffe6) !important;
  border: 2px solid #5cb85c !important;
  border-radius: var(--blog-border-radius-sm) !important;
  padding: 20px !important;
  margin: 20px 0 !important;
  position: relative !important;
  clear: both !important;
  width: 100% !important;
  box-sizing: border-box !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
}

article .is-style-box-question:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::before {
    content: '❓';
    position: absolute;
    top: -10px;
    left: 15px;
    background: #5cb85c;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

article .is-style-box-balloon:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"]) {
    display: block !important;
    background: white !important;
    border: 2px solid #ff6b9d !important;
    border-radius: 15px !important;
    padding: 20px !important;
    margin: 20px 0 !important;
    position: relative !important;
    clear: both !important;
    width: 100% !important;
    box-sizing: border-box !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

article .is-style-box-balloon:not([class*="bg-"]):not([class*="border-"]):not([class*="p-"])::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 30px;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #ff6b9d;
}

/* カスタムリストスタイル（TailwindCSS上書き） */
article ul.is-style-list-check,
article ol.is-style-list-check {
    list-style: none !important;
    padding-left: 0 !important;
    margin: 1.5em 0 !important;
}

article ul.is-style-list-check li,
article ol.is-style-list-check li {
    position: relative !important;
    padding-left: 30px !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    line-height: 1.6 !important;
    list-style: none !important;
}

article ul.is-style-list-check li::before,
article ol.is-style-list-check li::before {
    content: '✓' !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: #ff6b9d !important;
    font-weight: bold !important;
    background: #fff0f5 !important;
    width: 20px !important;
    height: 20px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.8rem !important;
    border: 2px solid #ff6b9d !important;
}

article ul.is-style-list-number,
article ol.is-style-list-number {
    list-style: none !important;
    padding-left: 0 !important;
    counter-reset: number-counter !important;
    margin: 1.5em 0 !important;
}

article ul.is-style-list-number li,
article ol.is-style-list-number li {
    position: relative !important;
    padding-left: 35px !important;
    margin-bottom: 8px !important;
    color: #333 !important;
    counter-increment: number-counter !important;
    line-height: 1.6 !important;
    list-style: none !important;
}

article ul.is-style-list-number li::before,
article ol.is-style-list-number li::before {
    content: counter(number-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: white !important;
    font-weight: bold !important;
    background: linear-gradient(135deg, #ff6b9d, #ffa8cc) !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 4px rgba(255, 107, 157, 0.3) !important;
}
	
/* ===== ブログ一覧ページ レスポンシブ対応 ===== */
	
	
	
	
	
	
/* ===== ブログ一覧ページ レスポンシブ対応 ===== */

/* デスクトップ・タブレット: 2列表示 */
.grid.grid-cols-2 {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.5rem !important;
}

/* モバイル: 1列表示 */
@media (max-width: 767px) {
    .grid.grid-cols-2 {
        grid-template-columns: 1fr !important;
    }
}

/* 小さなモバイル端末: さらに調整 */
@media (max-width: 480px) {
    .grid.grid-cols-2 {
        gap: 1rem !important;
    }
    
    /* カード内の余白も調整 */
    .grid.grid-cols-2 .p-4 {
        padding: 0.875rem !important;
    }
    
    /* 画像の高さを少し小さく */
    .grid.grid-cols-2 .h-48 {
        height: 10rem !important; /* 160px */
    }
}
	
	




