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

/* ==========================================================================
   全体共通
   ========================================================================== */
/* スマホスクロールをスムーズに */
body {
	overflow:visible;
}

/* ページの背景色を薄緑のグラデーションに */
body.custom-background {
	background-image: #dededa;
}
/* CTAの上の余白を削除 */
/* .site-body {
	padding-bottom: 0;
}  */
.sp{display:none;}
@media screen and (max-width: 767px) {
	.sp{display:block;}
}
/* アラートの色を変更 */
.alert-green {
	background-color: #ebf5f0;
	border-color: #ebf5f0;
	color: var(--vk-color-text-body);
}

/* reCAPTCHAマークを非表示に */
.grecaptcha-badge { visibility: hidden; }
/* .grecaptcha-badge { bottom: 78px; !important } */


/* ==========================================================================
   臨時追加
   ========================================================================== */
.project-list .wp-block-vk-blocks-gridcolcard-item:nth-child(2),
.project-list .wp-block-vk-blocks-gridcolcard-item:nth-child(3){
	/*.地域プロジェクト一覧の2つ目、3つ目が追加されるまで形を保って非表示 */
	visibility: hidden;
}

/* .vk_gridcolcard_item_body h3{margin-bottom:0;} */
.vk_gridcolcard_item_body h3{margin-top:1em;}
.vk_gridcolcard_item_header .wp-block-image img {
    -o-object-fit: contain;
    object-fit: contain;
    min-width: 67%;
	max-width: 55%;
    max-height: 80% !important;
    margin: auto;
}
.vk_gridcolcard_item {
	background-color: #ffffff8c !important;	
}
.CF7_table td{
	background: #ffffff8c;
}
.localNavi>div>ul li, .localNavi>ul li, .widget .localNavi>div>ul li, .widget .localNavi>ul li, .widget_archive>div>ul li, .widget_archive>ul li, .widget_categories>div>ul li, .widget_categories>ul li, .widget_link_list>div>ul li, .widget_link_list>ul li, .widget_nav_menu>div>ul li, .widget_nav_menu>ul li, .widget_pages>div>ul li, .widget_pages>ul li, .widget_postlist>div>ul li, .widget_postlist>ul li{
	font-size: 1em;
}
.localNavi>div>ul li a, .localNavi>ul li a, .widget .localNavi>div>ul li a, .widget .localNavi>ul li a, .widget_archive>div>ul li a, .widget_archive>ul li a, .widget_categories>div>ul li a, .widget_categories>ul li a, .widget_link_list>div>ul li a, .widget_link_list>ul li a, .widget_nav_menu>div>ul li a, .widget_nav_menu>ul li a, .widget_pages>div>ul li a, .widget_pages>ul li a, .widget_postlist>div>ul li a, .widget_postlist>ul li a{
	padding-left: 0;
}
/* ==========================================================================
   臨時追加ここまで
   ========================================================================== */

/* ==========================================================================
   ヘッダーメニュー
   ========================================================================== */
.header-top .header-top-description {
	display: none; 
}

/* メインナビをPC時に2列に */
/* .site-header .site-header-logo {
	width: auto;
}
#global-nav {
	width: auto;
	max-width: 600px;
}
[lang=en] #global-nav {	max-width: 800px;}
[lang=zh-CN] #global-nav {	max-width: 500px;}
[lang=en] .site-header--layout--nav-float .site-header-logo {
	margin-right: 0;
}
@media(min-width: 992px) {
	[lang=en] #global-nav {	max-width: unset;}
}
#menu-header-nav2 {
	display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
	justify-content: flex-end;
}
@media (min-width: 992px) {
    .device-pc .global-nav-list>li>a {
        padding: 7px 1.5em 7px;
    }
} */
/*スマホ表示でもヘッダーナビ固定*/
@media (max-width: 991px) {
.header_scrolled #site-header {
    clear: both;
    z-index: 1000;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    max-width: 100vw;
    min-height: unset;
}
.header_scrolled #site-header-container {height: 50px;}
.header_scrolled .site-header-logo {display:block;}
.header_scrolled #gt_float_wrapper{
	position: fixed;
    z-index: 10000;
}
}
/*スマホ表示でもヘッダーナビ固定ここまで*/

.header_scrolled .site-header {
	border-bottom: 4px solid #559892;
}
/* ヘッダーメニューを画面幅いっぱいに */
div#site-header-container {
	margin:0;
}

/* ヘッダーメニューロゴを大きく */
@media(min-width: 992px) {
.site-header-logo img {
	max-height: 70px;
}
}

/* ヘッダーメニューマージン調整 */
nav#global-nav {
	margin: auto;
}

/* ヘッダー部分だけ全幅にする */
.site-header {
  width: 100%;
  max-width: 100%;
  margin: 0;
  position: relative;
  z-index: 100;
}

/* 内側のコンテナ制限を解除（ヘッダーのみ） */
.site-header .container,
.site-header .container-lg,
.site-header .site-header-inner {
  max-width: 100% !important;
  width: 100% !important;

}

/* ヘッダーロゴの幅を調整 */
.site-header--layout--nav-float .site-header-logo {
	width: 10%;
	margin-right: 0;
}
/* ヘッダーメニュー　About US、NEWS・新着情報を左寄せ */
#menu-header-nav > li:nth-child(2) {
	margin-right: 30em;
}

/* ヘッダーメニュー背景色 */
div#vk-mobile-nav {
	background-image: #dededa;
}

/* スクロール時About USの子メニューがロゴの上に表示されるように */
ul.sub-menu.acc-child-close {
	z-index: 9999 !important;
}

/* PCでもハンバーガーメニュー表示 */
@media (min-width: 992px) {
	body.device-pc .vk-mobile-nav-menu-btn,
	body.device-pc .vk-mobile-nav {
		display: block;
	}
	.vk-mobile-nav-menu-btn {
		top: 5px;
	}
	.vk-mobile-nav-menu-btn.position-right {
		right: 5px;
	}
	.admin-bar .vk-mobile-nav-menu-btn {
		top: calc(32px + 50px);
	}
	/* ハンバーガーメニューのサイズ調整 */
	.vk-mobile-nav-menu-btn {
		width: 40px;
		height: 40px;
	}
	/* スクロール時のヘッダーメニューの高さ	 */
	div#site-header-container {
		height:90px;
	}
}

/* ハンバーガーメニュー中身 */
/* 既存のモバイルメニュー非表示 */
nav.vk-mobile-nav-menu-outer {
	display: none;
} 

/* メニューのボーダー非表示 */
.vk-mobile-nav .widget_nav_menu ul.menu,
ul#menu-header-nav2 a {
	border: none;
}


/* 言語切り替えボタンサイズ調整 */
.gt_float_switcher .gt-selected .gt-current-lang {
	padding: 7px 7px !important;
}

/* モバイル時にヘッダー上にある余白削除 */
@media screen and (max-width: 767px) {
  .site-header-container,
  .l-header,
  .vk-header,
  .site-header {
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0 !important;
  }
/* 万一ズレる場合に微調整 */
  header, .site-header-container {
    transform: translateY(0) !important;
  }
}

/* コンテナ兼アイコンボタン */
.icon-expand-menu {
  position: fixed;
  top: 60px;
  right: -2px;
  width: 50px;
  height: 50px;
  background-color: #559892;
  color: #fff;
  border-radius: 8px 0 0 8px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.5s ease;
  z-index: 9999;
}

/* モバイルナビの余白なし */
.mobile-fix-nav-top {
border-top: none;
border-bottom:none;
}

/* 画面右の「i」アイコンメニュー部分 */
.icon-header {
  width: 100%;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
/* フォントオーサムの余白0 */
i.fa-solid.fa-info {
  margin:0;
}
/* メニューリスト */
.menu-items {
  list-style: none;
  padding: 10px;
  margin: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  flex-grow: 1;
  overflow-y: auto;
}

.menu-items li {
  margin-bottom: 10px;
}

.menu-items li a {
  display: block;
  text-decoration: none;
  color: #fff;
  padding: 8px 10px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.menu-items li a:hover {
  background-color: #ddd;
}

/* 展開時 */
.icon-expand-menu.expanded {
  width: 180px;   /* 横幅を広げる */
  /* height: 50vh; 画面の半分くらいの高さに展開 */
  height: 250px;
  padding-bottom: 10px;
}

.icon-expand-menu.expanded .menu-items {
  opacity: 1;
  pointer-events: auto;
}

/* 言語切り替えの位置調整 */
nav.mobile-fix-nav {
  position: static;
}
nav.mobile-fix-nav,
.mobile-fix-nav-top {
	height: 0;
}



/* ==========================================================================
   パンくずリストフォントサイズ
 　========================================================================== */
@media screen and (min-width: 767px) {
ol.breadcrumb-list {
	font-size: 16px;
}
}

/* ==========================================================================
   HOME
   ========================================================================== */
html {
	background-color:#dededa;
}

/* HOMEの会社概要、事業概要のテキストを右寄せ（PCのみ） */
@media (min-width: 768px) {
  .overview-text  {
    text-align: right;
  }
  
}

/* 投稿カード（施工事例、ブログ）の角丸を強く */
.card {
	border-radius:20px !important; */
}



/* ==========================================================================
   footer
   ========================================================================== */
/* フッターメニューのリンクテキストに行間をもたせる */
nav.footer-nav {
line-height: 1.8;
}

/* コピーライト背景色 */
.container.site-footer-copyright {
	background-color: #2BB7A9;
	max-width: 100%;
}

/* ==========================================================================
   会社概要
   ========================================================================== */
.ggmap {
    position: relative;
    width: 100%;
/*     padding-top: 56.25%; */
    /* 16:9のアスペクト比 */
	padding: 200px;
	overflow: hidden;
    height: 0;
}

.ggmap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ==========================================================================
   NEWS一覧
   ========================================================================== */
body.blog .vk_post .vk_post_title,
body.archive.category .vk_post .vk_post_title {
    font-size: 1.5rem;
}
body.blog .card:not(.card-noborder),
body.archive.category card:not(.card-noborder){
	box-shadow: unset;
}
body.blog .card,
body.archive.category  .card{
	background-color: #ffffff8c !important;
}
body.blog .vk_post_imgOuter,
body.archive.category .vk_post_imgOuter {
	background: no-repeat;
    background-size: contain;
	background-position: center;
}
body.blog .vk_post_title_new,
body.archive.category .vk_post_title_new {
	font-size: .5em;
}

/* NEWS・新着情報一覧ページの分類名のリンクがPDFでも開けるように */
.vk_posts .vk_post_imgOuter_singleTermLabel{
	pointer-events: none;
}


/* ==========================================================================
   言語切り替え
   ========================================================================== */
/* ▼ 日本語を表示、他は非表示 */
.text-ja { display: block; }
.text-en, .text-zh { display: none; }

/* ▼ 英語ページのとき */
html[lang="en"] .text-en { display: block; }
html[lang="en"] .text-ja,
html[lang="en"] .text-zh {
  display: none;
}

/* ▼ 中国語（簡体）ページのとき */
html[lang="zh-CN"] .text-zh { display: block; }
html[lang="zh-CN"] .text-ja,
html[lang="zh-CN"] .text-en {
  display: none;
}

/* ==========================================================================
   翻訳、Bogo置き換えのスタイル調整（言語切り替え）
   ========================================================================== */
/* SP時の表示 */
@media screen and (max-width: 991px) {
	#block-77 {
		position: absolute;
		top: calc( 55px - 20px);
		z-index: 99999;
		right: 51px;
	}
	.scrolled #block-77 {
		position: fixed;
	}
	@media screen and (max-width: 991px) {
		#block-77 {
			top: 0;
			padding-right: 5px;
		}
	}

}

/*PC翻訳した時のメニュー崩れ解消*/
[lang=ja] #menu-header-nav > li:nth-child(2) {
margin-right: calc(100vw - 1060px);
}
[lang=en-US] #menu-header-nav > li:nth-child(2),
[lang=zh-Hans] #menu-header-nav > li:nth-child(2){
margin-right: calc(100vw - 1010px);
}

[lang=zh-Hans] .nav-btn-contact {
	right: 75px;
}

@media screen and (min-width: 992px) {
[lang=zh-Hans] .bogo-dropdown-wrap:last-child {
	width: 56px;
}
}

/* ▼メニュー（最初は非表示） */
#bogo-list {
    position: absolute;
    top: 100%;
    right: 0;
    width: 135px;
    background: #ffffffb3;
    z-index: 1000;
}

#bogo-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#bogo-list li a {
    display: block;
    padding: 8px;
    text-decoration: none;
    color: #333;
}

#bogo-list li a:hover {
    background: #6070a0;
    color: #fff;
}

/* 国旗マーク非表示 */
span.bogoflags {
    display:none;
}


/* ▼ドロップダウン外枠 */
.bogo-dropdown-wrap {
  position: relative;
  cursor: pointer;

}

/* 現在の言語部分（メニューと揃う高さ） */
.bogo-current-lang {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 42px; 
}

/* テキストを太字に */
span#current-lang-text {
	font-weight: bold;
}

/* ▼矢印 */
.arrow_o {
  width: 14px;
  height: 14px;
  position: relative;
  top: 1px;
}

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

.bogo-dropdown-wrap.open .arrow_o:before {
  transform: rotate(135deg);
}

/* ==========================================================================
   Bogo 投稿ページのサイドバー（カテゴリー、最近の投稿、月別アーカイブの表記名）
　　　　　言語切り替えで表示
   ========================================================================== */
/* 初期はすべて非表示 */
.sidebar-ja,
.sidebar-en,
.sidebar-zh {
  display: none;
}

/* 日本語 */
html[lang="ja"] .sidebar-ja {
  display: block;
}

/* 英語 */
html[lang="en-US"] .sidebar-en {
  display: block;
}

/* 中国語（簡体） */
html[lang="zh-Hans"] .sidebar-zh {
  display: block;
}

/* ==========================================================================
   電話番号リンクをモバイル時のみ適用
   ========================================================================== */
@media screen and (min-width: 992px) {
  a[href^="tel:"] {
    pointer-events: none;
    color: inherit;
    text-decoration: none;
    cursor: default;
  }
}

