@charset "UTF-8";
/* =========================================================
   無料 Excel テンプレート（/templates/ と配下のページ）
   functions.php で該当ページだけ読み込む。main.p-templates の中だけに効かせる
   （サイト共通のヘッダー・フッター・追従 CTA には触れない）。

   依頼者のデザイン指針（情報デザインの考え方）に沿う:
   - 色は3つの役割だけ。値は factoryadvance.jp の既存の色を使う
       ベース     白と薄い青 #e3ebf5（tools.css の区切り線の色）…… h2 の帯、要点の囲み、表の見出し行
       メイン     青 #1266b1（サイトの主色）……………………………… 見出しの文字、リンク、ボタン
       アクセント 銅色 #8a4f28 と薄い銅色 #f7efe8（料金ページの色）… 注意の囲みだけ
     文字 #222222、補足 #555555、罫線 #cccccc、ごく薄い罫線 #ebebeb（無彩色）。
     コントラスト比: 本文/白 15.9、青/白 5.9、白/青 5.9、青/薄い青 4.9、補足/白 7.5、銅色/薄い銅色 5.7
   - 線と塗りはどちらかひとつ。影・グラデーション・2px を超える角丸・ホバーで浮く動きは使わない
   - 左揃え。文章は本文の枠（最大 1040px）いっぱいに流す（依頼者の判断で、指針の「1行は40字まで」は採らない）。見出しは h2（薄い青の帯）と h3（■＋下線1本）の2段構え
   - 文字は本文 17px・h3 22px・h2 29px（1:1.28:1.71）、行間 1.85、補足でも 14px 以上
   ========================================================= */
.p-templates {
  --tpl-main: #1266b1;
  --tpl-base: #e3ebf5;
  --tpl-accent: #8a4f28;
  --tpl-accent-bg: #f7efe8;
  --tpl-text: #222222;
  --tpl-sub: #555555;
  --tpl-line: #cccccc;
  --tpl-faint: #ebebeb;
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "Noto Sans JP", Meiryo, sans-serif;
  font-size: 17px;
  line-height: 1.85;
  color: var(--tpl-text);
  background: #fff;
  padding-bottom: 80px;
}
.p-templates *,
.p-templates *::before,
.p-templates *::after {
  box-sizing: border-box;
}
.p-templates a {
  color: var(--tpl-main);
  text-decoration: underline;
  text-underline-offset: 0.2em;
  transition: none;
}
.p-templates a:hover {
  text-decoration-thickness: 2px;
}
.p-templates p,
.p-templates ul,
.p-templates ol,
.p-templates dl,
.p-templates figure {
  margin: 0;
  padding: 0;
}

.p-tpl-inner {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- パンくず（既存の parts/bread の出力を、このページの中だけ小さめの文字と「›」にする） ---------- */
.p-templates .l-content {
  max-width: none;
  padding: 0;
}
.p-templates .breadcrumb {
  font-size: 14px;
  letter-spacing: 0;
  color: var(--tpl-sub);
  padding: 20px 0 0;
  margin: 0;
}
.p-templates .breadcrumb span a {
  color: var(--tpl-sub);
  text-decoration: underline;
}
.p-templates .breadcrumb span + span {
  padding-left: 0;
}
.p-templates .breadcrumb span + span::before {
  content: "›";
  position: static;
  display: inline;
  margin: 0 0.5em;
  width: auto;
  height: auto;
  border: 0;
  transform: none;
  color: var(--tpl-sub);
}

/* ---------- 見出し ---------- */
.p-tpl-h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--tpl-main);
  margin: 28px 0 20px;
}
.p-tpl-h2 {
  font-size: 29px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
  color: var(--tpl-main);
  background: var(--tpl-base);
  padding: 12px 20px;
  margin: 0 0 24px;
}
.p-tpl-h3 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.55;
  color: var(--tpl-main);
  border-bottom: 1px solid var(--tpl-main);
  padding: 0 0 6px;
  margin: 40px 0 14px;
}
.p-tpl-h3::before {
  content: "■";
  margin-right: 0.3em;
}
.p-tpl-h2 + .p-tpl-h3 {
  margin-top: 8px;
}

/* ---------- 本文 ---------- */
.p-tpl-section {
  margin-top: 72px;
}
.p-tpl-text p + p {
  margin-top: 1em;
}
.p-tpl-note {
  margin-top: 16px;
  font-size: 15px;
  color: var(--tpl-sub);
}
.p-tpl-more {
  margin-top: 16px;
}
.p-tpl-box {
  margin-top: 28px;
  padding: 1em 1.25em;
  background: var(--tpl-base);
}
.p-tpl-box strong {
  color: var(--tpl-main);
}

/* ---------- ダウンロード（主ボタン。紺ではなくサイトの青、角は四角） ---------- */
.p-tpl-dl {
  margin-top: 28px;
}
.p-tpl-btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--tpl-main);
  color: #fff !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-decoration: none !important;
  border-radius: 0;
}
.p-tpl-btn:hover {
  text-decoration: underline !important;
}
.p-tpl-btn:focus-visible,
.p-templates a:focus-visible {
  outline: 3px solid var(--tpl-text);
  outline-offset: 2px;
}
.p-tpl-dl-meta {
  margin-top: 10px !important;
  font-size: 15px;
  color: var(--tpl-sub);
}

/* ---------- Excel の見た目の画像（線1本だけ） ---------- */
.p-tpl-figure {
  margin-top: 40px !important;
}
.p-tpl-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border: 1px solid var(--tpl-line);
}
.p-tpl-figure figcaption {
  margin-top: 8px;
  font-size: 15px;
  color: var(--tpl-sub);
}

/* ---------- 表（横罫は見出しの下と最後、行の間はごく薄い罫線、縦罫なし） ---------- */
.p-tpl-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.7;
}
.p-tpl-table thead th {
  background: var(--tpl-base);
  color: var(--tpl-main);
  font-weight: 700;
  text-align: left;
  padding: 10px 14px;
}
.p-tpl-table tbody th,
.p-tpl-table tbody td {
  text-align: left;
  vertical-align: top;
  padding: 12px 14px;
  border-bottom: 1px solid var(--tpl-faint);
}
.p-tpl-table tbody tr:last-child th,
.p-tpl-table tbody tr:last-child td {
  border-bottom: 1px solid var(--tpl-line);
}
.p-tpl-table tbody th {
  font-weight: 700;
  width: 30%;
}

/* ---------- 手順 ---------- */
.p-tpl-steps {
  padding-left: 1.6em !important;
}
.p-tpl-steps li {
  list-style: decimal;
}
.p-tpl-steps li + li {
  margin-top: 0.8em;
}
.p-tpl-steps li::marker {
  font-weight: 700;
  color: var(--tpl-main);
}

/* ---------- 行の一覧（カードにしない） ---------- */
.p-tpl-rows {
  border-top: 1px solid var(--tpl-line);
}
.p-tpl-rows li {
  padding: 16px 0;
  border-bottom: 1px solid var(--tpl-line);
}
.p-tpl-rows-title {
  font-weight: 700;
}
.p-tpl-rows-desc {
  margin-top: 4px !important;
  font-size: 16px;
  line-height: 1.75;
}
.p-tpl-rows-dl {
  margin-top: 6px !important;
  font-size: 15px;
}

/* 行の左に画像を置く一覧（テンプレートの一覧）。画像は線だけで囲み、文字の左端は行どうしでそろえる */
.p-tpl-rows li.has-thumb {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.p-tpl-rows-thumb {
  flex: 0 0 200px;
  border: 1px solid var(--tpl-line);
}
.p-tpl-rows-thumb img {
  display: block;
  width: 100%;
  height: auto;
}
.p-tpl-rows-body {
  flex: 1 1 0;
  min-width: 0;
}
@media screen and (max-width: 600px) {
  .p-tpl-rows li.has-thumb {
    gap: 14px;
  }
  .p-tpl-rows-thumb {
    flex-basis: 104px;
  }
}

/* ---------- 「どのテンプレートから使うか」 ---------- */
.p-tpl-dl-list > div + div {
  margin-top: 24px;
}
.p-tpl-dl-list dt {
  font-weight: 700;
  color: var(--tpl-main);
}
.p-tpl-dl-list dd {
  margin: 4px 0 0;
}

/* ---------- Factory Advance への案内（線だけの囲み。本文の塗りの囲みと見分ける） ---------- */
.p-tpl-fa {
  margin-top: 32px;
  padding: 1.25em 1.5em;
  border: 1px solid var(--tpl-line);
}
.p-tpl-fa-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--tpl-main);
  margin: 0 0 8px;
}
.p-tpl-fa-funcs {
  margin-top: 12px !important;
}
.p-tpl-fa-funcs li + li {
  margin-top: 6px;
}
.p-tpl-fa-links {
  margin-top: 16px !important;
  padding-top: 14px;
  border-top: 1px solid var(--tpl-faint);
}

/* ---------- よくある質問 ---------- */
.p-tpl-faq > div {
  padding: 20px 0;
  border-bottom: 1px solid var(--tpl-line);
}
.p-tpl-faq > div:first-child {
  padding-top: 0;
}
.p-tpl-faq dt {
  font-weight: 700;
  display: flex;
  gap: 0.5em;
}
.p-tpl-faq dd {
  margin: 8px 0 0;
  display: flex;
  gap: 0.5em;
}
.p-tpl-faq span {
  flex: none;
  font-weight: 700;
  color: var(--tpl-main);
}

/* ---------- スマホ ---------- */
@media screen and (max-width: 768px) {
  .p-templates {
    font-size: 16px;
    padding-bottom: 56px;
  }
  .p-tpl-inner {
    padding: 0 16px;
  }
  .p-tpl-h1 {
    font-size: 26px;
  }
  .p-tpl-h2 {
    font-size: 23px;
    padding: 10px 14px;
    margin-left: -16px;
    margin-right: -16px;
  }
  .p-tpl-h3 {
    font-size: 19px;
  }
  .p-tpl-section {
    margin-top: 56px;
  }
  .p-tpl-btn {
    display: block;
    font-size: 17px;
  }
  .p-tpl-table thead {
    display: none;
  }
  .p-tpl-table,
  .p-tpl-table tbody,
  .p-tpl-table tr,
  .p-tpl-table tbody th,
  .p-tpl-table tbody td {
    display: block;
    width: 100%;
  }
  .p-tpl-table tr {
    border-bottom: 1px solid var(--tpl-faint);
    padding: 10px 0;
  }
  .p-tpl-table tbody tr:first-child {
    border-top: 1px solid var(--tpl-line);
  }
  .p-tpl-table tbody tr:last-child {
    border-bottom: 1px solid var(--tpl-line);
  }
  .p-tpl-table tbody th,
  .p-tpl-table tbody td,
  .p-tpl-table tbody tr:last-child th,
  .p-tpl-table tbody tr:last-child td {
    border: 0;
    padding: 2px 0;
  }
  .p-tpl-fa {
    padding: 1em 1.25em;
  }
}
