/* ==========================================================================
 * バックペイ計算ツール - 専用CSS（モバイルファースト）
 * プレフィックス: bpc-
 *
 * 残業代LP（zangyodai）の lib/css/overtime-calculator.css を otc- → bpc- に置き換えて
 * そのまま持ってきている（2026-10-01・見た目を残業代計算ツールに揃えるため）。
 * 残業代側を直したら、こちらにも同じ変更を当てる。
 * このサイト固有の差分は次の2か所だけ:
 *   - 入力欄の指定は .bpc-wrapper input.bpc-spinner-input の形（詳細度 0,2,1）。
 *     このサイトの親テーマ style.css の input[type="number"] { padding:8px; border:… }
 *     (0,1,1) にクラス1つでは負ける（CLAUDE.md「CSS の詳細度に注意」）
 *   - 末尾の「バックペイ固有」ブロック（確認帯・任意バッジ・補足文・注記・期間の根拠）
 * ========================================================================== */

/* --- リセット・ベース --- */
.bpc-wrapper *,
.bpc-wrapper *::before,
.bpc-wrapper *::after {
  box-sizing: border-box;
}

/* --- ラッパー（白背景） --- */
.bpc-wrapper {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'メイリオ', sans-serif;
  background: #fff;
  padding: 70px 16px 20px;
  line-height: 1.6;
}

/* --- ヘッダー --- */
.bpc-header {
  text-align: center;
  margin-bottom: 30px;
}

/* 吹き出し画像 */
.bpc-badge-img {
  display: block;
  margin: 0px 0 -12px;
  max-width: 90px;
  height: auto;
}

.bpc-header h2 {
  padding: 0;
  border: none;
  background: none;
  color: #333;
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 20px 0;
  line-height: 1.3;
}

.bpc-header p {
  color: #666;
  font-size: 13px;
  font-weight: 700;
  margin: 0;
}

/* スマホのみ改行 */
.bpc-sp-br {
  display: inline;
}

/* --- カード共通 --- */
.bpc-card {
  background: #648abc;
  border-radius: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  padding: 0;
  margin-bottom: 20px;
  margin-left: -16px;
  margin-right: -16px;
}

/* --- フォーム --- */
.bpc-form-area {
  display: block;
}

.bpc-form-area.bpc-hidden {
  display: none;
}

/* --- フォーム行: スマホ版ストライプ構造 --- */
.bpc-form-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
}

/* ラベル行（白背景ストライプ） */
.bpc-form-row > label {
  background: #fff;
  color: #648abc;
  text-align: center;
  padding: 10px 16px 6px;
  font-size: 16px;
  font-weight: 600;
  border-top: 4px solid #648abc;
}

/* --- 入力ラッパー（スピナー + 単位）: スマホ版Grid 3カラム --- */
.bpc-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 25px 16px 21px;
  gap: 8px;
}

.bpc-input-wrap .bpc-spinner {
  grid-column: 2;
}

.bpc-unit {
  grid-column: 3;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  justify-self: start;
}

/* --- エラーメッセージ --- */
.bpc-error-message {
  color: #ffcdd2;
  font-size: 12px;
  margin-top: -12px;
  margin-bottom: 12px;
  padding-left: 128px;
  display: none;
}

.bpc-error-message.bpc-show {
  display: block;
}

/* --- selectボックス --- */
.bpc-select {
  padding: 8px 6px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  text-align: center;
  width: 130px;
  background: #fff;
  color: #333;
  transition: outline-color 0.3s ease;
  cursor: pointer;
}

.bpc-select:focus {
  outline: 2px solid #4a9bd9;
}

.bpc-select.bpc-error {
  outline: 2px solid #dc3545;
}

/* --- 日付selects領域（入力行・青背景） --- */
.bpc-date-selects {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 16px 21px;
  gap: 20px;
}

/* 日付行（年行 / 月行） */
.bpc-date-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

/* 日付ラベル（西暦・年月日）: 固定幅で横位置を揃える */
.bpc-date-label {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  display: inline-block;
  width: 2em;
  text-align: right;
  flex-shrink: 0;
}

.bpc-unit-inline {
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
  display: inline-block;
  width: 2em;
  text-align: left;
}

/* --- date inputスタイル（親テーマ input[type="date"] より詳細度を上げる） --- */
input[type="date"].bpc-date-input {
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  font-size: 15px;
  background: #fff;
  color: #333;
  transition: outline-color 0.3s ease;
  cursor: pointer;
  width: 130px;
  -webkit-appearance: none;
  appearance: none;
  overflow: hidden;
}

input[type="date"].bpc-date-input:focus {
  outline: 2px solid #4a9bd9;
}

input[type="date"].bpc-date-input.bpc-error {
  outline: 2px solid #dc3545;
}

/* --- カスタムスピナー --- */
.bpc-spinner {
  display: flex;
  align-items: stretch;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  width: 130px;
  height: 33px;
}

.bpc-wrapper input.bpc-spinner-input {
  flex: 1;
  width: 100%;
  height: auto;
  border: none;
  border-radius: 0;
  box-shadow: none;
  font-size: 16px;
  text-align: center;
  padding: 8px 4px;
  min-width: 0;
  background: transparent;
  color: #333;
  outline: none;
  -moz-appearance: textfield;
}
.bpc-wrapper input.bpc-spinner-input:focus {
  border: none;
  background: transparent;
}
.bpc-wrapper input.bpc-spinner-input::-webkit-outer-spin-button,
.bpc-wrapper input.bpc-spinner-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bpc-spinner-buttons {
  display: flex;
  flex-direction: column;
  width: 32px;
  flex-shrink: 0;
  border-left: 0;
  background: #9AB1D2;
}

/* モバイル: 給与・残業代・残業時間のスピナーボタンを非表示 */
.bpc-input-wrap .bpc-spinner-buttons {
  display: none;
}

.bpc-spinner-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #9AB1D2;
  font-size: 0;
  cursor: pointer;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
.bpc-spinner-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
}
.bpc-spinner-up::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #fff;
}
.bpc-spinner-down::after {
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #fff;
}
.bpc-spinner-btn:active {
  background: #9AB1D2;
}
.bpc-spinner-up:active::after {
  border-bottom-color: #c0d0e8;
}
.bpc-spinner-down:active::after {
  border-top-color: #c0d0e8;
}
.bpc-spinner-btn.bpc-spinner-up {
  border-bottom: none;
  align-items: flex-end;
  padding-bottom: 3px;
}
.bpc-spinner-btn.bpc-spinner-down {
  align-items: flex-start;
  padding-top: 3px;
}

/* スピナーエラー表示 */
.bpc-spinner.bpc-error {
  outline: 2px solid #dc3545;
}

/* --- 計算ボタンエリア --- */
.bpc-calc-area {
  text-align: center;
  border-top: 4px solid #648abc;
  scroll-margin-top: 60px;
}

.bpc-calc-area-btn.bpc-hidden {
  display: none;
}

/* タイトル行（白背景） */
.bpc-calc-area-title {
  background: #fff;
  color: #30b8ed;
  font-size: 16px;
  font-weight: 700;
  padding: 10px 16px 6px;
}

/* ボタン行（水色背景） */
.bpc-calc-area-btn {
  background: #30b8ed;
  padding: 25px;
}

/* --- 計算ボタン --- */
.bpc-calc-button {
  display: block;
  width: 95px;
  margin-left: auto;
  margin-right: auto;
  padding: 14px 16px;
  background: #fffd45;
  color: #30b8ed;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bpc-calc-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- 結果セクション（水色背景ラッパー） --- */
.bpc-result-section {
  background: #30b8ed;
  padding: 20px 0 0;
}

/* --- 結果表示エリア（スマホ: 白ボックス） --- */
.bpc-result-area {
  background: #fff;
  border-radius: 20px;
  padding: 20px;
  max-width: 100%;
  margin: 0 16px;
  text-align: center;
  animation: bpcFadeIn 0.4s ease;
}

@keyframes bpcFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.bpc-result-row {
  padding: 12px 0;
}

.bpc-result-label-new {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}

.bpc-result-value-new {
  font-size: 20px;
  font-weight: 700;
  color: #648abc;
}

/* 1. 基礎賃金（時給） */
.bpc-result-row:nth-of-type(1) {
  padding: 9px 0;
}

/* 2. 1か月あたりの未払い残業代 */
.bpc-result-row:nth-of-type(2) {
  padding: 19px 0 12px;
}

/* 3. 請求可能月数 */
.bpc-result-row:nth-of-type(3) {
  padding: 19px 0 12px;
}

/* 最終行（合計）強調 */
.bpc-result-row:last-of-type .bpc-result-label-new {
  font-size: 16px;
}

.bpc-result-row:last-of-type .bpc-result-value-new {
  font-size: 27px;
}

.bpc-result-divider {
  border: none;
  border-top: 1px solid rgba(100, 138, 188, 0.3);
  margin: 0 auto;
  width: 82%;
}

/* --- 結果後ボタン --- */
.bpc-result-buttons {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 12px;
  margin-top: 0;
  padding: 20px 16px;
}

.bpc-result-buttons .bpc-calc-button {
  margin-top: 0;
  white-space: nowrap;
}

/* 再計算ボタン */
.bpc-result-buttons .bpc-recalc-button {
  width: 95px;
  padding: 14px 0;
}

/* この内容で相談ボタン */
.bpc-result-buttons a.bpc-calc-button {
  width: 160px;
  padding: 14px 0;
}

/* 再計算ボタン背景色（スマホ: 黄色統一） */
.bpc-recalc-button {
  background: #fffd45;
}

a.bpc-calc-button {
  text-decoration: none;
  text-align: center;
}

a.bpc-calc-button:hover {
  text-decoration: none;
  color: #30b8ed;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* --- 注意事項 --- */
.bpc-disclaimer {
  background: #fff;
  padding: 16px 4px;
  margin-bottom: 0;
  font-size: 11px;
  color: #666;
  line-height: 1.8;
}

/* --- 独立ページ用 --- */
/* ★ツールのページの上端の余白。残業代LPの .overtime-calculator-page は <main> に付いているが、
   このサイトはテンプレートの .content に付けているので、上の余白を 0 にすると固定ヘッダーに潜る。
   テーマ既定の .content の上余白（PC 110px／991px以下 60px）は、ナビ込みの固定ヘッダー
   （PC 143〜146px／991px以下 60px）より小さく、パンくずが隠れる（2026-10-02 公開直後に発覚）。
   ヘッダーの高さを見込んで明示し、パンくずの位置を固定ページ（ヘッダー下から約48px）に揃える */
.content.backpay-calculator-page {
  padding-top: 108px;
}

/* パンくずの左端も固定ページに揃える（style.css 末尾の「パンくずの位置」と同じ基準） */
.backpay-calculator-page > .container > #breadcrumb {
  padding-left: 30px;
}

@media (min-width: 992px) {
  .content.backpay-calculator-page {
    padding-top: 197px;
  }

  .backpay-calculator-page > .container > #breadcrumb {
    padding-left: 0;
  }
}

.backpay-calculator-page .bpc-wrapper {
  max-width: 100%;
  padding-top: 0;
}

/* --- トップページセクション用 --- */
.eb-backpay-calculator-section {
  padding: 0;
}

.eb-backpay-calculator-section .container.inner {
  max-width: 100%;
  padding: 0;
}

/* --- ドラムロールピッカー（モバイルのみ） --- */

/* オーバーレイ背景 */
.bpc-drum-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bpc-drum-overlay.bpc-drum-active {
  opacity: 1;
  visibility: visible;
}

/* 中央ダイアログ */
.bpc-drum-sheet {
  position: fixed;
  top: 50%;
  left: 50%;
  background: #fff;
  border-radius: 16px;
  z-index: 10000;
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.bpc-drum-overlay.bpc-drum-active .bpc-drum-sheet {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

/* ドラムロール表示窓 */
.bpc-drum-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 24px;
}

.bpc-drum-viewport {
  position: relative;
  height: 200px;
  width: 150px;
  overflow: hidden;
}

/* 選択行ハイライト（中央1項目分の帯） */
.bpc-drum-highlight {
  position: absolute;
  top: 80px;
  left: 0;
  right: 0;
  height: 40px;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
  background: rgba(91, 176, 227, 0.08);
  pointer-events: none;
  z-index: 1;
}

/* スクロールコンテナ */
.bpc-drum-scroll {
  height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.bpc-drum-scroll::-webkit-scrollbar {
  display: none;
}

/* 各項目 */
.bpc-drum-item {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #5BB0E3;
  scroll-snap-align: center;
  user-select: none;
  -webkit-user-select: none;
}

/* 上下パディング要素（2項目分=80px） */
.bpc-drum-pad {
  height: 80px;
  flex-shrink: 0;
}

/* --- ユーティリティ --- */
.bpc-hidden {
  display: none !important;
}

/* ==========================================================================
 * デスクトップ対応（768px以上）- PC版は既存デザインを維持
 * ========================================================================== */
@media (min-width: 768px) {
  /* ラッパー幅を他セクション(.inner)と統一 */
  .bpc-wrapper {
    width: 1116px;
    max-width: 100%;
    margin: 0 auto;
    padding: 51px 0 0 0;
  }

  .bpc-header {
    margin-bottom: 66px;
  }

  /* 吹き出し画像サイズ拡大・右寄せ調整 */
  .bpc-badge-img {
    max-width: 205px;
    margin: 0;
    margin-left: 179px;
  }

  .bpc-header h2 {
    font-size: 43px;
    margin-bottom: 38px;
  }

  .bpc-header p {
    font-size: 19px;
  }

  .bpc-sp-br {
    display: none;
  }

  /* カード: 枠線・角丸なし（各セクションで個別制御） */
  .bpc-card {
    border-radius: 0;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    background: transparent;
  }

  /* フォームエリア: 青枠（上・左・右・下）+ 上角丸 */
  .bpc-form-area {
    background: #648abc;
    border-top: 5px solid #648abc;
    border-left: 5px solid #648abc;
    border-right: 5px solid #648abc;
    border-bottom: 5px solid #648abc;
    border-radius: 10px 10px 0 0;
  }

  /* フォームエリア内の最初のラベルだけ上角丸に合わせる */
  .bpc-form-area .bpc-form-row:first-child label {
    border-radius: 6px 6px 0 0;
  }

  /* 計算ボタンエリア: 水色枠（左・右・下）+ 下角丸、border-topなし（マイター効果回避） */
  .bpc-calc-area {
    border-top: none;
    border-left: 5px solid #30b8ed;
    border-right: 5px solid #30b8ed;
    border-bottom: 5px solid #30b8ed;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
  }

  /* 結果表示時: 計算エリアの下枠・下角丸を外す */
  .bpc-card:has(.bpc-result-section:not(.bpc-hidden)) .bpc-calc-area {
    border-bottom: none;
    border-radius: 0;
    overflow: visible;
  }

  /* 結果セクション: 水色枠（左・右・下）+ 下角丸 */
  .bpc-result-section {
    border-left: 5px solid #30b8ed;
    border-right: 5px solid #30b8ed;
    border-bottom: 5px solid #30b8ed;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
  }

  /* 入力フォーム：スマホと同じ縦並びストライプ構造 */
  .bpc-form-row {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-bottom: 0;
  }

  /* PC版: 白背景ラベル（養育費ツールと同様、border-topなし） */
  .bpc-form-row > label {
    background: #fff;
    color: #648abc;
    text-align: center;
    border-top: none;
    padding: 15px 16px;
    font-size: 19px;
    font-weight: 700;
  }

  /* PC版: 入力ラッパー（入力欄を中央、単位は横付き） */
  .bpc-input-wrap {
    display: flex;
    justify-content: center;
    padding: 36px 30px;
    position: relative;
  }

  .bpc-input-wrap .bpc-spinner {
    width: 180px;
  }

  .bpc-wrapper .bpc-input-wrap input.bpc-spinner-input {
    padding: 12px 12px;
  }

  .bpc-unit {
    font-size: 19px;
    font-weight: 500;
    position: absolute;
    left: calc(50% + 90px + 20px);
    top: 50%;
    transform: translateY(-50%);
  }

  /* PC版: selectボックス */
  .bpc-select {
    min-width: 80px;
    font-size: 16px;
  }

  /* PC版: 日付selects中央揃え・padding復元 */
  .bpc-date-selects {
    flex-direction: row;
    justify-content: center;
    padding: 36px 30px;
    gap: 0;
  }

  /* PC版: 日付行は横並びのまま */
  .bpc-date-line {
    gap: 20px;
  }
  .bpc-date-selects .bpc-date-line:last-child {
    margin-left: -38px;
  }

  .bpc-date-label {
    font-size: 19px;
  }

  .bpc-unit-inline {
    font-size: 19px;
  }

  /* PC版: date input */
  input[type="date"].bpc-date-input {
    min-width: 180px;
    font-size: 16px;
  }

  /* PC版: スピナー▲▼ボタンは基本非表示 */
  .bpc-spinner-buttons {
    display: none;
  }
  /* PC版: 年/月スピナーのみ▲▼ボタン表示 */
  .bpc-date-selects .bpc-spinner-buttons {
    display: flex;
    width: 32px;
  }
  .bpc-spinner {
    width: auto;
    min-width: 80px;
    height: auto;
  }
  /* PC版: 年スピナーは幅広め */
  .bpc-date-selects .bpc-date-line:first-child .bpc-spinner {
    width: 190px;
    height: 44px;
  }
  /* PC版: 月スピナー */
  .bpc-date-selects .bpc-date-line:last-child .bpc-spinner {
    width: 130px;
    height: 44px;
  }
  .bpc-wrapper input.bpc-spinner-input {
    padding: 8px 6px;
    font-size: 19px;
  }

  .bpc-calc-area-title {
    display: none;
  }

  .bpc-calc-area-btn {
    background: #30b8ed;
    padding: 36px 36px 31px;
  }

  /* --- 計算ボタン: PC版のスタイル --- */
  .bpc-calc-button {
    width: auto;
    padding: 12px 30px;
    margin: 0 auto;
    font-size: 19px;
    color: #30b8ed;
    border-radius: 10px;
  }

  /* --- 結果セクション: 水色背景（養育費ツール同様） --- */
  .bpc-result-section {
    background: #30b8ed;
    padding: 41px 30px 0;
  }

  /* --- 結果表示エリア: PC版は白背景 --- */
  .bpc-result-area {
    background: #fff;
    border-radius: 12px;
    margin: 0 auto 20px;
    padding: 0px;
    width: 543px;
  }

  /* --- 結果行：PC版の色 --- */
  .bpc-result-label-new {
    font-size: 16px;
    margin-bottom: 8px;
    color: #000c15;
  }

  .bpc-result-value-new {
    font-size: 29px;
    color: #648abc;
  }

  /* 1. 基礎賃金（時給） */
  .bpc-result-row:nth-of-type(1) {
    padding: 30px 0 17px;
  }

  /* 2. 1か月あたりの未払い残業代 */
  .bpc-result-row:nth-of-type(2) {
    padding: 33px 0 17px;
  }

  /* 3. 請求可能月数 */
  .bpc-result-row:nth-of-type(3) {
    padding: 35px 0 17px;
  }

  /* 4. 全月分の残業代 */
  .bpc-result-row:nth-of-type(4) {
    padding: 33px 0 17px;
  }

  /* 5. 請求可能な残業代 */
  .bpc-result-row:nth-of-type(5) {
    padding: 33px 0 40px;
  }

  /* 最終行（合計）強調拡大 */
  .bpc-result-row:last-of-type .bpc-result-label-new {
    font-size: 19px;
  }

  .bpc-result-row:last-of-type .bpc-result-value-new {
    font-size: 42px;
  }

  /* 区切り線: PC版の色 */
  .bpc-result-divider {
    border-top: 2px solid #648abc;
    width: 62%;
  }

  /* 結果後ボタン：水色背景内に収める */
  .bpc-result-buttons {
    flex-direction: row;
    justify-content: center;
    margin-top: 0;
    gap: 30px;
    padding: 26px 16px 36px;
  }

  /* 再計算ボタン: PC版の色 */
  .bpc-recalc-button {
    background: #F6AB00;
  }

  .bpc-result-buttons .bpc-recalc-button {
    width: 110px;
    padding: 16px 0;
    font-size: 19px;
    margin: 0;
  }

  .bpc-result-buttons a.bpc-calc-button {
    width: 190px;
    padding: 16px 0;
    margin: 0;
    font-size: 19px;
  }

  a.bpc-calc-button:hover {
    color: #30b8ed;
  }

  /* 注意事項：PC版は中央揃え */
  .bpc-disclaimer {
    text-align: center;
  }

  /* 独立ページ：ヘッダーとの間隔確保 */
  .backpay-calculator-page .bpc-wrapper {
    padding-top: 0;
    padding-bottom: 80px;
  }
}

/* ==========================================================================
 * バックペイ固有（残業代ツールに無い要素）
 * 見た目は上の残業代ツールの部品に寄せる（白ストライプ／水色帯／白ボックス）
 * ========================================================================== */

/* 社内確認用の帯。ACE_BACKPAY_REVIEW_MODE が true のときだけ出る */
.bpc-review-banner {
  background: #fff8e1;
  border: 1px solid #f0c36d;
  border-left: 6px solid #f0a020;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 24px;
  font-size: 13px;
  line-height: 1.8;
  color: #6b4a00;
}

/* 任意バッジ（白ストライプのラベル内） */
.bpc-optional {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 3px;
  background: #648abc;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  vertical-align: middle;
}

/* スマホでは吹き出しが見出しの1文字目に被る（このサイトは見出しの字間が広く、残業代より見出しが長い）。
   残業代と同じ -12px の重なりをやめて、見出しの上に置く。PC は残業代と同じ（下の min-width:768px） */
/* 吹き出しの横位置は「中央（＝中央揃えの見出しの中心）から何px左か」で決める。
   残業代と同じ「枠の左端から固定の距離」だと、見出しは中央揃えなので画面幅で両者の距離が変わる
   （767px で見出しから 240px 以上離れ、768px では見出しに大きく被った）。
   値は 390px／1280px で見た目が良かった位置（見出しの左端からスマホ 54px・PC 159px 左）を中心基準に直したもの */
@media (max-width: 767px) {
  .bpc-badge-img {
    margin-left: max(0px, calc(50% - 179px)); /* 320px など狭い画面ではみ出さない */
    margin-bottom: 12px;
  }
}

/* 吹き出しと見出しの間（PC）。残業代は 0 だが、吹き出しの尻尾が見出しに触れて見えるので少し空ける */
@media (min-width: 768px) {
  .bpc-badge-img {
    margin-left: max(0px, calc(50% - 379px));
    margin-bottom: 10px;
  }
}

/* ツールのページではパンくずの直下に吹き出しが来るので間を空ける（トップの埋め込みは前のセクションとの間が既にある） */
.backpay-calculator-page .bpc-wrapper {
  padding-top: 24px;
}

@media (min-width: 768px) {
  .backpay-calculator-page .bpc-wrapper {
    padding-top: 36px;
  }
}

/* このサイトは本文に字間が付いていて、残業代と同じ width:2em だと「西暦」が縦に折れる */
.bpc-date-label {
  white-space: nowrap;
}

/* 入力帯の下に出す補足文（青背景の上の白字） */
.bpc-form-note {
  margin: -8px 0 0;
  padding: 0 16px 21px;
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
  text-align: center;
}

.bpc-form-note strong {
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
}

/* 「計算に用いた期間」の根拠（平均解決期間の時点） */
.bpc-result-basis {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #666;
}

/* 中間収入の控除額だけはマイナスとわかる色にする */
.bpc-result-value-new--minus {
  color: #c0392b;
}

/* 結果の下に場合によって出す注記（水色帯の中の白ボックス） */
.bpc-note {
  margin: 0 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff;
  font-size: 12px;
  line-height: 1.8;
  color: #444;
  text-align: left;
}

.bpc-result-area + .bpc-note {
  margin-top: 16px;
}

/* 早めの相談を促す呼びかけ（枠なし・水色帯の上の白字。直下の相談ボタンへつなぐ） */
.bpc-urge {
  margin: 22px 16px 0;
  text-align: center;
  color: #fff;
}

.bpc-urge-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
}

.bpc-urge-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
}

/* 呼びかけとボタンを近づけて、ひとかたまりに見せる */
.bpc-urge + .bpc-result-buttons {
  padding-top: 14px;
}

@media (min-width: 768px) {
  .bpc-review-banner {
    font-size: 14px;
  }

  .bpc-form-note {
    margin-top: -18px;
    padding: 0 30px 30px;
    font-size: 14px;
  }

  .bpc-result-basis {
    font-size: 13px;
  }

  .bpc-note {
    width: 543px;
    max-width: 100%;
    margin: 0 auto;
    font-size: 14px;
  }

  .bpc-result-area + .bpc-note {
    margin-top: 0;
  }

  .bpc-urge {
    margin-top: 30px;
  }

  .bpc-urge-title {
    font-size: 22px;
  }

  .bpc-urge-text {
    font-size: 14px;
  }
}
