.ahamo-sim {
    --c-text: #1a1a2e; --c-sub: #585870; --c-bg: #f8faff; --c-card: #ffffff;
    --c-border: #eef0f5; --grad-primary: linear-gradient(135deg, #ff007a 0%, #9d00ff 100%);
    --c-brand: #ebff00; --c-success: #00b894; --c-error: #ff4757; --radius: 16px;
    font-family: 'Noto Sans JP', sans-serif; background: var(--c-bg); border: 1px solid #fff;
    border-radius: 24px; padding: 40px; max-width: 800px; margin: 40px auto; color: var(--c-text);
    box-sizing: border-box; line-height: 1.6; box-shadow: 0 20px 50px -10px rgba(26, 26, 46, 0.08);
}
.ahamo-sim * { box-sizing: border-box; }

.sim-header { margin-bottom: 40px; text-align: center; }
.sim-title { display: inline-block; font-size: 26px; font-weight: 900; margin: 0; padding-bottom: 8px; position: relative; z-index: 1; }
.sim-title::after { content: ''; position: absolute; bottom: 4px; left: -5%; width: 110%; height: 10px; background: var(--c-brand); z-index: -1; transform: skewX(-15deg); opacity: 0.8; }

/* Compare */
.compare-area { background: rgba(255,255,255,0.7); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.5); box-shadow: 0 4px 20px rgba(0,0,0,0.03); border-radius: 20px; padding: 30px; margin-bottom: 40px; text-align: center; }
.compare-label { font-size: 16px; font-weight: 700; margin-bottom: 15px; display: block; }
.input-wrapper { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 320px; margin: 0 auto; position: relative; }
.sim-input { width: 100%; padding: 16px 20px; font-size: 24px; border: 2px solid transparent; border-radius: 12px; font-family: 'Roboto', sans-serif; text-align: center; font-weight: 900; background: #f0f2f7; transition: all 0.3s; color: var(--c-text); }
.sim-input:focus { outline: none; background: #fff; border-color: #ff007a; box-shadow: 0 0 0 4px rgba(255, 0, 122, 0.1); }
.unit { font-weight: 700; font-size: 18px; position: absolute; right: 20px; color: var(--c-sub); pointer-events: none; }

/* Options */
.sim-section { margin-bottom: 45px; }
.section-label { font-size: 18px; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; }
.section-label::before { content:''; display:inline-block; width:8px; height:8px; background:var(--grad-primary); margin-right:12px; border-radius:50%; }
.section-desc { font-size: 13px; color: var(--c-sub); margin-bottom: 20px; display: block; }
.sim-options { display: flex; flex-direction: column; gap: 16px; transition: opacity 0.3s; position: relative; }
.sim-options.locked { opacity: 0.4; pointer-events: none; filter: grayscale(100%); }
.lock-overlay { display: none; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 2; background: rgba(26,26,46,0.9); color: #fff; padding: 12px 24px; border-radius: 50px; font-size: 13px; font-weight: bold; width: max-content; }
.sim-options.locked .lock-overlay { display: flex; align-items: center; gap: 8px; }

/* Cards */
.option-card { position: relative; background: var(--c-card); border: 2px solid var(--c-border); border-radius: 16px; padding: 22px 26px; cursor: pointer; transition: all 0.25s; display: flex; justify-content: space-between; align-items: center; }
.option-card:hover { border-color: #d1d5db; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.06); }
.option-card.active { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad-primary) border-box; box-shadow: 0 10px 30px rgba(157, 0, 255, 0.1); }
.opt-left { display: flex; flex-direction: column; text-align: left; flex-grow: 1; }
.opt-title { font-size: 16px; font-weight: 700; }
.opt-desc { font-size: 12px; color: var(--c-sub); margin-top: 4px; font-weight: 500; }
.opt-right { display: flex; align-items: center; text-align: right; flex-shrink: 0; margin-left: 15px; }
.opt-price { font-size: 16px; font-weight: 900; font-family: 'Roboto', sans-serif; letter-spacing: 0.5px; }
.option-card.active .opt-price { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.check-circle { width: 24px; height: 24px; border: 2px solid #ddd; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-left: 16px; transition: all 0.3s; background: #fff; }
.check-circle::after { content: ''; width: 10px; height: 10px; background: #fff; border-radius: 50%; opacity: 0; transform: scale(0); transition: all 0.3s; }
.option-card.active .check-circle { border-color: transparent; background: var(--grad-primary); }
.option-card.active .check-circle::after { opacity: 1; transform: scale(1); }

.note-list { margin-top: 14px; padding-left: 0; list-style: none; }
.note-item { font-size: 11px; color: #889; margin-bottom: 4px; padding-left: 1.2em; text-indent: -1.2em; }
.note-item::before { content: '※'; margin-right: 4px; color: #b0b3c0; }

/* Result Panel */
.result-panel { margin-top: 60px; padding: 0; background: #fff; border-radius: 24px; box-shadow: 0 20px 60px -10px rgba(0,0,0,0.1); overflow: hidden; border: 1px solid rgba(0,0,0,0.05); }
.result-header { background: #1a1a2e; padding: 25px; text-align: center; color: #fff; }
.result-title { font-size: 18px; font-weight: 700; margin: 0; }
.result-body { padding: 40px; }

/* Savings Box */
.savings-box { display: none; background: linear-gradient(135deg, #e3fdf5 0%, #ffe6fa 100%); border: 2px solid #fff; padding: 30px 25px; border-radius: 16px; margin-bottom: 40px; box-shadow: 0 10px 20px rgba(0,0,0,0.03); animation: slideDown 0.5s cubic-bezier(0.19, 1, 0.22, 1); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
.savings-title { font-size: 14px; font-weight: 700; color: var(--c-success); display: block; margin-bottom: 15px; text-align: center; text-transform: uppercase; letter-spacing: 0.05em; }

.graph-container { margin-bottom: 20px; }
.bar-group { display: flex; align-items: center; margin-bottom: 12px; }
.bar-label { width: 60px; font-size: 12px; font-weight: 700; color: #555; text-align: right; margin-right: 12px; }
.bar-area { flex: 1; height: 32px; background: rgba(255,255,255,0.6); border-radius: 16px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 16px; width: 0; transition: width 1s cubic-bezier(0.22, 1, 0.36, 1); display: flex; align-items: center; justify-content: flex-end; padding-right: 12px; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; }
.bar-current { background: #a0a0a0; }
.bar-ahamo { background: var(--grad-primary); box-shadow: 0 0 15px rgba(255,0,122,0.4); }

.benefit-text { text-align: center; font-size: 15px; font-weight: 700; color: var(--c-text); background: rgba(255,255,255,0.7); padding: 15px; border-radius: 12px; line-height: 1.5; }
.benefit-emoji { font-size: 22px; vertical-align: middle; margin-right: 5px; }
.benefit-highlight { color: #ff007a; font-weight: 900; font-size: 20px; }
.savings-box.negative { background: #fff0f1; border-color: #ffdce0; }
.savings-box.negative .savings-title { color: var(--c-error); }

/* Total Display */
.total-display { text-align: center; margin-bottom: 40px; padding-bottom: 30px; border-bottom: 1px dashed #ddd; }
.total-label { font-size: 15px; font-weight: 700; color: var(--c-sub); display: block; margin-bottom: 10px; }

/* 円の改行を絶対に防ぐコンテナ */
.total-price-row {
    display: flex;
    align-items: baseline;
    justify-content: center;
    flex-wrap: nowrap; /* 必須：改行禁止 */
}

.total-price-big { 
    font-family: 'Roboto', sans-serif; 
    font-size: 64px; 
    font-weight: 900; 
    background: var(--grad-primary); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    margin: 0;
    letter-spacing: -2px;
}

.total-unit {
    font-size: 24px;
    font-weight: 700;
    color: var(--c-text);
    margin-left: 8px;
    transform: translateY(-6px);
    white-space: nowrap; /* 円自体も改行させない */
}

.breakdown-container { display: flex; gap: 60px; }
.bd-col { flex: 1; }
.bd-title { font-size: 12px; font-weight: 900; color: #99a; margin-bottom: 20px; display: block; border-bottom: 2px solid #f0f0f0; padding-bottom: 8px; letter-spacing: 0.1em; text-transform: uppercase; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #f5f5f7; color: var(--c-text); }
.breakdown-row:last-child { border-bottom: none; }
.breakdown-row.highlight { font-weight: 700; font-size: 16px; border-top: 2px solid #eef0f5; padding-top: 18px; border-bottom: none; color: #1a1a2e; }
.bd-val { font-family: 'Roboto', sans-serif; font-weight: 700; }
.bd-val.big-data { font-size: 24px; color: #ff007a; }

.cta-area { margin-top: 50px; text-align: center; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; background: var(--grad-primary); color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; padding: 20px 60px; border-radius: 60px; box-shadow: 0 8px 20px rgba(255, 0, 122, 0.25); transition: all 0.3s; width: 100%; text-align: center; position: relative; overflow: hidden; }
.cta-btn::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transform: skewX(-20deg); animation: shine 3s infinite; }
@keyframes shine { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }
.cta-btn:hover { transform: translateY(-4px); box-shadow: 0 15px 30px rgba(255, 0, 122, 0.4); color: #fff; }

@media (max-width: 600px) { 
    .breakdown-container { flex-direction: column; gap: 40px; } 
    .ahamo-sim { padding: 30px 20px; border-radius: 20px; } 
    .result-body { padding: 30px 20px; }
    .total-price-big { font-size: 48px; }
    .cta-btn { padding: 18px 20px; }
}