@charset "utf-8";

/* ALL
-------------------------------------------------- */
body {
  font-family: Helvetica, Arial, Simhei, Hei, sans-serif;
}
@media only screen and (max-width: 979px) {
  body {
    font-size: 1.4rem;
  }
}

/* SP header
-------------------------------------------------- */
@media only screen and (max-width: 979px){
  #header {
    position: fixed;
    z-index: 10000;
    height: 46px;
    box-shadow: 0px 1px 1px 0 rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #ebebeb;
  }
  #header #header-corporation {
    width: 100%;
    box-sizing: border-box;
  }
  #header #header-corporation .inner {
    max-width: none;
    height: 46px;
  }
  #header #header-corporation .inner .logo a {
    margin-left: 15px;
  }
  #header #header-corporation .inner .logo a img {
    width: 90%;
    height: auto;
  }

  #header #header-corporation .inner .functions {
    display: none;
  }
  #header #header-corporation .inner .functions .language-selector {
    display: none;
  }
}

/* SP footer
-------------------------------------------------- */
@media only screen and (max-width: 979px) {
  .footer-info {
    max-width: none;
    display: block;
    width: 100%;
    padding: 23px 5% 20px 5%;
  }
  .footer-info ul {
    display: block;
  }
  .footer-info ul li {
    display: inline-block;
    margin-bottom: 16px;
  }
  .footer-info p {
    margin-top: 8px;
  }
  /* footerBacktop */
  div.footerBacktop {
    bottom: 10px;
    right: 10px;
  }
  div.footerBacktop p {
    margin: 0;
    padding: 0;
  }
  div.footerBacktop p a {
    height: 40px;
    width: 40px;
  }
  div.footerBacktop p a:hover {
    background-color: rgba(99, 118, 137, 0.8);
  }
}



/* PC header
-------------------------------------------------- */
#header #header-corporation .inner .logo {
  width: 340px;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}
@media only screen and (min-width: 980px) {
  #header {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 70000;
    box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.1);
  }
  #header #header-corporation {
    height: 66px;
    border-bottom: 1px solid #ebebeb;
  }
  #header #header-corporation .inner {
    max-width: 1280px;
    height: 65px;
    padding: 0 20px 0 20px;
  }
  #header #header-corporation .inner .logo a {
    display: block;
  }
  #header #header-corporation .inner .spBtn {
    display: none;
  }
  #header #header-corporation .inner .functions {
    width: auto;
    height: 100%;
    max-width: 52%;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
  }
  #header #header-corporation .inner .functions .search {
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    list-style: none;
  }
  #header #header-corporation .inner .functions .search li {
    display: flex;
    height: 40px;
    border-left: 1px solid #ebebeb;
    padding: 0 20px 0 20px;
    box-sizing: border-box;
  }
  #header #header-corporation .inner .functions .search li span {
    margin-right: 6px;
  }
  #header #header-corporation .inner .functions .search li form.aghsearchform {
    display: flex;
    -webkit-align-items: center;
    align-items: center;
  }
  #header #header-corporation .inner .functions .search li form.aghsearchform .search-submit {
    margin: 0 0 0 6px;
  }
  #header #header-corporation .inner .functions .search li form.aghsearchform .aghsearchinput {
    width: 100%;
    max-width: 200px;
    padding: 4px;
    box-sizing: border-box;
  }
  #header #header-corporation .inner .functions .language-selector {
    display: flex;
    list-style: none;
    border-right: 1px solid #ebebeb;
  }
  #header #header-corporation .inner .functions .language-selector li {
    height: 40px;
    box-sizing: border-box;
    padding: 0 2px;
    border-left: 1px solid #ebebeb;
    line-height: 3;
    position: relative;
  }
  #header #header-corporation .inner .functions .language-selector li a {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    padding: 0 30px 0 30px;
  }
  #header #header-corporation .inner .functions .language-selector .dropdown > a {
    box-sizing: border-box;
  }
  #header #header-corporation .inner .functions .language-selector .dropdown > a span {
    padding-right: 46px;
    background: url(/ag_common/img/icon-language-arrow.png) no-repeat right center;
  }
  #header #header-corporation .inner .functions .language-selector .dropdown .language-menu {
    position: relative;
    z-index: 1000;
    display: none;
    margin-right: -3px;
    margin-left: -3px;
    background-color: #fff;
    border: 1px solid #ebebeb;
    list-style: none;
    width: 100%;
    padding: 10px 5px 20px 0;
    top: 12px;
  }
  #header #header-corporation .inner .functions .language-selector .dropdown .language-menu > li {
    border-left: none;
  }
  #header #header-corporation .inner .functions .language-selector .dropdown .language-menu::before {
    position: absolute;
    width: 9px;
    content: url(/ag_common/img/language-menu-top.png);
    left: 0;
    right: 0;
    top: -27px;
    bottom: auto;
    margin: auto;
  }

  .line-hover > li > a {
    position: relative;
    width: 100%;
    height: 100%;
    text-decoration: none;
    text-align: center;
  }
  .line-hover > li > a > span {
    position: relative;
    height: 100%;
    display: inline-flex;
    align-items: center;
  }
  .line-hover > li > a > span::after {
    position: absolute;
    bottom: 4px;
    left: 50%;
    content: '';
    width: 0;
    height: 4px;
    background-color: #a50000;
    transition: .3s;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
  }
  .line-hover > li > a > span:hover {
    color: #000;
  }
  .line-hover > li > a > span:hover::after {
    width: 100%;
  }
}


/* PC footer
-------------------------------------------------- */
@media only screen and (min-width: 980px) {
  .footer-info {
    max-width: 1280px;
    padding: 30px 20px 50px 20px;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-align-items: center;
    align-items: center;
  }
  .footer-info ul {
    display: flex;
  }
  div.footerBacktop p {
    margin: 0;
  }
  div.footerBacktop p a {
    height: 44px;
    width: 44px;
  }
  div.footerBacktop p a:hover {
    background-color: rgba(99, 118, 137, 0.8);
  }
}
