/* ==== Contact page (scoped) ==== */
:root{
  --c-border:#c8c8c8;
  --c-muted:#666;
  --c-bg:#fafafa;
  --c-card:#fff;
}

/* レイアウト & タイポ */
.contact{
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  font-family: inherit;         /* 本文と統一 */
  font-size: 0.97rem;           /* 本文より少し小さめ */
  line-height: 1.85;
}

.contact__title{
  font-family: "Sawarabi Gothic", system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
  font-size: clamp(20px, 2.4vw, 28px);
  margin: 4px 0 12px;
}

.contact__lead{
  background: var(--c-bg);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.contact__lead p{ margin: 0 0 8px; line-height: 1.8; }
.contact__lead p:last-child{ margin-bottom: 0; }

/* 常に縦並び（連絡先→地図） */
.contact__grid{
  display: grid;
  grid-template-columns: 1fr !important; /* #contact の干渉対策 */
  gap: 20px;
  align-items: start;
}

/* 情報カード */
.contact__info{
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* 定義リスト（各行1項目） */
.contact__dl{ display: grid; margin: 0; }
.contact__row{
  display: grid;
  grid-template-columns: 7.5em 1fr; /* emでフォント差に強い */
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--c-border);
  align-items: start;
}
.contact__row:last-child{ border-bottom: none; }
.contact__row dt{
  color: var(--c-muted);
  margin: 0;
  padding-top: 2px;                  /* 視覚的センタリング微調整 */
  letter-spacing: .02em;
}
.contact__row dd{
  margin: 0;
  line-height: 1.85;
  font-variant-numeric: tabular-nums;/* TELなどの桁そろえ */
}

/* グローバル(#contact)からの干渉を打ち消し */
#contact .contact__dl{ display: grid !important; }
#contact .contact__row dt,
#contact .contact__row dd{
  width: auto !important;
  margin-bottom: 0 !important;
}

/* リンク */
.contact a{ color: #004b9a; text-decoration: underline; }
.contact a:hover{ text-decoration: none; }

/* アクションボタン */
.contact__actions{ display:flex; flex-wrap:wrap; gap: 10px; margin-top: 12px; }
.btn{
  display:inline-block;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--c-border);
  background:#111;
  color:#fff;
  text-decoration:none;
  font-size: 1em;   /* 親の0.97remに追随 */
  line-height:1;
}
.btn:hover{ opacity:.9; }
.btn--light{ background:#fff; color:#111; }

/* 地図ブロック */
.contact__map{
  margin-top: 4px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}
.contact__map img{
  display:block;
  width:100%;
  height:auto;
  border-radius: 8px;
}
.contact__map figcaption{
  color: var(--c-muted);
  font-size: .9em;
  margin-top: 6px;
}

/* 小画面 */
@media (max-width: 520px){
  .btn{ width: 100%; text-align: center; }
}
