/* Japanese top-page additions. Existing sections stay governed by style.css. */

#frame-home .home-primary-actions,
#frame-home .home-target-search,
#frame-home .home-merit-link,
#frame-home .home-about-section,
#frame-home .home-primary-actions *,
#frame-home .home-target-search *,
#frame-home .home-merit-link *,
#frame-home .home-about-section *,
footer.siteFooter .home-contact-intro {
  box-sizing: border-box;
}

/* Primary calls to action */
#frame-home .home-primary-actions {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 75%;
  max-width: 1440px;
  margin: 18px auto 28px;
}

#frame-home .home-primary-actions::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -18px;
  bottom: -28px;
  left: 50%;
  width: 100vw;
  background: #fff;
  transform: translateX(-50%);
}

#frame-home .home-primary-actions__item {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 8px 54px 8px 26px;
  border-radius: 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 4px 9px rgba(0, 0, 0, .12);
  transition: filter .2s ease, transform .2s ease;
}

#frame-home .home-primary-actions__item:hover,
#frame-home .home-primary-actions__item:focus {
  color: #fff;
  filter: brightness(.96);
  transform: translateY(-2px);
}

#frame-home .home-primary-actions__item--product {
  background: linear-gradient(100deg, #e51d2a, #ef2c34);
}

#frame-home .home-primary-actions__item--contact {
  background: linear-gradient(100deg, #064ca8, #0755b8);
}

#frame-home .home-primary-actions__icon {
  display: block;
  width: 34px;
  color: currentColor;
  font-size: 31px;
  line-height: 1;
  text-align: center;
}

/* Shared CSS chevrons */
#frame-home .home-primary-actions__item::after,
#frame-home .home-target-search__list a::after,
#frame-home .home-merit-link a::after,
#frame-home .home-about-link button::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

#frame-home .home-primary-actions__item::after {
  right: 28px;
}

/* Inspection-target search */
#frame-home .home-target-search {
  position: relative;
  z-index: 10;
  width: 75%;
  max-width: 1440px;
  margin: 0 auto 32px;
  padding: 30px 26px 44px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4f7fc, #f1f4f9);
}

#frame-home .home-target-search::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  bottom: -42px;
  left: 50%;
  width: 100vw;
  background: #fff;
  transform: translateX(-50%);
}

#frame-home .home-target-search__inner {
  width: 100%;
  margin: 0 auto;
}

#frame-home .home-target-search h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 0 !important;
  color: #171717;
  font-size: 27px !important;
  font-weight: 700 !important;
  letter-spacing: .18em;
}

#frame-home .home-target-search h2::before {
  content: "";
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  background: url("/cms/wp-content/themes/dac/assets/image/home/search-icon.png") center / contain no-repeat;
}

#frame-home .home-target-search__inner > p {
  margin: 10px 0 24px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .08em;
}

#frame-home .home-target-search__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

#frame-home .home-target-search__list li {
  margin: 0;
}

#frame-home .home-target-search__list a {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 16px;
  grid-template-rows: 105px auto;
  align-items: center;
  min-height: 174px;
  padding: 8px 14px 17px;
  border: 2px solid #d9dee5;
  border-radius: 11px;
  background: #fff;
  color: #171717;
  text-decoration: none !important;
  transition: box-shadow .2s ease, transform .2s ease;
}

#frame-home .home-target-search__list li:nth-child(1) a { border-color: #edb34e; }
#frame-home .home-target-search__list li:nth-child(2) a { border-color: #ec6e6e; }
#frame-home .home-target-search__list li:nth-child(3) a { border-color: #82a476; }
#frame-home .home-target-search__list li:nth-child(4) a { border-color: #6c99d0; }
#frame-home .home-target-search__list li:nth-child(5) a { border-color: #9b70b7; }

#frame-home .home-target-search__list a:hover,
#frame-home .home-target-search__list a:focus {
  color: #171717;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .1);
  transform: translateY(-3px);
}

#frame-home .home-target-search__list img {
  grid-column: 1 / -1;
  align-self: end;
  justify-self: center;
  width: 94px;
  height: 94px;
  object-fit: contain;
}

#frame-home .home-target-search__list a > span {
  justify-self: center;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}

#frame-home .home-target-search__list a::after {
  right: 14px;
  width: 8px;
  height: 8px;
  color: #e0443e;
}

/* Japanese What is DAC card */
#frame-home #about-us {
  position: relative;
  z-index: 10;
  background: #fff;
}

#frame-home #about-us .home-about-section {
  position: relative !important;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(240px, 28%) minmax(0, 1fr);
  align-items: center;
  column-gap: 42px;
  width: 96%;
  max-width: 1530px;
  min-height: 520px;
  margin: 0 auto 42px !important;
  padding: 50px 19% 50px 4% !important;
  overflow: visible;
  border-radius: 22px;
  background: linear-gradient(115deg, #f6f8fb 0%, #fff 58%, #f7f7f7 100%);
  box-shadow: 0 2px 14px rgba(10, 54, 96, .05);
}

#frame-home #about-us .home-about-media {
  width: 100%;
  text-align: center;
}

#frame-home #about-us .home-about-media img {
  display: block;
  width: min(100%, 320px);
  max-width: 100%;
  margin: 0 auto;
}

#frame-home #about-us .home-about-section .about-us {
  position: static;
  width: auto;
  height: auto;
  color: #222;
  text-align: left;
  background: transparent;
}

#frame-home #about-us .home-about-section .about-us h2 {
  display: inline-block;
  width: auto;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 0 0 7px;
  color: #0a4e99;
  font-family: 'Titillium Web', sans-serif;
  font-size: 54px !important;
  font-weight: 600 !important;
  line-height: 1.05;
  letter-spacing: .08em;
  text-align: left;
  text-shadow: none;
  opacity: 1;
  transform: none;
}

#frame-home #about-us .home-about-section .about-us h2::after {
  content: "";
  display: block;
  width: 100%;
  max-width: none;
  height: 2px;
  margin-top: 6px;
  background: #0a4e99;
}

#frame-home #about-us .home-about-section .about-us h3 {
  max-width: 760px;
  margin: 0 0 13px;
  color: #222;
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 21px;
  font-weight: 500;
  line-height: 1.8;
  letter-spacing: .08em;
  opacity: 1;
  transform: none;
}

#frame-home #about-us .home-about-section .home-about-copy {
  width: auto;
  margin: 0;
}

#frame-home #about-us .home-about-section .about-detail {
  max-width: 770px;
  margin: 0;
  color: #333;
  font-size: 15px;
  line-height: 1.9;
  letter-spacing: .05em;
  opacity: 1;
  transform: none;
}

#frame-home #about-us .home-about-section .home-about-buttons {
  display: flex;
  gap: 26px;
  width: 100%;
  margin: 30px 0 0;
}

#frame-home #about-us .home-about-section .home-about-link {
  display: block;
  width: min(46%, 380px);
  margin: 0;
  opacity: 1;
  transform: none;
}

#frame-home #about-us .home-about-section .home-about-link button {
  position: relative;
  width: 100%;
  min-height: 56px;
  margin: 0;
  padding: 7px 42px 7px 20px;
  border: 1px solid #737373;
  border-radius: 4px;
  background: #fff;
  color: #222;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .08em;
}

#frame-home #about-us .home-about-section .home-about-link button:hover {
  color: #0a4e99;
  transform: translateY(-2px);
}

#frame-home #about-us .home-about-section .home-about-link button::after {
  right: 18px;
  width: 7px;
  height: 7px;
  border-width: 1px;
}

#frame-home #about-us .home-about-section .hikamin_what {
  position: absolute;
  top: auto;
  right: calc((100vw - 100%) / -2);
  bottom: 24px;
  z-index: 1;
  width: 17%;
  max-width: 245px;
  opacity: 0;
  -webkit-transform: translate(15%, 70px) scale(.7);
  transform: translate(15%, 70px) scale(.7);
  transition-property: opacity, -webkit-transform;
  transition-property: opacity, transform;
  transition-property: opacity, transform, -webkit-transform;
  transition-duration: .5s;
  transition-timing-function: cubic-bezier(.68, -.52, .33, 1.65);
  transition-delay: .5s;
}

#frame-home #about-us .home-about-section.section--active .hikamin_what {
  opacity: 1;
  -webkit-transform: scale(1) translate(0);
  transform: scale(1) translate(0);
}

#frame-home #about-us .home-about-section .hikamin_what img {
  display: block;
  width: 100%;
}

/* Product CTA after merits */
#frame-home .home-merit-link {
  width: 42%;
  max-width: 530px;
  margin: 30px auto 0;
}

#frame-home .home-merit-link a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 7px 58px 7px 28px;
  border-radius: 7px;
  background: linear-gradient(100deg, #e51d2a, #ef2c34);
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
  text-decoration: none !important;
}

#frame-home .home-merit-link a::after {
  right: 27px;
  width: 9px;
  height: 9px;
}

/* The lead-in now belongs below the footer links. */
footer.siteFooter .home-contact-intro {
  position: relative;
  width: 75%;
  margin: 0 auto;
  padding: 4px 20px 2px;
  background: transparent !important;
  color: #171717;
  font-family: 'M PLUS 1p', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: .12em;
  text-align: center;
}

footer.siteFooter .home-contact-intro::before,
footer.siteFooter .home-contact-intro::after {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  margin: 0 18px 5px;
  background: #0b4e82;
}

footer.siteFooter .home-contact-intro::before { transform: rotate(55deg); }
footer.siteFooter .home-contact-intro::after { transform: rotate(-55deg); }

@media (max-width: 1200px) and (min-width: 769px) {
  #frame-home .home-primary-actions__item {
    grid-template-columns: 28px 1fr;
    min-height: 58px;
    padding-right: 46px;
    padding-left: 20px;
    font-size: 17px;
  }

  #frame-home .home-primary-actions__icon {
    width: 28px;
    font-size: 26px;
  }

  #frame-home .home-target-search {
    padding: 24px 18px 32px;
  }

  #frame-home .home-target-search__list {
    gap: 9px;
  }

  #frame-home .home-target-search__list a {
    min-height: 138px;
    grid-template-rows: 80px auto;
    padding: 7px 10px 14px;
  }

  #frame-home .home-target-search__list img {
    width: 72px;
    height: 72px;
  }

  #frame-home .home-target-search__list a > span {
    font-size: 14px;
  }

  #frame-home #about-us .home-about-section {
    grid-template-columns: minmax(180px, 28%) minmax(0, 1fr);
    column-gap: 26px;
    min-height: 390px;
  }

  #frame-home #about-us .home-about-section .about-us h2 {
    font-size: 38px !important;
  }

  #frame-home #about-us .home-about-section .about-us h3 {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  #frame-home .home-primary-actions {
    grid-template-columns: 1fr;
    gap: 5px;
    width: 85%;
    margin: 8px auto 12px;
  }

  #frame-home .home-primary-actions__item {
    grid-template-columns: 28px 1fr;
    gap: 8px;
    min-height: 48px;
    padding: 6px 38px 6px 15px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .04em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }

  #frame-home .home-primary-actions__icon {
    width: 28px;
    font-size: 23px;
  }

  #frame-home .home-primary-actions__item::after {
    right: 14px;
    width: 7px;
    height: 7px;
    border-width: 1px;
  }

  #frame-home .home-target-search {
    width: 85%;
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 8px;
  }

  #frame-home .home-target-search::before {
    bottom: -10px;
  }

  #frame-home .home-target-search h2 {
    gap: 7px;
    font-size: clamp(18px, 4.5vw, 20px) !important;
    letter-spacing: .13em;
  }

  #frame-home .home-target-search h2::before {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  #frame-home .home-target-search__inner > p {
    display: none;
  }

  #frame-home .home-target-search__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
  }

  #frame-home .home-target-search__list li:nth-child(5) {
    grid-column: 1 / -1;
  }

  #frame-home .home-target-search__list a {
    grid-template-columns: 43px 1fr;
    grid-template-rows: 1fr;
    min-height: 54px;
    padding: 3px 26px 3px 7px;
    border-width: 1px;
    border-radius: 6px;
  }

  #frame-home .home-target-search__list img {
    grid-column: auto;
    align-self: center;
    width: 40px;
    height: 40px;
  }

  #frame-home .home-target-search__list a > span {
    justify-self: start;
    font-size: clamp(13px, 3.35vw, 14px);
    font-weight: 600;
    letter-spacing: .03em;
  }

  #frame-home .home-target-search__list a::after {
    right: 10px;
    width: 6px;
    height: 6px;
    border-width: 1px;
  }

  #frame-home #about-us .home-about-section {
    display: block;
    width: calc(100% - 30px);
    min-height: 0;
    margin-bottom: 8px !important;
    padding: 32px 16px 30px !important;
    border-radius: 9px;
    overflow: visible;
  }

  #frame-home #about-us .home-about-media {
    display: none;
  }

  #frame-home #about-us .home-about-media img {
    position: absolute;
    top: auto;
    bottom: 12px;
    left: 4%;
    width: min(46%, 190px);
    max-width: none;
    margin: 0;
    transform: none;
  }

  #frame-home #about-us .home-about-section .about-us {
    position: relative;
    z-index: 2;
    width: 100%;
  }

  #frame-home #about-us .home-about-section .about-us h2 {
    margin-bottom: 8px;
    padding: 0;
    font-size: clamp(28px, 7vw, 34px) !important;
    line-height: 1.1;
    letter-spacing: .04em;
    white-space: nowrap;
  }

  #frame-home #about-us .home-about-section .about-us h2::after {
    width: 100%;
    height: 1px;
    margin-top: 2px;
  }

  #frame-home #about-us .home-about-section .about-us h3 {
    width: 100%;
    margin: 0;
    font-size: clamp(13px, 3.2vw, 14px);
    line-height: 1.7;
    letter-spacing: .02em;
  }

  #frame-home #about-us .home-about-section .about-detail {
    display: none;
  }

  #frame-home #about-us .home-about-section .home-about-buttons {
    flex-direction: column;
    gap: 7px;
    margin-top: 12px;
  }

  #frame-home #about-us .home-about-section .home-about-link {
    width: 100%;
  }

  #frame-home #about-us .home-about-section .home-about-link:first-child {
    width: 100%;
  }

  #frame-home #about-us .home-about-section .home-about-link:last-child {
    flex: none;
    width: 100%;
  }

  #frame-home #about-us .home-about-section .home-about-link button {
    min-height: 44px;
    padding: 5px 18px 5px 7px;
    border-radius: 4px;
    font-size: clamp(13px, 3vw, 14px);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: .02em;
    white-space: nowrap;
  }

  #frame-home #about-us .home-about-section .home-about-link button::after {
    right: 8px;
    width: 5px;
    height: 5px;
  }

  #frame-home #about-us .home-about-section .hikamin_what {
    position: absolute;
    right: calc((100vw - 100%) / -2 - 8px);
    bottom: -2px;
    z-index: 4;
    width: 20%;
    max-width: 88px;
    pointer-events: none;
  }

  #frame-home .home-merit-link {
    display: none;
  }

  footer.siteFooter .home-contact-intro {
    z-index: 3;
    width: calc(100% - 30px);
    min-height: 46px;
    padding: 10px 30px 12px;
    color: #142d3e;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.65;
    letter-spacing: .04em;
    text-shadow: 0 0 3px #fff, 0 0 7px #fff, 0 1px 0 #fff;
  }

  footer.siteFooter .home-contact-intro::before,
  footer.siteFooter .home-contact-intro::after {
    position: absolute;
    top: 50%;
    width: 10px;
    margin: 0;
  }

  footer.siteFooter .home-contact-intro::before { left: 8px; }
  footer.siteFooter .home-contact-intro::after { right: 8px; }
}

@media (max-width: 480px) {
  #frame-home:not(.frame-home_en):not(.frame-home_zh) #about-us .merit dl > div {
    position: relative;
    display: grid;
    grid-template-columns: 38% minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    min-height: 150px;
    padding: 18px 14px 14px;
  }

  #frame-home:not(.frame-home_en):not(.frame-home_zh) #about-us .merit dl > div dt {
    position: static;
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.45;
  }

  #frame-home:not(.frame-home_en):not(.frame-home_zh) #about-us .merit dl > div dt .number {
    top: -1.5rem;
    left: calc(50% - 1.5rem);
  }

  #frame-home:not(.frame-home_en):not(.frame-home_zh) #about-us .merit dl > div dt figure {
    width: 68%;
    margin: 0 auto .45rem;
  }

  #frame-home:not(.frame-home_en):not(.frame-home_zh) #about-us .merit dl > div dt figcaption {
    font-size: clamp(12px, 3.8vw, 15px);
    letter-spacing: 0;
    white-space: nowrap;
  }

  #frame-home:not(.frame-home_en):not(.frame-home_zh) #about-us .merit dl > div dd {
    margin: 0;
    font-size: 1rem;
    line-height: 1.75;
    letter-spacing: .08em;
    text-align: left;
  }

  footer.siteFooter .home-contact-intro {
    font-size: 13px;
  }

  footer.siteFooter .home-contact-intro + .footerWidget .contact .form {
    min-height: 96px;
    padding-right: 90px;
  }

  footer.siteFooter .home-contact-intro + .footerWidget .contact .form .hikamin_contact {
    right: 8px;
    bottom: 7px;
    width: 72px !important;
    margin: 0;
    padding: 0;
  }

  footer.siteFooter .home-contact-intro + .footerWidget .contact .form button {
    width: 100%;
  }
}

@media (max-width: 374px) {
  #frame-home .home-target-search__list a {
    grid-template-columns: 38px minmax(0, 1fr);
    min-height: 54px;
    padding-right: 19px;
  }

  #frame-home .home-target-search__list a > span {
    font-size: 13px;
  }

  #frame-home #about-us .home-about-section {
    min-height: 0;
    padding: 28px 12px 26px !important;
  }

  #frame-home #about-us .home-about-section .home-about-buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    margin-top: 10px;
  }

  #frame-home #about-us .home-about-section .home-about-link,
  #frame-home #about-us .home-about-section .home-about-link:first-child,
  #frame-home #about-us .home-about-section .home-about-link:last-child {
    width: 100%;
  }

  #frame-home #about-us .home-about-section .home-about-link button {
    min-height: 44px;
    font-size: 13px;
  }

  #frame-home #about-us .home-about-section .hikamin_what {
    right: calc((100vw - 100%) / -2 - 6px);
    width: 21%;
    max-width: 68px;
  }

  footer.siteFooter .home-contact-intro {
    width: 94%;
    font-size: 12px;
  }

  footer.siteFooter .home-contact-intro + .footerWidget .contact .form {
    padding-right: 76px;
  }

  footer.siteFooter .home-contact-intro + .footerWidget .contact .form .hikamin_contact {
    width: 60px !important;
  }

  footer.siteFooter .home-contact-intro + .footerWidget .contact .form button {
    font-size: 13px;
    white-space: nowrap;
  }
}
