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

/* 見出しの太さを 400（= regular）に固定 */
h1,h2,h3,h4,h5,h6{
  font-weight: 400 !important; /* 必要なら !important を付ける */
  /* 可変フォントを使っているなら軸も合わせる */
  font-variation-settings: "wght" 400;
  font-synthesis-weight: none; /* 擬似ボールドの防止（対応ブラウザ） */
}


/* ==============================================
  カスタムフォント読み込み＆フォントファミリ設定
*/
@font-face{
  font-family: "sjis_sp_setofont";
  src: url("./assets/fonts/sjis_sp_setofont.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
.ff-sjis { font-family: "sjis_sp_setofont","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; }

@font-face{
  font-family: "rizendo";
  src: url("./assets/fonts/rizendo.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
.ff-rizendo { font-family: "rizendo","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; }

@font-face{
  font-family: "MPLUS1";
  src: url("./assets/fonts/MPLUS1-VariableFont_wght.ttf") format("truetype-variations");
  font-weight: 100 900; font-style: normal; font-display: swap;
}
.ff-mplus1 { font-family: "MPLUS1","Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif; }
.ff-mplus1.w700 { font-weight:700; font-variation-settings:"wght" 700; }

@font-face{
  font-family: "ZenKakuGothicNew";
  src: url("./assets/fonts/ZenKakuGothicNew-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face{
  font-family: "ZenKakuGothicNew";
  src: url("./assets/fonts/ZenKakuGothicNew-Medium.ttf") format("truetype");
  font-weight: 500; font-style: normal; font-display: swap;
}
.ff-zenkaku { font-family: "ZenKakuGothicNew","Noto Sans JP","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,sans-serif; }

@font-face{
  font-family: "NotoSansVar";
  src: url("./assets/fonts/NotoSans-VariableFont_wdth,wght.ttf") format("truetype-variations");
  font-weight: 100 900; font-stretch: 75% 125%; font-style: normal; font-display: swap;
}
.ff-noto-var { font-family: "NotoSansVar","ZenKakuGothicNew","MPLUS1","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,"Noto Sans JP",system-ui,sans-serif; }
.ff-noto-var.w700 { font-weight:700; font-variation-settings:"wght" 700; }
.ff-noto-var.condensed { font-stretch:85%; }
.ff-noto-var.expanded  { font-stretch:112%; }

/* サイト全体ベース */
html,body{
  font-family:
    "NotoSansVar","ZenKakuGothicNew","MPLUS1","Yu Gothic","Hiragino Kaku Gothic ProN",Meiryo,"Noto Sans JP",
    system-ui,-apple-system,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}






/* 1) 本体エリアの下の余白をゼロに */
.site-content,
.site-main { margin-bottom: 0 !important; padding-bottom: 0; }

/* 2) 最後の要素の「下マージン合体」を無効化（どのページでも効く） */
.site-main { overflow: auto; }       /* ← margin collapse対策 */
.site-main > *:last-child { margin-bottom: 0 !important; }

/* 3) フッター側に余白があればゼロに */
.site-footer { margin-top: 0 !important; }

/* Gutenberg系最後尾の余白削り（必要なら） */
.wp-block-group:last-child,
.wp-block-columns:last-child,
.wp-block-cover:last-child,
.wp-block-image:last-child,
.wp-block-paragraph:last-child { margin-bottom: 0 !important; }

/* === モバイル時の本体〜フッター間 余白ゼロ化（強め）=== */
@media (max-width: 991px){

  /* 本体器と中身の下余白 */
  .site-content,
  .site-main,
  .site-content .container,
  .site-main .container {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* コンテンツ末尾の要素を強制的にゼロ */
  .entry-content > *:last-child,
  .site-main > *:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* Gutenberg ラッパの内側余白＆末尾スペーサーを無効化 */
  .entry-content .wp-block-group:last-child,
  .entry-content .is-layout-constrained:last-child,
  .entry-content .wp-block-columns:last-child,
  .entry-content .wp-block-cover:last-child {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .entry-content .wp-block-spacer:last-child { height: 0 !important; margin: 0 !important; }

  /* Lightning フッター上の余白を削除 */
  .footer-widget-area,
  .site-footer,
  .site-footer .container {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 画像の“ベースライン隙間”対策（末尾がimgだけの時） */
  .entry-content img:last-child { display: block; }
}

/* フッターのコピーライト段落の行間・下マージンを詰める（必要なら） */
.site-footer-copyright p { margin: 0 !important; line-height: 1.5; }




.site-body{
  padding-top: 0;
  padding-bottom: 0;
}
.site-body .entry{
  padding-top: 0;
  padding-bottom: 0;
}


/* ！！！！！！！！！！ヘッダーバーを追従＋メインビジュアルの上に重ね、スクロール時に“薄い白”へ！！！！！！！！！！ */
/* ヘッダーを最前面の追従バーにする（初期は透明） */
:root { --header-h: 72px; } /* ロゴ高に合わせて微調整 */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 10000;                 /* スライダーより前面に */
  background: transparent;        /* 初期は透明で重ねる */
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, backdrop-filter .18s ease;
}

/* コンテンツがヘッダーの下に潜らないよう、上部余白を確保 */
body.has-fixed-header {
  padding-top: var(--header-h);
}

/* ヘッダー内の基本配色（重ねるので白系でスタート） */
#site-header .global-nav a,
#site-header .site-header-logo a,
#site-header .site-header-logo span {
  /* color: #fff; */
}
#site-header a:hover { opacity: .85; }


/* 初期：ヘッダー透明（ヒーローの上に重ねる想定） */

 /* 初期＝非スクロール時だけ完全透明 */
body:not(.is-scrolled):not(.header_scrolled) #site-header,
body:not(.is-scrolled):not(.header_scrolled) .site-header,
body:not(.is-scrolled):not(.header_scrolled) #site-header .site-header-container{
  background-color: transparent !important; /* ← background-colorに限定 */
  box-shadow: none !important;
}
/* 追従（スクロール後）の見た目：白っぽい有色透明＋ぼかし */
body.is-scrolled #site-header,
body.header_scrolled #site-header {
  background-color: rgba(255,255,255,.6) !important; /* ← shorthandじゃなく background-color */
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  backdrop-filter: saturate(160%) blur(8px);
  transition: background-color .18s ease, backdrop-filter .18s ease;
}



/* 文字色を濃く（必要なら） */
body.is-scrolled #global-nav a,
body.is-scrolled .site-header a{
  color:#111 !important;
}

/* 透明時は白系（必要なら） */
body:not(.is-scrolled) #global-nav a,
body:not(.is-scrolled) .site-header a{
  /* color:#fff !important; */
}

.vk-mobile-nav-menu-btn{
  z-index: 11000;
}





body .header_scrolled .site-header {
  box-shadow: none !important;
}
body.is-scrolled #site-header .global-nav a,
body.is-scrolled #site-header .site-header-logo a,
body.is-scrolled #site-header .site-header-logo span {
  color: #111;
}

/* Lightningのスライダー（メインビジュアル）を最上部に密着させる */
.ltg-slider, .vk-slider, .main-visual, .vk_slider {
  margin-top: 0 !important;
}

/* ヘッダー下の境界線が邪魔なら消す（テーマ側で出る場合） */
#site-header { border-bottom: none !important; }

/* ドロップダウンなどのメニュー背景（透明ヘッダー時の見づらさ対策） */
#site-header .global-nav .sub-menu {
  background: rgba(0,0,0,.7);
}
body.is-scrolled #site-header .global-nav .sub-menu {
  background: rgba(255,255,255,.98);
}

/* 管理バー（ログイン時）のズレ対策 */
.admin-bar #site-header { top: 32px; }      /* PC */
@media (max-width:782px){
  .admin-bar #site-header { top: 46px; }    /* モバイル */
}

/* スライダーが前に出てしまう場合の保険（重なり順） */
.ltg-slider, .vk-slider, .main-visual, .vk_slider { position: relative; z-index: 1; }

.global-nav-name{
    color:  #0653AD;
}



/* ！！！！！！！！！！画像なしでタイトルだけ消す！！！！！！！！！！ */

/* ロゴを常に見える状態に */
#site-header .site-header-logo{ 
  display:flex !important;
  align-items:center;
  visibility:visible !important;
  opacity:1 !important;
}

/* スクロール時（追従状態）にテーマが消してくる場合の保険 */
body.is-scrolled #site-header .site-header-logo,
body.header_scrolled #site-header .site-header-logo{
  display:flex !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* ロゴ画像サイズ（追従時も維持） */
#site-header .site-header-logo img,
#site-header .custom-logo{
  display:block;
  height:auto;
  max-height: calc(var(--header-h) - 16px);
  width:auto;
}




/* ロゴリンク自体はサイズを維持（必要なら高さ調整） */
.site-header-logo a{
  display:block;
  min-width:120px;   /* 任意 */
  min-height:40px;   /* 任意：ヘッダーの高さに合わせて */
}
/* ===== Scroll インジケーター（TOPのみ／Lightning Swiper下部中央）===== */
.home .lightning_swiper,
.front-page .lightning_swiper {
  position: relative;
  overflow: visible !important; /* 切れ防止 */
}

/* スクロール表示は「コンテナ固定」= スライド切替でも消えない */
.home .lightning_swiper::before,
.front-page .lightning_swiper::before {
  /* テキスト */
  content: "Scroll";
  position: absolute;
  inset: 0;                          /* コンテナ全面を覆う */
  display: flex;
  align-items: flex-end;              /* 下寄せ */
  justify-content: center;            /* 中央寄せ */
  padding-bottom: 68px;              /* テキストの縦位置 */
  z-index: 60;                        /* Swiper UI(5) < Scroll(60) < ロゴ(100) */
  pointer-events: none;
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #000;
  text-shadow:
    0 1px 2px rgba(0,0,0,.45),
    0 0 1px rgba(0,0,0,.45);

  /* 縦線は背景で描画（下60pxの位置） */
  background-image: linear-gradient(180deg, #000, rgba(255,255,255,0));
  background-repeat: no-repeat;
  background-size: 1px 36px;                     /* 線の太さ/長さ */
  background-position: center calc(100% - 28px); /* 線の縦位置 */

  /* アニメ（線と文字を一緒に軽くパルス） */
  animation: scrollIndicatorPulse 1.6s ease-in-out infinite;
}

@keyframes scrollIndicatorPulse {
  0%   { opacity: .35; }
  50%  { opacity: 1;   }
  100% { opacity: .35; }
}

/* Swiper UIが前に出る場合の保険（必要なら） */
.lightning_swiper .swiper-pagination,
.lightning_swiper .swiper-button-next,
.lightning_swiper .swiper-button-prev { z-index: 5 !important; }









/* 追従ヘッダーに“下から被る”調整（既に --header-h を使ってる前提） */
:root { --header-h: 72px; } /* 実測に合わせて調整 */

.has-fixed-header body.has-page-hero::before{
  margin-top: calc(-1 * var(--header-h)); /* 上に潜らせる */
  padding-top: var(--header-h);           /* 見かけの高さは維持 */
}

/* 管理バー（ログイン時）用の補正 */
.admin-bar.has-fixed-header body.has-page-hero::before{
  margin-top: calc(-1 * (var(--header-h) + 32px));
  padding-top: calc(var(--header-h) + 32px);
}
@media (max-width:782px){
  .admin-bar.has-fixed-header body.has-page-hero::before{
    margin-top: calc(-1 * (var(--header-h) + 46px));
    padding-top: calc(var(--header-h) + 46px);
  }
}

/* 念のため：親コンテナの切り捨て対策（安全側） */
.container, .site-content, .entry-content { overflow: visible; }


/* ヒーロー画像は ::before、タイトルは ::after（前面） */
body.has-page-hero::before{ z-index:0; }
body.has-page-hero::after { z-index:1; }

/* 追従ヘッダーに“下から被せ”を維持（タイトル側にも同じだけ押し上げ） */
:root { --header-h: 72px; } /* 実測に合わせて調整してね */

.has-fixed-header body.has-page-hero::before,
.has-fixed-header body.has-page-hero::after{
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}

/* 管理バー(ログイン時)の補正（既存と揃える） */
.admin-bar.has-fixed-header body.has-page-hero::before,
.admin-bar.has-fixed-header body.has-page-hero::after{
  margin-top: calc(-1 * (var(--header-h) + 32px));
  padding-top: calc(var(--header-h) + 32px);
}
@media (max-width:782px){
  .admin-bar.has-fixed-header body.has-page-hero::before,
  .admin-bar.has-fixed-header body.has-page-hero::after{
    margin-top: calc(-1 * (var(--header-h) + 46px));
    padding-top: calc(var(--header-h) + 46px);
  }
}
.vk-mobile-nav-menu-outer{
  padding: 80px 0 0 0;
}



/* フッター */
.site-footer{
  background-color: #C8EFC1;
}

.site-footer-copyright p:nth-of-type(2){
  display: none !important;
}

.footer-company-min{
  display:flex;
  flex-direction: row;
  justify-content: space-between;
  align-items:center;    /* 上寄せなら flex-start */
  gap:18px;              /* ロゴと文字の間隔 */
  font-size:14px;
  line-height:1.9;
  margin:0; padding:0;   /* 余計な余白なし */
}

/* ロゴサイズだけ調整 */
.fcm-logo img{
  width:72px;            /* 必要なら数値を変更 */
  height:auto;
  display:block;
}

/* 文字群は縦並び */
.fcm-texts{ display:flex; flex-direction:column; gap:2px; }
.fcm-name{ font-weight:600; margin:0 0 2px; }
.fcm-addr{ margin:0; }
.fcm-tel { margin:0; }

.fcm-tel a{ color:inherit; text-decoration:none; } /* 背景に依存しないよう装飾最小 */

/* すごく狭い画面で折り返したいときだけ有効化*/
@media (max-width:991px){
  .footer-company-min{
    margin: 40px auto 0 auto;
    flex-direction: column;
    justify-content: flex-start;
  }
  .footer-company{ flex-wrap:wrap; }
  .footer-texts{ flex-basis:100%; }
  /* 画像を右寄せしているfloatを解除して中央に */
  .site-footer .wp-block-image.alignright{
    float: none !important;
    margin: 0 auto .5em !important;
    text-align: center;
  }
  .site-footer .wp-block-image.alignright img{
    display: block;
    margin: 0 auto;
  }
}

.container site-footer-copyright{
  margin: 0 0 0 80px;
}







/* パンくずを消す（そのページだけでOKにしたいので has-page-hero 連動） */
.has-page-hero #breadcrumb{ display:none !important; }

/* 念のため、テーマ側.containerが切っている場合の保険 */
.container, .site-content, .entry-content{ overflow: visible; }

.site-footer-title:after, .sub-section-title:after, h3:where(:not(.wp-block-post-title)):after {
    border: none ;
}





.main-content {
  /* display: flex;
  justify-content: center;
  margin: auto;
  max-width: 1140px; */
}

.main-wrapper {
    display: flex;
    justify-content: space-around;
}
.flex-container {
    display: flex;
    justify-content: space-between;
}
.flex-center-container {
    display: flex;
    justify-content: center;
}
.flex-container-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-center-container input {
    display: flex;
    justify-content: center;
}

.top-background {
    background-image: url(http://etmetal.jp/wp-content/uploads/2025/11/top-background-scaled.png);
    background-size: cover;
    background-position: center;    
    background-repeat: no-repeat;
}

.common-button{
  max-width: 400px;
  width: 100%;
  height: 68px;
  margin: auto;
}

.contact-button{
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap !important;
  justify-content: space-between;
}

.lined-title {
  display: flex;
  align-items: center;
  text-align: center;
  font-weight: bold;
}

.lined-title::after {
  content: "";
  max-width: 200px;
  width: 200px !important;
  flex: 1;
  border-bottom: 1px solid #000000;
  margin: 0 2rem;
}

.whoweare-background {
  background-image:
    linear-gradient(rgba(255,255,255,0.7), rgba(255,255,255,0.7)),
    url(http://etmetal.jp/wp-content/themes/lightning-child/assets/whoweare-background.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
  
.contact-icon{
  display: grid;
  grid-template-columns: 1fr;        /* SP：1列 */
  gap: 2%;
  max-width: 640px;
  margin: 0 auto;
  font-weight:700;
}

@media (min-width:768px){
  .contact-icon{
    grid-template-columns: repeat(2, 1fr); /* PC：2列 */
    gap: 2%;
  }
}


.contact-icon-container .contact-icon-link{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #46AA11;
}
.contact-icon-link p{
  width: 180px;
  font-size: 1.5rem;
  margin: 0;
}

.form-row{
  /* display: flex;
  justify-content: space-between; */
}
.form-submit .wpcf7-submit{
    margin: auto;
    height: 68px;
    max-width: 100%;
    width: 400px;
    background-color: transparent !important;
    color: black;
    border: 1px solid black;
    border-radius: 34px;
}
form.wpcf7-form .wpcf7-submit:hover {
    color: black !important;
    max-width: 100%;

}

.gt_switcher_wrapper{
  right: 0 !important;
}

.img-row{
  flex-wrap: wrap;
}
.img-shadow {
  filter: drop-shadow(8px 8px 12px rgba(0,0,0,.25));
  -webkit-filter: drop-shadow(8px 8px 12px rgba(0,0,0,.25));
  display: inline-block;
}


/* ========= 画像ズーム（クリック拡大） ========= */
/* ページ常設のオーバーレイ＆枠（最初は非表示） */
.imgzoom-overlay,
.imgzoom-wrap {
  position: fixed;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 99999;
}

/* 暗幕 */
.imgzoom-overlay {
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(1px) saturate(120%);
}

/* 中央寄せの枠 */
.imgzoom-wrap {
  display: grid;
  place-items: center;
  padding: 4vh 4vw;
}

/* 拡大画像（拡大後は最大サイズにフィット） */
.imgzoom-img {
  max-width: 648px;
  width: 80%;
  box-shadow: 0 12px 28px rgba(0,0,0,.35);
  border-radius: 8px;
  background: #fff; /* 透過PNGの見切れ対策 */
  transform-origin: center center;
  transform: scale(.96);
  transition: transform .22s ease;
}

/* 表示状態 */
.imgzoom--open .imgzoom-overlay,
.imgzoom--open .imgzoom-wrap {
  opacity: 1;
  pointer-events: auto;
}
.imgzoom--open .imgzoom-img {
  transform: scale(1);
}

/* 閉じるボタン（任意） */
.imgzoom-close {
  position: fixed;
  top: 14px; right: 16px;
  z-index: 100000;
  background: rgba(255,255,255,.9);
  border-radius: 999px;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  font-size: 18px; line-height: 1;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  cursor: pointer;
  user-select: none;
  transition: opacity .2s ease, transform .2s ease;
}
.imgzoom-close:hover { transform: scale(1.06); }

/* 画像に“拡大できる”ことを示す */
figure.js-zoom { cursor: zoom-in; }



@media (max-width: 781px) {
    .top-background {
        background-image: none;
      }
      .contact-icon-container{
        margin: 20px auto !important;
      }
      .contact-button{
        padding: 20px auto;
      }
      .contact-icon-container .contact-icon{
        display: flex;
        justify-content: right;
      }
      .gt_switcher_wrapper{
        right: 16% !important;
      }
}

