@charset "UTF-8";

.box30.appbox .appArea {
  display: block;
  padding: 18px 20px;     /* 上下に少し余裕（ギチギチ防止） */
}

/* 入力欄 */
.tcInput {
  width: 100%;
  box-sizing: border-box;
  min-height: 180px;
  padding: 12px 12px;
  border: 2px solid #6cc8f7;
  border-radius: 12px;
  font-size: 16px;
  line-height: 1.6;
  resize: vertical;
  background: #fff;
}

/* 結果エリア（textareaとの間に余白） */
.tcResults {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #b9b9b9;
}

/* 1行ごとの見た目 */
.tcRow {
  padding: 8px 0;         /* 上下に余裕 */
}

/* ラベルと値 */
.tcLabel {
  font-weight: 700;
  margin-bottom: 2px;
}

.tcValue {
  font-size: 0.98em;
}

/* =========================
   文字数カウンター：見た目強化
   ========================= */

/* 結果エリアを“カード”っぽく */
.tcResults {
  margin-top: 14px;
  padding: 14px 14px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 14px;
  background: linear-gradient(#ffffff, #f7fbff);
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
}

/* 各行を“行カード”に */
.tcRow {
  display: grid;
  grid-template-columns: 1fr auto;  /* 左：ラベル / 右：数値 */
  align-items: center;
  gap: 10px 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(0,0,0,.06);
}

/* 行と行の間隔 */
.tcRow + .tcRow {
  margin-top: 10px;
}

/* ラベルを見出し風に */
.tcLabel {
  font-weight: normal;
  color: #1f2a37;
  line-height: 1.3;
}

/* 値は右側にまとまり、強調 */
.tcValue {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-size: 0.98em;
  color: #111;
  white-space: nowrap; /* 変に折り返さない */
}

/* “数字部分”をバッジにする（spanの中身＝数字だけなのでバッチリ合う） */
.tcValue span {
  display: inline-block;
  min-width: 2.2em;
  text-align: right;
  padding: 3px 10px;
  border-radius: 999px;
  background: #e8f6ff;
  border: 1px solid rgba(108,200,247,.6);
  box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
  font-weight: 900;
  font-variant-numeric: tabular-nums; /* 桁が揃う */
}

/* “全角/半角”の数字バッジは少し控えめに */
#tcTotalFull, #tcTotalHalf,
#tcNoWsNlFull, #tcNoWsNlHalf,
#tcNoNlFull, #tcNoNlHalf {
  background: #fff7e7;
  border-color: rgba(208,145,37,.45);
}

/* 行数バッジはアクセント強め */
#tcLines {
  background: #eaffea;
  border-color: rgba(0,160,70,.35);
}

/* スマホ用：右カラムを下に落として見やすく */
@media (max-width: 520px) {
  .tcRow {
    grid-template-columns: 1fr;  /* 1カラムに */
  }
  .tcValue {
    justify-content: flex-start;
  }
}

/* ===== スマホ最適化 ===== */
@media (max-width: 600px) {

  /* 1行カードを縦構成に */
  .tcRow {
    grid-template-columns: 1fr;   /* 1カラム */
    gap: 6px;
  }

  /* 数値エリアは折り返しOKに */
  .tcValue {
    flex-wrap: wrap;
    gap: 6px 6px;
  }

  /* バッジの最小幅を解除して詰める */
  .tcValue span {
    min-width: unset;
    padding: 2px 8px;
    font-size: 0.9em;
  }

  /* ラベルを少し小さく */
  .tcLabel {
    font-size: 0.9em;
  }
}
