/* artclick tools */
:root {
  --bg: #ffffff;
  --bg-muted: #f6f6f4;
  --surface: #ffffff;
  --text: #1a1a1a;
  --text-sub: #6b6b6b;
  --border: #e6e6e3;
  --primary: #1a1a1a;
  --primary-text: #ffffff;
  --link: #1a1a1a;
  --notice: #f1f6ff;
  --danger: #c0392b;
  --radius: 12px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 760px; }
.muted { color: var(--text-sub); }
.meta { font-size: 13px; color: var(--text-sub); }

/* ---------- ヘッダー・フッター ---------- */
.site-header { border-bottom: 1px solid var(--border); background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand img { display: block; height: 20px; width: auto; }
.brand-sub { font-size: 13px; font-weight: 600; color: var(--text-sub); padding-left: 10px; border-left: 1px solid var(--border); line-height: 1; }
.site-nav { display: flex; gap: 24px; font-size: 14px; }
.site-nav a { text-decoration: none; color: var(--text-sub); }
.site-nav a:hover { color: var(--text); }
.lang-switch { display: inline-flex; align-items: center; gap: 5px; }
.lang-switch .icon { width: 15px; height: 15px; }

/* 英語ページは欧文向けのフォントと字間にする */
html[lang="en"] body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Hiragino Sans", sans-serif; letter-spacing: 0; line-height: 1.7; }
html[lang="en"] .hero h1, html[lang="en"] .product-hero h1 { letter-spacing: -0.01em; }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; font-size: 13px; color: var(--text-sub); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-nav a { color: var(--text-sub); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }
.copyright { margin: 16px 0 0; }

/* ---------- 共通 ---------- */
.section { padding: 72px 0; }
.section-muted { background: var(--bg-muted); }
.section-title { font-size: 20px; font-weight: 700; margin: 0 0 24px; letter-spacing: 0.04em; }
.page-title { font-size: 28px; font-weight: 700; margin: 0 0 24px; line-height: 1.4; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-sub); margin: 0 0 12px; }
.lead { font-size: 17px; color: var(--text-sub); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid var(--primary);
  font: inherit; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; transition: opacity .15s, background .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-text); }
.btn-primary:hover { opacity: 0.85; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text); }
.btn-lg { padding: 16px 32px; font-size: 16px; width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

.notice { background: var(--notice); border-radius: 8px; padding: 12px 16px; font-size: 14px; }
.notice-error { background: #fdf0ee; color: var(--danger); }

/* ---------- トップ ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.35; margin: 0 0 24px; letter-spacing: 0.02em; }
.hero .lead { max-width: 760px; margin: 0; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.product-card { display: block; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
.product-card:hover { border-color: var(--text); transform: translateY(-2px); }
.product-card-visual { background: var(--bg-muted); padding: 24px; }
.product-card-visual .visual { display: block; margin: 0 auto; max-height: 220px; }
.product-card-body { padding: 20px 24px 24px; }
.product-card h3 { font-size: 19px; margin: 4px 0 8px; }
.product-platform { font-size: 12px; font-weight: 600; color: var(--text-sub); letter-spacing: 0.08em; margin: 0; }
.product-tagline { font-size: 14px; color: var(--text-sub); margin: 0 0 16px; }
.product-price { font-size: 18px; font-weight: 700; margin: 0; }
.product-price span { font-size: 12px; font-weight: 400; color: var(--text-sub); }

/* ---------- 製品ページ ---------- */
.product-hero { padding: 72px 0; border-bottom: 1px solid var(--border); }
.product-hero-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.product-hero h1 { font-size: clamp(32px, 4.5vw, 44px); margin: 8px 0 12px; line-height: 1.3; }
.product-hero .lead { margin: 0 0 16px; color: var(--text); font-weight: 600; }
.product-desc { color: var(--text-sub); margin: 0 0 32px; }
.product-hero-visual { background: var(--bg-muted); border-radius: 20px; padding: 32px; }
.product-hero-visual .visual { display: block; margin: 0 auto; }
.visual text { font-family: "Hiragino Sans", "Noto Sans JP", sans-serif; }
.cta-row { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.cta-trial { display: flex; gap: 12px; }
.cta-trial .btn { white-space: nowrap; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.feature-num { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-sub); }
.feature h3 { font-size: 16px; margin: 6px 0 8px; }
.feature p { font-size: 14px; color: var(--text-sub); margin: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 8px; }
.check-list li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 10px; height: 5px; border-left: 1.5px solid var(--text); border-bottom: 1.5px solid var(--text); transform: rotate(-45deg); }
.step-list { counter-reset: step; list-style: none; padding: 0; margin: 0 0 16px; }
.step-list li { counter-increment: step; position: relative; padding-left: 40px; margin-bottom: 18px; color: var(--text-sub); font-size: 14px; }
.step-list li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--text); color: var(--text); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step-list strong { display: block; color: var(--text); font-size: 15px; }

.confirm-table { width: 100%; border-collapse: collapse; margin: 0 0 32px; font-size: 14px; }
.confirm-table th, .confirm-table td { text-align: left; vertical-align: top; padding: 14px 0; border-bottom: 1px solid var(--border); }
.confirm-table th { width: 32%; font-weight: 600; padding-right: 16px; color: var(--text-sub); }
.buy-form { display: grid; gap: 16px; }
.agree { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.agree input { margin-top: 6px; width: 16px; height: 16px; accent-color: var(--primary); }

.faq dt { font-weight: 700; margin-top: 24px; }
.faq dt:first-child { margin-top: 0; }
.faq dd { margin: 6px 0 0; color: var(--text-sub); font-size: 14px; }

/* ---------- 購入完了・フォーム ---------- */
.key-box { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px; border: 1px solid var(--text); border-radius: var(--radius); padding: 20px 24px; margin: 24px 0 48px; }
.key-label { font-size: 12px; color: var(--text-sub); width: 100%; }
.key { font-size: clamp(16px, 3.4vw, 22px); font-weight: 600; letter-spacing: 0.08em; user-select: all; flex: 1; }
.stack-form { display: grid; gap: 8px; max-width: 420px; }
.stack-form label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.stack-form .btn { margin-top: 16px; justify-self: start; }
input[type=email], input[type=text], input[type=search], input[type=number], input[type=date], select {
  font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); width: 100%;
}
input:focus, select:focus { outline: 2px solid var(--text); outline-offset: -1px; border-color: transparent; }

.prose h2 { font-size: 17px; margin: 40px 0 12px; }
.prose p, .prose li { font-size: 14px; color: #333; }
.prose ol { padding-left: 1.4em; }

textarea { font: inherit; font-size: 15px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--text); width: 100%; resize: vertical; line-height: 1.7; }
textarea:focus { outline: 2px solid var(--text); outline-offset: -1px; border-color: transparent; }
.stack-form-wide { max-width: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- サポート ---------- */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 32px 0 64px; }
.support-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); transition: border-color .15s; }
.support-card:hover { border-color: var(--text); }
.support-card .icon { width: 22px; height: 22px; margin-bottom: 8px; }
.support-card span { font-size: 13px; color: var(--text-sub); }

.machine-list { list-style: none; padding: 0; margin: 0 0 24px; }
.machine-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.machine-list li strong { display: block; }
.machine-list form { margin: 0; flex: 0 0 auto; }

/* ---------- 使い方（マニュアル） ---------- */
.manual-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; align-items: start; }
.manual-toc { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 12px; }
.manual-toc-title { font-weight: 700; margin: 0; }
.manual-toc nav { display: flex; flex-direction: column; border-left: 1px solid var(--border); }
.manual-toc nav a { font-size: 13px; color: var(--text-sub); text-decoration: none; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 1px solid transparent; }
.manual-toc nav a:hover { color: var(--text); border-left-color: var(--text); }
.manual-toc .btn { align-self: flex-start; }
.manual-body { min-width: 0; }
.doc h2 { font-size: 20px; margin: 56px 0 16px; padding-top: 8px; scroll-margin-top: 80px; }
.doc h3 { font-size: 16px; margin: 32px 0 12px; }
.doc p, .doc li { font-size: 15px; }
.doc ul, .doc ol { padding-left: 1.4em; }
.doc li { margin-bottom: 6px; }
.doc code { background: var(--bg-muted); border-radius: 4px; padding: 1px 6px; font-size: 13px; }
.doc pre { background: var(--bg-muted); border-radius: 8px; padding: 12px 16px; overflow-x: auto; }
.doc pre code { background: none; padding: 0; }
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
.doc-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-table th, .doc-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.doc-table th { background: var(--bg-muted); font-weight: 600; white-space: nowrap; }
.note-box { background: var(--bg-muted); border-radius: 8px; padding: 12px 16px; font-size: 14px; }

/* ---------- 管理画面 ---------- */
.admin .section { padding: 40px 0; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 32px; }
.stat { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; min-width: 180px; }
.stat span { display: block; font-size: 12px; color: var(--text-sub); }
.stat strong { font-size: 22px; }
.admin-bar { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
.inline-form input[type=search] { width: 280px; padding: 6px 12px; font-size: 14px; }
.issue summary { list-style: none; }
.issue summary::-webkit-details-marker { display: none; }
.issue[open] .stack-form { margin-top: 12px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 24px; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.admin-table th { font-size: 12px; color: var(--text-sub); font-weight: 600; }
.admin-table tbody tr[onclick] { cursor: pointer; }
.admin-table tbody tr[onclick]:hover { background: var(--bg-muted); }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--text); }
.tag-off { border-color: var(--border); color: var(--text-sub); }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- スマートフォン ---------- */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  .section { padding: 48px 0; }
  .hero { padding: 56px 0 40px; }
  .site-nav { gap: 16px; font-size: 13px; }
  .brand-sub { display: none; }
  .product-hero { padding: 40px 0; }
  .product-hero-inner, .two-col { grid-template-columns: 1fr; gap: 32px; }
  .product-hero-visual { padding: 16px; }
  .cta-row { align-items: stretch; }
  .cta-trial .btn { flex: 1; padding-left: 12px; padding-right: 12px; }
  .confirm-table th { width: 38%; }
  .admin-table { display: block; overflow-x: auto; }
  .manual-layout { grid-template-columns: 1fr; gap: 24px; }
  .manual-toc { position: static; }
  .machine-list li { flex-direction: column; align-items: flex-start; }
}
.inline-form input[type=date] { width: auto; padding: 5px 8px; font-size: 13px; }

/* ---------- お問い合わせの確認画面 ---------- */
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-actions .cf-turnstile { width: 100%; }
