:root {
  /* 🌌 Blowfishダークモードの厳選カラーパレット */
  --color-bg-primary: #0f172a;    /* 深みのあるダークネイビー */
  --color-bg-secondary: #1e293b;  /* カードやボックス用の少し明るいネイビー */
  --color-border: #334155;        /* 境界線 */
  --color-text-main: #f1f5f9;     /* メイン白文字 */
  --color-text-sub: #cbd5e1;      /* 補助グレー文字 */
  --color-text-muted: #64748b;    /* 消えかかったミュート文字 */
  --color-link: #60a5fa;          /* 洗練されたブルーリンク */
  --color-link-hover: #93c5fd;
  --color-accent: #3b82f6;        
  --color-primary-green: #2bc473; /* ダーク背景で最も映える鮮やかな菜園グリーン */
}

body { 
    background-color: var(--color-bg-primary); 
    color: var(--color-text-main); 
    font-family: sans-serif; 
    line-height: 1.8; 
    margin: 0; 
    padding: 0; 
}

/* 📺 埋め込みプレイヤー・SNS防衛用レスポンシブCSS補正 */
.video-wrapper {
    margin: 1.2rem auto;
    padding: 0 1rem;
}
.video-wrapper.regular-layout { max-width: 560px; }
.video-wrapper.shorts-layout { max-width: 290px; }

.video-container-regular {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}
.video-container-shorts {
    position: relative;
    width: 100%;
    padding-top: 177.77%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(0,0,0,0.4);
}
.video-container-regular iframe,
.video-container-shorts iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    border: 0;
}

.instagram-container {
    margin: 1.2rem auto;
    display: flex;
    justify-content: center;
    width: 100%;
}
.instagram-container iframe.instagram-media,
.instagram-container blockquote.instagram-media {
    margin: 0 auto;
    max-width: 320px;
    min-width: 270px;
    background: var(--color-bg-secondary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- Blowfish/Custom コンポーネント群 --- */
.card-base {
  display: block;
  background-color: var(--color-bg-secondary);
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.card-base:hover { 
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.4); 
}
.card-title-base {
  font: 700 0.95rem/1.25rem sans-serif;
  color: var(--color-text-main);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-base img { width: 100%; height: 100%; object-fit: cover; object-position: center; }

/* --- ブログ記事カード用定義 --- */
.blog-card {
  display: flex;
  margin: 1rem 0;
  max-width: 42rem;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--color-border);
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--color-bg-secondary);
  transition: border-color 0.2s;
}
.blog-card:hover { border-color: var(--color-primary-green); }
.blog-card-thumbnail { width: 100px; flex-shrink: 0; background: var(--color-border); }
.blog-card-thumbnail img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-content { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; justify-content: center; min-width: 0; overflow: hidden; }
.blog-card-content h4 { margin: 0 0 4px 0; font-size: 0.95rem; font-weight: 700; color: var(--color-text-main); line-height: 1.3; }
.blog-card-excerpt { margin: 0; font-size: 0.875rem; color: var(--color-text-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blog-card-footer { margin-top: 2px; font-size: 0.65rem; color: var(--color-text-muted); text-align: right; }

@media (max-width: 600px) {
  .blog-card { flex-direction: column; text-align: center; }
  .blog-card-thumbnail { width: 100% !important; height: 180px; }
  .blog-card-content { padding: 1rem; align-items: center; }
}

/* --- コンテナ・個別記事レイアウト --- */
.my-container { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem; }

.post-card {
    background-color: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}
.post-card:hover { 
    transform: translateY(-4px); 
    box-shadow: 0 12px 24px rgba(0,0,0,0.4); 
    border-color: var(--color-primary-green);
}
.post-card-image img { width: 100%; height: 200px; object-fit: cover; display: block; }
.post-card-content { padding: 1.5rem; display: flex; flex-direction: column; flex-grow: 1; }
.post-card-title { margin: 0 0 0.75rem 0; font-size: 1.3rem; font-weight: 800; color: var(--color-text-main); }
.post-card-summary { color: var(--color-text-sub); font-size: 0.95rem; line-height: 1.7; margin-bottom: 1.5rem; flex-grow: 1; }

.my-page-title { font-size: 2.2rem; font-weight: 900; color: var(--color-text-main); text-align: center; margin-bottom: 2.5rem; line-height: 1.2; }

/* 🛠️ マークダウン見出し（h2, h3） */
.my-article-content h2 { font-size: 1.75rem; font-weight: 800; color: var(--color-text-main); margin: 3.5rem 0 1.5rem; padding: 0.7rem 0 0.7rem 1rem; border-left: 6px solid var(--color-primary-green); background-color: var(--color-bg-secondary); border-radius: 0 4px 4px 0; }
.my-article-content h3 { font-size: 1.4rem; font-weight: 700; color: var(--color-text-main); margin: 2.5rem 0 1rem; display: flex; align-items: center; }
.my-article-content h3::before { content: "●"; color: var(--color-primary-green); margin-right: 0.5rem; font-size: 0.8em; }

/* 有料限定ボックス・ボタン */
.buy-box { background: #231f13; border: 1px solid #443c1b; padding: 2.5rem; border-radius: 12px; margin-top: 3rem; text-align: center; color: #fcd34d; }
.buy-button, .stripe-button { background: #ffc107; color: #0f172a; border: none; padding: 12px 30px; font-size: 18px; font-weight: bold; border-radius: 6px; cursor: pointer; text-decoration: none; display: inline-block; transition: background 0.2s; }
.buy-button:hover, .stripe-button:hover { background: #e0a800; }

.hidden { display: none; }
.success-box { background: #14271c; border: 1px solid var(--color-primary-green); padding: 15px; border-radius: 6px; margin-bottom: 20px; color: #6ee7b7; }
.back-link { display: inline-block; margin-top: 20px; color: var(--color-primary-green); text-decoration: none; cursor: pointer; font-weight: bold; }
.back-link:hover { color: var(--color-text-main); text-decoration: underline; }

/* フッター */
.my-footer { padding: 3rem 0; margin-top: 5rem; border-top: 1px solid var(--color-border); text-align: center; color: var(--color-text-sub); background: var(--color-bg-secondary); }
.footer-chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 15px 0; }
.chip { font-size: 0.75rem; padding: 6px 14px; background: var(--color-bg-primary); color: var(--color-text-sub); border-radius: 100px; text-decoration: none; transition: 0.2s; border: 1px solid var(--color-border); }
.chip:hover { background: var(--color-primary-green); color: var(--color-bg-primary); font-weight: bold; }
.footer-site-name { font-weight: bold; color: var(--color-text-main); margin-bottom: 0.5rem; }
.footer-description { font-size: 0.875rem; color: var(--color-text-sub); margin-bottom: 1rem; opacity: 0.8; }
.footer-copy { font-size: 0.75rem; color: var(--color-text-muted); }
