/*
Theme Name: Lightning Child Sample
Theme URI: 
Template: lightning
Description: 
Author: 
Tags: 
Version: 0.6.0
*/



/* 高さ調整（Lightningが勝手に上余白を作るのを防止） */
#vk-main,
#main,
#content,
.vk-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}




/* ▼ Lightning のナビゲーション・ホバー下線を完全無効化 */
.site-header a:hover,
.global-nav a:hover,
.global-nav-list a:hover,
.global-nav ul li a:hover,
header nav a:hover {
    text-decoration: none !important;
}

.global-nav a::after,
.global-nav-list a::after,
.global-nav ul li a::after,
header nav a::after {
    display: none !important;
    content: none !important;
    border: none !important;
}
/* Lightning が勝手に付ける「下線エフェクト」をすべて無効化 */
.global-nav li a,
.global-nav-list li a,
.gMenu_item a {
    text-decoration: none !important;
    border: none !important;
}

.global-nav li a:hover,
.global-nav-list li a:hover,
.gMenu_item a:hover {
    text-decoration: none !important;
    border: none !important;
}

.global-nav li a::after,
.global-nav-list li a::after,
.gMenu_item a::after {
    display: none !important;
    content: none !important; 
    border: none !important;
}


/* ヘッダーナビ全般に対して下線禁止（保険用） */
header a,
header nav a {
  text-decoration: none !important;
  border: none !important;
}
header a:hover,
header nav a:hover {
  text-decoration: none !important;
  border: none !important;
}
header a::after,
header nav a::after {
  content: none !important;
  display: none !important;
  border: none !important;
}




/* お客様の声 */
.voice {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  padding: 14px 0;
  position: relative;
  margin: 40px 0;
}

.voice::before,
.voice::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: #000;
}

.voice::before {
  top: 0;
}

.voice::after {
  bottom: 0;
}



/* 更新日削除 */
span.updated {
  display: none !important;
}

.fas fa-history{
  display: none !important;
}

.fa-history{
  display: none !important;
}


.entry-meta-item-author-image{
  display: none !important;
}

/* 更新者削除 */
span.fn {
  display: none !important;
}



.page-header-tittle {
  display: none !important;
}

/* ==========================================
   カテゴリーページ：画像を必ず表示する
   ＋ サムネイル5列 ＋ 投稿日だけ
   ========================================== */

/* ▼ 画像を絶対に非表示にしない（上書き用） */
body.archive.category .vk_post_imgOuter img,
body.archive.category .vk_post_imgOuter_img {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ▼ カテゴリーラベル（グレーの「ワークショップ」）を消す */
body.archive.category .vk_post_imgOuter_singleTermLabel,
body.archive.category .vk_post_imgOuter .card-img-overlay {
  display: none !important;
}

/* ▼ 一覧コンテナを 5 列グリッドに */
body.archive.category .vk_posts-mainSection {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
}

/* ▼ 各投稿カードをシンプルに */
body.archive.category .vk_post {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

/* ▼ タイトル・抜粋・続きを読むは非表示 */
body.archive.category .vk_post_title,
body.archive.category .vk_post_excerpt,
body.archive.category .vk_post_btnOuter {
  display: none !important;
}

/* ▼ 投稿日だけ残す */
body.archive.category .vk_post_date {
  display: block !important;
  margin-top: 6px;
  font-size: 13px;
  color: #666;
}

/* ▼ 本文ラッパーの余白 */
body.archive.category .vk_post_body {
  margin: 0;
  padding: 4px 0 0;
  background: transparent;
}

/* ▼ レスポンシブ（列数調整） */
@media (max-width: 1200px) {
  body.archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (max-width: 900px) {
  body.archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  body.archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* =======================================
   画像をカードいっぱいに大きく表示する
   ======================================= */

/* 親に幅100%を持たせる（これが超重要） */
body.archive.category .vk_post_imgOuter {
  display: block;
  width: 100%;
}

/* 画像を親いっぱいに拡大（元の212pxに制限されない） */
body.archive.category .vk_post_imgOuter img {
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  display: block;
  border-radius: 4px; /* お好み。不要なら削除 */
}

/* =======================================
   日付を画像の真下に寄せる
   ======================================= */

body.archive.category .vk_post_date {
  display: block;
  text-align: left;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.3;
  color: #333;
}

/* 余白調整 */
body.archive.category .vk_post_body {
  padding-top: 6px;
}

/* ===== カテゴリーページ：画像 + 日付レイアウト ===== */

/* グリッドレイアウト（5列） */
.archive.category .vk_posts-mainSection {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
}

/* 投稿ブロックのリセット */
.archive.category .vk_post {
  border: none;
  box-shadow: none;
  background: none;
}

/* タイトル・抜粋・カテゴリーラベルは消す */
.archive.category .vk_post_title,
.archive.category .vk_post_excerpt,
.archive.category .vk_post_btnOuter,
.archive.category .vk_post_imgOuter_singleTermLabel {
  display: none !important;
}

/* 画像を大きく見せる */
.archive.category .vk_post_imgOuter {
  width: 100%;
  padding-bottom: 66%; /* 画像比率を調整（正方形にしたければ 100%） */
  background-size: cover;
  background-position: center;
  position: relative;
}

.archive.category .vk_post_imgOuter img {
  display: none; /* 背景画像が使われているため非表示 */
}

/* 日付を画像の下に表示 */
.archive.category .vk_post_date {
  text-align: center;
  font-size: 14px;
  margin-top: 8px;
  display: block !important;
}

/* レスポンシブ */
@media (max-width: 1200px) {
  .archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ▼ カテゴリーページ：画像の下に日付を配置（flex → block に変える） */
.archive.category .vk_post {
  display: block !important;
}

/* 画像を100%で表示 */
.archive.category .vk_post_imgOuter {
  width: 100% !important;
  margin-bottom: 10px;
}

/* 日付を中央寄せにする（好みで） */
.archive.category .vk_post_date {
  text-align: center;
  font-size: 14px;
  display: block;
}

/* タイトルなど不要部分を非表示（必要なら） */
.archive.category .vk_post_title,
.archive.category .vk_post_excerpt,
.archive.category .vk_post_btnOuter {
  display: none !important;
}

/* 画像サイズ調整 */
.archive.category .vk_post_imgOuter img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* 5列グリッド */
.archive.category .vk_posts-mainSection {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 40px;
  align-items: start;
}

/* レスポンシブ */
@media (max-width: 1200px) {
  .archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(4, 1fr);
  }
}
@media (max-width: 900px) {
  .archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 600px) {
  .archive.category .vk_posts-mainSection {
    grid-template-columns: repeat(2, 1fr);
  }
}
.archive.category .vk_post_imgOuter {
  position: relative;
  width: 100%;
  padding-top: 135%;  /* ←これが画像の縦の長さ */
  background-size: cover;
  background-position: center;
}











/* 参加者募集中の大きい枠 */
.category-workshop .workshop-featured {
  max-width: 960px;
  margin: 40px auto 60px;
}

.category-workshop .workshop-featured__title {
  font-size: 22px;
  text-align: center;
  margin-bottom: 20px;
}

.category-workshop .workshop-featured__item {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 10px rgba(0,0,0,.05);
}

.category-workshop .workshop-featured__link {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  text-decoration: none;
  color: inherit;
}

.category-workshop .workshop-featured__thumb {
  flex: 0 0 40%;
}

.category-workshop .workshop-featured__thumb img {
  width: 100%;
  height: auto;
  display: block;
}

.category-workshop .workshop-featured__meta {
  flex: 1 1 55%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.category-workshop .workshop-featured__date {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.category-workshop .workshop-featured__heading {
  font-size: 18px;
  line-height: 1.5;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .category-workshop .workshop-featured__link {
    flex-direction: column;
  }

  .category-workshop .workshop-featured__thumb,
  .category-workshop .workshop-featured__meta {
    flex: 1 1 100%;
  }
}



/* =======================================
   カテゴリーページ：画像ホバー拡大
   ======================================= */
.archive.category .vk_post_imgOuter {
  overflow: hidden;              /* はみ出し防止 */
  position: relative;
}

.archive.category .vk_post_imgOuter img {
  transition: transform 0.4s ease, opacity 0.4s ease;
  transform: scale(1);           /* 初期状態 */
}

.archive.category .vk_post_imgOuter:hover img {
  transform: scale(1.1);         /* 10%拡大 */
  opacity: 0.95;                 /* 少しだけ暗くして強調（お好みで） */
}




/* =======================================
   upcoming カテゴリー付き投稿に NEW バッジ
   ======================================= */

/* NEW バッジを表示する対象（画像枠） */
.archive.category .vk_post.category-upcoming .vk_post_imgOuter {
  position: relative;
  overflow: hidden;
}

/* NEW バッジ本体 */
.archive.category .vk_post.category-upcoming .vk_post_imgOuter::before {
  content: "NEW";
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #e60033; /* 赤：お好みで変更可 */
  border-radius: 3px;
  z-index: 5;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* サムネイル全体 */
.fair-thumb {
  position: relative;
  overflow: hidden; /* はみ出し防止はお好みで */
}

/* 実際のチラシ画像 */
.fair-thumb img {
  display: block;
  width: 100%;
  height: auto;
}

/* NEWラベル */
.fair-thumb .label-new {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: #e60012;
  color: #fff;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 3px;
}

/* もし .fair-thumb 内の全 img に width:100% をかけたい場合、
   NEW を画像で入れているならクラスで除外してください */
.fair-thumb img.thumb-img {  /* ←チラシ画像にクラスを付けて */
  width: 100%;
}
.fair-thumb img.label-new-img { /* ←NEW用画像には 100% をかけない */
  position: absolute;
  top: 8px;
  left: 8px;
  width: 60px; /* 任意のサイズ */
  height: auto;
}


/* ===== フェアカテゴリ一覧：サムネイルを強制的に揃える ===== */

/* 画像枠：変な padding / 背景指定を全部リセットして、縦横比を指定 */
.archive.category .vk_post_imgOuter {
  position: relative !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  
  background-size: auto !important;
  background-position: center !important;
  aspect-ratio: 3 / 4;        /* ←縦長チラシなら 3:4。お好みで 2/3 や 4/5 などに変更可 */
  overflow: hidden;
}

/* 中の img を必ず表示＆全面にフィットさせる */
.archive.category .vk_post_imgOuter img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

/* 日付の体裁（お好みで） */
.archive.category .vk_post_date {
  display: block !important;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}



/* ===== フェア一覧カテゴリ：サムネイルを同じサイズに揃える ===== */

/* 画像枠：背景画像方式で統一 */
.archive.category .vk_post_imgOuter {
  position: relative !important;
  width: 100% !important;
  padding-top: 135% !important;   /* 縦長チラシならこのくらい。好みで 120%〜150% に調整OK */
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  overflow: hidden;
}

/* 念のため、中の <img> があっても非表示にしておく（ダブり防止用） */
.archive.category .vk_post_imgOuter img {
  display: none !important;
}

/* 日付 */
.archive.category .vk_post_date {
  display: block !important;
  text-align: center;
  margin-top: 8px;
  font-size: 14px;
  color: #333;
}




/* ===== スマホのドロワーメニュー：左欠け対策 ===== */
@media (max-width: 768px){

  /* ドロワー全体は画面いっぱい＆はみ出しを見せる */
  .drawer_nav_wrapper{
    left: 0;
    width: 100vw;
    overflow: visible;
    box-sizing: border-box;
  }

  /* ul の“変な余白/ズレ”をリセット */
  .drawer_nav{
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
    box-sizing: border-box;
  }

  /* 各項目を左に食い込ませない（負のmargin/left対策） */
  .drawer_nav > li{
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
    transform: none !important;
  }

  /* クリック領域＋左余白を確保（ここが効きます） */
  .drawer_nav a{
    display: block;
    padding: 14px 16px !important;
    margin: 0 !important;
    box-sizing: border-box;
    overflow-wrap: anywhere; /* 長い文言の折返し保険 */
  }
}
@media (max-width: 768px){
  body, .site, .site-content, #page, #wrapper{
    overflow-x: visible !important;
  }
}


/* ===== スマホ用ドロワー：閉じている時は隠す（WPテーマに勝つ） ===== */
.drawer_bg{
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9998;
}

.drawer_nav_wrapper{
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(85vw, 360px);
  background: #fff;
  z-index: 9999;

  /* 閉じている時 */
  transform: translateX(110%);
  transition: transform .25s ease;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* 開いている時（bodyにクラスが付く想定） */
body.drawer-open .drawer_bg{
  display: block;
}
body.drawer-open .drawer_nav_wrapper{
  transform: translateX(0);
}

/* ボタンは前面に */
.drawer_button{
  position: relative;
  z-index: 10000;
}

/* もしPCメニューがスマホでも出るなら、スマホ時に隠す（クラス名は適宜） */
/* 例：.pc-nav がPCメニューなら */
@media (max-width: 768px){
  .pc-nav{ display:none !important; }
}

@media (max-width: 768px){
  /* ▾ボタンは出さない */
  .drawer_nav .touch-btn{
    display:none !important;
  }

  /* second-level は常に表示（どこかで display:none にされても勝つ） */
  .drawer_nav .second-level{
    display:block !important;
  }

  /* インデント（同階層に見せたければ 0 に） */
  .drawer_nav .second-level a{
    padding-left: 1.2em;
  }
}




/* スマホ表示用：記事本文の余白調整 */
@media (max-width: 768px) {
  .post,
  .entry-content,
  .article,
  .single-post {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}

@media (max-width: 768px) {
  main {
    padding: 0 16px;
  }
}



/* 日付を1行表示に固定 */
.post-date,
.entry-date {
  white-space: nowrap;
}











/* ===== ヘッダーを「ロゴ上・メニュー下」にする（PC） ===== */
@media (min-width: 992px){

  /* ヘッダー全体を縦並びに */
  .site-header .site-header-container,
  .site-header .site-header-inner,
  .site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* ロゴ周りを中央へ */
  .site-header .site-branding,
  .site-header .site-header-logo {
    margin: 12px 0 8px;
    text-align: center;
  }

  /* グローバルナビを中央へ */
  .site-header .global-nav,
  .site-header nav.global-nav,
  .site-header .menu {
    width: 100%;
  }

  .site-header .global-nav .menu,
  .site-header nav.global-nav .menu {
    display: flex;
    justify-content: center;
    gap: 40px;                 /* 右画像っぽい間隔 */
    padding: 10px 0 14px;
    border-top: 1px solid rgba(0,0,0,.08);
  }
}
/* ===== メニュー hover で小さく（ガタつかない） ===== */
@media (min-width: 992px){
  .site-header .global-nav .menu > li > a{
    display: inline-block;
    transition: transform .15s ease, opacity .15s ease;
  }
  .site-header .global-nav .menu > li:hover > a{
    transform: scale(.92);
    opacity: .9;
  }
}
/* ===== ドロップダウンの見た目（白・角丸・影・区切り） ===== */
@media (min-width: 992px){

  /* 親 li を基準に */
  .site-header .global-nav .menu > li{
    position: relative;
  }

  /* サブメニュー本体 */
  .site-header .global-nav .sub-menu{
    background: #fff;
    border: 1px solid rgba(0,0,0,.10);
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,.12);
    padding: 10px 0;
    min-width: 240px;         /* 右画像っぽく */
    top: calc(100% + 10px);   /* 親メニューから少し下に */
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
  }

  /* サブメニューのリンク */
  .site-header .global-nav .sub-menu li a{
    padding: 14px 18px;
    display: block;
    color: #222;
    font-weight: 600;
    text-align: center;       /* 右画像っぽく中央 */
    white-space: nowrap;
  }

  /* 区切り線（1行ごと） */
  .site-header .global-nav .sub-menu li + li{
    border-top: 1px solid rgba(0,0,0,.08);
  }

  /* hover */
  .site-header .global-nav .sub-menu li a:hover{
    background: rgba(0,0,0,.03);
  }

  /* ドロップダウン表示時のチラつき軽減（任意） */
  .site-header .global-nav .sub-menu{
    opacity: 0;
    visibility: hidden;
    transition: opacity .12s ease, visibility .12s ease;
  }
  .site-header .global-nav .menu > li:hover > .sub-menu{
    opacity: 1;
    visibility: visible;
  }
	
	
.site-header .global-nav .menu > li:hover > a{
  transform: scale(.92);
  opacity: .9;
  color: #64c0ed;   /* ← 好きな色に変更 */
}

	
	
	
}
/* ロゴ下の薄いグレー線を消す */
.site-header,
.site-header-container,
.site-header-inner,
.site-header .site-branding {
  border-bottom: none !important;
  box-shadow: none !important;
}
/* ナビゲーション側の区切り線 */
.global-nav,
.global-nav::before,
.global-nav::after,
.navbar,
.navbar::after {
  border: none !important;
  box-shadow: none !important;
}


/****************************************************
 * Lightning スマホ用ハンバーガー（確実版）
 * 右上固定：緑角丸＋白3本線＋影
 * ※三本線はボタン背景で描画（中身に依存しない）
 ****************************************************/
@media (max-width: 991px){

  .vk-mobile-nav-menu-btn{
    width: 58px;
    height: 58px;
    border: 0 !important;
    border-radius: 10px;

    /* ★ここ重要：background: は使わず background-color を使う */
    background-color: #8BC34A !important;

    box-shadow: 0 10px 18px rgba(0,0,0,.20);
    padding: 0 !important;

    position: fixed !important;
    top: 12px !important;
    right: 12px !important;
    left: auto !important;
    bottom: auto !important;
    z-index: 99999 !important;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    visibility: visible !important;
    opacity: 1 !important;

    /* ★三本線を背景画像で描く（これが最強） */
    background-image:
      linear-gradient(#fff,#fff),
      linear-gradient(#fff,#fff),
      linear-gradient(#fff,#fff) !important;
    background-repeat: no-repeat !important;
    background-size: 26px 3px !important;
    background-position:
      center 19px,
      center 28px,
      center 37px !important;
  }

  /* 中の span 等があっても邪魔しない */
  .vk-mobile-nav-menu-btn span,
  .vk-mobile-nav-menu-btn__icon{
    background: transparent !important;
  }
  .vk-mobile-nav-menu-btn span::before,
  .vk-mobile-nav-menu-btn span::after,
  .vk-mobile-nav-menu-btn__icon::before,
  .vk-mobile-nav-menu-btn__icon::after{
    display: none !important;
  }

  .vk-mobile-nav-menu-btn:hover{
    filter: brightness(0.95);
  }
  .vk-mobile-nav-menu-btn:focus{
    outline: none;
    box-shadow: 0 10px 18px rgba(0,0,0,.20), 0 0 0 3px rgba(139,195,74,.35);
  }
}









.footer-fullwidth-area{
  width: 100%;
}
.footer-fullwidth-area .footer-fullwidget{
  width: 100%;
}




/* スマホ時：左右に余白を確保 */
@media (max-width: 768px) {
  .archive.category .vk_posts-mainSection {
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }
}






/* ===== Lightning フッターのクレジットを完全に消す（最終版） ===== */

/* コピーライト系 */
.copySection,
.copySectionInner,
.copySection p,
.copySection a {
  display: none !important;
}

/* footer直下にある文章（Powered by など） */
footer p,
footer .container p,
footer .container a {
  display: none !important;
}

/* 「Powered by WordPress」系の文字列を含む要素を全消し */
footer *:contains("Powered by"),
footer *:contains("WordPress"),
footer *:contains("Lightning Theme"),
footer *:contains("Vektor") {
  display: none !important;
}
