/* ================================
   Grid / Card / Typography (ベース)
   ================================ */

/* ラッパー */
.lightning-sc-grid{
    box-sizing: border-box;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 50px;
  }
  
  /* カード */
  .lightning-sc-card{
    max-width: 450px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #E8E3DE;
    border-radius: 16px;
    padding: 20px 20px 24px;
    box-shadow: 0 1px 0 rgba(0,0,0,.02);
    overflow: hidden;
  }
  
  /* 見出し */
  .lightning-sc-title{
    margin: 6px 0 12px;
    text-align: center;
    font-size: clamp(20px, 2.4vw, 32px);
    line-height: 1.3;
    color: #2F3F4B;
    letter-spacing: .04em;
    font-family: "Noto Serif JP", serif;
  }
  
  /* メディア（動画） */
  .lightning-sc-media{ 
    border-radius: 10px; 
    overflow: hidden; 
    margin-bottom: 14px;
    position: relative;
    background: #000;
  }
  
  /* 動画アスペクト比 */
  .lightning-sc-media[data-ratio="16x9"] { aspect-ratio: 16 / 9; }
  .lightning-sc-media[data-ratio="4x3"]  { aspect-ratio: 4 / 3; }
  .lightning-sc-media[data-ratio="1x1"]  { aspect-ratio: 1 / 1; }
  
  /* サムネイル画像 */
  .lightning-sc-poster {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
  }
  
  /* 動画要素（初期状態は非表示） */
  .lightning-sc-video{ 
    display: block; 
    width: 100%; 
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    opacity: 0;
  }
  
  /* ホバー時：サムネイル非表示、動画表示 */
  .lightning-sc-card:hover .lightning-sc-poster {
    opacity: 0;
    pointer-events: none;
  }
  
  .lightning-sc-card:hover .lightning-sc-video {
    opacity: 1;
  }
  
  /* モバイル用：is-playing クラスで制御 */
  .lightning-sc-card.is-playing .lightning-sc-poster {
    opacity: 0;
    pointer-events: none;
  }
  
  .lightning-sc-card.is-playing .lightning-sc-video {
    opacity: 1;
  }
  
  /* カーソルスタイル */
  .lightning-sc-media {
    cursor: pointer;
  }
  
  /* 説明（3行まで表示） */
  .lightning-sc-desc{
    color: #46525B;
    font-size: 14.5px;
    line-height: 1.9;
    margin: 8px 4px 18px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: "Noto Sans JP", sans-serif;
  }
  
  /* スマホで1カラム */
  @media (max-width: 760px){
    .lightning-sc-grid{ grid-template-columns: 1fr; gap: 28px; }
  }
  
  
  /* ================================
     Buttons (1/2/3個バリアント)
     ================================ */
  
  /* ラッパー共通（見た目のみ。レイアウトは各バリアントで定義） */
  .lightning-sc-btnbox{
    background: #273A66;
    border-radius: 10px;
    overflow: hidden;
  }

  
  /* リンク文字の上書き（テーマ .post_content a 対策） */
  .lightning-sc-btn,
  .lightning-sc-btn:link,
  .lightning-sc-btn:visited,
  .lightning-sc-btn:focus{
    font-family: "Noto Serif JP", serif;
    color: #fff !important;
    text-decoration: none;
    transition: all 0.3s ease;
  }

  .lightning-sc-btn:hover{
    font-family: "Noto Serif JP", serif;
    color: rgba(255,255,255,0.7) !important;
    text-decoration: none;
    transform: scale(1.05);
  }
  
  /* ボタン共通 */
  .lightning-sc-btn{
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    min-height: 48px;
    white-space: nowrap;
  }
  
  /* 仕切り共通（必要な時だけ表示） */
  .lightning-sc-sep{
    width: 1px;
    background: rgba(255,255,255,.35);
  }
  
  /* --- 1個：中央・自動幅 --- */
  .lightning-sc-btnbox.is-1{
    display: flex;            /* コンテンツ幅で中央に置く */
    justify-content: center;
    align-items: stretch;
  }
  .lightning-sc-btnbox.is-1 .lightning-sc-sep{ display:none; }
  
  /* --- 2個：中央固定（200px | 1px | 200px）--- */
  .lightning-sc-btnbox.is-2{
    display: grid;
    grid-template-columns: 200px 1px 200px; /* 左|線|右 */
    width: 100%;                            /* 200 + 1 + 200 */
    margin: 0 auto;                          /* カード中央へ */
    justify-content: center;
    align-items: stretch;
  }
  .lightning-sc-btnbox.is-2 .lightning-sc-btn{
    width: 100%; justify-content: center;
  }
  .lightning-sc-btnbox.is-2 .lightning-sc-sep{
    display: block; height: 100%; align-self: stretch;
  }
  /* SPは可変幅で等分 */
  @media (max-width: 760px){
    .lightning-sc-btnbox.is-2{
      grid-template-columns: 1fr 1px 1fr;
      width: 100%;
      max-width: 293px;
      font-size: smaller;
    }
  }
  
  /* --- 3個：幅いっぱい3等分＋仕切り --- */
  .lightning-sc-btnbox.is-3{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
  }
  .lightning-sc-btnbox.is-3 .lightning-sc-btn{
    width: 100%; justify-content: center;
  }
  /* span は使わず、ボタンの左ボーダーで区切る */
  .lightning-sc-btnbox.is-3 .lightning-sc-sep{ display: none; }
  .lightning-sc-btnbox.is-3 .lightning-sc-btn:not(:first-child){
    border-left: 1px solid rgba(255,255,255,.35);
  }
