/* Website Footer1, selected by its Blocksy content block and native Gutenberg group. */
#footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) {
  --footer-navy: #101e3e;
  --footer-panel: #162851;
  --footer-white: #fff;
  --footer-muted: #d8e2f6;
  --footer-line: #394969;
  --footer-gutter: 12px;
  --footer-gap: 1.5rem;
  --footer-padding: 1rem;
  background: var(--footer-navy);
  color: var(--footer-muted);
}

#footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) > .ct-container {
  width: calc(100% - 2 * var(--footer-gutter));
  max-width: 1440px;
  margin-inline: auto;
  padding-block: clamp(24px, 3.2vw, 44px);
}

#footer .bpmc-footer-content {
  margin: 0;
  color: var(--footer-muted);
  line-height: 1.7;
  overflow-wrap: anywhere;
}

#footer .bpmc-footer-content :is(h2, h3) {
  margin: 0;
  color: var(--footer-white);
  line-height: 1.3;
}

#footer .bpmc-footer-content > .bpmc-footer-actions {
  display: grid;
  grid-template-areas: "title" "intro" "buttons";
  gap: .55rem 1.5rem;
  margin: 0;
  padding: var(--footer-padding);
  border: 1px solid #526890;
  border-radius: 8px;
  background: var(--footer-panel);
}

#footer .bpmc-footer-actions h2 {
  grid-area: title;
  padding-inline-start: .7rem;
  border-inline-start: 3px solid #f4030c;
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

#footer .bpmc-footer-actions p {
  grid-area: intro;
  margin: 0;
  max-width: 56ch;
}

#footer .bpmc-footer-actions .wp-block-buttons {
  grid-area: buttons;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .7rem;
  margin: .65rem 0 0;
}

#footer .bpmc-footer-actions .wp-block-button { margin: 0; }

#footer .bpmc-footer-actions .wp-block-button > a.wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 56px;
  height: 100%;
  padding: .4rem .75rem;
  border: 2px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

#footer .bpmc-footer-actions .wp-block-button > a[href^="https://line.me/"] {
  background: #077b3b;
  color: #fff;
}

#footer .bpmc-footer-actions .wp-block-button > a[href^="https://line.me/"]:hover {
  background: #066531;
  color: #fff;
}

#footer .bpmc-footer-actions a[href^="https://line.me/"]::before {
  content: "";
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: url("./bpmc-line-contact-mark.svg") center / contain no-repeat;
}

#footer .bpmc-footer-actions .wp-block-button > a.wp-block-button__link[href^="tel:"] {
  border: 0;
  background: #edf3ff;
  color: #162851;
}

#footer .bpmc-footer-actions .wp-block-button > a.wp-block-button__link[href^="tel:"]:is(:hover, :active) {
  background: #e0eaff;
  color: #162851;
}

@supports (mask-image: url("")) {
  #footer .bpmc-footer-actions a[href^="tel:"]::before {
    content: "";
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.8%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpath%20d%3D%22M22%2016.9v3a2%202%200%200%201-2.2%202%2019.8%2019.8%200%200%201-8.6-3.1%2019.5%2019.5%200%200%201-6-6%2019.8%2019.8%200%200%201-3.1-8.7A2%202%200%200%201%204.1%202h3a2%202%200%200%201%202%201.7%2012.8%2012.8%200%200%200%20.7%202.8%202%202%200%200%201-.5%202.1L8%209.9a16%2016%200%200%200%206%206l1.3-1.3a2%202%200%200%201%202.1-.5%2012.8%2012.8%200%200%200%202.8.7A2%202%200%200%201%2022%2016.9z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  }
}

#footer .bpmc-footer-content > .wp-block-separator {
  width: 100%;
  max-width: none;
  margin: var(--footer-gap) 0;
  border: 0;
  border-top: 1px solid var(--footer-line);
  background: none;
  opacity: 1;
}

#footer .bpmc-footer-content > .wp-block-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--footer-gap);
  margin: 0;
}

#footer .bpmc-footer-content .wp-block-column { min-width: 0; }
#footer .bpmc-footer-content .wp-block-column h3 { font-size: 1.1rem; }
#footer .bpmc-footer-content .wp-block-column :is(p, ul) { margin: .65rem 0 0; }
#footer .bpmc-footer-content .wp-block-column ul { list-style: none; padding: 0; }
#footer .bpmc-footer-content .wp-block-column li + li { margin-top: .25rem; }
#footer .bpmc-footer-content a:not(.wp-block-button__link) {
  color: #edf4ff;
  text-decoration: underline;
  text-underline-offset: .18em;
}
#footer .bpmc-footer-content a:not(.wp-block-button__link):hover { color: #b8d5ff; }
#footer .bpmc-footer-content a:focus-visible { outline: 2px solid #9bceff; outline-offset: 3px; }
#footer .bpmc-footer-content > p:last-child { margin: 0; font-size: .875rem; }

@media (320px < width <= 375px) {
  #footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) { --footer-gutter: 16px; }
}
@media (375px < width <= 425px) {
  #footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) { --footer-gutter: 20px; }
}
@media (width >= 426px) {
  #footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) {
    --footer-gutter: 24px;
    --footer-gap: 2rem;
    --footer-padding: 1.25rem;
  }
  #footer .bpmc-footer-actions .wp-block-buttons { grid-template-columns: repeat(auto-fit, minmax(min(100%, 175px), 1fr)); }
}
@media (width <= 768px) {
  #footer .bpmc-footer-content .wp-block-column + .wp-block-column {
    padding-top: 1rem;
    border-top: 1px solid var(--footer-line);
  }
  #footer .bpmc-footer-content .wp-block-column li a {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
  }
}
@media (width >= 769px) {
  #footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) { --footer-gutter: 32px; }
  #footer .bpmc-footer-content > .wp-block-columns { grid-template-columns: minmax(0, 1.2fr) minmax(0, .92fr) minmax(0, .9fr) minmax(0, 1.15fr); column-gap: clamp(14px, 2vw, 32px); }
}
@media (width >= 1025px) {
  #footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) {
    --footer-gutter: 48px;
    --footer-gap: 2.5rem;
    --footer-padding: 1.75rem;
  }
  #footer .bpmc-footer-content > .bpmc-footer-actions {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title buttons" "intro buttons";
    align-items: center;
  }
  #footer .bpmc-footer-actions .wp-block-buttons {
    grid-template-columns: repeat(2, minmax(175px, 1fr));
    margin: 0;
  }
}
@media (width > 1440px) {
  #footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) {
    --footer-gutter: 24px;
    --footer-padding: 2rem;
  }
}


/* Keep the contact icons in the button layout instead of Blocksy's effect layer. */
#footer .bpmc-footer-actions .wp-block-button > .wp-block-button__link:is([href^="tel:"], [href^="https://line.me/"])::before {
  display: block;
  position: static;
  inset: auto;
  z-index: auto;
  opacity: 1;
  visibility: visible;
  transform: none;
  filter: none;
  transition: none;
  pointer-events: none;
}

/* Website Footer1 information hierarchy and compact legal row. */
#footer [data-row]:has([data-hook-id="2890"] .bpmc-footer-content) > .ct-container {
  padding-block: clamp(24px, 2.6vw, 38px) 12px;
}
#footer .bpmc-footer-content .wp-block-column h3 {
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
}
#footer .bpmc-footer-content .wp-block-column p { line-height: 1.6; }
#footer .bpmc-footer-content .wp-block-column li a { text-decoration-color: #7285a6; }
#footer .bpmc-footer-content > .wp-block-separator { margin: 16px 0 8px; }
#footer .bpmc-footer-content > p:last-child {
  text-align: center;
  font-size: .83rem;
  line-height: 1.55;
  color: var(--footer-muted);
}
@media (426px <= width <= 768px) {
  #footer .bpmc-footer-content > .wp-block-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  #footer .bpmc-footer-content .wp-block-column + .wp-block-column { padding: 0; border: 0; }
}
@media (max-width: 425px) {
  #footer .bpmc-footer-content > .wp-block-columns { gap: 14px; }
  #footer .bpmc-footer-content .wp-block-column + .wp-block-column { padding-top: 12px; }
}

#footer .bpmc-footer-content .wp-block-column:has(.bpmc-footer-facebook) { container-type: inline-size; }
#footer .bpmc-footer-facebook { margin-top: .8rem; }
#footer .bpmc-facebook-viewport {
  --facebook-scale: .86;
  --facebook-offset: 86px;
  position: relative;
  width: 258px;
  max-width: 100%;
  height: 219px;
  overflow: hidden;
  border-radius: 6px;
}
#footer .bpmc-facebook-viewport iframe {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  max-width: none;
  border: 0;
  transform-origin: top left;
  transform: scale(var(--facebook-scale)) translateY(calc(-1 * var(--facebook-offset)));
}
#footer .bpmc-footer-facebook a { display: inline-block; margin: .2rem 0 0; font-size: .86rem; }
@media (min-width: 769px) {
  #footer .bpmc-footer-content > .wp-block-columns { grid-template-columns: minmax(0, 1.16fr) minmax(0, .78fr) minmax(0, 1fr) minmax(230px, 1fr); }
}
@media (426px <= width <= 590px) {
  #footer .bpmc-footer-content > .wp-block-columns { grid-template-columns: minmax(0, 1fr) minmax(210px, 1.1fr); }
}

#footer .bpmc-footer-content .bpmc-footer-logo {
  box-sizing: border-box;
  width: min(100%, 204px);
  margin: 0 0 12px;
  padding: 7px 10px;
  background: #fff;
  border-radius: 6px;
}
#footer .bpmc-footer-logo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 338 / 89;
}
