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

/* グーグルフォント */

.home .wp-block-cover__inner-container.is-layout-constrained.wp-block-cover-is-layout-constrained h2 {
  font-family: "Italianno", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 62px !important;
  line-height: 0.8;
}

html {
  scroll-behavior: smooth;
}

a:hover {
  opacity: 0.6;
}

body.home:not(.header_scrolled) nav.global-nav li {
  display: none;
}

.global-nav-list>li .global-nav-name {
  color: #2a44a4;
}

ul.bogo-language-switcher {
  /* 翻訳ボタンを横並びに */
  display: flex;
}

.bogo-header {
  position: absolute;
  top: 0;
  right: 2%;
  transform: translateY(-30%);
  z-index: 10;
  /* Bogoを他の要素の上に表示するためのz-index */
}

.bogo-language-switcher.list-view {
  margin-bottom: 0;
}

@media screen and (max-width:991px) {
  .bogo-header {
    top: 70px;
  }
}

.gt-current-lang {
  display: none;
}


/* ニュードロップダウン */
.dropdown-menu {
  display: none;
  position: absolute;
  list-style: none;
  padding: 0;
  margin: 0;
  z-index: 1000;
}

.dropdown-menu>.wp-block-vk-blocks-gridcolcard-item {
  background-color: #4f69c9fc !important;
}


.dropdown-menu.show {
  display: flex;
  width: 100%;
}

.dropdown-menu.show>.wp-block-vk-blocks-gridcolcard-item {
  width: 100%;
}

@media screen and (max-width: 768px) {
  .dropdown-button {
    width: 100%;
  }

  .dropdown-menu.show {
    width: 100%;
    min-width: auto;
    position: relative;
    display: block;
  }

  .dropdown-menu.show p {
    font-size: 13px !important;
  }

}




/* スクロールヘッダー */
.header_scrolled .site-header-container {
  padding-top: 30px;
}

.page .site-header-container,
.archive .site-header-container,
.error404 .site-header-container,
.single .site-header-container {
  padding-top: 30px;
}

/* .archive .bogo-header,.error404 .bogo-header,.single .bogo-header{
	display: none;
} */


.post-5079 .wp-block-group hr {
  width: 18%;
}

h3.h_line {
  position: relative
}

h3.h_line:after {
  content: ".";
  line-height: 0;
  display: block;
  overflow: hidden;
  position: absolute;
  bottom: -4px;
  width: 30%;
  border-bottom: 4px solid var(--vk-color-primary);
}

h4.s_line.left {
  border-top: solid 2px #2a44a4;
}

h4.s_line.right {
  border-top: solid 2px #5A9738;
}

h4.s_line {
  border-bottom: 1px dotted #000 !important;
}

.child strong {
  position: relative;
  display: inline-block;
}

.child strong:before {
  content: '';
  width: 6px;
  height: 6px;
  border: 0;
  border-bottom: solid 1px #333;
  border-right: solid 1px #333;
  transform: rotate(45deg);
  position: absolute;
  top: 0;
  right: -12px;
  bottom: 0;
  margin: auto;
}

.wp-block-navigation .wp-block-navigation-item__label,
.wp-block-navigation-item__description {
  margin: 0 auto;
  width: fit-content;
  display: block !important;
}


.gt_switcher a img {
  min-width: 16px;
}

@media screen and (min-width:992px) {
  .gt_switcher {
    position: fixed;
    top: 0px;
    right: 20px;
  }
}

.home .vk_slider_item_container.container {
  margin-top: 0 !important;
}

table.table-sm.mt-3 th {
  background: #f2f2f2;
}

@media screen and (max-width:767px) {
  .archive .vk_post-btn-display.media .vk_post_body {
    overflow-x: auto;
  }
}

.accordion {
  background: #2a44a4;
  color: #fff;
  width: 50%;
  margin: 0 auto;
  border-radius: 34px;
}

.vk_accordion:not(.is-style-vk_accordion-no-background-color-border):not(.is-style-vk_accordion-background-color):not(.is-style-vk_accordion-background-color-border):not(.is-style-vk_accordion-background-color-rounded):not(.is-style-vk_accordion-background-color-rounded-border):not(.is-style-vk_accordion-plain) {
  border-bottom: unset;
}

@media screen and (max-width: 768px) {

  .page .page-header-title,
  h1.page-header-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) translate(-58px, -28px);
    width: 60%;
  }
}

.gtranslate_wrapper>.gt_switcher_wrapper {
  position: absolute !important;
}


/*フィードイン*/
.fade-in {
  opacity: 0;
  transition-duration: 800ms;
  transition-property: opacity, transform;
}

.fade-in-up {
  transform: translate(0, 100px);
}

.fade-in-up1 {
  transform: translate(0, 170px);
}

.fade-in-up2 {
  transform: translate(0, 240px);
}

.fade-in-up3 {
  transform: translate(0, 310px);
}

.fade-in-down {
  transform: translate(0, -50px);
}

.fade-in-left {
  transform: translate(-50px, 0);
}

.fade-in-right {
  transform: translate(50px, 0);
}

.scroll-in {
  opacity: 1;
  transform: translate(0, 0);
}


/* fadeUp */

.fadeUp {
  animation-name: fadeUpAnime;
  animation-duration: 0.8s;
  animation-fill-mode: forwards;
  opacity: 0;
  z-index: 100;
}

@keyframes fadeUpAnime {
  from {
    opacity: 0;
    transform: translateY(100px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* スクロールをしたら出現する要素にはじめに透過0を指定　*/

.fadeUpTrigger {
  opacity: 0;
}


/* カスタム投稿タイプ　一覧ページデザイン */


/* ================================
   equipment カテゴリーページ専用
   投稿を表形式（カラム落ち防止）
   ================================ */
body.tax-equipment .post-list.vk_posts {
  display: table;
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
  table-layout: fixed;
  /* カラム幅を固定して落ちないように */
}

/* 各投稿をテーブル行に */
body.tax-equipment .vk_post {
  display: table-row !important;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.2s ease;
}

body.tax-equipment .vk_post:hover {
  background-color: #f9f9f9;
}

/* 各セル */
body.tax-equipment .vk_post_title,
body.tax-equipment .vk_post_excerpt,
body.tax-equipment .vk_post_btnOuter {
  display: table-cell !important;
  padding: 12px 15px;
  border: 1px solid #ddd;
  vertical-align: middle;
  word-break: break-word;
  /* 長い文字でも落ちない */
  overflow-wrap: anywhere;
  /* スマホでも崩れ防止 */
}

/* 列幅を固定 */
body.tax-equipment .vk_post_title {
  width: 25%;
  font-weight: bold;
}

body.tax-equipment .vk_post_excerpt {
  width: 55%;
}

body.tax-equipment .vk_post_btnOuter {
  width: 20%;
  text-align: center;
}

/* ボタン */
body.tax-equipment .vk_post_btnOuter .vk_post_btn {
  display: inline-block;
  padding: 6px 12px;
  background-color: #0073aa;
  color: #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9em;
  white-space: nowrap;
  /* ボタン文字を折り返さない */
}

body.tax-equipment .vk_post_btnOuter .vk_post_btn:hover {
  background-color: #005f8d;
}

/* 疑似ヘッダー */
body.tax-equipment .post-list.vk_posts::before {
  content: "製品名 | 詳細情報 | リンク";
  display: table-row;
  font-weight: bold;
  background: #f2f2f2;
  border-bottom: 2px solid #ccc;
}

.post-list .vk_post-btn-display .vk_post_btnOuter {
  position: unset !important;
}

.post-list .vk_post .media-body {
  width: 100%;
}

.post-list .media .vk_post_body {
  padding-bottom: 0;
}


/**
*カスタムcss
*/
/* アクセント色は Lightning/VK の変数→WP変数→既定色の順で採用 */
.ltg-equip {
  --accent: var(--vk-color-primary, var(--wp--preset--color--vivid-cyan-blue, #0d6efd));
  --border: rgba(0, 0, 0, .08);
  --radius: .5rem;
}

.ltg-table-rental,
.ltg-table-list {
  table-layout: fixed;
  min-width: 600px;
}

/* グループ見出し：太い左ボーダー＋余白 */
.ltg-equip__group-title {
  margin: 2rem 0 1rem;
  padding-left: .75rem;
  border-left: .3rem solid var(--accent);
  font-weight: 700;
  line-height: 1.3;
  font-size: 1.25rem;
  cursor: pointer;
  position: relative;
  padding-right: 1.5rem;
  /* 右アイコン分の余白 */
}

.ltg-equip__group-subTitle {
  margin: 2rem 0 1rem;
  font-weight: 700;
  line-height: 1.3;
  font-size: 1rem;
  position: relative;
}

.ltg-equip__group-title::after {
  content: "＋";
  position: absolute;
  right: .25rem;
  top: 0;
  line-height: 1;
  opacity: .6;
  transition: transform .2s ease, opacity .2s ease;
}

/* 開時は「ー」 */
.ltg-equip__group-title.is-open::after {
  content: "ー";
  opacity: .95;
}

/* 小見出し：薄い下線＋やや詰めた余白 */
.ltg-equip__classify-title {
  margin: 1.25rem 0 .75rem;
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  line-height: 1.35;
  font-size: 1.15rem;
}

/* カード風のリスト：Lightningのカードっぽい薄ボーダー＋角丸＋淡い影（ホバー） */
.ltg-equip__list {
  list-style: none;
  padding-left: 0;
  margin: 0 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: .75rem;
}

.ltg-equip__item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.6;
  position: relative;
  transition: box-shadow .15s ease, border-color .15s ease, transform .06s ease;
}

/* アクセントの丸いインジケータ（箇条書き感を出す） */
.ltg-equip__item::before {
  content: "";
  width: .5rem;
  height: .5rem;
  border-radius: 999px;
  background: var(--accent);
  position: absolute;
  left: .6rem;
  top: calc(50% - .25rem);
}

.ltg-equip__item-text {
  display: block;
  padding-left: 1.1rem;
  /* インジケータ分のオフセット */
}

.ltg-equip__item-link {
  padding: .5rem .8rem;
  display: flex;
}

/* ホバー時：枠色をアクセント寄りに、ほんのり浮かせる */
.ltg-equip__item:hover {
  border-color: color-mix(in oklab, var(--accent) 35%, #0000);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

/* 空表示 */
.ltg-equip__empty {
  color: #666;
  background: #f7f7f7;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: .9rem 1rem;
}

/* ダークモード配慮（任意） */
@media (prefers-color-scheme: dark) {
  .ltg-equip__item {
    background: color-mix(in oklab, #fff 6%, #000);
    border-color: rgba(255, 255, 255, .14);
  }

  .ltg-equip__classify-title {
    border-bottom-color: rgba(255, 255, 255, .14);
  }

  .ltg-equip__empty {
    background: color-mix(in oklab, #000 85%, #fff);
    border-color: rgba(255, 255, 255, .14);
    color: #ddd;
  }
}

.ltg-equip__link {
  color: var(--vk-color-text-link-hover) !important;
}

.ltg-note {
  margin: .5rem 0 1rem;
  font-size: .9rem;
  color: #6c757d
}

.ltg-images__grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.ltg-images__item {
  position: relative;
  margin-top: 0 !important;
}

.ltg-images__item a {
  display: block;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .5rem;
  overflow: hidden;
  transition: box-shadow .15s ease, border-color .15s ease, transform .06s ease;
}

.ltg-images__item a:hover {
  border-color: rgba(0, 0, 0, .15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transform: translateY(-1px);
}

.ltg-images__item img {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.ltg-images__item img {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

/* .ltg-images__item img:before {
  display: block;
  content: 'New!';
  background: rgba(0,0,0,0.85);
  width: 6em;
  height: 6em;
  color: #ffffff;
  text-align: center;
  line-height: 10.5em;
  transform: rotate(-45deg);
  position: absolute;
  top: -3em;
  left: -3em;
} */

.ltg_contactLink {
  text-align: right;
  padding-bottom: 25px;
}


.ltg-equip_purchase {
  padding: 30px 0;
}

.ltg-equip_tblTitle {
  color: #2a44a4;
  font-weight: 500;
  font-size: 0.95rem;
}


/* グリッド（既存のを流用してOK） */
.ltg-images__grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .75rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr))
}

.ltg-images__item .ltg-open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.ltg-thumb,
.ltg-video {
  width: 100%;
  background: #f3f4f6;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: .5rem;
}

.ltg-video {
  vertical-align: bottom;
  position: relative;
}

.ltg-images__item .ltg-open:before {
  content: '';
  position: absolute;
  left: 0;
  border-bottom: 55px solid transparent;
  border-left: 55px solid rgba(0, 0, 0, 0.65);
  border-top-left-radius: .5rem;
  z-index: 1;
}

.ltg-images__item .ltg-open:after {
  position: absolute;
  content: '';
  top: 10px;
  left: 5px;
  font-size: 14px;
  color: #fff;
  transform: rotate(-45deg);
}

.ltg-item-icon {
  position: absolute;
  top: 4px;
  left: 5px;
  rotate: -45deg;
  width: 24px !important;
  height: 24px !important;
  z-index: 2;
}

/* .ltg-item-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
} */

/* モーダル */
.ltg-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none
}

.ltg-modal.is-open {
  display: block
}

.ltg-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .6)
}

.ltg-modal__dialog {
  position: absolute;
  inset: 5%;
  display: flex;
  flex-direction: column;
  outline: none
}

@media (min-width:768px) {
  .ltg-modal__dialog {
    inset: 7% 10%
  }
}

.ltg-modal__body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: .5rem;
  overflow: hidden
}

.ltg-modal__inner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: scroll;
}

.ltg-modal__inner img,
.ltg-modal__inner video,
.ltg-modal__inner iframe {
  max-width: 100%;
  max-height: 100%;
  display: block
}

/* ボタン類 */
.ltg-modal__close {
  position: absolute;
  top: .5rem;
  right: .5rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .15);
  border-radius: .5rem;
  padding: .25rem .5rem;
  font-size: 1.25rem;
  cursor: pointer;
  z-index: 100;
}

.ltg-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: 0;
  border-radius: .5rem;
  width: 42px;
  height: 42px;
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 100;
}

.ltg-modal__prev {
  left: .5rem
}

.ltg-modal__next {
  right: .5rem
}

/* ダーク背景のときにコンテンツ縁が見えるよう微影 */
.ltg-modal__body {
  box-shadow: 0 10px 40px rgba(0, 0, 0, .35)
}