@charset "UTF-8";
/* ヘッダーとドロワーの外枠。テーマ（親テーマの style.css・css/responsive.css、子テーマの css/gnav.css）のヘッダーと同じ見た目にする。
   ただしヘッダーの背景は、テーマのようにスクロールやホバーで切り替えず、常にテーマの不透明な背景と同じ色（#050505）にする。
   中身のグローバルナビは子テーマの template-parts/gnav.php で、その見た目は css/gnav.css が付ける。
   1151px 以下の切り替えはテーマと css/gnav.css に合わせている。 */

/* #header
--------------------------------------------- */
#header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1100;
  width: 100%;
  height: var(--header-h);
  font-size: 16px;
  line-height: 1;
  color: #000;
  /* #050505 のように完全に不透明にすると、このページでだけ、スクロール後にメガメニューを開閉したときにヘッダーの下端にパネルの描画の一部が残る。
     わずかに透明にすると残らないので、見た目が #050505 と変わらない透明度にしている。 */
  background: rgb(5 5 5 / 0.999);
}

/* style.css は img を幅 100% にするので、ヘッダーとドロワーの画像は width・height 属性の寸法に戻す。
   revert-layer はレイヤーのない指定を打ち消して属性の寸法を使わせる（revert だと画像の実寸になる）。
   css/gnav.css が寸法を指定している画像はそちらを優先するよう、詳細度を img と同じにしている。 */
:where(#header, #drawer_menu) img {
  width: revert-layer;
  height: revert-layer;
}

#header_logo {
  position: absolute;
  top: 50%;
  left: 30px;
  z-index: 10;
  transform: translateY(-50%);
}
#header_logo img {
  display: block;
}
#header_logo img:hover {
  opacity: 0.5;
}
#header_logo .logo_image.mobile {
  display: none;
}

.global_menu_button {
  display: none;
}

@media (max-width: 1151px) {
  #header_logo {
    left: 20px;
  }
  #header_logo .logo_image.pc {
    display: none;
  }
  #header_logo .logo_image.mobile {
    display: block;
  }

  .global_menu_button {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: block;
    width: 60px;
    height: 60px;
  }
  .global_menu_button span {
    position: absolute;
    left: 20px;
    width: 22px;
    height: 2px;
    background: #fff;
  }
  .global_menu_button span:nth-child(1) {
    top: 24px;
  }
  .global_menu_button span:nth-child(2) {
    top: 30px;
  }
  .global_menu_button span:nth-child(3) {
    top: 36px;
  }
  .global_menu_button:hover span {
    opacity: 0.5;
  }
}

/* #drawer_menu（幅と色は css/gnav.css）
--------------------------------------------- */
/* 閉じている間は画面外にあるので、visibility で隠してフォーカスが入らないようにする。 */
#drawer_menu {
  position: fixed;
  top: 0;
  z-index: 9999;
  height: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  font-size: 16px;
  line-height: 1;
  visibility: hidden;
}
.open_menu #drawer_menu {
  right: 0;
  visibility: visible;
  box-shadow: -5px 0 20px 0 rgb(0 0 0 / 0.4);
}
/* テーマのページ（header.php）と同じく背景は暗くせず、外側のクリックを受けて閉じるためだけに置く。 */
#drawer_overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
}
.open_menu #drawer_overlay {
  display: block;
}

@media (prefers-reduced-motion: no-preference) {
  #header_logo img {
    transition: opacity 0.3s ease-in-out;
  }
  .global_menu_button span {
    transition: opacity 0.3s ease;
  }
  /* 閉じるときは画面外へ出しきってから隠す。 */
  #drawer_menu {
    transition: right 0.3s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s 0.3s;
  }
  .open_menu #drawer_menu {
    transition: right 0.3s cubic-bezier(0.19, 1, 0.22, 1), visibility 0s;
  }
}

/* .g-footer
--------------------------------------------- */
.g-footer {
  font-family: "Noto Sans JP", sans-serif;
  font-weight: 400;
  color: #000;
  line-height: 1;
  background-color: #fff;
}
.g-footer__bottom {
  position: relative;
}
.g-footer__logo-link {
  display: block;
}
.g-footer__logo-img {
  display: block;
  width: 112px;
  transition: opacity 0.35s ease-in-out;
}
@media (any-hover: hover) {
  .g-footer__logo-img:hover {
    opacity: 0.5;
  }
}
.g-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  text-align: center;
}
.g-footer__links-item {
  padding-right: 10px;
}
.g-footer__links-item::before {
  content: "|";
  padding-right: 10px;
}
.g-footer__links-item:first-child::before {
  content: "";
}
.g-footer__link {
  display: inline-block;
}
.g-footer__link[target=_blank] {
  padding-right: 24px;
  background: url("https://www.baitoru.com/solution/wp-content/themes/drop-child/img/common/icon-window.png") no-repeat right center/16px auto;
}
@media (any-hover: hover) {
  .g-footer__link:hover {
    color: #ed2c00;
  }
}
.g-footer__sns {
  display: flex;
  justify-content: center;
  gap: 10px;
}
.g-footer__sns-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #000;
}
.g-footer__sns-link svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: currentColor;
}
@media (any-hover: hover) {
  .g-footer__sns-link:hover {
    color: #ed2c00;
  }
}
.g-footer__sns-link--x svg {
  width: 17px;
  height: 17px;
  position: relative;
  top: 1px;
}
.g-footer__copyright {
  font-size: 12px;
  color: #fff;
  text-align: center;
  background-color: #222;
}
@media (min-width: 1152px) {
  .g-footer__bottom {
    height: 100px;
  }
  .g-footer__logo {
    position: absolute;
    top: 50%;
    left: 40px;
    z-index: 3;
    transform: translateY(-50%);
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
  }
  .g-footer__links {
    width: 100%;
    font-size: 16px;
    position: absolute;
    top: 52px;
    left: 0;
    z-index: 1;
  }
  .g-footer__sns {
    position: absolute;
    top: 42px;
    right: 35px;
    z-index: 3;
  }
  .g-footer__copyright {
    line-height: 60px;
  }
}
@media (max-width: 1151px) {
  .g-footer__bottom {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 40px 0;
  }
  .g-footer__links {
    width: 100%;
    font-size: 16px;
    margin-top: -10.4px;
    position: relative;
    z-index: 1;
  }
  .g-footer__sns {
    margin-top: 24.4px;
  }
  .g-footer__copyright {
    line-height: 60px;
  }
}
@media (max-width: 768px) {
  .g-footer__logo-img {
    width: 70px;
  }
  .g-footer__links {
    font-size: 14px;
    margin-top: -2.4px;
    padding: 15px 0;
  }
  .g-footer__links-item {
    padding: 10px;
  }
  .g-footer__sns {
    margin-top: -15.6px;
  }
  .g-footer__copyright {
    line-height: 50px;
  }
}

/* .g-return-top（TOPへ戻る）
--------------------------------------------- */
.g-return-top {
  display: block;
  background-color: #666;
  position: fixed;
  right: 0;
  bottom: 0;
  z-index: 999;
  transform: translate3d(0, 100%, 0);
  -webkit-transform: translate3d(0, 100%, 0);
  transition: transform 0.35s, background-color 0.35s;
}
.g-return-top::before {
  content: "";
  display: block;
  width: 10px;
  height: 5.5px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 5.5'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='1.1' d='M-.6 6.1 5 .9 10.6 6.1'/%3E%3C/svg%3E") no-repeat center/contain;
  position: absolute;
  top: calc(50% + 0.5px);
  left: 50%;
  margin-left: -5px;
}
.g-return-top.is-active {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}
@media (any-hover: hover) {
  .g-return-top:hover {
    background-color: #333;
  }
}
@media (min-width: 769px) {
  .g-return-top {
    width: 60px;
    height: 60px;
  }
}
@media (max-width: 768px) {
  .g-return-top {
    width: 50px;
    height: 50px;
  }
}

body {
  padding-top: var(--header-h);
}