/* ========================================
   Sigma Metal Prices Plugin - CSS
   テーマ非依存 (smp- プレフィックス)
   ======================================== */

/* --- Lead / Date --- */
.smp-reference {
  margin: 40px 0;
}
.smp-reference .smp-lead {
  margin: 24px 0;
}
.smp-reference .smp-lead .smp-lead-content {
  font-size: 16px;
  text-align: center;
}
.smp-reference .smp-lead .smp-lead-date {
  text-align: right;
  font-size: 16px;
}
@media screen and (max-width: 768px) {
  .smp-reference .smp-lead .smp-lead-content {
    font-size: 15.84px;
  }
  .smp-reference .smp-lead .smp-lead-date {
    margin-top: 8px;
    font-size: 15.84px;
  }
}

/* --- Select Button (業者/一般 切替) --- */
.smp-select-box .smp-select-btn {
  display: flex;
  gap: 16px;
  flex-wrap: nowrap;
  justify-content: space-between;
}
.smp-select-box .smp-select-btn .smp-btn-business {
  flex-basis: 50%;
  background-color: #f06060;
  color: #fff;
  text-align: center;
  padding: 4.8px;
  font-size: 20.8px;
  gap: 4.8px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
}
.smp-select-box .smp-select-btn .smp-btn-business b {
  font-size: 24px;
}
.smp-select-box .smp-select-btn .smp-btn-normal {
  flex-basis: 50%;
  background-color: #ccc;
  color: #a5a5a5;
  text-align: center;
  padding: 4.8px;
  font-size: 20.8px;
  gap: 4.8px;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  cursor: pointer;
}
.smp-select-box .smp-select-btn .smp-btn-normal b {
  font-size: 24px;
}
@media screen and (max-width: 768px) {
  .smp-select-box .smp-select-btn .smp-btn-business,
  .smp-select-box .smp-select-btn .smp-btn-normal {
    font-size: 16px;
  }
  .smp-select-box .smp-select-btn .smp-btn-business b,
  .smp-select-box .smp-select-btn .smp-btn-normal b {
    font-size: 19.2px;
  }
}

/* --- Box (業者/一般) --- */
.smp-box-business,
.smp-box-normal {
  padding: 32px 4.8px;
}
.smp-box-business {
  border: 4px solid #f06060;
}
.smp-box-normal {
  border: 4px solid #a5a5a5;
}
.smp-box-business h4,
.smp-box-normal h4 {
  margin: 32px 0;
  text-align: center;
  font-weight: normal;
}
.smp-box-business h4:first-child,
.smp-box-normal h4:first-child {
  margin-top: 0;
}

/* --- Summary Cards --- */
.smp-summary {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding-bottom: 32px;
}
.smp-s-item {
  flex-basis: 25%;
  border-radius: 10px;
  padding: 4.8px;
}
.smp-s-item-title {
  border-radius: 10px;
  color: #fff;
  padding: 16px 0;
  text-align: center;
  font-size: 24px;
}
.smp-s-item-content {
  padding: 8px 0;
}
.smp-cost {
  padding: 8px 0;
  font-size: 24px;
  text-align: center;
}
.smp-diff {
  padding: 8px 0;
  text-align: right;
  font-size: 16px;
}
.smp-s-item.gold { border: 2px solid #e6b422; }
.smp-s-item.gold .smp-s-item-title { background-color: #e6b422; }
.smp-s-item.platinum { border: 2px solid #6086b0; }
.smp-s-item.platinum .smp-s-item-title { background-color: #6086b0; }
.smp-s-item.silver { border: 2px solid #a6a6a6; }
.smp-s-item.silver .smp-s-item-title { background-color: #a6a6a6; }
.smp-s-item.paladium { border: 2px solid #c55a11; }
.smp-s-item.paladium .smp-s-item-title { background-color: #c55a11; }
@media screen and (max-width: 768px) {
  .smp-summary {
    flex-wrap: wrap;
  }
  .smp-s-item {
    flex-basis: 47%;
  }
}

/* --- Price Tables --- */
.smp-gold-t,
.smp-platinum-t,
.smp-silver-t,
.smp-combi-t {
  border-collapse: collapse;
  margin-bottom: 32px;
  width: 100%;
}
.smp-gold-t th, .smp-gold-t td,
.smp-platinum-t th, .smp-platinum-t td,
.smp-silver-t th, .smp-silver-t td,
.smp-combi-t th, .smp-combi-t td {
  font-size: 20.8px;
  font-weight: bold;
  text-align: center;
  padding: 4.8px;
}
.smp-gold-t th { background-color: #fff2cc; color: #e6b422; border: 1px solid #e6b422; }
.smp-gold-t td { border: 1px solid #e6b422; }
.smp-platinum-t th { background-color: #ddebf7; color: #6086b0; border: 1px solid #6086b0; }
.smp-platinum-t td { border: 1px solid #6086b0; }
.smp-silver-t th { background-color: #f2f2f2; color: #a6a6a6; border: 1px solid #a6a6a6; }
.smp-silver-t td { border: 1px solid #a6a6a6; }
.smp-combi-t th { background-color: #f9d5bd; color: #cb5c14; border: 1px solid #cb5c14; }
.smp-combi-t td { border: 1px solid #cb5c14; }

/* --- Coin Cards --- */
.smp-coin-flex-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
}
.smp-coin-card {
  flex-basis: 31%;
  border: 1px solid #d04444;
}
.smp-coin-name {
  background-color: #f3cdd1;
  color: #d04444;
  border-bottom: 1px solid #d04444;
  text-align: center;
  font-weight: bold;
}
.smp-coin-price {
  font-size: 19.2px;
  border-bottom: 1px solid #d04444;
  text-align: center;
  font-weight: bold;
}
.smp-coin-img {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
}
.smp-coin-img img {
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}
@media screen and (max-width: 768px) {
  .smp-coin-card {
    font-size: 16px;
    font-weight: bold;
  }
}

/* --- Calculator --- */
.smp-calculator {
  background-color: #f2f2f2;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 32px;
}
.smp-calc-titles {
  display: flex;
  justify-content: center;
}
.smp-calc-titles .smp-calc-item {
  flex-basis: 30%;
  text-align: center;
  padding: 4.8px;
}
.smp-calc-inputs {
  display: flex;
  justify-content: center;
  gap: 4.8px;
  padding: 8px;
}
.smp-calc-inputs select {
  text-align: center;
  padding-top: 4px;
  height: 40px;
  width: 30%;
}
.smp-calc-number {
  height: 40px;
  flex-basis: 26%;
  border: 2px solid #1d2088;
  border-radius: 48px;
  background-color: #fff;
  display: flex;
  gap: 4.8px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
}
.smp-calc-weight {
  flex-basis: 50%;
  width: 0;
  text-align: center;
  border: unset;
  padding: 0;
  margin: 0;
}
.smp-calc-weight:focus {
  border: none;
  outline: none;
  box-shadow: none;
}
.smp-calc-unit {
  flex-basis: 20%;
  text-align: center;
}
.smp-calc-result {
  flex-basis: 26%;
  border-radius: 48px;
  background-color: #fff;
  text-align: center;
  line-height: 35.2px;
}
.column_single p.smp-calc-result {
  padding-bottom: 0;
}
@media screen and (max-width: 768px) {
  .smp-calc-titles .smp-calc-item:first-child {
    flex-basis: 35%;
  }
  .smp-calc-inputs select {
    padding-right: 4px;
    padding-left: 4px;
    flex-basis: 33%;
  }
  .smp-calc-inputs p {
    line-height: auto;
  }
}

/* --- Chart Toggle --- */
.smp-toggle-box {
  display: flex;
  justify-content: flex-start;
  gap: 4.8px;
  margin-bottom: 32px;
}
.smp-toggle-item {
  padding: 4.8px 16px;
  border: 3px solid black;
  color: black;
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  cursor: pointer;
}
.smp-toggle-gold { border-color: #E6B400; color: #E6B400; }
.smp-toggle-platinum { border-color: #6086B0; color: #6086B0; }
.smp-toggle-silver { border-color: #BFBFBF; color: #BFBFBF; }
.smp-toggle-palladium { border-color: #C55A11; color: #C55A11; }

/* --- Chart Area --- */
.smp-graph-message {
  text-align: center;
  padding: 32px 0;
}
.smp-graph-container {
  background-color: #f2f2f2;
  margin-bottom: 16px;
}
.smp-graph-area.smp-preload {
  visibility: hidden;
}
.smp-is-hidden {
  display: none;
}

/* --- Today's Section (Sidebar) --- */
.smp-todays-section {
  margin-bottom: 16px;
}
.smp-todays-section h2 {
  font-size: 19.2px;
  text-align: center;
  margin-bottom: 8px;
}
.smp-todays-day {
  text-align: center;
  font-size: 14.4px;
  margin-bottom: 8px;
}
.smp-todays-table {
  display: flex;
  gap: 8px;
}
.smp-todays-table table {
  width: 100%;
  border-collapse: collapse;
}
.smp-todays-table th,
.smp-todays-table td {
  padding: 4.8px;
  text-align: center;
  font-size: 14.4px;
  border: 1px solid #ddd;
}
.smp-tr-gold th {
  background-color: #fff2cc;
  color: #e6b422;
}
.smp-tr-platinum th {
  background-color: #ddebf7;
  color: #6086b0;
}

@media screen and (max-width: 768px) {
  .smp-box-business h4,
  .smp-box-normal h4,
  .smp-coin-name,
  .smp-calc-titles .smp-calc-item,
  .smp-calc-weight,
  .smp-calc-unit,
  .smp-calc-result,
  .smp-toggle-item {
    font-size: 12px;
  }

  .smp-box-business h4,
  .smp-box-normal h4{
    font-size: 15px;
    font-weight: bold;
  }

  .smp-reference .smp-lead .smp-lead-content,
  .smp-reference .smp-lead .smp-lead-date,
  .smp-diff,
  .smp-coin-card,
  .smp-graph-message,
  .smp-todays-day,
  .smp-todays-table th,
  .smp-todays-table td {
    font-size: 12px;
  }

  .smp-graph-message{
    font-size: 10px;
  }

  .smp-select-box .smp-select-btn .smp-btn-business,
  .smp-select-box .smp-select-btn .smp-btn-normal,
  .smp-diff {
    font-size: 12px;
  }

  .smp-select-box .smp-select-btn .smp-btn-business b,
  .smp-select-box .smp-select-btn .smp-btn-normal b,
  .smp-coin-price,
  .smp-todays-section h2 {
    font-size: 15.2px;
  }

  .smp-s-item-title,
  .smp-cost,
  .smp-gold-t th,
  .smp-gold-t td,
  .smp-platinum-t th,
  .smp-platinum-t td,
  .smp-silver-t th,
  .smp-silver-t td,
  .smp-combi-t th,
  .smp-combi-t td {
    font-size: 16.8px;
  }
}
