/* 公開ガイド（/guide）用のスタイル。base.html の style.css の変数（--paper 等）を使う。 */
.gd-shell{ background: var(--paper); }
.gd-wrap{ max-width: 860px; margin: 0 auto; padding: 0 20px; }
.gd-top{ background: var(--forest-deep); color: var(--white); }
.gd-top .gd-wrap{ max-width:1040px; display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:12px; padding-bottom:12px; }
.gd-top .gd-brand{ font-family: var(--serif); font-weight:700; font-size:1.05rem; color:var(--white); text-decoration:none; }
.gd-top .gd-brand span{ color: var(--brass-soft); margin-left:4px; }
.gd-top nav{ display:flex; gap:8px; align-items:center; }
.gd-top nav a{ white-space:nowrap; color:var(--white); text-decoration:none; font-size:.88rem; padding:6px 10px; }
.gd-top nav a.gd-nav-cta{ background: var(--brass); border-radius: var(--radius); font-weight:700; }

.gd-main{ padding: 28px 0 48px; }
.gd-crumb{ font-size:.8rem; color: var(--ink-soft); margin: 0 0 14px; }
.gd-crumb a{ color: var(--forest); }
.gd-article h1{ font-family: var(--serif); font-size:1.7rem; line-height:1.5; color: var(--forest-deep); margin:0 0 8px; }
.gd-meta{ font-size:.8rem; color: var(--ink-soft); margin:0 0 22px; }
.gd-lead{ font-size:.95rem; line-height:1.9; color: var(--ink-soft); background: var(--white); border:1px solid var(--line); border-left:4px solid var(--brass); padding:12px 16px; margin:0 0 26px; }
.gd-body{ font-size:.97rem; line-height:2; color: var(--ink); }
.gd-body h2{ font-family: var(--serif); font-size:1.3rem; color: var(--forest-deep); border-bottom:2px solid var(--line); padding-bottom:6px; margin:34px 0 14px; }
.gd-body h3{ font-size:1.05rem; color: var(--forest); margin:22px 0 8px; }
.gd-body p{ margin: 0 0 14px; }
.gd-body ul, .gd-body ol{ margin: 0 0 16px; padding-left:1.4em; }
.gd-body li{ margin-bottom:4px; }
.gd-body a{ color: var(--forest); text-decoration: underline; }
.gd-callout{ background:#FBF6E8; border:1px solid var(--brass-soft); border-radius: var(--radius); padding: 14px 18px; margin: 26px 0; }
.gd-callout > strong{ display:block; color: var(--forest-deep); margin-bottom:4px; }
.gd-callout p{ margin:0; font-size:.93rem; line-height:1.9; }
.gd-callout ul{ margin:6px 0 0; }
.gd-table{ width:100%; border-collapse:collapse; margin: 8px 0 18px; font-size:.9rem; background: var(--white); }
.gd-table th, .gd-table td{ border:1px solid var(--line); padding:8px 10px; text-align:left; vertical-align:top; line-height:1.7; }
.gd-table th{ background: var(--paper-deep); }
.gd-note{ font-size:.82rem; color: var(--ink-soft); line-height:1.8; }

.gd-related{ margin-top:36px; padding-top:18px; border-top:1px solid var(--line); }
.gd-related h2{ font-family: var(--serif); font-size:1.1rem; margin:0 0 10px; color: var(--forest-deep); }
.gd-related ul{ margin:0; padding-left:1.2em; line-height:2; font-size:.93rem; }
.gd-cta{ margin-top:30px; text-align:center; background: var(--forest-deep); color: var(--white); padding: 26px 18px; border-radius: 6px; }
.gd-cta p{ margin:0 0 14px; color: var(--brass-soft); font-size:.93rem; }
.gd-cta .gd-btn{ display:inline-block; padding: 11px 24px; border-radius: var(--radius); background: var(--brass); color: var(--white); text-decoration:none; font-weight:700; }

/* 一覧ページ */
.gd-index h1{ font-family: var(--serif); font-size:1.8rem; color: var(--forest-deep); margin:0 0 8px; }
.gd-index .gd-intro{ font-size:.95rem; line-height:1.9; color: var(--ink-soft); margin:0 0 10px; }
.gd-cat{ margin-top:34px; }
.gd-cat h2{ font-family: var(--serif); font-size:1.35rem; color: var(--forest-deep); margin:0 0 4px; }
.gd-cat > p{ font-size:.87rem; color: var(--ink-soft); margin:0 0 14px; }
.gd-cards{ display:grid; grid-template-columns: 1fr 1fr; gap:14px; }
.gd-card{ display:block; background: var(--white); border:1px solid var(--line); border-radius: 6px; padding:14px 16px; text-decoration:none; color: var(--ink); }
.gd-card:hover{ border-color: var(--forest); box-shadow:0 2px 8px rgba(0,0,0,.08); }
.gd-card b{ display:block; font-size:.98rem; line-height:1.6; color: var(--forest-deep); margin-bottom:6px; }
.gd-card span{ display:block; font-size:.82rem; line-height:1.7; color: var(--ink-soft); }

/* 簡易遺伝計算機 */
.gd-tool{ background: var(--white); border:1px solid var(--line); border-radius: 6px; padding:18px; margin: 18px 0 26px; }
.gd-tool-row{ display:flex; flex-direction:column; gap:4px; margin-bottom:12px; }
.gd-tool-row label{ font-size:.85rem; font-weight:700; color: var(--forest-deep); }
.gd-tool-row select{ width:100%; padding:9px 10px; font-size:.95rem; border:1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.gd-tool-result{ margin-top:16px; }
.gd-bar{ background: var(--paper-deep); height:12px; border-radius:6px; overflow:hidden; }
.gd-bar span{ display:block; height:100%; background: var(--forest); }

.gd-footer{ background:#14302B; color:#CFD9D5; font-size:.8rem; padding:22px 20px 30px; text-align:center; line-height:2; }
.gd-footer a{ color:#E8DDBF; margin:0 8px; white-space:nowrap; }

@media (max-width: 720px){
  .gd-article h1{ font-size:1.4rem; }
  .gd-cards{ grid-template-columns: 1fr; }
  .gd-top .gd-brand .gd-brand-long{ display:none; }
}

/* 図解（インラインSVG） */
.gd-figure{ margin: 18px 0 26px; padding:14px; background: var(--white); border:1px solid var(--line); border-radius: 6px; text-align:center; }
.gd-figure svg{ display:block; margin:0 auto; }
.gd-figure figcaption{ margin-top:10px; font-size:.82rem; line-height:1.8; color: var(--ink-soft); text-align:left; }
.gd-figure img{ display:block; max-width:100%; height:auto; margin:0 auto; border:1px solid var(--line); border-radius:4px; }

.gd-about{ margin-top:32px; padding:14px 16px; border:1px solid var(--line); border-radius:6px; background: var(--white); font-size:.88rem; color: var(--ink-soft); line-height:1.8; }
.gd-about h2{ font-family: var(--serif); font-size:1rem; margin:0 0 6px; color: var(--forest-deep); }
.gd-about p{ margin:0; }
.gd-about .gd-about-label{ margin-top:6px; font-weight:bold; color: var(--ink); }
.gd-about ul{ margin:2px 0 0; padding-left:1.2em; }
