* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Segoe UI", Roboto, sans-serif;
  color: #1d1d1f;
  background: #fbfbfd;
  line-height: 1.7;
}
header {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  color: #fff;
  padding: 60px 24px;
  text-align: center;
}
header h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
header p { font-size: 18px; color: #c8d6e5; max-width: 600px; margin: 0 auto; }
nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e0e0e0;
  padding: 12px 24px;
  text-align: right;
  position: sticky;
  top: 0;
  z-index: 10;
}
nav a { color: #0066cc; text-decoration: none; font-size: 14px; margin-left: 16px; }
nav a:hover { text-decoration: underline; }
main { max-width: 800px; margin: 0 auto; padding: 48px 24px; }
section { margin-bottom: 48px; }
section h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid #0f3460;
  color: #0f3460;
}
ul { padding-left: 24px; margin-top: 8px; }
li { margin-bottom: 6px; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 16px;
}
.feature-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 20px;
}
.feature-card h3 { font-size: 16px; margin-bottom: 8px; color: #0f3460; }
.feature-card p { font-size: 14px; color: #555; }
/* 機能カード内のスクリーンショット・サムネイル（クリックで原寸を開く） */
.feature-card .shot {
  display: block;
  margin-top: 12px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #f5f5f7;
  overflow: hidden;
}
.feature-card .shot img {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
  transition: transform 0.2s ease;
}
.feature-card .shot:hover { border-color: #0066cc; }
.feature-card .shot:hover img { transform: scale(1.04); }

/* スクリーンショット・ビューア (shots.html) */
main.wide { max-width: 1100px; }
.viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.viewer-head .btn { margin-top: 0; margin-right: 0; }
.counter { font-size: 14px; color: #888; white-space: nowrap; }
.viewer-title {
  font-size: 22px;
  font-weight: 600;
  color: #0f3460;
  margin-bottom: 16px;
}
.viewer-stage {
  background: #f5f5f7;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 16px;
  text-align: center;
}
.viewer-stage img {
  max-width: 100%;
  max-height: 72vh;
  height: auto;
  border-radius: 6px;
}
.viewer-nav {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}
.viewer-nav .btn { margin-top: 0; margin-right: 0; }
button.btn {
  font: inherit;
  cursor: pointer;
  border: 1px solid #0066cc;
}
.viewer-hint {
  text-align: center;
  font-size: 13px;
  color: #888;
  margin-top: 16px;
}
.viewer-desc {
  max-width: 800px;
  margin: 20px auto 0;
  font-size: 14px;
  color: #555;
}
@media (max-width: 520px) {
  .viewer-head { flex-direction: column; align-items: flex-start; gap: 8px; }
}
.btn {
  display: inline-block;
  background: #0066cc;
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  margin-top: 8px;
  margin-right: 8px;
}
.btn:hover { background: #0055aa; }
.btn-secondary {
  background: transparent;
  color: #0066cc;
  border: 1px solid #0066cc;
}
.btn-secondary:hover { background: #f0f4ff; }
footer {
  text-align: center;
  padding: 32px 24px;
  color: #888;
  font-size: 13px;
  border-top: 1px solid #e8e8e8;
}
footer a { color: #666; }
.license-note { font-size: 14px; color: #666; margin-top: 8px; }
.markdown-body h1 { font-size: 24px; font-weight: 600; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 2px solid #0f3460; color: #0f3460; }
.markdown-body h2 { font-size: 20px; font-weight: 600; margin-top: 32px; margin-bottom: 12px; color: #1d1d1f; }
.markdown-body ul { padding-left: 24px; margin-top: 8px; }
.markdown-body li { margin-bottom: 6px; }
.markdown-body h3 { font-size: 17px; font-weight: 600; margin-top: 24px; margin-bottom: 10px; color: #0f3460; }
.markdown-body p { margin-top: 10px; }
.markdown-body hr { border: 0; border-top: 1px solid #e8e8e8; margin: 32px 0 16px; }
.markdown-body code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: #f5f5f7; padding: 2px 5px; border-radius: 4px; }
.markdown-body table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
.markdown-body th, .markdown-body td { text-align: left; padding: 10px 14px; border-bottom: 1px solid #e8e8e8; vertical-align: top; }
.markdown-body td:first-child { width: 30%; color: #0f3460; font-weight: 600; background: #f5f8fc; }
.markdown-body thead { display: none; }

/* aiMenu2 */
header .appicon { width: 96px; height: 96px; margin-bottom: 16px; }
.steps { padding-left: 24px; margin-top: 8px; }
.steps li { margin-bottom: 10px; }
.note { font-size: 14px; color: #666; margin-top: 8px; }
.callout {
  background: #fff8e6;
  border: 1px solid #f0d58a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 12px;
  font-size: 14px;
}
table.macros { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 14px; }
table.macros th, table.macros td { text-align: left; padding: 8px 12px; border-bottom: 1px solid #e8e8e8; vertical-align: top; }
table.macros th { color: #0f3460; }
table.macros code, p code, li code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; background: #f5f5f7; padding: 2px 5px; border-radius: 4px; white-space: nowrap; }
kbd { font-family: inherit; font-size: 13px; background: #f5f5f7; border: 1px solid #ccc; border-bottom-width: 2px; border-radius: 4px; padding: 0 5px; }
dl.faq dt { font-weight: 600; margin-top: 18px; color: #0f3460; }
dl.faq dd { margin: 4px 0 0 0; }
main p + p, main ul + p, main table + p, main p + ul { margin-top: 12px; }
section h3 { font-size: 18px; color: #0f3460; margin: 28px 0 8px; }
.callout + p { margin-top: 12px; }
/* 見出しの下の説明文を、広い画面では1行に収める（狭い画面では折り返す） */
header p { max-width: 800px; }

/* マニュアル（manual.html） */
.toc { background: #fff; border: 1px solid #e8e8e8; border-radius: 12px; padding: 16px 24px; }
.toc ol { padding-left: 20px; margin: 0; }
.toc ol ol { margin-top: 4px; }
.toc li { margin-bottom: 4px; }
.toc a { color: #0066cc; text-decoration: none; }
figure.shot { margin: 16px 0 20px; text-align: center; }
figure.shot img { max-width: 100%; height: auto; border: 1px solid #ddd; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
figure.shot.small img { max-width: 420px; }
figure.shot figcaption { font-size: 13px; color: #777; margin-top: 6px; }
.manual section h3 { margin-top: 32px; }
.manual dl dt { font-weight: 600; margin-top: 12px; }
.manual dl dd { margin: 2px 0 0 0; }
.icon-label { font-weight: 600; color: #0f3460; }

@media print {
  nav, footer, .no-print { display: none !important; }
  header { padding: 32px 24px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff; font-size: 12.5px; }
  main { padding: 16px 0; max-width: none; }
  section { margin-bottom: 24px; }
  .manual > section { break-before: page; }
  .manual > section.toc-section { break-before: auto; }
  figure.shot { break-inside: avoid; }
  figure.shot img { box-shadow: none; max-height: 330px; width: auto; }
  h2, h3 { break-after: avoid; }
  a { color: #1d1d1f; text-decoration: none; }
  .callout { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page { size: A4; margin: 16mm 16mm 18mm; }
