/* レッツ原価管理Go2 共通スタイル */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand: #006633;
  --brand-dark: #004d26;
  --brand-light: #e8f5ee;
  --accent: #00994d;
  --danger: #c0392b;
  --warning-bg: #fff8e1;
  --warning-border: #f9a825;
  --text: #2c2c2c;
  --text-muted: #666;
  --border: #d4e6da;
  --bg: #f4f7f5;
  --card-bg: #ffffff;
  --radius: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,.12);
  --font: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Meiryo", "Yu Gothic", sans-serif;
}

body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

/* ===== Header ===== */
.site-header {
  background: #006600;
  color: #fff;
  padding: 0 24px;
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 53px;
  gap: 16px;
}
.site-header .logo-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .03em;
  color: #fff;
  text-decoration: none;
}
.site-header .logo-text span {
  opacity: .75;
  font-weight: 400;
  font-size: 14px;
  margin-left: 8px;
}

/* ===== Nav breadcrumb ===== */
.breadcrumb {
  background: var(--brand-dark);
  padding: 6px 24px;
}
.breadcrumb-inner {
  max-width: 900px;
  margin: 0 auto;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}
.breadcrumb a { color: rgba(255,255,255,.9); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { margin: 0 6px; }

/* ===== Page layout ===== */
.page-wrap {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

/* ===== Page title ===== */
.page-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  padding: 16px 20px;
  background: var(--card-bg);
  border-left: 5px solid var(--brand);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 24px;
}
.page-title small {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ===== Card ===== */
.card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  margin-bottom: 20px;
}
.card + .card { margin-top: 0; }
.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand);
  border-bottom: 2px solid var(--brand-light);
  padding-bottom: 8px;
  margin-bottom: 16px;
}

/* ===== Info row ===== */
.info-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.info-row strong { color: var(--text); }
.badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: .05em;
}

/* ===== Quick links ===== */
.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.quick-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 7px 14px;
  border: 1.5px solid var(--brand);
  border-radius: 20px;
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  background: #fff;
  transition: background .15s, color .15s;
}
.quick-link:hover { background: var(--brand); color: #fff; }
.quick-link::before { content: "→"; font-size: 11px; }

/* ===== Alert boxes ===== */
.alert {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 16px;
  font-size: 14px;
}
.alert-warning {
  background: var(--warning-bg);
  border-left: 4px solid var(--warning-border);
}
.alert-danger {
  background: #fdecea;
  border-left: 4px solid var(--danger);
}
.alert-info {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
}
.alert strong { display: block; margin-bottom: 6px; font-size: 15px; }

/* ===== Checklist ===== */
.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.checklist li:last-child { border-bottom: none; }
.checklist li::before {
  content: "●";
  position: absolute;
  left: 6px;
  color: var(--brand);
  font-size: 10px;
  top: 12px;
}

/* ===== Steps ===== */
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li {
  counter-increment: step;
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  align-items: flex-start;
}
.steps li:last-child { border-bottom: none; }
.steps li::before {
  content: counter(step);
  min-width: 28px;
  height: 28px;
  background: var(--brand);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.steps li img {
  display: block;
  max-width: 100%;
  width: 460px;
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* ===== Confirm section ===== */
.confirm-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 28px 24px;
  margin-top: 24px;
  text-align: center;
}
.confirm-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 16px;
}
.confirm-check input[type="checkbox"] {
  width: 20px; height: 20px;
  accent-color: var(--brand);
  cursor: pointer;
}
.btn-download {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 14px 48px;
  border-radius: 6px;
  text-decoration: none;
  transition: background .15s, transform .1s;
  cursor: pointer;
  border: none;
}
.btn-download:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn-download:active { transform: translateY(0); }
.error-msg { color: var(--danger); font-size: 14px; min-height: 22px; margin-top: 8px; }

/* ===== FAQ ===== */
.faq-item { margin-bottom: 4px; }
.faq-q {
  background: var(--brand-light);
  border-left: 4px solid var(--brand);
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.faq-q .q-label {
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 3px;
  flex-shrink: 0;
  margin-top: 1px;
}
.faq-a {
  background: #fff;
  border: 1px solid var(--border);
  border-top: none;
  padding: 16px;
  font-size: 14px;
  border-radius: 0 0 var(--radius) var(--radius);
  margin-bottom: 16px;
}
.faq-a ol { padding-left: 20px; margin-top: 8px; }
.faq-a ol li { margin-bottom: 4px; }

/* ===== Download table ===== */
.dl-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dl-table th {
  background: var(--brand);
  color: #fff;
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
}
.dl-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.dl-table tr:last-child td { border-bottom: none; }
.dl-table tr:hover td { background: var(--brand-light); }
.dl-table a { color: var(--brand); text-decoration: none; font-weight: 600; }
.dl-table a:hover { text-decoration: underline; }
.dl-section-head td {
  background: #f0f0f0;
  font-weight: 700;
  color: var(--text);
  font-size: 13px;
  padding: 8px 12px;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--brand-dark);
  color: rgba(255,255,255,.65);
  text-align: center;
  padding: 16px;
  font-size: 12px;
  margin-top: 40px;
}

/* ===== Links ===== */
a { color: var(--brand); }
a:hover { color: var(--accent); }

/* ===== Responsive ===== */
@media (max-width: 640px) {
  .page-wrap { padding: 20px 16px 48px; }
  .page-title { font-size: 18px; }
  .quick-links { flex-direction: column; }
  .steps li img { width: 100%; }
  .dl-table { font-size: 13px; }
  .dl-table th:first-child, .dl-table td:first-child { display: none; }
}
