/* src/public/css/plan.css … プラン紹介ページ（/plan/{グループ}。docs/its-tool/BILLING.md） */

.plan-page { max-width: 760px; margin: 0 auto; }
.plan-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.plan-head-icon { flex: none; width: 52px; height: 52px; border-radius: 12px; background: #eef2fa; color: #1e3c72;
    display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.plan-head h2 { margin: 0 0 6px; font-size: 1.3rem; color: #1e3c72; }
.plan-head p { margin: 0; color: #555; line-height: 1.7; }
.plan-head p a { color: #2b4a77; font-weight: bold; text-decoration: underline; }

.plan-notice { margin: 0 0 16px; padding: 12px 16px; border-radius: 8px; background: #eef6ee; color: #24572a; line-height: 1.6; }
.plan-notice.is-warn { background: #fff6e5; color: #7a4d00; }
.plan-notice.is-error { background: #fdecec; color: #8a1f1f; }
.plan-scheduled { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.plan-scheduled p { margin: 0; }

.plan-levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.plan-card { background: #fff; border: 1px solid #e3e8ef; border-radius: 12px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.plan-card.is-current { border-color: #2a5298; box-shadow: 0 0 0 2px rgba(42, 82, 152, 0.15); }
.plan-card h3 { margin: 0; font-size: 1.1rem; color: #1e3c72; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.plan-badge { font-size: 0.75rem; padding: 2px 8px; border-radius: 999px; background: #2a5298; color: #fff; font-weight: normal; }
.plan-card ul { margin: 0; padding-left: 1.2em; line-height: 1.7; color: #444; }
.plan-card .plan-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }

.plan-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; padding: 11px 14px; border-radius: 8px;
    border: none; background: #2a5298; color: #fff; font-size: 1rem; cursor: pointer; text-decoration: none; }
.plan-btn:hover { background: #1e3c72; }
.plan-btn:disabled { opacity: 0.6; cursor: wait; }
.plan-btn.is-sub { background: #fff; color: #2a5298; border: 1px solid #c9d4ea; }
.plan-btn.is-sub:hover { background: #f3f6fc; }
.plan-btn.is-danger { background: #fff; color: #b3261e; border: 1px solid #efc4c1; }

.plan-manage { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.plan-manage form, .plan-manage a { flex: 1 1 200px; }
.plan-upgrade-note { margin: 0; font-size: 0.82rem; line-height: 1.6; color: #7a4d00; background: #fff6e5; border-radius: 6px; padding: 8px 10px; }
.plan-note { margin-top: 16px; font-size: 0.85rem; color: #666; line-height: 1.6; }
.plan-back { margin-top: 18px; }
.plan-back a:not(.plan-btn) { color: #2a5298; }

.plan-done { text-align: center; padding: 30px 10px; }
.plan-done .fa-spinner { font-size: 2rem; color: #2a5298; margin-bottom: 12px; }
.plan-done .fa-circle-check { font-size: 2.4rem; color: #2e7d32; margin-bottom: 12px; }

:root[data-theme="dark"] .plan-head-icon { background: var(--dk-raised); color: var(--dk-accent); }
:root[data-theme="dark"] .plan-head h2, :root[data-theme="dark"] .plan-card h3 { color: var(--dk-accent); }
:root[data-theme="dark"] .plan-head p a { color: var(--dk-accent); }
:root[data-theme="dark"] .plan-head p, :root[data-theme="dark"] .plan-card ul, :root[data-theme="dark"] .plan-note { color: var(--dk-text-sub); }
:root[data-theme="dark"] .plan-card { background: var(--dk-surface); border-color: var(--dk-border); }
/* 💡 リンクの形のボタン（購入のあとの「戻る」など）は、ダークでも白い文字に（theme-dark.css の a の色に負けないように） */
:root[data-theme="dark"] a.plan-btn:not(.is-sub):not(.is-danger) { color: #fff; }
:root[data-theme="dark"] .plan-btn.is-sub, :root[data-theme="dark"] .plan-btn.is-danger { background: var(--dk-raised); border-color: var(--dk-border); }
:root[data-theme="dark"] .plan-btn.is-sub { color: var(--dk-accent); }
:root[data-theme="dark"] .plan-btn.is-danger { color: var(--dk-danger); }
:root[data-theme="dark"] .plan-notice { background: #1f3323; color: #b9e3bd; }
:root[data-theme="dark"] .plan-notice.is-warn { background: #3a2f17; color: #f2d394; }
:root[data-theme="dark"] .plan-notice.is-error { background: #3a1d1f; color: #f4b6b9; }
:root[data-theme="dark"] .plan-back a:not(.plan-btn) { color: var(--dk-accent); }
:root[data-theme="dark"] .plan-upgrade-note { background: #3a2f17; color: #f2d394; }
