/* ============================================
   今日なに食べる？ — 法務ページ共通スタイル
   Design tokens from app/src/theme/tokens.ts
   ============================================ */

:root {
  --color-primary: #B8A9C9;
  --color-primary-light: #E8E0F0;
  --color-secondary: #FFB0C1;
  --color-accent: #FFD700;
  --color-bg: #FFF8F0;
  --color-surface: #FFFFFF;
  --color-text: #4A4A4A;
  --color-text-secondary: #8B7D72;
}

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

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

body {
  font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.8;
  min-height: 100vh;
}

/* Layout */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--color-primary-light);
}

.site-header .app-name {
  font-size: 1.5rem;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-header .app-name a {
  color: inherit;
  text-decoration: none;
}

.site-header .app-name a:hover {
  opacity: 0.8;
}

/* Page title */
h1 {
  font-size: 1.75rem;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 8px;
}

.page-meta {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 32px;
}

/* Section headings */
h2 {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-weight: 700;
  margin-top: 32px;
  margin-bottom: 12px;
  padding-left: 12px;
  border-left: 4px solid var(--color-primary);
}

/* Body text */
p {
  margin-bottom: 16px;
}

/* Lists */
ul, ol {
  margin-bottom: 16px;
  padding-left: 1.5em;
}

li {
  margin-bottom: 6px;
}

/* Links */
a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--color-secondary);
}

/* Cards (landing page) */
.card-list {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.card-list a {
  display: block;
  background: var(--color-surface);
  border-radius: 16px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 4px 12px rgba(184, 169, 201, 0.08);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-list a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(184, 169, 201, 0.15);
}

.card-list .card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.card-list .card-desc {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

/* Contact section */
.contact-info {
  background: var(--color-primary-light);
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 32px;
}

.contact-info p {
  margin-bottom: 8px;
}

.contact-info p:last-child {
  margin-bottom: 0;
}

/* Footer */
.site-footer {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--color-primary-light);
  text-align: center;
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Responsive */
@media (max-width: 480px) {
  .container {
    padding: 24px 16px 60px;
  }

  h1 {
    font-size: 1.4rem;
  }

  h2 {
    font-size: 1.1rem;
  }
}
