/* =====================================================
   MNO/MVNO 通信プラン診断 v1.1 - スタイルシート
   ※ h タグを一切使わないデザイン
===================================================== */

:root {
    --c-primary:   #4f46e5;
    --c-secondary: #7c3aed;
    --c-accent:    #06b6d4;
    --c-success:   #10b981;
    --c-warn:      #f59e0b;
    --c-text:      #1e293b;
    --c-muted:     #64748b;
    --c-bg:        #f1f5f9;
    --c-white:     #ffffff;
    --c-border:    #e2e8f0;
    --c-card:      #ffffff;
    --radius-lg:   16px;
    --radius-md:   10px;
    --radius-sm:   6px;
    --shadow-sm:   0 1px 3px rgba(0,0,0,0.08);
    --shadow-md:   0 4px 16px rgba(79,70,229,0.12);
    --shadow-lg:   0 8px 32px rgba(79,70,229,0.18);
    --transition:  all 0.22s ease;
}

.mvno-shindan-wrap *, .mvno-shindan-wrap *::before, .mvno-shindan-wrap *::after { box-sizing: border-box; }

/* ===== メインラッパー ===== */
.mvno-shindan-wrap {
    max-width: 700px;
    margin: 40px auto;
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', Meiryo, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* ===== ヘッダー ===== */
.mvno-header {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-secondary) 100%);
    color: var(--c-white);
    text-align: center;
    padding: 36px 28px 28px;
}
.mvno-header-icon  { font-size: 44px; margin-bottom: 10px; line-height: 1; }
.mvno-header-title { font-size: 1.55em; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; color: var(--c-white); }
.mvno-header-sub   { font-size: 0.88em; opacity: 0.85; margin-bottom: 24px; }

/* ===== 登録企業バッジ（ヘッダー内） ===== */
.mvno-carrier-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 20px;
}
.mvno-cbadge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px 3px 7px;
    border-radius: 20px;
    border: 1.5px solid rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.88);
    font-size: 0.75em;
    font-weight: 700;
    backdrop-filter: blur(4px);
    white-space: nowrap;
}
.mvno-cbadge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.9;
}

/* ===== プログレスバー ===== */
.mvno-progress { display: flex; align-items: center; justify-content: center; }
.mvno-prog-step { display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0.45; transition: var(--transition); }
.mvno-prog-step.active, .mvno-prog-step.done { opacity: 1; }
.mvno-prog-step span {
    width: 32px; height: 32px; border-radius: 50%;
    background: rgba(255,255,255,0.25); border: 2px solid rgba(255,255,255,0.6);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9em; transition: var(--transition);
}
.mvno-prog-step.active span { background: var(--c-white); color: var(--c-primary); border-color: var(--c-white); box-shadow: 0 0 0 4px rgba(255,255,255,0.25); }
.mvno-prog-step.done span   { background: var(--c-success); border-color: var(--c-success); color: white; }
.mvno-prog-step small { font-size: 0.7em; opacity: 0.9; color: white; }
.mvno-prog-line { width: 48px; height: 2px; background: rgba(255,255,255,0.3); margin: 0 4px; margin-bottom: 18px; flex-shrink: 0; }

/* ===== ステップ ===== */
.mvno-step { display: none; padding: 28px; animation: mvnoSlideIn 0.28s ease; }
.mvno-step.active { display: block; }
@keyframes mvnoSlideIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}
.mvno-step-label {
    font-size: 1.1em; font-weight: 700; color: var(--c-text);
    margin-bottom: 18px; padding-left: 12px;
    border-left: 4px solid var(--c-primary); line-height: 1.4;
}

/* ===== 選択肢グリッド ===== */
.mvno-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 22px; }
@media (max-width: 480px) { .mvno-choices { grid-template-columns: 1fr; } .mvno-step { padding: 20px; } }
.mvno-choice { cursor: pointer; display: flex; }
.mvno-choice input[type="radio"], .mvno-choice input[type="checkbox"] { display: none; }
.mvno-choice span {
    width: 100%; padding: 13px 16px; border: 2px solid var(--c-border); border-radius: var(--radius-md);
    background: var(--c-white); transition: var(--transition); display: flex; flex-direction: column;
    gap: 3px; cursor: pointer; font-size: 0.93em; font-weight: 600; color: var(--c-text); box-shadow: var(--shadow-sm);
}
.mvno-choice span small { font-weight: 400; font-size: 0.78em; color: var(--c-muted); }
.mvno-choice:hover span { border-color: var(--c-primary); background: #eef2ff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.mvno-choice input:checked + span { border-color: var(--c-primary); background: linear-gradient(135deg, #eef2ff, #ede9fe); color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary), var(--shadow-md); }
.mvno-choice input:checked + span small { color: var(--c-secondary); }

/* ===== ボタン ===== */
.mvno-btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.mvno-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 11px 26px; background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: var(--c-white); border: none; border-radius: 50px; cursor: pointer;
    font-size: 0.95em; font-weight: 700; letter-spacing: 0.01em; transition: var(--transition);
    text-decoration: none; box-shadow: 0 3px 10px rgba(79,70,229,0.3);
}
.mvno-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(79,70,229,0.4); color: white; }
.mvno-btn:disabled { opacity: 0.35; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.mvno-btn.mvno-next-btn { min-width: 140px; }
.mvno-btn.mvno-back-btn { background: var(--c-white); color: var(--c-muted); border: 2px solid var(--c-border); box-shadow: var(--shadow-sm); }
.mvno-btn.mvno-back-btn:hover { background: var(--c-bg); color: var(--c-text); box-shadow: var(--shadow-md); }
.mvno-btn.mvno-result-btn { background: linear-gradient(135deg, var(--c-success), #059669); box-shadow: 0 3px 10px rgba(16,185,129,0.3); }
.mvno-btn.mvno-result-btn:hover { box-shadow: 0 6px 20px rgba(16,185,129,0.45); }
.mvno-btn.mvno-retry-btn { background: var(--c-white); color: var(--c-muted); border: 2px solid var(--c-border); box-shadow: var(--shadow-sm); margin: 0 auto; }
.mvno-btn.mvno-retry-btn:hover { color: var(--c-text); }

/* ===== 結果エリア ===== */
#mvno-results { padding: 28px; animation: mvnoSlideIn 0.4s ease; }
.mvno-result-heading { font-size: 1.25em; font-weight: 800; text-align: center; color: var(--c-text); margin-bottom: 22px; letter-spacing: -0.01em; }

/* ===== 結果カード ===== */
.mvno-plan-card {
    background: var(--c-white); border-radius: var(--radius-lg); border: 2px solid var(--c-border);
    padding: 20px; margin-bottom: 14px; box-shadow: var(--shadow-sm); transition: var(--transition); position: relative; overflow: hidden;
}
.mvno-plan-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.mvno-plan-card.rank-1 { border-color: var(--c-primary); box-shadow: 0 0 0 1px var(--c-primary), var(--shadow-md); }

.mvno-rank-badge {
    display: inline-flex; align-items: center; gap: 5px;
    background: linear-gradient(135deg, var(--c-primary), var(--c-secondary));
    color: white; font-size: 0.72em; font-weight: 700; padding: 4px 12px;
    border-radius: 0 0 0 10px; position: absolute; top: 0; right: 0;
}

.mvno-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; flex-wrap: wrap; gap: 6px; }
.mvno-plan-name-wrap { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mvno-carrier-name {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.75em; font-weight: 700; color: var(--c-muted);
    padding-left: 8px; border-left: 3px solid var(--c-primary);
    line-height: 1;
}
.mvno-carrier-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.mvno-plan-name { font-size: 1.08em; font-weight: 700; color: var(--c-text); line-height: 1.3; }
.mvno-type-badge { font-size: 0.68em; padding: 3px 10px; border-radius: 20px; font-weight: 700; letter-spacing: 0.03em; flex-shrink: 0; }
.mvno-type-badge.mno  { background: #dbeafe; color: #1d4ed8; }
.mvno-type-badge.mvno { background: #d1fae5; color: #065f46; }

.mvno-plan-price { font-size: 1.9em; font-weight: 800; color: var(--c-primary); margin: 6px 0 4px; letter-spacing: -0.02em; }
.mvno-plan-price em { font-size: 0.45em; font-weight: 400; color: var(--c-muted); font-style: normal; margin-left: 3px; }
.mvno-plan-data { font-size: 0.85em; color: var(--c-muted); margin-bottom: 8px; display: flex; align-items: center; gap: 5px; }
.mvno-plan-desc { font-size: 0.85em; color: var(--c-muted); line-height: 1.55; margin-bottom: 12px; }

.mvno-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.mvno-tag { background: var(--c-bg); border: 1px solid var(--c-border); border-radius: 20px; padding: 2px 10px; font-size: 0.73em; color: var(--c-muted); font-weight: 500; }

/* ===== 適用条件バッジ（プラン名の横） ===== */
.mvno-condition-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.62em;
    font-weight: 700;
    color: #92400e;
    background: #fef3c7;
    border: 1.5px solid #fcd34d;
    border-radius: 4px;
    padding: 1px 6px;
    margin-left: 6px;
    vertical-align: middle;
    white-space: nowrap;
    line-height: 1.6;
}

/* ===== 更新日表示（各プランカード） ===== */
.mvno-plan-updated {
    display: inline-block;
    font-size: 0.72em;
    color: var(--c-muted);
    margin-bottom: 10px;
}
.mvno-plan-updated::before { content: '🕐 '; }

/* ===== バナーエリア ===== */
.mvno-banner-area { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--c-border); text-align: center; }
.mvno-banner-area img { max-width: 100%; height: auto; border-radius: var(--radius-sm); transition: var(--transition); }
.mvno-banner-area img:hover { opacity: 0.9; }
.mvno-banner-area a { display: inline-block; text-decoration: none; }
.mvno-apply-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 11px 24px;
    background: linear-gradient(135deg, #f59e0b, #d97706); color: white; border-radius: 50px;
    font-size: 0.9em; font-weight: 700; text-decoration: none; box-shadow: 0 3px 10px rgba(245,158,11,0.35); transition: var(--transition);
}
.mvno-apply-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(245,158,11,0.45); color: white; text-decoration: none; }

/* ===== レスポンシブ ===== */
@media (max-width: 480px) {
    .mvno-header { padding: 28px 18px 22px; }
    .mvno-header-title { font-size: 1.25em; }
    #mvno-results { padding: 20px; }
    .mvno-plan-price { font-size: 1.6em; }
    .mvno-prog-line { width: 28px; }
}
