/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to choose any of your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful theme!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/


/**
Theme Name: Astra Child
…（省略）…
*/


/*────────────────────────────────────────────
  ① 在庫一覧／会社情報のホバー切り替え
────────────────────────────────────────────*/
/* デフォルト（通常表示） */
.inventory-list {
  opacity: 1;
  transition: opacity .3s ease;
}

/* .company-info のホバー中だけ在庫一覧を半透明に */
.company-info:hover ~ .inventory-list {
  opacity: .5;
}

/*────────────────────────────────────────────
  ② 固定ヘッダー＆OffCanvas オフセット設定
────────────────────────────────────────────*/
/*── ヘッダー高さ変数（Web：105px） ──*/
:root {
  --astra-header-height: 105px;
}

/*── ヘッダーを固定＆背景半透明 ──*/
.ast-primary-header,
.site-header,
header#masthead {
  position: fixed !important;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: rgba(255,255,255,0.9) !important;
  z-index: 9999 !important;
}

/*── 本文がヘッダーに隠れない余白確保 （Web：105px） ──*/
body {
  padding-top: var(--astra-header-height) !important;
}

/*── OffCanvas をヘッダー下から表示（Web：105px） ──*/
.ast-header-break-point .ast-mobile-popup-inner {
  position: fixed !important;
  top: var(--astra-header-height) !important;
  left: 0; right: 0;
  width: 100%;
  z-index: 9998 !important;
}

/*── ヘッダー／OffCanvas 内リンクをクリック可能に ──*/
.ast-primary-header a,
.site-header a,
.ast-header-break-point .ast-mobile-popup-inner a {
  pointer-events: auto !important;
}

/*── 擬似要素オーバーレイがあればクリックを貫通 ──*/
.ast-primary-header::before,
.site-header::before,
.ast-header-break-point .ast-mobile-popup-inner::before {
  pointer-events: none !important;
}

/*────────────────────────────────────────────
  ③ モバイル表示 (〜768px)：ヘッダー高さ80pxに上書き
────────────────────────────────────────────*/
@media screen and (max-width: 768px) {
  /* 本文上部余白を 80px に */
  body {
    padding-top: 80px !important;
  }
  /* OffCanvas オフセットも同じく 80px */
  .ast-header-break-point .ast-mobile-popup-inner {
    top: 80px !important;
  }

  /* OffCanvas メニュー内アイテム横並び */
  .ast-header-break-point .ast-mobile-popup-inner .main-header-menu {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .ast-header-break-point .ast-mobile-popup-inner .main-header-menu li {
    flex: 0 0 auto;
    min-width: 80px;
    text-align: center;
  }
  .ast-header-break-point .ast-mobile-popup-inner .main-header-menu li a {
    font-size: 18px;
    padding: 15px;
    white-space: nowrap;
  }
  /* モバイル版アクティブ＆ホバー時の色 */
  .ast-header-break-point .ast-mobile-popup-inner .main-header-menu li.current-menu-item > a,
  .ast-header-break-point .ast-mobile-popup-inner .main-header-menu li:hover > a {
    color: #B40000;
  }
  /* モバイル版「お問い合わせ」ボタン（文字色白） */
  .ast-header-break-point .ast-mobile-popup-inner .contact-btn > a {
    background: #B40000 !important;
    color: #FFF !important;
    padding: 10px 15px;
    border-radius: 5px;
    font-weight: bold;
    border: none;
    margin: 10px 0;
  }
  /* モバイル版下線装飾を非表示 */
  .ast-header-break-point .ast-mobile-popup-inner .main-header-menu li > a::after {
    display: none;
  }
}

/*────────────────────────────────────────────
  ④ PC／タブレット表示 (769px〜)：Web用ナビスタイル
────────────────────────────────────────────*/
@media screen and (min-width: 769px) {
  /* ナビメニュー横並び */
  .main-header-menu {
    display: flex;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 50px;
  }
  .main-header-menu a {
    position: relative;
    color: #1c1c1c;
    text-decoration: none;
    transition: all .3s ease;
  }

  /* PC版「お問い合わせ」ボタン（文字色白） */
/*   .main-header-menu .contact-btn > a {
    background: #B40000 !important;
    color: #FFF !important;
    padding: 8px 20px;
    font-weight: bold;
    border: none;
    transition: all .3s ease;
  }
  .main-header-menu .contact-btn > a:hover {
    background: #900000 !important;
  } */

  /* 筆アイコン下線（z-index:0 に設定） */
/*   .main-header-menu li:not(.contact-btn) > a::after { */
	    .main-header-menu li > a::after {
    content: "";
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 20px;
    background: url('http://nostalgia-garage.com.testrs.jp/stg/wp-content/uploads/2025/06/image-19.png') no-repeat center/contain;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 0;
  }

  /* PC版アクティブ＆ホバー時の文字色＆筆表示 */
/*   .main-header-menu li.current-menu-item:not(.contact-btn) > a,
  .main-header-menu li:hover:not(.contact-btn)             > a {
    color: #B40000;
  } */
	  .main-header-menu li.current-menu-item > a,
  .main-header-menu li:hover          > a {
    color: #B40000;
  }
/* 	  .main-header-menu li.current-menu-item:not(.contact-btn) > a::after,
  .main-header-menu li:hover:not(.contact-btn)             > a::after {
    opacity: 1;
  } */
  .main-header-menu li.current-menu-item > a::after,
  .main-header-menu li:hover           > a::after {
    opacity: 1;
  }


  /* ヘッダー左右余白調整 */
  .ast-container,
  .ast-primary-header-bar {
    padding-left: 0;
    padding-right: 30px;
    max-width: 100%;
  }
  .ast-site-identity {
    margin-left: 0;
    padding-left: 0;
  }
  .ast-site-identity img {
    max-height: 100%;
  }
	
	/* ❶ 現在位置の筆を z-index: -1 で背面に退避（重なり対策） */
/* .main-header-menu li.current-menu-item:not(.contact-btn) > a::after {
  z-index: -1;
} */
	.main-header-menu li.current-menu-item > a::after {
  z-index: -1;
}

/* ③ ナビ全体をホバーしている間、現在位置（current）の筆を非表示に */
.main-header-menu:hover li.current-menu-item:not(:hover) > a::after { opacity: 0; }

/* ★ ここを追加 ─ 「筆」と同じタイミングで文字色も通常色へ戻す */
.main-header-menu:hover li.current-menu-item:not(:hover) > a        { color: #1c1c1c; }

	
}


