/* ===== 四柱推命 恋愛占い ===== */

.sc-phase { display: none; }
.sc-phase.active { display: block; }

/* --- 入力フォーム --- */
.sc-form-ttl {
  font-size: 17px;
  font-weight: 700;
  color: #1a1440;
  text-align: center;
  margin-bottom: 20px;
}
.sc-form-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sc-select {
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #1a1440;
  background: #f9f8ff;
  border: 1.5px solid #e0ddf8;
  border-radius: 12px;
  padding: 12px 10px;
  min-width: 78px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  text-align: center;
  transition: border-color .18s;
}
.sc-select:focus { outline: none; border-color: #7F77DD; }
.sc-unit { font-size: 14px; color: #6b60b0; margin-right: 4px; }

.sc-check {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: #6b60b0;
  cursor: pointer;
  margin-bottom: 16px;
}
.sc-check input { width: 16px; height: 16px; accent-color: #7F77DD; cursor: pointer; }

.sc-error {
  font-size: 13px;
  color: #c0392b;
  background: #fdf0ee;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 14px;
  line-height: 1.7;
}

.sc-btn {
  display: block;
  width: 100%;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: #7F77DD;
  border: none;
  border-radius: 14px;
  padding: 17px;
  cursor: pointer;
  letter-spacing: .04em;
  box-shadow: 0 4px 16px rgba(127,119,221,.32);
  transition: transform .18s, box-shadow .18s;
}
.sc-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 22px rgba(127,119,221,.42); }

.sc-note {
  font-size: 12px;
  color: #999;
  line-height: 1.8;
  margin-top: 16px;
  padding: 10px 14px;
  background: #f9f8ff;
  border-radius: 10px;
  border-left: 3px solid #AFA9EC;
}

/* --- 鑑定中 --- */
.sc-loading-card { text-align: center; padding: 56px 22px; }
.sc-loading-ring {
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border: 4px solid #e0ddf8;
  border-top-color: #7F77DD;
  border-radius: 50%;
  animation: scSpin 1s linear infinite;
}
@keyframes scSpin { to { transform: rotate(360deg); } }
.sc-loading-txt { font-size: 17px; font-weight: 700; color: #534AB7; margin-bottom: 8px; }
.sc-loading-sub { font-size: 13px; color: #999; line-height: 1.7; }

/* --- 命式 --- */
.sc-birth {
  font-size: 12px;
  color: #999;
  text-align: center;
  margin-bottom: 14px;
  letter-spacing: .04em;
}
.sc-meishiki {
  background: #1a1440;
  border-radius: 16px;
  padding: 20px 16px;
  margin-bottom: 22px;
}
.sc-meishiki-ttl {
  font-size: 11px;
  color: rgba(255,255,255,.6);
  text-align: center;
  letter-spacing: .12em;
  margin-bottom: 14px;
}
.sc-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.sc-pillar {
  background: rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 12px 4px;
  text-align: center;
}
.sc-pillar--empty { background: rgba(255,255,255,.03); }
.sc-pillar-lbl { font-size: 10px; color: rgba(255,255,255,.55); margin-bottom: 6px; letter-spacing: .06em; }
.sc-pillar-kanshi {
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  letter-spacing: .02em;
}
.sc-pillar--empty .sc-pillar-kanshi { color: rgba(255,255,255,.3); }
.sc-pillar-note { font-size: 10px; color: rgba(255,255,255,.45); margin-top: 5px; }
.sc-meishiki-note {
  font-size: 11px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin-top: 14px;
  text-align: center;
}

/* --- 本文の行ブロック（1〜2文ごとに改行して読みやすくする） --- */
.sc-line { display: block; }
.sc-line + .sc-line { margin-top: .85em; }

/* --- 日支カード --- */
.sc-shi-card {
  background: #f9f8ff;
  border-radius: 14px;
  padding: 18px;
  border-left: 3px solid #7F77DD;
}
.sc-shi-ttl { font-size: 15px; font-weight: 700; color: #534AB7; margin-bottom: 8px; line-height: 1.5; }
.sc-shi-body { font-size: 14px; color: #333; line-height: 1.95; }

/* --- 桃花 --- */
.sc-toka {
  background: linear-gradient(135deg, #fdeef4, #f8eefc);
  border-radius: 14px;
  padding: 18px;
  margin-top: 18px;
}
.sc-toka-ttl { font-size: 15px; font-weight: 700; color: #b0417a; margin-bottom: 8px; line-height: 1.5; }
.sc-toka-body { font-size: 14px; color: #444; line-height: 1.95; }

/* --- 五行バランス --- */
.sc-gogyo { display: flex; flex-direction: column; gap: 9px; }
.sc-gogyo-row { display: flex; align-items: center; gap: 10px; }
.sc-gogyo-name {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sc-gogyo-track {
  flex: 1;
  height: 9px;
  background: #eeedf8;
  border-radius: 5px;
  overflow: hidden;
}
.sc-gogyo-fill { display: block; height: 9px; border-radius: 5px; transition: width .8s ease; }
.sc-gogyo-num { width: 22px; text-align: right; font-size: 13px; font-weight: 700; color: #534AB7; }

/* --- 相性 --- */
.sc-aisho { display: flex; flex-direction: column; gap: 8px; }
.sc-aisho-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9f8ff;
  border-radius: 12px;
  padding: 13px 15px;
  flex-wrap: wrap;
}
.sc-aisho-row--best { background: #efedfd; }
.sc-aisho-key {
  font-size: 11px;
  color: #7F77DD;
  font-weight: 700;
  min-width: 128px;
  letter-spacing: .04em;
}
.sc-aisho-val { font-size: 14px; color: #1a1440; font-weight: 500; line-height: 1.7; flex: 1; }
.sc-aisho-tag {
  display: inline-block;
  background: #7F77DD;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: 2px;
}
.sc-aisho-note { font-size: 12px; color: #999; line-height: 1.8; margin-top: 10px; }

/* --- 時期 --- */
.sc-timing { display: flex; flex-direction: column; gap: 8px; }
.sc-timing-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f9f8ff;
  border-radius: 12px;
  padding: 14px 16px;
  flex-wrap: wrap;
}
.sc-timing-when { font-size: 16px; font-weight: 700; color: #1a1440; }
.sc-timing-rank { font-size: 12px; color: #7F77DD; font-weight: 500; }
.sc-timing-rank.is-best {
  background: #7F77DD;
  color: #fff;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.sc-timing-note { font-size: 12px; color: #999; line-height: 1.8; margin-top: 10px; }

/* --- アドバイス --- */
.sc-advice {
  background: #534AB7;
  border-radius: 14px;
  padding: 20px 18px;
  margin-top: 22px;
}
.sc-advice-ttl { font-size: 12px; color: rgba(255,255,255,.7); margin-bottom: 8px; letter-spacing: .08em; }
.sc-advice-body { font-size: 14px; color: #fff; line-height: 1.95; }

/* --- アコーディオン --- */
.sc-acc { margin-top: 22px; }
.sc-acc-btn {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: #534AB7;
  background: #f9f8ff;
  border: 1.5px solid #e0ddf8;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: background .18s;
}
.sc-acc-btn:hover { background: #eeedfe; }
.sc-acc-body { margin-top: 12px; }
.sc-detail { background: #f9f8ff; border-radius: 12px; padding: 20px 18px; }
.sc-detail-ttl {
  font-size: 13px;
  font-weight: 700;
  color: #7F77DD;
  margin: 18px 0 8px;
  padding-left: 8px;
  border-left: 3px solid #7F77DD;
  letter-spacing: .04em;
}
.sc-detail-ttl:first-child { margin-top: 0; }
.sc-detail-text { font-size: 13px; color: #444; line-height: 2; }
.sc-detail-text + .sc-detail-text { margin-top: .85em; }

@media (max-width: 420px) {
  .sc-pillar-kanshi { font-size: 20px; }
  .sc-pillars { gap: 5px; }
  .sc-select { min-width: 68px; font-size: 15px; padding: 11px 6px; }
  .sc-aisho-key { min-width: 100%; }
}
