@charset "utf-8";

/* ALL
-------------------------------------------------- */
@media only screen and (max-width: 979px) {
  body {
    font-size: 1.4rem;
  }
}

/* SP header
-------------------------------------------------- */
@media only screen and (max-width: 767px){
  #header {
    position: fixed;
    z-index: 10000;
    height: 64px;
    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;
    position: relative;
    border-bottom: 1px solid #ebebeb;
  }

  #header #header-corporation::after {
    content: "";
    box-shadow: 0 0 3px 2px rgb(0, 0, 0, 0.1);
    width: 100%;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    height: 64px;
    z-index: -1;
    background-color: #fff;
  }

  #header #header-corporation .inner {
    max-width: none;
    height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  #header #header-corporation .inner .logo a img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
  }


}

@media only screen and (max-width: 1365px) {
  #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 10px 20px 10px;
    border-top: 1px solid #D5D7D8;
  }
  .footer-info ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }
  .footer-info ul li {
    display: inline-block;
    margin-bottom: 10px;
  }
  .footer-info p {
    margin-top: 8px;
    text-align: center;
  }
  /* 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);
  }
}

.footer__contact {
  background-color: #A40001;
  color: #fff;
  text-align: center;
  padding: 25px 0;
}

.footer__inner {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 10px;
}

.footer__contact__item:first-child {
   border-bottom: 1px solid #fff;
   padding-bottom: 20px;
   margin-bottom: 20px;
}

.footer__contact__hdg {
  font-size: 2rem;
  font-weight: normal;
}

.footer__contact__lead {
  margin-top: 15px;
  font-size: 1.6rem;
}
.footer_contact__btn {
  margin: 20px auto 0;
  max-width: 335px;
}

.footer_contact__btn a {
  text-align: left;
  color: #fff;
  font-size: 2rem;
  position: relative;
  display: flex;
  height: 38px;
  align-items: center;
  padding-left: 20px;
}

.footer_contact__btn._contact a::after {
  content: "";
  width: 19px;
  height: 19px;
  background: url(../../../asset/images/icon-blank.png) no-repeat left top /cover;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  margin-top: -4px;
}

.footer_contact__btn._mail a::after {
  content: "";
  width: 38px;
  height: 38px;
  background: url(../../../asset/images/icon-arrow-white.png) no-repeat left top /cover;
  position: absolute;
  right: 0;
  top: 0;
}
.footer_contact__btn._mail a {
  justify-content: center;
}
.footer_contact__btn._mail a::before {
  content: "";
  width: 58px;
  height: 39px;
  background: url(../../../asset/images/img-mail.png) no-repeat left top /cover;
  position: absolute;
  left: 0;
  top: 0;
}

.footer__primary {
  padding: 20px 0 0;
}

.footer__primary__address {
  padding-bottom: 15px;
}

.footer__primary__company {
  text-align: center;
  font-size: 1.6rem;
}

.footer__primary__info {
  margin-top: 15px;
  margin-bottom: 0;
  display: flex;
}

.footer__primary__info dt {
  width: 3em;
}

.footer__primary__info dd {
  margin: 0;
}

.footer__primary__info dd .pc-only {
  display: none;
}

.footer__nav {
  background-color: #EFF3F5;
  margin: 0 -10px;
  padding: 20px 10px;
}

.footer__nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__nav .footer__nav__item {
  margin-top: 20px;
}

.footer__nav .footer__nav__item:first-child {
  margin-top: 0;
}

.footer__nav__item > li {
  margin-top: 20px;
}

.footer__nav__item > li:first-child {
  margin-top: 0;
}

.footer__nav__item > li > a {
  font-size: 1.6rem;
  position: relative;
  padding-left: 25px;
  display: inline-block;
}

.footer__nav__item > li > a::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 2px;
  border-top: 4px solid #A40001;
  border-right: 4px solid #A40001;
  transform: rotate(45deg);
  position: absolute;
  top: 4px;
  left: 0;
}

.footer__nav__item > li > a[target="_blank"]::after,
.footer__nav__sub > li > a[target="_blank"]::after {
    content: "";
    width: 16px;
    height: 16px;
    background-color: #A40001;
    mask-image: url(../../../asset/images/icon-blank.png);
    mask-position: center center;
    mask-repeat: no-repeat;
    mask-size: cover;

    position: absolute;
    right: -25px;
    top: 50%;
    transform: translateY(-50%);
}

.footer__nav .footer__nav__sub {
  margin-top: 10px;
  margin-left: 25px;
  display: flex;
  flex-direction: column;
  gap: 10px 30px;
}

.footer__nav__sub > li > a {
  font-size: 1.6rem;
  position: relative;
  padding-left: 20px;
  display: inline-block;
}

.footer__nav__sub > li > a::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: #A40001;
  position: absolute;
  left: 0;
  top: 7px;
}


@media only screen and (min-width: 768px) {
  .footer__contact {
    padding: 30px 0 40px;
  }
  
  .footer__contact_area {
    max-width: 600px;
    margin: 0 auto;
  }

  .footer__contact__lead br {
    display: none;
  }
  
  .footer__primary__address {
    padding-bottom: 20px;
    display: flex;
    justify-content: space-between;
  }
  
  .footer__primary__company,
  .footer__primary__info {
    width: 50%;
  }
  
  .footer__primary__info {
    margin-top: 0;
  }

  .footer__nav {
    padding: 25px 10px;
    display: flex;
    justify-content: center;
  }
  
  .footer__nav .footer__nav__item {
    margin-top: 0;
    margin-left: 50px;
  }
  
  .footer__nav .footer__nav__item:first-child {
    margin-left: 0;
  }

  .footer__nav .footer__nav__sub {
    flex-wrap: wrap;
    height: 140px;
  }
}

@media only screen and (min-width: 980px) {
  .footer__contact {
    padding: 5px 0;
  }
  
  .footer__contact_area {
    max-width: none;
    display: flex;
    justify-content: space-between;
  }

  .footer__contact__item {
    padding: 20px 0;
    width: 100%;
  }

  .footer__contact__item:first-child {
    padding: 20px 30px 20px 0;
    margin: 0 30px 0 0;
    border-bottom: none;
    border-right: 1px solid #fff;
    width: 36%;
    flex-shrink: 0;
  }

  .footer__primary {
    padding: 0;
    border-bottom: 1px solid #D5D7D8;
    position: relative;
  }
  
  .footer__primary::after {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    background-color: #EFF3F5;
    width: 100%;
    height: 100%;
    z-index: -1;
  }

  .footer__primary .footer__inner {
    display: flex;
    justify-content: space-between;
  }

  .footer__primary__address {
    padding-bottom: 0;
    flex-direction: column;
    align-self: center;
    width: 33%;
    flex-shrink: 1;
  }
  
  .footer__primary__company,
  .footer__primary__info {
    width: 100%;
  }

  .footer__primary__company {
    text-align: left;
  }
  
  .footer__primary__info {
    margin-top: 20px;
  }
  
  .footer__primary__info dd .pc-only {
    display: block;
  }

  .footer__nav {
    padding: 25px 10px;
    width: 67%;
    justify-content: flex-end;
  }
  
  .footer__nav .footer__nav__item {
    margin-top: 0;
    margin-left: 50px;
  }
  
  .footer__nav .footer__nav__item:first-child {
    margin-left: 0;
  }
}

@media only screen and (min-width: 1366px) {
  .footer__contact__item {
    width: 50%;
  }

  .footer__contact__item:first-child {
    width: 50%;
  }


}




/* PC header
-------------------------------------------------- */
#header #header-corporation .inner .logo {
  width: 290px;
  height: 64px;
  margin: 0 10px;
  display: flex;
  align-items: center;
}

#header #header-corporation .inner .logo a {
  display: flex;
  flex: 1;
}

#header #header-corporation .inner .logo a img {
  width: 100%;
}

@media only screen and (min-width: 768px) {
  #header {
    position: absolute;
    position: fixed;
    left: 0;
    top: 0;
    z-index: 70000;
    box-shadow: 0px 4px 4px 0 rgba(0, 0, 0, 0.1);
    height: auto;
  }
  #header #header-corporation {
    height: 66px;
    border-bottom: 1px solid #ebebeb;
  }
  #header #header-corporation .inner {
    max-width: 1240px;
    height: 65px;
    padding: 0 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #header #header-corporation .inner .logo {
    width: 428px;
    margin: 0;
  }

  #header #header-corporation .inner .logo a {
    display: block;
  }

  #header #header-corporation .inner .logo img {
    margin-top: 12px;
  }

  #header #header-corporation .inner .spBtn {
    display: none;
  }

  .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%;
  }
}


@media only screen and (min-width: 768px) {
  #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 li a:hover {
    text-decoration: none;
  }

  #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;
  }



}

/* PC footer
-------------------------------------------------- */
@media only screen and (min-width: 980px) {
  .footer-info {
    max-width: 1240px;
    padding: 5px 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);
  }
}
