/* 
 * Tendre Link Optimizer CSS（洗練された都会的デザイン）
 * ターコイズブルー系で温かみがありつつスマートで繊細なデザイン
 */

/* 洗練されたカラーパレット */
:root {
    /* ターコイズブルー系グラデーション */
    --tendre-primary: linear-gradient(135deg, #4dd0e1 0%, #26c6da 50%, #00acc1 100%);
    --tendre-hover: linear-gradient(135deg, #62daea 0%, #4dd0e1 50%, #26c6da 100%);
    --tendre-accent: #00bcd4;
    --tendre-light: #e0f7fa;
    
    /* 洗練されたシャドウ */
    --shadow-soft: 0 8px 32px rgba(77, 208, 225, 0.15);
    --shadow-hover: 0 16px 48px rgba(77, 208, 225, 0.25);
    --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.2);
    
    /* タイポグラフィ */
    --font-primary: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* コンテナ - 中央配置、美しい余白 */
.tendre-link-container {
    margin: 30px auto;
    max-width: 800px;
    width: 92%;
    position: relative;
}

/* メインリンク - 洗練されたカードデザイン */
.tendre-auto-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    font-family: var(--font-primary);
    
    /* 美しいサイズ設定 */
    padding: 32px 36px;
    min-height: 140px;
    
    /* 洗練された背景 */
    background: white;
    border: 1px solid rgba(77, 208, 225, 0.2);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    
    /* 繊細なシャドウ */
    box-shadow: var(--shadow-soft);
    
    /* スムーズなアニメーション */
    transition: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    
    /* テキスト */
    color: #37474f;
    font-weight: 500;
}

/* 左側のアクセントバー - より洗練された */
.tendre-auto-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--tendre-primary);
    border-radius: 0 2px 2px 0;
    transition: all 0.3s ease;
}

/* 微細な背景パターン */
.tendre-auto-link::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(77, 208, 225, 0.03) 50%, 
        rgba(77, 208, 225, 0.08) 100%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* ホバー効果 - 都会的で繊細 */
.tendre-auto-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(77, 208, 225, 0.3);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 1) 0%, 
        rgba(224, 247, 250, 0.3) 100%
    );
}

.tendre-auto-link:hover::before {
    width: 6px;
    background: var(--tendre-hover);
}

.tendre-auto-link:hover::after {
    opacity: 1;
}

/* 左側アイコン - 洗練されたデザイン */
.tendre-auto-link .symptom-icon {
    font-size: 2.8rem;
    margin-right: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    
    /* 美しいグラデーション背景 */
    background: var(--tendre-primary);
    border-radius: 16px;
    color: white;
    
    /* 繊細な効果 */
    box-shadow: var(--shadow-inset), 0 4px 16px rgba(77, 208, 225, 0.2);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* テキスト部分 */
.tendre-auto-link .symptom-text {
    flex: 1;
    line-height: 1.5;
}

/* 右側矢印 - ミニマルで上品 */
.tendre-auto-link .symptom-arrow {
    font-size: 1.8rem;
    margin-left: 24px;
    color: var(--tendre-accent);
    font-weight: 400;
    opacity: 0.7;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: translateX(0);
}

/* ホバー時の要素変化 */
.tendre-auto-link:hover .symptom-icon {
    transform: scale(1.05);
    background: var(--tendre-hover);
    box-shadow: var(--shadow-inset), 0 6px 20px rgba(77, 208, 225, 0.3);
}

.tendre-auto-link:hover .symptom-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* タイトル - 大きく読みやすく */
.tendre-auto-link h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0 0 8px 0;
    color: #263238;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

/* 説明文 - しっかり読める大きさ */
.tendre-auto-link p {
    font-size: 1.4rem;
    font-weight: 400;
    color: #546e7a;
    margin: 0;
    line-height: 1.5;
    letter-spacing: 0.01em;
}

/* バリエーション A - 標準 */
[data-variant="A"] .tendre-auto-link {
    background: white;
}

/* バリエーション B - より洗練された */
[data-variant="B"] .tendre-auto-link {
    background: linear-gradient(135deg, white 0%, rgba(224, 247, 250, 0.2) 100%);
    padding: 36px 40px;
    min-height: 150px;
    border-color: rgba(77, 208, 225, 0.25);
}

[data-variant="B"] .tendre-auto-link h3 {
    font-size: 2.4rem;
    color: #1e1e1e;
}

[data-variant="B"] .tendre-auto-link p {
    font-size: 1.5rem;
    color: #455a64;
}

[data-variant="B"] .tendre-auto-link .symptom-icon {
    width: 75px;
    height: 75px;
    font-size: 3rem;
    background: linear-gradient(135deg, #00acc1 0%, #0097a7 100%);
}

/* レスポンシブ - タブレット */
@media (max-width: 768px) {
    .tendre-link-container {
        width: 90%;
        margin: 24px auto;
    }
    
    .tendre-auto-link {
        padding: 24px 28px;
        min-height: 120px;
    }
    
    .tendre-auto-link h3 {
        font-size: 1.8rem;
    }
    
    .tendre-auto-link p {
        font-size: 1.2rem;
    }
    
    .tendre-auto-link .symptom-icon {
        width: 60px;
        height: 60px;
        font-size: 2.4rem;
        margin-right: 20px;
        border-radius: 14px;
    }
    
    .tendre-auto-link .symptom-arrow {
        font-size: 1.6rem;
        margin-left: 16px;
    }
}

/* レスポンシブ - スマートフォン */
@media (max-width: 480px) {
    .tendre-link-container {
        width: 94%;
        margin: 20px auto;
    }
    
    .tendre-auto-link {
        padding: 20px 24px;
        min-height: 110px;
        border-radius: 14px;
    }
    
    .tendre-auto-link h3 {
        font-size: 1.6rem;
        margin-bottom: 6px;
    }
    
    .tendre-auto-link p {
        font-size: 1.1rem;
    }
    
    .tendre-auto-link .symptom-icon {
        width: 55px;
        height: 55px;
        font-size: 2.2rem;
        margin-right: 16px;
        border-radius: 12px;
    }
    
    .tendre-auto-link .symptom-arrow {
        font-size: 1.4rem;
        margin-left: 12px;
    }
}

/* フォーカス状態 - アクセシビリティ */
.tendre-auto-link:focus {
    outline: 2px solid var(--tendre-accent);
    outline-offset: 2px;
    box-shadow: var(--shadow-hover), 0 0 0 4px rgba(77, 208, 225, 0.1);
}

/* アクティブ状態 */
.tendre-auto-link:active {
    transform: translateY(-2px);
    transition: transform 0.1s ease;
}

/* 印刷対応 */
@media print {
    .tendre-auto-link {
        background: white !important;
        color: #263238 !important;
        border: 2px solid var(--tendre-accent) !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }
    
    .tendre-auto-link h3,
    .tendre-auto-link p {
        color: #263238 !important;
    }
    
    .tendre-auto-link h3 {
        font-size: 2rem !important;
    }
    
    .tendre-auto-link p {
        font-size: 1.3rem !important;
    }
    
    .tendre-auto-link .symptom-icon {
        background: #e0f7fa !important;
        color: var(--tendre-accent) !important;
    }
}

/* アクセシビリティ - モーション削減 */
@media (prefers-reduced-motion: reduce) {
    .tendre-auto-link,
    .tendre-auto-link .symptom-icon,
    .tendre-auto-link .symptom-arrow {
        transition: none;
    }
    
    .tendre-auto-link:hover {
        transform: none;
    }
}

/* 高コントラストモード */
@media (prefers-contrast: high) {
    .tendre-auto-link {
        border-color: var(--tendre-accent);
        border-width: 2px;
    }
    
    .tendre-auto-link h3 {
        color: #000;
    }
    
    .tendre-auto-link p {
        color: #333;
    }
}