/* page-specific overrides */
body { font-size: 14px; line-height: 1.75; }
.nav-inner { max-width: 980px; }

/* === HERO === */
.guide-hero {
  padding: 48px 24px 32px; text-align: center;
  background: linear-gradient(180deg, var(--pink-pale) 0%, var(--bg) 100%);
}
.guide-hero h1 {
  font-size: 28px; font-weight: 900;
  margin-bottom: 6px;
}
.guide-hero p { color: var(--text-mid); font-size: 13px; }

/* === WORKFLOW === */
.workflow-section {
  max-width: 980px; margin: 0 auto; padding: 0 20px 28px;
}
.workflow-section h2 {
  font-size: 18px; font-weight: 900; color: var(--text);
  text-align: center; margin-bottom: 16px;
}
.workflow-grid {
  display: grid; grid-template-columns: 1fr; gap: 16px;
}
.workflow-card {
  background: var(--white); border: 2px solid var(--border); border-radius: 16px;
  padding: 24px; transition: border-color 0.2s;
}
.workflow-card:hover { border-color: var(--pink-light); }
.workflow-card h3 {
  font-size: 15px; font-weight: 900; color: var(--pink);
  margin-bottom: 4px;
}
.workflow-card .wf-for {
  font-size: 12px; color: var(--text-light); margin-bottom: 12px;
}
.workflow-card .wf-desc {
  font-size: 13px; color: var(--text-mid); margin-bottom: 14px; line-height: 1.7;
}
.workflow-steps {
  font-size: 12px; font-weight: 700;
}
.wf-row {
  display: flex; align-items: center; gap: 6px;
}
.wf-step {
  background: var(--pink-pale); color: var(--pink); border-radius: 8px;
  padding: 4px 10px; white-space: nowrap;
}
.wf-step a { color: var(--pink); text-decoration: none; }
.wf-step a:hover { text-decoration: underline; }
.wf-arrow { color: var(--text-light); font-size: 11px; }
.wf-divider-row {
  display: flex; align-items: center; margin-top: 4px;
}
.wf-divider-spacer {
  /* 「収録（外部） → ノイズ処理（外部） →」の幅分のスペース */
  width: 255px; flex-shrink: 0;
}
.wf-divider {
  font-size: 11px; font-weight: 700; color: var(--pink);
}

/* === LAYOUT === */
.guide-layout {
  display: flex; gap: 28px;
  max-width: 980px; margin: 0 auto; padding: 28px 20px 80px;
}

/* TOC */
.guide-toc {
  width: 170px; flex-shrink: 0;
  position: sticky; top: 68px; align-self: flex-start;
  max-height: calc(100vh - 80px); overflow-y: auto;
  font-size: 12px;
}
.guide-toc h3 {
  font-size: 10px; color: var(--text-light); text-transform: uppercase;
  letter-spacing: 1px; margin-bottom: 8px;
}
.guide-toc ul { list-style: none; }
.guide-toc li { margin-bottom: 1px; }
.guide-toc a {
  display: block; padding: 3px 8px; border-radius: 6px;
  font-weight: 600; color: var(--text-mid); transition: all 0.15s;
}
.guide-toc a:hover { background: var(--pink-pale); color: var(--pink); text-decoration: none; }
.guide-toc a.active { background: var(--pink-pale); color: var(--pink); }
.toc-sub { padding-left: 12px; }
.toc-sub a { font-weight: 400; color: var(--text-light); font-size: 11px; }

/* MAIN */
.guide-main { flex: 1; min-width: 0; }

/* Section */
.gs { margin-bottom: 40px; scroll-margin-top: 74px; }
.gs-title {
  font-size: 18px; font-weight: 900; color: var(--pink);
  padding-bottom: 8px; border-bottom: 3px solid var(--pink-light); margin-bottom: 16px;
}
.gs-title .icon { margin-right: 6px; }
.gs-intro { font-size: 13px; color: var(--text-mid); margin-bottom: 16px; }

/* Sub */
.sub { margin-bottom: 22px; scroll-margin-top: 74px; }
.sub-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 10px; padding-left: 10px; border-left: 4px solid var(--pink);
}
.sub-desc { font-size: 13px; color: var(--text-mid); margin-bottom: 10px; }

/* Grid 2-col / 3-col */
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 10px; }

/* Card */
.c {
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 16px;
}
.c h4 { font-size: 13px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.c p, .c ul { font-size: 12px; line-height: 1.7; color: var(--text-mid); }
.c ul { padding-left: 16px; margin-top: 4px; }
.c ul li { margin-bottom: 2px; }
.c-accent { border-color: var(--pink); background: var(--pink-pale); }
.c-accent h4 { color: var(--pink); }
.c strong { color: var(--text); font-weight: 700; }

/* Preset row */
.preset-row {
  display: grid; grid-template-columns: 80px 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  margin-bottom: 8px; overflow: hidden;
}
.preset-label {
  padding: 10px 12px; font-size: 13px; font-weight: 800; color: var(--pink);
  border-right: 1px solid var(--border); display: flex; flex-direction: column;
  justify-content: center; gap: 4px;
}
.preset-body { padding: 10px 14px; font-size: 12px; color: var(--text-mid); line-height: 1.65; }
.tag {
  display: inline-block; font-size: 9px; font-weight: 700;
  padding: 1px 6px; border-radius: 8px; margin-right: 3px;
}
.t-air { background: #E4EEFF; color: var(--blue); }
.t-warm { background: #FFECD6; color: #C07020; }
.t-comp { background: #E8F5E9; color: #388E3C; }
.t-prox { background: #FCE4EC; color: #C62828; }

/* Tip / Warn */
.tip {
  background: var(--blue-light); border-left: 3px solid var(--blue);
  border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 10px 0;
  font-size: 12px; color: var(--text-mid);
}
.tip strong { color: var(--blue); }
.warn {
  background: #FFF3E0; border-left: 3px solid #FF9800;
  border-radius: 0 8px 8px 0; padding: 10px 14px; margin: 10px 0;
  font-size: 12px; color: var(--text-mid);
}
.warn strong { color: #E65100; }

/* Param list */
.pl { margin: 8px 0; }
.pl dt { font-size: 12px; font-weight: 700; color: var(--text); margin-bottom: 1px; }
.pl dd { font-size: 12px; color: var(--text-mid); margin: 0 0 8px 0; padding-left: 12px; border-left: 2px solid var(--border); }

/* === STEP === */
.step {
  display: flex; gap: 14px; margin-bottom: 18px;
}
.step-num {
  width: 30px; height: 30px; flex-shrink: 0;
  background: var(--pink); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 900; margin-top: 2px;
}
.step-body { flex: 1; min-width: 0; }
.step-body h4 {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 6px;
}
.step-body p { font-size: 13px; color: var(--text-mid); margin-bottom: 8px; }

/* Scenario link cards */
.scenario-links {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0;
}
.scenario-link {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: 2px solid var(--border); border-radius: 12px;
  padding: 12px 16px; text-decoration: none !important; color: var(--text);
  transition: all 0.2s;
}
.scenario-link:hover { border-color: var(--pink-light); box-shadow: var(--shadow); }
.scenario-link .sl-num {
  width: 26px; height: 26px; flex-shrink: 0;
  background: var(--pink-pale); color: var(--pink); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 900;
}
.scenario-link .sl-text { font-size: 13px; font-weight: 700; }

/* Footer */
footer {
  background: #1E1028; color: rgba(255,255,255,0.55);
  text-align: center; padding: 36px 24px;
}
.footer-logo { font-size: 22px; font-weight: 900; margin-bottom: 12px; display: block; }
.footer-logo .asmr { color: var(--pink); }
.footer-logo .name { color: #82B4F0; }
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; font-size: 12px; }
.footer-links a { color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: white; text-decoration: none; }
.footer-copy { font-size: 11px; }

@media (max-width: 768px) {
  .guide-layout { flex-direction: column; }
  .guide-toc {
    width: 100%; position: static; max-height: none;
    display: flex; flex-wrap: wrap; gap: 2px;
    border-bottom: 1px solid var(--border); padding-bottom: 12px; margin-bottom: 4px;
  }
  .guide-toc h3 { width: 100%; }
  .guide-toc ul { display: flex; flex-wrap: wrap; gap: 2px; }
  .toc-sub { display: none; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .preset-row { grid-template-columns: 70px 1fr; }
  .scenario-links { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }

  /* Workflow */
  .workflow-section { padding: 0 16px 20px; }
  .workflow-section h2 { font-size: 16px; }
  .workflow-card { padding: 16px; }
  .workflow-card h3 { font-size: 13px; }
  .workflow-card .wf-for { font-size: 11px; }
  .workflow-card .wf-desc { font-size: 12px; }
  .workflow-steps { display: none; }

  /* Guide hero */
  .guide-hero h1 { font-size: 20px; }
  .guide-hero p { font-size: 13px; }

  /* Layout */
  .guide-layout { padding: 20px 16px 56px; }

  /* TOC */
  .guide-toc { margin-bottom: 8px; }
  .guide-toc a { font-size: 11px; padding: 3px 8px; }

  /* Section headings */
  .gs h2 { font-size: 20px; }

  /* Preset rows — 縦積み */
  .preset-row { grid-template-columns: 1fr; }
  .preset-label {
    border-right: none;
    border-bottom: 1px solid var(--border);
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    padding: 10px 14px;
    gap: 6px;
  }
  .preset-body { padding: 10px 14px; }

  /* Param list */
  .pl dt { font-size: 13px; }
  .pl dd { font-size: 13px; }

  /* Tip / Warn */
  .tip, .warn { font-size: 13px; }

  /* Cards */
  .c { padding: 12px 14px; }
  .c h4 { font-size: 13px; }

  /* Steps */
  .step { gap: 10px; }
  .step-num { width: 26px; height: 26px; font-size: 12px; }
}
