/* 共通スタイル */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a73e8;
    --secondary-color: #34a853;
    --accent-color: #fbbc04;
    --danger-color: #ea4335;
    --dark-bg: #0f1419;
    --light-bg: #f8f9fa;
    --text-dark: #202124;
    --text-light: #5f6368;
    --border-color: #e0e0e0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans JP', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: #ffffff;
}

/* ヘッダー */
header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.3s;
    cursor: pointer;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.cta-button {
    background: var(--primary-color);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.cta-button:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* ページコンテンツ */
.page-content {
    display: none;
    margin-top: 80px;
    min-height: calc(100vh - 80px);
}

.page-content.active {
    display: block;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-dark);
}

/* ページヘッダー */
.page-header {
    background: linear-gradient(135deg, rgba(26, 115, 232, 0.05) 0%, rgba(52, 168, 83, 0.05) 100%);
    padding: 3rem 2rem;
    text-align: center;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.page-header p {
    font-size: 1.125rem;
    color: var(--text-light);
}

/* コンテンツセクション */
.content-section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* フォーム */
.form-container {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.form-button {
    width: 100%;
    padding: 1rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.form-button:hover {
    background: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

/* フッター */
footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s;
    cursor: pointer;
}

.footer-links a:hover {
    opacity: 1;
}

/* アニメーション */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease-out;
}

/* ユーティリティクラス */
.positive {
    color: var(--secondary-color);
}

.negative {
    color: var(--danger-color);
}

/* アラートボックス */
.alert-box {
    background: rgba(26, 115, 232, 0.1);
    border-left: 4px solid var(--primary-color);
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
}

.alert-box.warning {
    background: rgba(251, 188, 4, 0.1);
    border-left-color: var(--accent-color);
}

.alert-box.danger {
    background: rgba(234, 67, 53, 0.1);
    border-left-color: var(--danger-color);
}

/* ===========================
   Paywall 共通スタイル  v2-1
   =========================== */
.paywall-locked { position: relative; }

.paywall-content-blur {
    filter: blur(6px);
    pointer-events: none;
    user-select: none;
}

/* ここを “fixed” に変更 */
.paywall-overlay {
    position: fixed;                 /* ← 変更点 */
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    width: clamp(260px, 90%, 540px);
    padding: 2rem 1.5rem;
    text-align: center;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(2px);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    z-index: 1000;                   /* 重なり順も十分に確保 */
}

.paywall-overlay h2 {
    font-size: 1.6rem;
    color: var(--text-dark);
}

.paywall-overlay p {
    font-size: 1.05rem;
    color: var(--text-light);
    line-height: 1.6;
}