@charset "UTF-8";
/* www.the-g.co.jp (新サイト) の #footer を search.the-g.co.jp 用に移植したもの
   元: /Portals/0/Skins/skincommon.css (body.pcView 依存を除去し、旧サイトCSSとの競合を打ち消し、SP対応を追加) */
@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;500;700&display=swap");

#footer {
  /* 旧style.cssの footer{height:42px;font-size:11px;...} を打ち消す */
  height: auto;
  margin: 0;
  padding: 0;
  background: #f0f0f0;
  border-top: 1px solid #b3b3b3;
  color: #505050;
  font-family: "Noto Sans JP", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  text-align: left;
}
#footer a { color: #505050; }
#footer a:hover { opacity: .7; }
#footer img { border: none; vertical-align: bottom; }

#footer .foot_top {
  position: relative;
  background-color: #f0f0f0;
  padding: 100px 0 140px;
}
#footer .foot_top_inner {
  display: flex;
  gap: 110px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}
#footer .foot_top_logo { width: 200px; margin: 0; flex-shrink: 0; }
#footer .foot_top_logo img { max-width: 100%; height: auto; }
#footer .foot_top_nav { flex: 1; min-width: 0; }
#footer .foot_top_nav ul { list-style: none; margin: 0; padding: 0; }
#footer .foot_top_nav li { margin: 0; padding: 0; }
#footer .foot_top_nav a { text-decoration: none; line-height: 1.2; }
#footer .foot_top_nav > ul {
  display: flex;
  flex-wrap: wrap;
  gap: 60px;
}
#footer .foot_top_nav > ul > li { width: calc((100% - 120px) / 3); }
#footer .foot_top_nav > ul > li > a { display: block; font-weight: 500; }
#footer .foot_top_nav > ul > li > ul { margin: 30px 0 0; }
#footer .foot_top_nav > ul > li > ul > li { margin: 20px 0 0; }
#footer .foot_top_nav > ul > li > ul > li > a { font-size: 14px; }

#footer .pagetop { position: absolute; bottom: 60px; right: 40px; margin: 0; }
#footer .pagetop a {
  display: block;
  font-size: 0;
  width: 80px;
  height: 80px;
  background-image: url("/main-assets/img/pagetop.png");
  background-size: contain;
  background-repeat: no-repeat;
}

#footer .foot_bottom {
  background-color: #505050;
  padding: 70px 0 75px;
  color: #fff;
}
#footer .foot_bottom .inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; box-sizing: border-box; }
#footer .foot_bottom_nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}
#footer .foot_bottom_nav li { margin: 0; padding: 0; }
#footer .foot_bottom_nav li a { color: #fff; font-size: 14px; text-decoration: none; line-height: 1.2; }
#footer .foot_bottom .copyright {
  float: none;
  display: block;
  margin: 40px 0 0;
  padding: 0;
  color: #fff;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
}

@media (max-width: 767px) {
  #footer .foot_top { padding: 50px 0 80px; }
  #footer .foot_top_inner { flex-direction: column; gap: 40px; padding: 0 20px; }
  #footer .foot_top_logo { width: 160px; }
  #footer .foot_top_nav > ul { gap: 30px; }
  #footer .foot_top_nav > ul > li { width: 100%; }
  #footer .foot_top_nav > ul > li > ul { margin: 15px 0 0; }
  #footer .foot_top_nav > ul > li > ul > li { margin: 12px 0 0; }
  #footer .pagetop { bottom: 15px; right: 15px; }
  #footer .pagetop a { width: 50px; height: 50px; }
  #footer .foot_bottom { padding: 40px 0 45px; }
  #footer .foot_bottom .inner { padding: 0 20px; }
  #footer .foot_bottom_nav { gap: 12px 24px; }
  #footer .foot_bottom .copyright { margin: 25px 0 0; }
}
