/**
 * Tabelio Manager アプリの ManagerColors / ManagerLayout に準拠した公開ページ用スタイル。
 * @see lib/shared/theme/manager_theme.dart
 */
:root {
  --primary: #f47b25;
  --primary-hover: #e06d1c;
  --primary-pressed: #cf6218;
  --bg: #f8f9fa;
  --surface: #ffffff;
  --text: #1f2937;
  --text-secondary: #6b7280;
  --text-tertiary: #9ca3af;
  --divider: #f3f4f6;
  --radius-card: 16px;
  --radius-button: 12px;
  --page-pad: 24px;
  --card-pad: 28px 24px;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.05);
  --max-width-content: 400px;
  --max-width-wide: 560px;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

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

body {
  margin: 0;
  min-height: 100dvh;
  font-family:
    "Plus Jakarta Sans",
    "Noto Sans JP",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
}

.page {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--page-pad);
}

.page--top {
  justify-content: flex-start;
  padding-top: 48px;
}

.brand-bar {
  width: 100%;
  max-width: var(--max-width-wide);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-bar--narrow {
  max-width: var(--max-width-content);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary) 0%, #ff9a4d 100%);
  box-shadow: var(--shadow-card);
  flex-shrink: 0;
}

.brand-text {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand-text span {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 12px;
  display: block;
  margin-top: 2px;
  letter-spacing: 0;
}

.card {
  width: 100%;
  max-width: var(--max-width-content);
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
}

.card--wide {
  max-width: var(--max-width-wide);
}

/** 1 ページ 1 見出し: ラベル + メインタイトルを同一 h1 にまとめる */
.page-title {
  margin: 0 0 16px;
  padding: 0;
  font: inherit;
  font-weight: inherit;
}

.page-title__eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
}

.page-title__main {
  display: block;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.lead {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.lead:last-of-type {
  margin-bottom: 0;
}

.steps {
  margin: 20px 0 0;
  padding: 0 0 0 1.2em;
  color: var(--text-secondary);
  font-size: 14px;
}

.steps li {
  margin-bottom: 8px;
}

.steps li:last-child {
  margin-bottom: 0;
}

.note {
  margin-top: 20px;
  padding: 14px 16px;
  background: #f9fafb;
  border: 1px solid var(--divider);
  border-radius: var(--radius-button);
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 14px 20px;
  border-radius: var(--radius-button);
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.05s ease;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-hover);
}

.btn--primary:active {
  background: var(--primary-pressed);
  transform: scale(0.98);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/** 補足テキスト（リンクなし） */
.text-hint {
  margin-top: 12px;
  font-size: 12px;
  text-align: center;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.link-back {
  margin-top: 20px;
  font-size: 13px;
}

.link-back a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}

.link-back a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.link-back a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* サポート一覧 */
.support-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--divider);
}

.support-list li {
  border-bottom: 1px solid var(--divider);
}

.support-list a {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 15px;
  border-radius: 8px;
  margin: 0 -4px;
  padding-left: 4px;
  padding-right: 4px;
  transition: color 0.12s ease;
}

.support-list a:hover {
  color: var(--primary);
}

.support-list a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.support-list a .support-list__body {
  flex: 1;
  min-width: 0;
}

.support-list a .support-list__body span {
  display: block;
  margin-top: 6px;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.support-list__chevron {
  color: var(--text-tertiary);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.2;
  flex-shrink: 0;
}
