/* mobile-order A4 1 枚パンフ (Phase 5 続: 2026-05-28) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", sans-serif;
  background: #ececec;
  color: #1a1a1a;
  padding: 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* 画面表示用ツールバー (印刷時は消える) */
.toolbar {
  max-width: 210mm;
  margin: 0 auto 1rem;
  padding: 0.75rem 1rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}
.toolbar__hint { color: #555; font-size: 0.85rem; flex: 1; min-width: 200px; }
.toolbar__btn {
  padding: 0.6rem 1.2rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.toolbar__btn:hover { background: #1d4ed8; }
.toolbar__link { color: #2563eb; text-decoration: none; font-size: 0.85rem; }
.toolbar__link:hover { text-decoration: underline; }

/* A4 sheet */
.sheet {
  width: 210mm;
  min-height: 297mm;
  padding: 14mm;
  margin: 0 auto;
  background: #fff;
  color: #1a1a1a;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  gap: 6mm;
}

/* ヘッダー */
.sheet__head {
  border-bottom: 3px solid #2563eb;
  padding-bottom: 5mm;
}
.brand { display: flex; align-items: center; gap: 4mm; }
.brand__logo { font-size: 12mm; line-height: 1; }
.brand__name { font-size: 7mm; font-weight: 800; letter-spacing: -0.5px; }
.brand__tagline { font-size: 3.2mm; color: #555; margin-top: 0.5mm; }
.hero-line {
  font-size: 7mm;
  margin-top: 3mm;
  color: #b45309;
  letter-spacing: -0.3px;
}

/* H2 共通 */
.sheet__h2 {
  font-size: 4.5mm;
  margin-bottom: 2.5mm;
  padding-left: 2.5mm;
  border-left: 3mm solid #2563eb;
  color: #1a1a1a;
}

/* お悩み 3 列 */
.pain-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 3mm; }
.pain-item {
  padding: 4mm;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 3mm;
  text-align: center;
}
.pain-item__icon { font-size: 8mm; margin-bottom: 1.5mm; }
.pain-item__title { font-size: 3.8mm; font-weight: 700; color: #991b1b; margin-bottom: 1mm; }
.pain-item__desc { font-size: 2.8mm; color: #555; line-height: 1.4; }

/* 解決 3 行 */
.solution-row { display: flex; flex-direction: column; gap: 2.5mm; }
.sol {
  padding: 3.5mm 4mm;
  background: #ecfdf5;
  border-left: 4mm solid #065f46;
  border-radius: 0 3mm 3mm 0;
  font-size: 3.5mm;
  color: #065f46;
}
.sol strong { color: #b45309; }

/* 特長 2 列 */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2mm 4mm;
  list-style: none;
  padding-left: 1mm;
}
.features-grid li {
  font-size: 3.4mm;
  padding: 1mm 0;
  color: #333;
}
.features-grid li strong { color: #1a1a1a; }

/* 料金表 */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 3.5mm;
}
.pricing-table th, .pricing-table td {
  padding: 2.5mm 2.5mm;
  text-align: left;
  border-bottom: 1px solid #eee;
}
.pricing-table th {
  background: #f5f5f7;
  color: #555;
  font-size: 3mm;
  font-weight: 700;
}
.pricing-table td small { color: #888; font-size: 2.5mm; }
.pricing-table__featured {
  background: #fffbeb;
  font-weight: 600;
}

/* CTA */
.sheet__cta { margin-top: auto; }
.cta-box {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  padding: 5mm 6mm;
  border-radius: 4mm;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 4mm;
}
.cta-box__text strong { font-size: 4mm; display: block; margin-bottom: 1mm; }
.cta-box__text div { font-size: 3mm; opacity: 0.95; }
.cta-box__url {
  font-family: "SF Mono", Menlo, monospace;
  font-size: 3.2mm;
  background: rgba(255, 255, 255, 0.15);
  padding: 2.5mm 3.5mm;
  border-radius: 2mm;
  white-space: nowrap;
}

/* フッター */
.sheet__foot {
  margin-top: 5mm;
  padding-top: 4mm;
  border-top: 1px solid #ddd;
  display: grid;
  grid-template-columns: 1fr 1fr;
  font-size: 2.8mm;
  color: #555;
  line-height: 1.6;
}
.sheet__foot strong { color: #1a1a1a; }

/* 印刷モード */
@media print {
  body { padding: 0; background: #fff; }
  .no-print { display: none !important; }
  .sheet {
    width: 100%;
    min-height: auto;
    margin: 0;
    box-shadow: none;
    padding: 12mm;
  }
  @page { size: A4 portrait; margin: 0; }
}

/* モバイル画面で見るときの調整 (印刷向けではないが閲覧可能に) */
@media (max-width: 700px) {
  body { padding: 0.5rem; }
  .sheet {
    width: 100%;
    min-height: auto;
    padding: 6mm;
  }
  .brand__name { font-size: 5.5mm; }
  .hero-line { font-size: 5.5mm; }
  .pain-row { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .cta-box { flex-direction: column; align-items: stretch; }
  .cta-box__url { text-align: center; font-size: 2.8mm; }
  .sheet__foot { grid-template-columns: 1fr; gap: 2mm; }
}

/* システム構成図 */
.sheet__system { margin-bottom: 2.5mm; }
.sysmap { width: 100%; height: auto; display: block; margin-top: 1.5mm; }
