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


/*ヘッダー上部エリア スタイルを調整*/
.header-top {
background-color: #123e67;
padding:4px 0;
font-size:17px;
}
.header-top__inner {
max-width:1200px;
width:100%;
margin:0 auto;
padding:0 10px;
display: flex;
align-items: center;
}
.header-top__items{
display:flex;
column-gap:12px;
justify-content:end;
align-items:center;
margin:0;
padding:0;
}
.header-top__description{
display: flex;
align-items: center;
margin-right: auto;
line-height: normal;
margin-block-start: auto;
margin-block-end: auto;
}
.header-top__menu{
display: flex;
align-items: center;
}
.header-top__item::not(:first-child){
margin-left:10px;
}
.header-top__item-link{
display:block;
}
.header-top__contact{
margin-left:12px;
}
.header-top__contact-link{
font-size:14px;
}

/*スマホでは非表示にする*/
@media (max-width: 991px) {
.header-top {
display: none;
}
}


/*############################################*/

/*ヘッダーメインメニュー 背景色 透過レベル*/
.site-header {
background-color:rgba(118,156,191,0.2);　 ? ? ? ? ? ?/*青系透過*/
}

/*フロートティングメニュー背景色　透過レベル*/
.header_scrolled .site-header {
	background-color:rgba(118,156,191,0.5);
}

body:not(.header_scrolled) #site-header {
    position: absolute;
}

body .page-header {
    min-height: min(360px, 50vw);
    padding-top: 80px;
}

/* スクロールしてグローバルナビがページ上部に固定表示されるタイミングでカックンとなることを防ぐ。 */
body .page-header {
    margin-top: 0 !important;
}

/*メインメニュー文字色 フォントサイズ*/
.global-nav-list>li .global-nav-name
{
	color: #fff;
	font-size: 14px;
/*テキスト縁取り*/
	text-shadow:
	black 1px 1px 2px, black -1px 1px 2px,
	black 1px -1px 2px, black -1px -1px 2px;
}

/*メニュー下部フォントサイズ*/
.global-nav-list>li .global-nav-description 
{
	font-size: 12px;
	color: #FFF;
/*テキスト縁取り*/
	text-shadow: 
	black 1px 1px 2px, black -1px 1px 2px,
	black 1px -1px 2px, black -1px -1px 2px;
}


/*############################################*/

/*↓メニューデザイン変更↓*/

@media (min-width: 992px) {	
/* アイコンの下にメニューの文字を配置する（スクロールしていないとき） */
body:not(.header_scrolled) .global-nav-list>li .global-nav-name {
 display: flex;
 flex-direction: column;
 }
}

/* アイコンのスタイル（スクロールしていないとき） */
body:not(.header_scrolled) .global-nav-list>li .global-nav-name i {
font-size: 1.5em;
margin-right: 0;
margin-bottom: 0.5em;
/*color: var(--vk-color-primary); */
/*↑アイコンをフォントカラーと同色にするためoff 
onにするとメインカラーが適応される*/
}	
	
	/* 最後のメニュー項目だけ白抜き文字にする */
.vk-menu-acc li:last-child {
background-color: var(--vk-color-primary);
}
body:not(.header_scrolled) .global-nav-list>li:last-child .global-nav-name i,
.global-nav-list>li:last-child .global-nav-name i {
color: #fff;
}

body:not(.header_scrolled) .global-nav--layout--float-right {
align-items: unset;
}

.header_scrolled .global-nav--layout--float-right {
width: 100%;
}

.header_scrolled .global-nav-list {
display: block;
width: unset; /* 2022.5.31 Lightning 14.21 にアップデートしたときのスクロール時のレイアウトくずれの対策として追加 */
}

/* 最後のメニュー項目だけ右端に配置（スクロール時） */
/*
.header_scrolled .vk-menu-acc li:last-child {
float: right;
}
*/
	
/* デフォルトの width: 100vw のままだとヘッダー幅がコンテナ幅に一致しない */
.header_scrolled .site-header {
    width: 100%;
}

/* マウスホバー時の背景色＋フォントカラー変更 */
.global-nav-list  li a:hover {
background-color: #007ACC;
color: #000;
}


/*電話番号タッチリンク スマホのみ対応*/
@media (min-width: 751px) {
a[href^="tel:"] {
    pointer-events: none;
    cursor: default;
  }

}

/*------フローティング お問い合わせ・採用情報--------*/

/* --- ベーススタイル (PCとスマホの共通、またはPCのみに適用) --- */

/* ボタンコンテナのスタイル */
.fixed-buttons-container {
  position: fixed; /* 画面に固定 */
  top: 45%; /* PCでの垂直方向の位置 */
  right: 20px; /* 右からの距離 */
  transform: translateY(-50%); /* 垂直方向の中央揃え */
  z-index: 1000; /* 最前面に表示 */
  display: flex; /* 子要素をフレックスボックスで配置 */
  flex-direction: column; /* PCでは縦に並べる */
  /*gap: 15px;  ボタン間の間隔 */
}

/* 個別ボタンの共通スタイル */
.fixed-button-icon {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90px;
  height: 90px;
  color: white; /* テキストの色 */
  font-size: 14px;
  text-decoration: none; /* 下線をなくす */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* 影 */
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; /* ホバー時のアニメーション */
}

.fixed-button-icon i {
  font-size: 30px; /* アイコンのサイズ */
  margin-bottom: 5px; /* アイコンとテキストの間隔 */
}

.fixed-button-icon span {
  font-weight: bold; /* テキストを太字に */
}

.fixed-button-icon:hover {
  transform: scale(1.05); /* ホバーで少し拡大 */
  box-shadow: 0 0 20px 5px rgba(255, 255, 255, 0.7); /* ホバー時の光るエフェクト */
}

.fixed-button-icon:active {
  transform: translateY(0); /* クリック時に元の位置に戻す */
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2); /* クリック時の影を小さくする */
}

/* 採用情報ボタン */
.phone-button {
  background-color: #003366; /* 背景色 */
  border-radius: 10px 10px 0 0; /* PCでの上側だけ角丸 */
}

.phone-button:hover {
  background-color: #002244; /* ホバー時の背景色 */
}

/* お問い合わせボタン */
.mail-button {
  background-color: #e74c3c; /* 背景色 */
  border-radius: 0 0 10px 10px; /* PCでの下側だけ角丸 */
}

.mail-button:hover {
  background-color: #c0392b; /* ホバー時の背景色 */
}

/* --- スマートフォン向けスタイル (画面幅が750px以下の場合) --- */
@media (max-width: 750px) {
  .fixed-buttons-container {
    bottom: 0; /* 画面下部に配置 */
    left: 0; /* 左端に配置 */
    right: 0; /* 右端に配置 */
    width: 100%; /* 全幅にする */
    top: auto; /* PCからのtop設定を解除 */
    transform: none; /* PCからのtransform設定を解除 */
    flex-direction: row; /* ボタンを横並びにする */
    justify-content: space-around; /* ボタンを等間隔に配置 */
    align-items: center; /* 垂直方向中央寄せ */
    padding: 10px 0; /* 上下のパディングを追加 */
    background-color: rgba(255, 255, 255, 0.95); /* 背景色を付けてコンテンツと区別 */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* 上に影をつけて浮いているように見せる */
    z-index: 999; /* 他のコンテンツより手前に表示（PCと同じか少し低めに） */
    /* gapは不要なので削除済み */
  }

  .fixed-button-icon {
    width: 45%; /* スマホ時のボタン幅を調整（2つのボタンが横に並ぶように） */
    height: 70px; /* スマホ時の高さを調整 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* 影を小さめに調整 */
    /* スマホでは共通で角丸にしたいので、個別の指定よりもこちらを優先 */
    border-radius: 10px !important; /* ここを修正・追加: !importantで優先度を上げる */
  }

  /* 個別のボタンの角丸設定は、上記 .fixed-button-icon で上書きされるため不要になります */
  .phone-button,
  .mail-button {
    /* ここに記述されていた border-radius は .fixed-button-icon の設定で上書きされるため削除するか、空にしておきます */
    border-radius: 10px; /* 念のため残しても問題ないですが、!importantを使うなら不要です */
  }
}
