/*
 * さつまいも商會 法務・取引案内ページ
 * V2本番用CSS
 *
 * 本文・共通部品：Sawarabi Gothic
 * ヒーローのキャッチコピー・主見出しだけ：Zen Old Mincho
 */

:root {
  --legal-primary: #8a2f45;
  --legal-primary-dark: #6e1f2e;
  --legal-gold: #f9c85b;
  --legal-text: #3a1f16;
  --legal-muted: #6d574e;
  --legal-paper: #fffaf0;
  --legal-soft: #f8eff1;
  --legal-border: rgba(110, 31, 46, 0.16);
  --legal-shadow: 0 12px 32px rgba(74, 38, 22, 0.1);
}

body.legal-v2-body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  color: var(--legal-text);
  background: #fffdf9;
  font-family: "Sawarabi Gothic", sans-serif;
}

.legal-v2-page,
.legal-v2-page button,
.legal-v2-page input,
.legal-v2-page textarea,
.legal-v2-page select {
  font-family: "Sawarabi Gothic", sans-serif;
}

.legal-v2-page *,
.legal-v2-page *::before,
.legal-v2-page *::after {
  box-sizing: border-box;
}

.legal-v2-page h1,
.legal-v2-page h2,
.legal-v2-page h3,
.legal-v2-page p,
.legal-v2-page ul,
.legal-v2-page dl,
.legal-v2-page dd {
  margin-top: 0;
}

.legal-v2-inner {
  width: min(calc(100% - 36px), 1040px);
  margin: 0 auto;
}

.legal-v2-page section[id] {
  scroll-margin-top: calc(var(--site-header-height) + 24px);
}

/* Hero */
.legal-v2-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--legal-border);
  background:
    radial-gradient(
      circle at 88% 12%,
      rgba(249, 200, 91, 0.5),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(255, 250, 240, 0.99),
      rgba(244, 228, 232, 0.97)
    );
}

.legal-v2-hero::after {
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: rgba(138, 47, 69, 0.08);
  content: "";
  pointer-events: none;
}

.legal-v2-hero__inner {
  position: relative;
  z-index: 1;
  padding-top: clamp(72px, 10vw, 124px);
  padding-bottom: clamp(64px, 9vw, 108px);
}

.legal-v2-hero__eyebrow,
.legal-v2-hero h1 {
  font-family: "Zen Old Mincho", "Yu Mincho", "Hiragino Mincho ProN", serif;
}

.legal-v2-hero__eyebrow {
  margin-bottom: 12px;
  color: var(--legal-primary);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.08em;
}

.legal-v2-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--legal-primary-dark);
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: 0.02em;
}

.legal-v2-hero__lead {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--legal-text);
  font-size: clamp(1.03rem, 1.9vw, 1.18rem);
  line-height: 1.95;
}

/* Main content */
.legal-v2-content {
  padding: clamp(60px, 9vw, 104px) 0;
}

.legal-v2-intro {
  margin-bottom: 36px;
  padding: clamp(26px, 4vw, 42px);
  border: 1px solid var(--legal-border);
  border-left: 7px solid var(--legal-primary);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--legal-shadow);
}

.legal-v2-intro p {
  margin-bottom: 1rem;
  font-size: clamp(1.02rem, 1.7vw, 1.12rem);
  line-height: 1.95;
}

.legal-v2-intro p:last-child {
  margin-bottom: 0;
}

.legal-v2-toc {
  margin-bottom: 40px;
  padding: 24px;
  border: 1px solid var(--legal-border);
  border-radius: 18px;
  background: var(--legal-paper);
}

.legal-v2-toc h2 {
  margin-bottom: 16px;
  color: var(--legal-primary-dark);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.5;
}

.legal-v2-toc__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.legal-v2-toc a {
  display: flex;
  align-items: center;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--legal-border);
  border-radius: 12px;
  color: var(--legal-primary);
  background: #fff;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
  text-decoration: none;
}

.legal-v2-toc a:hover {
  color: #fff;
  background: var(--legal-primary);
}

.legal-v2-section {
  margin-bottom: 26px;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--legal-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--legal-shadow);
}

.legal-v2-section:last-child {
  margin-bottom: 0;
}

.legal-v2-section h2 {
  margin-bottom: 18px;
  color: var(--legal-primary-dark);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 800;
  line-height: 1.5;
}

.legal-v2-section h3 {
  margin-bottom: 12px;
  color: var(--legal-primary-dark);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.5;
}

.legal-v2-section p,
.legal-v2-section li,
.legal-v2-section dd {
  color: var(--legal-text);
  font-size: 1.02rem;
  line-height: 1.9;
}

.legal-v2-section p {
  margin-bottom: 1rem;
}

.legal-v2-section p:last-child {
  margin-bottom: 0;
}

.legal-v2-section ul {
  margin: 0 0 1rem;
  padding-left: 1.35em;
}

.legal-v2-section li {
  margin-bottom: 8px;
}

.legal-v2-section strong {
  color: var(--legal-primary-dark);
  font-weight: 800;
}

.legal-v2-data-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.legal-v2-data-list > div {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) minmax(0, 0.68fr);
  gap: 22px;
  padding: 20px 0;
  border-bottom: 1px solid var(--legal-border);
}

.legal-v2-data-list > div:first-child {
  padding-top: 0;
}

.legal-v2-data-list > div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.legal-v2-data-list dt {
  color: var(--legal-primary-dark);
  font-weight: 800;
  line-height: 1.7;
}

.legal-v2-data-list dd {
  margin: 0;
}

.legal-v2-note {
  margin-top: 12px;
  padding: 14px 16px;
  border-left: 4px solid var(--legal-gold);
  background: var(--legal-paper);
  color: var(--legal-muted);
  font-size: 0.96rem;
  line-height: 1.75;
}

.legal-v2-contact {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.75rem 1.2rem;
  border: 2px solid var(--legal-primary);
  border-radius: 999px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: var(--legal-primary);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: none;
}

.legal-v2-contact:hover,
.legal-v2-contact:focus-visible {
  color: #fff !important;
  background: var(--legal-primary-dark);
}

.legal-v2-page a:focus-visible {
  outline: 3px solid var(--legal-gold);
  outline-offset: 4px;
}

@media (max-width: 760px) {
  .legal-v2-toc__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal-v2-data-list > div {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 520px) {
  .legal-v2-inner {
    width: min(calc(100% - 28px), 1040px);
  }

  .legal-v2-hero__inner {
    padding-top: 54px;
    padding-bottom: 58px;
  }

  .legal-v2-hero h1 {
    font-size: clamp(2.15rem, 11.5vw, 3.35rem);
  }

  .legal-v2-toc__grid {
    grid-template-columns: 1fr;
  }

  .legal-v2-section,
  .legal-v2-intro {
    padding: 24px 20px;
  }

  .legal-v2-contact {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legal-v2-contact,
  .legal-v2-toc a {
    transition: none;
  }
}

/* Spam-safe email display */
.legal-v2-email-box {
  margin-top: 14px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid var(--legal-border);
  border-radius: 18px;
  background: #fff;
}

.legal-v2-email-box--compact {
  margin-top: 0;
  padding: 18px 20px;
  background: var(--legal-paper);
}

.legal-v2-email-address {
  margin-bottom: 12px !important;
  color: var(--legal-primary-dark) !important;
  font-size: clamp(1.16rem, 2.8vw, 1.58rem) !important;
  font-weight: 800;
  line-height: 1.45 !important;
  overflow-wrap: anywhere;
}

.legal-v2-email-note {
  margin-bottom: 0 !important;
  color: var(--legal-text) !important;
  font-size: 0.98rem !important;
  line-height: 1.8 !important;
}
