.contact-direct > a {
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  justify-content: stretch;
}

.contact-direct .contact-label,
.contact-direct .line-contact-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.contact-direct .contact-label img,
.contact-direct .line-contact-label img {
  width: 18px;
  height: 18px;
}

.line-dialog-icon {
  width: 34px;
  height: 34px;
}

.line-dialog {
  width: min(430px, calc(100vw - 40px));
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card, 24px);
  color: var(--navy);
  background: transparent;
  box-shadow: 0 30px 80px rgb(14 43 76 / .24);
}

.line-dialog::backdrop {
  background: rgb(8 25 45 / .55);
  backdrop-filter: blur(6px);
}

.line-dialog-panel {
  position: relative;
  display: grid;
  justify-items: center;
  padding: 40px;
  border: 1px solid rgb(36 97 173 / .16);
  border-radius: inherit;
  background: #fff;
  text-align: center;
}

.line-dialog-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--blue-deep);
  background: #fff;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  place-items: center;
}

.line-dialog-icon {
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
}

.line-dialog h2 {
  margin: 0;
  color: var(--blue-deep);
  font-size: 25px;
  line-height: 1.35;
}

.line-dialog p {
  max-width: 20em;
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.line-dialog-qr {
  width: 220px;
  height: 220px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small, 16px);
  background: #fff;
  object-fit: contain;
}

.line-dialog-link {
  margin-top: 22px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.line-dialog small {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.line-floating { display: none; }

@media (max-width: 980px) {
  .has-js .line-floating {
    position: fixed;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 18;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 16px 9px 12px;
    border: 1px solid rgb(36 97 173 / .2);
    border-radius: var(--pill, 999px);
    color: var(--blue-deep);
    background: rgb(255 255 255 / .96);
    box-shadow: 0 12px 32px rgb(14 43 76 / .18);
    font-size: 14px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: opacity 220ms ease, transform 280ms cubic-bezier(.22, 1, .36, 1);
  }

  .has-js .line-floating img {
    width: 26px;
    height: 26px;
  }

  .has-js .line-floating.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  body.nav-open .line-floating { display: none; }
}

@media (max-width: 480px) {
  .contact-direct > a {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .contact-direct .contact-label,
  .contact-direct .line-contact-label {
    justify-self: center;
    white-space: nowrap;
  }

  .line-dialog-panel { padding: 36px 24px 28px; }
}

@container (max-width: 380px) {
  .contact-direct > a {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .contact-direct .contact-label,
  .contact-direct .line-contact-label {
    justify-self: center;
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .has-js .line-floating { transition: none; }
}
