/**
 * カスタムスタイル
 * style.cssに追加のスタイルを記述
 * 
 * @package SUGO_Japan_Theme
 */

/* ========================================
   記事内の装飾ボックス
======================================== */
.info-box {
    background: linear-gradient(135deg, #E3F2FD 0%, #BBDEFB 100%);
    border-left: 4px solid #2196F3;
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.info-box::before {
    content: '&#8505;&#65039; ';
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
}

.success-box {
    background: linear-gradient(135deg, #E8F5E9 0%, #C8E6C9 100%);
    border-left: 4px solid var(--success);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.success-box::before {
    content: '&#9989; ';
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
}

.warning-box {
    background: linear-gradient(135deg, #FFF3E0 0%, #FFE0B2 100%);
    border-left: 4px solid var(--warning);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.warning-box::before {
    content: '&#9888;&#65039; ';
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
}

.point-box {
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--primary-light) 100%);
    border: 2px solid var(--primary-color);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    margin: var(--spacing-lg) 0;
}

.point-box::before {
    content: '&#128161; ';
    font-size: 1.2rem;
    margin-right: var(--spacing-sm);
}

/* ========================================
   ステップガイド
======================================== */
.step-guide {
    counter-reset: step-counter;
    margin: var(--spacing-xl) 0;
}

.step-item {
    counter-increment: step-counter;
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-xl);
}

.step-item::before {
    content: counter(step-counter);
    position: absolute;
    left: 0;
    top: 0;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: var(--shadow-md);
}

.step-item h3 {
    margin-top: 0;
    color: var(--primary-color);
}

/* ========================================
   比較テーブル
======================================== */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--spacing-lg) 0;
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.comparison-table thead {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

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

.comparison-table th {
    font-weight: 600;
}

.comparison-table tbody tr:hover {
    background: var(--light-bg);
}

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

/* モバイル対応 */
@media (max-width: 767px) {
    .comparison-table {
        font-size: 0.9rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: var(--spacing-sm);
    }
}

/* ========================================
   Q&Aアコーディオン
======================================== */
.faq-item {
    background: var(--white);
    margin-bottom: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    padding: var(--spacing-lg);
    cursor: pointer;
    position: relative;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    transition: var(--transition);
}

.faq-question::before {
    content: 'Q';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
}

.faq-question::after {
    content: '▼';
    position: absolute;
    right: var(--spacing-lg);
    transition: var(--transition);
    color: var(--primary-color);
}

.faq-question:hover {
    background: var(--light-bg);
}

.faq-item.active .faq-question::after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    padding: 0 var(--spacing-lg);
}

.faq-answer-content {
    padding: var(--spacing-lg);
    padding-top: 0;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-answer-content::before {
    content: 'A';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    color: var(--white);
    border-radius: 50%;
    font-weight: 700;
    margin-right: var(--spacing-sm);
    font-size: 0.9rem;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

/* ========================================
   プロフィールカード
======================================== */
.profile-card {
    display: flex;
    gap: var(--spacing-lg);
    background: var(--white);
    padding: var(--spacing-xl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin: var(--spacing-xl) 0;
}

.profile-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--primary-light);
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-info h3 {
    margin-top: 0;
    color: var(--primary-color);
}

.profile-info p {
    color: var(--text-gray);
    line-height: 1.7;
}

@media (max-width: 767px) {
    .profile-card {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image {
        margin: 0 auto;
    }
}

/* ========================================
   レビュー・評価
======================================== */
.review-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-lg);
}

.review-header {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--accent-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.review-rating {
    color: var(--warning);
    font-size: 1.2rem;
}

.review-text {
    color: var(--text-gray);
    line-height: 1.7;
    padding: var(--spacing-md);
    background: var(--light-bg);
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-color);
}

/* ========================================
   価格表
======================================== */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin: var(--spacing-xl) 0;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pricing-card.featured {
    border-color: var(--primary-color);
    position: relative;
}

.pricing-card.featured::before {
    content: '人気';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-md);
    color: var(--text-dark);
}

.pricing-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.pricing-amount sup {
    font-size: 1.5rem;
}

.pricing-period {
    color: var(--text-gray);
    margin-bottom: var(--spacing-lg);
}

.pricing-features {
    list-style: none;
    margin: var(--spacing-lg) 0;
    padding: 0;
}

.pricing-features li {
    padding: var(--spacing-sm) 0;
    color: var(--text-gray);
}

.pricing-features li::before {
    content: '&#10003; ';
    color: var(--success);
    font-weight: 700;
    margin-right: var(--spacing-sm);
}

/* ========================================
   タイムライン
======================================== */
.timeline {
    position: relative;
    padding-left: 40px;
    margin: var(--spacing-xl) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--primary-color), var(--accent-color));
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-xl);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--white);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-date {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
}

/* ========================================
   画像ギャラリー
======================================== */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    transition: var(--transition);
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ========================================
   プログレスバー
======================================== */
.progress-bar {
    background: var(--gray);
    height: 25px;
    border-radius: 20px;
    overflow: hidden;
    margin: var(--spacing-md) 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 var(--spacing-sm);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    transition: width 1s ease;
}

/* ========================================
   スクロールインジケーター
======================================== */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    z-index: 9999;
    transition: width 0.1s ease;
}