/*
Theme Name: Lightning Child
Theme URI:
Template: lightning
Description:
Author: Vektor,Inc.
Author URI: https://www.vektor-inc.co.jp
Tags:
Version: 0.6.1
*/

/* スマホ：会社案内のカバー画像が切れないように高さを確保 */
@media (max-width: 767px) {
  .wp-block-column .wp-block-cover {
    min-height: 200px !important;
  }
}



/* ========================
会社案内
========================= */

/* 本文内の「幅広（alignwide）」を通常の本文幅にそろえる */
main .alignwide,
article .alignwide,
.entry-content .alignwide,
.entry-body .alignwide {
  max-width: var(--wp--style--global--content-size, 1140px) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* リンクのないVKボタン（電話番号）のホバー・クリック反応をなくす */
.vk_button_link:not([href]) {
  pointer-events: none !important;
  cursor: default !important;
}
/* ========================
お知らせ
========================= */

/* スマホ：お知らせの「続きを読む」を文章の下にきちんと配置 */
@media (max-width: 767px) {
  .vk_post_excerpt_readMore,
  .vk_post_body .btn,
  .vk_post_btnOuter,
  .more-link {
    position: static !important;
    float: none !important;
    display: inline-block !important;
    margin-top: 10px !important;
  }
  .vk_post_btnOuter {
    text-align: left !important;
  }
}

/* スマホ：お知らせを画像上・文章下の縦並びに */
@media (max-width: 767px) {
  .vk_post,
  .media {
    display: block !important;
  }
  .media-img,
  .media-body {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
  }
  .media-img {
    margin-bottom: 12px !important;
  }
}

/* ========================
取扱製品
========================= */

/* スマホ：折り返し禁止（text-nowrap）を解除して枠内に収める */
@media (max-width: 767px) {
  .text-nowrap {
    white-space: normal !important;
  }
}

/* ========================
投稿ページ
========================= */

/*お知らせ投稿のPDF高さ調整*/
.wp-block-file__embed {
    height: 400px !important;
}

/* 投稿のカテゴリー表示を消す */
.entry-meta-data-list--category {
    display: none !important;
}

/* 前後記事ナビ（前の記事／次の記事）を消す */
.vk_posts.next-prev {
    display: none !important;
}

/* 投稿者の表示を消す */
.entry-meta-item-author {
    display: none !important;
}

/* ========================
安全データシート（SDS）検索
========================= */

/* SDS表：「件表示」の数字とプルダウン矢印が重ならないようにする */
.dt-container .dt-length select.dt-input {
  padding-right: 28px !important;
  min-width: 4.5em !important;
}

/* ========================
お問い合わせ
========================= */

/* お問い合わせ：同意チェックと送信ボタンを中央寄せ */
.wpcf7-form p:has(.wpcf7-acceptance),
.wpcf7-form p:has(.wpcf7-submit),
.wpcf7-form .wpcf7-submit {
  text-align: center !important;
}

.wpcf7-form .wpcf7-submit {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* ========================
フッターメニュー
========================= */

/* フッターメニューを右寄せにする */
/* .footerNav ul,
.footer-nav ul,
.site-footer nav ul {
  justify-content: flex-end !important;
  text-align: right !important;
} */

/* フッターメニュー：ログイン中は右寄せ、ログアウト中は中央 */
body.logged-in .footerNav ul,
body.logged-in .footer-nav ul,
body.logged-in .site-footer nav ul {
  justify-content: flex-end !important;
  text-align: right !important;
}
body:not(.logged-in) .footerNav ul,
body:not(.logged-in) .footer-nav ul,
body:not(.logged-in) .site-footer nav ul {
  justify-content: center !important;
  text-align: center !important;
}

/* フッターの「Powered by …」を非表示 */
p:has(a[href*="wordpress.org/themes/lightning"]) {
  display: none !important;
}

/* スマホ：フッターのロゴ・住所を中央寄せ */
@media (max-width: 767px) {
  .site-footer {
    text-align: center !important;
  }
  .site-footer img {
    display: inline-block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

@media (max-width: 767px) {
  .footerNav,
  .footer-nav,
  .site-footer nav {
    display: none !important;
  }
}

/* ========================
ハンバーガーメニュー
========================= */

/* メニュー内の検索フォームを非表示 */
.searchform,
.widget_search {
  display: none !important;
}

/* スマホ：MENUボタン（ハンバーガー）を右上に移動 */
@media (max-width: 767px) {
  #vk-mobile-nav-menu-btn {
    float: right !important;
    margin-left: auto !important;
    left: auto !important;
    right: 15px !important;
  }
}

