/* ==================================================
   精算表 練習システム  how-to-use.css
   使い方ページ専用スタイル
================================================== */

/* ===== ガイドページ用ボタン ===== */
.btn-guide {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  text-decoration: none;
  display: inline-block;
  padding: 5px 14px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: bold;
  transition: background 0.15s;
}

.btn-guide:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* ===== メインコンテンツ ===== */
.guide-main {
  padding: 20px 16px 0;
  max-width: 900px;
  margin: 0 auto;
}

.guide-wrap {
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15);
  padding: 32px 40px 40px;
}

/* ===== 目次 ===== */
.guide-toc {
  background: #f5f7fa;
  border-left: 4px solid #1e3a6e;
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  margin-bottom: 36px;
  display: inline-block;
  min-width: 220px;
}

.toc-title {
  font-weight: bold;
  font-size: 13px;
  color: #1e3a6e;
  margin-bottom: 8px;
}

.guide-toc ol {
  padding-left: 20px;
  margin: 0;
}

.guide-toc li {
  margin-bottom: 5px;
}

.guide-toc a {
  color: #1e3a6e;
  text-decoration: none;
  font-size: 13px;
}

.guide-toc a:hover {
  text-decoration: underline;
}

/* ===== セクション共通 ===== */
.guide-section {
  margin-bottom: 44px;
}

.section-title {
  font-size: 17px;
  font-weight: bold;
  color: #1e3a6e;
  border-bottom: 2px solid #1e3a6e;
  padding-bottom: 6px;
  margin-bottom: 16px;
}

.guide-section p {
  font-size: 13px;
  line-height: 1.85;
  color: #333;
  margin-bottom: 10px;
}

/* ===== ステップリスト ===== */
.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.step-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #333;
}

.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #1e3a6e;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.step-list li strong {
  display: block;
  margin-bottom: 2px;
  color: #111;
}

/* ===== テーブル ===== */
.guide-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.guide-table th,
.guide-table td {
  border: 1px solid #ccc;
  padding: 8px 12px;
  text-align: left;
  line-height: 1.6;
  vertical-align: top;
}

.guide-table th {
  background: #1e3a6e;
  color: #fff;
  font-weight: bold;
  white-space: nowrap;
}

.guide-table tr:nth-child(even) td {
  background: #f5f7fa;
}

.guide-table code {
  background: #eee;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 11px;
}

/* ===== 各欄カード ===== */
.col-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.col-card {
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.col-card-header {
  padding: 8px 14px;
  font-weight: bold;
  font-size: 13px;
  color: #fff;
}

.col-card-acc .col-card-header { background: #c49a20; }
.col-card-bs  .col-card-header { background: #5c2d8e; }
.col-card-pl  .col-card-header { background: #145080; }

.col-card-body {
  padding: 12px 14px;
  background: #fafafa;
  font-size: 12px;
  line-height: 1.7;
  color: #333;
}

.col-card-body p { margin-bottom: 6px; }

.col-card-body ul {
  padding-left: 18px;
  margin-bottom: 6px;
}

.col-note {
  font-size: 11px !important;
  color: #777 !important;
  margin-bottom: 0 !important;
}

/* ===== 注意ブロック ===== */
.guide-note {
  background: #fffbe6;
  border-left: 4px solid #f5c842;
  padding: 10px 14px;
  font-size: 12px;
  color: #555;
  line-height: 1.7;
  margin-top: 12px;
  border-radius: 0 4px 4px 0;
}

.guide-caution {
  background: #fff3f3;
  border-left: 4px solid #c62828;
  border-radius: 0 4px 4px 0;
  padding: 12px 16px;
  margin-top: 14px;
  font-size: 12px;
  color: #333;
  line-height: 1.7;
}

.guide-caution strong {
  display: block;
  margin-bottom: 6px;
  color: #c62828;
}

.guide-caution ul {
  padding-left: 18px;
  margin: 0;
}

.guide-caution code {
  background: #f5e0e0;
  padding: 0 4px;
  border-radius: 2px;
  font-size: 11px;
}

/* ===== 戻るボタン ===== */
.guide-back {
  text-align: center;
  margin-top: 36px;
}

.btn-guide-back {
  display: inline-block;
  background: #1e3a6e;
  color: #fff;
  text-decoration: none;
  padding: 10px 28px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: bold;
  transition: filter 0.15s;
}

.btn-guide-back:hover {
  filter: brightness(1.2);
}
