/**
 * コンポーネント修正用CSS - フェーズ2
 * カード、CTA、アイコンリストなどのコンポーネント修正
 */

/* ========================================
   カード/ボックスデザインの改善
======================================== */
.card,
.box,
.content-box,
.info-card,
.clinic-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5em;
    margin: 1.5em 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover,
.box:hover,
.content-box:hover,
.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}

/* カード内の画像 */
.card img,
.box img,
.content-box img,
.info-card img {
    width: calc(100% + 3em);
    margin: -1.5em -1.5em 1.5em -1.5em;
    display: block;
}

/* カードのヘッダー */
.card-header,
.box-header {
    margin-bottom: 1em;
    padding-bottom: 1em;
    border-bottom: 2px solid #f0f0f0;
}

.card-title,
.box-title {
    font-size: 1.3em;
    font-weight: bold;
    color: #333;
    margin: 0;
}

/* カードの本文 */
.card-body,
.box-body {
    line-height: 1.7;
    color: #666;
}

/* カードのフッター */
.card-footer,
.box-footer {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #f0f0f0;
}

/* カードグリッド */
.card-grid,
.box-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2em;
    margin: 2em 0;
}

@media (max-width: 768px) {
    .card-grid,
    .box-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CTAセクションのスタイル実装
======================================== */
.cta,
.cta-section,
.call-to-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    padding: 3em 2em;
    margin: 3em 0;
    border-radius: 12px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before,
.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.3; }
}

.cta-title,
.cta h2,
.cta h3 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #fff;
    position: relative;
    z-index: 1;
}

.cta-description,
.cta p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
    color: rgba(255,255,255,0.9);
    position: relative;
    z-index: 1;
}

.cta-button,
.cta .button,
.cta a.button,
.btn-cta {
    display: inline-block;
    background: #fff;
    color: #764ba2;
    padding: 1em 2.5em;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.cta-button:hover,
.cta .button:hover,
.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: #f0f0f0;
}

/* ========================================
   アイコン付きリストの修正
======================================== */
.icon-list,
.feature-list,
ul.with-icons {
    list-style: none;
    padding: 0;
    margin: 2em 0;
}

.icon-list li,
.feature-list li,
ul.with-icons li {
    position: relative;
    padding-left: 3em;
    margin-bottom: 1.5em;
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
}

.icon-list li::before,
.feature-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* チェックマークアイコン */
.icon-list.check li::before,
ul.check-list li::before {
    content: '✓';
    color: #fff;
    font-weight: bold;
    font-size: 1.2em;
    line-height: 1;
    text-align: center;
}

/* 番号付きリスト */
.icon-list.numbered li {
    counter-increment: list-counter;
}

.icon-list.numbered li::before {
    content: counter(list-counter);
    color: #fff;
    font-weight: bold;
    font-size: 1.1em;
    line-height: 2em;
    text-align: center;
}

.icon-list.numbered {
    counter-reset: list-counter;
}

/* カスタムアイコン */
.icon-list li .icon,
.feature-list li .icon {
    position: absolute;
    left: 0;
    top: 0;
    width: 2em;
    height: 2em;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border-radius: 50%;
    color: #667eea;
}

.icon-list li .icon svg,
.feature-list li .icon svg {
    width: 1.2em;
    height: 1.2em;
}

/* ========================================
   ボタンスタイルの統一
======================================== */
.button,
.btn,
a.button,
a.btn,
button.btn {
    display: inline-block;
    padding: 0.75em 2em;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(102, 126, 234, 0.3);
}

.button:hover,
.btn:hover {
    background: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(102, 126, 234, 0.4);
}

/* ボタンバリエーション */
.button.primary,
.btn-primary {
    background: #e91e63;
}

.button.primary:hover,
.btn-primary:hover {
    background: #d81b60;
}

.button.secondary,
.btn-secondary {
    background: #fff;
    color: #667eea;
    border: 2px solid #667eea;
}

.button.secondary:hover,
.btn-secondary:hover {
    background: #667eea;
    color: #fff;
}

.button.large,
.btn-lg {
    padding: 1em 2.5em;
    font-size: 1.1em;
}

.button.small,
.btn-sm {
    padding: 0.5em 1.5em;
    font-size: 0.9em;
}

/* ========================================
   インフォメーションボックス
======================================== */
.info-box,
.alert,
.notice {
    padding: 1.5em;
    margin: 2em 0;
    border-radius: 8px;
    position: relative;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
}

.info-box.warning,
.alert.warning {
    background: #fff3cd;
    border-left-color: #ffc107;
}

.info-box.error,
.alert.error {
    background: #f8d7da;
    border-left-color: #dc3545;
}

.info-box.success,
.alert.success {
    background: #d4edda;
    border-left-color: #28a745;
}

.info-box .title,
.alert .title {
    font-weight: bold;
    margin-bottom: 0.5em;
    color: #333;
}

/* ========================================
   プログレスバー/ステップ
======================================== */
.progress-bar,
.steps {
    margin: 2em 0;
}

.progress-bar .bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.steps {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5em;
    font-weight: bold;
    color: #999;
}

.step.active .step-number {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}

.step.completed .step-number {
    background: #28a745;
    border-color: #28a745;
    color: #fff;
}

.step-title {
    font-size: 0.9em;
    color: #666;
}

@media (max-width: 768px) {
    .steps {
        flex-direction: column;
    }
    
    .steps::before {
        top: 0;
        bottom: 0;
        left: 20px;
        right: auto;
        width: 2px;
        height: auto;
    }
    
    .step {
        display: flex;
        align-items: center;
        margin-bottom: 2em;
        text-align: left;
    }
    
    .step-number {
        margin: 0 1em 0 0;
    }
}