/* RecTextAI アフィリエイトサイト 共通スタイル */

/* ========================================
   基本設定
======================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --secondary-color: #10b981;
    --accent-color: #f59e0b;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', 'Meiryo', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--bg-light);
}

/* ========================================
   ヘッダー
======================================== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 2rem 0;
    box-shadow: var(--shadow);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.tagline {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 1.5rem;
}

/* ヘッダー内の全てのリンク (<a>タグ) の文字色を白に設定 */
header a {
  /* 白 ($#FFFFFF$) に設定し、既存のリンク色を上書き */
  color: white !important; 
}
/* 1. 未訪問リンク（<a>タグ）の文字色を白に設定 */
header a {
  color: white !important; 
}

/* 2. 訪問済みリンク (a:visited) の文字色も白に設定 */
header a:visited {
  color: white !important; 
}

/* ========================================
   PR表記
======================================== */
.pr-notice {
    background-color: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 0.75rem 1rem;
    text-align: center;
    font-size: 0.9rem;
    color: #92400e;
    font-weight: 600;
}

.pr-notice p {
    margin: 0;
}

/* ========================================
   ナビゲーション
======================================== */
nav {
    background-color: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    position: relative;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    padding: 1rem;
    cursor: pointer;
    color: var(--text-dark);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    padding: 1rem 1.5rem;
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

nav a:hover {
    background-color: var(--bg-light);
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
}

/* スマホ対応 */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    nav ul.active {
        display: flex;
    }
    
    nav li {
        width: 100%;
        border-bottom: 1px solid var(--border-color);
    }
    
    nav a {
        padding: 1rem;
        border-bottom: none;
    }
}

/* ========================================
   メインコンテナ
======================================== */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

main {
    background-color: var(--bg-white);
    padding: 3rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ========================================
   見出し
======================================== */
h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
    font-weight: 700;
}

h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin: 2rem 0 1rem;
    font-weight: 600;
}

/* ========================================
   テキスト
======================================== */
p {
    margin-bottom: 1.5rem;
    font-size: 1.05rem;
    line-height: 1.8;
}

strong {
    color: var(--primary-color);
    font-weight: 700;
}

/* ========================================
   リスト
======================================== */
ul, ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.8rem;
    line-height: 1.8;
}

/* ========================================
   ボックス要素
======================================== */
.highlight-box {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background-color: var(--bg-white);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========================================
   テーブル
======================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
    overflow: hidden;
}

thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
}

th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
    background-color: var(--bg-light);
}

tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   CTA（Call To Action）ボタン
======================================== */
.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-color) 0%, #ea580c 100%);
    color: white;
    padding: 1.2rem 3rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background: linear-gradient(135deg, #ea580c 0%, #dc2626 100%);
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(234, 88, 12, 0.4);
}

.cta-container {
    text-align: center;
    margin: 3rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border-radius: 10px;
}

/* ========================================
   比較表（特別スタイル）
======================================== */
.comparison-table {
    margin: 2rem 0;
}

.comparison-table th:first-child {
    background-color: var(--text-dark);
}

.comparison-table .highlight {
    background-color: #fef3c7;
    font-weight: 700;
}

/* ========================================
   価格表示
======================================== */
.price-box {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
    border: 3px solid var(--secondary-color);
}

.price {
    font-size: 3rem;
    color: var(--secondary-color);
    font-weight: 700;
    margin: 1rem 0;
}

.price-note {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ========================================
   バッジ
======================================== */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    margin: 0.5rem 0.5rem 0.5rem 0;
}

.badge.new {
    background-color: #ef4444;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
    }
}

/* ========================================
   フッター
======================================== */
footer {
    background-color: var(--text-dark);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
}

footer a {
    color: var(--secondary-color);
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* ========================================
   レスポンシブデザイン
======================================== */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    main {
        padding: 1.5rem;
    }

    nav ul {
        flex-direction: column;
    }

    nav a {
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
    }

    nav a:hover {
        border-left-color: var(--primary-color);
        border-bottom-color: var(--border-color);
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    table {
        font-size: 0.9rem;
    }

    th, td {
        padding: 0.5rem;
    }

    .cta-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ========================================
   ユーティリティクラス
======================================== */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 2rem;
}

.mb-2 {
    margin-bottom: 2rem;
}

.text-primary {
    color: var(--primary-color);
}

.text-secondary {
    color: var(--secondary-color);
}

.text-accent {
    color: var(--accent-color);
}