@charset "UTF-8";

/* メインシミュレーターのスタイル */
.ym-sim-wrapper { width: 100%; max-width: 1000px; margin: 2rem auto; font-family: "Helvetica Neue", Arial, sans-serif; color: #333; }
.ym-sim-wrapper * { box-sizing: border-box; }
.ym-sim-grid { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.ym-panel { background: #fff; border-radius: 8px; box-shadow: 0 4px 10px rgba(0,0,0,0.08); padding: 24px; border: 1px solid #e5e7eb; }
.ym-section-title { font-size: 1rem; font-weight: bold; margin-bottom: 16px; border-left: 5px solid #ff0033; padding-left: 10px; }

.ym-plan-tabs { display: flex; gap: 10px; margin-bottom: 24px; }
.ym-plan-radio { display: none; }
.ym-plan-label { flex: 1; padding: 15px 5px; border: 2px solid #ddd; border-radius: 6px; text-align: center; cursor: pointer; transition: 0.2s; background:#fff; }
.ym-plan-radio:checked + .ym-plan-label { border-color: #ff0033; color: #ff0033; box-shadow: 0 0 0 1px #ff0033 inset; }
.ym-plan-size { font-size: 1.1rem; display: block; font-weight: bold; }
.ym-plan-gb { font-size: 0.85rem; color: #666; font-weight: bold; }

.ym-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 24px; }
.ym-form-group { display: flex; flex-direction: column; }
.ym-label { font-size: 0.85rem; font-weight: bold; margin-bottom: 6px; color: #555; }
.ym-select { width: 100%; padding: 10px; border: 1px solid #ccc; border-radius: 4px; font-size: 0.95rem; }
.ym-check-label { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; font-weight: bold; cursor: pointer; padding: 12px 16px; background: #f9f9f9; border-radius: 6px; border: 1px solid #eee; margin-bottom:12px; }
.ym-checkbox { accent-color: #ff0033; width: 20px; height: 20px; }

.ym-result-panel { position: sticky; top: 24px; z-index: 100; border-top: 6px solid #ff0033; }
.ym-res-plan-name { font-size: 1.4rem; font-weight: 700; text-align: center; margin-bottom: 15px; }
.ym-res-price-area { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px dashed #ddd; }
.ym-res-price { font-size: 3.5rem; font-weight: 900; font-family: 'Roboto', sans-serif; color: #ff0033; line-height: 1; letter-spacing: -2px; }
.ym-res-unit { font-size: 1rem; font-weight: bold; }

.ym-badge-list { display: flex; flex-direction: column; gap: 8px; }
.ym-res-badge { display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; padding: 10px 12px; border-radius: 4px; font-weight: bold; }
.ym-res-badge.discount { background: #fff0f2; color: #d63031; }
.ym-res-badge.option { background: #f0f7ff; color: #0055aa; }
.ym-res-badge.inactive { background: #f5f5f5; color: #aaa; text-decoration: line-through; }

.ym-campaign-area { margin-top: 20px; background: repeating-linear-gradient(45deg, #fffbeb, #fffbeb 10px, #fff 10px, #fff 20px); border: 2px solid #fbbf24; border-radius: 12px; padding: 20px; text-align: center; position: relative; overflow: hidden; }
.ym-campaign-area.no-camp { background: #f9f9f9; border: 2px solid #ddd; }
.ym-camp-ttl { display: inline-block; font-size: 0.8rem; font-weight: bold; color: #8d6e63; margin-bottom: 5px; background: rgba(255,255,255,0.8); padding: 2px 12px; border-radius: 20px; }
.ym-camp-pt { display: block; font-size: 1.6rem; font-weight: 900; color: #e65100; font-family: 'Roboto', sans-serif; text-shadow: 1px 1px 0 #fff; }
.ym-camp-alert { display: block; font-size: 0.7rem; color: #d32f2f; margin-top: 10px; font-weight: bold; }

.ym-btn-apply { display: block; width: 100%; background-color: #ff0033; color: #fff; font-weight: bold; font-size: 1.1rem; text-align: center; padding: 16px 0; border-radius: 50px; text-decoration: none; box-shadow: 0 4px 6px rgba(255, 0, 51, 0.2); margin-top: 24px; transition: 0.2s; }
.ym-btn-apply:hover { background-color: #e6002e; transform: translateY(-2px); box-shadow: 0 6px 12px rgba(255, 0, 51, 0.3); }

.ym-mini-note { margin-top: 30px; font-size: 0.75rem; color: #666; line-height: 1.6; padding: 0 10px; }
.ym-mini-note p { margin-bottom: 5px; }

@media (max-width: 900px) {
    .ym-sim-grid { grid-template-columns: 1fr; }
    .ym-form-grid { grid-template-columns: 1fr; }
    .ym-result-panel { position: static; order: -1; }
}

/* キャンペーン一覧テーブルのスタイル */
.ym-camp-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
    margin: 1em 0;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
}
.ym-camp-table th, .ym-camp-table td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    vertical-align: middle;
}
.ym-camp-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}
.ym-camp-table .ym-highlight {
    color: #d60000;
    font-weight: bold;
}
@media (max-width: 600px) {
    .ym-camp-table th, .ym-camp-table td {
        padding: 8px 4px;
        font-size: 0.8rem;
    }
}