/* GenieDraw 専用サイト共通スタイル */
:root {
  --orange: #e2710b;
  --orange-dark: #b65808;
  --green: #4e9f4e;
  --green-light: #eaf6e6;
  --brown: #5c3b1e;
  --cream: #fffaf1;
  --text: #2b2520;
  --muted: #625a52;
  --line: #e6ddd0;
  --radius: 14px;
  --wrap: 1100px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.85;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--orange-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}
h1, h2, h3 { color: var(--brown); line-height: 1.45; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1.5rem; }
h3 { font-size: 1.25rem; margin: 0 0 .5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section.alt { background: var(--cream); }
.lead { font-size: 1.1rem; }
.muted { color: var(--muted); font-size: .92rem; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 100; }

/* ヘッダー */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--brown); font-weight: 700; }
.brand img { width: 44px; height: 44px; }
.site-nav { display: flex; gap: 6px 18px; flex-wrap: wrap; font-size: .92rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--orange-dark); text-decoration: underline; }

/* ボタン */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid var(--orange);
  background: var(--orange); color: #fff; cursor: pointer; font-size: 1rem; font-family: inherit;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); }
.btn.ghost { background: #fff; color: var(--orange-dark); }
.btn.ghost:hover { background: #fff4e8; }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ヒーロー */
.hero { background: linear-gradient(180deg, var(--cream), #fff); padding: 56px 0 72px; }
.hero .wrap { display: grid; gap: 40px; grid-template-columns: 1fr 1.25fr; align-items: center; }
.hero .eyebrow { color: var(--green); font-weight: 700; margin: 0; }
.hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); margin: .3em 0 .5em; }
.hero p { margin: .3em 0; }

figure { margin: 0; }
.nw { white-space: nowrap; }
.hero .wrap > *, .two > *, .media-main > *, .cards > * { min-width: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.shot { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(92, 59, 30, .12); background: #fff; }

/* 新機能 */
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin-bottom: 32px; }
.feature .name { font-weight: 700; color: var(--muted); margin: 0; }
.badge { display: inline-block; background: var(--green-light); color: #2f6d2f; font-weight: 700; border-radius: 6px; padding: 4px 12px; font-size: .92rem; margin: 8px 0 16px; }
.steps { list-style: none; padding: 0; margin: 20px 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: .92rem; }
.steps li::before { content: counter(s) ". "; color: var(--orange-dark); }
.two { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; align-items: start; }
.media-main { display: grid; gap: 16px; grid-template-columns: 2fr 1fr; align-items: end; margin-top: 16px; }
.note { background: var(--cream); border-radius: 10px; padding: 16px 20px; margin-top: 20px; font-size: .95rem; }
.note h4 { margin: 0 0 6px; color: var(--brown); font-size: 1rem; }
.note ul { margin: 0; padding-left: 1.2em; }

/* 基本機能 */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { margin: 0; }

/* 実績・料金 */
.stat { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; color: var(--brown); margin: 0; }
.stat strong { color: var(--orange-dark); }
.price-box { background: #fff; border: 2px solid var(--orange); border-radius: var(--radius); padding: 28px; }
.price-box.edu { border-color: var(--green); }
.price-box .stat { font-size: 1.3rem; }

/* 表 */
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border: 1px solid var(--line); padding: 12px 16px; text-align: left; vertical-align: top; }
th { background: var(--cream); width: 32%; color: var(--brown); }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; }
summary { cursor: pointer; padding: 16px 20px; font-weight: 700; color: var(--brown); }
details p { margin: 0; padding: 0 20px 18px; }

/* CTA */
.cta { background: var(--brown); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta a:not(.btn) { color: #ffd9a8; }
.cta .actions { justify-content: center; }
.cta .btn.ghost { background: transparent; color: #fff; border-color: #fff; }

/* ページ見出し（サブページ） */
.page-head { background: var(--cream); padding: 48px 0 40px; }
.page-head h1 { margin: 0 0 .4em; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; list-style: none; margin: 16px 0 0; }
.guide h2 { border-left: 6px solid var(--orange); padding-left: 14px; }
.guide section + section { border-top: 1px solid var(--line); }
.guide ol li { margin-bottom: 6px; }

/* フォーム */
.form { max-width: 760px; }
.field { margin-bottom: 22px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; color: var(--brown); }
.req { background: var(--orange); color: #fff; font-size: .75rem; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; }
input[type=text], input[type=email], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #c9bdae; border-radius: 8px; font: inherit; background: #fff;
}
textarea { min-height: 160px; }
.field .hint { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.field .err { color: #b3261e; font-size: .9rem; margin: 4px 0 0; }
[aria-invalid=true] { border-color: #b3261e; background: #fff7f6; }
fieldset { border: 0; padding: 0; margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; }
.check input { width: 20px; height: 20px; margin-top: 5px; }
.type-info { border-left: 6px solid var(--green); margin: 0 0 24px; }
.alert { border-radius: 10px; padding: 20px 24px; margin: 24px 0; }
.alert.ok { background: var(--green-light); border: 1px solid #b7dcb0; }
.alert.ng { background: #fdecea; border: 1px solid #f1b8b2; }
.alert h2 { font-size: 1.3rem; margin-bottom: .5rem; }

/* フッター */
.site-footer { background: #f6f1ea; padding: 48px 0 32px; font-size: .92rem; }
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; }
.logos { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.logos .pracs { width: 180px; }
.logos .toprunner { width: 72px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.copy { grid-column: 1 / -1; text-align: center; color: var(--muted); margin: 0; }

@media (max-width: 860px) {
  .hero .wrap, .two, .cards, .site-footer .wrap, .media-main { grid-template-columns: 1fr; }
  .feature { padding: 24px 20px; }
  .section { padding: 56px 0; }
  th { width: 40%; }
}
