/* =====================================
   探偵・浮気調査アフィリエイトサイト
   30代女性向けデザイン
   ===================================== */

/* リセット */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 変数定義 */
:root {
    --primary-color: #FFE4E1;
    --secondary-color: #8B7D7B;
    --accent-color: #FF69B4;
    --text-color: #333333;
    --bg-color: #FFFFFF;
    --border-color: #E8E8E8;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* 基本スタイル */
body {
    font-family: 'Noto Sans JP', '游ゴシック', 'Yu Gothic', sans-serif;
    color: var(--text-color);
    background-color: var(--bg-color);
    line-height: 1.8;
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

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

.section {
    padding: 60px 0;
}

/* ヘッダー */
.header {
    background-color: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    color: var(--accent-color);
}

/* ナビゲーション */
.nav ul {
    display: flex;
    gap: 25px;
    list-style: none;
}

.nav a {
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--accent-color);
}

/* モバイルメニュー */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--secondary-color);
    transition: all 0.3s;
}

/* ヒーローセクション */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, #FFF5F5 100%);
    padding: 80px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 20px;
    line-height: 1.5;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-color);
    margin-bottom: 30px;
    line-height: 1.8;
}

.hero-image {
    margin: 40px auto;
    max-width: 600px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* CTAボタン */
.btn {
    display: inline-block;
    padding: 15px 40px;
    border-radius: 50px;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #FF1493);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 105, 180, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 105, 180, 0.4);
}

.btn-secondary {
    background-color: white;
    color: var(--accent-color);
    border: 2px solid var(--accent-color);
}

.btn-secondary:hover {
    background-color: var(--accent-color);
    color: white;
}

.btn-large {
    padding: 18px 50px;
    font-size: 18px;
}

/* 3ステップ */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.step {
    text-align: center;
    padding: 30px 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

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

.step-number {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), #FF1493);
    color: white;
    font-size: 24px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.step p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

/* カード */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

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

.card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-content {
    padding: 25px;
}

.card-category {
    display: inline-block;
    padding: 5px 12px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--secondary-color);
}

.card p {
    font-size: 14px;
    color: var(--text-color);
    line-height: 1.6;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--accent-color);
    font-weight: bold;
    margin-top: 15px;
    font-size: 14px;
}

.card-link:hover {
    gap: 10px;
}

/* セクションタイトル */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 32px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #FF1493);
}

.section-title p {
    font-size: 16px;
    color: var(--text-color);
    margin-top: 25px;
}

/* 診断バナー */
.diagnosis-banner {
    background: linear-gradient(135deg, #FF69B4, #FF1493);
    color: white;
    padding: 50px 30px;
    border-radius: 15px;
    text-align: center;
    margin: 50px 0;
    box-shadow: 0 10px 30px rgba(255, 105, 180, 0.3);
}

.diagnosis-banner h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.diagnosis-banner p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

/* 比較表 */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background-color: white;
    box-shadow: var(--shadow);
    border-radius: 10px;
    overflow: hidden;
    margin: 30px 0;
}

.comparison-table th,
.comparison-table td {
    padding: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.comparison-table th {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: bold;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover {
    background-color: #FFF5F5;
}

.table-highlight {
    background-color: #FFF9E6 !important;
    font-weight: bold;
}

.badge {
    display: inline-block;
    padding: 5px 10px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    margin-left: 10px;
}

/* チェックリスト */
.checklist {
    background-color: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 20px 0;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background-color 0.3s;
}

.checklist-item:hover {
    background-color: var(--primary-color);
}

.checklist-item:last-child {
    border-bottom: none;
}

.checklist-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.checklist-item label {
    flex: 1;
    cursor: pointer;
    font-size: 15px;
}

/* アコーディオン */
.accordion {
    background-color: white;
    border-radius: 10px;
    box-shadow: var(--shadow);
    margin: 20px 0;
    overflow: hidden;
}

.accordion-item {
    border-bottom: 1px solid var(--border-color);
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    transition: background-color 0.3s;
}

.accordion-header:hover {
    background-color: var(--primary-color);
}

.accordion-header h3 {
    font-size: 16px;
    color: var(--secondary-color);
    font-weight: 600;
}

.accordion-icon {
    color: var(--accent-color);
    transition: transform 0.3s;
}

.accordion-header.active .accordion-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #FAFAFA;
}

.accordion-content-inner {
    padding: 20px 25px;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-color);
}

/* フッター */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

/* CTA固定バー */
.fixed-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    z-index: 999;
    display: none;
}

.fixed-cta.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.fixed-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.fixed-cta-text {
    font-size: 14px;
    color: var(--text-color);
}

/* レスポンシブ */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background-color: white;
        padding: 30px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow);
    }

    .nav.active {
        left: 0;
    }

    .nav ul {
        flex-direction: column;
        gap: 20px;
    }

    .nav a {
        font-size: 16px;
    }

    .menu-toggle {
        display: flex;
    }

    .hero h1 {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title h2 {
        font-size: 24px;
    }

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

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

    .comparison-table {
        font-size: 14px;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 12px;
    }

    .fixed-cta-inner {
        flex-direction: column;
        text-align: center;
    }

    .diagnosis-banner h3 {
        font-size: 22px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }
}

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

.mt-30 {
    margin-top: 30px;
}

.mb-30 {
    margin-bottom: 30px;
}

.highlight {
    background: linear-gradient(transparent 60%, var(--primary-color) 60%);
    font-weight: bold;
}

.icon-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* アニメーション */
.fade-in {
    animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
