/* LOVOT貯金シミュレーター — すべて #lovot-chokin-app 配下にスコープ（SWELLと衝突させない）
 * カラーはもしらぼ既存「LOVOT支払いシミュレーター」に統一:
 *   アクセント #ff9ec1（もしらぼのブランドカラー）/ 濃いピンク #c73f70（白文字を載せる面・文字色）
 *   テキストリンク #1176d4 / 枠内bg #f9f9f9 / 結果ボックス白 */
#lovot-chokin-app {
  --lc-accent: #ff9ec1;
  --lc-accent-strong: #c73f70;
  --lc-link: #1176d4;
  --lc-text: #333;
  --lc-muted: #888;
  --lc-bg: #f9f9f9;
  --lc-border: #ccc;
  font-size: 16px;
  line-height: 1.7;
  color: var(--lc-text);
  max-width: 520px;
  margin: 0 auto;
}
#lovot-chokin-app *, #lovot-chokin-app *::before, #lovot-chokin-app *::after { box-sizing: border-box; }

/* 使い方ステップ（最上部） */
#lovot-chokin-app .lc-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
  margin: 0 0 12px;
}
#lovot-chokin-app .lc-step-chip {
  background: #fff;
  border: 1px solid var(--lc-accent);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: bold;
  color: var(--lc-text);
  white-space: nowrap;
}
#lovot-chokin-app .lc-step-chip b { color: var(--lc-accent-strong); margin-right: 3px; }
#lovot-chokin-app .lc-step-arrow { color: var(--lc-accent-strong); font-weight: bold; font-size: 13px; }
#lovot-chokin-app .lc-step-tag {
  display: inline-block;
  background: var(--lc-accent-strong);
  color: #fff;
  border-radius: 6px;
  padding: 2px 10px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

/* 上部バナー（おかえり・シーズン） */
#lovot-chokin-app .lc-banner {
  background: #fff6f9;
  border: 1px solid var(--lc-accent);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: bold;
  color: var(--lc-text);
  margin: 0 0 10px;
}
#lovot-chokin-app .lc-banner-season { background: #ffeef5; }

/* シミュレーター本体（既存UIと同型） */
#lovot-chokin-app .lc-sim {
  background-color: var(--lc-bg);
  border: 2px solid var(--lc-accent);
  border-radius: 10px;
  padding: 20px;
  margin: 0 0 18px;
}
#lovot-chokin-app .lc-sim-title {
  text-align: center;
  color: var(--lc-accent-strong);
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 20px;
}
#lovot-chokin-app .lc-sec { margin-bottom: 15px; }
#lovot-chokin-app .lc-sec label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--lc-text); }
#lovot-chokin-app .lc-sec select {
  width: 100%;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid var(--lc-border);
  font-size: 16px;
  background: #fff;
  color: var(--lc-text);
}
#lovot-chokin-app .lc-sim-result {
  margin-top: 20px;
  padding: 15px;
  background-color: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}
#lovot-chokin-app .lc-sim-result p { font-size: 18px; margin: 10px 0; }
#lovot-chokin-app .lc-sim-result span { font-weight: bold; color: var(--lc-accent-strong); font-size: 22px; }
#lovot-chokin-app .lc-sim-result .lc-total { border-top: 2px dashed var(--lc-border); padding-top: 10px; font-weight: bold; }
#lovot-chokin-app .lc-sim-note { font-size: 12px !important; color: var(--lc-muted); margin: 4px 0 0 !important; }
#lovot-chokin-app .lc-sim-img { text-align: center; margin-top: 20px; margin-bottom: 10px; }
#lovot-chokin-app .lc-sim-img img {
  width: 100%; max-width: 420px; height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
#lovot-chokin-app .lc-sim-link { text-align: right; margin-top: 15px; }
#lovot-chokin-app .lc-sim-link a { color: var(--lc-link); font-weight: bold; text-decoration: underline; font-size: 16px; }
#lovot-chokin-app .lc-sim-link-sub { text-align: right; margin-top: 10px; }
#lovot-chokin-app .lc-sim-link-sub a { color: var(--lc-link); font-weight: bold; text-decoration: underline; font-size: 14px; }
#lovot-chokin-app .lc-sim-link a:hover, #lovot-chokin-app .lc-sim-link-sub a:hover { text-decoration: none; opacity: 0.8; }

/* 共通カード */
#lovot-chokin-app .lc-card {
  background: var(--lc-bg);
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 18px 16px;
  margin: 0 0 18px;
}
#lovot-chokin-app .lc-h {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 17px;
  font-weight: bold;
  color: var(--lc-text);
  margin: 0 0 12px;
}
#lovot-chokin-app .lc-note { font-size: 12px; color: var(--lc-muted); margin: 4px 0 0; }

/* 入力 */
#lovot-chokin-app .lc-field { margin-bottom: 14px; }
#lovot-chokin-app .lc-field:last-child { margin-bottom: 0; }
#lovot-chokin-app .lc-field > label { display: block; font-weight: bold; margin-bottom: 5px; color: var(--lc-text); font-size: 15px; }
#lovot-chokin-app .lc-yen { position: relative; }
#lovot-chokin-app .lc-yen input {
  width: 100%;
  border: 1px solid var(--lc-border);
  border-radius: 5px;
  padding: 10px 36px 10px 12px;
  font-size: 18px;
  font-weight: bold;
  color: var(--lc-text);
  background: #fff;
}
#lovot-chokin-app .lc-yen input:focus { outline: none; border-color: var(--lc-accent); }
#lovot-chokin-app .lc-yen::after {
  content: "円";
  position: absolute; right: 12px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: var(--lc-muted);
}
#lovot-chokin-app .lc-goal-reset {
  background: none; border: none; padding: 0;
  font-size: 13px; color: var(--lc-link);
  text-decoration: underline; cursor: pointer;
  margin-top: 4px;
}

/* 結果・進捗 */
#lovot-chokin-app .lc-result { background: #fff; border: 2px solid var(--lc-accent); text-align: center; }
#lovot-chokin-app .lc-result-main { font-size: 18px; margin: 4px 0; }
#lovot-chokin-app .lc-result-main strong { font-size: 26px; color: var(--lc-accent-strong); }
#lovot-chokin-app .lc-result-date { font-size: 17px; font-weight: bold; color: var(--lc-text); margin: 6px 0 2px; }
#lovot-chokin-app .lc-result-date strong { font-size: 22px; color: var(--lc-accent-strong); }
#lovot-chokin-app .lc-result-sub { font-size: 13px; color: var(--lc-muted); margin: 4px 0; }
#lovot-chokin-app .lc-cheer { font-size: 14px; color: var(--lc-text); margin: 8px 0 0; font-weight: bold; }

#lovot-chokin-app .lc-track {
  position: relative;
  height: 14px;
  background: #f7e3ea;
  border-radius: 999px;
}
#lovot-chokin-app .lc-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, #ffc9dd, var(--lc-accent-strong));
  border-radius: 999px;
  transition: width .6s ease;
  min-width: 6px;
}
#lovot-chokin-app .lc-walker {
  position: absolute;
  bottom: 10px;
  transform: translateX(-50%);
  width: 54px; height: 54px;
  transition: left .6s ease;
}
#lovot-chokin-app .lc-walker img {
  width: 100%; height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--lc-accent);
  background: #fff;
}
#lovot-chokin-app .lc-goalflag {
  position: absolute; right: -4px; bottom: 12px;
  font-size: 26px; line-height: 1;
}
#lovot-chokin-app .lc-track-area { position: relative; padding-top: 60px; }
#lovot-chokin-app .lc-pct { font-size: 14px; font-weight: bold; color: var(--lc-accent-strong); margin-top: 6px; }
#lovot-chokin-app .lc-streak { font-size: 13px; font-weight: bold; color: #c73f70; min-height: 18px; }

/* 臨時収入クイックタグ */
#lovot-chokin-app .lc-quick { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
#lovot-chokin-app .lc-quick-chip {
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: bold;
  color: var(--lc-text);
  cursor: pointer;
  font-family: inherit;
}
#lovot-chokin-app .lc-quick-chip.lc-on {
  border-color: var(--lc-accent);
  background: #ffeef5;
  color: var(--lc-accent-strong);
}
#lovot-chokin-app .lc-hist-tag {
  font-size: 11px;
  background: #ffeef5;
  border-radius: 999px;
  padding: 1px 7px;
  color: #c73f70;
}

/* ボタン */
#lovot-chokin-app .lc-btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  font-family: inherit;
  transition: transform .1s, opacity .15s;
  text-decoration: none;
  text-align: center;
}
#lovot-chokin-app .lc-btn:active { transform: scale(0.97); }
#lovot-chokin-app .lc-btn-primary { background: var(--lc-accent-strong); color: #fff; }
#lovot-chokin-app .lc-btn-x { background: #1a1a1a; color: #fff; font-size: 14px; }
#lovot-chokin-app .lc-btn-ghost { background: #fff; border: 2px solid var(--lc-accent); color: var(--lc-accent-strong); font-size: 14px; }
#lovot-chokin-app .lc-btn:hover { opacity: 0.85; }

/* 記録 */
#lovot-chokin-app .lc-record-row { display: flex; flex-direction: column; gap: 10px; }
#lovot-chokin-app .lc-history { list-style: none; margin: 12px 0 0; padding: 0; }
#lovot-chokin-app .lc-history li {
  display: flex; justify-content: space-between; align-items: center;
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 6px;
  font-size: 14px;
}
#lovot-chokin-app .lc-history .lc-hist-empty { color: var(--lc-muted); justify-content: center; }
#lovot-chokin-app .lc-history .lc-hist-amount { font-weight: bold; color: var(--lc-accent-strong); }
#lovot-chokin-app .lc-hist-del {
  background: none; border: none;
  color: var(--lc-muted); font-size: 12px;
  cursor: pointer; text-decoration: underline;
}
#lovot-chokin-app .lc-reset-link {
  background: none; border: none;
  font-size: 12px; color: var(--lc-muted);
  text-decoration: underline; cursor: pointer;
  display: block; margin: 10px auto 0;
}
#lovot-chokin-app .lc-backup-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; }
#lovot-chokin-app .lc-backup-row .lc-reset-link { display: inline-block; margin: 10px 0 0; }

/* 貯金の歩みグラフ（累計） */
#lovot-chokin-app .lc-graph {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 10px;
}
#lovot-chokin-app .lc-goal-line {
  font-size: 11px;
  font-weight: bold;
  color: var(--lc-accent-strong);
  text-align: right;
  border-bottom: 2px dashed var(--lc-accent);
  padding-bottom: 2px;
  margin-bottom: 6px;
}
#lovot-chokin-app .lc-graph-bars {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 4px;
  min-height: 140px;
  overflow-x: auto;
}
#lovot-chokin-app .lc-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
#lovot-chokin-app .lc-bar {
  width: 70%;
  max-width: 36px;
  background: linear-gradient(180deg, var(--lc-accent-strong), #ff9ec1);
  border-radius: 6px 6px 0 0;
  transition: height .5s ease;
}
#lovot-chokin-app .lc-bar-val { font-size: 11px; font-weight: bold; color: var(--lc-accent-strong); min-height: 14px; }
#lovot-chokin-app .lc-bar-label { font-size: 11px; color: var(--lc-muted); }

/* CTA */
#lovot-chokin-app .lc-cta-card { text-align: center; background: #fff; border: 2px solid var(--lc-accent); }
#lovot-chokin-app .lc-cta-card .lc-btn { display: block; margin: 10px auto 4px; max-width: 380px; }
#lovot-chokin-app .lc-cta-sub { font-size: 13px; color: var(--lc-muted); margin: 0 0 8px; }
/* 紹介コードのコピーボタン。点線枠だと「押せる」と伝わらなかったので、
 * ブログ記事のコピーボタンと同じ塗りつぶしボタンに合わせている（2026-08-11 社長指摘）。
 * すぐ下の「公式サイトでお迎えする」より一段小さくして主従は保つ。 */
#lovot-chokin-app .lc-coupon {
  display: inline-block;
  background: var(--lc-accent-strong);
  border: none;
  border-radius: 6px;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  margin-bottom: 6px;
  cursor: pointer;
  font-family: inherit;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.10);
  transition: transform .1s, opacity .15s;
}
#lovot-chokin-app .lc-coupon:hover { opacity: 0.85; }
#lovot-chokin-app .lc-coupon:active { transform: scale(0.97); }
#lovot-chokin-app .lc-coupon.lc-copied {
  background: #3d8b63;
  color: #fff;
}

/* リスト系 */
#lovot-chokin-app .lc-list { list-style: none; margin: 0; padding: 0; }
#lovot-chokin-app .lc-list li { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 10px 14px; margin-bottom: 8px; font-size: 14px; }
#lovot-chokin-app .lc-list li strong { color: var(--lc-text); }
#lovot-chokin-app .lc-list li p { margin: 2px 0 0; font-size: 13px; color: var(--lc-muted); }
#lovot-chokin-app .lc-list a { color: var(--lc-link); font-weight: bold; text-decoration: underline; }
#lovot-chokin-app .lc-list a:hover { text-decoration: none; opacity: 0.8; }

/* SNS */
#lovot-chokin-app .lc-sns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
#lovot-chokin-app .lc-sns a {
  flex: 1 1 30%;
  min-width: 120px;
  background: #fff;
  border: 1px solid var(--lc-border);
  border-radius: 999px;
  padding: 9px 10px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: var(--lc-text);
  text-decoration: none;
}
#lovot-chokin-app .lc-sns a:hover { border-color: var(--lc-accent); color: var(--lc-accent-strong); }

#lovot-chokin-app .lc-footnote { font-size: 11px; color: var(--lc-muted); margin-top: 8px; }

/* 紙吹雪 */
#lovot-chokin-app .lc-confetti {
  position: fixed;
  top: -12px;
  width: 9px; height: 14px;
  z-index: 9999;
  pointer-events: none;
  animation: lc-fall 2.4s ease-in forwards;
}
@keyframes lc-fall {
  0% { transform: translateY(0) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(540deg); opacity: 0.6; }
}

/* PC幅: 記録行だけ横並びに（スマホメイン設計） */
@media (min-width: 481px) {
  #lovot-chokin-app .lc-record-row { flex-direction: row; }
  #lovot-chokin-app .lc-record-row .lc-yen { flex: 1; }
}
