/* =============================
   PAY.JP Simple Checkout Styles
   ============================= */

/* 購入ボタン */
.payjp-sc-checkout {
    margin: 1.5em 0;
}

.payjp-sc-btn {
    display: inline-block;
    padding: 0.75em 2em;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    transition: background 0.2s, opacity 0.2s;
}

.payjp-sc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.payjp-sc-btn.primary {
    background: #0073aa;
    color: #fff;
}

.payjp-sc-btn.primary:hover:not(:disabled) {
    background: #005177;
}

.payjp-sc-btn.secondary {
    background: #f1f1f1;
    color: #333;
    margin-left: 0.5em;
}

/* メッセージ */
.payjp-sc-message {
    margin-top: 0.75em;
    padding: 0.6em 1em;
    border-radius: 4px;
    font-size: 0.95rem;
}

.payjp-sc-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.payjp-sc-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* お知らせ（ログイン促進など） */
.payjp-sc-notice {
    padding: 0.75em 1em;
    background: #fff3cd;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    color: #856404;
}

.payjp-sc-notice.purchased {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.payjp-sc-notice.coming-soon {
    background: #2a2a2a;
    border-color: #444;
    color: #888;
    font-size: 0.95em;
}

/* アクセス拒否 */
.payjp-sc-access-denied {
    padding: 1em 1.5em;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    color: #333;
    border-radius: 0 4px 4px 0;
}

/* =============================
   PayPay ボタン
   ============================= */
.paypay-sc-checkout {
    margin: 1em 0;
}

.paypay-sc-btn {
    display: inline-block;
    padding: 0.75em 2em;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    border-radius: 4px;
    border: none;
    background: #e00020;
    color: #fff;
    transition: background 0.2s, opacity 0.2s;
}

.paypay-sc-btn:hover:not(:disabled) {
    background: #b8001a;
}

.paypay-sc-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* =============================
   統合購入フォーム
   ============================= */
.checkout-form-wrap {
    margin: 1.5em 0;
}

.checkout-buyer-fields {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 1.2em;
    margin-bottom: 1.2em;
}

.checkout-field {
    margin-bottom: 0.9em;
}

.checkout-field:last-child {
    margin-bottom: 0;
}

.checkout-label {
    display: block;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 0.3em;
}

.checkout-required {
    color: #c0392b;
    font-size: 0.8em;
    font-weight: normal;
}

.checkout-optional {
    color: #888;
    font-size: 0.8em;
    font-weight: normal;
}

.checkout-input {
    width: 100%;
    padding: 0.6em 0.8em;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    box-sizing: border-box;
}

.checkout-input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.15);
}

.checkout-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.7em;
}

/* =============================
   カード入力モーダル
   ============================= */
.payjp-sc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

.payjp-sc-modal {
    background: #fff;
    border-radius: 8px;
    padding: 2em;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.payjp-sc-modal h3 {
    margin: 0 0 1em;
    font-size: 1.1rem;
    color: #333;
}

#payjp-sc-card-element {
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.75em;
    margin-bottom: 0.5em;
    background: #fafafa;
}

#payjp-sc-card-errors {
    color: #c0392b;
    font-size: 0.88rem;
    min-height: 1.2em;
    margin-bottom: 1em;
}

.payjp-sc-modal-actions {
    display: flex;
    gap: 0.5em;
    justify-content: flex-end;
}

/* =============================
   教材ページ レッスン表示
   ============================= */

.lesson-item {
    margin: 2em 0;
    padding: 1.5em;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.lesson-title {
    font-size: 1.15rem;
    font-weight: bold;
    margin: 0 0 1em;
    padding-bottom: 0.6em;
    border-bottom: 2px solid #0073aa;
    color: #222;
}

.lesson-number {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    padding: 0.1em 0.65em;
    border-radius: 4px;
    font-size: 0.85em;
    margin-right: 0.4em;
    vertical-align: middle;
}

/* 動画: 16:9 レスポンシブ */
.lesson-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 6px;
    background: #000;
    margin-bottom: 1em;
}

.lesson-video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* PDF ダウンロードボタン */
.lesson-pdf {
    margin-top: 0.8em;
}

.lesson-pdf-btn {
    display: inline-block;
    padding: 0.6em 1.4em;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: bold;
    transition: background 0.2s, border-color 0.2s;
}

.lesson-pdf-btn:hover {
    background: #e8e8e8;
    border-color: #aaa;
    text-decoration: none;
    color: #333;
}

/* ==============================
   販売ページ Apple風デザイン
   ============================== */

.sp-page {
    font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
    background: #000;
    color: #f5f5f7;
    margin: 0 -9999px;
    padding: 0 9999px;
    box-sizing: content-box;
}

/* ── ヒーロー ── */
.sp-hero {
    position: relative;
    text-align: center;
    padding: 100px 24px 80px;
    overflow: hidden;
}

.sp-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(0, 113, 227, 0.13) 0%, transparent 65%);
    pointer-events: none;
}

.sp-hero-inner {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
}

.sp-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0071e3;
    margin: 0 0 1.2rem;
}

.sp-headline {
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin: 0 0 1.5rem;
    background: linear-gradient(160deg, #fff 50%, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sp-subhead {
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    color: #a1a1a6;
    line-height: 1.7;
    margin: 0 0 2.5rem;
}

/* ── 購入ボタン ── */
.sp-btn-wrap .payjp-sc-btn {
    display: inline-block;
    padding: 0.9em 2.8em;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #0071e3;
    color: #fff;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(0, 113, 227, 0.3);
}

.sp-btn-wrap .payjp-sc-btn:hover {
    background: #0077ed;
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(0, 113, 227, 0.45);
}

.sp-btn-wrap .payjp-sc-btn:active {
    transform: scale(0.97);
    background: #005bbf;
    box-shadow: 0 2px 10px rgba(0, 113, 227, 0.2);
}

.sp-price-note {
    font-size: 0.82rem;
    color: #6e6e73;
    margin: 1rem 0 0;
}

/* 購入ラベル */
.sp-purchase-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #a1a1a6;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 0 0 0.8rem;
}

/* ボタン縦並び */
.sp-payment-btns {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    align-items: center;
}

/* PayPayボタン Apple風 */
.sp-btn-wrap .paypay-sc-btn {
    display: inline-block;
    padding: 0.9em 2.8em;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    background: #e00020;
    color: #fff;
    border: none;
    border-radius: 980px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 20px rgba(224, 0, 32, 0.3);
}

.sp-btn-wrap .paypay-sc-btn:hover {
    background: #c0001c;
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgba(224, 0, 32, 0.45);
}

.sp-btn-wrap .paypay-sc-btn:active {
    transform: scale(0.97);
    background: #a00018;
    box-shadow: 0 2px 10px rgba(224, 0, 32, 0.2);
}

.paypay-sc-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
}

.paypay-logo {
    height: 1.4em;
    width: auto;
    vertical-align: middle;
    object-fit: contain;
}

/* ── 特徴セクション ── */
.sp-features {
    padding: 80px 24px;
    border-top: 1px solid #1d1d1f;
}

.sp-section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.sp-section-title h2 {
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    margin: 0;
}

.sp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sp-feature-item {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-feature-item:hover {
    transform: translateY(-5px);
    border-color: #3a3a3a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.sp-feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
}

.sp-feature-item h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0 0 0.6rem;
}

.sp-feature-item p {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.65;
    margin: 0;
}

/* ── CTAセクション ── */
.sp-cta {
    border-top: 1px solid #1d1d1f;
    text-align: center;
    padding: 80px 24px;
}

.sp-cta h2 {
    font-size: clamp(1.5rem, 4vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    color: #f5f5f7;
    margin: 0 0 2rem;
}

/* ── ヒーロー スクロールボタン ── */
.sp-scroll-btn {
    display: inline-block;
    padding: 0.75em 2em;
    font-size: 1rem;
    font-weight: 600;
    color: #f5f5f7;
    border: 1.5px solid #3a3a3a;
    border-radius: 980px;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.sp-scroll-btn:hover {
    border-color: #888;
    color: #fff;
    text-decoration: none;
}

/* ── コース選択セクション ── */
.sp-courses {
    padding: 80px 24px;
    border-top: 1px solid #1d1d1f;
}

.sp-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}

.sp-course-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 2rem 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.sp-course-card:hover {
    transform: translateY(-5px);
    border-color: #3a3a3a;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.sp-course-icon {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
}

.sp-course-name {
    font-size: 1.15rem;
    font-weight: 700;
    color: #f5f5f7;
    margin: 0;
}

.sp-course-desc {
    font-size: 0.88rem;
    color: #6e6e73;
    line-height: 1.65;
    margin: 0;
}

.sp-course-price {
    font-size: 1rem;
    font-weight: 600;
    color: #f5f5f7;
    margin: 0.4rem 0 0;
}

/* ── モバイル対応 ── */
@media (max-width: 600px) {
    .sp-hero {
        padding: 70px 20px 60px;
    }
    .sp-features,
    .sp-courses {
        padding: 60px 20px;
    }
    .sp-feature-grid,
    .sp-course-grid {
        grid-template-columns: 1fr;
    }
}
