@charset "UTF-8";
/* =========================================================
   無料計算ツール（/tools/ と配下の計算ページ）
   functions.php で該当ページだけ読み込む。配色は機能ページ・料金ページと同じ
   （ブルー #1266b1 / ライトブルー #009ede / 淡色 #f1f6fc・#f6fafd / 罫線 #d6e4f3）。
   テーマに全体の box-sizing が無いので、ここで打ち消す。
   ========================================================= */
.c-tool,
.c-tool *,
.c-tool-next,
.c-tool-next *,
.c-tool-cards,
.c-tool-cards * {
  box-sizing: border-box;
}

.c-tool-privacy {
  margin-top: 20px;
  padding: 12px 16px 12px 40px;
  background: #f6fafd;
  border: 1px solid #d6e4f3;
  border-radius: 6px;
  font-size: 14px;
  line-height: 1.7;
  position: relative;
}
.c-tool-privacy::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 17px;
  width: 12px;
  height: 7px;
  border-left: 2px solid #1266b1;
  border-bottom: 2px solid #1266b1;
  transform: rotate(-45deg);
}

.c-tool-noscript {
  padding: 12px 16px;
  background: #fff4e5;
  border: 1px solid #f0c27a;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ---------- レイアウト ---------- */
.c-tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.c-tool-grid--side {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.c-tool-grid + .c-tool-grid,
.c-tool-grid + .c-tool-panel,
.c-tool-panel + .c-tool-grid,
.c-tool-case,
.c-tool-chart,
.c-tool-rate-link {
  margin-top: 24px;
}
.c-tool-col {
  min-width: 0;
}
.c-tool-col > .c-tool-panel + .c-tool-panel {
  margin-top: 24px;
}

.c-tool-panel {
  background: #fff;
  border: 1px solid #d6e4f3;
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
}
.c-tool-panel--result {
  border: 2px solid #1266b1;
}
.c-tool-panel-title {
  font-size: 17px;
  font-weight: 700;
  color: #1266b1;
  line-height: 1.5;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #e3ebf5;
}
.c-tool-panel-lead {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
}
.c-tool-panel-lead a,
.c-tool-rate-hint a,
.c-tool-result-foot a,
.c-tool-next-doc-more a,
.c-tool-article a {
  color: #1266b1;
  text-decoration: underline;
}
.c-tool-rate-hint {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 14px;
  padding: 10px 14px;
  background: #f6fafd;
  border-left: 3px solid #009ede;
  border-radius: 4px;
}

/* ---------- 入力欄 ---------- */
.c-tool-fields {
  display: grid;
  gap: 16px;
}
.c-tool-label {
  display: block;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 6px;
}
.c-tool-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #b9c9dc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}
.c-tool-input:focus-within {
  border-color: #1266b1;
  box-shadow: 0 0 0 3px rgba(18, 102, 177, 0.15);
}
.c-tool-input input {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  border: none;
  outline: none;
  padding: 10px 12px;
  font-size: 17px;
  font-family: inherit;
  text-align: right;
  background: transparent;
  color: #222;
}
.c-tool-row-name .c-tool-input input {
  text-align: left;
  font-size: 15px;
}
.c-tool-unit {
  flex: none;
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f1f6fc;
  color: #444;
  font-size: 14px;
  white-space: nowrap;
  border-left: 1px solid #d6e4f3;
}
.c-tool-input input[aria-invalid="true"] {
  background: #fdf1f0;
}
.c-tool-input:has(input[aria-invalid="true"]) {
  border-color: #c0392b;
}
.c-tool-hint {
  font-size: 13px;
  line-height: 1.6;
  color: #666;
  margin-top: 6px;
}
.c-tool-error {
  font-size: 13px;
  line-height: 1.6;
  color: #c0392b;
  font-weight: 700;
  margin-top: 4px;
}

/* ---------- 結果 ---------- */
.c-tool-result > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed #d6e4f3;
}
.c-tool-result > div:last-child {
  border-bottom: none;
}
.c-tool-result dt {
  font-size: 14px;
  line-height: 1.5;
  min-width: 0;
}
.c-tool-result dt small {
  display: block;
  font-size: 12px;
  color: #666;
  font-weight: 500;
}
.c-tool-result dd {
  flex: none;
  max-width: 60%;
  text-align: right;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.c-tool-result dd output {
  overflow-wrap: anywhere;
  white-space: normal;
}
.c-tool-result dd span {
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
  color: #555;
}
.c-tool-result > div.is-sub {
  background: #f6fafd;
  margin: 0 -10px;
  padding: 9px 10px;
}
.c-tool-result > div.is-main {
  background: #f1f6fc;
  border-radius: 6px;
  border-bottom: none;
  margin: 6px -10px;
  padding: 12px 10px;
}
.c-tool-result > div.is-main dt {
  font-weight: 700;
  color: #1266b1;
}
.c-tool-result > div.is-main dd {
  font-size: 24px;
  color: #1266b1;
  line-height: 1.3;
}
.c-tool-result-note {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
  background: #f6f6f6;
  padding: 8px 12px;
  border-radius: 4px;
}
.c-tool-result-note.is-error {
  color: #c0392b;
  background: #fdf1f0;
}
.c-tool-result-foot {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
  color: #444;
}
.c-tool-level {
  margin: 8px 0 12px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
  background: #fff8ec;
  border-left: 3px solid #c4820f;
  border-radius: 4px;
}
.c-tool-level:empty {
  display: none;
}

/* ---------- 見積：工程の行 ---------- */
.c-tool-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr) 56px;
  gap: 6px 10px;
  align-items: start;
  padding: 12px 0;
  border-top: 1px solid #e3ebf5;
}
.c-tool-row-name {
  grid-column: 1 / -1;
}
.c-tool-row .c-tool-input input {
  padding: 8px 8px;
  font-size: 15px;
}
.c-tool-row .c-tool-unit {
  padding: 0 6px;
  font-size: 12px;
}
.c-tool-row-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  margin-bottom: 2px;
}
.c-tool-row-cost {
  align-self: end;
  padding-bottom: 8px;
  text-align: right;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.c-tool-row-del {
  align-self: end;
  padding-bottom: 2px;
}
.c-tool-del {
  width: 100%;
  padding: 7px 0;
  font-size: 13px;
  font-family: inherit;
  color: #c0392b;
  background: #fff;
  border: 1px solid #e3b7b2;
  border-radius: 4px;
  cursor: pointer;
}
.c-tool-del:hover,
.c-tool-del:focus-visible {
  background: #fdf1f0;
}
.c-tool-add {
  margin-top: 12px;
  padding: 9px 18px 9px 34px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #1266b1;
  background: #fff;
  border: 2px solid #1266b1;
  border-radius: 4px;
  cursor: pointer;
  position: relative;
}
.c-tool-add::before,
.c-tool-add::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  width: 12px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}
.c-tool-add::after {
  transform: rotate(90deg);
}
.c-tool-add:hover,
.c-tool-add:focus-visible {
  background: #1266b1;
  color: #fff;
}
.c-tool-add:disabled {
  opacity: 0.5;
  cursor: default;
}

/* 歩留まり：工程の行は「歩留まり・ここまでの直行率・削除」の3列 */
.c-tool-row--2 {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 56px;
}
/* タクトタイム：工程の行は「サイクルタイム・判定・人数・削除」の4列。間に合わない工程は判定の文字を赤く */
.c-tool-row--ct {
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) 56px;
}
.c-tool-row.is-ng .c-tool-row-verdict {
  color: #c0392b;
}
.c-tool-fields--after {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e3ebf5;
}

/* 単位の切り替え（重量・面積） */
.c-tool-switch {
  border: none;
  margin: 0 0 16px;
  padding: 0;
  min-width: 0;
}
.c-tool-switch label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 20px;
  font-size: 15px;
  line-height: 1.6;
  cursor: pointer;
}
.c-tool-switch input {
  /* reset.css が入力欄の見た目を消しているので、ラジオボタンの丸を戻す */
  -webkit-appearance: radio;
  -moz-appearance: radio;
  appearance: auto;
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #1266b1;
}

.c-tool-offer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #d6e4f3;
}
.c-tool-offer-title {
  font-weight: 700;
  color: #1266b1;
  margin-bottom: 4px;
}
.c-tool-offer-verdict {
  margin-top: 8px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.7;
  background: #fff8ec;
  border-left: 3px solid #c4820f;
  border-radius: 4px;
}

/* ---------- 損益分岐点図 ---------- */
.c-tool-chart-body svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
}
.c-tool-chart-body svg[hidden] {
  display: none;
}
.c-chart-grid {
  stroke: #e3ebf5;
  stroke-width: 1;
}
.c-chart-axis {
  stroke: #888;
  stroke-width: 1;
}
.c-chart-tick {
  font-size: 12px;
  fill: #666;
}
.c-chart-label {
  font-size: 13px;
  font-weight: 700;
  fill: #333;
}
.c-chart-sales {
  stroke: #1266b1;
  stroke-width: 3;
}
.c-chart-cost {
  stroke: #c4820f;
  stroke-width: 3;
}
.c-chart-fixed {
  stroke: #999;
  stroke-width: 2;
  stroke-dasharray: 6 4;
}
.c-chart-guide {
  stroke: #1266b1;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.c-chart-now {
  stroke: #009ede;
  stroke-width: 1.5;
  stroke-dasharray: 2 4;
}
.c-chart-bep {
  fill: #fff;
  stroke: #1266b1;
  stroke-width: 3;
}
.c-tool-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 10px;
  font-size: 13px;
}
.c-tool-legend li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.c-tool-legend li::before {
  content: "";
  width: 22px;
  height: 0;
  border-top: 3px solid #1266b1;
}
.c-tool-legend li.is-cost::before {
  border-top-color: #c4820f;
}
.c-tool-legend li.is-fixed::before {
  border-top: 2px dashed #999;
}

/* ---------- チャージレート計算ツールへの案内 ---------- */
.c-tool-rate-link {
  background: #fff;
  border: 1px solid #d6e4f3;
  border-left: 4px solid #009ede;
  border-radius: 8px;
  padding: 20px 24px;
  font-size: 15px;
  line-height: 1.8;
}
.c-tool-rate-link-title {
  font-weight: 700;
  color: #1266b1;
  font-size: 16px;
  margin-bottom: 4px;
}
.c-tool-ext {
  display: inline-block;
  margin-top: 12px;
  padding: 10px 40px 10px 20px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
  background: #1266b1;
  border: 2px solid #1266b1;
  border-radius: 4px;
  position: relative;
  transition: 0.3s ease-in-out;
}
.c-tool-ext::after {
  content: "";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -4px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}
.c-tool-ext:hover {
  background: #fff;
  color: #1266b1;
}

/* ---------- 次の一歩（資料・デモ・機能・記事） ---------- */
.c-tool-next-title {
  font-size: 22px;
  font-weight: 700;
  color: #1266b1;
  text-align: center;
  line-height: 1.5;
  margin-bottom: 12px;
}
.c-tool-next-lead {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 24px;
}
.c-tool-next-doc {
  display: flex;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: #f6fafd;
  border: 1px solid #d6e4f3;
  border-radius: 8px;
}
.c-tool-next-doc-img {
  flex: 0 0 220px;
}
.c-tool-next-doc-img img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid #d6e4f3;
  background: #fff;
}
.c-tool-next-doc-txt {
  flex: 1 1 auto;
  min-width: 0;
}
.c-tool-next-doc-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #c4820f;
  border-radius: 3px;
  padding: 2px 8px;
  line-height: 1.6;
}
.c-tool-next-doc-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.5;
  margin: 6px 0 8px;
}
.c-tool-next-doc-desc {
  font-size: 14px;
  line-height: 1.8;
}
.c-tool-next-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin-top: 18px;
}
.c-tool-next-btns .l-btn-main {
  text-align: left;
}
.c-tool-next-btn-sub a {
  font-size: 16px;
  background: #1266b1;
  border: 2px solid #1266b1;
  border-radius: 4px;
  position: relative;
  display: inline-block;
  padding: 12px 34px 10px 26px;
  color: #fff;
  transition: 0.3s ease-in-out;
  font-weight: 600;
  line-height: 1;
}
.c-tool-next-btn-sub a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 15px;
  border-radius: 1px;
  margin-top: -2px;
  transition: 0.3s ease-in-out;
}
.c-tool-next-btn-sub a:hover {
  background: #fff;
  color: #1266b1;
}
.c-tool-next-btn-sub a:hover::after {
  border-color: #1266b1;
}
.c-tool-next-doc-more {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.7;
}
.c-tool-next-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 32px;
  margin-top: 32px;
}
.c-tool-next-col {
  flex: 1 1 320px;
  min-width: 0;
}
.c-tool-next-col-title {
  font-size: 15px;
  font-weight: 700;
  color: #1266b1;
  margin-bottom: 12px;
}
.c-tool-next-list li + li {
  margin-top: 10px;
}
.c-tool-next-list a {
  display: block;
  position: relative;
  padding: 13px 34px 13px 16px;
  border: 1px solid #e0e6ec;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
  transition: 0.2s ease-in-out;
}
.c-tool-next-list a:hover {
  border-color: #1266b1;
  background: #f6fafd;
  color: #1266b1;
}
.c-tool-next-list a::after {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 2px solid #1266b1;
  border-right: 2px solid #1266b1;
  border-radius: 1px;
  transform: rotate(45deg) translateY(-50%);
  position: absolute;
  top: 50%;
  right: 16px;
  margin-top: -2px;
}
.c-tool-next-note {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

/* ---------- 本文（計算式と用語・結果の読み方） ---------- */
.c-tool-article .c-func-glossary {
  margin-bottom: 56px;
}
.c-tool-article-h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.6;
  margin: 28px 0 10px;
  padding-left: 12px;
  border-left: 4px solid #1266b1;
}
.c-tool-article .c-case-page-h2 + .c-tool-article-h3 {
  margin-top: 0;
}
.c-tool-article p {
  font-size: 16px;
  line-height: 1.95;
}

/* ---------- ツールのカード（一覧・相互リンク） ---------- */
.c-tool-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.c-tool-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 24px;
  background: #fff;
  border: 1px solid #d6e4f3;
  border-radius: 8px;
  color: #333;
  transition: 0.2s ease-in-out;
}
.c-tool-card a:hover {
  border-color: #1266b1;
  box-shadow: 0 4px 14px rgba(18, 102, 177, 0.12);
}
.c-tool-card.is-external {
  grid-column: 1 / -1;
}
.c-tool-card.is-external a {
  border: 2px solid #1266b1;
  background: #f6fafd;
}
.c-tool-card-tag {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: #009ede;
  border-radius: 3px;
  padding: 2px 8px;
  margin-bottom: 8px;
  line-height: 1.6;
}
.c-tool-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #1266b1;
  line-height: 1.5;
  margin-bottom: 8px;
}
.c-tool-card-lead {
  font-size: 14px;
  line-height: 1.8;
}
.c-tool-card-lead + .c-tool-card-lead {
  margin-top: 6px;
}
.c-tool-card-input {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: #555;
}
.c-tool-card-input span {
  display: inline-block;
  margin-right: 8px;
  font-weight: 700;
  color: #1266b1;
}
.c-tool-card-more {
  margin-top: auto;
  padding-top: 14px;
  align-self: flex-end;
  font-size: 14px;
  font-weight: 700;
  color: #1266b1;
  position: relative;
  padding-right: 16px;
}
.c-tool-card-more::after {
  content: "";
  position: absolute;
  right: 2px;
  bottom: 0.55em;
  width: 6px;
  height: 6px;
  border-top: 2px solid #1266b1;
  border-right: 2px solid #1266b1;
  transform: rotate(45deg);
}
.c-tool-other-all {
  margin-top: 20px;
  text-align: right;
  font-size: 14px;
}
.c-tool-other-all a {
  color: #1266b1;
  text-decoration: underline;
}

/* ---------- スマホ ---------- */
@media screen and (max-width: 900px) {
  .c-tool-grid,
  .c-tool-grid--side {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media screen and (max-width: 768px) {
  .c-tool-panel {
    padding: 18px 16px;
  }
  .c-tool-panel-title {
    font-size: 16px;
  }
  .c-tool-result > div.is-main dd {
    font-size: 21px;
  }
  .c-tool-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .c-tool-row-cost {
    text-align: left;
  }
  .c-tool-row--2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 56px;
  }
  .c-tool-row--ct {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .c-tool-next-title {
    font-size: 18px;
  }
  .c-tool-next-doc {
    flex-direction: column;
    align-items: stretch;
    padding: 20px 16px;
    gap: 16px;
  }
  .c-tool-next-doc-img {
    flex: none;
    max-width: 240px;
    margin: 0 auto;
  }
  .c-tool-next-btns {
    flex-direction: column;
  }
  .c-tool-next-btns .l-btn-main,
  .c-tool-next-btns .c-tool-next-btn-sub {
    text-align: center;
  }
  .c-tool-next-btns a {
    display: block;
  }
  .c-tool-next-list a {
    font-size: 14px;
  }
  .c-tool-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .c-tool-article p {
    font-size: 15px;
  }
  .c-tool-rate-link {
    padding: 16px;
  }
  /* 図は viewBox ごと縮むので、スマホでは文字を大きめに指定する */
  .c-chart-tick {
    font-size: 19px;
  }
  .c-chart-label {
    font-size: 21px;
  }
  .c-tool-ext {
    display: block;
  }
}
