html, body {
  margin: 0;
  padding: 0;
}

* {
  box-sizing: border-box;
}

.contact {
  margin: auto;
  padding-block: 80px 40px;
  max-width: 960px;
  text-align: center;
  background-color: var(--color-2);
}

.contact__title {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-h1);
  margin-bottom: 64px;
  position: relative;
  color: var(--color-4);
}

.contact__title::before,
.contact__title::after {
  content: "";
  flex: 1;
  height: 1px;
  background-color: var(--color-4);
  margin: 0 24px;
}
  
  .contact__desc {
    text-align: center;
    font-size: var(--font-size-h4);
    color: var(--color-4);
    margin-bottom: 32px;
    line-height: 1.6;
  }
  
  /* テーブルカード */
  .contact__table-container {
    background-color: var(--white);
    padding: 32px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto 80px;
  }
  
  /* テーブル本体 */
  .contact__table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--font-size-h4);
    text-align: left;
  }
  .contact__table th,
  .contact__table td {
    padding: 16px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--color-4);
    color: var(--color-4);
  }
  .contact__table th {
    width: 30%;
    font-weight: bold;
    background: transparent;
  }
  
  /* メールアドレス：2行表示 */
  .contact__email-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
  }
  .contact__email-label {
    width: 100px;
    font-weight: bold;
    white-space: nowrap;
  }
  .contact__email-link {
    color: var(--color-4);
    text-decoration: none;
    white-space: nowrap;
  }
  .contact__email-link:hover {
    text-decoration: underline;
  }
  
  /* 他リンク */
  .contact__table a {
    color: var(--color-4);
    text-decoration: none;
    font-weight: bold;
  }
  .contact__table a:hover {
    text-decoration: underline;
  }

  .footer {
    padding-inline-end: 20px;
    text-align: right;
  }


@media (max-width: 520px) {
  .contact__title {
    font-size: var(--font-size-h2);
    margin: 48px 0 12px;
  }
  .contact__desc {
    font-size: var(--font-size-h5);
    margin-bottom: 24px;
  }
  .contact__table-container {
    padding: 8px;              /* ここを24px→8pxに変更して余白を減らす */
    margin-bottom: 32px;       /* ここも少し短く */
    max-width: 100vw;          /* 画面幅いっぱいに */
    box-sizing: border-box;    /* パディング込みで幅制御 */
  }
  .contact__table {
    font-size: var(--font-size-h5);
    width: 100%;               /* 念のため幅指定 */
  }
  .contact__table th,
  .contact__table td {
    display: block;
    width: 100%;
    padding: 12px 0;
    border: none;
    box-sizing: border-box;
  }
  .contact__table tr:not(:last-child) td {
    border-bottom: 1px solid var(--color-4);
  }
  .contact__email-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .contact__email-label {
    margin-bottom: 4px;
    width: auto;
  }
  .contact {
    padding-left: 0 !important;
    padding-right: 0 !important;
    max-width: 100vw;
    box-sizing: border-box;
  }
}
  
.contact__email-grid {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    row-gap: 8px;
    align-items: center;
  }
  .contact__email-label {
    font-weight: bold;
  }
  .contact__email-link {
    color: var(--color-4);
    text-decoration: none;
  }
  .contact__email-link:hover {
    text-decoration: underline;
  }
  
