/* ============================================================
   マニュアル兼体験ページ専用スタイル（プラグインには含めない）
   テーマ変更は :root の変数を上書き
   ============================================================ */
:root {
  --bg: #fff6f0;
  --ink: #3d2531;
  --ink-soft: #8a6675;
  --accent: #e0245e;
  --card: #ffffff;
  --line: #f3dbe2;
  --code-bg: #fdf0f4;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 143, 171, 0.14) 0 240px, transparent 260px),
    radial-gradient(circle at 88% 30%, rgba(224, 36, 94, 0.08) 0 300px, transparent 320px),
    var(--bg);
  color: var(--ink);
  font-family: 'Zen Kaku Gothic New', sans-serif;
  line-height: 1.9;
}

h1, h2, h3, legend {
  font-family: 'Zen Maru Gothic', sans-serif;
}

.hero {
  padding: 88px 24px 56px;
  text-align: center;
}
.hero .badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  margin: 0 0 10px;
  letter-spacing: 0.02em;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
}

main {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 24px 140px;
}

/* 体験パネルと本文が重ならないよう、パネル分の余白を右に確保 */
@media (min-width: 761px) {
  .hero, main {
    padding-right: 320px;
  }
  main { max-width: 1240px; }
}

section.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 28px;
  box-shadow: 0 2px 14px rgba(224, 36, 94, 0.05);
}
section.card h2 {
  font-size: 20px;
  margin: 0 0 12px;
}
section.card h2 .num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  background: var(--accent);
  color: #fff;
  border-radius: 50%;
  font-size: 14px;
  vertical-align: -4px;
}
section.card h3 { font-size: 16px; margin: 20px 0 6px; }
section.card p { margin: 0 0 1em; }
section.card p:last-child { margin-bottom: 0; }
section.card ul, section.card ol { margin: 0 0 1em; padding-left: 1.4em; }

/* 設定項目テーブル */
.table-scroll { overflow-x: auto; }
table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.7;
}
table.spec th, table.spec td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.spec th {
  white-space: nowrap;
  background: var(--code-bg);
  font-family: 'Zen Maru Gothic', sans-serif;
}
table.spec td .choice {
  display: inline-block;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  margin: 1px 2px 1px 0;
  font-size: 12.5px;
}

/* コード表示 */
code {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 13px;
}
pre {
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  overflow-x: auto;
  font-size: 13px;
  line-height: 1.7;
}
pre code { background: none; border: none; padding: 0; }

/* ヒント枠 */
.tip {
  background: var(--code-bg);
  border-left: 4px solid var(--accent);
  border-radius: 0 12px 12px 0;
  padding: 12px 18px;
  font-size: 14px;
  margin: 1em 0;
}

footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 40px 24px 160px; /* 溜まったハートと被らないよう余白 */
}
footer a { color: var(--accent); }

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-bottom: 14px;
}
.footer-links a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px dotted var(--line);
  padding-bottom: 1px;
}
.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---- 言語切替ボタン ---- */
#lang-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 10001;
  font-family: 'Zen Maru Gothic', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(61, 37, 49, 0.12);
}
#lang-toggle::before { content: '🌐 '; }
#lang-toggle:hover { background: var(--code-bg); }

/* ---- 体験パネル ---- */
.panel {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 250px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 8px 32px rgba(61, 37, 49, 0.14);
  z-index: 10000;
  font-size: 13px;
  line-height: 1.6;
}
.panel h2 {
  font-size: 14px;
  margin: 0 0 10px;
  letter-spacing: 0.08em;
}
.panel fieldset {
  border: none;
  margin: 0 0 10px;
  padding: 0;
}
.panel legend {
  font-weight: 700;
  font-size: 12px;
  color: var(--ink-soft);
  padding: 0;
  margin-bottom: 2px;
}
.panel label {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-right: 10px;
  cursor: pointer;
}
.panel input[type='radio'] { accent-color: var(--accent); margin: 0; }
.panel input[type='text'] {
  width: 100%;
  font-family: inherit;
  font-size: 13px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-bottom: 4px;
  color: var(--ink);
  background: #fff;
}
.panel input[type='text']:focus {
  outline: 2px solid var(--accent);
  outline-offset: -1px;
  border-color: transparent;
}
.panel fieldset.disabled { opacity: 0.4; pointer-events: none; }

.panel .stats {
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  margin-bottom: 10px;
}
.panel .stats div {
  display: flex;
  justify-content: space-between;
}
.panel output { font-weight: 700; color: var(--accent); }
.panel .note {
  font-size: 11px;
  color: var(--ink-soft);
  margin: 6px 0 0;
  line-height: 1.5;
}
.panel .actions { display: flex; gap: 6px; }
.panel .actions button {
  flex: 1;
  font-family: inherit;
  font-size: 11px;
  padding: 6px 4px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.panel .actions button:hover { background: var(--bg); }

/* ---- CTAボタン ---- */
.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.btn-primary, .btn-ghost {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 30px;
  border-radius: 999px;
  font-size: 15px;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(224, 36, 94, 0.3);
}
.btn-primary:hover { background: #c81e52; color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-ghost:hover { background: var(--code-bg); }

/* ---- PROバッジ ---- */
.pro {
  display: inline-block;
  background: linear-gradient(135deg, #e6a817, #f5c542);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: 1px;
  margin-left: 3px;
}

/* ---- 無料/Pro比較表 ---- */
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
table.compare th, table.compare td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  text-align: center;
}
table.compare th { background: var(--code-bg); font-family: 'Zen Maru Gothic', sans-serif; }
table.compare td:first-child, table.compare th:first-child { text-align: left; }
table.compare .yes { color: var(--accent); font-weight: 700; }
table.compare .no  { color: #c9b2bc; }

/* ---- 価格カード ---- */
.price-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}
.price-card {
  flex: 1;
  min-width: 220px;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 22px 24px;
  text-align: center;
}
.price-card.featured { border-color: var(--accent); }
.price-card h3 { margin: 0 0 6px; font-size: 16px; }
.price-card .price { font-size: 32px; font-weight: 900; color: var(--accent); margin: 4px 0; }
.price-card .price small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.price-card p { font-size: 13px; color: var(--ink-soft); margin: 6px 0 14px; }

/* ---- スクリーンショット ---- */
.screenshot {
  margin: 20px 0;
}
.screenshot img {
  max-width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(61, 37, 49, 0.1);
}
.screenshot figcaption {
  font-size: 12.5px;
  color: var(--ink-soft);
  text-align: center;
  margin-top: 8px;
}

/* ---- 更新履歴 ---- */
.changelog h3 {
  font-size: 15px;
  margin: 18px 0 4px;
}
.changelog ul { margin: 0 0 4px; }
.changelog .date { font-size: 12px; color: var(--ink-soft); font-weight: 400; margin-left: 8px; }

/* ---- 体験パネルの小物 ---- */
.panel .mini-btn {
  font-family: inherit;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  background: #fff;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  margin-top: 4px;
}
.panel .mini-btn:hover { background: var(--code-bg); }

@media (max-width: 760px) {
  .panel {
    position: static;
    width: auto;
    margin: 16px;
  }
  .hero { padding-top: 40px; }
  section.card { padding: 22px 20px; }
}
