/* =====================================================
   MIINT — Legal Pages CSS
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; background: #f8f8f6; }
body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 300;
  color: #333;
  -webkit-font-smoothing: antialiased;
  background: #f8f8f6;
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

:root {
  --mint:       #CCF3EE;
  --mint-light: #9AE0D8;
  --mint-light2:#CDF3EE;
  --mint-blue:  #ACC2D8;
  --text-dark:  #1a1a1a;
  --text-mid:   #555555;
  --text-light: #999999;
  --border:     #e5e5e5;
  --white:      #ffffff;
  --header-h:   64px;
}

/* =====================================================
   HEADER
   ===================================================== */
.legal-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.legal-header-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.legal-logo img { height: 32px; width: auto; }
.legal-header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
}
.legal-header-nav a { transition: color 0.2s; }
.legal-header-nav a:hover { color: var(--mint); }
.legal-nav-cta {
  background: linear-gradient(90deg, var(--mint) 0%, var(--mint-blue) 100%);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 50px;
  font-size: 12px;
  letter-spacing: 0.08em;
  transition: opacity 0.2s !important;
}
.legal-nav-cta:hover { opacity: 0.85; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.legal-breadcrumb {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.legal-breadcrumb-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-light);
}
.legal-breadcrumb-inner a { color: var(--text-light); transition: color 0.2s; }
.legal-breadcrumb-inner a:hover { color: var(--mint); }
.bc-sep { opacity: 0.6; }

/* =====================================================
   MAIN
   ===================================================== */
.legal-main {
  padding: 60px 0 100px;
}
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Page Header ── */
.legal-page-header {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--mint-light2);
}
.legal-page-en {
  font-family: 'Cormorant Garamond', serif;
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.3em;
  color: var(--mint);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.legal-page-title {
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1.4;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.legal-updated {
  font-size: 12px;
  color: var(--text-light);
  letter-spacing: 0.08em;
}

/* ── Intro paragraph ── */
.legal-intro {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-mid);
  background: var(--white);
  border-left: 3px solid var(--mint);
  border-radius: 0 8px 8px 0;
  padding: 20px 24px;
  margin-bottom: 48px;
}

/* =====================================================
   ARTICLE (条文)
   ===================================================== */
.legal-article {
  margin-bottom: 44px;
}

/* 条番号 + タイトル */
.legal-article-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.article-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.2em;
  color: var(--mint);
  white-space: nowrap;
  padding: 3px 10px;
  border: 1px solid var(--mint-light);
  border-radius: 50px;
  background: var(--mint-light2);
  flex-shrink: 0;
}
.article-title-text {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-dark);
}

/* 条文テキスト */
.legal-article-body {
  font-size: 14px;
  font-weight: 300;
  line-height: 2.1;
  color: var(--text-mid);
}
.legal-article-body p {
  margin-bottom: 12px;
}

/* 番号付きリスト */
.legal-ol {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 0;
}
.legal-ol > li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 10px;
  font-size: 14px;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text-mid);
}
.legal-ol > li > .li-num {
  font-size: 12px;
  color: var(--mint);
  font-weight: 400;
  padding-top: 4px;
  text-align: right;
}
.legal-ol > li > .li-body { flex: 1; }

/* ネストリスト */
.legal-ol-nested {
  list-style: none;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-ol-nested > li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 4px 8px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text-mid);
  padding-left: 8px;
}
.legal-ol-nested .li-num {
  font-size: 11px;
  color: var(--text-light);
  padding-top: 3px;
  text-align: right;
}

/* =====================================================
   TOKUSHO TABLE
   ===================================================== */
.tokusho-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tokusho-table tr {
  border-bottom: 1px solid var(--border);
}
.tokusho-table tr:first-child {
  border-top: 1px solid var(--border);
}
.tokusho-table th {
  width: 200px;
  padding: 20px 20px 20px 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  letter-spacing: 0.04em;
  vertical-align: top;
  white-space: nowrap;
  text-align: left;
}
.tokusho-table th::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 13px;
  background: var(--mint);
  border-radius: 2px;
  margin-right: 10px;
  vertical-align: middle;
}
.tokusho-table td {
  padding: 20px 0 20px 20px;
  font-weight: 300;
  line-height: 2.0;
  color: var(--text-mid);
  vertical-align: top;
}
.tokusho-table td a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.legal-footer {
  background: transparent;
  padding: 0 40px 48px;
  text-align: center;
}
.legal-footer-rule {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0 0 48px;
}
.legal-footer-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.legal-footer-logo img { height: 34px; width: auto; }
.legal-footer-nav { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
.legal-footer-nav a { font-size: 12px; font-weight: 300; color: var(--text-mid); transition: color 0.2s; }
.legal-footer-nav a:hover { color: var(--mint); }
.legal-footer-nav .sep { font-size: 12px; color: #ccc; }
.legal-footer-contact {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-mid);
  letter-spacing: 0.1em;
  transition: color 0.2s;
}
.legal-footer-contact:hover { color: var(--mint); }
.legal-footer-copy { font-size: 11px; color: var(--text-light); letter-spacing: 0.06em; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 768px) {
  .legal-header-inner { padding: 0 20px; }
  .legal-header-nav a:not(.legal-nav-cta) { display: none; }
  .legal-breadcrumb-inner { padding: 10px 20px; }
  .legal-container { padding: 0 20px; }
  .legal-main { padding: 40px 0 80px; }
  .legal-page-title { font-size: 22px; }
  .legal-article-title { flex-direction: column; gap: 6px; }

  .tokusho-table, .tokusho-table tbody,
  .tokusho-table tr, .tokusho-table th, .tokusho-table td {
    display: block;
  }
  .tokusho-table th {
    width: 100%;
    padding: 20px 0 6px;
    border-bottom: none;
    white-space: normal;
  }
  .tokusho-table td { padding: 0 0 20px; }
  .tokusho-table tr:first-child { border-top: 1px solid var(--border); }

  .legal-footer { padding: 0 20px 40px; }
}
