/* Shared by Korean templates and all translated static pages. */
.quick_wrap .quick ul li,
.quick_wrap .quick ul li:hover {
  height: auto;
}
.quick_wrap .quick ul li a,
.quick_wrap .quick ul li:hover a {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 0;
  box-sizing: border-box;
}
.quick_wrap .quick ul li .icon {
  flex-shrink: 0;
}
.quick_wrap .quick ul li a em {
  position: static;
  box-sizing: border-box;
  width: 100%;
  height: auto;
  max-height: 0;
  margin: 0;
  padding: 0 6px;
  overflow: hidden;
  transform: none;
  text-align: center;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  letter-spacing: normal;
  transition: max-height .3s, margin-top .3s, opacity .3s;
}
.quick_wrap .quick ul li:hover a em,
.quick_wrap .quick ul li:focus-within a em {
  max-height: 12em;
  padding-bottom: 3px;
  margin-top: 10px;
  opacity: 1;
  visibility: visible;
}
@media screen and (min-width: 768px) and (max-width: 1024px) {
  .quick_wrap .quick ul li a em { padding: 0 3px; }
  .quick_wrap .quick ul li:hover a em,
  .quick_wrap .quick ul li:focus-within a em { margin-top: 5px; }
}

/* Addresses and navigation share equal columns beside the contact block. */
#footer .inner {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "call address nav" "call address links" "call address ." "call family copyright";
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px 40px;
  padding-left: 0;
}
#footer .inner > :not(.foot_logo) {
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
}
#footer .f_nav,
#footer .f_nav.fn2 {
  position: static;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  width: auto;
  text-align: left;
}
#footer .f_nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
  align-self: start;
}
#footer .f_nav.fn2 { grid-area: links; align-self: start; }
#footer .f_nav li,
#footer .f_nav li:nth-child(4) { margin: 0; min-width: 0; }
#footer .call_box { grid-area: call; position: static; }
#footer .call_box a {
  box-sizing: border-box;
  width: 100%;
  height: auto;
  min-height: 40px;
  padding: 9px 30px 9px 12px;
  line-height: 1.5;
  white-space: normal;
}
#footer .address { grid-area: address; }
#footer .family {
  grid-area: family;
  position: relative;
  align-self: end;
  box-sizing: border-box;
  width: 100%;
  max-width: 320px;
  height: auto;
}
#footer .family em,
#footer .family em.on {
  line-height: 1.5;
  padding: 8px 32px 8px 12px;
  background-position: center right 12px;
}
#footer .family ul { z-index: 2; }
#footer .family ul li { padding: 4px 12px; }
#footer .copyright { grid-area: copyright; position: static; align-self: end; }
#footer .copyright .icon { margin-top: 0; }
@media screen and (min-width: 768px) and (max-width: 1024px) {
  #footer .inner {
    grid-template-columns: 155px minmax(0, 1fr);
    grid-template-areas: "call address" "call nav" "call links" "call family" "call copyright";
    grid-template-rows: none;
    column-gap: 24px;
  }
  #footer .copyright { text-align: left; }
  #footer .copyright .icon { justify-content: flex-start; }
}
@media screen and (max-width: 767px) {
  #footer .inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "address" "nav" "links" "call" "family" "copyright";
    grid-template-rows: none;
    gap: 20px;
  }
  #footer .f_nav:not(.fn2) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #footer .call_box a { max-width: 220px; min-height: 30px; }
  #footer .family { max-width: 260px; }
}
@media screen and (min-width: 1025px) {
  /* Keep footer links clear of the fixed 100px rail, 80px from the edge. */
  #footer {
    padding-left: max(32px, calc((100% - 1260px) / 2));
    padding-right: 204px;
  }
  #footer .inner { box-sizing: border-box; max-width: 100%; }
}

@media screen and (min-width: 1025px) and (max-width: 1259px) {
  #wrap { min-width: 0; }
}
