/* 使い方（/guide/）とよくある質問（/faq/）の見た目。LP（lp.css）の上に重ねる。Material 3 Expressive の形・色の役割に合わせる */
html { scroll-padding-top: 80px; }   /* 目次から飛んだとき、上の帯に見出しが隠れないように */

.guide-hero { padding: var(--sp-12) 0 var(--sp-8);
  background: radial-gradient(120% 90% at 100% 0%, var(--md-sys-color-secondary-container) 0%, transparent 60%); }
.guide-title { margin: var(--sp-2) 0 var(--sp-3); font-size: 3rem; line-height: 3.5rem; font-weight: 500; letter-spacing: -0.01em; }
.guide-lead { max-width: 720px; }
.guide-quick { list-style: none; margin: var(--sp-8) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-3); }
.guide-quick li { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4); border-radius: var(--shape-l);
  background: var(--md-sys-color-surface-container-lowest); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.guide-quick .muted { font-size: 0.875rem; }

/* 目次を左に置き、本文を右に */
.guide-body { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-12); align-items: start; padding-top: var(--sp-8); padding-bottom: var(--sp-12); }
.guide-toc { position: sticky; top: 80px; max-height: calc(100vh - 96px); overflow: auto; }
.guide-toc summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; list-style: none; }
.guide-toc summary::-webkit-details-marker { display: none; }
.guide-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; }
.guide-toc li { counter-increment: toc; }
.guide-toc a { display: flex; gap: var(--sp-2); padding: var(--sp-2) var(--sp-3); min-height: 40px; align-items: center; border-radius: var(--shape-full);
  color: var(--md-sys-color-on-surface-variant); text-decoration: none; transition: background-color var(--spring-fast-effects-dur) var(--spring-fast-effects); }
.guide-toc a::before { content: counter(toc); min-width: 1.5em; color: var(--md-sys-color-primary); font-weight: 500; font-variant-numeric: tabular-nums; }
.guide-toc a:hover { background: color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); color: var(--md-sys-color-on-surface); }
.guide-toc a:focus-visible, .guide-toc summary:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }

.guide-article { max-width: 824px; min-width: 0; }
.guide-sec { padding-bottom: var(--sp-12); }
.guide-sec + .guide-sec { padding-top: var(--sp-8); border-top: 1px solid var(--md-sys-color-outline-variant); }
.guide-sec p, .guide-sec li, .guide-sec dd { font-size: 1rem; line-height: 1.75rem; }
.guide-sec p { margin: 0 0 var(--sp-4); }
.guide-h2 { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); margin: 0 0 var(--sp-6);
  font-size: 1.75rem; line-height: 2.25rem; font-weight: 500; }
.guide-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--shape-m);
  background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.guide-h3 { margin: var(--sp-8) 0 var(--sp-3); font-size: 1.25rem; line-height: 1.75rem; font-weight: 500; }
.chip.paid { background: var(--md-sys-color-tertiary-container); color: var(--md-sys-color-on-tertiary-container); margin-left: var(--sp-2); vertical-align: middle; }
.guide-h2 .chip.paid { margin-left: 0; }

.guide-steps { counter-reset: step; list-style: none; margin: 0 0 var(--sp-4); padding: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.guide-steps > li { counter-increment: step; position: relative; padding-left: 44px; }
.guide-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: var(--shape-full);
  display: grid; place-items: center; background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container);
  font-size: 0.875rem; font-weight: 500; }

.guide-dl { margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-1) 0; }
.guide-dl dt { font-weight: 500; margin-top: var(--sp-3); }
.guide-dl dd { margin: 0; color: var(--md-sys-color-on-surface-variant); }

.guide-note { padding: var(--sp-4) var(--sp-6); border-radius: var(--shape-l); background: var(--md-sys-color-surface-container); margin: 0 0 var(--sp-4); }
.guide-note h3 { margin: 0 0 var(--sp-2); }
.guide-note ul { margin: 0; padding-left: 1.25em; }
.guide-tip { padding: var(--sp-3) var(--sp-4); border-left: 4px solid var(--md-sys-color-tertiary); border-radius: 0 var(--shape-s) var(--shape-s) 0;
  background: color-mix(in srgb, var(--md-sys-color-tertiary-container) 45%, transparent); }
.guide-key { padding: var(--sp-4); border-radius: var(--shape-l); background: var(--md-sys-color-primary-container); color: var(--md-sys-color-on-primary-container); }
.guide-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin-top: var(--sp-4); }

/* 画面の写真：角を丸め、細い枠で背景と分ける */
.shot { margin: 0 0 var(--sp-6); }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--shape-l); box-shadow: 0 0 0 1px var(--md-sys-color-outline-variant);
  background: var(--md-sys-color-surface-container); }
.shot figcaption { margin-top: var(--sp-2); font-size: 0.875rem; line-height: 1.25rem; color: var(--md-sys-color-on-surface-variant); }

.guide-table-wrap { overflow-x: auto; margin: 0 0 var(--sp-4); border-radius: var(--shape-l); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.guide-table { width: 100%; border-collapse: collapse; }
.guide-table caption { text-align: left; padding: var(--sp-3) var(--sp-4) 0; }
.guide-table th, .guide-table td { padding: var(--sp-3) var(--sp-4); text-align: left; vertical-align: top; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.guide-table tr:last-child > * { border-bottom: 0; }
.guide-table thead th { font-weight: 500; color: var(--md-sys-color-on-surface-variant); }
.guide-table tbody th { font-weight: 400; }
.guide-table td { white-space: nowrap; }
.guide-table td:last-child:not(:nth-child(2)), .guide-table td:nth-child(2):last-child { white-space: normal; }
.guide-end { border-top: 0 !important; }
.guide-sec code { font-size: 0.875em; padding: 0 4px; border-radius: var(--shape-xs); background: var(--md-sys-color-surface-container-high); }
.lp-nav a[aria-current="page"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }

@media (max-width: 1039px) {
  .guide-body { grid-template-columns: minmax(0, 1fr); gap: var(--sp-6); }
  .guide-toc { position: static; max-height: none; padding: var(--sp-2) var(--sp-4); border-radius: var(--shape-l); background: var(--md-sys-color-surface-container); }
  .guide-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .guide-title { font-size: 2.25rem; line-height: 2.75rem; }
  .guide-quick, .guide-two { grid-template-columns: minmax(0, 1fr); }
  .guide-h2 { font-size: 1.5rem; line-height: 2rem; }
  .guide-note { padding: var(--sp-4); }
  .guide-table td { white-space: normal; }
}
.guide-more { margin-top: var(--sp-6) !important; }
.guide-quick .step-no { flex: none; width: 40px; height: 40px; font-size: 1.125rem; }

/* よくある質問：分類へ飛ぶチップ */
.faq-body { padding-top: var(--sp-6); padding-bottom: var(--sp-12); }
.faq-cats { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-8); }
.chip-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--sp-4); border-radius: var(--shape-full);
  background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); text-decoration: none;
  transition: border-radius var(--spring-fast-effects-dur) var(--spring-fast-effects); }
.chip-link:hover { border-radius: var(--shape-m); }
.chip-link:focus-visible { outline: 3px solid var(--md-sys-color-secondary); outline-offset: 2px; }
.faq-body .faq-a p { margin: 0 0 var(--sp-2); }
.faq-item:target { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }

/* お問い合わせ（/contact/） */
.contact-body { padding-top: var(--sp-6); padding-bottom: var(--sp-12); }
.contact-body > * { max-width: 720px; }   /* 見出しと同じく左にそろえ、読みやすい幅にする */
.contact-form .field select { height: 56px; padding: 0 var(--sp-4); border-radius: var(--shape-xs); border: 1px solid var(--md-sys-color-outline);
  background: var(--md-sys-color-surface-container-lowest); color: var(--md-sys-color-on-surface); font: 400 1rem/1.5rem var(--font); }
.contact-form .field select:focus { outline: none; border: 2px solid var(--md-sys-color-primary); }
.contact-form .need { margin-left: var(--sp-2); }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-error { color: var(--md-sys-color-error); min-height: 1.5rem; margin: 0 0 var(--sp-2); }
.contact-error:empty { min-height: 0; }
.contact-note { margin-top: var(--sp-6); }
.contact-done:focus { outline: none; }

/* 料金とプランの比較（/pricing/）。上にプランのカード（LP と同じ形）、下に機能の比較の表 */
.pricing-body { padding-top: var(--sp-6); padding-bottom: var(--sp-12); }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cmp { margin-top: var(--sp-12); }
.cmp > .body-m svg.icon { width: 18px; height: 18px; vertical-align: -3px; color: var(--md-sys-color-primary); }
.cmp-wrap { position: relative; margin: var(--sp-6) 0 var(--sp-4);   /* 読み上げ用の隠した文字（.sr）を、横に送る枠の中に収める */
   border-radius: var(--shape-xl); background: var(--md-sys-color-surface-container-lowest);
  box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.cmp-table th, .cmp-table td { padding: var(--sp-3) var(--sp-4); text-align: center; vertical-align: middle; border-bottom: 1px solid var(--md-sys-color-outline-variant); }
.cmp-table tbody th { text-align: left; font-weight: 400; width: 34%; }
.cmp-table thead th:first-child { width: 34%; }
/* 表の見出し（プランの名前）は、下へ送っても上の帯の下に残す */
.cmp-table thead th { position: sticky; top: 64px; z-index: 2; background: var(--md-sys-color-surface-container-lowest); font-weight: 500;
  border-bottom: 2px solid var(--md-sys-color-outline-variant); }
.cmp-table thead th:first-child { border-top-left-radius: var(--shape-xl); }
.cmp-table thead th:last-child { border-top-right-radius: var(--shape-xl); }
.cmp-table thead .cmp-featured { color: var(--md-sys-color-primary); }
.cmp-group th { text-align: left !important; padding-top: var(--sp-6) !important; background: var(--md-sys-color-surface-container); color: var(--md-sys-color-on-surface); }
.cmp-table td { color: var(--md-sys-color-on-surface-variant); font-size: 0.875rem; line-height: 1.25rem; }
.cmp-table td.yes svg.icon { width: 24px; height: 24px; color: var(--md-sys-color-primary); }
.cmp-table td.no { color: var(--md-sys-color-outline); }
/* スタンダードの列を、カードと同じ色でうすく目立たせる */
.cmp-table td:nth-child(3), .cmp-table thead th:nth-child(3) { background: color-mix(in srgb, var(--md-sys-color-primary-container) 18%, var(--md-sys-color-surface-container-lowest)); }
.cmp-table tbody tr:last-child > * { border-bottom: 0; }
.cmp-hint { display: none; margin: var(--sp-2) 0 0; }
.cmp-notes { margin: 0; padding-left: 1.25em; display: grid; gap: var(--sp-1); }
/* 狭い画面では表を横に送る */
@media (max-width: 839px) {
  .cmp-wrap { overflow-x: auto; }
  .cmp-table { min-width: 680px; }
  .cmp-table thead th { position: static; }
  .cmp-table tbody th, .cmp-table thead th:first-child { width: 180px; }
  .cmp-hint { display: block; }
}
