/* =========================
   初期設定
========================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Meiryo", sans-serif;
  color: #333;
  background: #f7f8fb;
  line-height: 1.9;
  word-break: break-word;
  overflow-wrap: break-word;
}

img,
table,
iframe {
  max-width: 100%;
}

/* =========================
   特商法ページ
========================= */
.legal-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 40px 16px 60px;
  overflow-x: hidden;
}

.legal-container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 28px;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.legal-title {
  margin: 0 0 32px;
  font-size: 32px;
  font-weight: 700;
  text-align: center;
  line-height: 1.4;
  color: #222;
}

/* =========================
   テーブル
========================= */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 15px;
  background: #fff;
}

.legal-table tr {
  border-bottom: 1px solid #e5e7ee;
}

.legal-table th {
  width: 30%;
  background: #f7f8fb;
  text-align: left;
  padding: 16px 14px;
  font-weight: 600;
  color: #333;
  vertical-align: top;
  border-right: 1px solid #e5e7ee;
  word-break: break-word;
  overflow-wrap: break-word;
}

.legal-table td {
  width: 70%;
  padding: 16px 14px;
  color: #444;
  line-height: 1.8;
  vertical-align: top;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* =========================
   リンク
========================= */
a {
  color: #4a6cf7;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: break-word;
}

a:hover {
  text-decoration: underline;
}

/* =========================
   フッター
========================= */
.footer {
  width: 100%;
  text-align: center;
  padding: 20px 10px 40px;
  font-size: 12px;
  color: #666;
  background: #fff;
  border-top: 1px solid #e5e7ee;
}

.footer-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-inner a {
  color: #666;
  text-decoration: none;
  margin: 0 5px;
}

.footer-inner a:hover {
  text-decoration: underline;
}

/* =========================
   スマホ対応
========================= */
@media (max-width: 767px) {
  .legal-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 24px 12px 40px;
    overflow-x: hidden;
  }

  .legal-container {
    width: 100%;
    max-width: 100%;
    padding: 24px 16px;
    border-radius: 12px;
  }

  .legal-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .legal-table {
    width: 100%;
    table-layout: auto;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .legal-table tr {
    margin-bottom: 20px;
    border-bottom: none;
    background: #fff;
    border: 1px solid #e5e7ee;
    border-radius: 10px;
    overflow: hidden;
  }

  .legal-table th {
    border-right: none;
    border-bottom: 1px solid #e5e7ee;
    background: #f7f8fb;
    font-size: 14px;
    padding: 14px 12px;
  }

  .legal-table td {
    font-size: 14px;
    padding: 14px 12px;
  }

  .footer-inner {
    flex-direction: column;
    gap: 8px;
  }

  .footer-inner span {
    display: none;
  }
}