.dbccalc {
  padding: 40px 20px 20px;
}

/* ヘッドライン */
.headline {
  text-align: center;
  margin-bottom: 32px;
}

.headline p {
  font-size: 16px;
  color: #333;
  margin-bottom: 6px;
}

.headline h2 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

/* カード */
.card {
  background: #dde8f0;
  border-radius: 8px;
  max-width: 860px;
  padding: 32px 90px 28px;
  margin: 0 auto;
}

/* 行 */
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #b8ccd8;
}

.row.row-last {
  border-bottom: none;
}

.row label {
  font-size: 15px;
  font-weight: bold;
  color: #1a1a1a;
}

/* 入力 */
.input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.input-wrap input {
  height: 38px;
  border: 1px solid #aabbc8;
  border-radius: 4px;
  background: #fff;
  padding: 0 10px;
  font-size: 15px;
  color: #1a1a1a;
  text-align: right;
  outline: none;
}

.input-wrap input:focus {
  border-color: #3a7bbf;
  box-shadow: 0 0 0 2px rgba(58, 123, 191, 0.15);
}

.input-7 { width: 132px; }
.input-3 { width: 72px; }

.unit {
  min-width:60px;
  font-size: 14px;
  color: #555;
  white-space: nowrap;
}

/* 結果行 */
.result-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 12px;
  padding: 24px 0 8px;
}

.result-label {
  font-size: 20px;
  font-weight: bold;
  color: #1a1a1a;
}

.result-value {
  font-size: 32px;
  font-weight: 700;
  color: #1a56a0;
  min-width: 80px;
  text-align: center;
}

.result-unit {
  font-size: 20px;
  color: #1a1a1a;
}

/* サマリー */
.summary {
  text-align: center;
  margin-top: 32px;
}

.summary-main {
  font-size: 26px;
  font-weight: 700;
  color: #1a56a0;
  margin-bottom: 10px;
}

.summary-main span.big {
  font-size: 40px;
  color: #1a56a0;
}

.summary-sub {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

/* 注意書き */
.notes {
  max-width: 860px;
  margin: 24px auto 0;
  font-size: 13px;
  color: #666;
  line-height: 1.8;
}

.notes a {
  color: #1a56a0;
  text-decoration: underline;
}

/* 非表示 */
.hidden {
  display: none;
}

/* ----------------------------------------
   レスポンシブ対応
---------------------------------------- */

/* タブレット（768px以下） */
@media (max-width: 768px) {
  .dbccalc {
    padding: 28px 16px;
  }

  .headline h2 {
    font-size: 18px;
  }

  .card {
    padding: 24px 24px 20px;
  }

  .row label {
    font-size: 14px;
  }

  .input-7 { width: 120px; }
  .input-3 { width: 64px; }

  .input-wrap input {
    font-size: 14px;
    height: 36px;
  }

  .result-label {
    font-size: 17px;
  }

  .result-value {
    font-size: 26px;
  }

  .result-unit {
    font-size: 17px;
  }

  .summary-main {
    font-size: 22px;
  }

  .summary-main span.big {
    font-size: 30px;
    color: #1a56a0;
  }
}

/* スマートフォン（480px以下） */
@media (max-width: 480px) {
  .dbccalc {
    padding: 20px 12px;
  }

  .headline p {
    font-size: 12px;
  }

  .headline h2 {
    font-size: 15px;
  }

  .card {
    padding: 16px 14px 14px;
    border-radius: 6px;
  }

  .row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 0;
  }

  .row.row-last {
    padding-bottom: 0;
  }

  .input-wrap {
    width: 100%;
  }

  .input-7 {
    width: 100%;
    flex: 1;
  }

  .input-3 {
    width: 100px;
  }

  .input-wrap input {
    font-size: 15px;
    height: 40px;
  }

  .result-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    text-align: center;
  }

  .result-label {
    font-size: 15px;
    width: 100%;
    text-align: center;
  }

  .result-value {
    font-size: 28px;
  }

  .result-unit {
    font-size: 15px;
  }

  .summary-main {
    font-size: 18px;
  }

  .summary-main span.big {
    font-size: 26px;
    color: #1a56a0;
  }

  .summary-sub {
    font-size: 13px;
    line-height: 1.6;
  }
}