/* 実績数字・施工品質・保証・店舗の責任体制（php/trust.php の部品）
   色は common.css の正本トークンだけを使う。 */

/* ---- 確認用の印（ローカルのプレビューでだけ出る） ---- */
.trust-draft {
  display: inline-block;
  margin: 0 0 0 8px;
  padding: 1px 8px;
  border: 1px solid var(--accent-strong);
  font-family: var(--font-main);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  background: var(--paper-deep);
  vertical-align: middle;
}

.trust-photo-pending {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  margin: 0;
  padding: var(--space-m);
  border: 1px dashed var(--accent-strong);
  background: var(--paper-deep);
  font-size: var(--fs-xs);
  line-height: 1.7;
  text-align: center;
  color: var(--ink-500);
}

/* ---- 数字で見るSOTORIE（トップ） ---- */
.trust-figures {
  background: var(--surface);
  color: var(--ink-700);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--line);
}

.trust-figures__inner {
  box-sizing: border-box;
  width: 90%;
  max-width: 920px;
  margin: 0 auto;
}

.trust-figures__title {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-size: var(--fs-l);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-align: center;
  color: var(--ink-900);
}

.trust-figures__text {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: var(--fs-m);
  line-height: 1.8;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--ink-900);
}

.trust-figures__basis {
  margin: 0 0 20px;
  font-size: var(--fs-xs);
  line-height: 1.8;
  text-align: center;
  color: var(--ink-500);
}

.trust-figures__works {
  margin: 0;
  font-size: var(--fs-s);
  text-align: center;
}

.trust-figures__works a,
.trust-figures__foot a {
  color: var(--ink-900);
}

.trust-figures__foot {
  margin: 24px 0 0;
  font-size: var(--fs-xs);
  line-height: 1.8;
  text-align: center;
  color: var(--ink-500);
}

@media (min-width: 768px) {
  .trust-figures {
    padding: 72px 0 60px;
  }

  .trust-figures__text {
    font-size: var(--fs-l);
  }
}

/* トップの「設計・施工の基準」から詳細ページへ。他の「〜を見る」リンク（.flow-more など）と同じ下線＋矢印にそろえる */
body.top-page .promise-text .promise-more {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 12px 0 0;
  padding: 0 0 3px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--top-ink);
  text-decoration: none;
  border-bottom: 1px solid rgba(26, 26, 26, 0.28);
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

body.top-page .promise-text .promise-more::after {
  content: "→";
  font-size: 12px;
  letter-spacing: 0;
  opacity: 0.75;
}

body.top-page .promise-text .promise-more:hover {
  opacity: 0.7;
  border-bottom-color: var(--top-ink);
}

/* ---- 施工要領：現場で確認していること ---- */
.trust-checks {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-check {
  padding: 36px 0;
  border-top: 1px solid var(--line);
}

.trust-check:first-child {
  padding-top: 8px;
  border-top: 0;
}

.trust-check__num {
  margin: 0 0 6px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-500);
}

.trust-check__title {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: var(--fs-l);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.04em;
  color: var(--ink-900);
}

.trust-check__media {
  margin: 0 0 20px;
}

.trust-check__media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.trust-check__label {
  margin: 0 0 6px;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-500);
}

.trust-check__list {
  margin: 0 0 18px;
  padding: 0 0 0 1.2em;
  font-size: var(--fs-s);
  line-height: 1.9;
  color: var(--ink-700);
}

.trust-check__meaning {
  margin: 0;
  font-size: var(--fs-s);
  line-height: 1.95;
  color: var(--ink-700);
}

@media (min-width: 768px) {
  .trust-check__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  .trust-check__media {
    margin: 0;
  }
}

/* ---- 保証ページ ---- */
.trust-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-s);
  line-height: 1.8;
}

.trust-table th,
.trust-table td {
  padding: 14px 8px 14px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.trust-table thead th {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--ink-500);
  border-top: 1px solid var(--line);
}

.trust-table tbody th {
  font-weight: 500;
  color: var(--ink-900);
}

.trust-table__period {
  white-space: nowrap;
  font-family: var(--font-serif);
  font-size: var(--fs-m);
  color: var(--ink-900);
}

.trust-table__note {
  color: var(--ink-500);
  font-size: var(--fs-xs);
}

.trust-dl {
  margin: 0;
  border-top: 1px solid var(--line);
}

.trust-dl > div {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: var(--space-m);
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-s);
  line-height: 1.85;
}

.trust-dl dt {
  font-weight: 500;
  color: var(--ink-900);
}

.trust-dl dd {
  margin: 0;
  color: var(--ink-700);
}

.trust-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: trust-step;
  border-top: 1px solid var(--line);
}

.trust-steps li {
  counter-increment: trust-step;
  display: grid;
  grid-template-columns: 2em 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-s);
  line-height: 1.85;
}

.trust-steps li::before {
  content: counter(trust-step);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

.trust-steps strong {
  display: block;
  font-weight: 500;
  color: var(--ink-900);
}

.trust-bullets {
  margin: 0;
  padding: 0 0 0 1.2em;
  font-size: var(--fs-s);
  line-height: 1.9;
  color: var(--ink-700);
}

.trust-faq {
  margin: 0;
  border-top: 1px solid var(--line);
}

.trust-faq > div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.trust-faq dt {
  margin: 0 0 6px;
  font-size: var(--fs-s);
  font-weight: 500;
  line-height: 1.8;
  color: var(--ink-900);
}

.trust-faq dd {
  margin: 0;
  font-size: var(--fs-s);
  line-height: 1.9;
  color: var(--ink-700);
}

/* ---- ご契約の店舗の一覧 ---- */
.trust-shops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
  gap: 28px var(--space-l);
}

.trust-shops__pref {
  min-width: 0;
}

.trust-shops__title {
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: var(--fs-m);
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink-900);
}

.trust-shops__list {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: var(--fs-s);
  line-height: 1.7;
}

.trust-shops__list li {
  padding: 5px 0;
}

.trust-shops__list a,
.trust-shops__tel a {
  color: var(--ink-900);
}

.trust-shops__list a,
.trust-link {
  color: var(--ink-900);
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.trust-shops__list a:hover,
.trust-link:hover {
  text-decoration-color: var(--ink-900);
}

.trust-shops__tel {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: var(--fs-l);
  letter-spacing: 0.04em;
}

.trust-pending-note {
  margin: 0;
  font-size: var(--fs-xs);
  line-height: 1.8;
  color: var(--ink-500);
}

@media (max-width: 480px) {
  .trust-dl > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* 保証ページ：想定ケースの表（判断の欄は折り返し、スマホでは縦に積む） */
.trust-table--scenarios .trust-table__period {
  white-space: normal;
  font-size: var(--fs-s);
  font-weight: 500;
  min-width: 9em;
}

.trust-table--scenarios .trust-table__note {
  font-size: var(--fs-s);
  color: var(--ink-700);
}

@media (max-width: 640px) {
  .trust-table--scenarios thead {
    display: none;
  }

  .trust-table--scenarios tbody tr {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .trust-table--scenarios tbody th,
  .trust-table--scenarios tbody td {
    display: block;
    padding: 0;
    border-bottom: 0;
  }

  .trust-table--scenarios tbody td {
    margin-top: 6px;
  }
}

.trust-table--scenarios {
  table-layout: fixed;
}

.trust-table--scenarios th,
.trust-table--scenarios td {
  word-break: normal;
  overflow-wrap: break-word;
  line-break: strict;
  padding-right: 16px;
}

.trust-table--scenarios thead th:nth-child(1) { width: 36%; }
.trust-table--scenarios thead th:nth-child(2) { width: 24%; }

@media (max-width: 640px) {
  .trust-table--scenarios {
    table-layout: auto;
  }
}

/* 保証ページ：最終CTAの「無料相談」ボタンと相談ボタンの間をあける */
.w-consult {
  margin: 16px 0 0;
}
