/**
 * CCUSレベル別年収（賃金）チェックシート ページ専用CSS
 * simulator.css（保険料計算ページ）のデザイントークンに準拠:
 *   アクセント #fece00 ／ th #808080 ／ td #e6e6e6・#f3f3f3 ／ 黒枠セレクト
 *   font-weight 300 基調 ／ 結果ボックス #707070 枠 ／ 詳細表 #e6e6e6 罫線
 * simulator.css は保険料ページ専用読み込みのため、必要スタイルを本ファイルに内包。
 * セレクトの矢印は simulator と同形状の data URI（画像パス非依存）。
 */
[v-cloak] { display: none; }

.p-wage-check { color: #000; }

/* 見出し（.p-simulator__heading と同装飾） */
.p-wage-check__heading {
  padding-left: 40px;
  color: #000;
  font-size: 20px;
  font-weight: 300;
  line-height: 1.6;
  position: relative;
}
.p-wage-check__heading::before {
  content: "";
  display: block;
  width: 20px;
  height: 100%;
  background: #e6e6e6;
  pointer-events: none;
  position: absolute;
  top: 0;
  left: 0;
}

/* リード・定義・出典 */
.p-wage-check__lead {
  margin-top: 17px;
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}
.p-wage-check__defs {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.p-wage-check__defs li {
  font-size: 12px;
  font-weight: 300;
  line-height: 1.67;
}
.p-wage-check__source {
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.67;
  color: #808080;
}

/* 入力テーブル（.p-simulator-table と同装飾。行数が動的なため nth-of-type は使わず統一パディング） */
.p-wage-check-table { margin-top: 17px; }
.p-wage-check-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 6px;
}
.p-wage-check-table table tr th,
.p-wage-check-table table tr td {
  padding: 0 28px;
  vertical-align: middle;
}
.p-wage-check-table table tr th:last-of-type,
.p-wage-check-table table tr td:last-of-type { width: 290px; }
.p-wage-check-table table tr th {
  background: #808080;
  color: #fff;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6875;
  text-align: center;
}
.p-wage-check-table table tr td {
  padding-top: 13px;
  padding-bottom: 13px;
  background: #e6e6e6;
}
.p-wage-check-table table tr.is-sub td { background: #f3f3f3; }
.p-wage-check-table__heading {
  margin: 0;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6875;
}
.p-wage-check-table__summary {
  margin: 0;
  color: #000;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.67;
}

/* セレクト（.p-simulator-table__select と同装飾・矢印は data URI） */
.p-wage-check-table__select { width: 100%; position: relative; }
.p-wage-check-table__select::before {
  content: "";
  display: block;
  width: 12px;
  height: 8px;
  margin: auto;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 12 8"><path d="M0 0h12L6 8z" fill="%23000"/></svg>') no-repeat top left/100% 100%;
  pointer-events: none;
  position: absolute;
  top: 0;
  right: 10px;
  bottom: 0;
}
.p-wage-check-table__select select {
  width: 100%;
  padding: 5px 29px 5px 20px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  cursor: pointer;
  outline: none;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6875;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
}
.p-wage-check-table__select select:disabled { color: #808080; }

/* テキスト入力（セレクトと同トーン） */
.p-wage-check-table__input {
  display: flex;
  align-items: center;
  gap: 8px;
}
.p-wage-check-table__input input {
  flex: 1;
  min-width: 0;
  padding: 5px 12px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  outline: none;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6875;
}
.p-wage-check-table__input .u-unit {
  font-size: 14px;
  font-weight: 300;
  flex-shrink: 0;
}

/* 賃金形態タブ（セレクト系の白＋黒枠、選択中はアクセント #fece00） */
.p-wage-check-table__tabs { display: flex; gap: 8px; }
.p-wage-check-table__tabs button {
  flex: 1;
  padding: 5px 6px;
  background: #fff;
  border: 1px solid #000;
  border-radius: 3px;
  cursor: pointer;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6875;
}
.p-wage-check-table__tabs button.is-active {
  background: #fece00;
  font-weight: 600;
}
.p-wage-check-table__tabs button:hover { opacity: 0.7; }

/* チェック開始ボタン（.p-simulator-table__buttons と同装飾） */
.p-wage-check-table__buttons { padding-top: 30px; }
.p-wage-check-table__buttons button {
  display: block;
  width: 100%;
  max-width: 192px;
  padding: 12px 10px;
  margin: 10px auto 0 auto;
  background: #fece00;
  border: 0;
  box-shadow: 0 2px 0 0 #ccc;
  cursor: pointer;
  color: #000;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6875;
}
.p-wage-check-table__buttons button:hover { opacity: 0.7; }
.p-wage-check-table__buttons button:disabled { background: #e6e6e6; cursor: default; box-shadow: none; }

/* エラー */
.p-wage-check__error {
  margin: 16px 0 0;
  color: #c0392b;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

/* 年収推計（.p-simulator-result と同装飾） */
.p-wage-check-result {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}
.p-wage-check-result__wrap {
  min-width: 464px;
  padding: 10px 28px;
  margin: 0 auto;
  border: 1px solid #707070;
}
.p-wage-check-result__lead {
  margin-bottom: 0;
  color: #000;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.6875;
  text-align: center;
}
.p-wage-check-result__lead em {
  color: #000;
  font-weight: 600;
  font-style: normal;
}
.p-wage-check-result__lead strong {
  display: inline-block;
  margin: 0 12px;
  color: #000;
  font-size: 24px;
  font-weight: 600;
  position: relative;
  top: 2px;
}
.p-wage-check-result__note {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 300;
  text-align: center;
  color: #808080;
}

/* 標準値・目標値カード（.p-simulator-detail と同装飾を2枚横並び） */
.p-wage-check-detail {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 35px;
}
.p-wage-check-detail table {
  flex: 1 1 300px;
  max-width: 400px;
  border-bottom: 1px solid #e6e6e6;
  border-collapse: collapse;
}
.p-wage-check-detail table tr th,
.p-wage-check-detail table tr td {
  padding: 5px 16px;
  color: #000;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.71;
}
.p-wage-check-detail table tr th {
  text-align: left;
  white-space: nowrap;
}
.p-wage-check-detail table tr td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.p-wage-check-detail table tr.is-border { border-top: 1px solid #e6e6e6; }
.p-wage-check-detail table tr.is-base th,
.p-wage-check-detail table tr.is-base td { font-weight: 600; }
.p-wage-check-detail table tr.is-judge th,
.p-wage-check-detail table tr.is-judge td { font-weight: 600; font-size: 16px; }
.is-minus { color: #c0392b; }
.is-plus  { color: #2e7d43; }
.is-clear { color: #2e7d43; }

/* 注記（.p-simulator-bottom と同装飾） */
.p-wage-check-bottom { margin-top: 40px; }
.p-wage-check-bottom__heading {
  color: #000;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.72;
}
.p-wage-check-bottom__heading a {
  border-bottom: 2px solid #000;
  color: #000;
  font-weight: 600;
  text-decoration: none !important;
}
.p-wage-check-bottom__heading a:hover {
  border-color: #fece00;
  color: #fece00;
}
.p-wage-check-bottom__remarks {
  margin-top: 16px;
  padding-left: 1.2em;
  list-style: none;
}
.p-wage-check-bottom__remarks li {
  color: #000;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.71;
  text-indent: -1.2em;
}
.p-wage-check-bottom__remarks a {
  border-bottom: 2px solid #000;
  color: #000;
  font-weight: 600;
  text-decoration: none !important;
}
.p-wage-check-bottom__remarks a:hover {
  border-color: #fece00;
  color: #fece00;
}

/* スマホ（simulator.css の 768px ブレークポイントに合わせる） */
@media (max-width: 768px) {
  .p-wage-check-table table {
    border-collapse: inherit;
    border-spacing: 0;
  }
  .p-wage-check-table table tr th,
  .p-wage-check-table table tr td {
    display: block;
    padding: 10px 24px;
  }
  .p-wage-check-table table tr th { display: none; }
  .p-wage-check-table table tr th:last-of-type,
  .p-wage-check-table table tr td:last-of-type { width: auto; }
  .p-wage-check-table table tr td:first-of-type { padding-bottom: 4px; }
  .p-wage-check-table__tabs button:hover { opacity: 1; }
  .p-wage-check-table__buttons { padding-top: 14px; }
  .p-wage-check-table__buttons button { padding: 7px 10px; }
  .p-wage-check-table__buttons button:hover { opacity: 1; }
  .p-wage-check-result { margin-top: 24px; }
  .p-wage-check-result__wrap {
    width: 100%;
    min-width: inherit;
    padding: 16px 20px;
  }
  .p-wage-check-result__lead strong { margin: 0 4px; }
  .p-wage-check-detail { margin-top: 30px; gap: 20px; }
  .p-wage-check-detail table { flex-basis: 100%; max-width: 100%; }
  .p-wage-check-bottom__heading a { padding-bottom: 3px; }
  .p-wage-check-bottom__heading a:hover,
  .p-wage-check-bottom__remarks a:hover {
    border-color: #000;
    color: #000;
  }
}
