/*
 * ── ウレタン塗装チャレンジ ページ固有CSS ────────
 * 共通部分は ap-guide.css にある。
 * ここには painting.twig でしか使わないコンポーネントだけを置く。
 */

/* ─── 副材計算機 ─────────────────────────────── */
.ap-mixing {
  background: var(--ap-surface);
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  padding: 14px;
  margin: 16px 0;
}
.ap-mixing__title {
  font-size: 13px;
  font-weight: 800;
  color: var(--ap-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ap-line);
}
.ap-calc__inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.ap-calc__field {}
.ap-calc__label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.ap-calc__field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.ap-calc__num-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ap-calc__num {
  width: 80px;
  padding: 8px 10px;
  border: 1.5px solid var(--ap-line);
  border-radius: 6px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ap-dark);
  background: var(--ap-bg);
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}
.ap-calc__num::-webkit-outer-spin-button,
.ap-calc__num::-webkit-inner-spin-button { -webkit-appearance: none; }
.ap-calc__num:focus {
  outline: none;
  border-color: var(--ap-red);
}
.ap-calc__unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--ap-mid);
}
.ap-calc__types {
  display: flex;
  gap: 8px;
}
.ap-calc__type {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ap-dark);
  cursor: pointer;
}
.ap-calc__type input { accent-color: var(--ap-red); cursor: pointer; }
.ap-calc__results {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
.ap-calc__result-item {
  background: var(--ap-bg);
  border: 1px solid var(--ap-line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ap-calc__result-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ap-mid);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.ap-calc__result-val {
  font-size: 20px;
  font-weight: 900;
  color: var(--ap-red);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.ap-mixing__note {
  font-size: 11px;
  color: var(--ap-mid);
  line-height: 1.6;
  margin: 0;
  padding-left: 1em;
  text-indent: -1em;
}

/* ─── スプレー缶タイプカード ─────────────────── */
.ap-spray-card {
  display: flex;
  align-items: stretch;
  background: #F0F7FF;
  border: 1.5px solid #4A90D9;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--ap-dark);
  margin-bottom: 8px;
  transition: box-shadow 0.15s;
}
.ap-spray-card:hover { box-shadow: 0 4px 16px rgba(74,144,217,0.2); }
.ap-spray-card__img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  flex-shrink: 0;
  display: block;
}
.ap-spray-card__body { padding: 12px 14px; flex: 1; }
.ap-spray-card__eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #4A90D9;
  text-transform: uppercase;
  margin: 0 0 4px;
}
.ap-spray-card__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ap-dark);
  margin: 0 0 6px;
}
.ap-spray-card__desc {
  font-size: 12px;
  color: var(--ap-mid);
  line-height: 1.6;
  margin: 0 0 10px;
}
.ap-spray-card__meta {
  /* SPは金額と導線を縦に積む（1行に収まらず途中で折れるため） */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.ap-spray-card__price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ap-dark);
}
.ap-spray-card__btn {
  font-size: 12px;
  font-weight: 700;
  color: #4A90D9;
  white-space: nowrap;
}

/* ─── メーカー選択の見出し（クルマ／バイク） ──── */
.ap-maker-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--ap-mid);
  margin: 14px 0 4px;
}
.ap-maker-label::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 11px;
  background: var(--ap-gun);
  margin-right: 6px;
  vertical-align: -1px;
}

/* ─── 容量画像グリッド ──────────────────────── */
.ap-volume-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.ap-volume-img {
  width: 100%;
  border-radius: 4px;
  display: block;
  border: 1px solid var(--ap-line);
}

/* ─── 容量注釈 ───────────────────────────── */
.ap-volume-note {
  font-size: 11px;
  color: var(--ap-mid);
  line-height: 1.6;
  margin: 8px 0 0;
  padding-left: 1em;
  text-indent: -1em;
}


/* ─── 折りたたみ：容量画像用の高さ ──────────────
   画像は 750×420。1枚目の半分強が見える高さで切る。 */
.ap-collapse--volume .ap-collapse__inner { aspect-ratio: 750 / 230; }
.ap-collapse--volume .ap-collapse__toggle::after { content: 'すべての車種を見る ▼'; }

/* ─── タブレット以上 ─────────────────────────── */
@media (min-width: 576px) {
  .ap-spray-card__meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
}
