@charset "UTF-8";

/* =========================================
   1. 基本レイアウト
   ========================================= */
.povo-fetcher-wrap {
    margin-bottom: 30px;
}
.povo-fetcher-wrap img {
    max-width: 100%;
    height: auto;
    vertical-align: bottom;
    box-shadow: none;
}

/* =========================================
   2. ニュース一覧
   ========================================= */
.povo-news-item {
    padding: 8px 0;
    border-bottom: 1px dashed #ddd;
}
.povo-news-item:last-child {
    border-bottom: none;
}
.povo-news-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}
.povo-news-item a:hover {
    opacity: 0.7;
}
.povo-date {
    display: inline-block;
    margin-right: 8px;
}

/* =========================================
   3. キャンペーン一覧
   ========================================= */
.povo-camp-item {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}
.povo-camp-item:last-child {
    border-bottom: none;
}
.povo-camp-img {
    flex: 0 0 140px !important;
    width: 140px !important;
    max-width: 140px !important;
    margin: 0 !important;
}
.povo-camp-img img {
    width: 100% !important;
    height: auto !important;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
    display: block;
    margin: 0;
}
.povo-camp-txt {
    flex: 1;
    min-width: 0;
}
.povo-camp-title {
    font-weight: bold;
    font-size: 1em;
    margin: 0 0 8px 0;
    line-height: 1.4;
}
.povo-camp-period {
    display: block;
    font-size: 0.85em;
    color: #666;
    margin-bottom: 6px;
}
.povo-camp-benefit {
    display: inline-block;
    font-size: 0.8em;
    color: #d63638;
    background: #fff5f5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #ffcccc;
}
@media (max-width: 600px) {
    .povo-camp-item {
        flex-direction: column !important;
    }
    .povo-camp-img {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 10px !important;
    }
    .povo-camp-img img {
        max-width: 300px !important;
    }
}

/* =========================================
   4. トッピング自動リスト
   ========================================= */
.povo-auto-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
    margin: 10px 0;
    border: 1px solid #eee;
}
.povo-auto-list th {
    background: #f7f7f7;
    padding: 10px;
    text-align: left;
    font-weight: bold;
}
.povo-auto-list td {
    border-top: 1px solid #eee;
    padding: 10px;
    vertical-align: middle;
}

/* =========================================
   5. シーズンチケット詳細
   ========================================= */
.povo-season-item {
    margin-bottom: 30px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.povo-season-img img {
    display: block;
    width: 100%;
    height: auto;
    background: #f0f0f0;
    margin: 0;
}
.povo-auto-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.povo-auto-table table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 0.95em;
    margin: 0;
    border: none;
}
.povo-auto-table th,
.povo-auto-table td {
    border: 1px solid #eee;
    padding: 12px 10px;
    text-align: left;
    vertical-align: middle;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.povo-auto-table th {
    background: #f9f9f9;
    font-weight: bold;
    color: #444;
    width: 30%;
    min-width: 120px;
}
.povo-season-notes {
    padding: 20px;
    margin: 0;
    background: #fafafa;
    border-top: 1px solid #eee;
    font-size: 0.9em;
}

/* =========================================
   6. 料金シミュレーター (旧スタイル - 共存用)
   ========================================= */
.p-sim-v2 {
    max-width: 500px;
    margin: 30px auto;
}
.p-sim-card {
    border: 3px solid #ffe600;
    border-radius: 24px;
    padding: 25px;
    background: #fff;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}
.p-sim-title {
    text-align: center;
    font-weight: 900;
    margin-bottom: 25px;
    font-size: 1.4em;
    border: none;
}
.current-bill-box {
    background: #f0faff;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid #cceeff;
    margin-bottom: 20px;
}
.p-sim-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-top: 8px;
}
.p-sim-input-wrap input {
    width: 100%;
    padding: 12px;
    padding-right: 40px;
    border-radius: 8px;
    border: 2px solid #ddd;
    font-size: 1.2em;
    font-weight: bold;
    box-sizing: border-box;
    outline: none;
    background: #fff;
    color: #333;
}
.p-sim-unit {
    position: absolute;
    right: 15px;
    font-weight: bold;
    color: #666;
}
.p-sim-step {
    margin-bottom: 20px;
}
.p-sim-label {
    display: block;
    font-weight: bold;
    margin-bottom: 8px;
    font-size: 0.9em;
}
.p-sim-select {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 2px solid #eee;
    background: #fff;
    cursor: pointer;
    font-size: 1em;
    color: #333;
}
.p-sim-list {
    max-height: 300px;
    overflow-y: auto;
    background: #f9f9f9;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 20px;
    border: 1px solid #eee;
}
.p-sim-item {
    display: flex;
    align-items: center;
    background: #fff;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    border: 2px solid #eee;
    cursor: pointer;
    transition: all 0.2s;
}
.p-sim-item:hover {
    border-color: #ffe600;
    background: #fffde6;
}
.p-sim-item input {
    transform: scale(1.3);
    margin-right: 12px;
    cursor: pointer;
}
.p-sim-item-info {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    flex-wrap: wrap;
}
.p-sim-name {
    font-size: 0.9em;
    font-weight: bold;
    line-height: 1.3;
}
.p-sim-price {
    font-weight: 900;
    font-size: 1em;
    margin-left: auto;
}
.p-sim-total-area {
    padding: 20px;
    background: #333;
    color: #fff;
    border-radius: 16px;
    text-align: center;
}
.p-sim-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.p-total {
    font-size: 1.6em;
    font-weight: 900;
    color: #ffe600;
}
.p-sim-saving-row {
    border-top: 1px dashed #666;
    padding-top: 15px;
    margin-top: 10px;
}
.p-sim-saving-txt {
    font-size: 1em;
    font-weight: bold;
    line-height: 1.6;
}
.p-saving-val {
    font-size: 2.2em;
    color: #00ffaa;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(0,255,170,0.2);
}
.p-sim-saving-annual {
    font-size: 0.85em;
    color: #00ffaa;
    margin-top: 5px;
    opacity: 0.9;
}
.p-sim-disclaimer {
    font-size: 0.7em;
    color: #999;
    margin-top: 12px;
    text-align: center;
    display: block;
}
.p-badge {
    background: #ff4d4f;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75em;
    margin-right: 4px;
    vertical-align: text-bottom;
}
.povo-item-desc {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    font-size: 0.95em;
    line-height: 1.8;
}

/* =================================================================
   ▼▼▼ 新しい料金シミュレーター用CSS (Modern UI) - ここから追記 ▼▼▼
   ================================================================= */
:root {
    --pa-yellow: #FFE600;
    --pa-black: #1A1A1A;
    --pa-gray: #F4F4F6;
    --pa-border: #E5E5E5;
    --pa-font: 'Inter', 'Noto Sans JP', sans-serif;
}

.povo-app-wrapper {
    display: flex; justify-content: center;
    font-family: var(--pa-font); color: var(--pa-black);
    background: transparent; padding: 20px 0;
}

.povo-app-container {
    width: 100%; max-width: 600px;
    background: #FFFFFF; border-radius: 32px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    position: relative; overflow: hidden;
    border: 1px solid rgba(0,0,0,0.02);
}

/* Header */
.pa-header {
    padding: 30px 24px 20px; background: #fff;
    border-bottom: 1px solid var(--pa-gray); text-align: center;
}
.pa-title { font-size: 1.6rem; font-weight: 900; margin: 0; letter-spacing: -0.02em; }
.pa-desc { font-size: 0.85rem; color: #888; margin: 8px 0 0; line-height: 1.5; }

/* Input Area */
.pa-input-section { padding: 24px; background: #fff; border-bottom: 8px solid var(--pa-gray); }
.pa-input-label { display: block; font-size: 1.0rem; font-weight: 700; margin-bottom: 10px; color: #555; }
.pa-input-wrap { position: relative; margin-bottom: 12px; }
.pa-input-field {
    width: 100%; box-sizing: border-box;
    font-size: 1.8rem; font-weight: 900;
    padding: 14px 70px 14px 16px;
    border: 2px solid var(--pa-border); border-radius: 12px;
    outline: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: #f9f9f9; -moz-appearance: textfield;
}
.pa-input-field:focus { border-color: var(--pa-yellow); background: #fff; box-shadow: 0 4px 20px rgba(255, 230, 0, 0.15); }
.pa-input-unit { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 1rem; font-weight: 700; color: #999; }

.pa-mini-result { display: flex; justify-content: flex-end; align-items: baseline; gap: 8px; font-size: 0.9rem; color: #555; }
.pa-mini-result .value { font-weight: 700; font-size: 1.2rem; color: var(--pa-black); }

/* Accordion */
.pa-section { border-bottom: 1px solid var(--pa-gray); }
.pa-section-head {
    padding: 24px 24px; display: flex; justify-content: space-between; align-items: center;
    cursor: pointer; background: #fff; transition: background 0.2s; user-select: none;
}
.pa-section-head:active { background: #fafafa; }
.pa-section-title {
    font-size: 1.1rem; font-weight: 900; color: var(--pa-black);
    border-left: 5px solid var(--pa-yellow); padding-left: 14px; line-height: 1.3;
}
.pa-arrow {
    width: 12px; height: 12px; border-right: 2px solid #ccc; border-bottom: 2px solid #ccc;
    transform: rotate(45deg); transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55); margin-bottom: 4px;
}
.pa-section-head.is-open .pa-arrow { transform: rotate(-135deg); border-color: var(--pa-black); margin-bottom: -4px; }

.pa-accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.5s cubic-bezier(0.25, 1, 0.5, 1); opacity: 0; }
.pa-accordion-body.is-open { opacity: 1; }
.pa-accordion-inner { padding-bottom: 24px; }

/* List Items */
.pa-table-head, .pa-list-item {
    display: grid; grid-template-columns: 1.8fr 1fr 0.8fr;
    gap: 12px; padding: 12px 20px; align-items: center;
}
.pa-table-head {
    background: var(--pa-gray); font-size: 0.75rem; font-weight: 700; color: #666;
    text-align: center; line-height: 1.3; border-top: 1px solid #eee; border-bottom: 1px solid #ddd;
}
.pa-table-head .col-1 { text-align: left; }
.pa-table-head .col-3 { text-align: right; }
.pa-table-head .sub { font-weight: 400; font-size: 0.7rem; display: block; }

.pa-list-item { 
    cursor: pointer; border-bottom: 1px solid var(--pa-gray); 
    transition: transform 0.1s ease, background 0.2s; position: relative;
}
.pa-list-item:active { transform: scale(0.99); background: #fafafa; }

.item-flex { display: flex; align-items: flex-start; gap: 10px; }
.item-center { text-align: center; }
.item-right { text-align: right; }
.sim-input { display: none; }

/* Custom Checkbox Animation */
.custom-check-box {
    width: 24px; height: 24px; border: 2px solid #DDD; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0; margin-top: 2px; background: #fff;
}
.check-mark {
    width: 10px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) scale(0); transition: transform 0.2s ease; margin-top: -2px;
}
.sim-input:checked + .custom-check-box { 
    background: var(--pa-yellow); border-color: var(--pa-yellow); transform: scale(1.1);
}
.sim-input:checked + .custom-check-box .check-mark {
    transform: rotate(-45deg) scale(1); border-color: #000;
}

.item-name-wrap .name { font-size: 1.0rem; font-weight: 700; line-height: 1.4; display: block; }
.badge-limit { display: inline-block; font-size: 0.7rem; background: #FF4444; color: #fff; padding: 2px 6px; border-radius: 4px; font-weight: 700; margin-top: 4px; }
.per30-val { font-size: 0.9rem; font-weight: 700; color: #444; background: #f9f9f9; padding: 4px 8px; border-radius: 6px; }
.price-val { font-size: 1.25rem; font-weight: 900; }
.unit { font-size: 0.8rem; font-weight: 700; margin-left: 2px;}

/* Result Section */
.pa-static-result { padding: 30px 24px; background: #fff; border-top: 2px solid var(--pa-gray); }

/* Savings Box */
.pa-savings-box {
    background: var(--pa-black); color: #fff; margin-bottom: 24px;
    padding: 16px 20px; border-radius: 16px;
    display: flex; align-items: flex-start; gap: 14px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    animation: slideUpFade 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes slideUpFade { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.pa-savings-icon { 
    font-size: 2rem; line-height: 1; margin-top: 4px; flex-shrink: 0;
    animation: shake 2.5s infinite ease-in-out;
}
@keyframes shake { 0%, 100% { transform: rotate(0deg); } 10% { transform: rotate(-15deg); } 30% { transform: rotate(15deg); } 50% { transform: rotate(0deg); } }

/* テキストレイアウト調整 */
.pa-savings-text-wrapper { display: block; font-weight: 700; line-height: 1.3; }
.pa-savings-prefix { font-size: 0.9rem; margin-right: 6px; opacity: 0.9; }
.pa-savings-main { font-size: 1.1rem; }
.pa-savings-main .price-hl { color: var(--pa-yellow); font-size: 1.6rem; white-space: nowrap; font-weight: 900; }
.pa-savings-annual { font-size: 0.8rem; color: #ccc; margin-top: 6px; font-weight: 700; }

/* PCレイアウト */
@media (min-width: 550px) {
    .pa-savings-box { align-items: center; }
    .pa-savings-icon { margin-top: 0; }
    .pa-savings-text-wrapper { display: inline-block; }
    .pa-savings-annual { margin-top: 2px; }
}

.pa-result-row.primary { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.pa-result-row.primary .label { font-size: 1.0rem; font-weight: 700; }
.pa-result-row.primary .value { font-size: 2.2rem; font-weight: 900; color: var(--pa-black); line-height: 1; }
.pa-result-sub-grid { display: flex; gap: 12px; padding-top: 12px; border-top: 1px dashed #ddd; }
.pa-mini-stat { flex: 1; display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; }
.pa-mini-stat .label { color: #888; }
.pa-mini-stat .value { font-weight: 700; font-size: 1.0rem; }

@media (max-width: 600px) {
    .povo-app-wrapper { padding: 0; }
    .povo-app-container { max-width: 100%; border-radius: 0; height: auto; border: none; box-shadow: none; }
    
    /* スマホ向け調整 */
    .pa-savings-prefix { display: block; margin-bottom: 4px; }
    .pa-savings-main .price-hl { font-size: 1.5rem; }
}