/* Betonabi JP footer — VN structure/style, JP content */

:root {
  --bt-primary: #7c3aed;
  --bt-primary-dark: #4d0078;
  --bt-muted: #6b7280;
  --bt-line: #e5e7eb;
  --bt-sans: Arial, Helvetica, sans-serif;
  --bt-serif: "Merriweather", Georgia, "Times New Roman", serif;
}

.bt-footer {
  background: #fff;
  border-top: 1px solid var(--bt-line);
  color: #111;
  padding: 32px 0 58px;
  position: relative;
  width: 100%;
}

.bt-footer-container {
  box-sizing: border-box;
  margin-left: auto;
  margin-right: auto;
  max-width: 1232px;
  padding-left: 30px;
  padding-right: 30px;
  width: 100%;
}

.bt-footer-top {
  align-items: flex-start;
  border-bottom: 1px solid #f0f0f1;
  column-gap: clamp(28px, 4vw, 64px);
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  padding-bottom: 34px;
}

.bt-footer-brand {
  align-items: center;
  color: inherit;
  display: flex;
  gap: 14px;
  justify-content: flex-start;
  min-height: 48px;
  text-decoration: none;
}

.bt-footer-brand:hover,
.bt-footer-brand:focus-visible {
  color: inherit;
  text-decoration: none;
}

.bt-footer-logo-img {
  border-radius: 50%;
  display: block;
  flex-shrink: 0;
  height: 40px;
  object-fit: contain;
  width: 40px;
}

.bt-footer-logo-text {
  color: #111;
  font-family: var(--bt-sans);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.bt-footer-mark {
  align-items: center;
  background: #000;
  color: #fff;
  display: flex;
  font-family: var(--bt-serif);
  font-size: 24px;
  font-weight: 800;
  height: 40px;
  justify-content: center;
  line-height: 1;
  width: 40px;
}

.bt-footer-name {
  font-family: var(--bt-serif);
  font-size: 28px;
  line-height: 1;
}

.bt-footer-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
  max-width: 372px;
}

.bt-footer-gallery .bt-card-image {
  aspect-ratio: 57 / 76;
  background: #f3f4f6;
  border: 1px solid #f0f0f1;
  border-radius: 4px;
  display: block;
  height: auto;
  margin: 0;
  overflow: hidden;
  width: 100%;
}

.bt-footer-gallery .bt-card-image img {
  aspect-ratio: 57 / 76;
  display: block;
  filter: grayscale(1);
  height: 100%;
  object-fit: cover;
  transition: filter 0.25s ease;
  width: 100%;
}

.bt-footer-gallery .bt-card-image:hover img {
  filter: grayscale(0);
}

.bt-footer-menu {
  column-gap: clamp(22px, 4vw, 56px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-self: end;
  margin-top: 0;
  max-width: 100%;
  width: 100%;
}

.bt-footer-menu > div {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.bt-footer-menu a {
  color: #111;
  display: block;
  font-family: var(--bt-sans);
  font-size: 15px;
  line-height: 1.4;
  margin: 0;
  text-decoration: none;
}

.bt-footer-menu a:hover {
  color: var(--bt-primary);
}

.bt-footer-social {
  display: flex;
  gap: 20px;
  padding-top: 10px;
}

.bt-footer-social a {
  align-items: center;
  color: #111 !important;
  display: inline-flex;
  height: 24px;
  justify-content: center;
  overflow: visible;
  text-decoration: none;
  width: 24px;
}

.bt-footer-social svg {
  display: block;
  fill: currentColor;
  height: 20px;
  stroke: currentColor;
  width: 20px;
}

.bt-footer-social .bt-social-icon-facebook {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.bt-footer-social .bt-social-icon-x {
  fill: currentColor;
  height: 16px;
  width: 16px;
}

.bt-footer-social .bt-social-icon-threads {
  fill: currentColor;
}

.bt-footer-social a:hover {
  color: var(--bt-primary) !important;
}

.bt-footer-bottom {
  align-items: flex-start;
  column-gap: clamp(24px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.15fr) minmax(160px, 0.85fr);
  padding-top: 48px;
}

.bt-footer-newsletter {
  width: 100%;
}

.bt-footer-newsletter-title {
  font-family: var(--bt-sans);
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
}

.bt-footer-newsletter-subtitle {
  color: var(--bt-muted);
  font-family: var(--bt-sans);
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.bt-newsletter-form {
  align-items: stretch;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) 124px;
  max-width: 100%;
  width: 100%;
}

.bt-newsletter-form input[type="email"] {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  box-sizing: border-box;
  color: #111;
  font-family: var(--bt-sans);
  font-size: 14px;
  height: 44px;
  min-height: 44px;
  outline: none;
  padding: 0 12px;
  width: 100%;
}

.bt-newsletter-form .wpcf7-submit,
.bt-newsletter-form button[type="submit"] {
  background: var(--bt-primary-dark);
  border: 0;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  font-family: var(--bt-sans);
  font-size: 15px;
  font-weight: 500;
  height: 44px;
  line-height: 20px;
  margin: 0;
  min-height: 44px;
  padding: 0 16px;
  text-transform: none;
  transition: background 0.2s ease;
  width: 124px;
}

.bt-newsletter-form .wpcf7-submit:hover,
.bt-newsletter-form button[type="submit"]:hover {
  background: var(--bt-primary);
}

.bt-footer-contact {
  font-family: var(--bt-sans);
  font-size: 14px;
  line-height: 1.55;
  margin-top: 0;
}

.bt-footer-contact p,
.bt-footer-copy p {
  margin: 0 0 8px;
}

.bt-footer-copy {
  align-self: end;
  color: #333;
  font-family: var(--bt-sans);
  font-size: 14px;
  margin-top: 0;
  text-align: right;
}

.bt-back-to-top {
  align-items: center;
  background: var(--bt-primary-dark);
  border: 0;
  border-radius: 999px;
  bottom: 28px;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  height: 40px;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  right: 28px;
  transition: opacity 0.2s ease;
  width: 40px;
  z-index: 50;
}

.bt-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 849px) {
  .bt-footer-top,
  .bt-footer-bottom {
    display: block;
    grid-template-columns: 1fr;
  }

  .bt-footer-container {
    max-width: 590px;
    padding-left: 28px;
    padding-right: 28px;
  }

  .bt-footer-gallery {
    margin-top: 48px;
  }

  .bt-footer-menu {
    justify-self: stretch;
    margin-top: 52px;
  }

  .bt-footer-contact {
    margin-top: 46px;
  }

  .bt-footer-copy {
    margin-top: 42px;
    text-align: left;
  }

  .bt-footer-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 549px) {
  .bt-newsletter-form {
    grid-template-columns: 1fr;
  }

  .bt-newsletter-form .wpcf7-submit,
  .bt-newsletter-form button[type="submit"] {
    width: 100%;
  }

  .bt-footer-menu {
    grid-template-columns: 1fr 1fr;
  }

  .bt-footer-gallery {
    grid-template-columns: repeat(4, 52px);
  }

  .bt-footer-gallery .bt-card-image {
    height: 69px;
    max-width: 52px;
    width: 52px;
  }

  .bt-back-to-top {
    bottom: 18px;
    right: 18px;
  }
}
