/* 運営者情報・プライバシーポリシー・お問い合わせなど、ツール以外のページ共通の見た目 */
:root {
  color-scheme: dark;
  --bg: #07070E;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-solid: #11111C;
  --border: rgba(255, 255, 255, 0.09);
  --text: #ECEBF5;
  --muted: #9A98AE;
  --purple: #A36BFF;
  --accent-text: #C9B3FF;
  --headline: linear-gradient(90deg, #A36BFF 0%, #C98BD8 45%, #E8A27C 100%);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  font-family: "Zen Kaku Gothic New", system-ui, "Hiragino Sans", "Yu Gothic UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(139, 92, 246, 0.18), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: var(--accent-text); }
a:hover { color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--purple); outline-offset: 3px; }

/* 上部ナビ（ツールのページと同じ形） */
.topbar {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 7, 14, 0.7); border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.05rem; color: var(--text); text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(135deg, #A36BFF, #6D3FE0); box-shadow: 0 0 18px rgba(163, 107, 255, 0.45);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand em { font-style: normal; background: var(--headline); -webkit-background-clip: text; background-clip: text; color: transparent; }
.back-link { font-size: 0.9rem; font-weight: 700; text-decoration: none; }

/* 本文 */
.doc { max-width: 780px; margin: 0 auto; padding: 48px 24px 64px; }
.doc h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.1rem); font-weight: 900; line-height: 1.3; }
.doc .lead { margin: 0 0 32px; color: var(--muted); }
.doc h2 {
  margin: 40px 0 12px; padding-left: 12px; border-left: 4px solid var(--purple);
  font-size: 1.2rem; font-weight: 900; line-height: 1.4;
}
.doc h3 { margin: 24px 0 8px; font-size: 1.02rem; }
.doc p, .doc li { color: #D9D7E6; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li + li { margin-top: 4px; }
.doc .note { font-size: 0.9rem; color: var(--muted); }

.table-wrap { overflow-x: auto; margin: 12px 0; border: 1px solid var(--border); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
.doc th, .doc td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.doc th { background: rgba(139, 92, 246, 0.12); font-weight: 700; white-space: nowrap; }
.doc tr:last-child td { border-bottom: 0; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 22px; }

/* お問い合わせフォーム */
.form { display: grid; gap: 18px; }
/* 見出しと「任意・必須」の札を1行に並べ、入力欄は次の行に全幅で置く */
.form label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-weight: 700; font-size: 0.95rem; }
.form .optional, .form .required { font-size: 0.75rem; font-weight: 700; margin-left: 6px; padding: 1px 8px; border-radius: 999px; }
.form .required { color: #1A1206; background: #F0C160; }
.form .optional { color: var(--muted); border: 1px solid var(--border); }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
  width: 100%; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--text);
  background-color: rgba(0, 0, 0, 0.35); border: 1px solid var(--border); border-radius: 12px;
}
.form select { background-color: #11111C; }
.form textarea { min-height: 180px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(163, 107, 255, 0.25); }
.form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; }
.form .check input { width: 18px; height: 18px; margin-top: 5px; accent-color: var(--purple); }
.form .hidden-field { display: none; }
.submit {
  justify-self: start; min-height: 48px; padding: 10px 32px; border: 0; border-radius: 12px; cursor: pointer;
  font: inherit; font-weight: 900; color: #1A1206; background: linear-gradient(135deg, #F0C160, #D48F36);
  box-shadow: 0 6px 24px rgba(233, 170, 76, 0.35);
}
.submit:hover { filter: brightness(1.08); }

/* フッター（ツールのページと同じ内容） */
.site-footer { max-width: 1180px; margin: 0 auto; padding: 28px 24px 40px; border-top: 1px solid var(--border); font-size: 0.82rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 12px; }
.site-footer nav a { font-weight: 700; font-size: 0.9rem; }
.site-footer p { margin: 6px 0 0; }

/* テンプレート解説ページ */
.crumbs { margin: 0 0 20px; font-size: 0.85rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.kicker { margin: 0 0 6px; font-size: 0.85rem; font-weight: 700; color: var(--accent-text); letter-spacing: 0.04em; }
.cta {
  display: inline-flex; align-items: center; min-height: 48px; padding: 10px 28px; border-radius: 12px;
  font-weight: 900; color: #1A1206; text-decoration: none; background: linear-gradient(135deg, #F0C160, #D48F36);
  box-shadow: 0 6px 24px rgba(233, 170, 76, 0.35);
}
.cta:hover { color: #1A1206; filter: brightness(1.08); }
.cta-box { margin: 40px 0 0; padding: 22px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
.cta-box p { margin: 0 0 14px; }
.prompt-example { margin: 16px 0; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-solid); overflow: hidden; }
.prompt-example-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 12px 8px 16px; font-size: 0.85rem; font-weight: 700; color: var(--muted); border-bottom: 1px solid var(--border); }
.copy-example { flex: none; min-height: 36px; padding: 4px 16px; border: 1px solid rgba(163, 107, 255, 0.5); border-radius: 999px; cursor: pointer; font: inherit; font-weight: 700; color: var(--accent-text); background: rgba(163, 107, 255, 0.12); }
.copy-example:hover { background: rgba(163, 107, 255, 0.25); }
.prompt-example pre { margin: 0; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; font-family: "IBM Plex Mono", ui-monospace, Consolas, monospace; font-size: 0.86rem; line-height: 1.7; color: #E4DAFF; }
.prompt-example .note { margin: 0; padding: 0 16px 14px; }
.doc table.plain { min-width: 0; }
.tpl-grid { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tpl-grid li + li { margin-top: 0; }
.tpl-card { display: block; height: 100%; padding: 16px 18px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); text-decoration: none; color: var(--text); }
.tpl-card:hover { border-color: rgba(163, 107, 255, 0.6); color: var(--text); }
.tpl-card strong { display: block; margin-bottom: 4px; color: var(--accent-text); }
.tpl-card span { display: block; font-size: 0.85rem; line-height: 1.6; color: var(--muted); }
.link-list { display: flex; flex-wrap: wrap; gap: 6px 20px; list-style: none; padding: 0 !important; }
.link-list li + li { margin-top: 0; }

@media (max-width: 600px) {
  .topbar-inner { padding: 10px 16px; }
  .doc { padding: 32px 16px 48px; }
  .site-footer { padding: 24px 16px 32px; }
}
