/* お問い合わせページの電話・LINE・所在地カード */

.contact-grid {
  align-items: stretch;
  gap: 1.15rem;
  width: min(100%, 980px);
  margin: 0 auto;
}

.contact-panel {
  height: 100%;
  justify-content: flex-start;
  gap: 0.45rem;
  padding: 1.35rem 1.15rem 1.2rem;
  min-width: 0;
}

.contact-panel__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.contact-panel__label {
  min-height: 2.6em;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-panel__main {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-width: 0;
}

.contact-panel__phone {
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.3;
}

.contact-panel__phone a {
  color: inherit;
}

.contact-panel .line-id {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.3;
}

.contact-panel .btn-lg {
  min-width: 0;
  width: min(100%, 220px);
  margin-top: 0;
  padding: 0.7rem 1rem;
}

.contact-panel__note,
.contact-panel__foot {
  width: 100%;
  min-height: 5.25rem;
  margin-top: 0.15rem;
}

.contact-panel__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}

.contact-panel--place {
  justify-content: flex-start;
}

.contact-place__map {
  width: 100%;
  height: 156px;
  margin: 0;
  border: 1px solid var(--gray-200);
  border-radius: 4px;
  overflow: hidden;
  background: var(--gray-100);
}

.contact-place__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-place__address {
  margin-top: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.7;
  color: var(--navy);
}

.contact-place__route a {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.6;
  color: var(--navy);
  border-bottom: 1px solid var(--gold-pale);
}

.contact-place__route a:hover,
.contact-place__route a:focus-visible {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

@media (min-width: 840px) {
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 839px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    width: 100%;
  }

  .contact-panel {
    height: auto;
    padding: 1.25rem 1.05rem 1.15rem;
  }

  .contact-panel__main {
    flex: none;
    justify-content: flex-start;
  }

  .contact-panel__label,
  .contact-panel__note,
  .contact-panel__foot {
    min-height: 0;
  }

  .contact-panel .btn-lg {
    width: 100%;
    max-width: none;
  }

  .contact-place__map {
    height: 168px;
  }

  .contact-place__address,
  .contact-place__route,
  .contact-panel__note,
  .contact-panel__phone {
    max-width: 100%;
  }
}
