/* emeditor-plugins の紹介ページ共通スタイル。外部フォント・解析タグは使わない */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fa;
  --fg: #1f2328;
  --muted: #59636e;
  --border: #d1d9e0;
  --accent: #c15f3c;      /* Claude のオレンジ */
  --accent-soft: #fbeee8;
  --link: #0969da;
  --radius: 12px;
  --max: 1080px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --bg-soft: #161b22;
    --fg: #e6edf3;
    --muted: #9198a1;
    --border: #30363d;
    --accent: #e27a52;
    --accent-soft: #2a1d17;
    --link: #4493f8;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: "Yu Gothic UI", "Hiragino Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.75;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
code { font-family: "Cascadia Mono", Consolas, monospace; font-size: 0.9em; background: var(--bg-soft); padding: 0.1em 0.35em; border-radius: 4px; }
pre { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 8px; padding: 1em 1.2em; overflow-x: auto; line-height: 1.5; font-size: 0.9em; }
pre code { background: none; padding: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 56px; }
.site-header .brand { font-weight: 700; color: var(--fg); }
.site-header nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.site-header nav a { color: var(--muted); }
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .site-header nav a:not(:last-child) { display: none; }   /* 狭い画面ではページ内リンクを隠し、GitHub だけ残す */
  .hero { padding-top: 36px; }
  th { white-space: normal; }
}

/* ヒーロー */
.hero { padding: 56px 0 32px; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: 13px; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 2px 12px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(28px, 4.5vw, 44px); line-height: 1.3; margin: 0 0 16px; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 760px; margin: 0 auto 28px; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: 999px; font-weight: 600; border: 1px solid var(--border); color: var(--fg); background: var(--bg); }
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.05); }

.shot { margin: 40px auto 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12); }
.caption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 12px; }

/* セクション */
section { padding: 56px 0; }
section + section { border-top: 1px solid var(--border); }
h2 { font-size: clamp(22px, 3vw, 30px); margin: 0 0 8px; line-height: 1.4; }
.section-lead { color: var(--muted); margin: 0 0 32px; }
h3 { font-size: 18px; margin: 0 0 6px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; }
.card .icon { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* 画像と説明を横に並べる */
.split { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }
/* グリッドの子は既定で中身の幅より縮まない。長いコードブロックがページ全体を横に押し広げるのを防ぐ */
.split > *, .grid > * { min-width: 0; }
pre { max-width: 100%; }
.split .figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10); background: var(--bg); }
.split .figure.small { max-width: 460px; justify-self: center; }

ul.check { list-style: none; padding: 0; margin: 0; }
ul.check li { padding-left: 1.6em; position: relative; margin: 0.35em 0; }
ul.check li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.chips span { border: 1px solid var(--border); border-radius: 999px; padding: 2px 12px; font-size: 14px; background: var(--bg); }

table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 10px 14px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); white-space: nowrap; }

ol.steps { padding-left: 1.4em; }
ol.steps li { margin: 0.6em 0; }

.note { border-left: 4px solid var(--accent); background: var(--accent-soft); padding: 12px 16px; border-radius: 0 8px 8px 0; font-size: 15px; }

/* プラグイン一覧（トップページ） */
.plugin { display: grid; grid-template-columns: 1fr; gap: 0; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.plugin .thumb { border-bottom: 1px solid var(--border); aspect-ratio: 1200 / 630; background: var(--bg); display: flex; align-items: center; justify-content: center; color: var(--muted); }
.plugin .thumb img { width: 100%; height: 100%; object-fit: cover; }
.plugin .body { padding: 20px 24px 24px; }
.plugin .body p { color: var(--muted); margin: 6px 0 14px; font-size: 15px; }
.plugin .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.plugin .tags span { font-size: 12px; border: 1px solid var(--border); border-radius: 999px; padding: 0 10px; color: var(--muted); }

/* フッター */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 13px; }
.site-footer p { margin: 4px 0; }
