/* ============================================================
   legal.css — Xwriter 法務ページ共有スタイル
   ============================================================ */

/* ---------- カスタムプロパティ ---------- */
:root {
  --navy:   #171951;
  --teal:   #20c3ac;
  --ink:    #23263a;
  --sub:    #6b7280;
  --bg:     #ffffff;
  --bg-sub: #f5f7fb;
  --border: #e6e9f2;
  --max-w:  760px;
}

/* ---------- リセット & ベース ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: "Noto Sans JP", sans-serif;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink);
  background: var(--bg);
}

a {
  color: var(--teal);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* ---------- ヘッダー ---------- */
.l-header {
  background: var(--navy);
  padding: 0 1.5rem;
  height: 56px;
  display: flex;
  align-items: center;
}

.l-header__inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
}

.l-header__logo {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  line-height: 1;
}
.l-header__logo:hover { text-decoration: none; opacity: 0.88; }

.l-header__logo-x    { color: var(--teal); }
.l-header__logo-rest { color: #ffffff; }

/* ---------- ページヒーロー ---------- */
.l-hero {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 1.5rem 2rem;
}

.l-hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.l-hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.l-hero h1 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  color: var(--navy);
  line-height: 1.35;
}

.l-hero__date {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--sub);
}

/* ---------- 本文コンテナ ---------- */
.l-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* ---------- セクション見出し ---------- */
.l-main h2 {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding-left: 0.75rem;
  margin-top: 2.5rem;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.l-main h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.l-main p {
  margin-bottom: 0.9rem;
}

.l-main ul, .l-main ol {
  padding-left: 1.5rem;
  margin-bottom: 0.9rem;
}

.l-main li { margin-bottom: 0.3rem; }

/* ---------- 特商法 dl テーブル ---------- */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.25rem;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.75;
}

.legal-table th {
  width: 36%;
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-sub);
  white-space: nowrap;
}

.legal-table td { color: var(--ink); }

.legal-table tr:first-child th,
.legal-table tr:first-child td {
  border-top: 1px solid var(--border);
}

@media (max-width: 520px) {
  .legal-table,
  .legal-table thead,
  .legal-table tbody,
  .legal-table th,
  .legal-table td,
  .legal-table tr {
    display: block;
  }
  .legal-table th {
    width: 100%;
    white-space: normal;
    background: var(--bg-sub);
    border-bottom: none;
    padding-bottom: 0.25rem;
  }
  .legal-table td {
    padding-top: 0.25rem;
    border-bottom: 1px solid var(--border);
  }
  .legal-table tr:first-child th { border-top: 1px solid var(--border); }
}

/* ---------- 条文ブロック ---------- */
.article {
  margin-top: 2rem;
}
.article + .article { margin-top: 2.25rem; }

.article__title {
  font-family: "Shippori Mincho", serif;
  font-size: clamp(1.0rem, 2.5vw, 1.15rem);
  font-weight: 700;
  color: var(--navy);
  border-left: 4px solid var(--teal);
  padding-left: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article p  { margin-bottom: 0.75rem; }
.article ol { padding-left: 1.6rem; margin-bottom: 0.75rem; }
.article ul { padding-left: 1.6rem; margin-bottom: 0.75rem; }
.article li { margin-bottom: 0.25rem; }

/* ---------- 注記ボックス ---------- */
.notice-box {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  color: #92400e;
  margin: 1.5rem 0;
}

/* ---------- フッター ---------- */
.l-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.8125rem;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
}

.l-footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.l-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-bottom: 1rem;
  list-style: none;
  padding: 0;
}

.l-footer__nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.15s;
}
.l-footer__nav a:hover { color: var(--teal); text-decoration: none; }

.l-footer__copy { line-height: 1.6; }
.l-footer__copy span { display: block; }
