/* =============================================
   VentroX — Legal Pages Shared Styles
   terms / service-terms / member-term / privacy / law
   ============================================= */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Background animations */
@keyframes meshDrift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(60px, -40px) scale(1.1); }
  66%       { transform: translate(-30px, 50px) scale(0.95); }
}
@keyframes meshDrift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-50px, 60px) scale(0.92); }
  66%       { transform: translate(40px, -30px) scale(1.08); }
}
@keyframes meshDrift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(30px, 40px) scale(1.05); }
}
@keyframes meshDrift4 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%       { transform: translate(-40px, -50px) scale(0.95); }
}

/* Base */
html, body {
  width: 100%;
  min-height: 100%;
  background: #08080f;
  font-family: "Noto Sans JP", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #ffffff;
}

/* Background mesh blobs */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  mix-blend-mode: screen;
}
.bg-mesh__blob--1 {
  width: 700px;
  height: 700px;
  top: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(99, 60, 180, 0.5) 0%, transparent 70%);
  animation: meshDrift1 22s ease-in-out infinite;
}
.bg-mesh__blob--2 {
  width: 600px;
  height: 600px;
  top: 50px;
  right: -180px;
  background: radial-gradient(circle, rgba(20, 100, 200, 0.45) 0%, transparent 70%);
  animation: meshDrift2 26s ease-in-out infinite;
}
.bg-mesh__blob--3 {
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: 30%;
  background: radial-gradient(circle, rgba(180, 40, 120, 0.35) 0%, transparent 70%);
  animation: meshDrift3 18s ease-in-out infinite;
}
.bg-mesh__blob--4 {
  width: 400px;
  height: 400px;
  top: 40%;
  right: 20%;
  background: radial-gradient(circle, rgba(40, 160, 140, 0.3) 0%, transparent 70%);
  animation: meshDrift4 30s ease-in-out infinite;
}

/* Noise overlay */
.bg-noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  opacity: 0.04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Page layout */
.page-wrap {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px 60px;
}

.page-title {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}

.page-updated {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 48px;
}

/* Legal sections */
.legal-section {
  margin-bottom: 40px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.legal-section p,
.legal-section li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  margin-bottom: 12px;
}

.legal-section ul {
  padding-left: 20px;
}

.legal-section ol {
  list-style: none;
  padding-left: 0;
  counter-reset: legal-ol;
  margin-top: 8px;
}

.legal-section ol > li {
  counter-increment: legal-ol;
  padding-left: 2.5em;
  position: relative;
}

.legal-section ol > li::before {
  content: counter(legal-ol) ".";
  position: absolute;
  left: 0;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

/* =============================================
   law.html — 特定商取引法テーブル
   ============================================= */
.law-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.law-table th,
.law-table td {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.9;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  vertical-align: middle;
  text-align: left;
}

.law-table th {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
  width: 35%;
}

/* テーブル用ラッパー（レイアウト調整用・PCでは見た目の変化なし） */
.law-table-wrap {
  width: 100%;
}

/* =============================================
   member-term.html — 会員種別テーブル
   ============================================= */
.member-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  font-size: 13px;
}

.member-table th,
.member-table td {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.7;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  vertical-align: middle;
}

.member-table th {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.05);
}

.member-table td:first-child {
  text-align: left;
}

/* =============================================
   スマートフォン — 法令ページの可読性
   ============================================= */
@media (max-width: 767px) {
  .page-wrap {
    padding: 92px 16px 48px;
  }

  .page-title {
    font-size: 24px;
    line-height: 1.35;
    letter-spacing: 0.01em;
  }

  .page-updated {
    margin-bottom: 28px;
  }

  .legal-section {
    margin-bottom: 32px;
  }

  .legal-section h2 {
    font-size: 16px;
    margin-bottom: 12px;
    padding-bottom: 8px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 13px;
    line-height: 1.85;
  }

  /*
   * law-table（SP）: 横スクロールでもカードでもなく、
   * 枠なしの「ラベル＋本文」リスト（仕様書・設定画面のようなタイポグラフィ）
   */
  .law-table-wrap {
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
  }

  .law-table {
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    border-collapse: collapse;
  }

  .law-table tbody {
    display: block;
  }

  .law-table tr {
    display: block;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .law-table tr:first-child {
    padding-top: 0;
  }

  .law-table tr:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .law-table th,
  .law-table td {
    display: block;
    width: 100%;
    border: none;
    padding: 0;
    vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .law-table th {
    width: auto;
    min-width: 0;
    margin-bottom: 8px;
    background: transparent;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.03em;
    color: rgba(255, 255, 255, 0.48);
  }

  .law-table td {
    min-width: 0;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.88);
  }
}

/* =============================================
   404.html — エラーページ（PC）
   ============================================= */
@media (min-width: 768px) {
  .error-wrap {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 160px 48px 96px 48px;
  }

  .error-hero {
    max-width: 640px;
    text-align: center;
    margin: 0 auto 0 auto;
  }

  .error-code {
    display: inline-block;
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #a26bff 0%, #0e6fff 55%, #37d4b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 24px 0;
  }

  .error-title {
    font-size: 32px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.4;
    letter-spacing: 0.02em;
    margin: 0 0 16px 0;
  }

  .error-desc {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.9;
    margin: 0 0 8px 0;
  }

  .error-desc:last-of-type {
    margin: 0 0 40px 0;
  }

  .error-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .error-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 48px 18px 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 0;
    overflow: hidden;
    box-sizing: border-box;
    isolation: isolate;
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
  }

  .error-btn i {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.3s ease;
  }

  .error-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #a26bff 0%, #0e6fff 55%, #37d4b8 100%);
    box-shadow: 0 12px 32px -12px rgba(99, 102, 241, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  }

  .error-btn--primary::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(135deg, #37d4b8 0%, #0e6fff 55%, #a26bff 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
  }

  .error-btn--primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow: 0 20px 48px -12px rgba(99, 102, 241, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  }

  .error-btn--primary:hover::before {
    opacity: 1;
  }

  .error-btn--primary:hover i {
    transform: translateX(-6px);
  }
}

/* =============================================
   404.html — エラーページ（SP）
   ============================================= */
@media (max-width: 767px) {
  .error-wrap {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 16px 72px 16px;
  }

  .error-hero {
    width: 100%;
    max-width: 480px;
    text-align: center;
    margin: 0 auto 0 auto;
  }

  .error-code {
    display: inline-block;
    font-size: 96px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, #a26bff 0%, #0e6fff 55%, #37d4b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin: 0 0 16px 0;
  }

  .error-title {
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.45;
    letter-spacing: 0.01em;
    margin: 0 0 12px 0;
  }

  .error-desc {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.85;
    margin: 0 0 8px 0;
  }

  .error-desc:last-of-type {
    margin: 0 0 32px 0;
  }

  .error-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
    max-width: 280px;
    margin: 0 auto 0 auto;
  }

  .error-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .error-btn i {
    font-size: 15px;
    line-height: 1;
  }

  .error-btn--primary {
    color: #ffffff;
    background: linear-gradient(135deg, #a26bff 0%, #0e6fff 55%, #37d4b8 100%);
    box-shadow: 0 10px 24px -10px rgba(99, 102, 241, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  }
}
