/* 使い方ガイド（guide.html）だけで使うスタイル。デザイントークンは style.css のものを使う */
.guide-layout {
  flex: 1; width: 100%; max-width: var(--max-width); margin: 0 auto;
  padding: 32px var(--gutter) 120px;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px;
}

@media (min-width: 960px) {
  .guide-layout {
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }
}

.guide-sidebar {
  display: none;
}

@media (min-width: 960px) {
  .guide-sidebar {
    display: block;
    position: sticky; top: 76px;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding-right: 8px;
  }
}

.guide-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 13px;
}
.guide-toc__title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.guide-toc ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 4px;
}
.guide-toc a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--text);
  text-decoration: none;
  line-height: 1.4;
  transition: background-color 0.15s, color 0.15s;
}
.guide-toc a:hover {
  background: var(--surface-2);
  color: var(--gold-bright);
}
.guide-toc a.is-active {
  background: var(--gold-tint);
  color: var(--gold);
  font-weight: 600;
}

.guide-toc-mobile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 24px;
  font-size: 13.5px;
}
.guide-toc-mobile summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--gold);
}
.guide-toc-mobile ul {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.guide-toc-mobile a {
  color: var(--text);
  text-decoration: none;
}
.guide-toc-mobile a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

@media (min-width: 960px) {
  .guide-toc-mobile { display: none; }
}

.guide-content {
  min-width: 0;
}

.guide-hero {
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.guide-hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  background: var(--gold-tint);
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.guide-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.guide-hero p.lead {
  margin: 0;
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.8;
}

.guide-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
.guide-section h2 {
  font-size: clamp(20px, 3vw, 24px);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}
.guide-section h3 {
  font-size: 17px;
  margin: 28px 0 10px;
  color: var(--navy);
}
.guide-section p {
  margin: 0 0 16px;
  line-height: 1.8;
}
.guide-section ul, .guide-section ol {
  margin: 0 0 20px;
  padding-left: 24px;
}
.guide-section li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.guide-box {
  border-radius: var(--radius);
  padding: 16px 20px;
  margin: 20px 0;
  border: 1px solid var(--border);
  background: var(--surface);
  line-height: 1.7;
}
.guide-box--tip {
  border-color: var(--gold-bright);
  background: var(--gold-tint);
}
.guide-box--tip strong {
  color: var(--gold);
}
.guide-box--warn {
  border-color: var(--crimson-bright);
  background: var(--crimson-tint);
}
.guide-box--warn strong {
  color: var(--crimson);
}

.guide-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 20px 0 28px;
}
.guide-step {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
}
.guide-step__num {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-bg);
  color: var(--primary-fg);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 14px;
}
.guide-step__body {
  flex: 1;
}
.guide-step__body h4 {
  margin: 0 0 6px;
  font-size: 15px;
}
.guide-step__body p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
}

.guide-compare-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 28px;
}
.guide-compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.guide-compare-card__visual {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  background: var(--glyph-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  font-size: 48px;
}
.guide-compare-card__title {
  font-weight: 700;
  margin-bottom: 4px;
}
.guide-compare-card__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

.guide-table-wrap {
  overflow-x: auto;
  margin: 20px 0 28px;
}
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.guide-table th, .guide-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.guide-table th {
  background: var(--surface-2);
  font-weight: 600;
}
.guide-table tr:last-child td {
  border-bottom: 0;
}
.guide-table .glyph {
  font-size: 24px;
}

.guide-box ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.guide-header-btn {
  text-decoration: none;
}

.guide-faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.guide-faq summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--navy);
  font-size: 15px;
}
.guide-faq summary:hover {
  color: var(--gold-bright);
}
.guide-faq .guide-faq__answer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  line-height: 1.8;
  font-size: 14px;
}
.guide-faq .guide-faq__answer p:last-child {
  margin-bottom: 0;
}

