/* ============================================
   TAISEN — 利用規約 / プライバシーポリシー / お問い合わせ 共通スタイル
   LP(lp.html)のトーンに合わせた軽量スタイル
   ============================================ */
:root {
  --navy-dark: #0a1628;
  --navy: #142d52;
  --accent-blue: #2563eb;
  --text-heading: #0a1628;
  --text-body: #33415c;
  --text-muted: #64748b;
  --border: rgba(10, 22, 40, 0.1);
  --surface: #f4f7fb;
  --white: #fff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif;
  color: var(--text-body);
  background: var(--surface);
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-blue); }

.legal-header {
  background: var(--navy-dark);
  padding: 18px 20px;
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-header img { height: 26px; }

.legal-header a {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.legal-header a:hover { color: #fff; }

.legal-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.legal-title {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text-heading);
  margin: 0 0 8px;
}

.legal-lead {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 32px;
}

.legal-card {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 24px rgba(10, 22, 40, 0.06);
}

.legal-card h2 {
  font-size: 18px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 40px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.legal-card h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }

.legal-card h3 {
  font-size: 15px;
  font-weight: 800;
  color: var(--text-heading);
  margin: 24px 0 8px;
}

.legal-card p { font-size: 14.5px; margin: 0 0 14px; }

.legal-card ol,
.legal-card ul { font-size: 14.5px; padding-left: 1.4em; margin: 0 0 14px; }

.legal-card li { margin-bottom: 6px; }

.legal-note {
  background: rgba(37, 99, 235, 0.06);
  border-left: 3px solid var(--accent-blue);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 13.5px;
  margin: 0 0 20px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin: 0 0 16px;
}

.legal-table th,
.legal-table td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  background: var(--surface);
  font-weight: 700;
  white-space: nowrap;
  width: 34%;
}

.legal-meta {
  font-size: 13px;
  color: var(--text-muted);
  text-align: right;
  margin-top: 32px;
}

.legal-footer {
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 28px 20px;
  text-align: center;
  font-size: 12.5px;
}

.legal-footer nav {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.legal-footer a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 700;
}

.legal-footer a:hover { color: #fff; }

/* ===== お問い合わせフォーム ===== */
.contact-form { margin-top: 8px; }

.contact-field { margin-bottom: 20px; }

.contact-field label {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 6px;
}

.contact-req {
  color: #dc2626;
  font-size: 12px;
  margin-left: 4px;
}

.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--text-body);
  background: var(--white);
}

.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.contact-field textarea { min-height: 160px; resize: vertical; }

.contact-hint { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }

.contact-submit {
  width: 100%;
  padding: 15px 24px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--navy-dark));
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contact-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(20, 45, 82, 0.28); }

.contact-submit:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

.contact-msg {
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 20px;
}

.contact-msg.is-error { background: rgba(220, 38, 38, 0.08); color: #b91c1c; }

.contact-done {
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.45);
  border-radius: 12px;
  padding: 28px;
  text-align: center;
}

.contact-done h2 {
  font-size: 19px;
  font-weight: 900;
  color: #0f766e;
  margin: 0 0 10px;
  border: none;
  padding: 0;
}

.contact-done p { font-size: 14px; margin: 0; }

.hidden { display: none !important; }

@media (max-width: 640px) {
  .legal-card { padding: 26px 20px; }
  .legal-title { font-size: 24px; }
  .legal-table th { width: auto; white-space: normal; }
  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table th,
  .legal-table td { display: block; width: 100%; }
  .legal-table th { border-bottom: none; }
}
