﻿.home {
  position: relative;
  background: url(../images/home/bg_bottom.png) no-repeat center bottom;
  background-size: 100% auto;
}
.home::before {
  position: absolute;
  right: 0;
  top: 0;
  pointer-events: none;
  width: 65%;
  content: "";
  height: 100%;
  background: url(../images/home/bg.svg) no-repeat right top;
  background-size: auto 100%;
  z-index: 5;
}
.home .sitemap {
  position: absolute;
  right: 17%;
  top: 3rem;
  z-index: 10;
  padding: 0.125rem 0.625rem;
}
.home .sitemap a {
  color: var(--color-w);
  border-radius: 1.875rem;
  font-size: 1.125rem;
  background-color: var(--color-font);
}

#home-header {
  padding-top: 3rem;
  position: relative;
  z-index: 5;
  width: 49.6%;
  margin-left: 50%;
  max-width: 62.5rem;
  transform: translate(-85%);
}
#home-header .logo {
  margin: 0 auto 1.25rem;
  width: 27.7%;
}
#home-header .logo img {
  vertical-align: bottom;
  width: 100%;
}
#home-header .en-title {
  text-align: center;
  display: flex;
  width: 100%;
  align-items: center;
  font-weight: 800;
  font-size: 1.125rem;
  margin-bottom: 1.5625rem;
}
#home-header .en-title::before, #home-header .en-title::after {
  flex: 1;
  content: "";
  height: 0.0625rem;
  background-color: var(--color-b2);
}
#home-header .en-title span {
  display: inline-block;
  padding: 0 1.05rem 0 1.25rem;
  background-color: var(--color-w);
  color: var(--color-b2);
  text-transform: uppercase;
  letter-spacing: 0.2rem;
}

#home {
  padding-top: 3.125rem;
  position: relative;
  z-index: 5;
  width: 49.6%;
  margin-left: 50%;
  max-width: 62.5rem;
  transform: translate(-85%);
}
#home #home-menu {
  padding-bottom: 5rem;
  max-width: 45.25rem;
  margin: 0 auto;
}
#home #home-menu ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2.8125rem;
}
#home #home-menu ul li a {
  position: relative;
  width: 12.5rem;
  height: 12.5rem;
  border-radius: 100%;
  border: 0.375rem solid var(--color-g1);
  background-color: var(--color-w);
  color: var(--color-b2);
  font-size: 2.5rem;
  box-shadow: -0.75rem 0.5rem 0px 0px var(--color-b3);
  padding-top: 3.5rem;
  text-align: center;
  font-family: var(--font-title);
}
#home #home-menu ul li a i {
  width: 6.25rem;
  height: 6.25rem;
  position: absolute;
  left: 50%;
  top: -2rem;
  transform: translateX(-50%);
}
#home #home-menu ul li a i img {
  width: 100%;
}
@media screen and (max-width: 1439px) {
  #home-header {
    width: 55%;
    margin-left: 20px;
    max-width: none;
    transform: none;
  }

  #home {
    width: 55%;
    margin-left: 20px;
    max-width: none;
    transform: none;
  }
}
@media screen and (max-width: 1360px) {
.home::before {
    width: 50.375rem;
  }
  .home .sitemap {
    top: 2rem;
  }

  #home-header {
    padding-top: 1rem;
    width: 58%;
  }

  #home {
    padding-top: 2rem;
    width: 58%;
  }
  #home #home-menu ul {
    gap: 2rem 3rem;
  }
  #home #home-menu ul li a {
    width: 10rem;
    height: 10rem;
    font-size: 2rem;
    padding-top: 2.5rem;
  }
  #home #home-menu ul li a i {
    width: 5rem;
    height: 5rem;
  }
}
@media screen and (max-width: 1023px) {
.home {
    background-image: url(../images/home/bg_bottom_t.png);
  }
  .home::before {
    width: 30.75rem;
    background-image: url(../images/home/bg_t.svg);
    background-size: 100% auto;
  }
  .home .sitemap {
    right: 8.5625rem;
  }
  .home .sitemap a {
    font-size: 1rem;
  }

  #home-header {
    width: 100%;
    padding: 1.375rem 1rem 0;
    margin-left: 0;
  }
  #home-header .logo {
    width: 12.125rem;
    margin: 0 0 1.25rem;
  }
  #home-header .en-title {
    margin-bottom: 0.5rem;
    max-width: 24rem;
  }
  #home-header .en-title span {
    padding: 0 1.25rem;
    letter-spacing: normal;
  }
  #home-header .title {
    max-width: 36rem;
    width: 71%;
    margin: 0;
  }

  #home {
    padding-top: 10rem;
    width: 100%;
    margin-left: 0;
  }
  #home #home-menu {
    padding-bottom: 3.3125rem;
    max-width: 44.625rem;
  }
  #home #home-menu ul {
    gap: 2.5rem;
  }
  #home #home-menu ul li a {
    width: 12.5rem;
    height: 12.5rem;
    font-size: 2.5rem;
    padding-top: 3.5rem;
  }
  #home #home-menu ul li a i {
    width: 6.25rem;
    height: 6.25rem;
  }
}
@media screen and (max-width: 767px) {
 .home {
    background-image: url(../images/home/bg_bottom_m.png);
  }
  .home::before {
    width: 14.1875rem;
  }
  .home .sitemap {
    top: 1.125rem;
    right: 1.5625rem;
  }
  .home .sitemap a {
    font-size: 0.875rem;
  }

  #home-header {
    padding-top: 1.125rem;
  }
  #home-header .logo {
    width: 7.5625rem;
    height: 2.9375rem;
    margin-bottom: 0.8rem;
  }
  #home-header .logo img {
    vertical-align: top;
  }
  #home-header .en-title {
    max-width: 12rem;
    margin-bottom: 0;
  }
  #home-header .en-title span {
    font-size: 0.75rem;
    padding: 0 0.25rem;
  }

  #home {
    padding-top: 6.6875rem;
  }
  #home #home-menu {
    padding-bottom: 2.875rem;
  }
  #home #home-menu ul {
    gap: 10vw 3.7vw;
  }
  #home #home-menu ul li a {
    width: 28vw;
    height: 28vw;
    font-size: 5.5vw;
    padding-top: 7.5vw;
  }
  #home #home-menu ul li a i {
    width: 16vw;
    height: 16vw;
    top: -7vw;
  }
}
/* 焦點樣式 - 確保無障礙網頁規範 */
.home .sitemap a:focus {
  outline: 5px dashed var(--color-r1);
  outline-offset: 2px;
}

#home #home-menu ul li a:focus {
  outline: 5px dashed var(--color-r1);
  outline-offset: 4px;
}

.home .btn-top:focus {
  outline: 5px dashed var(--color-r1);
  outline-offset: 2px;
}

.home-footer #AZ:focus {
  outline: 5px dashed var(--color-r1);
  outline-offset: 2px;
}

@media screen and (min-width: 1024px) {
.home .sitemap a:hover, .home .sitemap a:focus {
    background-color: var(--color-b2);
  }

  #home #home-menu ul li a:hover, #home #home-menu ul li a:focus {
    background-color: var(--color-b4);
  }
}
