/* ===========================================
   西宮つーしんプラス エイプリルフール CSS
   =========================================== */

/* ロゴ差し替え時のFOUC防止 */
body.n2af-active #logo .h1 img {
    transition: opacity .3s;
}

/* ===========================================
   ペイウォールボックス
   =========================================== */
.n2af-paywall {
    position: relative;
    margin: 32px 0 0;
}

.n2af-paywall-fade {
    height: 80px;
    background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,1));
    margin-top: -80px;
    position: relative;
    z-index: 1;
}

.n2af-paywall-box {
    background: #fff;
    border: 2px solid #dde3eb;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.n2af-paywall-lock {
    font-size: 40px;
    margin-bottom: 12px;
}

.n2af-paywall-title {
    font-size: 17px;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.6;
}

.n2af-paywall-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 20px;
}

/* 解除ボタン */
.n2af-btn-unlock {
    display: inline-block;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: #e8740c;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    -webkit-appearance: none;
}
.n2af-btn-unlock:hover {
    background: #d06a0a;
}
.n2af-btn-unlock:active {
    transform: scale(.97);
}

/* 事前登録ボタン（ペイウォール内） */
.n2af-paywall-sub {
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.n2af-btn-register {
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    color: #1a3a6b;
    background: #fff;
    border: 2px solid #1a3a6b;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s;
    -webkit-appearance: none;
}
.n2af-btn-register:hover {
    background: #f0f4fa;
}

.n2af-link-plan {
    font-size: 13px;
    color: #1a3a6b;
    text-decoration: underline;
}

/* ぼかしエリア */
.n2af-blurred {
    filter: blur(5px);
    pointer-events: none;
    user-select: none;
    transition: filter .5s;
    position: relative;
}
.n2af-blurred::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,.4);
}

/* 解除後 */
.n2af-blurred.n2af-unlocked {
    filter: none;
    pointer-events: auto;
    user-select: auto;
}
.n2af-blurred.n2af-unlocked::after {
    display: none;
}

.n2af-paywall.n2af-hidden {
    display: none;
}

/* ===========================================
   バナー
   =========================================== */
.n2af-banner {
    margin: 32px 0;
}

.n2af-banner-link {
    display: block;
    text-decoration: none;
    color: #333;
}

.n2af-banner-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f0f6ff;
    border: 1px solid #d0dff0;
    border-radius: 10px;
    transition: background .2s;
}
.n2af-banner-link:hover .n2af-banner-inner {
    background: #e4edfb;
}

.n2af-banner-badge {
    background: #e8740c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 4px;
    flex-shrink: 0;
}

.n2af-banner-text {
    flex: 1;
    font-size: 14px;
    line-height: 1.5;
}
.n2af-banner-text strong {
    color: #1a3a6b;
}
.n2af-banner-sub {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.n2af-banner-arrow {
    font-size: 20px;
    color: #1a3a6b;
    flex-shrink: 0;
}

/* ===========================================
   モーダル
   =========================================== */
.n2af-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.n2af-modal {
    background: #fff;
    border-radius: 16px;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 32px 20px;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

.n2af-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 28px;
    background: none;
    border: none;
    cursor: pointer;
    color: #999;
    line-height: 1;
    padding: 4px;
}

.n2af-modal-title {
    font-size: 22px;
    font-weight: 900;
    text-align: center;
    color: #1a3a6b;
    margin-bottom: 8px;
}

.n2af-modal-subtitle {
    text-align: center;
    color: #666;
    font-size: 14px;
    margin-bottom: 24px;
}

/* プラン */
.n2af-plans {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
@media (min-width: 540px) {
    .n2af-plans {
        grid-template-columns: repeat(3, 1fr);
    }
}

.n2af-plan {
    border: 2px solid #dde3eb;
    border-radius: 12px;
    padding: 20px 16px;
    text-align: center;
    position: relative;
}

.n2af-plan-popular {
    border-color: #e8740c;
    box-shadow: 0 2px 12px rgba(232,116,12,.12);
}

.n2af-plan-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #e8740c;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 14px;
    border-radius: 20px;
}

.n2af-plan-name {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
}

.n2af-plan-price {
    margin-bottom: 12px;
}
.n2af-price-num {
    font-size: 32px;
    font-weight: 900;
    color: #1a3a6b;
}
.n2af-price-unit {
    font-size: 13px;
    color: #888;
}

.n2af-plan-features {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
    text-align: left;
    font-size: 13px;
}
.n2af-plan-features li {
    padding: 3px 0 3px 18px;
    position: relative;
}
.n2af-plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #e8740c;
    font-weight: 700;
}

.n2af-btn-plan {
    width: 100%;
    padding: 10px;
    font-size: 14px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    background: #1a3a6b;
    color: #fff;
    transition: background .2s;
    -webkit-appearance: none;
}
.n2af-btn-plan:hover { background: #2a4a7b; }

.n2af-btn-popular {
    background: #e8740c;
}
.n2af-btn-popular:hover { background: #d06a0a; }

/* モーダルフッター */
.n2af-modal-footer {
    text-align: center;
    margin-top: 20px;
}
.n2af-link-password {
    font-size: 13px;
    color: #999;
}

/* サンクス画面 */
.n2af-thanks-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 12px;
}
.n2af-thanks-plan {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #e8740c;
    margin-bottom: 16px;
}
.n2af-thanks-text {
    text-align: center;
    font-size: 15px;
    color: #333;
    margin-bottom: 12px;
    line-height: 1.7;
}
.n2af-thanks-note {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 24px;
    line-height: 1.7;
}
.n2af-thanks-special {
    text-align: center;
    font-size: 18px;
    font-weight: 900;
    color: #e8740c;
    margin-bottom: 12px;
}

/* プラン変更確認画面 */
.n2af-confirm-plans {
    text-align: center;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}
.n2af-confirm-buttons {
    text-align: center;
}
.n2af-confirm-buttons .n2af-btn-register {
    display: inline-block;
}

/* パスワード画面 */
.n2af-password-form {
    max-width: 320px;
    margin: 20px auto;
}
.n2af-input {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border: 2px solid #dde3eb;
    border-radius: 8px;
    margin-bottom: 12px;
    -webkit-appearance: none;
}
.n2af-password-msg {
    text-align: center;
    font-size: 15px;
    color: #c62828;
    line-height: 1.7;
    padding: 20px 0;
}
.n2af-link-back {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #1a3a6b;
    margin-top: 16px;
}
