@charset "UTF-8";
/*
    Template: swell
    Theme Name: SWELL CHILD
    Theme URI: https://swell-theme.com/
    Description: SWELLの子テーマ
    Version: 1.0.0
    Author: LOOS WEB STUDIO
    Author URI: https://loos-web-studio.com/

    License: GNU General Public License
    License URI: http://www.gnu.org/licenses/gpl.html
*/


/* ==================================================
  固定CTA：PC右下追従 / SP下部固定
================================================== */

#fix_bottom_menu {
  position: fixed;
  z-index: 100;
  display: block;
  background: transparent;
  box-shadow: none;
}

#fix_bottom_menu:before {
  content: none;
}

#fix_bottom_menu span {
  width: auto !important;
}

#fix_bottom_menu .menu_list {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
}

#fix_bottom_menu .menu-item {
  min-width: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: center;
}

#fix_bottom_menu .menu-item a,
#fix_bottom_menu .qz-fixed-cta__banner-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  height: 100%;
  margin: 0;
  padding: 0;
  text-decoration: none;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    filter 0.25s ease;
}

#fix_bottom_menu .menu-item a:hover,
#fix_bottom_menu .menu-item a:focus-visible {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

#fix_bottom_menu .menu-item a:focus-visible {
  outline: 3px solid rgba(21, 100, 172, 0.25);
  outline-offset: -3px;
}

#fix_bottom_menu .qz-fixed-cta__banner-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  box-shadow: 0 8px 24px rgba(0, 72, 120, 0.18);
}

/* ==================================================
  PC：右下追従バナー
================================================== */
@media (min-width: 560px) {
  #fix_bottom_menu {
    right: 24px;
    bottom: 24px !important;
    left: auto;
    width: min(400px, calc(100vw - 48px));
    padding: 0;
  }

  #fix_bottom_menu .menu_list {
    max-width: none;
  }

  #fix_bottom_menu .menu-item a,
  #fix_bottom_menu .qz-fixed-cta__banner-link {
    min-height: 0;
  }

  #fix_bottom_menu .qz-fixed-cta__banner-img {
    max-height: none;
  }

  body {
    padding-bottom: 0;
  }

  .p-fixBtnWrap {
    bottom: 170px;
  }
}

/* ==================================================
  SP：下部固定バナー
================================================== */
@media not all and (min-width: 560px) {
  #fix_bottom_menu {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom) * 0.5);
  }

  #fix_bottom_menu .menu_list {
    max-width: 100%;
  }

  #fix_bottom_menu .menu-item a,
  #fix_bottom_menu .qz-fixed-cta__banner-link {
    min-height: 64px;
  }

  #fix_bottom_menu .qz-fixed-cta__banner-img {
    width: auto;
    max-width: 100%;
  }

  #fix_bottom_menu .menu-item a:hover,
  #fix_bottom_menu .menu-item a:focus-visible {
    transform: none;
  }

  body {
    padding-bottom: calc(84px + env(safe-area-inset-bottom));
  }

  .p-fixBtnWrap {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* ==================================================
  END - 固定CTA：PC右下追従 / SP下部固定
================================================== */

/* ==================================================
  ページトップボタン：固定フッターCTAとの重なり回避
================================================== */

#fix_bottom_menu + .p-fixBtnWrap {
  bottom: 120px;
}

@media not all and (min-width: 960px) {
  #fix_bottom_menu + .p-fixBtnWrap {
    bottom: calc(92px + env(safe-area-inset-bottom));
  }
}

/* ==================================================
  END - 固定フッターCTA
================================================== */



/* ==================================================
  サイドバー最後の2バナー：追従化
================================================== */
@media (min-width: 960px) {
  #sidebar {
    overflow: visible;
  }

  #sidebar .qz-sticky-sidebar-banners {
	padding-top: 2.5rem;
    position: sticky;
    top: 0;
    z-index: 5;
    display: grid;
  }

  #sidebar .qz-sticky-sidebar-banners__item {
    margin: 0;
  }

  #sidebar .qz-sticky-sidebar-banners__item .veu_banner {
    display: block;
    transition:
      transform .25s ease,
      filter .25s ease;
  }

  #sidebar .qz-sticky-sidebar-banners__item img {
    display: block;
    width: 100%;
    height: auto;
  }

  #sidebar .qz-sticky-sidebar-banners__item .veu_banner:hover,
  #sidebar .qz-sticky-sidebar-banners__item .veu_banner:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }
}

@media not all and (min-width: 960px) {
  #sidebar .qz-sticky-sidebar-banners {
    position: static;
    display: grid;
    gap: 12px;
	margin-top: 2em;
  }
	
	#sidebar img {
		width: 100%;
	}
	
}

/* ==================================================
  END - サイドバー下部バナー：PCのみ追従化
================================================== */

/* ==================================================
  ExUnit記事下CTA：非表示
================================================== */
.veu_cta {
  display: none !important;
}

/* ==================================================
  END - ExUnit記事下CTA：非表示
================================================== */


/* ==============================
  QUANZ TECHBLOG 記事
============================== */
.post_content {
  --swl-block-margin: 1.4em;
}

.post_content h2,
.post_content h3,
.post_content h4 {
  margin: 2em 0 1.5em;
}

.post_content .wp-block-image {
  border: solid 1px #cccccc;
}

/* ==============================
  END - QUANZ TECHBLOG 記事
============================== */