@charset "utf-8";

/* Local fallback tweaks for header/footer when blessed CSS/images are unavailable. */
#header.min {
  min-height: 72px;
  background-color: #fff;
  background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 97%, rgba(0, 0, 0, 0.15) 100%);
}

#header.min #header__outer,
#header.min #header__inner {
  position: relative;
  min-height: 72px;
}

#header.min #header__inner {
  max-width: 960px;
  margin: 0 auto;
}

#header.min #header__logo,
#header.noMenu #header__logo {
  position: relative;
  top: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  background-color: #fff;
  background-image: none;
}

#header.min #header__logo p,
#header.noMenu #header__logo p {
  margin: 0;
  padding-left: 0;
  line-height: 0;
}

#header.min #header__logo img,
#header.noMenu #header__logo img {
  position: static;
  top: auto;
  left: auto;
  width: 54px;
  height: auto;
  object-fit: contain;
}

#contents .main-container {
  padding-top: 24px;
}

@media (max-width: 767px) {
  #header.min {
    min-height: 44px;
    background-image: none;
  }

  #header.min #header__outer,
  #header.min #header__inner {
    min-height: 44px;
    max-width: none;
    margin: 0;
  }

  #header.min #header__logo,
  #header.noMenu #header__logo {
    height: 44px;
    background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 97%, rgba(0, 0, 0, 0.15) 100%);
  }

  #header.min #header__logo p,
  #header.noMenu #header__logo p {
    padding-left: 14px;
  }

  #header.min #header__logo img,
  #header.noMenu #header__logo img {
    width: 30px;
    height: 22px;
  }

  #contents .main-container {
    padding-top: 16px;
  }
}

/* Desktop: align footer left edge with header (max-width: 960px, margin: 0 auto) */
@media (min-width: 768px) {
  .footer__inner {
    max-width: 960px;
    margin: 0 auto;
  }

  #footer__companySet {
    max-width: none;
    margin: 0;
    padding-left: 0;
  }
}

/* =============================================
   Footer: overrides for dark background
   ============================================= */

/* dark background / white text */
#footer {
  background: #111;
  border-top: none;
  color: #fff;
}

#footer a { color: #fff; }

/* ---- nav list (プライバシーポリシー / 利用環境) ---- */

/* inline-flex で全子要素を垂直中央揃え */
#footer #footer__companySet__company ul li {
  display: inline-flex;
  align-items: center;
}

/* li:before は使わない（dot不要） */
#footer #footer__companySet__company ul li:before {
  content: none;
}

/* li:after: CSS三角形セパレーター（icon_navdiscの代替）
   最初のliの後にのみ表示 → noDiscで非表示にする */
#footer #footer__companySet__company ul li:after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid #8b8b8b;
  margin: 0 6px;
  flex-shrink: 0;
}

/* noDisc: セパレーターを消す */
#footer #footer__companySet__company ul li.footer__companySetItem--noDisc:before,
#footer #footer__companySet__company ul li.footer__companySetItem--noDisc:after {
  content: none;
}

/* リンクテキスト */
#footer #footer__companySet__company ul li a {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  line-height: 1;
  color: #fff;
}

/* 外部リンクアイコン: a を position:relative にして ::after を a 内に収める */
#footer #footer__companySet__company ul li.footer__companySetItem--externalLink a {
  position: relative;
  padding-right: 13px;
}

#footer #footer__companySet__company ul li.footer__companySetItem--externalLink a:before {
  content: none;
}

#footer #footer__companySet__company ul li.footer__companySetItem--externalLink a:after {
  content: "";
  position: absolute;
  right: 1px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 10px;
  background-image: url(/common_new/images/common/icon_blank8-gray.png);
  background-repeat: no-repeat;
  background-size: 8px 10px;
  background-color: transparent;
  border: none;
  margin: 0;
  vertical-align: initial;
  display: block;
}

/* ---- ロゴ + コピーライト ---- */

/* flex横並び。main.cssの min-height:55px / margin:8px 上書き */
#footer #footer__companySet__companyInfo {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: 0;
  padding-bottom: 22px;
}

#footer #footer__companySet__companyInfo__logo {
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  line-height: 0;
}

#footer #footer__companySet__companyInfo__logo img {
  display: block;
  width: 42px;
  height: 12px;
}

/* main.css の margin: 8px 0 0 0; padding-bottom: 22px; を上書き */
#footer #footer__companySet__companyInfo__copyright {
  margin: 0;
  padding: 0;
  font-size: 11px;
  line-height: 1;
  color: #c8c8c8;
}

/* ---- ページトップへ ---- */
#footer #footer__movePageTop {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 11px;
}

#footer #footer__movePageTop a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  overflow: hidden;
  text-decoration: none;
  color: #fff;
}

#footer #footer__movePageTop a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid #fff;
  border-left: 2px solid #fff;
  transform: rotate(45deg) translateY(2px);
  flex-shrink: 0;
}

#footer #footer__movePageTop span {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}



