/**
 * Multi Horo Plugin Styles (unified look)
 * - 「枠（ボーダー）」は残す
 * - プルダウン（日付/時間/select）のみ白背景
 * - それ以外のテキストは白文字
 * - ボタンは #3300ff（文字 #ffffff）
 */

/* ===== コンテナ ===== */
.mh-daily-horoscope,
.mh-synastry {
  max-width: 640px;
  margin: 20px 0;
  padding: 20px;
  background: transparent;                 /* 背景は透過 */
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28); /* 枠は消さない */
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}

/* ===== タイトル・見出し・文字色（白） ===== */
.mh-form,
.mh-form *:not(input):not(textarea):not(select),
.mh-result h4,
.mh-result h5 {
  color: #fff;
}
.mh-form h3,
.mh-form h4 {
  margin: 0 0 16px;
  font-size: 1.25rem;
  line-height: 1.3;
}
.mh-form h5 {
  margin: 20px 0 10px;
  font-size: 1.05rem;
}

/* ===== 入力グループ ===== */
.mh-form .mh-form-group {
  margin-bottom: 14px;
}
.mh-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #fff;
}
.mh-form .required {
  color: #ff6a7a;
  margin-left: 4px;
}

/* ===== 入力（テキスト系は透明＋白文字＋白枠） ===== */
.mh-form input[type="text"],
.mh-form input[type="number"],
.mh-form input[type="email"],
.mh-form input[type="password"],
.mh-form textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.45);
  background: transparent;
  color: #fff;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  box-sizing: border-box;
}
.mh-form ::placeholder {
  color: rgba(255,255,255,.7);
}

/* ===== プルダウン（日付・時間・select）は白背景に限定 ===== */
.mh-form input[type="date"],
.mh-form input[type="time"],
.mh-form select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  background: #fff !important;
  color: #111 !important;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}

/* ===== フォーカス ===== */
.mh-form input[type="text"]:focus,
.mh-form input[type="number"]:focus,
.mh-form input[type="email"]:focus,
.mh-form input[type="password"]:focus,
.mh-form textarea:focus {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.22);
}
.mh-form input[type="date"]:focus,
.mh-form input[type="time"]:focus,
.mh-form select:focus {
  border-color: #a5b4fc;
  box-shadow: 0 0 0 2px rgba(51,0,255,.18);
}

/* ===== ボタン（#3300ff / 文字 #fff） ===== */
.mh-submit {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid #3300ff;
  background: #3300ff;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform .06s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
}
.mh-submit:hover {
  background: #2b00d9;
  border-color: #2b00d9;
  box-shadow: 0 8px 24px rgba(51,0,255,.32);
}
.mh-submit:active {
  transform: translateY(1px);
}

/* ===== ローディング・エラー ===== */
.mh-loading {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.09);
  color: #fff;
  border: 1px solid rgba(255,255,255,.28); /* 枠あり */
}
.mh-error {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,0,72,.12);
  color: #fff;
  border: 1px solid rgba(255,0,72,.38);    /* 枠あり */
  white-space: pre-line;
}

/* ===== 結果ブロック ===== */
.mh-result {
  margin-top: 16px;
}
.mh-result h4 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  color: #fff;
}

/* ===== スコア表示 ===== */
.mh-scores {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 10px 0 16px;
}
.mh-score-item {
  display: grid;
  grid-template-columns: 90px 1fr 40px;
  align-items: center;
  gap: 10px;
}
.mh-score-label {
  font-weight: 700;
  color: #fff;
  min-width: 90px;
}
.mh-score-bar {
  position: relative;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.28); /* 枠あり */
}
.mh-score-fill {
  position: absolute;
  inset: 0 auto 0 0;
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c5cff, #3300ff);
  transition: width .35s ease;
}
.mh-score-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: #fff;
  min-width: 40px;
}

/* ===== コメントテキスト（結果） ===== */
.mh-horoscope-text {
  margin: 12px 0 8px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: #fff;
  line-height: 1.7;
  border: 1px dashed rgba(255,255,255,.35); /* 枠あり */
}

/* ===== ラッキー要素 ===== */
.mh-lucky-elements { margin-top: 14px; }
.mh-lucky-elements h5 {
  margin: 0 0 6px;
  font-size: 1rem;
  color: #fff;
}
.mh-lucky-items {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mh-lucky-item {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.28); /* 枠あり */
  color: #fff;
}
.mh-lucky-item strong { margin-right: 6px; }

/* ===== 相性：人物セクション（背景は透過、枠は残す） ===== */
.mh-synastry .mh-person-section {
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: transparent;                      /* デイリーと同じく透過 */
  border: 1px solid rgba(255,255,255,.28);     /* 枠は残す */
}
.mh-synastry .mh-person-section h4 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: #fff;
}

/* ===== 注目アスペクト ===== */
.mh-top-aspects { margin-top: 16px; }
.mh-top-aspects h5 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #fff;
}
.mh-aspect-list {
  margin: 0;
  padding-left: 1.1em;
  color: #fff;
}
.mh-aspect-list li {
  margin: 6px 0;
  line-height: 1.6;
}

/* ===== スマホ最適化 ===== */
@media (max-width: 640px) {
  .mh-daily-horoscope,
  .mh-synastry {
    padding: 16px;
    margin: 16px 0;
  }
  .mh-score-item {
    grid-template-columns: 80px 1fr 38px;
    gap: 8px;
  }
  .mh-score-label { min-width: 80px; }
  .mh-lucky-items { flex-direction: column; gap: 10px; }
}
