/* ============================================
   Mobile Override — モバイル上書きスタイル
   ============================================
   既存の layout.css / component.css を上書きする。
   1000px 以下でのみ適用。
   ============================================ */

/* ------------------------------------------------
   1. モバイルメニュー（黒背景・ヘッダー下から展開）
   ------------------------------------------------ */
@media screen and (max-width: 1000px) {
  /* --- オーバーレイ（既存ヘッダーの下から展開） --- */
  .mobile-nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    max-height: none;
    background-color: #1a1a1a;
    border-top: none;
    overflow-y: auto;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .mobile-nav.is-open {
    max-height: none;
    opacity: 1;
    pointer-events: auto;
  }

  /* --- メニュー内ヘッダー（非表示・白ヘッダーをそのまま使う） --- */
  .mobile-nav-header {
    display: none;
  }

  /* --- メニューリスト --- */
  .mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 20px 30px;
    list-style: none;
  }

  .mobile-nav-list li {
    border-bottom: 1px solid rgba(255, 255, 255, 1);
  }

  .mobile-nav-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    color: #fff;
    text-decoration: none;
    font-size: 15px;
    transition: background-color 0.2s;
  }

  .mobile-nav-list a:hover,
  .mobile-nav-list a:active {
    background-color: rgba(255, 255, 255, 0.06);
  }

  .mobile-nav-list .mnav-label {
    display: flex;
    align-items: baseline;
    gap: 10px;
  }

  .mobile-nav-list .mnav-en {
    font-family: var(--font-secondary, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.03em;
  }

  .mobile-nav-list .mnav-ja {
    font-size: 13px;
    color: var(--text-color-white);
	font-weight: var(--font-weight-regular);
  }

  .mobile-nav-list .mnav-arrow {
    font-size: 20px;
    color: var(--text-color-white);
    margin-left: auto;
    flex-shrink: 0;
  }

  /* --- CTA（メニュー内下部・非表示） --- */
  .mobile-nav-cta {
    display: none;
  }

  /* ------------------------------------------------
     2. 固定ボトムバー
     ------------------------------------------------ */
  .fixed-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9998;
    display: flex;
    align-items: stretch;
    height: 56px;
  }

  /* ボタン共通 */
  .fbb-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    line-height: 1;
    transition: opacity 0.2s;
	border: 1px solid #fff;
  }

  .fbb-btn:hover {
    opacity: 0.85;
  }

  .fbb-btn .fbb-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
  }

  .fbb-btn .fbb-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
  }

  /* 問い合わせ（黒） */
  .fbb-contact {
    background-color: #1a1a1a;
    color: #fff;
  }

  /* 資料請求（赤） */
  .fbb-download {
    background-color: var(--accent-color);
    color: #fff;
	margin-left: -1px;
  }

  /* ページTOPボタン（右上に浮かせる） */
  .fbb-top {
    position: absolute;
    right: 8px;
    bottom: calc(100% + 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
  }

  .fbb-top-icon {
  	position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background-color: #000;
    line-height: 1;
	border: 1px solid #fff;
  }
  
  .fbb-top-icon::after {
  	content: '';
	width: 6px;
	height: 6px;
	border-top: 2px solid #fff;
	border-right: 2px solid #fff;
	transform: rotate(-45deg) translate(0%, -50%);
	position: absolute;
	top: 50%;
	left: 50%;
  }

  /* フッター下部にボトムバー分のパディング */
  .footer {
    padding-bottom: 56px;
  }

  body {
    padding-bottom: 56px;
  }

}

/* デスクトップでは非表示 */
@media screen and (min-width: 769px) {
  .fixed-bottom-bar {
    display: none !important;
  }

  .mobile-nav-header {
    display: none;
  }

  .mobile-nav-close {
    display: none;
  }
}
